1 /* TextRunStyle: Stores (and writes) paragraph/span-style-based information 2 * (e.g.: a paragraph might be bold) that is needed at the head of an OO 3 * document. 4 * 5 * Copyright (C) 2002-2003 William Lachance (william.lachance@sympatico.ca) 6 * Copyright (C) 2004 Fridrich Strba (fridrich.strba@bluewin.ch) 7 * 8 * This program is free software; you can redistribute it and/or 9 * modify it under the terms of the GNU Lesser General Public 10 * License as published by the Free Software Foundation; either 11 * version 2 of the License, or (at your option) any later version. 12 * 13 * This program is distributed in the hope that it will be useful, 14 * but WITHOUT ANY WARRANTY; without even the implied warranty of 15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 16 * Library General Public License for more details. 17 * 18 * You should have received a copy of the GNU Library General Public 19 * License along with this library; if not, write to the Free Software 20 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 21 * 22 * For further information visit http://libwpd.sourceforge.net 23 * 24 */ 25 26 /* "This product is not manufactured, approved, or supported by 27 * Corel Corporation or Corel Corporation Limited." 28 */ 29 30 #ifndef _TEXTRUNSTYLE_H 31 #define _TEXTRUNSTYLE_H 32 #if defined _MSC_VER 33 #pragma warning( push, 1 ) 34 #endif 35 #include <libwpd/libwpd.h> 36 #if defined _MSC_VER 37 #pragma warning( pop ) 38 #endif 39 40 #include "Style.hxx" 41 42 class TagOpenElement; 43 class DocumentElement; 44 class DocumentHandler; 45 46 class ParagraphStyle 47 { 48 public: 49 ParagraphStyle(WPXPropertyList *propList, const WPXPropertyListVector &tabStops, const WPXString &sName); 50 virtual ~ParagraphStyle(); 51 virtual void write(DocumentHandler *pHandler) const; getName() const52 WPXString getName() const { return msName; } 53 private: 54 WPXPropertyList *mpPropList; 55 WPXPropertyListVector mxTabStops; 56 WPXString msName; 57 }; 58 59 60 class SpanStyle : public Style 61 { 62 public: 63 SpanStyle(const char *psName, const WPXPropertyList &xPropList); 64 virtual void write(DocumentHandler *pHandler) const; 65 66 private: 67 WPXPropertyList mPropList; 68 }; 69 #endif 70