RVNGTextTextGenerator.h
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- */
2 /* librevenge
3 * Version: MPL 2.0 / LGPLv2.1+
4 *
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 *
9 * Major Contributor(s):
10 * Copyright (C) 2002 William Lachance (wrlach@gmail.com)
11 * Copyright (C) 2002-2003 Marc Maurer (uwog@uwog.net)
12 *
13 * For minor contributions see the git repository.
14 *
15 * Alternatively, the contents of this file may be used under the terms
16 * of the GNU Lesser General Public License Version 2.1 or later
17 * (LGPLv2.1+), in which case the provisions of the LGPLv2.1+ are
18 * applicable instead of those above.
19 */
20
21 #ifndef RVNGTEXTTEXTGENERATOR_H
22 #define RVNGTEXTTEXTGENERATOR_H
23
24 #include "librevenge-generators-api.h"
25
26 #include <librevenge/librevenge.h>
27 #include <librevenge-stream/librevenge-stream.h>
28
29 namespace librevenge
30 {
31
32 struct RVNGTextTextGeneratorImpl;
33
34 class REVENGE_GENERATORS_API RVNGTextTextGenerator : public RVNGTextInterface
35 {
36 // disable copying
37 RVNGTextTextGenerator(const RVNGTextTextGenerator &other);
38 RVNGTextTextGenerator &operator=(const RVNGTextTextGenerator &other);
39
40 public:
41 explicit RVNGTextTextGenerator(RVNGString &document, const bool isInfo=false);
42 ~RVNGTextTextGenerator();
43
44 void setDocumentMetaData(const RVNGPropertyList &propList);
45
46 void startDocument(const RVNGPropertyList &propList);
47 void endDocument();
48
49 void defineEmbeddedFont(const RVNGPropertyList &propList);
50
51 void definePageStyle(const RVNGPropertyList &);
52 void openPageSpan(const RVNGPropertyList &propList);
53 void closePageSpan();
54 void openHeader(const RVNGPropertyList &propList);
55 void closeHeader();
56 void openFooter(const RVNGPropertyList &propList);
57 void closeFooter();
58
59 void defineSectionStyle(const RVNGPropertyList &);
60 void openSection(const RVNGPropertyList &propList);
61 void closeSection();
62
63 void defineParagraphStyle(const RVNGPropertyList &);
64 void openParagraph(const RVNGPropertyList &propList);
65 void closeParagraph();
66
67 void defineCharacterStyle(const RVNGPropertyList &);
68 void openSpan(const RVNGPropertyList &propList);
69 void closeSpan();
70
71 void openLink(const RVNGPropertyList &propList);
72 void closeLink();
73
74 void insertTab();
75 void insertText(const RVNGString &text);
76 void insertSpace();
77 void insertLineBreak();
78 void insertField(const RVNGPropertyList &propList);
79
80 void openOrderedListLevel(const RVNGPropertyList &propList);
81 void openUnorderedListLevel(const RVNGPropertyList &propList);
82 void closeOrderedListLevel();
83 void closeUnorderedListLevel();
84 void openListElement(const RVNGPropertyList &propList);
85 void closeListElement();
86
87 void openFootnote(const RVNGPropertyList &propList);
88 void closeFootnote();
89 void openEndnote(const RVNGPropertyList &propList);
90 void closeEndnote();
91 void openComment(const RVNGPropertyList &propList);
92 void closeComment();
93 void openTextBox(const RVNGPropertyList &propList);
94 void closeTextBox();
95
96 void openTable(const RVNGPropertyList &propList);
97 void openTableRow(const RVNGPropertyList &propList);
98 void closeTableRow();
99 void openTableCell(const RVNGPropertyList &propList);
100 void closeTableCell();
101 void insertCoveredTableCell(const RVNGPropertyList &propList);
102 void closeTable();
103
104 void openFrame(const RVNGPropertyList &propList);
105 void closeFrame();
106
107 void openGroup(const librevenge::RVNGPropertyList &propList);
108 void closeGroup();
109
110 void defineGraphicStyle(const librevenge::RVNGPropertyList &propList);
111 void drawRectangle(const librevenge::RVNGPropertyList &propList);
112 void drawEllipse(const librevenge::RVNGPropertyList &propList);
113 void drawPolygon(const librevenge::RVNGPropertyList &propList);
114 void drawPolyline(const librevenge::RVNGPropertyList &propList);
115 void drawPath(const librevenge::RVNGPropertyList &propList);
116 void drawConnector(const RVNGPropertyList &propList);
117
118 void insertBinaryObject(const RVNGPropertyList &propList);
119 void insertEquation(const RVNGPropertyList &propList);
120
121 private:
122 RVNGTextTextGeneratorImpl *m_impl;
123 };
124
125 }
126
127 #endif /* RVNGTEXTTEXTGENERATOR_H */
128
129 /* vim:set shiftwidth=4 softtabstop=4 noexpandtab: */
librevenge::RVNGTextTextGeneratorImpl
Definition: RVNGTextTextGenerator.cpp:67
librevenge
Definition: RVNGBinaryData.cpp:38
librevenge::RVNGTextInterface
Definition: RVNGTextInterface.h:39
librevenge-generators-api.h
librevenge::RVNGTextTextGenerator::m_impl
RVNGTextTextGeneratorImpl * m_impl
Definition: RVNGTextTextGenerator.h:122
librevenge.h
librevenge::RVNGTextTextGenerator
Definition: RVNGTextTextGenerator.h:34
REVENGE_GENERATORS_API
#define REVENGE_GENERATORS_API
Definition: librevenge-generators-api.h:34
librevenge::RVNGPropertyList
Definition: RVNGPropertyList.h:38
librevenge::RVNGString
UTF-8 string.
Definition: RVNGString.h:33
librevenge-stream.h