RVNGDummyTextGenerator.h Source File documentation

RVNGDummyTextGenerator.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 * Alternatively, the contents of this file may be used under the terms
10 * of the GNU Lesser General Public License Version 2.1 or later
11 * (LGPLv2.1+), in which case the provisions of the LGPLv2.1+ are
12 * applicable instead of those above.
13 */
14
15#ifndef RVNGDUMMYTEXTGENERATOR_H
16#define RVNGDUMMYTEXTGENERATOR_H
17
18#include "librevenge-generators-api.h"
19
20#include <librevenge/librevenge.h>
21
22namespace librevenge
23{
24
25 class REVENGE_GENERATORS_API RVNGDummyTextGenerator : public RVNGTextInterface
26{
27 // disable copying
28 RVNGDummyTextGenerator(const RVNGDummyTextGenerator &other);
29 RVNGDummyTextGenerator &operator=(const RVNGDummyTextGenerator &other);
30
31public:
32 RVNGDummyTextGenerator();
33 ~RVNGDummyTextGenerator();
34
35 void setDocumentMetaData(const RVNGPropertyList &propList);
36
37 void startDocument(const RVNGPropertyList &propList);
38 void endDocument();
39
40 void defineEmbeddedFont(const RVNGPropertyList &propList);
41
42 void definePageStyle(const RVNGPropertyList &propList);
43 void openPageSpan(const RVNGPropertyList &propList);
44 void closePageSpan();
45 void openHeader(const RVNGPropertyList &propList);
46 void closeHeader();
47 void openFooter(const RVNGPropertyList &propList);
48 void closeFooter();
49
50 void defineParagraphStyle(const RVNGPropertyList &propList);
51 void openParagraph(const RVNGPropertyList &propList);
52 void closeParagraph();
53
54 void defineCharacterStyle(const RVNGPropertyList &propList);
55 void openSpan(const RVNGPropertyList &propList);
56 void closeSpan();
57
58 void openLink(const RVNGPropertyList &propList);
59 void closeLink();
60
61 void defineSectionStyle(const RVNGPropertyList &propList);
62 void openSection(const RVNGPropertyList &propList);
63 void closeSection();
64
65 void insertTab();
66 void insertSpace();
67 void insertText(const RVNGString &text);
68 void insertLineBreak();
69 void insertField(const RVNGPropertyList &propList);
70
71 void openOrderedListLevel(const RVNGPropertyList &propList);
72 void openUnorderedListLevel(const RVNGPropertyList &propList);
73 void closeOrderedListLevel();
74 void closeUnorderedListLevel();
75 void openListElement(const RVNGPropertyList &propList);
76 void closeListElement();
77
78 void openFootnote(const RVNGPropertyList &propList);
79 void closeFootnote();
80 void openEndnote(const RVNGPropertyList &propList);
81 void closeEndnote();
82 void openComment(const RVNGPropertyList &propList);
83 void closeComment();
84 void openTextBox(const RVNGPropertyList &propList);
85 void closeTextBox();
86
87 void openTable(const RVNGPropertyList &propList);
88 void openTableRow(const RVNGPropertyList &propList);
89 void closeTableRow();
90 void openTableCell(const RVNGPropertyList &propList);
91 void closeTableCell();
92 void insertCoveredTableCell(const RVNGPropertyList &propList);
93 void closeTable();
94
95 void openFrame(const RVNGPropertyList &propList);
96 void closeFrame();
97
98 void openGroup(const librevenge::RVNGPropertyList &propList);
99 void closeGroup();
100
101 void defineGraphicStyle(const librevenge::RVNGPropertyList &propList);
102 void drawRectangle(const librevenge::RVNGPropertyList &propList);
103 void drawEllipse(const librevenge::RVNGPropertyList &propList);
104 void drawPolygon(const librevenge::RVNGPropertyList &propList);
105 void drawPolyline(const librevenge::RVNGPropertyList &propList);
106 void drawPath(const librevenge::RVNGPropertyList &propList);
107 void drawConnector(const RVNGPropertyList &propList);
108
109 void insertBinaryObject(const RVNGPropertyList &propList);
110 void insertEquation(const RVNGPropertyList &propList);
111};
112
113}
114
115#endif /* RVNGDUMMYTEXTGENERATOR_H */
116
117/* vim:set shiftwidth=4 softtabstop=4 noexpandtab: */
librevenge::RVNGDummyTextGenerator::insertTab
void insertTab()
Called when a TAB character should be inserted.
Definition RVNGDummyTextGenerator.cpp:116
librevenge::RVNGDummyTextGenerator::definePageStyle
void definePageStyle(const RVNGPropertyList &propList)
Definition RVNGDummyTextGenerator.cpp:40
librevenge::RVNGDummyTextGenerator::openTableCell
void openTableCell(const RVNGPropertyList &propList)
Called when a new table cell is opened.
Definition RVNGDummyTextGenerator.cpp:204
librevenge::RVNGDummyTextGenerator::openTextBox
void openTextBox(const RVNGPropertyList &propList)
Called when a text box should be opened (a sub-document will be placed inside of it).
Definition RVNGDummyTextGenerator.cpp:184
librevenge::RVNGDummyTextGenerator::closeListElement
void closeListElement()
Called when a list element should be closed.
Definition RVNGDummyTextGenerator.cpp:156
librevenge::RVNGDummyTextGenerator::openPageSpan
void openPageSpan(const RVNGPropertyList &propList)
Called when a new page span is opened.
Definition RVNGDummyTextGenerator.cpp:48
librevenge::RVNGDummyTextGenerator::closeFooter
void closeFooter()
Called when a footer should be closed.
Definition RVNGDummyTextGenerator.cpp:68
librevenge::RVNGDummyTextGenerator::drawPolyline
void drawPolyline(const librevenge::RVNGPropertyList &propList)
Definition RVNGDummyTextGenerator.cpp:252
librevenge::RVNGDummyTextGenerator::closeLink
void closeLink()
Called when the current link is closed.
Definition RVNGDummyTextGenerator.cpp:100
librevenge::RVNGDummyTextGenerator::closeEndnote
void closeEndnote()
Called when a endnote should be closed.
Definition RVNGDummyTextGenerator.cpp:172
librevenge::RVNGDummyTextGenerator::closeTextBox
void closeTextBox()
Called when a text box should be closed.
Definition RVNGDummyTextGenerator.cpp:188
librevenge::RVNGDummyTextGenerator::drawConnector
void drawConnector(const RVNGPropertyList &propList)
Draw a connector.
Definition RVNGDummyTextGenerator.cpp:260
librevenge::RVNGDummyTextGenerator::insertEquation
void insertEquation(const RVNGPropertyList &propList)
Called when a mathml object should be inserted.
Definition RVNGDummyTextGenerator.cpp:268
librevenge::RVNGDummyTextGenerator::openEndnote
void openEndnote(const RVNGPropertyList &propList)
Called when a endnote should be opened (a sub-document will be placed inside of it).
Definition RVNGDummyTextGenerator.cpp:168
librevenge::RVNGDummyTextGenerator::defineCharacterStyle
void defineCharacterStyle(const RVNGPropertyList &propList)
Definition RVNGDummyTextGenerator.cpp:84
librevenge::RVNGDummyTextGenerator::closeTableRow
void closeTableRow()
Called when the current table row is closed.
Definition RVNGDummyTextGenerator.cpp:200
librevenge::RVNGDummyTextGenerator::closeFootnote
void closeFootnote()
Called when a footnote should be closed.
Definition RVNGDummyTextGenerator.cpp:164
librevenge::RVNGDummyTextGenerator::closeParagraph
void closeParagraph()
Called when a paragraph is closed.
Definition RVNGDummyTextGenerator.cpp:80
librevenge::RVNGDummyTextGenerator::closeSection
void closeSection()
Called when a section is closed.
Definition RVNGDummyTextGenerator.cpp:112
librevenge::RVNGDummyTextGenerator::closeSpan
void closeSpan()
Called when a text span is closed.
Definition RVNGDummyTextGenerator.cpp:92
librevenge::RVNGDummyTextGenerator::closeGroup
void closeGroup()
Definition RVNGDummyTextGenerator.cpp:232
librevenge::RVNGDummyTextGenerator::openOrderedListLevel
void openOrderedListLevel(const RVNGPropertyList &propList)
Called when a new ordered list level should be opened.
Definition RVNGDummyTextGenerator.cpp:136
librevenge::RVNGDummyTextGenerator::drawPath
void drawPath(const librevenge::RVNGPropertyList &propList)
Definition RVNGDummyTextGenerator.cpp:256
librevenge::RVNGDummyTextGenerator::openTableRow
void openTableRow(const RVNGPropertyList &propList)
Called when a new table row is opened.
Definition RVNGDummyTextGenerator.cpp:196
librevenge::RVNGDummyTextGenerator::drawRectangle
void drawRectangle(const librevenge::RVNGPropertyList &propList)
Definition RVNGDummyTextGenerator.cpp:240
librevenge::RVNGDummyTextGenerator::endDocument
void endDocument()
Called at the end of the parsing process.
Definition RVNGDummyTextGenerator.cpp:36
librevenge::RVNGDummyTextGenerator::openParagraph
void openParagraph(const RVNGPropertyList &propList)
Called when a new paragraph is opened.
Definition RVNGDummyTextGenerator.cpp:76
librevenge::RVNGDummyTextGenerator::insertField
void insertField(const RVNGPropertyList &propList)
Called when a field should be inserted.
Definition RVNGDummyTextGenerator.cpp:132
librevenge::RVNGDummyTextGenerator::defineGraphicStyle
void defineGraphicStyle(const librevenge::RVNGPropertyList &propList)
Definition RVNGDummyTextGenerator.cpp:236
librevenge::RVNGDummyTextGenerator::RVNGDummyTextGenerator
RVNGDummyTextGenerator(const RVNGDummyTextGenerator &other)
librevenge::RVNGDummyTextGenerator::closeFrame
void closeFrame()
Called when the current positioned box is closed.
Definition RVNGDummyTextGenerator.cpp:224
librevenge::RVNGDummyTextGenerator::closeTableCell
void closeTableCell()
Called when the current table cell is closed.
Definition RVNGDummyTextGenerator.cpp:208
librevenge::RVNGDummyTextGenerator::defineSectionStyle
void defineSectionStyle(const RVNGPropertyList &propList)
Definition RVNGDummyTextGenerator.cpp:104
librevenge::RVNGDummyTextGenerator::operator=
RVNGDummyTextGenerator & operator=(const RVNGDummyTextGenerator &other)
librevenge::RVNGDummyTextGenerator::openFooter
void openFooter(const RVNGPropertyList &propList)
Called when a footer should be opened (a sub-document will be placed inside of it).
Definition RVNGDummyTextGenerator.cpp:64
librevenge::RVNGDummyTextGenerator::closeUnorderedListLevel
void closeUnorderedListLevel()
Called when an ununordered list level should be closed.
Definition RVNGDummyTextGenerator.cpp:148
librevenge::RVNGDummyTextGenerator::drawEllipse
void drawEllipse(const librevenge::RVNGPropertyList &propList)
Definition RVNGDummyTextGenerator.cpp:244
librevenge::RVNGDummyTextGenerator::openFootnote
void openFootnote(const RVNGPropertyList &propList)
Called when a footnote should be opened (a sub-document will be placed inside of it).
Definition RVNGDummyTextGenerator.cpp:160
librevenge::RVNGDummyTextGenerator::closeHeader
void closeHeader()
Called when a header should be closed.
Definition RVNGDummyTextGenerator.cpp:60
librevenge::RVNGDummyTextGenerator::insertSpace
void insertSpace()
Called when an explicit space should be inserted.
Definition RVNGDummyTextGenerator.cpp:120
librevenge::RVNGDummyTextGenerator::startDocument
void startDocument(const RVNGPropertyList &propList)
Called at the start of the parsing process.
Definition RVNGDummyTextGenerator.cpp:32
librevenge::RVNGDummyTextGenerator::setDocumentMetaData
void setDocumentMetaData(const RVNGPropertyList &propList)
Called when all document metadata should be set.
Definition RVNGDummyTextGenerator.cpp:28
librevenge::RVNGDummyTextGenerator::openLink
void openLink(const RVNGPropertyList &propList)
Called when a link should be opened.
Definition RVNGDummyTextGenerator.cpp:96
librevenge::RVNGDummyTextGenerator::insertLineBreak
void insertLineBreak()
Called when a line break should be inserted.
Definition RVNGDummyTextGenerator.cpp:128
librevenge::RVNGDummyTextGenerator::openSection
void openSection(const RVNGPropertyList &propList)
Called when a new section is opened.
Definition RVNGDummyTextGenerator.cpp:108
librevenge::RVNGDummyTextGenerator::openGroup
void openGroup(const librevenge::RVNGPropertyList &propList)
Definition RVNGDummyTextGenerator.cpp:228
librevenge::RVNGDummyTextGenerator::closeComment
void closeComment()
Called when a comment or annotation should be closed.
Definition RVNGDummyTextGenerator.cpp:180
librevenge::RVNGDummyTextGenerator::openSpan
void openSpan(const RVNGPropertyList &propList)
Called when a text span is opened.
Definition RVNGDummyTextGenerator.cpp:88
librevenge::RVNGDummyTextGenerator::openFrame
void openFrame(const RVNGPropertyList &propList)
Called when a positioned box should be opened.
Definition RVNGDummyTextGenerator.cpp:220
librevenge::RVNGDummyTextGenerator::closeTable
void closeTable()
Called when the current table is closed.
Definition RVNGDummyTextGenerator.cpp:216
librevenge::RVNGDummyTextGenerator::openHeader
void openHeader(const RVNGPropertyList &propList)
Called when a header should be opened (a sub-document will be placed inside of it).
Definition RVNGDummyTextGenerator.cpp:56
librevenge::RVNGDummyTextGenerator::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 RVNGDummyTextGenerator.cpp:176
librevenge::RVNGDummyTextGenerator::openListElement
void openListElement(const RVNGPropertyList &propList)
Called when a list element should be opened.
Definition RVNGDummyTextGenerator.cpp:152
librevenge::RVNGDummyTextGenerator::insertCoveredTableCell
void insertCoveredTableCell(const RVNGPropertyList &propList)
Called when a covered (spanned by another cell in the table) table cell is opened.
Definition RVNGDummyTextGenerator.cpp:212
librevenge::RVNGDummyTextGenerator::drawPolygon
void drawPolygon(const librevenge::RVNGPropertyList &propList)
Definition RVNGDummyTextGenerator.cpp:248
librevenge::RVNGDummyTextGenerator::insertText
void insertText(const RVNGString &text)
Called when a string of text should be inserted.
Definition RVNGDummyTextGenerator.cpp:124
librevenge::RVNGDummyTextGenerator::openTable
void openTable(const RVNGPropertyList &propList)
Called when a table should be opened.
Definition RVNGDummyTextGenerator.cpp:192
librevenge::RVNGDummyTextGenerator::closePageSpan
void closePageSpan()
Called when a page span is closed.
Definition RVNGDummyTextGenerator.cpp:52
librevenge::RVNGDummyTextGenerator::defineEmbeddedFont
void defineEmbeddedFont(const RVNGPropertyList &propList)
Called when an embedded font should be defined.
Definition RVNGDummyTextGenerator.cpp:44
librevenge::RVNGDummyTextGenerator::defineParagraphStyle
void defineParagraphStyle(const RVNGPropertyList &propList)
Definition RVNGDummyTextGenerator.cpp:72
librevenge::RVNGDummyTextGenerator::closeOrderedListLevel
void closeOrderedListLevel()
Called when an unordered list level should be closed.
Definition RVNGDummyTextGenerator.cpp:144
librevenge::RVNGDummyTextGenerator::openUnorderedListLevel
void openUnorderedListLevel(const RVNGPropertyList &propList)
Called when a new unordered list level should be opened.
Definition RVNGDummyTextGenerator.cpp:140
librevenge::RVNGDummyTextGenerator::insertBinaryObject
void insertBinaryObject(const RVNGPropertyList &propList)
Called when a binary object should be inserted.
Definition RVNGDummyTextGenerator.cpp:264
librevenge::RVNGPropertyList
Definition RVNGPropertyList.h:39
librevenge::RVNGString
UTF-8 string.
Definition RVNGString.h:34
librevenge::RVNGTextInterface
Definition RVNGTextInterface.h:40
librevenge-generators-api.h
REVENGE_GENERATORS_API
#define REVENGE_GENERATORS_API
Definition librevenge-generators-api.h:34
librevenge.h
librevenge
Definition RVNGBinaryData.cpp:40