RVNGRawTextGenerator.h Source File documentation

RVNGRawTextGenerator.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-2004 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 RVNGRAWTEXTGENERATOR_H
22#define RVNGRAWTEXTGENERATOR_H
23
24#include "librevenge-generators-api.h"
25
26#include <librevenge/librevenge.h>
27#include <librevenge-stream/librevenge-stream.h>
28
29namespace librevenge
30{
31
32struct RVNGRawTextGeneratorImpl;
33
34 class REVENGE_GENERATORS_API RVNGRawTextGenerator : public RVNGTextInterface
35{
36 // disable copying
37 RVNGRawTextGenerator(const RVNGRawTextGenerator &other);
38 RVNGRawTextGenerator &operator=(const RVNGRawTextGenerator &other);
39
40public:
41 explicit RVNGRawTextGenerator(bool printCallgraphScore);
42 ~RVNGRawTextGenerator();
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 &propList);
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 defineParagraphStyle(const RVNGPropertyList &propList);
60 void openParagraph(const RVNGPropertyList &propList);
61 void closeParagraph();
62
63 void defineCharacterStyle(const RVNGPropertyList &propList);
64 void openSpan(const RVNGPropertyList &propList);
65 void closeSpan();
66
67 void openLink(const RVNGPropertyList &propList);
68 void closeLink();
69
70 void defineSectionStyle(const RVNGPropertyList &propList);
71 void openSection(const RVNGPropertyList &propList);
72 void closeSection();
73
74 void insertTab();
75 void insertSpace();
76 void insertText(const RVNGString &text);
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
121private:
122 RVNGRawTextGeneratorImpl *m_impl;
123};
124
125}
126
127#endif /* RVNGRAWTEXTGENERATOR_H */
128
129/* vim:set shiftwidth=4 softtabstop=4 noexpandtab: */
librevenge::RVNGPropertyList
Definition RVNGPropertyList.h:39
librevenge::RVNGRawTextGenerator::endDocument
void endDocument()
Called at the end of the parsing process.
Definition RVNGRawTextGenerator.cpp:66
librevenge::RVNGRawTextGenerator::closeSpan
void closeSpan()
Called when a text span is closed.
Definition RVNGRawTextGenerator.cpp:157
librevenge::RVNGRawTextGenerator::RVNGRawTextGenerator
RVNGRawTextGenerator(const RVNGRawTextGenerator &other)
librevenge::RVNGRawTextGenerator::openHeader
void openHeader(const RVNGPropertyList &propList)
Called when a header should be opened (a sub-document will be placed inside of it).
Definition RVNGRawTextGenerator.cpp:99
librevenge::RVNGRawTextGenerator::openEndnote
void openEndnote(const RVNGPropertyList &propList)
Called when a endnote should be opened (a sub-document will be placed inside of it).
Definition RVNGRawTextGenerator.cpp:275
librevenge::RVNGRawTextGenerator::openLink
void openLink(const RVNGPropertyList &propList)
Called when a link should be opened.
Definition RVNGRawTextGenerator.cpp:162
librevenge::RVNGRawTextGenerator::openFooter
void openFooter(const RVNGPropertyList &propList)
Called when a footer should be opened (a sub-document will be placed inside of it).
Definition RVNGRawTextGenerator.cpp:112
librevenge::RVNGRawTextGenerator::closeTableRow
void closeTableRow()
Called when the current table row is closed.
Definition RVNGRawTextGenerator.cpp:319
librevenge::RVNGRawTextGenerator::openSpan
void openSpan(const RVNGPropertyList &propList)
Called when a text span is opened.
Definition RVNGRawTextGenerator.cpp:152
librevenge::RVNGRawTextGenerator::drawConnector
void drawConnector(const RVNGPropertyList &propList)
Draw a connector.
Definition RVNGRawTextGenerator.cpp:418
librevenge::RVNGRawTextGenerator::closeUnorderedListLevel
void closeUnorderedListLevel()
Called when an ununordered list level should be closed.
Definition RVNGRawTextGenerator.cpp:248
librevenge::RVNGRawTextGenerator::insertEquation
void insertEquation(const RVNGPropertyList &propList)
Called when a mathml object should be inserted.
Definition RVNGRawTextGenerator.cpp:434
librevenge::RVNGRawTextGenerator::closeTableCell
void closeTableCell()
Called when the current table cell is closed.
Definition RVNGRawTextGenerator.cpp:330
librevenge::RVNGRawTextGenerator::operator=
RVNGRawTextGenerator & operator=(const RVNGRawTextGenerator &other)
librevenge::RVNGRawTextGenerator::closeListElement
void closeListElement()
Called when a list element should be closed.
Definition RVNGRawTextGenerator.cpp:259
librevenge::RVNGRawTextGenerator::drawPolyline
void drawPolyline(const librevenge::RVNGPropertyList &propList)
Definition RVNGRawTextGenerator.cpp:402
librevenge::RVNGRawTextGenerator::openFrame
void openFrame(const RVNGPropertyList &propList)
Called when a positioned box should be opened.
Definition RVNGRawTextGenerator.cpp:348
librevenge::RVNGRawTextGenerator::definePageStyle
void definePageStyle(const RVNGPropertyList &propList)
Definition RVNGRawTextGenerator.cpp:71
librevenge::RVNGRawTextGenerator::insertTab
void insertTab()
Called when a TAB character should be inserted.
Definition RVNGRawTextGenerator.cpp:190
librevenge::RVNGRawTextGenerator::openTextBox
void openTextBox(const RVNGPropertyList &propList)
Called when a text box should be opened (a sub-document will be placed inside of it).
Definition RVNGRawTextGenerator.cpp:297
librevenge::RVNGRawTextGenerator::closeFooter
void closeFooter()
Called when a footer should be closed.
Definition RVNGRawTextGenerator.cpp:119
librevenge::RVNGRawTextGenerator::openUnorderedListLevel
void openUnorderedListLevel(const RVNGPropertyList &propList)
Called when a new unordered list level should be opened.
Definition RVNGRawTextGenerator.cpp:236
librevenge::RVNGRawTextGenerator::closeSection
void closeSection()
Called when a section is closed.
Definition RVNGRawTextGenerator.cpp:185
librevenge::RVNGRawTextGenerator::openPageSpan
void openPageSpan(const RVNGPropertyList &propList)
Called when a new page span is opened.
Definition RVNGRawTextGenerator.cpp:87
librevenge::RVNGRawTextGenerator::openTableRow
void openTableRow(const RVNGPropertyList &propList)
Called when a new table row is opened.
Definition RVNGRawTextGenerator.cpp:313
librevenge::RVNGRawTextGenerator::insertBinaryObject
void insertBinaryObject(const RVNGPropertyList &propList)
Called when a binary object should be inserted.
Definition RVNGRawTextGenerator.cpp:426
librevenge::RVNGRawTextGenerator::defineCharacterStyle
void defineCharacterStyle(const RVNGPropertyList &propList)
Definition RVNGRawTextGenerator.cpp:144
librevenge::RVNGRawTextGenerator::startDocument
void startDocument(const RVNGPropertyList &propList)
Called at the start of the parsing process.
Definition RVNGRawTextGenerator.cpp:61
librevenge::RVNGRawTextGenerator::insertText
void insertText(const RVNGString &text)
Called when a string of text should be inserted.
Definition RVNGRawTextGenerator.cpp:206
librevenge::RVNGRawTextGenerator::defineEmbeddedFont
void defineEmbeddedFont(const RVNGPropertyList &propList)
Called when an embedded font should be defined.
Definition RVNGRawTextGenerator.cpp:79
librevenge::RVNGRawTextGenerator::openTable
void openTable(const RVNGPropertyList &propList)
Called when a table should be opened.
Definition RVNGRawTextGenerator.cpp:308
librevenge::RVNGRawTextGenerator::defineGraphicStyle
void defineGraphicStyle(const librevenge::RVNGPropertyList &propList)
Definition RVNGRawTextGenerator.cpp:370
librevenge::RVNGRawTextGenerator::openSection
void openSection(const RVNGPropertyList &propList)
Called when a new section is opened.
Definition RVNGRawTextGenerator.cpp:180
librevenge::RVNGRawTextGenerator::closeEndnote
void closeEndnote()
Called when a endnote should be closed.
Definition RVNGRawTextGenerator.cpp:281
librevenge::RVNGRawTextGenerator::m_impl
RVNGRawTextGeneratorImpl * m_impl
Definition RVNGRawTextGenerator.h:122
librevenge::RVNGRawTextGenerator::closeOrderedListLevel
void closeOrderedListLevel()
Called when an unordered list level should be closed.
Definition RVNGRawTextGenerator.cpp:242
librevenge::RVNGRawTextGenerator::openOrderedListLevel
void openOrderedListLevel(const RVNGPropertyList &propList)
Called when a new ordered list level should be opened.
Definition RVNGRawTextGenerator.cpp:230
librevenge::RVNGRawTextGenerator::closeTextBox
void closeTextBox()
Called when a text box should be closed.
Definition RVNGRawTextGenerator.cpp:303
librevenge::RVNGRawTextGenerator::insertSpace
void insertSpace()
Called when an explicit space should be inserted.
Definition RVNGRawTextGenerator.cpp:198
librevenge::RVNGRawTextGenerator::insertLineBreak
void insertLineBreak()
Called when a line break should be inserted.
Definition RVNGRawTextGenerator.cpp:214
librevenge::RVNGRawTextGenerator::closeTable
void closeTable()
Called when the current table is closed.
Definition RVNGRawTextGenerator.cpp:343
librevenge::RVNGRawTextGenerator::closeLink
void closeLink()
Called when the current link is closed.
Definition RVNGRawTextGenerator.cpp:167
librevenge::RVNGRawTextGenerator::openFootnote
void openFootnote(const RVNGPropertyList &propList)
Called when a footnote should be opened (a sub-document will be placed inside of it).
Definition RVNGRawTextGenerator.cpp:264
librevenge::RVNGRawTextGenerator::setDocumentMetaData
void setDocumentMetaData(const RVNGPropertyList &propList)
Called when all document metadata should be set.
Definition RVNGRawTextGenerator.cpp:53
librevenge::RVNGRawTextGenerator::defineParagraphStyle
void defineParagraphStyle(const RVNGPropertyList &propList)
Definition RVNGRawTextGenerator.cpp:125
librevenge::RVNGRawTextGenerator::insertCoveredTableCell
void insertCoveredTableCell(const RVNGPropertyList &propList)
Called when a covered (spanned by another cell in the table) table cell is opened.
Definition RVNGRawTextGenerator.cpp:335
librevenge::RVNGRawTextGenerator::drawRectangle
void drawRectangle(const librevenge::RVNGPropertyList &propList)
Definition RVNGRawTextGenerator.cpp:378
librevenge::RVNGRawTextGenerator::closeHeader
void closeHeader()
Called when a header should be closed.
Definition RVNGRawTextGenerator.cpp:106
librevenge::RVNGRawTextGenerator::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 RVNGRawTextGenerator.cpp:286
librevenge::RVNGRawTextGenerator::openTableCell
void openTableCell(const RVNGPropertyList &propList)
Called when a new table cell is opened.
Definition RVNGRawTextGenerator.cpp:324
librevenge::RVNGRawTextGenerator::drawPath
void drawPath(const librevenge::RVNGPropertyList &propList)
Definition RVNGRawTextGenerator.cpp:410
librevenge::RVNGRawTextGenerator::closeComment
void closeComment()
Called when a comment or annotation should be closed.
Definition RVNGRawTextGenerator.cpp:292
librevenge::RVNGRawTextGenerator::closeParagraph
void closeParagraph()
Called when a paragraph is closed.
Definition RVNGRawTextGenerator.cpp:139
librevenge::RVNGRawTextGenerator::closeFrame
void closeFrame()
Called when the current positioned box is closed.
Definition RVNGRawTextGenerator.cpp:354
librevenge::RVNGRawTextGenerator::closePageSpan
void closePageSpan()
Called when a page span is closed.
Definition RVNGRawTextGenerator.cpp:93
librevenge::RVNGRawTextGenerator::openListElement
void openListElement(const RVNGPropertyList &propList)
Called when a list element should be opened.
Definition RVNGRawTextGenerator.cpp:253
librevenge::RVNGRawTextGenerator::closeFootnote
void closeFootnote()
Called when a footnote should be closed.
Definition RVNGRawTextGenerator.cpp:270
librevenge::RVNGRawTextGenerator::openGroup
void openGroup(const librevenge::RVNGPropertyList &propList)
Definition RVNGRawTextGenerator.cpp:359
librevenge::RVNGRawTextGenerator::drawEllipse
void drawEllipse(const librevenge::RVNGPropertyList &propList)
Definition RVNGRawTextGenerator.cpp:386
librevenge::RVNGRawTextGenerator::closeGroup
void closeGroup()
Definition RVNGRawTextGenerator.cpp:365
librevenge::RVNGRawTextGenerator::defineSectionStyle
void defineSectionStyle(const RVNGPropertyList &propList)
Definition RVNGRawTextGenerator.cpp:172
librevenge::RVNGRawTextGenerator::openParagraph
void openParagraph(const RVNGPropertyList &propList)
Called when a new paragraph is opened.
Definition RVNGRawTextGenerator.cpp:133
librevenge::RVNGRawTextGenerator::drawPolygon
void drawPolygon(const librevenge::RVNGPropertyList &propList)
Definition RVNGRawTextGenerator.cpp:394
librevenge::RVNGRawTextGenerator::insertField
void insertField(const RVNGPropertyList &propList)
Called when a field should be inserted.
Definition RVNGRawTextGenerator.cpp:222
librevenge::RVNGString
UTF-8 string.
Definition RVNGString.h:35
librevenge::RVNGTextInterface
Definition RVNGTextInterface.h:40
librevenge-generators-api.h
REVENGE_GENERATORS_API
#define REVENGE_GENERATORS_API
Definition librevenge-generators-api.h:34
librevenge-stream.h
librevenge.h
librevenge
Definition RVNGBinaryData.cpp:40
librevenge::RVNGRawTextGeneratorImpl
Definition RVNGRawTextGenerator.cpp:31