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 
102  virtual void setDocumentMetaData(const RVNGPropertyList &propList) = 0;
103 
107  virtual void startDocument(const RVNGPropertyList &propList) = 0;
108 
112  virtual void endDocument() = 0;
113 
114  virtual void definePageStyle(const RVNGPropertyList &propList) = 0;
115 
128  virtual void defineEmbeddedFont(const RVNGPropertyList &propList) = 0;
129 
146  virtual void openPageSpan(const RVNGPropertyList &propList) = 0;
150  virtual void closePageSpan() = 0;
151 
157  virtual void openHeader(const RVNGPropertyList &propList) = 0;
161  virtual void closeHeader() = 0;
162 
168  virtual void openFooter(const RVNGPropertyList &propList) = 0;
172  virtual void closeFooter() = 0;
173 
174  virtual void defineParagraphStyle(const RVNGPropertyList &propList) = 0;
175 
187  virtual void openParagraph(const RVNGPropertyList &propList) = 0;
191  virtual void closeParagraph() = 0;
192 
193  virtual void defineCharacterStyle(const RVNGPropertyList &propList) = 0;
194 
200  virtual void openSpan(const RVNGPropertyList &propList) = 0;
204  virtual void closeSpan() = 0;
213  virtual void openLink(const RVNGPropertyList &propList) = 0;
217  virtual void closeLink() = 0;
218 
219  virtual void defineSectionStyle(const RVNGPropertyList &propList) = 0;
220 
233  virtual void openSection(const RVNGPropertyList &propList) = 0;
237  virtual void closeSection() = 0;
238 
242  virtual void insertTab() = 0;
246  virtual void insertSpace() = 0;
251  virtual void insertText(const RVNGString &text) = 0;
255  virtual void insertLineBreak() = 0;
256 
264  virtual void insertField(const RVNGPropertyList &propList) = 0;
265 
278  virtual void openOrderedListLevel(const RVNGPropertyList &propList) = 0;
288  virtual void openUnorderedListLevel(const RVNGPropertyList &propList) = 0;
292  virtual void closeOrderedListLevel() = 0;
296  virtual void closeUnorderedListLevel() = 0;
314  virtual void openListElement(const RVNGPropertyList &propList) = 0;
318  virtual void closeListElement() = 0;
319 
325  virtual void openFootnote(const RVNGPropertyList &propList) = 0;
329  virtual void closeFootnote() = 0;
330 
336  virtual void openEndnote(const RVNGPropertyList &propList) = 0;
340  virtual void closeEndnote() = 0;
341 
346  virtual void openComment(const RVNGPropertyList &propList) = 0;
350  virtual void closeComment() = 0;
351 
356  virtual void openTextBox(const RVNGPropertyList &propList) = 0;
360  virtual void closeTextBox() = 0;
361 
375  virtual void openTable(const RVNGPropertyList &propList) = 0;
383  virtual void openTableRow(const RVNGPropertyList &propList) = 0;
387  virtual void closeTableRow() = 0;
402  virtual void openTableCell(const RVNGPropertyList &propList) = 0;
406  virtual void closeTableCell() = 0;
413  virtual void insertCoveredTableCell(const RVNGPropertyList &propList) = 0;
417  virtual void closeTable() = 0;
433  virtual void openFrame(const RVNGPropertyList &propList) = 0;
437  virtual void closeFrame() = 0;
448  virtual void insertBinaryObject(const RVNGPropertyList &propList) = 0;
455  virtual void insertEquation(const RVNGPropertyList &propList) = 0;
456 
457  // group
458  virtual void openGroup(const librevenge::RVNGPropertyList &propList) = 0;
459  virtual void closeGroup() = 0;
460 
461  // Different primitive shapes
462  virtual void defineGraphicStyle(const librevenge::RVNGPropertyList &propList) = 0;
463 
464  virtual void drawRectangle(const RVNGPropertyList &propList) = 0;
465  virtual void drawEllipse(const RVNGPropertyList &propList) = 0;
466  virtual void drawPolygon(const RVNGPropertyList &propList) = 0;
467  virtual void drawPolyline(const RVNGPropertyList &propList) = 0;
468  virtual void drawPath(const RVNGPropertyList &propList) = 0;
469 
481  virtual void drawConnector(const RVNGPropertyList &propList) = 0;
482 };
483 
484 }
485 
486 #endif /* RVNGTEXTINTERFACE_H */
487 /* 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.
Definition: RVNGBinaryData.cpp:39
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.
UTF-8 string.
Definition: RVNGString.h:33

Generated for librevenge by doxygen 1.8.10