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 "libodfgen-api.hxx"
31#include "OdfDocumentHandler.hxx"
32
33 class OdfGenerator;
34 class OdpGeneratorPrivate;
35
41 class ODFGENAPI OdpGenerator : public librevenge::RVNGPresentationInterface
42{
43 public:
44 OdpGenerator();
45 ~OdpGenerator() override;
46 void addDocumentHandler(OdfDocumentHandler *pHandler, const OdfStreamType streamType);
47 librevenge::RVNGStringVector getObjectNames() const;
48 bool getObjectContent(librevenge::RVNGString const &objectName, OdfDocumentHandler *pHandler);
49
50 void startDocument(const ::librevenge::RVNGPropertyList &propList) override;
51 void endDocument() override;
52 void setDocumentMetaData(const ::librevenge::RVNGPropertyList &propList) override;
53 void defineEmbeddedFont(const librevenge::RVNGPropertyList &propList) override;
54 void startSlide(const ::librevenge::RVNGPropertyList &propList) override;
55 void endSlide() override;
56 void startMasterSlide(const ::librevenge::RVNGPropertyList &propList) override;
57 void endMasterSlide() override;
58 void setSlideTransition(const ::librevenge::RVNGPropertyList &propList) override;
59 void startLayer(const ::librevenge::RVNGPropertyList &propList) override;
60 void endLayer() override;
61 void startEmbeddedGraphics(const ::librevenge::RVNGPropertyList &propList) override;
62 void endEmbeddedGraphics() override;
63 void openGroup(const ::librevenge::RVNGPropertyList &propList) override;
64 void closeGroup() override;
65
66 void setStyle(const ::librevenge::RVNGPropertyList &propList) override;
67
68 void drawRectangle(const ::librevenge::RVNGPropertyList &propList) override;
69 void drawEllipse(const ::librevenge::RVNGPropertyList &propList) override;
70 void drawPolyline(const ::librevenge::RVNGPropertyList &propList) override;
71 void drawPolygon(const ::librevenge::RVNGPropertyList &propList) override;
72 void drawPath(const ::librevenge::RVNGPropertyList &propList) override;
73 void drawGraphicObject(const ::librevenge::RVNGPropertyList &propList) override;
74 void drawConnector(const ::librevenge::RVNGPropertyList &propList) override;
75
76 void startTextObject(const ::librevenge::RVNGPropertyList &propList) override;
77 void endTextObject() override;
78 void defineParagraphStyle(const librevenge::RVNGPropertyList &propList) override;
79 void openParagraph(const ::librevenge::RVNGPropertyList &propList) override;
80 void closeParagraph() override;
81 void defineCharacterStyle(const librevenge::RVNGPropertyList &propList) override;
82 void openSpan(const ::librevenge::RVNGPropertyList &propList) override;
83 void closeSpan() override;
84
85 void openLink(const librevenge::RVNGPropertyList &propList) override;
86 void closeLink() override;
87
88 void insertText(const ::librevenge::RVNGString &str) override;
89 void insertTab() override;
90 void insertSpace() override;
91 void insertLineBreak() override;
92 void insertField(const ::librevenge::RVNGPropertyList &propList) override;
93
94 void openOrderedListLevel(const ::librevenge::RVNGPropertyList &propList) override;
95 void openUnorderedListLevel(const ::librevenge::RVNGPropertyList &propList) override;
96 void closeOrderedListLevel() override;
97 void closeUnorderedListLevel() override;
98 void openListElement(const ::librevenge::RVNGPropertyList &propList) override;
99 void closeListElement() override;
100
101 void startTableObject(const ::librevenge::RVNGPropertyList &propList) override;
102 void openTableRow(const ::librevenge::RVNGPropertyList &propList) override;
103 void closeTableRow() override;
104 void openTableCell(const ::librevenge::RVNGPropertyList &propList) override;
105 void closeTableCell() override;
106 void insertCoveredTableCell(const ::librevenge::RVNGPropertyList &propList) override;
107 void endTableObject() override;
108
109 void startComment(const ::librevenge::RVNGPropertyList &propList) override;
110 void endComment() override;
111
112 void startNotes(const ::librevenge::RVNGPropertyList &propList) override;
113 void endNotes() override;
114
115 void defineChartStyle(const ::librevenge::RVNGPropertyList &propList) override;
116 void openChart(const ::librevenge::RVNGPropertyList &propList) override;
117 void closeChart() override;
118 void openChartTextObject(const ::librevenge::RVNGPropertyList &propList) override;
119 void closeChartTextObject() override;
120 void openChartPlotArea(const ::librevenge::RVNGPropertyList &propList) override;
121 void closeChartPlotArea() override;
122 void insertChartAxis(const ::librevenge::RVNGPropertyList &propList) override;
123 void openChartSeries(const ::librevenge::RVNGPropertyList &propList) override;
124 void closeChartSeries() override;
125
126 void openAnimationSequence(const ::librevenge::RVNGPropertyList &propList) override;
127 void closeAnimationSequence() override;
128 void openAnimationGroup(const ::librevenge::RVNGPropertyList &propList) override;
129 void closeAnimationGroup() override;
130 void openAnimationIteration(const ::librevenge::RVNGPropertyList &propList) override;
131 void closeAnimationIteration() override;
132 void insertMotionAnimation(const ::librevenge::RVNGPropertyList &propList) override;
133 void insertColorAnimation(const ::librevenge::RVNGPropertyList &propList) override;
134 void insertAnimation(const ::librevenge::RVNGPropertyList &propList) override;
135 void insertEffect(const ::librevenge::RVNGPropertyList &propList) override;
136
143 void registerEmbeddedImageHandler(const librevenge::RVNGString &mimeType, OdfEmbeddedImage imageHandler);
150 void registerEmbeddedObjectHandler(const librevenge::RVNGString &mimeType, OdfEmbeddedObject objectHandler);
151
153 void initStateWith(OdfGenerator const &orig);
154 private:
155 // disable copying
156 OdpGenerator(OdpGenerator const &);
157 OdpGenerator &operator=(OdpGenerator const &);
158
159 OdpGeneratorPrivate *mpImpl;
160};
161
162#endif // LIBODFGEN_ODPGENERATOR_HXX_INCLUDED
163
164/* vim:set shiftwidth=4 softtabstop=4 noexpandtab: */
OdfDocumentHandler.hxx
OdfStreamType
OdfStreamType
Type of ODF content a generator should produce.
Definition OdfDocumentHandler.hxx:35
OdfEmbeddedObject
bool(* OdfEmbeddedObject)(const librevenge::RVNGBinaryData &data, OdfDocumentHandler *pHandler, const OdfStreamType streamType)
Handler for embedded objects.
Definition OdfDocumentHandler.hxx:45
OdfEmbeddedImage
bool(* OdfEmbeddedImage)(const librevenge::RVNGBinaryData &input, librevenge::RVNGBinaryData &output)
Handler for embedded images.
Definition OdfDocumentHandler.hxx:56
OdfDocumentHandler
XML writer.
Definition OdfDocumentHandler.hxx:66
OdpGenerator
A generator for presentations.
Definition OdpGenerator.hxx:42
OdpGenerator::insertCoveredTableCell
void insertCoveredTableCell(const ::librevenge::RVNGPropertyList &propList) override
OdpGenerator::defineCharacterStyle
void defineCharacterStyle(const librevenge::RVNGPropertyList &propList) override
OdpGenerator::registerEmbeddedObjectHandler
void registerEmbeddedObjectHandler(const librevenge::RVNGString &mimeType, OdfEmbeddedObject objectHandler)
Registers a handler for embedded objects.
OdpGenerator::insertMotionAnimation
void insertMotionAnimation(const ::librevenge::RVNGPropertyList &propList) override
OdpGenerator::registerEmbeddedImageHandler
void registerEmbeddedImageHandler(const librevenge::RVNGString &mimeType, OdfEmbeddedImage imageHandler)
Registers a handler for embedded images.
OdpGenerator::startTableObject
void startTableObject(const ::librevenge::RVNGPropertyList &propList) override
OdpGenerator::openAnimationGroup
void openAnimationGroup(const ::librevenge::RVNGPropertyList &propList) override
OdpGenerator::drawPath
void drawPath(const ::librevenge::RVNGPropertyList &propList) override
OdpGenerator::OdpGenerator
OdpGenerator(OdpGenerator const &)
OdpGenerator::closeAnimationIteration
void closeAnimationIteration() override
OdpGenerator::endMasterSlide
void endMasterSlide() override
OdpGenerator::endNotes
void endNotes() override
OdpGenerator::openSpan
void openSpan(const ::librevenge::RVNGPropertyList &propList) override
OdpGenerator::insertField
void insertField(const ::librevenge::RVNGPropertyList &propList) override
OdpGenerator::endSlide
void endSlide() override
OdpGenerator::getObjectNames
librevenge::RVNGStringVector getObjectNames() const
OdpGenerator::openOrderedListLevel
void openOrderedListLevel(const ::librevenge::RVNGPropertyList &propList) override
OdpGenerator::endComment
void endComment() override
OdpGenerator::closeChartPlotArea
void closeChartPlotArea() override
OdpGenerator::insertAnimation
void insertAnimation(const ::librevenge::RVNGPropertyList &propList) override
OdpGenerator::insertChartAxis
void insertChartAxis(const ::librevenge::RVNGPropertyList &propList) override
OdpGenerator::closeTableCell
void closeTableCell() override
OdpGenerator::operator=
OdpGenerator & operator=(OdpGenerator const &)
OdpGenerator::closeAnimationSequence
void closeAnimationSequence() override
OdpGenerator::openAnimationSequence
void openAnimationSequence(const ::librevenge::RVNGPropertyList &propList) override
OdpGenerator::initStateWith
void initStateWith(OdfGenerator const &orig)
retrieve data from another odfgenerator ( the list and the embedded handler)
OdpGenerator::closeParagraph
void closeParagraph() override
OdpGenerator::closeGroup
void closeGroup() override
OdpGenerator::insertLineBreak
void insertLineBreak() override
OdpGenerator::startLayer
void startLayer(const ::librevenge::RVNGPropertyList &propList) override
OdpGenerator::insertColorAnimation
void insertColorAnimation(const ::librevenge::RVNGPropertyList &propList) override
OdpGenerator::openTableCell
void openTableCell(const ::librevenge::RVNGPropertyList &propList) override
OdpGenerator::drawGraphicObject
void drawGraphicObject(const ::librevenge::RVNGPropertyList &propList) override
OdpGenerator::setDocumentMetaData
void setDocumentMetaData(const ::librevenge::RVNGPropertyList &propList) override
OdpGenerator::startComment
void startComment(const ::librevenge::RVNGPropertyList &propList) override
OdpGenerator::endDocument
void endDocument() override
OdpGenerator::openChartPlotArea
void openChartPlotArea(const ::librevenge::RVNGPropertyList &propList) override
OdpGenerator::closeSpan
void closeSpan() override
OdpGenerator::closeChart
void closeChart() override
OdpGenerator::endTableObject
void endTableObject() override
OdpGenerator::OdpGenerator
OdpGenerator()
OdpGenerator::openLink
void openLink(const librevenge::RVNGPropertyList &propList) override
OdpGenerator::closeTableRow
void closeTableRow() override
OdpGenerator::~OdpGenerator
~OdpGenerator() override
OdpGenerator::closeListElement
void closeListElement() override
OdpGenerator::startMasterSlide
void startMasterSlide(const ::librevenge::RVNGPropertyList &propList) override
OdpGenerator::endEmbeddedGraphics
void endEmbeddedGraphics() override
OdpGenerator::defineChartStyle
void defineChartStyle(const ::librevenge::RVNGPropertyList &propList) override
OdpGenerator::endLayer
void endLayer() override
OdpGenerator::startSlide
void startSlide(const ::librevenge::RVNGPropertyList &propList) override
OdpGenerator::openUnorderedListLevel
void openUnorderedListLevel(const ::librevenge::RVNGPropertyList &propList) override
OdpGenerator::closeChartSeries
void closeChartSeries() override
OdpGenerator::startDocument
void startDocument(const ::librevenge::RVNGPropertyList &propList) override
OdpGenerator::defineParagraphStyle
void defineParagraphStyle(const librevenge::RVNGPropertyList &propList) override
OdpGenerator::closeUnorderedListLevel
void closeUnorderedListLevel() override
OdpGenerator::openListElement
void openListElement(const ::librevenge::RVNGPropertyList &propList) override
OdpGenerator::insertEffect
void insertEffect(const ::librevenge::RVNGPropertyList &propList) override
OdpGenerator::closeLink
void closeLink() override
OdpGenerator::setStyle
void setStyle(const ::librevenge::RVNGPropertyList &propList) override
OdpGenerator::insertTab
void insertTab() override
OdpGenerator::closeOrderedListLevel
void closeOrderedListLevel() override
OdpGenerator::startEmbeddedGraphics
void startEmbeddedGraphics(const ::librevenge::RVNGPropertyList &propList) override
OdpGenerator::mpImpl
OdpGeneratorPrivate * mpImpl
Definition OdpGenerator.hxx:159
OdpGenerator::drawPolygon
void drawPolygon(const ::librevenge::RVNGPropertyList &propList) override
OdpGenerator::addDocumentHandler
void addDocumentHandler(OdfDocumentHandler *pHandler, const OdfStreamType streamType)
OdpGenerator::setSlideTransition
void setSlideTransition(const ::librevenge::RVNGPropertyList &propList) override
OdpGenerator::openChartSeries
void openChartSeries(const ::librevenge::RVNGPropertyList &propList) override
OdpGenerator::openChart
void openChart(const ::librevenge::RVNGPropertyList &propList) override
OdpGenerator::drawPolyline
void drawPolyline(const ::librevenge::RVNGPropertyList &propList) override
OdpGenerator::drawRectangle
void drawRectangle(const ::librevenge::RVNGPropertyList &propList) override
OdpGenerator::closeAnimationGroup
void closeAnimationGroup() override
OdpGenerator::insertSpace
void insertSpace() override
OdpGenerator::drawConnector
void drawConnector(const ::librevenge::RVNGPropertyList &propList) override
OdpGenerator::startNotes
void startNotes(const ::librevenge::RVNGPropertyList &propList) override
OdpGenerator::openChartTextObject
void openChartTextObject(const ::librevenge::RVNGPropertyList &propList) override
OdpGenerator::startTextObject
void startTextObject(const ::librevenge::RVNGPropertyList &propList) override
OdpGenerator::drawEllipse
void drawEllipse(const ::librevenge::RVNGPropertyList &propList) override
OdpGenerator::openParagraph
void openParagraph(const ::librevenge::RVNGPropertyList &propList) override
OdpGenerator::endTextObject
void endTextObject() override
OdpGenerator::openAnimationIteration
void openAnimationIteration(const ::librevenge::RVNGPropertyList &propList) override
OdpGenerator::getObjectContent
bool getObjectContent(librevenge::RVNGString const &objectName, OdfDocumentHandler *pHandler)
OdpGenerator::defineEmbeddedFont
void defineEmbeddedFont(const librevenge::RVNGPropertyList &propList) override
OdpGenerator::openTableRow
void openTableRow(const ::librevenge::RVNGPropertyList &propList) override
OdpGenerator::openGroup
void openGroup(const ::librevenge::RVNGPropertyList &propList) override
OdpGenerator::closeChartTextObject
void closeChartTextObject() override
OdpGenerator::insertText
void insertText(const ::librevenge::RVNGString &str) override
libodfgen-api.hxx
ODFGENAPI
#define ODFGENAPI
Definition libodfgen-api.hxx:36