- Main Page
- Classes
- Files

- File List
- File Members

OdpGenerator.hxx
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- */
2 /* libodfgen
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 * Major Contributor(s):
10 * Copyright (C) 2006 Ariya Hidayat (ariya@kde.org)
11 *
12 * For minor contributions see the git repository.
13 *
14 * Alternatively, the contents of this file may be used under the terms
15 * of the GNU Lesser General Public License Version 2.1 or later
16 * (LGPLv2.1+), in which case the provisions of the LGPLv2.1+ are
17 * applicable instead of those above.
18 *
19 * For further information visit http://libwpd.sourceforge.net
20 */
21
22 /* "This product is not manufactured, approved, or supported by
23 * Corel Corporation or Corel Corporation Limited."
24 */
25 #ifndef LIBODFGEN_ODPGENERATOR_HXX_INCLUDED
26 #define LIBODFGEN_ODPGENERATOR_HXX_INCLUDED
27
28 #include <librevenge/librevenge.h>
29
30 #include "OdfDocumentHandler.hxx"
31
32 class OdfGenerator;
33 class OdpGeneratorPrivate;
34
40 class OdpGenerator : public librevenge::RVNGPresentationInterface
41 {
42 public:
43 OdpGenerator();
44 ~OdpGenerator();
45 void addDocumentHandler(OdfDocumentHandler *pHandler, const OdfStreamType streamType);
46 librevenge::RVNGStringVector getObjectNames() const;
47 bool getObjectContent(librevenge::RVNGString const &objectName, OdfDocumentHandler *pHandler);
48
49 void startDocument(const ::librevenge::RVNGPropertyList &propList);
50 void endDocument();
51 void setDocumentMetaData(const ::librevenge::RVNGPropertyList &propList);
52 void defineEmbeddedFont(const librevenge::RVNGPropertyList &propList);
53 void startSlide(const ::librevenge::RVNGPropertyList &propList);
54 void endSlide();
55 void startMasterSlide(const ::librevenge::RVNGPropertyList &propList);
56 void endMasterSlide();
57 void setSlideTransition(const ::librevenge::RVNGPropertyList &propList);
58 void startLayer(const ::librevenge::RVNGPropertyList &propList);
59 void endLayer();
60 void startEmbeddedGraphics(const ::librevenge::RVNGPropertyList &propList);
61 void endEmbeddedGraphics();
62 void openGroup(const ::librevenge::RVNGPropertyList &propList);
63 void closeGroup();
64
65 void setStyle(const ::librevenge::RVNGPropertyList &propList);
66
67 void drawRectangle(const ::librevenge::RVNGPropertyList &propList);
68 void drawEllipse(const ::librevenge::RVNGPropertyList &propList);
69 void drawPolyline(const ::librevenge::RVNGPropertyList &propList);
70 void drawPolygon(const ::librevenge::RVNGPropertyList &propList);
71 void drawPath(const ::librevenge::RVNGPropertyList &propList);
72 void drawGraphicObject(const ::librevenge::RVNGPropertyList &propList);
73 void drawConnector(const ::librevenge::RVNGPropertyList &propList);
74
75 void startTextObject(const ::librevenge::RVNGPropertyList &propList);
76 void endTextObject();
77 void defineParagraphStyle(const librevenge::RVNGPropertyList &propList);
78 void openParagraph(const ::librevenge::RVNGPropertyList &propList);
79 void closeParagraph();
80 void defineCharacterStyle(const librevenge::RVNGPropertyList &propList);
81 void openSpan(const ::librevenge::RVNGPropertyList &propList);
82 void closeSpan();
83
84 void openLink(const librevenge::RVNGPropertyList &propList);
85 void closeLink();
86
87 void insertText(const ::librevenge::RVNGString &str);
88 void insertTab();
89 void insertSpace();
90 void insertLineBreak();
91 void insertField(const ::librevenge::RVNGPropertyList &propList);
92
93 void openOrderedListLevel(const ::librevenge::RVNGPropertyList &propList);
94 void openUnorderedListLevel(const ::librevenge::RVNGPropertyList &propList);
95 void closeOrderedListLevel();
96 void closeUnorderedListLevel();
97 void openListElement(const ::librevenge::RVNGPropertyList &propList);
98 void closeListElement();
99
100 void startTableObject(const ::librevenge::RVNGPropertyList &propList);
101 void openTableRow(const ::librevenge::RVNGPropertyList &propList);
102 void closeTableRow();
103 void openTableCell(const ::librevenge::RVNGPropertyList &propList);
104 void closeTableCell();
105 void insertCoveredTableCell(const ::librevenge::RVNGPropertyList &propList);
106 void endTableObject();
107
108 void startComment(const ::librevenge::RVNGPropertyList &propList);
109 void endComment();
110
111 void startNotes(const ::librevenge::RVNGPropertyList &propList);
112 void endNotes();
113
114 void defineChartStyle(const ::librevenge::RVNGPropertyList &propList);
115 void openChart(const ::librevenge::RVNGPropertyList &propList);
116 void closeChart();
117 void openChartTextObject(const ::librevenge::RVNGPropertyList &propList);
118 void closeChartTextObject();
119 void openChartPlotArea(const ::librevenge::RVNGPropertyList &propList);
120 void closeChartPlotArea();
121 void insertChartAxis(const ::librevenge::RVNGPropertyList &propList);
122 void openChartSeries(const ::librevenge::RVNGPropertyList &propList);
123 void closeChartSeries();
124
125 void openAnimationSequence(const ::librevenge::RVNGPropertyList &propList);
126 void closeAnimationSequence();
127 void openAnimationGroup(const ::librevenge::RVNGPropertyList &propList);
128 void closeAnimationGroup();
129 void openAnimationIteration(const ::librevenge::RVNGPropertyList &propList);
130 void closeAnimationIteration();
131 void insertMotionAnimation(const ::librevenge::RVNGPropertyList &propList);
132 void insertColorAnimation(const ::librevenge::RVNGPropertyList &propList);
133 void insertAnimation(const ::librevenge::RVNGPropertyList &propList);
134 void insertEffect(const ::librevenge::RVNGPropertyList &propList);
135
142 void registerEmbeddedImageHandler(const librevenge::RVNGString &mimeType, OdfEmbeddedImage imageHandler);
149 void registerEmbeddedObjectHandler(const librevenge::RVNGString &mimeType, OdfEmbeddedObject objectHandler);
150
152 void initStateWith(OdfGenerator const &orig);
153 private:
154 // disable copying
155 OdpGenerator(OdpGenerator const &);
156 OdpGenerator &operator=(OdpGenerator const &);
157
158 OdpGeneratorPrivate *mpImpl;
159 };
160
161 #endif // LIBODFGEN_ODPGENERATOR_HXX_INCLUDED
162
163 /* vim:set shiftwidth=4 softtabstop=4 noexpandtab: */
OdpGenerator::registerEmbeddedObjectHandler
void registerEmbeddedObjectHandler(const librevenge::RVNGString &mimeType, OdfEmbeddedObject objectHandler)
Registers a handler for embedded objects.
OdpGenerator::endComment
void endComment()
OdpGenerator::startEmbeddedGraphics
void startEmbeddedGraphics(const ::librevenge::RVNGPropertyList &propList)
OdpGenerator::openAnimationIteration
void openAnimationIteration(const ::librevenge::RVNGPropertyList &propList)
OdpGenerator::insertField
void insertField(const ::librevenge::RVNGPropertyList &propList)
OdpGenerator::endMasterSlide
void endMasterSlide()
OdpGenerator::insertMotionAnimation
void insertMotionAnimation(const ::librevenge::RVNGPropertyList &propList)
OdpGenerator::closeTableRow
void closeTableRow()
OdpGenerator::drawConnector
void drawConnector(const ::librevenge::RVNGPropertyList &propList)
OdpGenerator::closeTableCell
void closeTableCell()
OdpGenerator::closeSpan
void closeSpan()
OdpGenerator::closeLink
void closeLink()
OdpGenerator::openAnimationGroup
void openAnimationGroup(const ::librevenge::RVNGPropertyList &propList)
OdpGenerator::closeListElement
void closeListElement()
OdpGenerator::openLink
void openLink(const librevenge::RVNGPropertyList &propList)
OdpGenerator::openTableRow
void openTableRow(const ::librevenge::RVNGPropertyList &propList)
OdpGenerator::openChart
void openChart(const ::librevenge::RVNGPropertyList &propList)
OdpGenerator::insertSpace
void insertSpace()
OdpGenerator::drawPath
void drawPath(const ::librevenge::RVNGPropertyList &propList)
OdpGenerator::insertAnimation
void insertAnimation(const ::librevenge::RVNGPropertyList &propList)
OdpGenerator::openUnorderedListLevel
void openUnorderedListLevel(const ::librevenge::RVNGPropertyList &propList)
OdpGenerator::drawPolygon
void drawPolygon(const ::librevenge::RVNGPropertyList &propList)
OdpGenerator::endNotes
void endNotes()
OdpGenerator::openSpan
void openSpan(const ::librevenge::RVNGPropertyList &propList)
OdpGenerator::defineCharacterStyle
void defineCharacterStyle(const librevenge::RVNGPropertyList &propList)
OdpGenerator::insertText
void insertText(const ::librevenge::RVNGString &str)
OdpGenerator::initStateWith
void initStateWith(OdfGenerator const &orig)
retrieve data from another odfgenerator ( the list and the embedded handler)
OdpGenerator::registerEmbeddedImageHandler
void registerEmbeddedImageHandler(const librevenge::RVNGString &mimeType, OdfEmbeddedImage imageHandler)
Registers a handler for embedded images.
OdpGenerator::openListElement
void openListElement(const ::librevenge::RVNGPropertyList &propList)
OdpGenerator::openChartSeries
void openChartSeries(const ::librevenge::RVNGPropertyList &propList)
OdpGenerator::closeParagraph
void closeParagraph()
OdpGenerator::addDocumentHandler
void addDocumentHandler(OdfDocumentHandler *pHandler, const OdfStreamType streamType)
OdpGenerator::startMasterSlide
void startMasterSlide(const ::librevenge::RVNGPropertyList &propList)
OdfDocumentHandler
XML writer.
Definition: OdfDocumentHandler.hxx:60
OdpGenerator::insertChartAxis
void insertChartAxis(const ::librevenge::RVNGPropertyList &propList)
OdpGenerator::setStyle
void setStyle(const ::librevenge::RVNGPropertyList &propList)
OdpGenerator::closeAnimationSequence
void closeAnimationSequence()
OdpGenerator::insertEffect
void insertEffect(const ::librevenge::RVNGPropertyList &propList)
OdpGenerator::insertColorAnimation
void insertColorAnimation(const ::librevenge::RVNGPropertyList &propList)
OdpGenerator::endLayer
void endLayer()
OdpGenerator::startLayer
void startLayer(const ::librevenge::RVNGPropertyList &propList)
OdpGenerator::operator=
OdpGenerator & operator=(OdpGenerator const &)
OdpGenerator::endDocument
void endDocument()
OdpGenerator::openGroup
void openGroup(const ::librevenge::RVNGPropertyList &propList)
OdpGenerator::closeUnorderedListLevel
void closeUnorderedListLevel()
OdpGenerator::mpImpl
OdpGeneratorPrivate * mpImpl
Definition: OdpGenerator.hxx:158
OdpGenerator::closeChart
void closeChart()
OdpGenerator::endTextObject
void endTextObject()
OdpGenerator::closeAnimationGroup
void closeAnimationGroup()
OdpGenerator::startComment
void startComment(const ::librevenge::RVNGPropertyList &propList)
OdpGenerator::closeAnimationIteration
void closeAnimationIteration()
OdfStreamType
OdfStreamType
Type of ODF content a generator should produce.
Definition: OdfDocumentHandler.hxx:33
OdpGenerator::drawGraphicObject
void drawGraphicObject(const ::librevenge::RVNGPropertyList &propList)
OdpGenerator::getObjectNames
librevenge::RVNGStringVector getObjectNames() const
OdpGenerator::closeChartPlotArea
void closeChartPlotArea()
OdpGenerator::defineEmbeddedFont
void defineEmbeddedFont(const librevenge::RVNGPropertyList &propList)
OdpGenerator::openTableCell
void openTableCell(const ::librevenge::RVNGPropertyList &propList)
OdpGenerator::drawRectangle
void drawRectangle(const ::librevenge::RVNGPropertyList &propList)
OdpGenerator::endSlide
void endSlide()
OdpGenerator::endTableObject
void endTableObject()
OdpGenerator::startSlide
void startSlide(const ::librevenge::RVNGPropertyList &propList)
OdpGenerator::insertTab
void insertTab()
OdpGenerator::defineParagraphStyle
void defineParagraphStyle(const librevenge::RVNGPropertyList &propList)
OdpGenerator::defineChartStyle
void defineChartStyle(const ::librevenge::RVNGPropertyList &propList)
OdpGenerator::startNotes
void startNotes(const ::librevenge::RVNGPropertyList &propList)
OdpGenerator::insertCoveredTableCell
void insertCoveredTableCell(const ::librevenge::RVNGPropertyList &propList)
OdpGenerator::setDocumentMetaData
void setDocumentMetaData(const ::librevenge::RVNGPropertyList &propList)
OdpGenerator::endEmbeddedGraphics
void endEmbeddedGraphics()
OdpGenerator::insertLineBreak
void insertLineBreak()
OdpGenerator::startTextObject
void startTextObject(const ::librevenge::RVNGPropertyList &propList)
OdpGenerator::openParagraph
void openParagraph(const ::librevenge::RVNGPropertyList &propList)
OdpGenerator::openChartTextObject
void openChartTextObject(const ::librevenge::RVNGPropertyList &propList)
OdpGenerator
A generator for presentations.
Definition: OdpGenerator.hxx:40
OdpGenerator::startTableObject
void startTableObject(const ::librevenge::RVNGPropertyList &propList)
OdpGenerator::startDocument
void startDocument(const ::librevenge::RVNGPropertyList &propList)
OdfEmbeddedImage
bool(* OdfEmbeddedImage)(const librevenge::RVNGBinaryData &input, librevenge::RVNGBinaryData &output)
Handler for embedded images.
Definition: OdfDocumentHandler.hxx:51
OdpGenerator::closeChartSeries
void closeChartSeries()
OdpGenerator::OdpGenerator
OdpGenerator()
OdpGenerator::openAnimationSequence
void openAnimationSequence(const ::librevenge::RVNGPropertyList &propList)
OdpGenerator::~OdpGenerator
~OdpGenerator()
OdpGenerator::closeOrderedListLevel
void closeOrderedListLevel()
OdpGenerator::openChartPlotArea
void openChartPlotArea(const ::librevenge::RVNGPropertyList &propList)
OdfDocumentHandler.hxx
OdpGenerator::setSlideTransition
void setSlideTransition(const ::librevenge::RVNGPropertyList &propList)
OdpGenerator::getObjectContent
bool getObjectContent(librevenge::RVNGString const &objectName, OdfDocumentHandler *pHandler)
OdpGenerator::closeGroup
void closeGroup()
OdpGenerator::openOrderedListLevel
void openOrderedListLevel(const ::librevenge::RVNGPropertyList &propList)
OdpGenerator::drawEllipse
void drawEllipse(const ::librevenge::RVNGPropertyList &propList)
OdfEmbeddedObject
bool(* OdfEmbeddedObject)(const librevenge::RVNGBinaryData &data, OdfDocumentHandler *pHandler, const OdfStreamType streamType)
Handler for embedded objects.
Definition: OdfDocumentHandler.hxx:43
OdpGenerator::drawPolyline
void drawPolyline(const ::librevenge::RVNGPropertyList &propList)
OdpGenerator::closeChartTextObject
void closeChartTextObject()