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"
26#include "RVNGBinaryData.h"
27
28namespace librevenge
29{
30
32{
33public:
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
157 virtual void drawGraphicObject(const RVNGPropertyList &propList) = 0;
158
170 virtual void drawConnector(const RVNGPropertyList &propList) = 0;
171
172 // Embedded text object
173 virtual void startTextObject(const RVNGPropertyList &propList) = 0;
174 virtual void endTextObject() = 0;
186 virtual void startTableObject(const RVNGPropertyList &propList) = 0;
194 virtual void openTableRow(const RVNGPropertyList &propList) = 0;
198 virtual void closeTableRow() = 0;
213 virtual void openTableCell(const RVNGPropertyList &propList) = 0;
217 virtual void closeTableCell() = 0;
224 virtual void insertCoveredTableCell(const RVNGPropertyList &propList) = 0;
228 virtual void endTableObject() = 0;
229
233 virtual void insertTab() = 0;
234
238 virtual void insertSpace() = 0;
239
244 virtual void insertText(const RVNGString &text) = 0;
245
249 virtual void insertLineBreak() = 0;
250
258 virtual void insertField(const RVNGPropertyList &propList) = 0;
259
272 virtual void openOrderedListLevel(const RVNGPropertyList &propList) = 0;
273
283 virtual void openUnorderedListLevel(const RVNGPropertyList &propList) = 0;
284
288 virtual void closeOrderedListLevel() = 0;
289
293 virtual void closeUnorderedListLevel() = 0;
294
312 virtual void openListElement(const RVNGPropertyList &propList) = 0;
313
317 virtual void closeListElement() = 0;
318
319 virtual void defineParagraphStyle(const RVNGPropertyList &propList) = 0;
330 virtual void openParagraph(const RVNGPropertyList &propList) = 0;
331
335 virtual void closeParagraph() = 0;
336
337 virtual void defineCharacterStyle(const RVNGPropertyList &propList) = 0;
344 virtual void openSpan(const RVNGPropertyList &propList) = 0;
345
349 virtual void closeSpan() = 0;
350
357 virtual void openLink(const RVNGPropertyList &propList) = 0;
358
362 virtual void closeLink() = 0;
363};
364
365}
366
367#endif // __RVNGPAINTINTERFACE_H__
368
369/* vim:set shiftwidth=4 softtabstop=4 noexpandtab: */
Definition RVNGDrawingInterface.h:32
virtual void openParagraph(const RVNGPropertyList &propList)=0
Called when a new paragraph is opened.
virtual void closeTableCell()=0
Called when the current table cell is closed.
virtual void insertSpace()=0
Called when an explicit space should be inserted.
virtual void drawPath(const RVNGPropertyList &propList)=0
virtual void insertText(const RVNGString &text)=0
Called when a string of text should be inserted.
virtual void drawGraphicObject(const RVNGPropertyList &propList)=0
Called when a binary/raster object should be inserted.
virtual void startEmbeddedGraphics(const RVNGPropertyList &propList)=0
virtual void startMasterPage(const RVNGPropertyList &propList)=0
virtual void openGroup(const RVNGPropertyList &propList)=0
virtual void drawRectangle(const RVNGPropertyList &propList)=0
virtual void closeLink()=0
Called when the current link is closed.
virtual void defineEmbeddedFont(const RVNGPropertyList &propList)=0
Called when an embedded font should be defined.
virtual void insertLineBreak()=0
Called when a line break should be inserted.
virtual void defineCharacterStyle(const RVNGPropertyList &propList)=0
virtual void defineParagraphStyle(const RVNGPropertyList &propList)=0
virtual void startDocument(const RVNGPropertyList &propList)=0
virtual void drawEllipse(const RVNGPropertyList &propList)=0
virtual void closeUnorderedListLevel()=0
Called when an ununordered list level should be closed.
virtual void closeTableRow()=0
Called when the current table row is closed.
virtual void drawPolyline(const RVNGPropertyList &propList)=0
virtual void openListElement(const RVNGPropertyList &propList)=0
Called when a list element should be opened.
virtual void openOrderedListLevel(const RVNGPropertyList &propList)=0
Called when a new ordered list level should be opened.
virtual void openLink(const RVNGPropertyList &propList)=0
Called when a link should be opened.
virtual void startTextObject(const RVNGPropertyList &propList)=0
virtual void openTableRow(const RVNGPropertyList &propList)=0
Called when a new table row is opened.
virtual void closeParagraph()=0
Called when a paragraph is closed.
virtual void drawConnector(const RVNGPropertyList &propList)=0
Draw a connector.
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 closeSpan()=0
Called when a text span is closed.
virtual void startTableObject(const RVNGPropertyList &propList)=0
Called when a table should be opened.
virtual void startLayer(const RVNGPropertyList &propList)=0
virtual void openSpan(const RVNGPropertyList &propList)=0
Called when a text span is opened.
virtual void insertField(const RVNGPropertyList &propList)=0
Called when a field should be inserted.
virtual void endTableObject()=0
Called when the current table is closed.
virtual void endEmbeddedGraphics()=0
virtual void setStyle(const RVNGPropertyList &propList)=0
virtual ~RVNGDrawingInterface()
Definition RVNGDrawingInterface.h:34
virtual void openTableCell(const RVNGPropertyList &propList)=0
Called when a new table cell is opened.
virtual void drawPolygon(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 openUnorderedListLevel(const RVNGPropertyList &propList)=0
Called when a new unordered list level should be opened.
virtual void startPage(const RVNGPropertyList &propList)=0
virtual void setDocumentMetaData(const RVNGPropertyList &propList)=0
Called when all document metadata should be set.
virtual void closeListElement()=0
Called when a list element should be closed.
Definition RVNGPropertyList.h:39
UTF-8 string.
Definition RVNGString.h:34
Definition RVNGBinaryData.cpp:40

Generated for librevenge by doxygen 1.14.0