- Main Page
- Namespaces
- Classes
- Files

- File List
- File Members

RVNGHTMLTextGenerator.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 *
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 RVNGHTMLTEXTGENERATOR_H
22 #define RVNGHTMLTEXTGENERATOR_H
23
24 #include <librevenge/librevenge.h>
25 #include <librevenge-stream/librevenge-stream.h>
26
27 namespace librevenge
28 {
29
30 struct RVNGHTMLTextGeneratorImpl;
31
32 class RVNGHTMLTextGenerator : public RVNGTextInterface
33 {
34 public:
35 explicit RVNGHTMLTextGenerator(RVNGString &document);
36 ~RVNGHTMLTextGenerator();
37
38 void setDocumentMetaData(const RVNGPropertyList &propList);
39
40 void startDocument(const RVNGPropertyList &propList);
41 void endDocument();
42
43 void defineEmbeddedFont(const RVNGPropertyList &propList);
44
45 void definePageStyle(const RVNGPropertyList &);
46 void openPageSpan(const RVNGPropertyList &propList);
47 void closePageSpan();
48 void openHeader(const RVNGPropertyList &propList);
49 void closeHeader();
50 void openFooter(const RVNGPropertyList &propList);
51 void closeFooter();
52
53 void defineSectionStyle(const RVNGPropertyList &);
54 void openSection(const RVNGPropertyList &propList);
55 void closeSection();
56
57 void defineParagraphStyle(const RVNGPropertyList &);
58 void openParagraph(const RVNGPropertyList &propList);
59 void closeParagraph();
60
61 void defineCharacterStyle(const RVNGPropertyList &);
62 void openSpan(const RVNGPropertyList &propList);
63 void closeSpan();
64
65 void openLink(const RVNGPropertyList &propList);
66 void closeLink();
67
68 void insertTab();
69 void insertText(const RVNGString &text);
70 void insertSpace();
71 void insertLineBreak();
72 void insertField(const RVNGPropertyList &propList);
73
74 void openOrderedListLevel(const RVNGPropertyList &propList);
75 void openUnorderedListLevel(const RVNGPropertyList &propList);
76 void closeOrderedListLevel();
77 void closeUnorderedListLevel();
78 void openListElement(const RVNGPropertyList &propList);
79 void closeListElement();
80
81 void openFootnote(const RVNGPropertyList &propList);
82 void closeFootnote();
83 void openEndnote(const RVNGPropertyList &propList);
84 void closeEndnote();
85 void openComment(const RVNGPropertyList &propList);
86 void closeComment();
87 void openTextBox(const RVNGPropertyList &propList);
88 void closeTextBox();
89
90 void openTable(const RVNGPropertyList &propList);
91 void openTableRow(const RVNGPropertyList &propList);
92 void closeTableRow();
93 void openTableCell(const RVNGPropertyList &propList);
94 void closeTableCell();
95 void insertCoveredTableCell(const RVNGPropertyList &propList);
96 void closeTable();
97
98 void openFrame(const RVNGPropertyList &propList);
99 void closeFrame();
100
101 void openGroup(const librevenge::RVNGPropertyList &propList);
102 void closeGroup();
103
104 void defineGraphicStyle(const librevenge::RVNGPropertyList &propList);
105 void drawRectangle(const librevenge::RVNGPropertyList &propList);
106 void drawEllipse(const librevenge::RVNGPropertyList &propList);
107 void drawPolygon(const librevenge::RVNGPropertyList &propList);
108 void drawPolyline(const librevenge::RVNGPropertyList &propList);
109 void drawPath(const librevenge::RVNGPropertyList &propList);
110 void drawConnector(const RVNGPropertyList &propList);
111
112 void insertBinaryObject(const RVNGPropertyList &propList);
113 void insertEquation(const RVNGPropertyList &propList);
114
115 private:
116 RVNGHTMLTextGeneratorImpl *m_impl;
117
118 // Unimplemented to prevent compiler from creating crasher ones
119 RVNGHTMLTextGenerator(const RVNGHTMLTextGenerator &);
120 RVNGHTMLTextGenerator &operator=(const RVNGHTMLTextGenerator &);
121 };
122
123 }
124
125 #endif /* RVNGHTMLTEXTGENERATOR_H */
126
127 /* vim:set shiftwidth=4 softtabstop=4 noexpandtab: */
librevenge::RVNGHTMLTextGenerator::closeTableCell
void closeTableCell()
Called when the current table cell is closed.
Definition: RVNGHTMLTextGenerator.cpp:702
librevenge::RVNGHTMLTextGenerator::openLink
void openLink(const RVNGPropertyList &propList)
Called when a link should be opened.
Definition: RVNGHTMLTextGenerator.cpp:490
librevenge::RVNGHTMLTextGenerator::closeComment
void closeComment()
Called when a comment or annotation should be closed.
Definition: RVNGHTMLTextGenerator.cpp:639
librevenge::RVNGHTMLTextGenerator::closeEndnote
void closeEndnote()
Called when a endnote should be closed.
Definition: RVNGHTMLTextGenerator.cpp:623
librevenge::RVNGHTMLTextGenerator::openPageSpan
void openPageSpan(const RVNGPropertyList &propList)
Called when a new page span is opened.
Definition: RVNGHTMLTextGenerator.cpp:413
librevenge::RVNGHTMLTextGenerator::endDocument
void endDocument()
Called at the end of the parsing process.
Definition: RVNGHTMLTextGenerator.cpp:386
librevenge::RVNGHTMLTextGenerator::closeTableRow
void closeTableRow()
Called when the current table row is closed.
Definition: RVNGHTMLTextGenerator.cpp:681
librevenge::RVNGHTMLTextGenerator::definePageStyle
void definePageStyle(const RVNGPropertyList &)
Definition: RVNGHTMLTextGenerator.cpp:422
librevenge::RVNGHTMLTextGenerator::closeSpan
void closeSpan()
Called when a text span is closed.
Definition: RVNGHTMLTextGenerator.cpp:483
librevenge::RVNGHTMLTextGenerator::closeTable
void closeTable()
Called when the current table is closed.
Definition: RVNGHTMLTextGenerator.cpp:711
librevenge::RVNGHTMLTextGenerator::openOrderedListLevel
void openOrderedListLevel(const RVNGPropertyList &propList)
Called when a new ordered list level should be opened.
Definition: RVNGHTMLTextGenerator.cpp:549
librevenge::RVNGHTMLTextGenerator::openTableCell
void openTableCell(const RVNGPropertyList &propList)
Called when a new table cell is opened.
Definition: RVNGHTMLTextGenerator.cpp:688
librevenge::RVNGHTMLTextGenerator::openListElement
void openListElement(const RVNGPropertyList &propList)
Called when a list element should be opened.
Definition: RVNGHTMLTextGenerator.cpp:584
librevenge::RVNGHTMLTextGenerator::defineGraphicStyle
void defineGraphicStyle(const librevenge::RVNGPropertyList &propList)
Definition: RVNGHTMLTextGenerator.cpp:726
librevenge::RVNGHTMLTextGenerator::openHeader
void openHeader(const RVNGPropertyList &propList)
Called when a header should be opened (a sub-document will be placed inside of it).
Definition: RVNGHTMLTextGenerator.cpp:424
librevenge::RVNGHTMLTextGenerator::drawPolyline
void drawPolyline(const librevenge::RVNGPropertyList &propList)
Definition: RVNGHTMLTextGenerator.cpp:730
librevenge::RVNGHTMLTextGenerator::drawPolygon
void drawPolygon(const librevenge::RVNGPropertyList &propList)
Definition: RVNGHTMLTextGenerator.cpp:729
librevenge::RVNGHTMLTextGenerator::insertEquation
void insertEquation(const RVNGPropertyList &propList)
Called when a mathml object should be inserted.
Definition: RVNGHTMLTextGenerator.cpp:735
librevenge::RVNGHTMLTextGenerator::drawPath
void drawPath(const librevenge::RVNGPropertyList &propList)
Definition: RVNGHTMLTextGenerator.cpp:731
librevenge::RVNGHTMLTextGenerator::setDocumentMetaData
void setDocumentMetaData(const RVNGPropertyList &propList)
Called when all document metadata should be set.
Definition: RVNGHTMLTextGenerator.cpp:355
librevenge::RVNGHTMLTextGenerator::insertField
void insertField(const RVNGPropertyList &propList)
Called when a field should be inserted.
Definition: RVNGHTMLTextGenerator.cpp:528
librevenge::RVNGHTMLTextGenerator::closeUnorderedListLevel
void closeUnorderedListLevel()
Called when an ununordered list level should be closed.
Definition: RVNGHTMLTextGenerator.cpp:575
librevenge::RVNGHTMLTextGenerator::defineEmbeddedFont
void defineEmbeddedFont(const RVNGPropertyList &propList)
Called when an embedded font should be defined.
Definition: RVNGHTMLTextGenerator.cpp:409
librevenge::RVNGTextInterface
Definition: RVNGTextInterface.h:39
librevenge::RVNGHTMLTextGenerator::openComment
void openComment(const RVNGPropertyList &propList)
Called when a comment or annotation should be opened (a sub-document will be placed inside of it) ...
Definition: RVNGHTMLTextGenerator.cpp:630
librevenge::RVNGHTMLTextGenerator::closeFootnote
void closeFootnote()
Called when a footnote should be closed.
Definition: RVNGHTMLTextGenerator.cpp:607
librevenge::RVNGHTMLTextGenerator::openParagraph
void openParagraph(const RVNGPropertyList &propList)
Called when a new paragraph is opened.
Definition: RVNGHTMLTextGenerator.cpp:454
librevenge::RVNGHTMLTextGenerator::operator=
RVNGHTMLTextGenerator & operator=(const RVNGHTMLTextGenerator &)
librevenge::RVNGHTMLTextGenerator::defineCharacterStyle
void defineCharacterStyle(const RVNGPropertyList &)
Definition: RVNGHTMLTextGenerator.cpp:470
librevenge::RVNGHTMLTextGenerator::m_impl
RVNGHTMLTextGeneratorImpl * m_impl
Definition: RVNGHTMLTextGenerator.h:116
librevenge::RVNGHTMLTextGeneratorImpl
the internal state of a html document generator
Definition: RVNGHTMLTextGenerator.cpp:246
librevenge::RVNGHTMLTextGenerator::defineSectionStyle
void defineSectionStyle(const RVNGPropertyList &)
Definition: RVNGHTMLTextGenerator.cpp:445
librevenge::RVNGHTMLTextGenerator::closeOrderedListLevel
void closeOrderedListLevel()
Called when an unordered list level should be closed.
Definition: RVNGHTMLTextGenerator.cpp:558
librevenge::RVNGHTMLTextGenerator::closeLink
void closeLink()
Called when the current link is closed.
Definition: RVNGHTMLTextGenerator.cpp:505
librevenge::RVNGHTMLTextGenerator::openTable
void openTable(const RVNGPropertyList &propList)
Called when a table should be opened.
Definition: RVNGHTMLTextGenerator.cpp:662
librevenge::RVNGHTMLTextGenerator::openGroup
void openGroup(const librevenge::RVNGPropertyList &propList)
Definition: RVNGHTMLTextGenerator.cpp:723
librevenge.h
librevenge::RVNGHTMLTextGenerator::drawRectangle
void drawRectangle(const librevenge::RVNGPropertyList &propList)
Definition: RVNGHTMLTextGenerator.cpp:727
librevenge::RVNGHTMLTextGenerator::insertBinaryObject
void insertBinaryObject(const RVNGPropertyList &propList)
Called when a binary object should be inserted.
Definition: RVNGHTMLTextGenerator.cpp:734
librevenge::RVNGHTMLTextGenerator::closeHeader
void closeHeader()
Called when a header should be closed.
Definition: RVNGHTMLTextGenerator.cpp:429
librevenge::RVNGHTMLTextGenerator::insertLineBreak
void insertLineBreak()
Called when a line break should be inserted.
Definition: RVNGHTMLTextGenerator.cpp:521
librevenge::RVNGHTMLTextGenerator::openUnorderedListLevel
void openUnorderedListLevel(const RVNGPropertyList &propList)
Called when a new unordered list level should be opened.
Definition: RVNGHTMLTextGenerator.cpp:566
librevenge::RVNGHTMLTextGenerator::closeTextBox
void closeTextBox()
Called when a text box should be closed.
Definition: RVNGHTMLTextGenerator.cpp:655
librevenge::RVNGHTMLTextGenerator::drawEllipse
void drawEllipse(const librevenge::RVNGPropertyList &propList)
Definition: RVNGHTMLTextGenerator.cpp:728
librevenge::RVNGHTMLTextGenerator::closeFooter
void closeFooter()
Called when a footer should be closed.
Definition: RVNGHTMLTextGenerator.cpp:440
librevenge::RVNGHTMLTextGenerator::openEndnote
void openEndnote(const RVNGPropertyList &propList)
Called when a endnote should be opened (a sub-document will be placed inside of it) ...
Definition: RVNGHTMLTextGenerator.cpp:614
librevenge::RVNGHTMLTextGenerator::openTableRow
void openTableRow(const RVNGPropertyList &propList)
Called when a new table row is opened.
Definition: RVNGHTMLTextGenerator.cpp:674
librevenge::RVNGHTMLTextGenerator::insertTab
void insertTab()
Called when a TAB character should be inserted.
Definition: RVNGHTMLTextGenerator.cpp:512
librevenge::RVNGHTMLTextGenerator::openSpan
void openSpan(const RVNGPropertyList &propList)
Called when a text span is opened.
Definition: RVNGHTMLTextGenerator.cpp:475
librevenge::RVNGHTMLTextGenerator::defineParagraphStyle
void defineParagraphStyle(const RVNGPropertyList &)
Definition: RVNGHTMLTextGenerator.cpp:449
librevenge::RVNGHTMLTextGenerator::openSection
void openSection(const RVNGPropertyList &propList)
Called when a new section is opened.
Definition: RVNGHTMLTextGenerator.cpp:446
librevenge::RVNGHTMLTextGenerator::closeParagraph
void closeParagraph()
Called when a paragraph is closed.
Definition: RVNGHTMLTextGenerator.cpp:462
librevenge::RVNGHTMLTextGenerator::closeFrame
void closeFrame()
Called when the current positioned box is closed.
Definition: RVNGHTMLTextGenerator.cpp:721
librevenge::RVNGHTMLTextGenerator::closeSection
void closeSection()
Called when a section is closed.
Definition: RVNGHTMLTextGenerator.cpp:447
librevenge::RVNGHTMLTextGenerator::startDocument
void startDocument(const RVNGPropertyList &propList)
Called at the start of the parsing process.
Definition: RVNGHTMLTextGenerator.cpp:382
librevenge::RVNGHTMLTextGenerator
Definition: RVNGHTMLTextGenerator.h:32
librevenge::RVNGHTMLTextGenerator::openFooter
void openFooter(const RVNGPropertyList &propList)
Called when a footer should be opened (a sub-document will be placed inside of it).
Definition: RVNGHTMLTextGenerator.cpp:435
librevenge::RVNGHTMLTextGenerator::closePageSpan
void closePageSpan()
Called when a page span is closed.
Definition: RVNGHTMLTextGenerator.cpp:418
librevenge::RVNGHTMLTextGenerator::RVNGHTMLTextGenerator
RVNGHTMLTextGenerator(RVNGString &document)
Definition: RVNGHTMLTextGenerator.cpp:346
librevenge::RVNGHTMLTextGenerator::closeListElement
void closeListElement()
Called when a list element should be closed.
Definition: RVNGHTMLTextGenerator.cpp:591
librevenge::RVNGPropertyList
Definition: RVNGPropertyList.h:35
librevenge::RVNGHTMLTextGenerator::closeGroup
void closeGroup()
Definition: RVNGHTMLTextGenerator.cpp:724
librevenge::RVNGHTMLTextGenerator::openTextBox
void openTextBox(const RVNGPropertyList &propList)
Called when a text box should be opened (a sub-document will be placed inside of it) ...
Definition: RVNGHTMLTextGenerator.cpp:646
librevenge::RVNGString
Definition: RVNGString.h:29
librevenge::RVNGHTMLTextGenerator::insertSpace
void insertSpace()
Called when an explicit space should be inserted.
Definition: RVNGHTMLTextGenerator.cpp:542
librevenge::RVNGHTMLTextGenerator::insertCoveredTableCell
void insertCoveredTableCell(const RVNGPropertyList &propList)
Called when a covered (spanned by another cell in the table) table cell is opened.
Definition: RVNGHTMLTextGenerator.cpp:709
librevenge::RVNGHTMLTextGenerator::drawConnector
void drawConnector(const RVNGPropertyList &propList)
Draw a connector.
Definition: RVNGHTMLTextGenerator.cpp:732
librevenge-stream.h
librevenge::RVNGHTMLTextGenerator::openFootnote
void openFootnote(const RVNGPropertyList &propList)
Called when a footnote should be opened (a sub-document will be placed inside of it) ...
Definition: RVNGHTMLTextGenerator.cpp:598
librevenge::RVNGHTMLTextGenerator::insertText
void insertText(const RVNGString &text)
Called when a string of text should be inserted.
Definition: RVNGHTMLTextGenerator.cpp:535
librevenge::RVNGHTMLTextGenerator::openFrame
void openFrame(const RVNGPropertyList &propList)
Called when a positioned box should be opened.
Definition: RVNGHTMLTextGenerator.cpp:720
librevenge::RVNGHTMLTextGenerator::~RVNGHTMLTextGenerator
~RVNGHTMLTextGenerator()
Definition: RVNGHTMLTextGenerator.cpp:350