RVNGDrawingInterface.h Source File documentation

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
28namespace librevenge
29{
30
31 class RVNGDrawingInterface
32{
33public:
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: */
RVNGBinaryData.h
RVNGPropertyListVector.h
RVNGPropertyList.h
librevenge::RVNGDrawingInterface
Definition RVNGDrawingInterface.h:32
librevenge::RVNGDrawingInterface::openParagraph
virtual void openParagraph(const RVNGPropertyList &propList)=0
Called when a new paragraph is opened.
librevenge::RVNGDrawingInterface::endTextObject
virtual void endTextObject()=0
librevenge::RVNGDrawingInterface::closeTableCell
virtual void closeTableCell()=0
Called when the current table cell is closed.
librevenge::RVNGDrawingInterface::insertSpace
virtual void insertSpace()=0
Called when an explicit space should be inserted.
librevenge::RVNGDrawingInterface::drawPath
virtual void drawPath(const RVNGPropertyList &propList)=0
librevenge::RVNGDrawingInterface::insertText
virtual void insertText(const RVNGString &text)=0
Called when a string of text should be inserted.
librevenge::RVNGDrawingInterface::endPage
virtual void endPage()=0
librevenge::RVNGDrawingInterface::drawGraphicObject
virtual void drawGraphicObject(const RVNGPropertyList &propList)=0
Called when a binary/raster object should be inserted.
librevenge::RVNGDrawingInterface::startEmbeddedGraphics
virtual void startEmbeddedGraphics(const RVNGPropertyList &propList)=0
librevenge::RVNGDrawingInterface::endDocument
virtual void endDocument()=0
librevenge::RVNGDrawingInterface::startMasterPage
virtual void startMasterPage(const RVNGPropertyList &propList)=0
librevenge::RVNGDrawingInterface::openGroup
virtual void openGroup(const RVNGPropertyList &propList)=0
librevenge::RVNGDrawingInterface::drawRectangle
virtual void drawRectangle(const RVNGPropertyList &propList)=0
librevenge::RVNGDrawingInterface::closeLink
virtual void closeLink()=0
Called when the current link is closed.
librevenge::RVNGDrawingInterface::defineEmbeddedFont
virtual void defineEmbeddedFont(const RVNGPropertyList &propList)=0
Called when an embedded font should be defined.
librevenge::RVNGDrawingInterface::insertLineBreak
virtual void insertLineBreak()=0
Called when a line break should be inserted.
librevenge::RVNGDrawingInterface::defineCharacterStyle
virtual void defineCharacterStyle(const RVNGPropertyList &propList)=0
librevenge::RVNGDrawingInterface::defineParagraphStyle
virtual void defineParagraphStyle(const RVNGPropertyList &propList)=0
librevenge::RVNGDrawingInterface::endMasterPage
virtual void endMasterPage()=0
librevenge::RVNGDrawingInterface::startDocument
virtual void startDocument(const RVNGPropertyList &propList)=0
librevenge::RVNGDrawingInterface::closeGroup
virtual void closeGroup()=0
librevenge::RVNGDrawingInterface::drawEllipse
virtual void drawEllipse(const RVNGPropertyList &propList)=0
librevenge::RVNGDrawingInterface::closeUnorderedListLevel
virtual void closeUnorderedListLevel()=0
Called when an ununordered list level should be closed.
librevenge::RVNGDrawingInterface::closeTableRow
virtual void closeTableRow()=0
Called when the current table row is closed.
librevenge::RVNGDrawingInterface::drawPolyline
virtual void drawPolyline(const RVNGPropertyList &propList)=0
librevenge::RVNGDrawingInterface::openListElement
virtual void openListElement(const RVNGPropertyList &propList)=0
Called when a list element should be opened.
librevenge::RVNGDrawingInterface::openOrderedListLevel
virtual void openOrderedListLevel(const RVNGPropertyList &propList)=0
Called when a new ordered list level should be opened.
librevenge::RVNGDrawingInterface::openLink
virtual void openLink(const RVNGPropertyList &propList)=0
Called when a link should be opened.
librevenge::RVNGDrawingInterface::startTextObject
virtual void startTextObject(const RVNGPropertyList &propList)=0
librevenge::RVNGDrawingInterface::openTableRow
virtual void openTableRow(const RVNGPropertyList &propList)=0
Called when a new table row is opened.
librevenge::RVNGDrawingInterface::closeParagraph
virtual void closeParagraph()=0
Called when a paragraph is closed.
librevenge::RVNGDrawingInterface::drawConnector
virtual void drawConnector(const RVNGPropertyList &propList)=0
Draw a connector.
librevenge::RVNGDrawingInterface::closeOrderedListLevel
virtual void closeOrderedListLevel()=0
Called when an unordered list level should be closed.
librevenge::RVNGDrawingInterface::insertTab
virtual void insertTab()=0
Called when a TAB character should be inserted.
librevenge::RVNGDrawingInterface::closeSpan
virtual void closeSpan()=0
Called when a text span is closed.
librevenge::RVNGDrawingInterface::startTableObject
virtual void startTableObject(const RVNGPropertyList &propList)=0
Called when a table should be opened.
librevenge::RVNGDrawingInterface::startLayer
virtual void startLayer(const RVNGPropertyList &propList)=0
librevenge::RVNGDrawingInterface::openSpan
virtual void openSpan(const RVNGPropertyList &propList)=0
Called when a text span is opened.
librevenge::RVNGDrawingInterface::insertField
virtual void insertField(const RVNGPropertyList &propList)=0
Called when a field should be inserted.
librevenge::RVNGDrawingInterface::endLayer
virtual void endLayer()=0
librevenge::RVNGDrawingInterface::endTableObject
virtual void endTableObject()=0
Called when the current table is closed.
librevenge::RVNGDrawingInterface::endEmbeddedGraphics
virtual void endEmbeddedGraphics()=0
librevenge::RVNGDrawingInterface::setStyle
virtual void setStyle(const RVNGPropertyList &propList)=0
librevenge::RVNGDrawingInterface::~RVNGDrawingInterface
virtual ~RVNGDrawingInterface()
Definition RVNGDrawingInterface.h:34
librevenge::RVNGDrawingInterface::openTableCell
virtual void openTableCell(const RVNGPropertyList &propList)=0
Called when a new table cell is opened.
librevenge::RVNGDrawingInterface::drawPolygon
virtual void drawPolygon(const RVNGPropertyList &propList)=0
librevenge::RVNGDrawingInterface::insertCoveredTableCell
virtual void insertCoveredTableCell(const RVNGPropertyList &propList)=0
Called when a covered (spanned by another cell in the table) table cell is opened.
librevenge::RVNGDrawingInterface::openUnorderedListLevel
virtual void openUnorderedListLevel(const RVNGPropertyList &propList)=0
Called when a new unordered list level should be opened.
librevenge::RVNGDrawingInterface::startPage
virtual void startPage(const RVNGPropertyList &propList)=0
librevenge::RVNGDrawingInterface::setDocumentMetaData
virtual void setDocumentMetaData(const RVNGPropertyList &propList)=0
Called when all document metadata should be set.
librevenge::RVNGDrawingInterface::closeListElement
virtual void closeListElement()=0
Called when a list element should be closed.
librevenge::RVNGPropertyList
Definition RVNGPropertyList.h:39
librevenge::RVNGString
UTF-8 string.
Definition RVNGString.h:34
librevenge
Definition RVNGBinaryData.cpp:39