RVNGTextInterface.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) 2002-2005 William Lachance (wrlach@gmail.com)
11  * Copyright (C) 2002 Marc Maurer (uwog@uwog.net)
12  * Copyright (C) 2006 Fridrich Strba (fridrich.strba@bluewin.ch)
13  *
14  * For minor contributions see the git repository.
15  *
16  * Alternatively, the contents of this file may be used under the terms
17  * of the GNU Lesser General Public License Version 2.1 or later
18  * (LGPLv2.1+), in which case the provisions of the LGPLv2.1+ are
19  * applicable instead of those above.
20  */
21 
22 #ifndef RVNGTEXTINTERFACE_H
23 #define RVNGTEXTINTERFACE_H
24 
25 #include "RVNGPropertyList.h"
26 #include "RVNGPropertyListVector.h"
27 
28 namespace librevenge
29 {
30 
37 class RVNGInputStream;
38 
40 {
41 public:
42  virtual ~RVNGTextInterface() {}
43 
99  virtual void setDocumentMetaData(const RVNGPropertyList &propList) = 0;
100 
104  virtual void startDocument(const RVNGPropertyList &propList) = 0;
105 
109  virtual void endDocument() = 0;
110 
111  virtual void definePageStyle(const RVNGPropertyList &propList) = 0;
112 
123  virtual void defineEmbeddedFont(const RVNGPropertyList &propList) = 0;
124 
139  virtual void openPageSpan(const RVNGPropertyList &propList) = 0;
143  virtual void closePageSpan() = 0;
144 
150  virtual void openHeader(const RVNGPropertyList &propList) = 0;
154  virtual void closeHeader() = 0;
155 
161  virtual void openFooter(const RVNGPropertyList &propList) = 0;
165  virtual void closeFooter() = 0;
166 
167  virtual void defineParagraphStyle(const RVNGPropertyList &propList) = 0;
168 
179  virtual void openParagraph(const RVNGPropertyList &propList) = 0;
183  virtual void closeParagraph() = 0;
184 
185  virtual void defineCharacterStyle(const RVNGPropertyList &propList) = 0;
186 
192  virtual void openSpan(const RVNGPropertyList &propList) = 0;
196  virtual void closeSpan() = 0;
203  virtual void openLink(const RVNGPropertyList &propList) = 0;
207  virtual void closeLink() = 0;
208 
209  virtual void defineSectionStyle(const RVNGPropertyList &propList) = 0;
210 
223  virtual void openSection(const RVNGPropertyList &propList) = 0;
227  virtual void closeSection() = 0;
228 
232  virtual void insertTab() = 0;
236  virtual void insertSpace() = 0;
241  virtual void insertText(const RVNGString &text) = 0;
245  virtual void insertLineBreak() = 0;
246 
254  virtual void insertField(const RVNGPropertyList &propList) = 0;
255 
268  virtual void openOrderedListLevel(const RVNGPropertyList &propList) = 0;
278  virtual void openUnorderedListLevel(const RVNGPropertyList &propList) = 0;
282  virtual void closeOrderedListLevel() = 0;
286  virtual void closeUnorderedListLevel() = 0;
304  virtual void openListElement(const RVNGPropertyList &propList) = 0;
308  virtual void closeListElement() = 0;
309 
315  virtual void openFootnote(const RVNGPropertyList &propList) = 0;
319  virtual void closeFootnote() = 0;
320 
326  virtual void openEndnote(const RVNGPropertyList &propList) = 0;
330  virtual void closeEndnote() = 0;
331 
336  virtual void openComment(const RVNGPropertyList &propList) = 0;
340  virtual void closeComment() = 0;
341 
346  virtual void openTextBox(const RVNGPropertyList &propList) = 0;
350  virtual void closeTextBox() = 0;
351 
363  virtual void openTable(const RVNGPropertyList &propList) = 0;
371  virtual void openTableRow(const RVNGPropertyList &propList) = 0;
375  virtual void closeTableRow() = 0;
390  virtual void openTableCell(const RVNGPropertyList &propList) = 0;
394  virtual void closeTableCell() = 0;
401  virtual void insertCoveredTableCell(const RVNGPropertyList &propList) = 0;
405  virtual void closeTable() = 0;
421  virtual void openFrame(const RVNGPropertyList &propList) = 0;
425  virtual void closeFrame() = 0;
436  virtual void insertBinaryObject(const RVNGPropertyList &propList) = 0;
443  virtual void insertEquation(const RVNGPropertyList &propList) = 0;
444 
445  // group
446  virtual void openGroup(const librevenge::RVNGPropertyList &propList) = 0;
447  virtual void closeGroup() = 0;
448 
449  // Different primitive shapes
450  virtual void defineGraphicStyle(const librevenge::RVNGPropertyList &propList) = 0;
451 
452  virtual void drawRectangle(const RVNGPropertyList &propList) = 0;
453  virtual void drawEllipse(const RVNGPropertyList &propList) = 0;
454  virtual void drawPolygon(const RVNGPropertyList &propList) = 0;
455  virtual void drawPolyline(const RVNGPropertyList &propList) = 0;
456  virtual void drawPath(const RVNGPropertyList &propList) = 0;
457 
469  virtual void drawConnector(const RVNGPropertyList &propList) = 0;
470 };
471 
472 }
473 
474 #endif /* RVNGTEXTINTERFACE_H */
475 /* vim:set shiftwidth=4 softtabstop=4 noexpandtab: */
virtual void openTextBox(const RVNGPropertyList &propList)=0
Called when a text box should be opened (a sub-document will be placed inside of it) ...
virtual void insertSpace()=0
Called when an explicit space should be inserted.
virtual void openOrderedListLevel(const RVNGPropertyList &propList)=0
Called when a new ordered list level should be opened.
virtual void openTable(const RVNGPropertyList &propList)=0
Called when a table should be opened.
virtual void drawPath(const RVNGPropertyList &propList)=0
virtual void defineCharacterStyle(const RVNGPropertyList &propList)=0
virtual void closeTextBox()=0
Called when a text box should be closed.
virtual void openPageSpan(const RVNGPropertyList &propList)=0
Called when a new page span is opened.
virtual void closeFooter()=0
Called when a footer should be closed.
virtual void drawPolygon(const RVNGPropertyList &propList)=0
virtual void insertText(const RVNGString &text)=0
Called when a string of text should be inserted.
virtual void openFootnote(const RVNGPropertyList &propList)=0
Called when a footnote should be opened (a sub-document will be placed inside of it) ...
virtual void closeEndnote()=0
Called when a endnote should be closed.
virtual void closeFootnote()=0
Called when a footnote should be closed.
virtual void insertField(const RVNGPropertyList &propList)=0
Called when a field should be inserted.
Definition: RVNGTextInterface.h:39
virtual void openSpan(const RVNGPropertyList &propList)=0
Called when a text span is opened.
virtual void defineSectionStyle(const RVNGPropertyList &propList)=0
virtual void closeFrame()=0
Called when the current positioned box is closed.
virtual void definePageStyle(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 defineGraphicStyle(const librevenge::RVNGPropertyList &propList)=0
virtual void drawPolyline(const RVNGPropertyList &propList)=0
virtual void insertEquation(const RVNGPropertyList &propList)=0
Called when a mathml object should be inserted.
virtual void insertBinaryObject(const RVNGPropertyList &propList)=0
Called when a binary object should be inserted.
virtual void openComment(const RVNGPropertyList &propList)=0
Called when a comment or annotation should be opened (a sub-document will be placed inside of it) ...
virtual void openListElement(const RVNGPropertyList &propList)=0
Called when a list element should be opened.
virtual void insertTab()=0
Called when a TAB character should be inserted.
virtual void openTableCell(const RVNGPropertyList &propList)=0
Called when a new table cell is opened.
virtual void openUnorderedListLevel(const RVNGPropertyList &propList)=0
Called when a new unordered list level should be opened.
virtual void openParagraph(const RVNGPropertyList &propList)=0
Called when a new paragraph is opened.
virtual void defineEmbeddedFont(const RVNGPropertyList &propList)=0
Called when an embedded font should be defined.
virtual void drawRectangle(const RVNGPropertyList &propList)=0
virtual void openEndnote(const RVNGPropertyList &propList)=0
Called when a endnote should be opened (a sub-document will be placed inside of it) ...
virtual void closeTableCell()=0
Called when the current table cell is closed.
virtual void openTableRow(const RVNGPropertyList &propList)=0
Called when a new table row is opened.
virtual void openLink(const RVNGPropertyList &propList)=0
Called when a link should be opened.
virtual void closeSection()=0
Called when a section is closed.
virtual void openHeader(const RVNGPropertyList &propList)=0
Called when a header should be opened (a sub-document will be placed inside of it).
virtual void openFooter(const RVNGPropertyList &propList)=0
Called when a footer should be opened (a sub-document will be placed inside of it).
virtual void startDocument(const RVNGPropertyList &propList)=0
Called at the start of the parsing process.
virtual void closeParagraph()=0
Called when a paragraph is closed.
virtual void closeLink()=0
Called when the current link is closed.
virtual void setDocumentMetaData(const RVNGPropertyList &propList)=0
Called when all document metadata should be set.
virtual void closeTable()=0
Called when the current table is closed.
virtual void endDocument()=0
Called at the end of the parsing process.
virtual void closeOrderedListLevel()=0
Called when an unordered list level should be closed.
virtual void drawEllipse(const RVNGPropertyList &propList)=0
virtual void closeSpan()=0
Called when a text span is closed.
virtual void openSection(const RVNGPropertyList &propList)=0
Called when a new section is opened.
virtual void closeHeader()=0
Called when a header should be closed.
virtual void openGroup(const librevenge::RVNGPropertyList &propList)=0
virtual void defineParagraphStyle(const RVNGPropertyList &propList)=0
virtual void closeTableRow()=0
Called when the current table row is closed.
virtual void openFrame(const RVNGPropertyList &propList)=0
Called when a positioned box should be opened.
virtual void closeListElement()=0
Called when a list element should be closed.
virtual void drawConnector(const RVNGPropertyList &propList)=0
Draw a connector.
virtual void insertLineBreak()=0
Called when a line break should be inserted.
virtual ~RVNGTextInterface()
Definition: RVNGTextInterface.h:42
virtual void closePageSpan()=0
Called when a page span is closed.
virtual void closeUnorderedListLevel()=0
Called when an ununordered list level should be closed.
Definition: RVNGPropertyList.h:38
virtual void closeComment()=0
Called when a comment or annotation should be closed.
Definition: RVNGString.h:31

Generated for librevenge by doxygen 1.8.6