- Main Page
- Classes
- Files

- File List
- File Members

OdtGenerator.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) 2002-2004 William Lachance (wrlach@gmail.com)
11 * Copyright (C) 2004 Fridrich Strba (fridrich.strba@bluewin.ch)
12 *
13 * For minor contributions see the git repository.
14 *
15 * Alternatively, the contents of this file may be used under the terms
16 * of the GNU Lesser General Public License Version 2.1 or later
17 * (LGPLv2.1+), in which case the provisions of the LGPLv2.1+ are
18 * applicable instead of those above.
19 *
20 * For further information visit http://libwpd.sourceforge.net
21 */
22
23 /* "This product is not manufactured, approved, or supported by
24 * Corel Corporation or Corel Corporation Limited."
25 */
26
27 #ifndef _ODTGENERATOR_HXX_
28 #define _ODTGENERATOR_HXX_
29
30 #include <librevenge/librevenge.h>
31
32 #include "OdfDocumentHandler.hxx"
33
34 class OdtGeneratorPrivate;
35 class OdfGenerator;
36
42 class OdtGenerator : public librevenge::RVNGTextInterface
43 {
44 public:
45 OdtGenerator();
46 ~OdtGenerator();
47 void addDocumentHandler(OdfDocumentHandler *pHandler, const OdfStreamType streamType);
48 librevenge::RVNGStringVector getObjectNames() const;
49 bool getObjectContent(librevenge::RVNGString const &objectName, OdfDocumentHandler *pHandler);
50
51 void setDocumentMetaData(const librevenge::RVNGPropertyList &propList);
52 void startDocument(const librevenge::RVNGPropertyList &);
53 void endDocument();
54
55 void defineEmbeddedFont(const librevenge::RVNGPropertyList &propList);
56
57 void definePageStyle(const librevenge::RVNGPropertyList &);
58 void openPageSpan(const librevenge::RVNGPropertyList &propList);
59 void closePageSpan();
60
61 void defineSectionStyle(const librevenge::RVNGPropertyList &);
62 void openSection(const librevenge::RVNGPropertyList &propList);
63 void closeSection();
64
65 void openHeader(const librevenge::RVNGPropertyList &propList);
66 void closeHeader();
67 void openFooter(const librevenge::RVNGPropertyList &propList);
68 void closeFooter();
69
70 void defineParagraphStyle(const librevenge::RVNGPropertyList &propList);
71 void openParagraph(const librevenge::RVNGPropertyList &propList);
72 void closeParagraph();
73
74 void defineCharacterStyle(const librevenge::RVNGPropertyList &propList);
75 void openSpan(const librevenge::RVNGPropertyList &propList);
76 void closeSpan();
77
78 void openLink(const librevenge::RVNGPropertyList &propList);
79 void closeLink();
80
81 void insertTab();
82 void insertSpace();
83 void insertText(const librevenge::RVNGString &text);
84 void insertLineBreak();
85 void insertField(const librevenge::RVNGPropertyList &propList);
86
87 void openOrderedListLevel(const librevenge::RVNGPropertyList &propList);
88 void openUnorderedListLevel(const librevenge::RVNGPropertyList &propList);
89 void closeOrderedListLevel();
90 void closeUnorderedListLevel();
91 void openListElement(const librevenge::RVNGPropertyList &propList);
92 void closeListElement();
93
94 void openFootnote(const librevenge::RVNGPropertyList &propList);
95 void closeFootnote();
96 void openEndnote(const librevenge::RVNGPropertyList &propList);
97 void closeEndnote();
98 void openComment(const librevenge::RVNGPropertyList &propList);
99 void closeComment();
100 void openTextBox(const librevenge::RVNGPropertyList &propList);
101 void closeTextBox();
102
103 void openTable(const librevenge::RVNGPropertyList &propList);
104 void openTableRow(const librevenge::RVNGPropertyList &propList);
105 void closeTableRow();
106 void openTableCell(const librevenge::RVNGPropertyList &propList);
107 void closeTableCell();
108 void insertCoveredTableCell(const librevenge::RVNGPropertyList &propList);
109 void closeTable();
110
111 //
112 // simple Graphic
113 //
114
115 void openGroup(const librevenge::RVNGPropertyList &propList);
116 void closeGroup();
117
118 void defineGraphicStyle(const librevenge::RVNGPropertyList &propList);
119 void drawRectangle(const librevenge::RVNGPropertyList &propList);
120 void drawEllipse(const librevenge::RVNGPropertyList &propList);
121 void drawPolygon(const librevenge::RVNGPropertyList &propList);
122 void drawPolyline(const librevenge::RVNGPropertyList &propList);
123 void drawPath(const librevenge::RVNGPropertyList &propList);
124 void drawConnector(const librevenge::RVNGPropertyList &propList);
125
126 void openFrame(const librevenge::RVNGPropertyList &propList);
127 void closeFrame();
128
129 void insertBinaryObject(const librevenge::RVNGPropertyList &propList);
130 void insertEquation(const librevenge::RVNGPropertyList &propList);
131
138 void registerEmbeddedObjectHandler(const librevenge::RVNGString &mimeType, OdfEmbeddedObject objectHandler);
139
149 void registerEmbeddedImageHandler(const librevenge::RVNGString &mimeType, OdfEmbeddedImage imageHandler);
151 void initStateWith(OdfGenerator const &orig);
152
153 private:
154 OdtGenerator(OdtGenerator const &);
155 OdtGenerator &operator=(OdtGenerator const &);
156
157 OdtGeneratorPrivate *mpImpl;
158 };
159 #endif
160
161 /* vim:set shiftwidth=4 softtabstop=4 noexpandtab: */
OdtGenerator::addDocumentHandler
void addDocumentHandler(OdfDocumentHandler *pHandler, const OdfStreamType streamType)
OdtGenerator::openUnorderedListLevel
void openUnorderedListLevel(const librevenge::RVNGPropertyList &propList)
OdtGenerator::drawPath
void drawPath(const librevenge::RVNGPropertyList &propList)
OdtGenerator::insertField
void insertField(const librevenge::RVNGPropertyList &propList)
OdtGenerator::closeGroup
void closeGroup()
OdtGenerator::closeFooter
void closeFooter()
OdtGenerator::openParagraph
void openParagraph(const librevenge::RVNGPropertyList &propList)
OdtGenerator::~OdtGenerator
~OdtGenerator()
OdtGenerator::initStateWith
void initStateWith(OdfGenerator const &orig)
retrieve data from another odfgenerator ( the list and the embedded handler)
OdtGenerator::closeSection
void closeSection()
OdtGenerator::defineGraphicStyle
void defineGraphicStyle(const librevenge::RVNGPropertyList &propList)
OdtGenerator::mpImpl
OdtGeneratorPrivate * mpImpl
Definition: OdtGenerator.hxx:157
OdtGenerator::openFootnote
void openFootnote(const librevenge::RVNGPropertyList &propList)
OdtGenerator::openTableCell
void openTableCell(const librevenge::RVNGPropertyList &propList)
OdtGenerator::openSection
void openSection(const librevenge::RVNGPropertyList &propList)
OdtGenerator::closeLink
void closeLink()
OdtGenerator::drawRectangle
void drawRectangle(const librevenge::RVNGPropertyList &propList)
OdtGenerator::openFrame
void openFrame(const librevenge::RVNGPropertyList &propList)
OdtGenerator::insertCoveredTableCell
void insertCoveredTableCell(const librevenge::RVNGPropertyList &propList)
OdtGenerator::openTableRow
void openTableRow(const librevenge::RVNGPropertyList &propList)
OdtGenerator::closePageSpan
void closePageSpan()
OdtGenerator::drawEllipse
void drawEllipse(const librevenge::RVNGPropertyList &propList)
OdtGenerator::closeUnorderedListLevel
void closeUnorderedListLevel()
OdfDocumentHandler
XML writer.
Definition: OdfDocumentHandler.hxx:60
OdtGenerator::openOrderedListLevel
void openOrderedListLevel(const librevenge::RVNGPropertyList &propList)
OdtGenerator::registerEmbeddedObjectHandler
void registerEmbeddedObjectHandler(const librevenge::RVNGString &mimeType, OdfEmbeddedObject objectHandler)
Registers a handler for embedded objects.
OdtGenerator::insertEquation
void insertEquation(const librevenge::RVNGPropertyList &propList)
OdtGenerator::openTextBox
void openTextBox(const librevenge::RVNGPropertyList &propList)
OdtGenerator::closeEndnote
void closeEndnote()
OdtGenerator::closeSpan
void closeSpan()
OdtGenerator::insertLineBreak
void insertLineBreak()
OdtGenerator::definePageStyle
void definePageStyle(const librevenge::RVNGPropertyList &)
OdtGenerator::insertTab
void insertTab()
OdtGenerator::closeTableRow
void closeTableRow()
OdtGenerator::insertBinaryObject
void insertBinaryObject(const librevenge::RVNGPropertyList &propList)
OdtGenerator::openHeader
void openHeader(const librevenge::RVNGPropertyList &propList)
OdtGenerator::defineCharacterStyle
void defineCharacterStyle(const librevenge::RVNGPropertyList &propList)
OdtGenerator::closeTable
void closeTable()
OdfStreamType
OdfStreamType
Type of ODF content a generator should produce.
Definition: OdfDocumentHandler.hxx:33
OdtGenerator::operator=
OdtGenerator & operator=(OdtGenerator const &)
OdtGenerator::drawConnector
void drawConnector(const librevenge::RVNGPropertyList &propList)
OdtGenerator::drawPolygon
void drawPolygon(const librevenge::RVNGPropertyList &propList)
OdtGenerator::closeFrame
void closeFrame()
OdtGenerator::openGroup
void openGroup(const librevenge::RVNGPropertyList &propList)
OdtGenerator::defineEmbeddedFont
void defineEmbeddedFont(const librevenge::RVNGPropertyList &propList)
OdtGenerator::getObjectNames
librevenge::RVNGStringVector getObjectNames() const
OdtGenerator::closeParagraph
void closeParagraph()
OdtGenerator::getObjectContent
bool getObjectContent(librevenge::RVNGString const &objectName, OdfDocumentHandler *pHandler)
OdtGenerator::setDocumentMetaData
void setDocumentMetaData(const librevenge::RVNGPropertyList &propList)
OdtGenerator::openEndnote
void openEndnote(const librevenge::RVNGPropertyList &propList)
OdtGenerator::closeTableCell
void closeTableCell()
OdtGenerator::defineParagraphStyle
void defineParagraphStyle(const librevenge::RVNGPropertyList &propList)
OdtGenerator::closeOrderedListLevel
void closeOrderedListLevel()
OdfEmbeddedImage
bool(* OdfEmbeddedImage)(const librevenge::RVNGBinaryData &input, librevenge::RVNGBinaryData &output)
Handler for embedded images.
Definition: OdfDocumentHandler.hxx:51
OdtGenerator::closeFootnote
void closeFootnote()
OdtGenerator::openTable
void openTable(const librevenge::RVNGPropertyList &propList)
OdtGenerator::drawPolyline
void drawPolyline(const librevenge::RVNGPropertyList &propList)
OdtGenerator::insertText
void insertText(const librevenge::RVNGString &text)
OdtGenerator::defineSectionStyle
void defineSectionStyle(const librevenge::RVNGPropertyList &)
OdtGenerator
A generator for text documents.
Definition: OdtGenerator.hxx:42
OdtGenerator::registerEmbeddedImageHandler
void registerEmbeddedImageHandler(const librevenge::RVNGString &mimeType, OdfEmbeddedImage imageHandler)
Registers a handler for embedded images.
OdtGenerator::insertSpace
void insertSpace()
OdfDocumentHandler.hxx
OdtGenerator::OdtGenerator
OdtGenerator()
OdtGenerator::openPageSpan
void openPageSpan(const librevenge::RVNGPropertyList &propList)
OdtGenerator::closeTextBox
void closeTextBox()
OdtGenerator::openLink
void openLink(const librevenge::RVNGPropertyList &propList)
OdtGenerator::closeHeader
void closeHeader()
OdtGenerator::openSpan
void openSpan(const librevenge::RVNGPropertyList &propList)
OdtGenerator::startDocument
void startDocument(const librevenge::RVNGPropertyList &)
OdtGenerator::closeListElement
void closeListElement()
OdtGenerator::openComment
void openComment(const librevenge::RVNGPropertyList &propList)
OdfEmbeddedObject
bool(* OdfEmbeddedObject)(const librevenge::RVNGBinaryData &data, OdfDocumentHandler *pHandler, const OdfStreamType streamType)
Handler for embedded objects.
Definition: OdfDocumentHandler.hxx:43
OdtGenerator::endDocument
void endDocument()
OdtGenerator::closeComment
void closeComment()
OdtGenerator::openListElement
void openListElement(const librevenge::RVNGPropertyList &propList)
OdtGenerator::openFooter
void openFooter(const librevenge::RVNGPropertyList &propList)