WPGPaintInterface.h
Go to the documentation of this file.
1 /* libwpg
2  * Copyright (C) 2006 Ariya Hidayat (ariya@kde.org)
3  * Copyright (C) 2004 Marc Oude Kotte (marc@solcon.nl)
4  *
5  * This library is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU Library General Public
7  * License as published by the Free Software Foundation; either
8  * version 2 of the License, or (at your option) any later version.
9  *
10  * This library is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13  * Library General Public License for more details.
14  *
15  * You should have received a copy of the GNU Library General Public
16  * License along with this library; if not, write to the
17  * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18  * Boston, MA 02111-1301 USA
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 public:
37  virtual ~WPGPaintInterface() {}
38 
39  // none of the other callback functions will be called before this function is called
40  virtual void startGraphics(const ::WPXPropertyList &propList) = 0;
41 
42  // none of the other callback functions will be called after this function is called
43  virtual void endGraphics() = 0;
44 
45  virtual void setStyle(const ::WPXPropertyList &propList, const ::WPXPropertyListVector &gradient) = 0;
46 
47  virtual void startLayer(const ::WPXPropertyList &propList) = 0;
48 
49  virtual void endLayer() = 0;
50 
51  virtual void startEmbeddedGraphics(const ::WPXPropertyList &propList) = 0;
52 
53  virtual void endEmbeddedGraphics() = 0;
54 
55  // Different primitive shapes
56  virtual void drawRectangle(const ::WPXPropertyList& propList) = 0;
57 
58  virtual void drawEllipse(const ::WPXPropertyList& propList) = 0;
59 
60  virtual void drawPolygon(const ::WPXPropertyListVector &vertices) = 0;
61 
62  virtual void drawPolyline(const ::WPXPropertyListVector &vertices) = 0;
63 
64  virtual void drawPath(const ::WPXPropertyListVector &path) = 0;
65 
66  // Embedded binary/raster data
67  virtual void drawGraphicObject(const ::WPXPropertyList &propList, const ::WPXBinaryData &binaryData) = 0;
68 
69  // Embedded text object
70  virtual void startTextObject(const ::WPXPropertyList &propList, const ::WPXPropertyListVector &path) = 0;
71  virtual void endTextObject() = 0;
72 
73  virtual void startTextLine(const ::WPXPropertyList &propList) = 0;
74  virtual void endTextLine() = 0;
75 
76  virtual void startTextSpan(const ::WPXPropertyList &propList) = 0;
77  virtual void endTextSpan() = 0;
78 
79  virtual void insertText(const ::WPXString &str) = 0;
80 };
81 
82 } // namespace libwpg
83 
84 #endif // __WPGPAINTINTERFACE_H__
85 

Generated for libwpg by doxygen 1.8.2