filters

TextRunStyle.h
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., 51 Franklin Street, Fifth Floor,
21 * Boston, MA 02110-1301, USA.
22 *
23 * For further information visit http://libwpd.sourceforge.net
24 *
25 */
26
27/* "This product is not manufactured, approved, or supported by
28 * Corel Corporation or Corel Corporation Limited."
29 */
30
31#ifndef _TEXTRUNSTYLE_H
32#define _TEXTRUNSTYLE_H
33
34#include <libwpd/libwpd.h>
35#include "Style.h"
36#include "shared_headers.h"
37
38class TagOpenElement;
39class DocumentElement;
40class DocumentHandler;
41
42class ParagraphStyle
43{
44public:
45 ParagraphStyle(_SH_PropertyList *propList, const _SH_PropertyListVector &tabStops, const _SH_String &sName);
46 virtual ~ParagraphStyle();
47 virtual void write(DocumentHandler &xHandler) const;
48 _SH_String getName() const { return msName; }
49private:
50 _SH_PropertyList *mpPropList;
51 _SH_PropertyListVector mxTabStops;
52 _SH_String msName;
53};
54
55
56class SpanStyle : public Style
57{
58public:
59 SpanStyle(const char *psName, const _SH_PropertyList &xPropList);
60 virtual void write(DocumentHandler &xHandler) const;
61
62private:
63 _SH_PropertyList mPropList;
64};
65#endif