merge the formfield patch from ooo-build
[ooovba.git] / writerperfect / source / filter / TextRunStyle.hxx
blob7d5905e9d412715fe73c072992df5a13b9e791ee
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.
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
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
40 #include "Style.hxx"
42 class TagOpenElement;
43 class DocumentElement;
44 class DocumentHandler;
46 class ParagraphStyle
48 public:
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; }
53 private:
54 WPXPropertyList *mpPropList;
55 WPXPropertyListVector mxTabStops;
56 WPXString msName;
60 class SpanStyle : public Style
62 public:
63 SpanStyle(const char *psName, const WPXPropertyList &xPropList);
64 virtual void write(DocumentHandler *pHandler) const;
66 private:
67 WPXPropertyList mPropList;
69 #endif