- Main Page
- Classes
- Files

- File List
- File Members

OdsGenerator.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 _ODSGENERATOR_HXX_
28 #define _ODSGENERATOR_HXX_
29
30 #include <librevenge/librevenge.h>
31
32 #include "OdfDocumentHandler.hxx"
33
34 class OdfGenerator;
35 class OdsGeneratorPrivate;
36
42 class OdsGenerator : public librevenge::RVNGSpreadsheetInterface
43 {
44 public:
45 OdsGenerator();
46 ~OdsGenerator();
47
49 void addDocumentHandler(OdfDocumentHandler *pHandler, const OdfStreamType streamType);
51 librevenge::RVNGStringVector getObjectNames() const;
53 bool getObjectContent(librevenge::RVNGString const &objectName, OdfDocumentHandler *pHandler);
54
55 void setDocumentMetaData(const librevenge::RVNGPropertyList &propList);
56 void startDocument(const librevenge::RVNGPropertyList &);
57 void endDocument();
58
59 void defineEmbeddedFont(const librevenge::RVNGPropertyList &propList);
60
61 void definePageStyle(const librevenge::RVNGPropertyList &) {}
62 void openPageSpan(const librevenge::RVNGPropertyList &propList);
63 void closePageSpan();
64
65 void defineSectionStyle(const librevenge::RVNGPropertyList &) {}
66 void openSection(const librevenge::RVNGPropertyList &propList);
67 void closeSection();
68
69 void openHeader(const librevenge::RVNGPropertyList &propList);
70 void closeHeader();
71 void openFooter(const librevenge::RVNGPropertyList &propList);
72 void closeFooter();
73
74 void defineSheetNumberingStyle(const librevenge::RVNGPropertyList &propList);
75 void openSheet(const librevenge::RVNGPropertyList &propList);
76 void closeSheet();
77 void openSheetRow(const librevenge::RVNGPropertyList &propList);
78 void closeSheetRow();
79 void openSheetCell(const librevenge::RVNGPropertyList &propList);
80 void closeSheetCell();
81
82 void defineChartStyle(const librevenge::RVNGPropertyList &propList);
83 void openChart(const librevenge::RVNGPropertyList &propList);
84 void closeChart();
85 void openChartTextObject(const librevenge::RVNGPropertyList &propList);
86 void closeChartTextObject();
87 void openChartPlotArea(const librevenge::RVNGPropertyList &propList);
88 void closeChartPlotArea();
89 void insertChartAxis(const librevenge::RVNGPropertyList &axis);
90 void openChartSerie(const librevenge::RVNGPropertyList &series);
91 void closeChartSerie();
92
93 void defineParagraphStyle(const librevenge::RVNGPropertyList &propList);
94 void openParagraph(const librevenge::RVNGPropertyList &propList);
95 void closeParagraph();
96
97 void defineCharacterStyle(const librevenge::RVNGPropertyList &propList);
98 void openSpan(const librevenge::RVNGPropertyList &propList);
99 void closeSpan();
100
101 void openLink(const librevenge::RVNGPropertyList &propList);
102 void closeLink();
103
104 void insertTab();
105 void insertSpace();
106 void insertText(const librevenge::RVNGString &text);
107 void insertLineBreak();
108 void insertField(const librevenge::RVNGPropertyList &propList);
109
110 void openOrderedListLevel(const librevenge::RVNGPropertyList &propList);
111 void openUnorderedListLevel(const librevenge::RVNGPropertyList &propList);
112 void closeOrderedListLevel();
113 void closeUnorderedListLevel();
114 void openListElement(const librevenge::RVNGPropertyList &propList);
115 void closeListElement();
116
117 void openFootnote(const librevenge::RVNGPropertyList &propList);
118 void closeFootnote();
119
120 void openComment(const librevenge::RVNGPropertyList &propList);
121 void closeComment();
122 void openTextBox(const librevenge::RVNGPropertyList &propList);
123 void closeTextBox();
124
125 void openTable(const librevenge::RVNGPropertyList &propList);
126 void openTableRow(const librevenge::RVNGPropertyList &propList);
127 void closeTableRow();
128 void openTableCell(const librevenge::RVNGPropertyList &propList);
129 void closeTableCell();
130 void insertCoveredTableCell(const librevenge::RVNGPropertyList &propList);
131 void closeTable();
132
133 void openFrame(const librevenge::RVNGPropertyList &propList);
134 void closeFrame();
135
136 void insertBinaryObject(const librevenge::RVNGPropertyList &propList);
137
138 //
139 // simple Graphic
140 //
141
142 void openGroup(const librevenge::RVNGPropertyList &propList);
143 void closeGroup();
144
145 void defineGraphicStyle(const librevenge::RVNGPropertyList &propList);
146 void drawRectangle(const librevenge::RVNGPropertyList &propList);
147 void drawEllipse(const librevenge::RVNGPropertyList &propList);
148 void drawPolygon(const librevenge::RVNGPropertyList &propList);
149 void drawPolyline(const librevenge::RVNGPropertyList &propList);
150 void drawPath(const librevenge::RVNGPropertyList &propList);
151 void drawConnector(const librevenge::RVNGPropertyList &propList);
152
153 void insertEquation(const librevenge::RVNGPropertyList &) {}
154
161 void registerEmbeddedImageHandler(const librevenge::RVNGString &mimeType, OdfEmbeddedImage imageHandler);
168 void registerEmbeddedObjectHandler(const librevenge::RVNGString &mimeType, OdfEmbeddedObject objectHandler);
169
171 void initStateWith(OdfGenerator const &orig);
172
173 private:
174 OdsGenerator(OdsGenerator const &);
175 OdsGenerator &operator=(OdsGenerator const &);
176
177 OdsGeneratorPrivate *mpImpl;
178 };
179 #endif
180
181 /* vim:set shiftwidth=4 softtabstop=4 noexpandtab: */
OdsGenerator::drawEllipse
void drawEllipse(const librevenge::RVNGPropertyList &propList)
OdsGenerator::closeSheet
void closeSheet()
OdsGenerator::closeGroup
void closeGroup()
OdsGenerator::operator=
OdsGenerator & operator=(OdsGenerator const &)
OdsGenerator::openComment
void openComment(const librevenge::RVNGPropertyList &propList)
OdsGenerator::defineSectionStyle
void defineSectionStyle(const librevenge::RVNGPropertyList &)
Definition: OdsGenerator.hxx:65
OdsGenerator::closeParagraph
void closeParagraph()
OdsGenerator::openParagraph
void openParagraph(const librevenge::RVNGPropertyList &propList)
OdsGenerator::defineEmbeddedFont
void defineEmbeddedFont(const librevenge::RVNGPropertyList &propList)
OdsGenerator::closeChartTextObject
void closeChartTextObject()
OdsGenerator::insertCoveredTableCell
void insertCoveredTableCell(const librevenge::RVNGPropertyList &propList)
OdsGenerator::insertLineBreak
void insertLineBreak()
OdsGenerator::endDocument
void endDocument()
OdsGenerator::closeTableCell
void closeTableCell()
OdsGenerator::openSheetCell
void openSheetCell(const librevenge::RVNGPropertyList &propList)
OdsGenerator::registerEmbeddedObjectHandler
void registerEmbeddedObjectHandler(const librevenge::RVNGString &mimeType, OdfEmbeddedObject objectHandler)
Registers a handler for embedded objects.
OdsGenerator::closeHeader
void closeHeader()
OdsGenerator::openPageSpan
void openPageSpan(const librevenge::RVNGPropertyList &propList)
OdsGenerator::drawRectangle
void drawRectangle(const librevenge::RVNGPropertyList &propList)
OdsGenerator::addDocumentHandler
void addDocumentHandler(OdfDocumentHandler *pHandler, const OdfStreamType streamType)
register an handler for a basic type of document
OdsGenerator::registerEmbeddedImageHandler
void registerEmbeddedImageHandler(const librevenge::RVNGString &mimeType, OdfEmbeddedImage imageHandler)
Registers a handler for embedded images.
OdsGenerator::openChartPlotArea
void openChartPlotArea(const librevenge::RVNGPropertyList &propList)
OdsGenerator::closeOrderedListLevel
void closeOrderedListLevel()
OdsGenerator::defineSheetNumberingStyle
void defineSheetNumberingStyle(const librevenge::RVNGPropertyList &propList)
OdsGenerator::openLink
void openLink(const librevenge::RVNGPropertyList &propList)
OdsGenerator::initStateWith
void initStateWith(OdfGenerator const &orig)
retrieve data from another odfgenerator ( the list and the embedded handler)
OdsGenerator::OdsGenerator
OdsGenerator()
OdsGenerator::openSheet
void openSheet(const librevenge::RVNGPropertyList &propList)
OdsGenerator::insertBinaryObject
void insertBinaryObject(const librevenge::RVNGPropertyList &propList)
OdsGenerator::openListElement
void openListElement(const librevenge::RVNGPropertyList &propList)
OdsGenerator::defineParagraphStyle
void defineParagraphStyle(const librevenge::RVNGPropertyList &propList)
OdsGenerator::drawPolygon
void drawPolygon(const librevenge::RVNGPropertyList &propList)
OdsGenerator::defineCharacterStyle
void defineCharacterStyle(const librevenge::RVNGPropertyList &propList)
OdsGenerator::insertTab
void insertTab()
OdsGenerator::~OdsGenerator
~OdsGenerator()
OdsGenerator::insertChartAxis
void insertChartAxis(const librevenge::RVNGPropertyList &axis)
OdsGenerator::openGroup
void openGroup(const librevenge::RVNGPropertyList &propList)
OdfDocumentHandler
XML writer.
Definition: OdfDocumentHandler.hxx:60
OdsGenerator::closeChart
void closeChart()
OdsGenerator::setDocumentMetaData
void setDocumentMetaData(const librevenge::RVNGPropertyList &propList)
OdsGenerator::openChartTextObject
void openChartTextObject(const librevenge::RVNGPropertyList &propList)
OdsGenerator::openFootnote
void openFootnote(const librevenge::RVNGPropertyList &propList)
OdsGenerator::insertSpace
void insertSpace()
OdsGenerator::closeUnorderedListLevel
void closeUnorderedListLevel()
OdsGenerator::openTableRow
void openTableRow(const librevenge::RVNGPropertyList &propList)
OdsGenerator::openFrame
void openFrame(const librevenge::RVNGPropertyList &propList)
OdsGenerator::closeChartSerie
void closeChartSerie()
OdsGenerator::closePageSpan
void closePageSpan()
OdfStreamType
OdfStreamType
Type of ODF content a generator should produce.
Definition: OdfDocumentHandler.hxx:33
OdsGenerator::openTableCell
void openTableCell(const librevenge::RVNGPropertyList &propList)
OdsGenerator::drawConnector
void drawConnector(const librevenge::RVNGPropertyList &propList)
OdsGenerator::openSheetRow
void openSheetRow(const librevenge::RVNGPropertyList &propList)
OdsGenerator::closeTextBox
void closeTextBox()
OdsGenerator::getObjectNames
librevenge::RVNGStringVector getObjectNames() const
returns the list created embedded object (needed to create chart)
OdsGenerator::drawPolyline
void drawPolyline(const librevenge::RVNGPropertyList &propList)
OdsGenerator::openFooter
void openFooter(const librevenge::RVNGPropertyList &propList)
OdsGenerator::defineChartStyle
void defineChartStyle(const librevenge::RVNGPropertyList &propList)
OdsGenerator::insertEquation
void insertEquation(const librevenge::RVNGPropertyList &)
Definition: OdsGenerator.hxx:153
OdsGenerator::closeSheetRow
void closeSheetRow()
OdsGenerator::closeFooter
void closeFooter()
OdsGenerator::openSpan
void openSpan(const librevenge::RVNGPropertyList &propList)
OdsGenerator::startDocument
void startDocument(const librevenge::RVNGPropertyList &)
OdsGenerator
A generator for text documents.
Definition: OdsGenerator.hxx:42
OdsGenerator::openChart
void openChart(const librevenge::RVNGPropertyList &propList)
OdsGenerator::definePageStyle
void definePageStyle(const librevenge::RVNGPropertyList &)
Definition: OdsGenerator.hxx:61
OdsGenerator::closeTableRow
void closeTableRow()
OdfEmbeddedImage
bool(* OdfEmbeddedImage)(const librevenge::RVNGBinaryData &input, librevenge::RVNGBinaryData &output)
Handler for embedded images.
Definition: OdfDocumentHandler.hxx:51
OdsGenerator::openHeader
void openHeader(const librevenge::RVNGPropertyList &propList)
OdsGenerator::closeSpan
void closeSpan()
OdsGenerator::getObjectContent
bool getObjectContent(librevenge::RVNGString const &objectName, OdfDocumentHandler *pHandler)
retrieve an embedded object content via a document handler
OdsGenerator::defineGraphicStyle
void defineGraphicStyle(const librevenge::RVNGPropertyList &propList)
OdsGenerator::openTextBox
void openTextBox(const librevenge::RVNGPropertyList &propList)
OdsGenerator::insertField
void insertField(const librevenge::RVNGPropertyList &propList)
OdsGenerator::closeComment
void closeComment()
OdsGenerator::closeListElement
void closeListElement()
OdsGenerator::openUnorderedListLevel
void openUnorderedListLevel(const librevenge::RVNGPropertyList &propList)
OdfDocumentHandler.hxx
OdsGenerator::openOrderedListLevel
void openOrderedListLevel(const librevenge::RVNGPropertyList &propList)
OdsGenerator::drawPath
void drawPath(const librevenge::RVNGPropertyList &propList)
OdsGenerator::closeSheetCell
void closeSheetCell()
OdsGenerator::openChartSerie
void openChartSerie(const librevenge::RVNGPropertyList &series)
OdsGenerator::mpImpl
OdsGeneratorPrivate * mpImpl
Definition: OdsGenerator.hxx:177
OdsGenerator::insertText
void insertText(const librevenge::RVNGString &text)
OdsGenerator::closeSection
void closeSection()
OdsGenerator::openTable
void openTable(const librevenge::RVNGPropertyList &propList)
OdsGenerator::closeFootnote
void closeFootnote()
OdsGenerator::closeLink
void closeLink()
OdsGenerator::closeFrame
void closeFrame()
OdsGenerator::openSection
void openSection(const librevenge::RVNGPropertyList &propList)
OdsGenerator::closeChartPlotArea
void closeChartPlotArea()
OdfEmbeddedObject
bool(* OdfEmbeddedObject)(const librevenge::RVNGBinaryData &data, OdfDocumentHandler *pHandler, const OdfStreamType streamType)
Handler for embedded objects.
Definition: OdfDocumentHandler.hxx:43
OdsGenerator::closeTable
void closeTable()