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
5 * Copyright (C) 2002-2003 William Lachance (william.lachance@sympatico.ca)
6 * Copyright (C) 2004 Fridrich Strba (fridrich.strba@bluewin.ch)
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.
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.
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
22 * For further information visit http://libwpd.sourceforge.net
26 /* "This product is not manufactured, approved, or supported by
27 * Corel Corporation or Corel Corporation Limited."
30 #ifndef _TEXTRUNSTYLE_H
31 #define _TEXTRUNSTYLE_H
33 #pragma warning( push, 1 )
35 #include <libwpd/libwpd.h>
37 #pragma warning( pop )
43 class DocumentElement
;
44 class DocumentHandler
;
49 ParagraphStyle(WPXPropertyList
*propList
, const WPXPropertyListVector
&tabStops
, const WPXString
&sName
);
50 virtual ~ParagraphStyle();
51 virtual void write(DocumentHandler
*pHandler
) const;
52 WPXString
getName() const { return msName
; }
54 WPXPropertyList
*mpPropList
;
55 WPXPropertyListVector mxTabStops
;
60 class SpanStyle
: public Style
63 SpanStyle(const char *psName
, const WPXPropertyList
&xPropList
);
64 virtual void write(DocumentHandler
*pHandler
) const;
67 WPXPropertyList mPropList
;