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
25
28
29namespace librevenge
30{
31
33
35{
36 // disable copying
39
40public:
41 explicit RVNGTextTextGenerator(RVNGString &document, const bool isInfo=false);
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
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
60 void openSection(const RVNGPropertyList &propList);
61 void closeSection();
62
64 void openParagraph(const RVNGPropertyList &propList);
65 void closeParagraph();
66
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);
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
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
121private:
123};
124
125}
126
127#endif /* RVNGTEXTTEXTGENERATOR_H */
128
129/* vim:set shiftwidth=4 softtabstop=4 noexpandtab: */
Definition RVNGPropertyList.h:39
UTF-8 string.
Definition RVNGString.h:34
Definition RVNGTextInterface.h:40
void closeParagraph()
Called when a paragraph is closed.
Definition RVNGTextTextGenerator.cpp:147
void drawPath(const librevenge::RVNGPropertyList &propList)
Definition RVNGTextTextGenerator.cpp:261
void openTableRow(const RVNGPropertyList &propList)
Called when a new table row is opened.
Definition RVNGTextTextGenerator.cpp:243
RVNGTextTextGenerator(const RVNGTextTextGenerator &other)
void drawConnector(const RVNGPropertyList &propList)
Draw a connector.
Definition RVNGTextTextGenerator.cpp:262
void defineSectionStyle(const RVNGPropertyList &)
Definition RVNGTextTextGenerator.cpp:140
void insertEquation(const RVNGPropertyList &propList)
Called when a mathml object should be inserted.
Definition RVNGTextTextGenerator.cpp:265
void closeComment()
Called when a comment or annotation should be closed.
Definition RVNGTextTextGenerator.cpp:238
void openSection(const RVNGPropertyList &propList)
Called when a new section is opened.
Definition RVNGTextTextGenerator.cpp:141
void openUnorderedListLevel(const RVNGPropertyList &propList)
Called when a new unordered list level should be opened.
Definition RVNGTextTextGenerator.cpp:199
void closeEndnote()
Called when a endnote should be closed.
Definition RVNGTextTextGenerator.cpp:232
void openFootnote(const RVNGPropertyList &propList)
Called when a footnote should be opened (a sub-document will be placed inside of it)
Definition RVNGTextTextGenerator.cpp:205
RVNGTextTextGenerator & operator=(const RVNGTextTextGenerator &other)
void insertLineBreak()
Called when a line break should be inserted.
Definition RVNGTextTextGenerator.cpp:189
void defineEmbeddedFont(const RVNGPropertyList &propList)
Called when an embedded font should be defined.
Definition RVNGTextTextGenerator.cpp:132
void closeTextBox()
Called when a text box should be closed.
Definition RVNGTextTextGenerator.cpp:240
void openEndnote(const RVNGPropertyList &propList)
Called when a endnote should be opened (a sub-document will be placed inside of it)
Definition RVNGTextTextGenerator.cpp:223
void openTextBox(const RVNGPropertyList &propList)
Called when a text box should be opened (a sub-document will be placed inside of it)
Definition RVNGTextTextGenerator.cpp:239
void closeFooter()
Called when a footer should be closed.
Definition RVNGTextTextGenerator.cpp:138
void openLink(const RVNGPropertyList &propList)
Called when a link should be opened.
Definition RVNGTextTextGenerator.cpp:165
void closeHeader()
Called when a header should be closed.
Definition RVNGTextTextGenerator.cpp:136
void openOrderedListLevel(const RVNGPropertyList &propList)
Called when a new ordered list level should be opened.
Definition RVNGTextTextGenerator.cpp:198
void openListElement(const RVNGPropertyList &propList)
Called when a list element should be opened.
Definition RVNGTextTextGenerator.cpp:202
void openComment(const RVNGPropertyList &propList)
Called when a comment or annotation should be opened (a sub-document will be placed inside of it)
Definition RVNGTextTextGenerator.cpp:237
void insertField(const RVNGPropertyList &propList)
Called when a field should be inserted.
Definition RVNGTextTextGenerator.cpp:196
void openFooter(const RVNGPropertyList &propList)
Called when a footer should be opened (a sub-document will be placed inside of it).
Definition RVNGTextTextGenerator.cpp:137
void closeFrame()
Called when the current positioned box is closed.
Definition RVNGTextTextGenerator.cpp:251
void closeOrderedListLevel()
Called when an unordered list level should be closed.
Definition RVNGTextTextGenerator.cpp:200
void startDocument(const RVNGPropertyList &propList)
Called at the start of the parsing process.
Definition RVNGTextTextGenerator.cpp:120
void defineCharacterStyle(const RVNGPropertyList &)
Definition RVNGTextTextGenerator.cpp:161
void drawRectangle(const librevenge::RVNGPropertyList &propList)
Definition RVNGTextTextGenerator.cpp:257
void closeTableCell()
Called when the current table cell is closed.
Definition RVNGTextTextGenerator.cpp:246
void closeFootnote()
Called when a footnote should be closed.
Definition RVNGTextTextGenerator.cpp:216
void openFrame(const RVNGPropertyList &propList)
Called when a positioned box should be opened.
Definition RVNGTextTextGenerator.cpp:250
void insertSpace()
Called when an explicit space should be inserted.
Definition RVNGTextTextGenerator.cpp:182
void closeGroup()
Definition RVNGTextTextGenerator.cpp:254
void closePageSpan()
Called when a page span is closed.
Definition RVNGTextTextGenerator.cpp:134
void drawPolyline(const librevenge::RVNGPropertyList &propList)
Definition RVNGTextTextGenerator.cpp:260
void openPageSpan(const RVNGPropertyList &propList)
Called when a new page span is opened.
Definition RVNGTextTextGenerator.cpp:133
void openGroup(const librevenge::RVNGPropertyList &propList)
Definition RVNGTextTextGenerator.cpp:253
void setDocumentMetaData(const RVNGPropertyList &propList)
Called when all document metadata should be set.
Definition RVNGTextTextGenerator.cpp:109
void closeUnorderedListLevel()
Called when an ununordered list level should be closed.
Definition RVNGTextTextGenerator.cpp:201
void drawEllipse(const librevenge::RVNGPropertyList &propList)
Definition RVNGTextTextGenerator.cpp:258
void drawPolygon(const librevenge::RVNGPropertyList &propList)
Definition RVNGTextTextGenerator.cpp:259
void closeTable()
Called when the current table is closed.
Definition RVNGTextTextGenerator.cpp:248
void openSpan(const RVNGPropertyList &propList)
Called when a text span is opened.
Definition RVNGTextTextGenerator.cpp:162
void closeLink()
Called when the current link is closed.
Definition RVNGTextTextGenerator.cpp:166
void insertCoveredTableCell(const RVNGPropertyList &propList)
Called when a covered (spanned by another cell in the table) table cell is opened.
Definition RVNGTextTextGenerator.cpp:247
void closeSpan()
Called when a text span is closed.
Definition RVNGTextTextGenerator.cpp:163
void definePageStyle(const RVNGPropertyList &)
Definition RVNGTextTextGenerator.cpp:131
void endDocument()
Called at the end of the parsing process.
Definition RVNGTextTextGenerator.cpp:121
void openTableCell(const RVNGPropertyList &propList)
Called when a new table cell is opened.
Definition RVNGTextTextGenerator.cpp:245
void closeTableRow()
Called when the current table row is closed.
Definition RVNGTextTextGenerator.cpp:244
void defineGraphicStyle(const librevenge::RVNGPropertyList &propList)
Definition RVNGTextTextGenerator.cpp:256
RVNGTextTextGeneratorImpl * m_impl
Definition RVNGTextTextGenerator.h:122
void openTable(const RVNGPropertyList &propList)
Called when a table should be opened.
Definition RVNGTextTextGenerator.cpp:242
void closeListElement()
Called when a list element should be closed.
Definition RVNGTextTextGenerator.cpp:203
void openParagraph(const RVNGPropertyList &propList)
Called when a new paragraph is opened.
Definition RVNGTextTextGenerator.cpp:145
void closeSection()
Called when a section is closed.
Definition RVNGTextTextGenerator.cpp:142
void defineParagraphStyle(const RVNGPropertyList &)
Definition RVNGTextTextGenerator.cpp:144
void insertTab()
Called when a TAB character should be inserted.
Definition RVNGTextTextGenerator.cpp:168
void insertBinaryObject(const RVNGPropertyList &propList)
Called when a binary object should be inserted.
Definition RVNGTextTextGenerator.cpp:264
void insertText(const RVNGString &text)
Called when a string of text should be inserted.
Definition RVNGTextTextGenerator.cpp:175
void openHeader(const RVNGPropertyList &propList)
Called when a header should be opened (a sub-document will be placed inside of it).
Definition RVNGTextTextGenerator.cpp:135
#define REVENGE_GENERATORS_API
Definition librevenge-generators-api.h:34
Definition RVNGBinaryData.cpp:40
Definition RVNGTextTextGenerator.cpp:68

Generated for librevenge by doxygen 1.14.0