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 <libetonyek/libetonyek.h>
29 
30 #include "OdfDocumentHandler.hxx"
31 
32 class OdpGeneratorPrivate;
33 
39 class OdpGenerator : public libetonyek::KEYPresentationInterface
40 {
41 public:
42  OdpGenerator(OdfDocumentHandler *pHandler, const OdfStreamType streamType);
43  ~OdpGenerator();
44 
45  void startDocument(const ::WPXPropertyList &propList);
46  void endDocument();
47  void setDocumentMetaData(const ::WPXPropertyList &propList);
48  void startSlide(const ::WPXPropertyList &propList);
49  void endSlide();
50  void startLayer(const ::WPXPropertyList &propList);
51  void endLayer();
52  void startEmbeddedGraphics(const ::WPXPropertyList &propList);
53  void endEmbeddedGraphics();
54  void startGroup(const ::WPXPropertyList &propList);
55  void endGroup();
56 
57  void setStyle(const ::WPXPropertyList &propList, const ::WPXPropertyListVector &gradient);
58 
59  void drawRectangle(const ::WPXPropertyList &propList);
60  void drawEllipse(const ::WPXPropertyList &propList);
61  void drawPolyline(const ::WPXPropertyListVector &vertices);
62  void drawPolygon(const ::WPXPropertyListVector &vertices);
63  void drawPath(const ::WPXPropertyListVector &path);
64  void drawGraphicObject(const ::WPXPropertyList &propList, const ::WPXBinaryData &binaryData);
65  void drawConnector(const ::WPXPropertyList &propList, const ::WPXPropertyListVector &path);
66 
67  void startTextObject(const ::WPXPropertyList &propList, const ::WPXPropertyListVector &path);
68  void endTextObject();
69  void openParagraph(const ::WPXPropertyList &propList, const ::WPXPropertyListVector &tabStops);
70  void closeParagraph();
71  void openSpan(const ::WPXPropertyList &propList);
72  void closeSpan();
73  void insertText(const ::WPXString &str);
74  void insertTab();
75  void insertSpace();
76  void insertLineBreak();
77  void insertField(const WPXString &type, const ::WPXPropertyList &propList);
78 
79  void openOrderedListLevel(const ::WPXPropertyList &propList);
80  void openUnorderedListLevel(const ::WPXPropertyList &propList);
81  void closeOrderedListLevel();
83  void openListElement(const ::WPXPropertyList &propList, const ::WPXPropertyListVector &tabStops);
84  void closeListElement();
85 
86  void openTable(const ::WPXPropertyList &propList, const ::WPXPropertyListVector &columns);
87  void openTableRow(const ::WPXPropertyList &propList);
88  void closeTableRow();
89  void openTableCell(const ::WPXPropertyList &propList);
90  void closeTableCell();
91  void insertCoveredTableCell(const ::WPXPropertyList &propList);
92  void closeTable();
93 
94  void startComment(const ::WPXPropertyList &propList);
95  void endComment();
96 
97  void startNotes(const ::WPXPropertyList &propList);
98  void endNotes();
99 
100 private:
101  // disable copying
102  OdpGenerator(OdpGenerator const &);
104 
105  OdpGeneratorPrivate *mpImpl;
106 };
107 
108 #endif // LIBODFGEN_ODPGENERATOR_HXX_INCLUDED
109 
110 /* vim:set shiftwidth=4 softtabstop=4 noexpandtab: */
void endComment()
void startNotes(const ::WPXPropertyList &propList)
void openUnorderedListLevel(const ::WPXPropertyList &propList)
void closeTableRow()
void closeTableCell()
void closeSpan()
void openTable(const ::WPXPropertyList &propList, const ::WPXPropertyListVector &columns)
void closeListElement()
void insertSpace()
void setDocumentMetaData(const ::WPXPropertyList &propList)
void drawPath(const ::WPXPropertyListVector &path)
void endNotes()
void insertText(const ::WPXString &str)
void openTableCell(const ::WPXPropertyList &propList)
void closeParagraph()
void insertField(const WPXString &type, const ::WPXPropertyList &propList)
void startComment(const ::WPXPropertyList &propList)
void startGroup(const ::WPXPropertyList &propList)
XML writer.
Definition: OdfDocumentHandler.hxx:42
void setStyle(const ::WPXPropertyList &propList, const ::WPXPropertyListVector &gradient)
void endLayer()
OdpGenerator & operator=(OdpGenerator const &)
void insertCoveredTableCell(const ::WPXPropertyList &propList)
void endDocument()
void closeUnorderedListLevel()
void startDocument(const ::WPXPropertyList &propList)
OdpGeneratorPrivate * mpImpl
Definition: OdpGenerator.hxx:105
void endTextObject()
void closeTable()
void drawRectangle(const ::WPXPropertyList &propList)
void startEmbeddedGraphics(const ::WPXPropertyList &propList)
void startSlide(const ::WPXPropertyList &propList)
OdfStreamType
Type of ODF content a generator should produce.
Definition: OdfDocumentHandler.hxx:33
void endSlide()
void insertTab()
void drawPolyline(const ::WPXPropertyListVector &vertices)
void endGroup()
void endEmbeddedGraphics()
void insertLineBreak()
void openListElement(const ::WPXPropertyList &propList, const ::WPXPropertyListVector &tabStops)
A generator for presentations.
Definition: OdpGenerator.hxx:39
void openTableRow(const ::WPXPropertyList &propList)
void drawEllipse(const ::WPXPropertyList &propList)
void startTextObject(const ::WPXPropertyList &propList, const ::WPXPropertyListVector &path)
void closeOrderedListLevel()
void drawConnector(const ::WPXPropertyList &propList, const ::WPXPropertyListVector &path)
void startLayer(const ::WPXPropertyList &propList)
void openSpan(const ::WPXPropertyList &propList)
void openOrderedListLevel(const ::WPXPropertyList &propList)
void openParagraph(const ::WPXPropertyList &propList, const ::WPXPropertyListVector &tabStops)
void drawPolygon(const ::WPXPropertyListVector &vertices)
void drawGraphicObject(const ::WPXPropertyList &propList, const ::WPXBinaryData &binaryData)
OdpGenerator(OdfDocumentHandler *pHandler, const OdfStreamType streamType)

Generated for libodfgen by doxygen 1.8.5