RVNGDrawingInterface.h
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- */
2 /* librevenge
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 
21 #ifndef RVNGDRAWINGINTERFACE_H
22 #define RVNGDRAWINGINTERFACE_H
23 
24 #include "RVNGPropertyList.h"
25 #include "RVNGPropertyListVector.h"
26 #include "RVNGBinaryData.h"
27 
28 namespace librevenge
29 {
30 
32 {
33 public:
34  virtual ~RVNGDrawingInterface() {}
35 
36  // none of the other callback functions will be called before this function is called
37  virtual void startDocument(const RVNGPropertyList &propList) = 0;
38 
39  // none of the other callback functions will be called after this function is called
40  virtual void endDocument() = 0;
41 
97  virtual void setDocumentMetaData(const RVNGPropertyList &propList) = 0;
98 
109  virtual void defineEmbeddedFont(const RVNGPropertyList &propList) = 0;
110 
111  virtual void startPage(const RVNGPropertyList &propList) = 0;
112 
113  virtual void endPage() = 0;
114 
115  virtual void startMasterPage(const RVNGPropertyList &propList) = 0;
116 
117  virtual void endMasterPage() = 0;
118 
119  virtual void setStyle(const RVNGPropertyList &propList) = 0;
120 
121  virtual void startLayer(const RVNGPropertyList &propList) = 0;
122 
123  virtual void endLayer() = 0;
124 
125  virtual void startEmbeddedGraphics(const RVNGPropertyList &propList) = 0;
126 
127  virtual void endEmbeddedGraphics() = 0;
128 
129  virtual void openGroup(const RVNGPropertyList &propList) = 0;
130 
131  virtual void closeGroup() = 0;
132 
133  // Different primitive shapes
134  virtual void drawRectangle(const RVNGPropertyList &propList) = 0;
135 
136  virtual void drawEllipse(const RVNGPropertyList &propList) = 0;
137 
138  virtual void drawPolygon(const RVNGPropertyList &propList) = 0;
139 
140  virtual void drawPolyline(const RVNGPropertyList &propList) = 0;
141 
142  virtual void drawPath(const RVNGPropertyList &propList) = 0;
143 
154  virtual void drawGraphicObject(const RVNGPropertyList &propList) = 0;
155 
167  virtual void drawConnector(const RVNGPropertyList &propList) = 0;
168 
169  // Embedded text object
170  virtual void startTextObject(const RVNGPropertyList &propList) = 0;
171  virtual void endTextObject() = 0;
183  virtual void startTableObject(const RVNGPropertyList &propList) = 0;
191  virtual void openTableRow(const RVNGPropertyList &propList) = 0;
195  virtual void closeTableRow() = 0;
210  virtual void openTableCell(const RVNGPropertyList &propList) = 0;
214  virtual void closeTableCell() = 0;
221  virtual void insertCoveredTableCell(const RVNGPropertyList &propList) = 0;
225  virtual void endTableObject() = 0;
226 
230  virtual void insertTab() = 0;
231 
235  virtual void insertSpace() = 0;
236 
241  virtual void insertText(const RVNGString &text) = 0;
242 
246  virtual void insertLineBreak() = 0;
247 
255  virtual void insertField(const RVNGPropertyList &propList) = 0;
256 
269  virtual void openOrderedListLevel(const RVNGPropertyList &propList) = 0;
270 
280  virtual void openUnorderedListLevel(const RVNGPropertyList &propList) = 0;
281 
285  virtual void closeOrderedListLevel() = 0;
286 
290  virtual void closeUnorderedListLevel() = 0;
291 
309  virtual void openListElement(const RVNGPropertyList &propList) = 0;
310 
314  virtual void closeListElement() = 0;
315 
316  virtual void defineParagraphStyle(const RVNGPropertyList &propList) = 0;
327  virtual void openParagraph(const RVNGPropertyList &propList) = 0;
328 
332  virtual void closeParagraph() = 0;
333 
334  virtual void defineCharacterStyle(const RVNGPropertyList &propList) = 0;
341  virtual void openSpan(const RVNGPropertyList &propList) = 0;
342 
346  virtual void closeSpan() = 0;
347 
354  virtual void openLink(const RVNGPropertyList &propList) = 0;
355 
359  virtual void closeLink() = 0;
360 };
361 
362 }
363 
364 #endif // __RVNGPAINTINTERFACE_H__
365 
366 /* vim:set shiftwidth=4 softtabstop=4 noexpandtab: */
virtual void endEmbeddedGraphics()=0
virtual void defineParagraphStyle(const RVNGPropertyList &propList)=0
virtual void closeLink()=0
Called when the current link is closed.
virtual void openParagraph(const RVNGPropertyList &propList)=0
Called when a new paragraph is opened.
virtual void insertSpace()=0
Called when an explicit space should be inserted.
Definition: RVNGBinaryData.cpp:38
Definition: RVNGDrawingInterface.h:31
virtual void drawConnector(const RVNGPropertyList &propList)=0
Draw a connector.
virtual void setDocumentMetaData(const RVNGPropertyList &propList)=0
Called when all document metadata should be set.
virtual void openGroup(const RVNGPropertyList &propList)=0
virtual void insertCoveredTableCell(const RVNGPropertyList &propList)=0
Called when a covered (spanned by another cell in the table) table cell is opened.
virtual void openTableCell(const RVNGPropertyList &propList)=0
Called when a new table cell is opened.
virtual void endTableObject()=0
Called when the current table is closed.
virtual void defineCharacterStyle(const RVNGPropertyList &propList)=0
virtual void startDocument(const RVNGPropertyList &propList)=0
virtual void startEmbeddedGraphics(const RVNGPropertyList &propList)=0
virtual void closeListElement()=0
Called when a list element should be closed.
virtual void closeTableCell()=0
Called when the current table cell is closed.
virtual void startLayer(const RVNGPropertyList &propList)=0
virtual void openSpan(const RVNGPropertyList &propList)=0
Called when a text span is opened.
virtual void drawEllipse(const RVNGPropertyList &propList)=0
virtual void openOrderedListLevel(const RVNGPropertyList &propList)=0
Called when a new ordered list level should be opened.
virtual void closeTableRow()=0
Called when the current table row is closed.
virtual void closeParagraph()=0
Called when a paragraph is closed.
virtual void openLink(const RVNGPropertyList &propList)=0
Called when a link should be opened.
virtual void insertField(const RVNGPropertyList &propList)=0
Called when a field should be inserted.
virtual void defineEmbeddedFont(const RVNGPropertyList &propList)=0
Called when an embedded font should be defined.
virtual void closeUnorderedListLevel()=0
Called when an ununordered list level should be closed.
virtual void drawPath(const RVNGPropertyList &propList)=0
virtual void closeOrderedListLevel()=0
Called when an unordered list level should be closed.
virtual void insertTab()=0
Called when a TAB character should be inserted.
virtual void openUnorderedListLevel(const RVNGPropertyList &propList)=0
Called when a new unordered list level should be opened.
virtual void insertText(const RVNGString &text)=0
Called when a string of text should be inserted.
virtual void drawPolygon(const RVNGPropertyList &propList)=0
virtual void startTextObject(const RVNGPropertyList &propList)=0
virtual void startPage(const RVNGPropertyList &propList)=0
virtual void drawRectangle(const RVNGPropertyList &propList)=0
virtual void startMasterPage(const RVNGPropertyList &propList)=0
virtual void insertLineBreak()=0
Called when a line break should be inserted.
virtual void openListElement(const RVNGPropertyList &propList)=0
Called when a list element should be opened.
Definition: RVNGPropertyList.h:38
virtual void setStyle(const RVNGPropertyList &propList)=0
UTF-8 string.
Definition: RVNGString.h:33
virtual void startTableObject(const RVNGPropertyList &propList)=0
Called when a table should be opened.
virtual void openTableRow(const RVNGPropertyList &propList)=0
Called when a new table row is opened.
virtual ~RVNGDrawingInterface()
Definition: RVNGDrawingInterface.h:34
virtual void drawPolyline(const RVNGPropertyList &propList)=0
virtual void drawGraphicObject(const RVNGPropertyList &propList)=0
Called when a binary/raster object should be inserted.
virtual void closeSpan()=0
Called when a text span is closed.

Generated for librevenge by doxygen 1.8.10