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-generators-api.h"
25
26 #include <librevenge/librevenge.h>
27 #include <librevenge-stream/librevenge-stream.h>
28
29 namespace librevenge
30 {
31
32 struct RVNGHTMLTextGeneratorImpl;
33
34 class REVENGE_GENERATORS_API RVNGHTMLTextGenerator : public RVNGTextInterface
35 {
36 public:
37 explicit RVNGHTMLTextGenerator(RVNGString &document);
38 ~RVNGHTMLTextGenerator();
39
40 void setDocumentMetaData(const RVNGPropertyList &propList);
41
42 void startDocument(const RVNGPropertyList &propList);
43 void endDocument();
44
45 void defineEmbeddedFont(const RVNGPropertyList &propList);
46
47 void definePageStyle(const RVNGPropertyList &);
48 void openPageSpan(const RVNGPropertyList &propList);
49 void closePageSpan();
50 void openHeader(const RVNGPropertyList &propList);
51 void closeHeader();
52 void openFooter(const RVNGPropertyList &propList);
53 void closeFooter();
54
55 void defineSectionStyle(const RVNGPropertyList &);
56 void openSection(const RVNGPropertyList &propList);
57 void closeSection();
58
59 void defineParagraphStyle(const RVNGPropertyList &);
60 void openParagraph(const RVNGPropertyList &propList);
61 void closeParagraph();
62
63 void defineCharacterStyle(const RVNGPropertyList &);
64 void openSpan(const RVNGPropertyList &propList);
65 void closeSpan();
66
67 void openLink(const RVNGPropertyList &propList);
68 void closeLink();
69
70 void insertTab();
71 void insertText(const RVNGString &text);
72 void insertSpace();
73 void insertLineBreak();
74 void insertField(const RVNGPropertyList &propList);
75
76 void openOrderedListLevel(const RVNGPropertyList &propList);
77 void openUnorderedListLevel(const RVNGPropertyList &propList);
78 void closeOrderedListLevel();
79 void closeUnorderedListLevel();
80 void openListElement(const RVNGPropertyList &propList);
81 void closeListElement();
82
83 void openFootnote(const RVNGPropertyList &propList);
84 void closeFootnote();
85 void openEndnote(const RVNGPropertyList &propList);
86 void closeEndnote();
87 void openComment(const RVNGPropertyList &propList);
88 void closeComment();
89 void openTextBox(const RVNGPropertyList &propList);
90 void closeTextBox();
91
92 void openTable(const RVNGPropertyList &propList);
93 void openTableRow(const RVNGPropertyList &propList);
94 void closeTableRow();
95 void openTableCell(const RVNGPropertyList &propList);
96 void closeTableCell();
97 void insertCoveredTableCell(const RVNGPropertyList &propList);
98 void closeTable();
99
100 void openFrame(const RVNGPropertyList &propList);
101 void closeFrame();
102
103 void openGroup(const librevenge::RVNGPropertyList &propList);
104 void closeGroup();
105
106 void defineGraphicStyle(const librevenge::RVNGPropertyList &propList);
107 void drawRectangle(const librevenge::RVNGPropertyList &propList);
108 void drawEllipse(const librevenge::RVNGPropertyList &propList);
109 void drawPolygon(const librevenge::RVNGPropertyList &propList);
110 void drawPolyline(const librevenge::RVNGPropertyList &propList);
111 void drawPath(const librevenge::RVNGPropertyList &propList);
112 void drawConnector(const RVNGPropertyList &propList);
113
114 void insertBinaryObject(const RVNGPropertyList &propList);
115 void insertEquation(const RVNGPropertyList &propList);
116
117 private:
118 RVNGHTMLTextGeneratorImpl *m_impl;
119
120 // Unimplemented to prevent compiler from creating crasher ones
121 RVNGHTMLTextGenerator(const RVNGHTMLTextGenerator &);
122 RVNGHTMLTextGenerator &operator=(const RVNGHTMLTextGenerator &);
123 };
124
125 }
126
127 #endif /* RVNGHTMLTEXTGENERATOR_H */
128
129 /* vim:set shiftwidth=4 softtabstop=4 noexpandtab: */
librevenge
Definition: RVNGBinaryData.cpp:38
librevenge::RVNGTextInterface
Definition: RVNGTextInterface.h:39
librevenge-generators-api.h
librevenge::RVNGHTMLTextGenerator::m_impl
RVNGHTMLTextGeneratorImpl * m_impl
Definition: RVNGHTMLTextGenerator.h:118
librevenge::RVNGHTMLTextGeneratorImpl
the internal state of a html document generator
Definition: RVNGHTMLTextGenerator.cpp:249
librevenge.h
librevenge::RVNGHTMLTextGenerator
Definition: RVNGHTMLTextGenerator.h:34
REVENGE_GENERATORS_API
#define REVENGE_GENERATORS_API
Definition: librevenge-generators-api.h:34
librevenge::RVNGPropertyList
Definition: RVNGPropertyList.h:38
librevenge::RVNGString
UTF-8 string.
Definition: RVNGString.h:33
librevenge-stream.h