WPGPaintInterface.h
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- */
2 /* libwpg
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  * Copyright (C) 2004 Marc Oude Kotte (marc@solcon.nl)
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://libwpg.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 __WPGPAINTINTERFACE_H__
28 #define __WPGPAINTINTERFACE_H__
29 
30 #include <libwpd/libwpd.h>
31 
32 namespace libwpg
33 {
34 
36 {
37 public:
38  virtual ~WPGPaintInterface() {}
39 
40  // none of the other callback functions will be called before this function is called
41  virtual void startGraphics(const ::WPXPropertyList &propList) = 0;
42 
43  // none of the other callback functions will be called after this function is called
44  virtual void endGraphics() = 0;
45 
46  virtual void setStyle(const ::WPXPropertyList &propList, const ::WPXPropertyListVector &gradient) = 0;
47 
48  virtual void startLayer(const ::WPXPropertyList &propList) = 0;
49 
50  virtual void endLayer() = 0;
51 
52  virtual void startEmbeddedGraphics(const ::WPXPropertyList &propList) = 0;
53 
54  virtual void endEmbeddedGraphics() = 0;
55 
56  // Different primitive shapes
57  virtual void drawRectangle(const ::WPXPropertyList &propList) = 0;
58 
59  virtual void drawEllipse(const ::WPXPropertyList &propList) = 0;
60 
61  virtual void drawPolygon(const ::WPXPropertyListVector &vertices) = 0;
62 
63  virtual void drawPolyline(const ::WPXPropertyListVector &vertices) = 0;
64 
65  virtual void drawPath(const ::WPXPropertyListVector &path) = 0;
66 
67  // Embedded binary/raster data
68  virtual void drawGraphicObject(const ::WPXPropertyList &propList, const ::WPXBinaryData &binaryData) = 0;
69 
70  // Embedded text object
71  virtual void startTextObject(const ::WPXPropertyList &propList, const ::WPXPropertyListVector &path) = 0;
72  virtual void endTextObject() = 0;
73 
74  virtual void startTextLine(const ::WPXPropertyList &propList) = 0;
75  virtual void endTextLine() = 0;
76 
77  virtual void startTextSpan(const ::WPXPropertyList &propList) = 0;
78  virtual void endTextSpan() = 0;
79 
80  virtual void insertText(const ::WPXString &str) = 0;
81 };
82 
83 } // namespace libwpg
84 
85 #endif // __WPGPAINTINTERFACE_H__
86 
87 /* vim:set shiftwidth=4 softtabstop=4 noexpandtab: */

Generated for libwpg by doxygen 1.8.3.1