1
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- */
3
* Version: MPL 2.0 / LGPLv2.1+
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/.
9
* Major Contributor(s):
10
* Copyright (C) 2006 Ariya Hidayat (ariya@kde.org)
12
* For minor contributions see the git repository.
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.
19
* For further information visit http://libwpd.sourceforge.net
22
/* "This product is not manufactured, approved, or supported by
23
* Corel Corporation or Corel Corporation Limited."
25
#ifndef __ODGGENERATOR_HXX__
26
#define __ODGGENERATOR_HXX__
28
#include <libwpd/libwpd.h>
29
#include <libwpg/libwpg.h>
31
#include "OdfDocumentHandler.hxx"
33
class OdgGeneratorPrivate;
35
class OdgGenerator : public libwpg::WPGPaintInterface
38
OdgGenerator(OdfDocumentHandler *pHandler, const OdfStreamType streamType);
41
void startGraphics(const ::WPXPropertyList &propList);
43
void startLayer(const ::WPXPropertyList &propList);
45
void startEmbeddedGraphics(const ::WPXPropertyList &propList);
46
void endEmbeddedGraphics();
48
void setStyle(const ::WPXPropertyList &propList, const ::WPXPropertyListVector &gradient);
50
void drawRectangle(const ::WPXPropertyList &propList);
51
void drawEllipse(const ::WPXPropertyList &propList);
52
void drawPolyline(const ::WPXPropertyListVector &vertices);
53
void drawPolygon(const ::WPXPropertyListVector &vertices);
54
void drawPath(const ::WPXPropertyListVector &path);
55
void drawGraphicObject(const ::WPXPropertyList &propList, const ::WPXBinaryData &binaryData);
57
void startTextObject(const ::WPXPropertyList &propList, const ::WPXPropertyListVector &path);
59
void startTextLine(const ::WPXPropertyList &propList);
61
void startTextSpan(const ::WPXPropertyList &propList);
63
void insertText(const ::WPXString &str);
66
OdgGenerator(OdgGenerator const &);
67
OdgGenerator &operator=(OdgGenerator const &);
69
OdgGeneratorPrivate *mpImpl;
72
#endif // __ODGGENERATOR_HXX__
74
/* vim:set shiftwidth=4 softtabstop=4 noexpandtab: */