- Main Page
- Namespaces
- Classes
- Files

- File List
- File Members

RVNGTextDrawingGenerator.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 RVNGTEXTDRAWINGGENERATOR_H
16 #define RVNGTEXTDRAWINGGENERATOR_H
17
18 #include <librevenge-stream/librevenge-stream.h>
19 #include <librevenge/librevenge.h>
20
21 namespace librevenge
22 {
23
24 struct RVNGTextDrawingGeneratorImpl;
25
26 class RVNGTextDrawingGenerator : public RVNGDrawingInterface
27 {
28 // disable copying
29 RVNGTextDrawingGenerator(const RVNGTextDrawingGenerator &other);
30 RVNGTextDrawingGenerator &operator=(const RVNGTextDrawingGenerator &other);
31
32 public:
33 explicit RVNGTextDrawingGenerator(RVNGStringVector &pages);
34 ~RVNGTextDrawingGenerator();
35
36 void startDocument(const RVNGPropertyList &propList);
37 void endDocument();
38 void setDocumentMetaData(const RVNGPropertyList &propList);
39 void defineEmbeddedFont(const RVNGPropertyList &propList);
40 void startPage(const RVNGPropertyList &);
41 void endPage();
42 void startMasterPage(const RVNGPropertyList &propList);
43 void endMasterPage();
44 void startLayer(const RVNGPropertyList &);
45 void endLayer();
46 void startEmbeddedGraphics(const RVNGPropertyList &);
47 void endEmbeddedGraphics();
48
49 void openGroup(const RVNGPropertyList &propList);
50 void closeGroup();
51
52 void setStyle(const RVNGPropertyList &);
53
54 void drawRectangle(const RVNGPropertyList &);
55 void drawEllipse(const RVNGPropertyList &);
56 void drawPolyline(const RVNGPropertyList &);
57 void drawPolygon(const RVNGPropertyList &);
58 void drawPath(const RVNGPropertyList &);
59 void drawGraphicObject(const RVNGPropertyList &);
60 void drawConnector(const RVNGPropertyList &propList);
61 void startTextObject(const RVNGPropertyList &);
62 void endTextObject();
63
64 void startTableObject(const RVNGPropertyList &propList);
65 void openTableRow(const RVNGPropertyList &propList);
66 void closeTableRow();
67 void openTableCell(const RVNGPropertyList &propList);
68 void closeTableCell();
69 void insertCoveredTableCell(const RVNGPropertyList &propList);
70 void endTableObject();
71
72 void openOrderedListLevel(const RVNGPropertyList &propList);
73 void closeOrderedListLevel();
74 void openUnorderedListLevel(const RVNGPropertyList &propList);
75 void closeUnorderedListLevel();
76
77 void openListElement(const RVNGPropertyList &propList);
78 void closeListElement();
79
80 void defineParagraphStyle(const RVNGPropertyList &propList);
81 void openParagraph(const RVNGPropertyList &propList);
82 void closeParagraph();
83
84 void defineCharacterStyle(const RVNGPropertyList &propList);
85 void openSpan(const RVNGPropertyList &propList);
86 void closeSpan();
87
88 void openLink(const RVNGPropertyList &propList);
89 void closeLink();
90
91 void insertTab();
92 void insertSpace();
93 void insertText(const RVNGString &text);
94 void insertLineBreak();
95 void insertField(const RVNGPropertyList &propList);
96
97 private:
98 RVNGTextDrawingGeneratorImpl *m_impl;
99 };
100
101 }
102
103 #endif // RVNGTEXTDRAWINGGENERATOR_H
104
105 /* vim:set shiftwidth=4 softtabstop=4 noexpandtab: */
librevenge::RVNGTextDrawingGenerator::closeUnorderedListLevel
void closeUnorderedListLevel()
Called when an ununordered list level should be closed.
Definition: RVNGTextDrawingGenerator.cpp:91
librevenge::RVNGTextDrawingGenerator::drawConnector
void drawConnector(const RVNGPropertyList &propList)
Draw a connector.
Definition: RVNGTextDrawingGenerator.cpp:83
librevenge::RVNGTextDrawingGenerator
Definition: RVNGTextDrawingGenerator.h:26
librevenge::RVNGTextDrawingGenerator::insertTab
void insertTab()
Called when a TAB character should be inserted.
Definition: RVNGTextDrawingGenerator.cpp:111
librevenge::RVNGTextDrawingGenerator::endDocument
void endDocument()
Definition: RVNGTextDrawingGenerator.cpp:48
librevenge::RVNGTextDrawingGenerator::startDocument
void startDocument(const RVNGPropertyList &propList)
Definition: RVNGTextDrawingGenerator.cpp:47
librevenge::RVNGTextDrawingGenerator::setDocumentMetaData
void setDocumentMetaData(const RVNGPropertyList &propList)
Called when all document metadata should be set.
Definition: RVNGTextDrawingGenerator.cpp:49
librevenge::RVNGTextDrawingGenerator::startPage
void startPage(const RVNGPropertyList &)
Definition: RVNGTextDrawingGenerator.cpp:51
librevenge::RVNGTextDrawingGenerator::startTableObject
void startTableObject(const RVNGPropertyList &propList)
Called when a table should be opened.
Definition: RVNGTextDrawingGenerator.cpp:122
librevenge::RVNGTextDrawingGenerator::~RVNGTextDrawingGenerator
~RVNGTextDrawingGenerator()
Definition: RVNGTextDrawingGenerator.cpp:42
librevenge::RVNGDrawingInterface
Definition: RVNGDrawingInterface.h:31
librevenge::RVNGTextDrawingGenerator::closeParagraph
void closeParagraph()
Called when a paragraph is closed.
Definition: RVNGTextDrawingGenerator.cpp:99
librevenge::RVNGTextDrawingGenerator::closeOrderedListLevel
void closeOrderedListLevel()
Called when an unordered list level should be closed.
Definition: RVNGTextDrawingGenerator.cpp:88
librevenge::RVNGTextDrawingGenerator::RVNGTextDrawingGenerator
RVNGTextDrawingGenerator(const RVNGTextDrawingGenerator &other)
librevenge::RVNGTextDrawingGenerator::closeTableRow
void closeTableRow()
Called when the current table row is closed.
Definition: RVNGTextDrawingGenerator.cpp:124
librevenge::RVNGTextDrawingGenerator::insertField
void insertField(const RVNGPropertyList &propList)
Called when a field should be inserted.
Definition: RVNGTextDrawingGenerator.cpp:120
librevenge::RVNGTextDrawingGenerator::closeLink
void closeLink()
Called when the current link is closed.
Definition: RVNGTextDrawingGenerator.cpp:109
librevenge::RVNGTextDrawingGenerator::defineCharacterStyle
void defineCharacterStyle(const RVNGPropertyList &propList)
Definition: RVNGTextDrawingGenerator.cpp:104
librevenge::RVNGTextDrawingGenerator::endTextObject
void endTextObject()
Definition: RVNGTextDrawingGenerator.cpp:85
librevenge::RVNGTextDrawingGenerator::startLayer
void startLayer(const RVNGPropertyList &)
Definition: RVNGTextDrawingGenerator.cpp:67
librevenge::RVNGTextDrawingGenerator::closeTableCell
void closeTableCell()
Called when the current table cell is closed.
Definition: RVNGTextDrawingGenerator.cpp:126
librevenge::RVNGTextDrawingGenerator::insertCoveredTableCell
void insertCoveredTableCell(const RVNGPropertyList &propList)
Called when a covered (spanned by another cell in the table) table cell is opened.
Definition: RVNGTextDrawingGenerator.cpp:127
librevenge::RVNGTextDrawingGenerator::operator=
RVNGTextDrawingGenerator & operator=(const RVNGTextDrawingGenerator &other)
librevenge::RVNGTextDrawingGenerator::openTableRow
void openTableRow(const RVNGPropertyList &propList)
Called when a new table row is opened.
Definition: RVNGTextDrawingGenerator.cpp:123
librevenge::RVNGTextDrawingGenerator::drawPath
void drawPath(const RVNGPropertyList &)
Definition: RVNGTextDrawingGenerator.cpp:81
librevenge.h
librevenge::RVNGTextDrawingGenerator::startTextObject
void startTextObject(const RVNGPropertyList &)
Definition: RVNGTextDrawingGenerator.cpp:84
librevenge::RVNGTextDrawingGenerator::openTableCell
void openTableCell(const RVNGPropertyList &propList)
Called when a new table cell is opened.
Definition: RVNGTextDrawingGenerator.cpp:125
librevenge::RVNGTextDrawingGenerator::openSpan
void openSpan(const RVNGPropertyList &propList)
Called when a text span is opened.
Definition: RVNGTextDrawingGenerator.cpp:105
librevenge::RVNGTextDrawingGenerator::defineParagraphStyle
void defineParagraphStyle(const RVNGPropertyList &propList)
Definition: RVNGTextDrawingGenerator.cpp:96
librevenge::RVNGTextDrawingGenerator::openLink
void openLink(const RVNGPropertyList &propList)
Called when a link should be opened.
Definition: RVNGTextDrawingGenerator.cpp:108
librevenge::RVNGTextDrawingGenerator::insertLineBreak
void insertLineBreak()
Called when a line break should be inserted.
Definition: RVNGTextDrawingGenerator.cpp:119
librevenge::RVNGTextDrawingGenerator::drawGraphicObject
void drawGraphicObject(const RVNGPropertyList &)
Called when a binary/raster object should be inserted.
Definition: RVNGTextDrawingGenerator.cpp:82
librevenge::RVNGTextDrawingGenerator::closeSpan
void closeSpan()
Called when a text span is closed.
Definition: RVNGTextDrawingGenerator.cpp:106
librevenge::RVNGTextDrawingGenerator::m_impl
RVNGTextDrawingGeneratorImpl * m_impl
Definition: RVNGTextDrawingGenerator.h:98
librevenge::RVNGTextDrawingGenerator::endEmbeddedGraphics
void endEmbeddedGraphics()
Definition: RVNGTextDrawingGenerator.cpp:70
librevenge::RVNGTextDrawingGeneratorImpl
Definition: RVNGTextDrawingGenerator.cpp:23
librevenge::RVNGTextDrawingGenerator::openParagraph
void openParagraph(const RVNGPropertyList &propList)
Called when a new paragraph is opened.
Definition: RVNGTextDrawingGenerator.cpp:97
librevenge::RVNGTextDrawingGenerator::closeGroup
void closeGroup()
Definition: RVNGTextDrawingGenerator.cpp:73
librevenge::RVNGTextDrawingGenerator::drawEllipse
void drawEllipse(const RVNGPropertyList &)
Definition: RVNGTextDrawingGenerator.cpp:78
librevenge::RVNGTextDrawingGenerator::endLayer
void endLayer()
Definition: RVNGTextDrawingGenerator.cpp:68
librevenge::RVNGTextDrawingGenerator::endPage
void endPage()
Definition: RVNGTextDrawingGenerator.cpp:53
librevenge::RVNGTextDrawingGenerator::insertSpace
void insertSpace()
Called when an explicit space should be inserted.
Definition: RVNGTextDrawingGenerator.cpp:112
librevenge::RVNGTextDrawingGenerator::drawPolygon
void drawPolygon(const RVNGPropertyList &)
Definition: RVNGTextDrawingGenerator.cpp:80
librevenge::RVNGTextDrawingGenerator::openOrderedListLevel
void openOrderedListLevel(const RVNGPropertyList &propList)
Called when a new ordered list level should be opened.
Definition: RVNGTextDrawingGenerator.cpp:87
librevenge::RVNGTextDrawingGenerator::endTableObject
void endTableObject()
Called when the current table is closed.
Definition: RVNGTextDrawingGenerator.cpp:128
librevenge::RVNGTextDrawingGenerator::defineEmbeddedFont
void defineEmbeddedFont(const RVNGPropertyList &propList)
Called when an embedded font should be defined.
Definition: RVNGTextDrawingGenerator.cpp:50
librevenge::RVNGTextDrawingGenerator::insertText
void insertText(const RVNGString &text)
Called when a string of text should be inserted.
Definition: RVNGTextDrawingGenerator.cpp:114
librevenge::RVNGTextDrawingGenerator::closeListElement
void closeListElement()
Called when a list element should be closed.
Definition: RVNGTextDrawingGenerator.cpp:94
librevenge::RVNGTextDrawingGenerator::startEmbeddedGraphics
void startEmbeddedGraphics(const RVNGPropertyList &)
Definition: RVNGTextDrawingGenerator.cpp:69
librevenge::RVNGTextDrawingGenerator::setStyle
void setStyle(const RVNGPropertyList &)
Definition: RVNGTextDrawingGenerator.cpp:75
librevenge::RVNGPropertyList
Definition: RVNGPropertyList.h:35
librevenge::RVNGTextDrawingGenerator::drawPolyline
void drawPolyline(const RVNGPropertyList &)
Definition: RVNGTextDrawingGenerator.cpp:79
librevenge::RVNGTextDrawingGenerator::startMasterPage
void startMasterPage(const RVNGPropertyList &propList)
Definition: RVNGTextDrawingGenerator.cpp:59
librevenge::RVNGString
Definition: RVNGString.h:29
librevenge-stream.h
librevenge::RVNGTextDrawingGenerator::endMasterPage
void endMasterPage()
Definition: RVNGTextDrawingGenerator.cpp:61
librevenge::RVNGTextDrawingGenerator::openGroup
void openGroup(const RVNGPropertyList &propList)
Definition: RVNGTextDrawingGenerator.cpp:72
librevenge::RVNGTextDrawingGenerator::drawRectangle
void drawRectangle(const RVNGPropertyList &)
Definition: RVNGTextDrawingGenerator.cpp:77
librevenge::RVNGStringVector
Definition: RVNGStringVector.h:30
librevenge::RVNGTextDrawingGenerator::openListElement
void openListElement(const RVNGPropertyList &propList)
Called when a list element should be opened.
Definition: RVNGTextDrawingGenerator.cpp:93
librevenge::RVNGTextDrawingGenerator::openUnorderedListLevel
void openUnorderedListLevel(const RVNGPropertyList &propList)
Called when a new unordered list level should be opened.
Definition: RVNGTextDrawingGenerator.cpp:90