RVNGRawPresentationGenerator.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 RVNGRAWPRESENTATIONGENERATOR_H
16#define RVNGRAWPRESENTATIONGENERATOR_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 RVNGRawPresentationGeneratorImpl;
27
28 class REVENGE_GENERATORS_API RVNGRawPresentationGenerator : public RVNGPresentationInterface
29{
30 // disable copying
31 RVNGRawPresentationGenerator(const RVNGRawPresentationGenerator &other);
32 RVNGRawPresentationGenerator &operator=(const RVNGRawPresentationGenerator &other);
33
34 public:
35 explicit RVNGRawPresentationGenerator(bool printCallgraphScore);
36 ~RVNGRawPresentationGenerator();
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 RVNGRawPresentationGeneratorImpl *m_impl;
128};
129
130}
131
132#endif // RVNGRAWPRESENTATIONGENERATOR_H
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::RVNGRawPresentationGenerator::insertTab
void insertTab()
Called when a TAB character should be inserted.
Definition RVNGRawPresentationGenerator.cpp:261
librevenge::RVNGRawPresentationGenerator::closeChartSeries
void closeChartSeries()
Called when a serie should be closed (in a plot area).
Definition RVNGRawPresentationGenerator.cpp:444
librevenge::RVNGRawPresentationGenerator::insertLineBreak
void insertLineBreak()
Called when a line break should be inserted.
Definition RVNGRawPresentationGenerator.cpp:277
librevenge::RVNGRawPresentationGenerator::endComment
void endComment()
End a comment.
Definition RVNGRawPresentationGenerator.cpp:373
librevenge::RVNGRawPresentationGenerator::drawPath
void drawPath(const RVNGPropertyList &propList)
Definition RVNGRawPresentationGenerator.cpp:177
librevenge::RVNGRawPresentationGenerator::startEmbeddedGraphics
void startEmbeddedGraphics(const RVNGPropertyList &propList)
Definition RVNGRawPresentationGenerator.cpp:115
librevenge::RVNGRawPresentationGenerator::RVNGRawPresentationGenerator
RVNGRawPresentationGenerator(const RVNGRawPresentationGenerator &other)
librevenge::RVNGRawPresentationGenerator::startComment
void startComment(const RVNGPropertyList &propList)
Start a comment.
Definition RVNGRawPresentationGenerator.cpp:367
librevenge::RVNGRawPresentationGenerator::closeChart
void closeChart()
Called when a chart should be closed.
Definition RVNGRawPresentationGenerator.cpp:403
librevenge::RVNGRawPresentationGenerator::openChartSeries
void openChartSeries(const librevenge::RVNGPropertyList &propList)
Called when a serie should be opened (in a plot area).
Definition RVNGRawPresentationGenerator.cpp:438
librevenge::RVNGRawPresentationGenerator::drawPolygon
void drawPolygon(const RVNGPropertyList &propList)
Definition RVNGRawPresentationGenerator.cpp:169
librevenge::RVNGRawPresentationGenerator::startDocument
void startDocument(const RVNGPropertyList &propList)
Definition RVNGRawPresentationGenerator.cpp:47
librevenge::RVNGRawPresentationGenerator::startSlide
void startSlide(const RVNGPropertyList &propList)
Definition RVNGRawPresentationGenerator.cpp:74
librevenge::RVNGRawPresentationGenerator::insertCoveredTableCell
void insertCoveredTableCell(const RVNGPropertyList &propList)
Called when a covered (spanned by another cell in the table) table cell is opened.
Definition RVNGRawPresentationGenerator.cpp:354
librevenge::RVNGRawPresentationGenerator::openListElement
void openListElement(const RVNGPropertyList &propList)
Called when a list element should be opened.
Definition RVNGRawPresentationGenerator.cpp:317
librevenge::RVNGRawPresentationGenerator::drawConnector
void drawConnector(const RVNGPropertyList &propList)
Draw a connector.
Definition RVNGRawPresentationGenerator.cpp:193
librevenge::RVNGRawPresentationGenerator::closeGroup
void closeGroup()
Definition RVNGRawPresentationGenerator.cpp:132
librevenge::RVNGRawPresentationGenerator::defineChartStyle
void defineChartStyle(const RVNGPropertyList &propList)
Definition RVNGRawPresentationGenerator.cpp:389
librevenge::RVNGRawPresentationGenerator::insertColorAnimation
void insertColorAnimation(const RVNGPropertyList &propList)
Insert an animation that changes color of the target object.
Definition RVNGRawPresentationGenerator.cpp:490
librevenge::RVNGRawPresentationGenerator::closeTableCell
void closeTableCell()
Called when the current table cell is closed.
Definition RVNGRawPresentationGenerator.cpp:349
librevenge::RVNGRawPresentationGenerator::insertChartAxis
void insertChartAxis(const RVNGPropertyList &propList)
Called when a axis should be add in a plot area.
Definition RVNGRawPresentationGenerator.cpp:430
librevenge::RVNGRawPresentationGenerator::defineParagraphStyle
void defineParagraphStyle(const RVNGPropertyList &propList)
Definition RVNGRawPresentationGenerator.cpp:211
librevenge::RVNGRawPresentationGenerator::startMasterSlide
void startMasterSlide(const RVNGPropertyList &propList)
Definition RVNGRawPresentationGenerator.cpp:85
librevenge::RVNGRawPresentationGenerator::openTableCell
void openTableCell(const RVNGPropertyList &propList)
Called when a new table cell is opened.
Definition RVNGRawPresentationGenerator.cpp:343
librevenge::RVNGRawPresentationGenerator::endSlide
void endSlide()
Definition RVNGRawPresentationGenerator.cpp:80
librevenge::RVNGRawPresentationGenerator::startTextObject
void startTextObject(const RVNGPropertyList &propList)
Start a text object.
Definition RVNGRawPresentationGenerator.cpp:201
librevenge::RVNGRawPresentationGenerator::closeAnimationSequence
void closeAnimationSequence()
Definition RVNGRawPresentationGenerator.cpp:455
librevenge::RVNGRawPresentationGenerator::closeUnorderedListLevel
void closeUnorderedListLevel()
Called when an ununordered list level should be closed.
Definition RVNGRawPresentationGenerator.cpp:311
librevenge::RVNGRawPresentationGenerator::closeListElement
void closeListElement()
Called when a list element should be closed.
Definition RVNGRawPresentationGenerator.cpp:322
librevenge::RVNGRawPresentationGenerator::closeOrderedListLevel
void closeOrderedListLevel()
Called when an unordered list level should be closed.
Definition RVNGRawPresentationGenerator.cpp:305
librevenge::RVNGRawPresentationGenerator::insertEffect
void insertEffect(const RVNGPropertyList &propList)
Set one-time animation effect on the target object.
Definition RVNGRawPresentationGenerator.cpp:506
librevenge::RVNGRawPresentationGenerator::insertField
void insertField(const RVNGPropertyList &propList)
Called when a field should be inserted.
Definition RVNGRawPresentationGenerator.cpp:285
librevenge::RVNGRawPresentationGenerator::drawEllipse
void drawEllipse(const RVNGPropertyList &propList)
Definition RVNGRawPresentationGenerator.cpp:153
librevenge::RVNGRawPresentationGenerator::drawGraphicObject
void drawGraphicObject(const RVNGPropertyList &propList)
Called when a binary/raster object should be inserted.
Definition RVNGRawPresentationGenerator.cpp:185
librevenge::RVNGRawPresentationGenerator::startLayer
void startLayer(const RVNGPropertyList &propList)
Definition RVNGRawPresentationGenerator.cpp:104
librevenge::RVNGRawPresentationGenerator::drawRectangle
void drawRectangle(const RVNGPropertyList &propList)
Definition RVNGRawPresentationGenerator.cpp:145
librevenge::RVNGRawPresentationGenerator::closeChartPlotArea
void closeChartPlotArea()
Called when a chart plot arre should be closed.
Definition RVNGRawPresentationGenerator.cpp:425
librevenge::RVNGRawPresentationGenerator::endEmbeddedGraphics
void endEmbeddedGraphics()
Definition RVNGRawPresentationGenerator.cpp:121
librevenge::RVNGRawPresentationGenerator::insertText
void insertText(const RVNGString &str)
Called when a string of text should be inserted.
Definition RVNGRawPresentationGenerator.cpp:253
librevenge::RVNGRawPresentationGenerator::openChartTextObject
void openChartTextObject(const RVNGPropertyList &propList)
Called when a chart text zone:label/legend/title/subtitle/footer should be opened.
Definition RVNGRawPresentationGenerator.cpp:408
librevenge::RVNGRawPresentationGenerator::closeAnimationIteration
void closeAnimationIteration()
Definition RVNGRawPresentationGenerator.cpp:477
librevenge::RVNGRawPresentationGenerator::openOrderedListLevel
void openOrderedListLevel(const RVNGPropertyList &propList)
Called when a new ordered list level should be opened.
Definition RVNGRawPresentationGenerator.cpp:293
librevenge::RVNGRawPresentationGenerator::endNotes
void endNotes()
End slide notes.
Definition RVNGRawPresentationGenerator.cpp:384
librevenge::RVNGRawPresentationGenerator::insertAnimation
void insertAnimation(const RVNGPropertyList &propList)
Insert a generic animation.
Definition RVNGRawPresentationGenerator.cpp:498
librevenge::RVNGRawPresentationGenerator::openLink
void openLink(const RVNGPropertyList &propList)
Called when a link should be opened.
Definition RVNGRawPresentationGenerator.cpp:242
librevenge::RVNGRawPresentationGenerator::closeLink
void closeLink()
Called when the current link is closed.
Definition RVNGRawPresentationGenerator.cpp:248
librevenge::RVNGRawPresentationGenerator::closeSpan
void closeSpan()
Called when a text span is closed.
Definition RVNGRawPresentationGenerator.cpp:237
librevenge::RVNGRawPresentationGenerator::openAnimationSequence
void openAnimationSequence(const RVNGPropertyList &propList)
Called when a set of animations should be applied one after another.
Definition RVNGRawPresentationGenerator.cpp:449
librevenge::RVNGRawPresentationGenerator::closeTableRow
void closeTableRow()
Called when the current table row is closed.
Definition RVNGRawPresentationGenerator.cpp:338
librevenge::RVNGRawPresentationGenerator::openGroup
void openGroup(const RVNGPropertyList &propList)
Definition RVNGRawPresentationGenerator.cpp:126
librevenge::RVNGRawPresentationGenerator::drawPolyline
void drawPolyline(const RVNGPropertyList &propList)
Definition RVNGRawPresentationGenerator.cpp:161
librevenge::RVNGRawPresentationGenerator::startTableObject
void startTableObject(const RVNGPropertyList &propList)
Called when a table should be opened.
Definition RVNGRawPresentationGenerator.cpp:327
librevenge::RVNGRawPresentationGenerator::operator=
RVNGRawPresentationGenerator & operator=(const RVNGRawPresentationGenerator &other)
librevenge::RVNGRawPresentationGenerator::closeChartTextObject
void closeChartTextObject()
Called when a chart text zone:legend/title/subtitle/footer should be closed.
Definition RVNGRawPresentationGenerator.cpp:414
librevenge::RVNGRawPresentationGenerator::startNotes
void startNotes(const RVNGPropertyList &propList)
Start slide notes.
Definition RVNGRawPresentationGenerator.cpp:378
librevenge::RVNGRawPresentationGenerator::endTableObject
void endTableObject()
Called when the current table is closed.
Definition RVNGRawPresentationGenerator.cpp:362
librevenge::RVNGRawPresentationGenerator::setStyle
void setStyle(const RVNGPropertyList &propList)
Definition RVNGRawPresentationGenerator.cpp:137
librevenge::RVNGRawPresentationGenerator::openParagraph
void openParagraph(const RVNGPropertyList &propList)
Called when a new paragraph is opened.
Definition RVNGRawPresentationGenerator.cpp:216
librevenge::RVNGRawPresentationGenerator::openChartPlotArea
void openChartPlotArea(const RVNGPropertyList &propList)
Called when a chart plot area should be opened.
Definition RVNGRawPresentationGenerator.cpp:419
librevenge::RVNGRawPresentationGenerator::endDocument
void endDocument()
Definition RVNGRawPresentationGenerator.cpp:53
librevenge::RVNGRawPresentationGenerator::insertMotionAnimation
void insertMotionAnimation(const RVNGPropertyList &propList)
Insert an animation that moves the target object along a specified path.
Definition RVNGRawPresentationGenerator.cpp:482
librevenge::RVNGRawPresentationGenerator::openTableRow
void openTableRow(const RVNGPropertyList &propList)
Called when a new table row is opened.
Definition RVNGRawPresentationGenerator.cpp:332
librevenge::RVNGRawPresentationGenerator::openUnorderedListLevel
void openUnorderedListLevel(const RVNGPropertyList &propList)
Called when a new unordered list level should be opened.
Definition RVNGRawPresentationGenerator.cpp:299
librevenge::RVNGRawPresentationGenerator::endLayer
void endLayer()
Definition RVNGRawPresentationGenerator.cpp:110
librevenge::RVNGRawPresentationGenerator::setSlideTransition
void setSlideTransition(const RVNGPropertyList &propList)
Called when a transition should be added to the current slide.
Definition RVNGRawPresentationGenerator.cpp:96
librevenge::RVNGRawPresentationGenerator::openAnimationIteration
void openAnimationIteration(const RVNGPropertyList &propList)
Definition RVNGRawPresentationGenerator.cpp:471
librevenge::RVNGRawPresentationGenerator::setDocumentMetaData
void setDocumentMetaData(const RVNGPropertyList &propList)
Called when all document metadata should be set.
Definition RVNGRawPresentationGenerator.cpp:58
librevenge::RVNGRawPresentationGenerator::openSpan
void openSpan(const RVNGPropertyList &propList)
Called when a text span is opened.
Definition RVNGRawPresentationGenerator.cpp:231
librevenge::RVNGRawPresentationGenerator::endMasterSlide
void endMasterSlide()
Definition RVNGRawPresentationGenerator.cpp:91
librevenge::RVNGRawPresentationGenerator::defineCharacterStyle
void defineCharacterStyle(const RVNGPropertyList &propList)
Definition RVNGRawPresentationGenerator.cpp:226
librevenge::RVNGRawPresentationGenerator::defineEmbeddedFont
void defineEmbeddedFont(const RVNGPropertyList &propList)
Called when an embedded font should be defined.
Definition RVNGRawPresentationGenerator.cpp:66
librevenge::RVNGRawPresentationGenerator::openAnimationGroup
void openAnimationGroup(const RVNGPropertyList &propList)
Called when a set of animations should be applied in parallel.
Definition RVNGRawPresentationGenerator.cpp:460
librevenge::RVNGRawPresentationGenerator::openChart
void openChart(const RVNGPropertyList &propList)
Called when a chart should be opened.
Definition RVNGRawPresentationGenerator.cpp:397
librevenge::RVNGRawPresentationGenerator::endTextObject
void endTextObject()
End a text object.
Definition RVNGRawPresentationGenerator.cpp:206
librevenge::RVNGRawPresentationGenerator::m_impl
RVNGRawPresentationGeneratorImpl * m_impl
Definition RVNGRawPresentationGenerator.h:127
librevenge::RVNGRawPresentationGenerator::closeParagraph
void closeParagraph()
Called when a paragraph is closed.
Definition RVNGRawPresentationGenerator.cpp:221
librevenge::RVNGRawPresentationGenerator::closeAnimationGroup
void closeAnimationGroup()
Definition RVNGRawPresentationGenerator.cpp:466
librevenge::RVNGRawPresentationGenerator::insertSpace
void insertSpace()
Called when an explicit space should be inserted.
Definition RVNGRawPresentationGenerator.cpp:269
librevenge::RVNGString
UTF-8 string.
Definition RVNGString.h:34
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::RVNGRawPresentationGeneratorImpl
Definition RVNGRawPresentationGenerator.cpp:25