- Main Page
- Classes
- Files

- File List
- File Members

OdgGenerator.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 __ODGGENERATOR_HXX__
26 #define __ODGGENERATOR_HXX__
27
28 #include <librevenge/librevenge.h>
29
30 #include "OdfDocumentHandler.hxx"
31
32 class OdfGenerator;
33 class OdgGeneratorPrivate;
34
40 class OdgGenerator : public librevenge::RVNGDrawingInterface
41 {
42 public:
43 OdgGenerator();
44 ~OdgGenerator();
45 void addDocumentHandler(OdfDocumentHandler *pHandler, const OdfStreamType streamType);
46 librevenge::RVNGStringVector getObjectNames() const;
47 bool getObjectContent(librevenge::RVNGString const &objectName, OdfDocumentHandler *pHandler);
48 void setDocumentMetaData(const librevenge::RVNGPropertyList &);
49
50 void defineEmbeddedFont(const librevenge::RVNGPropertyList &propList);
51
52 void startPage(const librevenge::RVNGPropertyList &);
53 void endPage();
54 void startMasterPage(const librevenge::RVNGPropertyList &);
55 void endMasterPage();
56 void startLayer(const ::librevenge::RVNGPropertyList &propList);
57 void endLayer();
58 void openGroup(const ::librevenge::RVNGPropertyList &propList);
59 void closeGroup();
60 void startEmbeddedGraphics(const ::librevenge::RVNGPropertyList &propList);
61 void endEmbeddedGraphics();
62
63 void setStyle(const ::librevenge::RVNGPropertyList &propList);
64
65 void drawRectangle(const ::librevenge::RVNGPropertyList &propList);
66 void drawEllipse(const ::librevenge::RVNGPropertyList &propList);
67 void drawPolyline(const ::librevenge::RVNGPropertyList &propList);
68 void drawPolygon(const ::librevenge::RVNGPropertyList &propList);
69 void drawPath(const ::librevenge::RVNGPropertyList &propList);
70 void drawGraphicObject(const ::librevenge::RVNGPropertyList &propList);
71 void drawConnector(const ::librevenge::RVNGPropertyList &propList);
72
73 void startTableObject(const ::librevenge::RVNGPropertyList &propList);
74 void openTableRow(const ::librevenge::RVNGPropertyList &propList);
75 void closeTableRow();
76 void openTableCell(const ::librevenge::RVNGPropertyList &propList);
77 void closeTableCell();
78 void insertCoveredTableCell(const ::librevenge::RVNGPropertyList &propList);
79 void endTableObject();
80
81 void startTextObject(const ::librevenge::RVNGPropertyList &propList);
82 void endTextObject();
83
84 void defineParagraphStyle(const librevenge::RVNGPropertyList &propList);
85 void openParagraph(const librevenge::RVNGPropertyList &propList);
86 void closeParagraph();
87
88 void defineCharacterStyle(const librevenge::RVNGPropertyList &propList);
89 void openSpan(const librevenge::RVNGPropertyList &propList);
90 void closeSpan();
91
92 void openLink(const librevenge::RVNGPropertyList &propList);
93 void closeLink();
94
95 void insertText(const librevenge::RVNGString &text);
96 void insertTab();
97 void insertSpace();
98 void insertLineBreak();
99 void insertField(const librevenge::RVNGPropertyList &propList);
100
101 void openOrderedListLevel(const librevenge::RVNGPropertyList &propList);
102 void openUnorderedListLevel(const librevenge::RVNGPropertyList &propList);
103 void closeOrderedListLevel();
104 void closeUnorderedListLevel();
105 void openListElement(const librevenge::RVNGPropertyList &propList);
106 void closeListElement();
107
108 void startDocument(const librevenge::RVNGPropertyList &);
109 void endDocument();
110
117 void registerEmbeddedImageHandler(const librevenge::RVNGString &mimeType, OdfEmbeddedImage imageHandler);
124 void registerEmbeddedObjectHandler(const librevenge::RVNGString &mimeType, OdfEmbeddedObject objectHandler);
125
127 void initStateWith(OdfGenerator const &orig);
128 private:
129 OdgGenerator(OdgGenerator const &);
130 OdgGenerator &operator=(OdgGenerator const &);
131
132 OdgGeneratorPrivate *mpImpl;
133 };
134
135 #endif // __ODGGENERATOR_HXX__
136
137 /* vim:set shiftwidth=4 softtabstop=4 noexpandtab: */
OdgGenerator::openListElement
void openListElement(const librevenge::RVNGPropertyList &propList)
OdgGenerator::openSpan
void openSpan(const librevenge::RVNGPropertyList &propList)
OdgGenerator::insertText
void insertText(const librevenge::RVNGString &text)
OdgGenerator::endTextObject
void endTextObject()
OdgGenerator::endDocument
void endDocument()
OdgGenerator::defineParagraphStyle
void defineParagraphStyle(const librevenge::RVNGPropertyList &propList)
OdgGenerator::drawPolyline
void drawPolyline(const ::librevenge::RVNGPropertyList &propList)
OdgGenerator::openTableRow
void openTableRow(const ::librevenge::RVNGPropertyList &propList)
OdgGenerator::startLayer
void startLayer(const ::librevenge::RVNGPropertyList &propList)
OdgGenerator::closeTableCell
void closeTableCell()
OdgGenerator::drawConnector
void drawConnector(const ::librevenge::RVNGPropertyList &propList)
OdgGenerator
A generator for vector drawings.
Definition: OdgGenerator.hxx:40
OdgGenerator::insertCoveredTableCell
void insertCoveredTableCell(const ::librevenge::RVNGPropertyList &propList)
OdgGenerator::startEmbeddedGraphics
void startEmbeddedGraphics(const ::librevenge::RVNGPropertyList &propList)
OdgGenerator::closeOrderedListLevel
void closeOrderedListLevel()
OdgGenerator::drawGraphicObject
void drawGraphicObject(const ::librevenge::RVNGPropertyList &propList)
OdgGenerator::startTextObject
void startTextObject(const ::librevenge::RVNGPropertyList &propList)
OdgGenerator::~OdgGenerator
~OdgGenerator()
OdgGenerator::startPage
void startPage(const librevenge::RVNGPropertyList &)
OdgGenerator::closeSpan
void closeSpan()
OdgGenerator::insertTab
void insertTab()
OdgGenerator::insertLineBreak
void insertLineBreak()
OdgGenerator::registerEmbeddedObjectHandler
void registerEmbeddedObjectHandler(const librevenge::RVNGString &mimeType, OdfEmbeddedObject objectHandler)
Registers a handler for embedded objects.
OdgGenerator::startMasterPage
void startMasterPage(const librevenge::RVNGPropertyList &)
OdgGenerator::addDocumentHandler
void addDocumentHandler(OdfDocumentHandler *pHandler, const OdfStreamType streamType)
OdgGenerator::endPage
void endPage()
OdfDocumentHandler
XML writer.
Definition: OdfDocumentHandler.hxx:60
OdgGenerator::drawRectangle
void drawRectangle(const ::librevenge::RVNGPropertyList &propList)
OdgGenerator::closeUnorderedListLevel
void closeUnorderedListLevel()
OdgGenerator::setStyle
void setStyle(const ::librevenge::RVNGPropertyList &propList)
OdgGenerator::endLayer
void endLayer()
OdgGenerator::endMasterPage
void endMasterPage()
OdgGenerator::OdgGenerator
OdgGenerator()
OdgGenerator::closeTableRow
void closeTableRow()
OdgGenerator::endEmbeddedGraphics
void endEmbeddedGraphics()
OdgGenerator::insertField
void insertField(const librevenge::RVNGPropertyList &propList)
OdfStreamType
OdfStreamType
Type of ODF content a generator should produce.
Definition: OdfDocumentHandler.hxx:33
OdgGenerator::closeLink
void closeLink()
OdgGenerator::operator=
OdgGenerator & operator=(OdgGenerator const &)
OdgGenerator::getObjectContent
bool getObjectContent(librevenge::RVNGString const &objectName, OdfDocumentHandler *pHandler)
OdgGenerator::openGroup
void openGroup(const ::librevenge::RVNGPropertyList &propList)
OdgGenerator::startDocument
void startDocument(const librevenge::RVNGPropertyList &)
OdgGenerator::openLink
void openLink(const librevenge::RVNGPropertyList &propList)
OdgGenerator::drawEllipse
void drawEllipse(const ::librevenge::RVNGPropertyList &propList)
OdgGenerator::openOrderedListLevel
void openOrderedListLevel(const librevenge::RVNGPropertyList &propList)
OdfEmbeddedImage
bool(* OdfEmbeddedImage)(const librevenge::RVNGBinaryData &input, librevenge::RVNGBinaryData &output)
Handler for embedded images.
Definition: OdfDocumentHandler.hxx:51
OdgGenerator::startTableObject
void startTableObject(const ::librevenge::RVNGPropertyList &propList)
OdgGenerator::closeListElement
void closeListElement()
OdgGenerator::closeGroup
void closeGroup()
OdgGenerator::registerEmbeddedImageHandler
void registerEmbeddedImageHandler(const librevenge::RVNGString &mimeType, OdfEmbeddedImage imageHandler)
Registers a handler for embedded images.
OdgGenerator::openParagraph
void openParagraph(const librevenge::RVNGPropertyList &propList)
OdgGenerator::setDocumentMetaData
void setDocumentMetaData(const librevenge::RVNGPropertyList &)
OdfDocumentHandler.hxx
OdgGenerator::closeParagraph
void closeParagraph()
OdgGenerator::defineEmbeddedFont
void defineEmbeddedFont(const librevenge::RVNGPropertyList &propList)
OdgGenerator::getObjectNames
librevenge::RVNGStringVector getObjectNames() const
OdgGenerator::defineCharacterStyle
void defineCharacterStyle(const librevenge::RVNGPropertyList &propList)
OdgGenerator::insertSpace
void insertSpace()
OdgGenerator::mpImpl
OdgGeneratorPrivate * mpImpl
Definition: OdgGenerator.hxx:132
OdgGenerator::drawPath
void drawPath(const ::librevenge::RVNGPropertyList &propList)
OdgGenerator::openUnorderedListLevel
void openUnorderedListLevel(const librevenge::RVNGPropertyList &propList)
OdgGenerator::openTableCell
void openTableCell(const ::librevenge::RVNGPropertyList &propList)
OdfEmbeddedObject
bool(* OdfEmbeddedObject)(const librevenge::RVNGBinaryData &data, OdfDocumentHandler *pHandler, const OdfStreamType streamType)
Handler for embedded objects.
Definition: OdfDocumentHandler.hxx:43
OdgGenerator::initStateWith
void initStateWith(OdfGenerator const &orig)
retrieve data from another odfgenerator ( the list and the embedded handler)
OdgGenerator::endTableObject
void endTableObject()
OdgGenerator::drawPolygon
void drawPolygon(const ::librevenge::RVNGPropertyList &propList)