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
23 namespace librevenge
24 {
25
26 struct 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
34 public:
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
126 private:
127 RVNGTextPresentationGeneratorImpl *m_impl;
128 };
129
130 }
131
132 #endif
133
134 /* vim:set shiftwidth=4 softtabstop=4 noexpandtab: */
librevenge
Definition: RVNGBinaryData.cpp:38
librevenge::RVNGTextPresentationGenerator::m_impl
RVNGTextPresentationGeneratorImpl * m_impl
Definition: RVNGTextPresentationGenerator.h:127
librevenge::RVNGTextPresentationGeneratorImpl
Definition: RVNGTextPresentationGenerator.cpp:22
librevenge-generators-api.h
librevenge::RVNGTextPresentationGenerator
Definition: RVNGTextPresentationGenerator.h:28
librevenge.h
librevenge::RVNGPresentationInterface
Interface for import of presentations.
Definition: RVNGPresentationInterface.h:26
REVENGE_GENERATORS_API
#define REVENGE_GENERATORS_API
Definition: librevenge-generators-api.h:34
librevenge::RVNGPropertyList
Definition: RVNGPropertyList.h:38
librevenge::RVNGString
UTF-8 string.
Definition: RVNGString.h:33
librevenge-stream.h
librevenge::RVNGStringVector
Definition: RVNGStringVector.h:32