- Main Page
- Namespaces
- Classes
- Files

- File List
- File Members

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/librevenge.h>
25 #include <librevenge-stream/librevenge-stream.h>
26
27 namespace librevenge
28 {
29
30 struct RVNGTextTextGeneratorImpl;
31
32 class RVNGTextTextGenerator : public RVNGTextInterface
33 {
34 // disable copying
35 RVNGTextTextGenerator(const RVNGTextTextGenerator &other);
36 RVNGTextTextGenerator &operator=(const RVNGTextTextGenerator &other);
37
38 public:
39 explicit RVNGTextTextGenerator(RVNGString &document, const bool isInfo=false);
40 ~RVNGTextTextGenerator();
41
42 void setDocumentMetaData(const RVNGPropertyList &propList);
43
44 void startDocument(const RVNGPropertyList &propList);
45 void endDocument();
46
47 void defineEmbeddedFont(const RVNGPropertyList &propList);
48
49 void definePageStyle(const RVNGPropertyList &);
50 void openPageSpan(const RVNGPropertyList &propList);
51 void closePageSpan();
52 void openHeader(const RVNGPropertyList &propList);
53 void closeHeader();
54 void openFooter(const RVNGPropertyList &propList);
55 void closeFooter();
56
57 void defineSectionStyle(const RVNGPropertyList &);
58 void openSection(const RVNGPropertyList &propList);
59 void closeSection();
60
61 void defineParagraphStyle(const RVNGPropertyList &);
62 void openParagraph(const RVNGPropertyList &propList);
63 void closeParagraph();
64
65 void defineCharacterStyle(const RVNGPropertyList &);
66 void openSpan(const RVNGPropertyList &propList);
67 void closeSpan();
68
69 void openLink(const RVNGPropertyList &propList);
70 void closeLink();
71
72 void insertTab();
73 void insertText(const RVNGString &text);
74 void insertSpace();
75 void insertLineBreak();
76 void insertField(const RVNGPropertyList &propList);
77
78 void openOrderedListLevel(const RVNGPropertyList &propList);
79 void openUnorderedListLevel(const RVNGPropertyList &propList);
80 void closeOrderedListLevel();
81 void closeUnorderedListLevel();
82 void openListElement(const RVNGPropertyList &propList);
83 void closeListElement();
84
85 void openFootnote(const RVNGPropertyList &propList);
86 void closeFootnote();
87 void openEndnote(const RVNGPropertyList &propList);
88 void closeEndnote();
89 void openComment(const RVNGPropertyList &propList);
90 void closeComment();
91 void openTextBox(const RVNGPropertyList &propList);
92 void closeTextBox();
93
94 void openTable(const RVNGPropertyList &propList);
95 void openTableRow(const RVNGPropertyList &propList);
96 void closeTableRow();
97 void openTableCell(const RVNGPropertyList &propList);
98 void closeTableCell();
99 void insertCoveredTableCell(const RVNGPropertyList &propList);
100 void closeTable();
101
102 void openFrame(const RVNGPropertyList &propList);
103 void closeFrame();
104
105 void openGroup(const librevenge::RVNGPropertyList &propList);
106 void closeGroup();
107
108 void defineGraphicStyle(const librevenge::RVNGPropertyList &propList);
109 void drawRectangle(const librevenge::RVNGPropertyList &propList);
110 void drawEllipse(const librevenge::RVNGPropertyList &propList);
111 void drawPolygon(const librevenge::RVNGPropertyList &propList);
112 void drawPolyline(const librevenge::RVNGPropertyList &propList);
113 void drawPath(const librevenge::RVNGPropertyList &propList);
114 void drawConnector(const RVNGPropertyList &propList);
115
116 void insertBinaryObject(const RVNGPropertyList &propList);
117 void insertEquation(const RVNGPropertyList &propList);
118
119 private:
120 RVNGTextTextGeneratorImpl *m_impl;
121 };
122
123 }
124
125 #endif /* RVNGTEXTTEXTGENERATOR_H */
126
127 /* vim:set shiftwidth=4 softtabstop=4 noexpandtab: */
librevenge::RVNGTextTextGenerator::defineSectionStyle
void defineSectionStyle(const RVNGPropertyList &)
Definition: RVNGTextTextGenerator.cpp:83
librevenge::RVNGTextTextGenerator::openComment
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:145
librevenge::RVNGTextTextGenerator::insertTab
void insertTab()
Called when a TAB character should be inserted.
Definition: RVNGTextTextGenerator.cpp:104
librevenge::RVNGTextTextGenerator::openFootnote
void openFootnote(const RVNGPropertyList &propList)
Called when a footnote should be opened (a sub-document will be placed inside of it) ...
Definition: RVNGTextTextGenerator.cpp:141
librevenge::RVNGTextTextGeneratorImpl
Definition: RVNGTextTextGenerator.cpp:31
librevenge::RVNGTextTextGenerator::defineParagraphStyle
void defineParagraphStyle(const RVNGPropertyList &)
Definition: RVNGTextTextGenerator.cpp:87
librevenge::RVNGTextTextGenerator::endDocument
void endDocument()
Called at the end of the parsing process.
Definition: RVNGTextTextGenerator.cpp:69
librevenge::RVNGTextTextGenerator::closeHeader
void closeHeader()
Called when a header should be closed.
Definition: RVNGTextTextGenerator.cpp:79
librevenge::RVNGTextTextGenerator::openFrame
void openFrame(const RVNGPropertyList &propList)
Called when a positioned box should be opened.
Definition: RVNGTextTextGenerator.cpp:158
librevenge::RVNGTextTextGenerator::closeTableCell
void closeTableCell()
Called when the current table cell is closed.
Definition: RVNGTextTextGenerator.cpp:154
librevenge::RVNGTextTextGenerator::closeTextBox
void closeTextBox()
Called when a text box should be closed.
Definition: RVNGTextTextGenerator.cpp:148
librevenge::RVNGTextTextGenerator::openParagraph
void openParagraph(const RVNGPropertyList &propList)
Called when a new paragraph is opened.
Definition: RVNGTextTextGenerator.cpp:88
librevenge::RVNGTextTextGenerator::openFooter
void openFooter(const RVNGPropertyList &propList)
Called when a footer should be opened (a sub-document will be placed inside of it).
Definition: RVNGTextTextGenerator.cpp:80
librevenge::RVNGTextTextGenerator::closeTableRow
void closeTableRow()
Called when the current table row is closed.
Definition: RVNGTextTextGenerator.cpp:152
librevenge::RVNGTextTextGenerator::closeComment
void closeComment()
Called when a comment or annotation should be closed.
Definition: RVNGTextTextGenerator.cpp:146
librevenge::RVNGTextTextGenerator::drawPolyline
void drawPolyline(const librevenge::RVNGPropertyList &propList)
Definition: RVNGTextTextGenerator.cpp:168
librevenge::RVNGTextTextGenerator::closeListElement
void closeListElement()
Called when a list element should be closed.
Definition: RVNGTextTextGenerator.cpp:139
librevenge::RVNGTextTextGenerator::closePageSpan
void closePageSpan()
Called when a page span is closed.
Definition: RVNGTextTextGenerator.cpp:77
librevenge::RVNGTextTextGenerator::closeOrderedListLevel
void closeOrderedListLevel()
Called when an unordered list level should be closed.
Definition: RVNGTextTextGenerator.cpp:136
librevenge::RVNGTextInterface
Definition: RVNGTextInterface.h:39
librevenge::RVNGTextTextGenerator::drawConnector
void drawConnector(const RVNGPropertyList &propList)
Draw a connector.
Definition: RVNGTextTextGenerator.cpp:170
librevenge::RVNGTextTextGenerator::closeFrame
void closeFrame()
Called when the current positioned box is closed.
Definition: RVNGTextTextGenerator.cpp:159
librevenge::RVNGTextTextGenerator::defineEmbeddedFont
void defineEmbeddedFont(const RVNGPropertyList &propList)
Called when an embedded font should be defined.
Definition: RVNGTextTextGenerator.cpp:75
librevenge::RVNGTextTextGenerator::drawEllipse
void drawEllipse(const librevenge::RVNGPropertyList &propList)
Definition: RVNGTextTextGenerator.cpp:166
librevenge::RVNGTextTextGenerator::definePageStyle
void definePageStyle(const RVNGPropertyList &)
Definition: RVNGTextTextGenerator.cpp:74
librevenge::RVNGTextTextGenerator::openListElement
void openListElement(const RVNGPropertyList &propList)
Called when a list element should be opened.
Definition: RVNGTextTextGenerator.cpp:138
librevenge::RVNGTextTextGenerator::closeLink
void closeLink()
Called when the current link is closed.
Definition: RVNGTextTextGenerator.cpp:102
librevenge::RVNGTextTextGenerator::closeGroup
void closeGroup()
Definition: RVNGTextTextGenerator.cpp:162
librevenge::RVNGTextTextGenerator::m_impl
RVNGTextTextGeneratorImpl * m_impl
Definition: RVNGTextTextGenerator.h:120
librevenge::RVNGTextTextGenerator::setDocumentMetaData
void setDocumentMetaData(const RVNGPropertyList &propList)
Called when all document metadata should be set.
Definition: RVNGTextTextGenerator.cpp:57
librevenge::RVNGTextTextGenerator::defineCharacterStyle
void defineCharacterStyle(const RVNGPropertyList &)
Definition: RVNGTextTextGenerator.cpp:97
librevenge::RVNGTextTextGenerator::openPageSpan
void openPageSpan(const RVNGPropertyList &propList)
Called when a new page span is opened.
Definition: RVNGTextTextGenerator.cpp:76
librevenge::RVNGTextTextGenerator::openGroup
void openGroup(const librevenge::RVNGPropertyList &propList)
Definition: RVNGTextTextGenerator.cpp:161
librevenge::RVNGTextTextGenerator::startDocument
void startDocument(const RVNGPropertyList &propList)
Called at the start of the parsing process.
Definition: RVNGTextTextGenerator.cpp:68
librevenge::RVNGTextTextGenerator::closeUnorderedListLevel
void closeUnorderedListLevel()
Called when an ununordered list level should be closed.
Definition: RVNGTextTextGenerator.cpp:137
librevenge.h
librevenge::RVNGTextTextGenerator
Definition: RVNGTextTextGenerator.h:32
librevenge::RVNGTextTextGenerator::insertBinaryObject
void insertBinaryObject(const RVNGPropertyList &propList)
Called when a binary object should be inserted.
Definition: RVNGTextTextGenerator.cpp:172
librevenge::RVNGTextTextGenerator::drawRectangle
void drawRectangle(const librevenge::RVNGPropertyList &propList)
Definition: RVNGTextTextGenerator.cpp:165
librevenge::RVNGTextTextGenerator::insertField
void insertField(const RVNGPropertyList &propList)
Called when a field should be inserted.
Definition: RVNGTextTextGenerator.cpp:132
librevenge::RVNGTextTextGenerator::insertLineBreak
void insertLineBreak()
Called when a line break should be inserted.
Definition: RVNGTextTextGenerator.cpp:125
librevenge::RVNGTextTextGenerator::closeFooter
void closeFooter()
Called when a footer should be closed.
Definition: RVNGTextTextGenerator.cpp:81
librevenge::RVNGTextTextGenerator::closeFootnote
void closeFootnote()
Called when a footnote should be closed.
Definition: RVNGTextTextGenerator.cpp:142
librevenge::RVNGTextTextGenerator::openSpan
void openSpan(const RVNGPropertyList &propList)
Called when a text span is opened.
Definition: RVNGTextTextGenerator.cpp:98
librevenge::RVNGTextTextGenerator::openTable
void openTable(const RVNGPropertyList &propList)
Called when a table should be opened.
Definition: RVNGTextTextGenerator.cpp:150
librevenge::RVNGTextTextGenerator::insertCoveredTableCell
void insertCoveredTableCell(const RVNGPropertyList &propList)
Called when a covered (spanned by another cell in the table) table cell is opened.
Definition: RVNGTextTextGenerator.cpp:155
librevenge::RVNGTextTextGenerator::closeSpan
void closeSpan()
Called when a text span is closed.
Definition: RVNGTextTextGenerator.cpp:99
librevenge::RVNGTextTextGenerator::closeEndnote
void closeEndnote()
Called when a endnote should be closed.
Definition: RVNGTextTextGenerator.cpp:144
librevenge::RVNGTextTextGenerator::openSection
void openSection(const RVNGPropertyList &propList)
Called when a new section is opened.
Definition: RVNGTextTextGenerator.cpp:84
librevenge::RVNGTextTextGenerator::operator=
RVNGTextTextGenerator & operator=(const RVNGTextTextGenerator &other)
librevenge::RVNGTextTextGenerator::openTableCell
void openTableCell(const RVNGPropertyList &propList)
Called when a new table cell is opened.
Definition: RVNGTextTextGenerator.cpp:153
librevenge::RVNGTextTextGenerator::closeTable
void closeTable()
Called when the current table is closed.
Definition: RVNGTextTextGenerator.cpp:156
librevenge::RVNGTextTextGenerator::defineGraphicStyle
void defineGraphicStyle(const librevenge::RVNGPropertyList &propList)
Definition: RVNGTextTextGenerator.cpp:164
librevenge::RVNGTextTextGenerator::insertSpace
void insertSpace()
Called when an explicit space should be inserted.
Definition: RVNGTextTextGenerator.cpp:118
librevenge::RVNGTextTextGenerator::openLink
void openLink(const RVNGPropertyList &propList)
Called when a link should be opened.
Definition: RVNGTextTextGenerator.cpp:101
librevenge::RVNGTextTextGenerator::openTextBox
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:147
librevenge::RVNGTextTextGenerator::RVNGTextTextGenerator
RVNGTextTextGenerator(const RVNGTextTextGenerator &other)
librevenge::RVNGTextTextGenerator::openTableRow
void openTableRow(const RVNGPropertyList &propList)
Called when a new table row is opened.
Definition: RVNGTextTextGenerator.cpp:151
librevenge::RVNGTextTextGenerator::openUnorderedListLevel
void openUnorderedListLevel(const RVNGPropertyList &propList)
Called when a new unordered list level should be opened.
Definition: RVNGTextTextGenerator.cpp:135
librevenge::RVNGPropertyList
Definition: RVNGPropertyList.h:35
librevenge::RVNGTextTextGenerator::openHeader
void openHeader(const RVNGPropertyList &propList)
Called when a header should be opened (a sub-document will be placed inside of it).
Definition: RVNGTextTextGenerator.cpp:78
librevenge::RVNGTextTextGenerator::drawPath
void drawPath(const librevenge::RVNGPropertyList &propList)
Definition: RVNGTextTextGenerator.cpp:169
librevenge::RVNGTextTextGenerator::~RVNGTextTextGenerator
~RVNGTextTextGenerator()
Definition: RVNGTextTextGenerator.cpp:52
librevenge::RVNGString
Definition: RVNGString.h:29
librevenge::RVNGTextTextGenerator::closeParagraph
void closeParagraph()
Called when a paragraph is closed.
Definition: RVNGTextTextGenerator.cpp:90
librevenge-stream.h
librevenge::RVNGTextTextGenerator::openEndnote
void openEndnote(const RVNGPropertyList &propList)
Called when a endnote should be opened (a sub-document will be placed inside of it) ...
Definition: RVNGTextTextGenerator.cpp:143
librevenge::RVNGTextTextGenerator::drawPolygon
void drawPolygon(const librevenge::RVNGPropertyList &propList)
Definition: RVNGTextTextGenerator.cpp:167
librevenge::RVNGTextTextGenerator::openOrderedListLevel
void openOrderedListLevel(const RVNGPropertyList &propList)
Called when a new ordered list level should be opened.
Definition: RVNGTextTextGenerator.cpp:134
librevenge::RVNGTextTextGenerator::closeSection
void closeSection()
Called when a section is closed.
Definition: RVNGTextTextGenerator.cpp:85
librevenge::RVNGTextTextGenerator::insertEquation
void insertEquation(const RVNGPropertyList &propList)
Called when a mathml object should be inserted.
Definition: RVNGTextTextGenerator.cpp:173
librevenge::RVNGTextTextGenerator::insertText
void insertText(const RVNGString &text)
Called when a string of text should be inserted.
Definition: RVNGTextTextGenerator.cpp:111