RVNGTextPresentationGenerator.h Source File documentation

RVNGTextPresentationGenerator.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 RVNGTEXTPRESENTATIONGENERATOR_H
16#define RVNGTEXTPRESENTATIONGENERATOR_H
17
18#include "librevenge-generators-api.h"
19
20#include <librevenge/librevenge.h>
21#include <librevenge-stream/librevenge-stream.h>
22
23namespace librevenge
24{
25
26struct RVNGTextPresentationGeneratorImpl;
27
28 class REVENGE_GENERATORS_API RVNGTextPresentationGenerator : public RVNGPresentationInterface
29{
30 // disable copying
31 RVNGTextPresentationGenerator(const RVNGTextPresentationGenerator &other);
32 RVNGTextPresentationGenerator &operator=(const RVNGTextPresentationGenerator &other);
33
34public:
35 explicit RVNGTextPresentationGenerator(RVNGStringVector &pages);
36 ~RVNGTextPresentationGenerator();
37
38 void startDocument(const RVNGPropertyList &propList);
39 void endDocument();
40 void setDocumentMetaData(const RVNGPropertyList &propList);
41 void defineEmbeddedFont(const RVNGPropertyList &propList);
42 void startSlide(const RVNGPropertyList &propList);
43 void endSlide();
44 void startMasterSlide(const RVNGPropertyList &propList);
45 void endMasterSlide();
46 void setSlideTransition(const RVNGPropertyList &propList);
47 void startLayer(const RVNGPropertyList &propList);
48 void endLayer();
49 void startEmbeddedGraphics(const RVNGPropertyList &propList);
50 void endEmbeddedGraphics();
51 void openGroup(const RVNGPropertyList &propList);
52 void closeGroup();
53
54 void setStyle(const RVNGPropertyList &propList);
55
56 void drawRectangle(const RVNGPropertyList &propList);
57 void drawEllipse(const RVNGPropertyList &propList);
58 void drawPolyline(const RVNGPropertyList &propList);
59 void drawPolygon(const RVNGPropertyList &propList);
60 void drawPath(const RVNGPropertyList &propList);
61 void drawGraphicObject(const RVNGPropertyList &propList);
62 void drawConnector(const RVNGPropertyList &propList);
63
64 void startTextObject(const RVNGPropertyList &propList);
65 void endTextObject();
66 void defineParagraphStyle(const RVNGPropertyList &propList);
67 void openParagraph(const RVNGPropertyList &propList);
68 void closeParagraph();
69 void defineCharacterStyle(const RVNGPropertyList &propList);
70 void openSpan(const RVNGPropertyList &propList);
71 void closeSpan();
72
73 void openLink(const RVNGPropertyList &propList);
74 void closeLink();
75
76 void insertTab();
77 void insertSpace();
78 void insertText(const RVNGString &str);
79 void insertLineBreak();
80
81 void insertField(const RVNGPropertyList &propList);
82
83 void openOrderedListLevel(const RVNGPropertyList &propList);
84 void openUnorderedListLevel(const RVNGPropertyList &propList);
85 void closeOrderedListLevel();
86 void closeUnorderedListLevel();
87 void openListElement(const RVNGPropertyList &propList);
88 void closeListElement();
89
90 void startTableObject(const RVNGPropertyList &propList);
91 void openTableRow(const RVNGPropertyList &propList);
92 void closeTableRow();
93 void openTableCell(const RVNGPropertyList &propList);
94 void closeTableCell();
95 void insertCoveredTableCell(const RVNGPropertyList &propList);
96 void endTableObject();
97
98 void startComment(const RVNGPropertyList &propList);
99 void endComment();
100
101 void startNotes(const RVNGPropertyList &propList);
102 void endNotes();
103
104 void defineChartStyle(const RVNGPropertyList &propList);
105 void openChart(const RVNGPropertyList &propList);
106 void closeChart();
107 void openChartTextObject(const RVNGPropertyList &propList);
108 void closeChartTextObject();
109 void openChartPlotArea(const RVNGPropertyList &propList);
110 void closeChartPlotArea();
111 void insertChartAxis(const RVNGPropertyList &propList);
112 void openChartSeries(const librevenge::RVNGPropertyList &propList);
113 void closeChartSeries();
114
115 void openAnimationSequence(const RVNGPropertyList &propList);
116 void closeAnimationSequence();
117 void openAnimationGroup(const RVNGPropertyList &propList);
118 void closeAnimationGroup();
119 void openAnimationIteration(const RVNGPropertyList &propList);
120 void closeAnimationIteration();
121 void insertMotionAnimation(const RVNGPropertyList &propList);
122 void insertColorAnimation(const RVNGPropertyList &propList);
123 void insertAnimation(const RVNGPropertyList &propList);
124 void insertEffect(const RVNGPropertyList &propList);
125
126private:
127 RVNGTextPresentationGeneratorImpl *m_impl;
128};
129
130}
131
132#endif
133
134/* vim:set shiftwidth=4 softtabstop=4 noexpandtab: */
librevenge::RVNGPresentationInterface
Interface for import of presentations.
Definition RVNGPresentationInterface.h:27
librevenge::RVNGPropertyList
Definition RVNGPropertyList.h:39
librevenge::RVNGStringVector
Definition RVNGStringVector.h:33
librevenge::RVNGString
UTF-8 string.
Definition RVNGString.h:35
librevenge::RVNGTextPresentationGenerator::insertTab
void insertTab()
Called when a TAB character should be inserted.
Definition RVNGTextPresentationGenerator.cpp:189
librevenge::RVNGTextPresentationGenerator::m_impl
RVNGTextPresentationGeneratorImpl * m_impl
Definition RVNGTextPresentationGenerator.h:127
librevenge::RVNGTextPresentationGenerator::closeAnimationSequence
void closeAnimationSequence()
Definition RVNGTextPresentationGenerator.cpp:322
librevenge::RVNGTextPresentationGenerator::endLayer
void endLayer()
Definition RVNGTextPresentationGenerator.cpp:90
librevenge::RVNGTextPresentationGenerator::openUnorderedListLevel
void openUnorderedListLevel(const RVNGPropertyList &propList)
Called when a new unordered list level should be opened.
Definition RVNGTextPresentationGenerator.cpp:212
librevenge::RVNGTextPresentationGenerator::closeChartSeries
void closeChartSeries()
Called when a serie should be closed (in a plot area).
Definition RVNGTextPresentationGenerator.cpp:314
librevenge::RVNGTextPresentationGenerator::insertCoveredTableCell
void insertCoveredTableCell(const RVNGPropertyList &propList)
Called when a covered (spanned by another cell in the table) table cell is opened.
Definition RVNGTextPresentationGenerator.cpp:254
librevenge::RVNGTextPresentationGenerator::openSpan
void openSpan(const RVNGPropertyList &propList)
Called when a text span is opened.
Definition RVNGTextPresentationGenerator.cpp:168
librevenge::RVNGTextPresentationGenerator::drawPath
void drawPath(const RVNGPropertyList &propList)
Definition RVNGTextPresentationGenerator.cpp:130
librevenge::RVNGTextPresentationGenerator::openListElement
void openListElement(const RVNGPropertyList &propList)
Called when a list element should be opened.
Definition RVNGTextPresentationGenerator.cpp:224
librevenge::RVNGTextPresentationGenerator::defineChartStyle
void defineChartStyle(const RVNGPropertyList &propList)
Definition RVNGTextPresentationGenerator.cpp:278
librevenge::RVNGTextPresentationGenerator::openAnimationIteration
void openAnimationIteration(const RVNGPropertyList &propList)
Definition RVNGTextPresentationGenerator.cpp:334
librevenge::RVNGTextPresentationGenerator::insertColorAnimation
void insertColorAnimation(const RVNGPropertyList &propList)
Insert an animation that changes color of the target object.
Definition RVNGTextPresentationGenerator.cpp:346
librevenge::RVNGTextPresentationGenerator::closeOrderedListLevel
void closeOrderedListLevel()
Called when an unordered list level should be closed.
Definition RVNGTextPresentationGenerator.cpp:216
librevenge::RVNGTextPresentationGenerator::openAnimationGroup
void openAnimationGroup(const RVNGPropertyList &propList)
Called when a set of animations should be applied in parallel.
Definition RVNGTextPresentationGenerator.cpp:326
librevenge::RVNGTextPresentationGenerator::openOrderedListLevel
void openOrderedListLevel(const RVNGPropertyList &propList)
Called when a new ordered list level should be opened.
Definition RVNGTextPresentationGenerator.cpp:208
librevenge::RVNGTextPresentationGenerator::startSlide
void startSlide(const RVNGPropertyList &propList)
Definition RVNGTextPresentationGenerator.cpp:62
librevenge::RVNGTextPresentationGenerator::closeUnorderedListLevel
void closeUnorderedListLevel()
Called when an ununordered list level should be closed.
Definition RVNGTextPresentationGenerator.cpp:220
librevenge::RVNGTextPresentationGenerator::insertChartAxis
void insertChartAxis(const RVNGPropertyList &propList)
Called when a axis should be add in a plot area.
Definition RVNGTextPresentationGenerator.cpp:306
librevenge::RVNGTextPresentationGenerator::closeTableCell
void closeTableCell()
Called when the current table cell is closed.
Definition RVNGTextPresentationGenerator.cpp:250
librevenge::RVNGTextPresentationGenerator::startTableObject
void startTableObject(const RVNGPropertyList &propList)
Called when a table should be opened.
Definition RVNGTextPresentationGenerator.cpp:234
librevenge::RVNGTextPresentationGenerator::drawGraphicObject
void drawGraphicObject(const RVNGPropertyList &propList)
Called when a binary/raster object should be inserted.
Definition RVNGTextPresentationGenerator.cpp:134
librevenge::RVNGTextPresentationGenerator::openChartTextObject
void openChartTextObject(const RVNGPropertyList &propList)
Called when a chart text zone:label/legend/title/subtitle/footer should be opened.
Definition RVNGTextPresentationGenerator.cpp:290
librevenge::RVNGTextPresentationGenerator::defineParagraphStyle
void defineParagraphStyle(const RVNGPropertyList &propList)
Definition RVNGTextPresentationGenerator.cpp:151
librevenge::RVNGTextPresentationGenerator::openChart
void openChart(const RVNGPropertyList &propList)
Called when a chart should be opened.
Definition RVNGTextPresentationGenerator.cpp:282
librevenge::RVNGTextPresentationGenerator::RVNGTextPresentationGenerator
RVNGTextPresentationGenerator(const RVNGTextPresentationGenerator &other)
librevenge::RVNGTextPresentationGenerator::drawPolygon
void drawPolygon(const RVNGPropertyList &propList)
Definition RVNGTextPresentationGenerator.cpp:126
librevenge::RVNGTextPresentationGenerator::closeLink
void closeLink()
Called when the current link is closed.
Definition RVNGTextPresentationGenerator.cpp:180
librevenge::RVNGTextPresentationGenerator::insertLineBreak
void insertLineBreak()
Called when a line break should be inserted.
Definition RVNGTextPresentationGenerator.cpp:199
librevenge::RVNGTextPresentationGenerator::endComment
void endComment()
End a comment.
Definition RVNGTextPresentationGenerator.cpp:266
librevenge::RVNGTextPresentationGenerator::closeTableRow
void closeTableRow()
Called when the current table row is closed.
Definition RVNGTextPresentationGenerator.cpp:242
librevenge::RVNGTextPresentationGenerator::insertField
void insertField(const RVNGPropertyList &propList)
Called when a field should be inserted.
Definition RVNGTextPresentationGenerator.cpp:204
librevenge::RVNGTextPresentationGenerator::closeSpan
void closeSpan()
Called when a text span is closed.
Definition RVNGTextPresentationGenerator.cpp:172
librevenge::RVNGTextPresentationGenerator::closeChartPlotArea
void closeChartPlotArea()
Called when a chart plot arre should be closed.
Definition RVNGTextPresentationGenerator.cpp:302
librevenge::RVNGTextPresentationGenerator::defineEmbeddedFont
void defineEmbeddedFont(const RVNGPropertyList &propList)
Called when an embedded font should be defined.
Definition RVNGTextPresentationGenerator.cpp:58
librevenge::RVNGTextPresentationGenerator::openParagraph
void openParagraph(const RVNGPropertyList &propList)
Called when a new paragraph is opened.
Definition RVNGTextPresentationGenerator.cpp:155
librevenge::RVNGTextPresentationGenerator::endTextObject
void endTextObject()
End a text object.
Definition RVNGTextPresentationGenerator.cpp:146
librevenge::RVNGTextPresentationGenerator::operator=
RVNGTextPresentationGenerator & operator=(const RVNGTextPresentationGenerator &other)
librevenge::RVNGTextPresentationGenerator::setDocumentMetaData
void setDocumentMetaData(const RVNGPropertyList &propList)
Called when all document metadata should be set.
Definition RVNGTextPresentationGenerator.cpp:54
librevenge::RVNGTextPresentationGenerator::closeChart
void closeChart()
Called when a chart should be closed.
Definition RVNGTextPresentationGenerator.cpp:286
librevenge::RVNGTextPresentationGenerator::setSlideTransition
void setSlideTransition(const RVNGPropertyList &propList)
Called when a transition should be added to the current slide.
Definition RVNGTextPresentationGenerator.cpp:82
librevenge::RVNGTextPresentationGenerator::closeAnimationGroup
void closeAnimationGroup()
Definition RVNGTextPresentationGenerator.cpp:330
librevenge::RVNGTextPresentationGenerator::closeGroup
void closeGroup()
Definition RVNGTextPresentationGenerator.cpp:106
librevenge::RVNGTextPresentationGenerator::endDocument
void endDocument()
Definition RVNGTextPresentationGenerator.cpp:50
librevenge::RVNGTextPresentationGenerator::openLink
void openLink(const RVNGPropertyList &propList)
Called when a link should be opened.
Definition RVNGTextPresentationGenerator.cpp:176
librevenge::RVNGTextPresentationGenerator::endMasterSlide
void endMasterSlide()
Definition RVNGTextPresentationGenerator.cpp:76
librevenge::RVNGTextPresentationGenerator::openGroup
void openGroup(const RVNGPropertyList &propList)
Definition RVNGTextPresentationGenerator.cpp:102
librevenge::RVNGTextPresentationGenerator::openChartSeries
void openChartSeries(const librevenge::RVNGPropertyList &propList)
Called when a serie should be opened (in a plot area).
Definition RVNGTextPresentationGenerator.cpp:310
librevenge::RVNGTextPresentationGenerator::startMasterSlide
void startMasterSlide(const RVNGPropertyList &propList)
Definition RVNGTextPresentationGenerator.cpp:72
librevenge::RVNGTextPresentationGenerator::closeChartTextObject
void closeChartTextObject()
Called when a chart text zone:legend/title/subtitle/footer should be closed.
Definition RVNGTextPresentationGenerator.cpp:294
librevenge::RVNGTextPresentationGenerator::drawEllipse
void drawEllipse(const RVNGPropertyList &propList)
Definition RVNGTextPresentationGenerator.cpp:118
librevenge::RVNGTextPresentationGenerator::openTableCell
void openTableCell(const RVNGPropertyList &propList)
Called when a new table cell is opened.
Definition RVNGTextPresentationGenerator.cpp:246
librevenge::RVNGTextPresentationGenerator::endNotes
void endNotes()
End slide notes.
Definition RVNGTextPresentationGenerator.cpp:274
librevenge::RVNGTextPresentationGenerator::closeParagraph
void closeParagraph()
Called when a paragraph is closed.
Definition RVNGTextPresentationGenerator.cpp:159
librevenge::RVNGTextPresentationGenerator::startTextObject
void startTextObject(const RVNGPropertyList &propList)
Start a text object.
Definition RVNGTextPresentationGenerator.cpp:142
librevenge::RVNGTextPresentationGenerator::drawConnector
void drawConnector(const RVNGPropertyList &propList)
Draw a connector.
Definition RVNGTextPresentationGenerator.cpp:138
librevenge::RVNGTextPresentationGenerator::openAnimationSequence
void openAnimationSequence(const RVNGPropertyList &propList)
Called when a set of animations should be applied one after another.
Definition RVNGTextPresentationGenerator.cpp:318
librevenge::RVNGTextPresentationGenerator::insertAnimation
void insertAnimation(const RVNGPropertyList &propList)
Insert a generic animation.
Definition RVNGTextPresentationGenerator.cpp:350
librevenge::RVNGTextPresentationGenerator::insertMotionAnimation
void insertMotionAnimation(const RVNGPropertyList &propList)
Insert an animation that moves the target object along a specified path.
Definition RVNGTextPresentationGenerator.cpp:342
librevenge::RVNGTextPresentationGenerator::drawRectangle
void drawRectangle(const RVNGPropertyList &propList)
Definition RVNGTextPresentationGenerator.cpp:114
librevenge::RVNGTextPresentationGenerator::startLayer
void startLayer(const RVNGPropertyList &propList)
Definition RVNGTextPresentationGenerator.cpp:86
librevenge::RVNGTextPresentationGenerator::insertSpace
void insertSpace()
Called when an explicit space should be inserted.
Definition RVNGTextPresentationGenerator.cpp:194
librevenge::RVNGTextPresentationGenerator::setStyle
void setStyle(const RVNGPropertyList &propList)
Definition RVNGTextPresentationGenerator.cpp:110
librevenge::RVNGTextPresentationGenerator::closeAnimationIteration
void closeAnimationIteration()
Definition RVNGTextPresentationGenerator.cpp:338
librevenge::RVNGTextPresentationGenerator::startNotes
void startNotes(const RVNGPropertyList &propList)
Start slide notes.
Definition RVNGTextPresentationGenerator.cpp:270
librevenge::RVNGTextPresentationGenerator::endTableObject
void endTableObject()
Called when the current table is closed.
Definition RVNGTextPresentationGenerator.cpp:258
librevenge::RVNGTextPresentationGenerator::endSlide
void endSlide()
Definition RVNGTextPresentationGenerator.cpp:66
librevenge::RVNGTextPresentationGenerator::startEmbeddedGraphics
void startEmbeddedGraphics(const RVNGPropertyList &propList)
Definition RVNGTextPresentationGenerator.cpp:94
librevenge::RVNGTextPresentationGenerator::endEmbeddedGraphics
void endEmbeddedGraphics()
Definition RVNGTextPresentationGenerator.cpp:98
librevenge::RVNGTextPresentationGenerator::insertText
void insertText(const RVNGString &str)
Called when a string of text should be inserted.
Definition RVNGTextPresentationGenerator.cpp:184
librevenge::RVNGTextPresentationGenerator::startDocument
void startDocument(const RVNGPropertyList &propList)
Definition RVNGTextPresentationGenerator.cpp:46
librevenge::RVNGTextPresentationGenerator::closeListElement
void closeListElement()
Called when a list element should be closed.
Definition RVNGTextPresentationGenerator.cpp:229
librevenge::RVNGTextPresentationGenerator::insertEffect
void insertEffect(const RVNGPropertyList &propList)
Set one-time animation effect on the target object.
Definition RVNGTextPresentationGenerator.cpp:354
librevenge::RVNGTextPresentationGenerator::startComment
void startComment(const RVNGPropertyList &propList)
Start a comment.
Definition RVNGTextPresentationGenerator.cpp:262
librevenge::RVNGTextPresentationGenerator::openChartPlotArea
void openChartPlotArea(const RVNGPropertyList &propList)
Called when a chart plot area should be opened.
Definition RVNGTextPresentationGenerator.cpp:298
librevenge::RVNGTextPresentationGenerator::defineCharacterStyle
void defineCharacterStyle(const RVNGPropertyList &propList)
Definition RVNGTextPresentationGenerator.cpp:164
librevenge::RVNGTextPresentationGenerator::openTableRow
void openTableRow(const RVNGPropertyList &propList)
Called when a new table row is opened.
Definition RVNGTextPresentationGenerator.cpp:238
librevenge::RVNGTextPresentationGenerator::drawPolyline
void drawPolyline(const RVNGPropertyList &propList)
Definition RVNGTextPresentationGenerator.cpp:122
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::RVNGTextPresentationGeneratorImpl
Definition RVNGTextPresentationGenerator.cpp:23