RVNGTextDrawingGenerator.h Source File documentation

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