EBOOKSubDocument.h
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /*
3 * This file is part of the libe-book project.
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
10 #ifndef EBOOKSUBDOCUMENT_H_INCLUDED
11 #define EBOOKSUBDOCUMENT_H_INCLUDED
12
13 #include <librevenge/librevenge.h>
14
15 namespace libebook
16 {
17
18 class EBOOKSubDocument : public librevenge::RVNGTextInterface
19 {
20 // disable copying
21 EBOOKSubDocument(const EBOOKSubDocument &);
22 EBOOKSubDocument &operator=(const EBOOKSubDocument &);
23
24 public:
25 explicit EBOOKSubDocument(librevenge::RVNGTextInterface &document);
26 ~EBOOKSubDocument();
27
28 void setDocumentMetaData(const librevenge::RVNGPropertyList &propList);
29
30 void startDocument(const librevenge::RVNGPropertyList &propList);
31 void endDocument();
32
33 void defineEmbeddedFont(const librevenge::RVNGPropertyList &propList);
34
35 void definePageStyle(const librevenge::RVNGPropertyList &propList);
36 void openPageSpan(const librevenge::RVNGPropertyList &propList);
37 void closePageSpan();
38 void openHeader(const librevenge::RVNGPropertyList &propList);
39 void closeHeader();
40 void openFooter(const librevenge::RVNGPropertyList &propList);
41 void closeFooter();
42
43 void defineParagraphStyle(const librevenge::RVNGPropertyList &propList);
44 void openParagraph(const librevenge::RVNGPropertyList &propList);
45 void closeParagraph();
46
47 void defineCharacterStyle(const librevenge::RVNGPropertyList &propList);
48 void openSpan(const librevenge::RVNGPropertyList &propList);
49 void closeSpan();
50
51 void openLink(const librevenge::RVNGPropertyList &propList);
52 void closeLink();
53
54 void defineSectionStyle(const librevenge::RVNGPropertyList &propList);
55 void openSection(const librevenge::RVNGPropertyList &propList);
56 void closeSection();
57
58 void insertTab();
59 void insertSpace();
60 void insertText(const librevenge::RVNGString &text);
61 void insertLineBreak();
62 void insertField(const librevenge::RVNGPropertyList &propList);
63
64 void openOrderedListLevel(const librevenge::RVNGPropertyList &propList);
65 void openUnorderedListLevel(const librevenge::RVNGPropertyList &propList);
66 void closeOrderedListLevel();
67 void closeUnorderedListLevel();
68 void openListElement(const librevenge::RVNGPropertyList &propList);
69 void closeListElement();
70
71 void openFootnote(const librevenge::RVNGPropertyList &propList);
72 void closeFootnote();
73 void openEndnote(const librevenge::RVNGPropertyList &propList);
74 void closeEndnote();
75 void openComment(const librevenge::RVNGPropertyList &propList);
76 void closeComment();
77 void openTextBox(const librevenge::RVNGPropertyList &propList);
78 void closeTextBox();
79
80 void openTable(const librevenge::RVNGPropertyList &propList);
81 void openTableRow(const librevenge::RVNGPropertyList &propList);
82 void closeTableRow();
83 void openTableCell(const librevenge::RVNGPropertyList &propList);
84 void closeTableCell();
85 void insertCoveredTableCell(const librevenge::RVNGPropertyList &propList);
86 void closeTable();
87
88 void openFrame(const librevenge::RVNGPropertyList &propList);
89 void closeFrame();
90
91 void openGroup(const librevenge::RVNGPropertyList &propList);
92 void closeGroup();
93
94 void defineGraphicStyle(const librevenge::RVNGPropertyList &propList);
95 void drawRectangle(const librevenge::RVNGPropertyList &propList);
96 void drawEllipse(const librevenge::RVNGPropertyList &propList);
97 void drawPolygon(const librevenge::RVNGPropertyList &propList);
98 void drawPolyline(const librevenge::RVNGPropertyList &propList);
99 void drawPath(const librevenge::RVNGPropertyList &propList);
100 void drawConnector(const librevenge::RVNGPropertyList &propList);
101
102 void insertBinaryObject(const librevenge::RVNGPropertyList &propList);
103 void insertEquation(const librevenge::RVNGPropertyList &propList);
104
105 private:
106 librevenge::RVNGTextInterface &m_document;
107 };
108
109 }
110
111 #endif // EBOOKSUBDOCUMENT_H_INCLUDED
112
113 /* vim:set shiftwidth=2 softtabstop=2 expandtab: */
libebook::EBOOKSubDocument::openTableCell
void openTableCell(const librevenge::RVNGPropertyList &propList)
Definition: EBOOKSubDocument.cpp:241
libebook::EBOOKSubDocument
Definition: EBOOKSubDocument.h:18
libebook::EBOOKSubDocument::definePageStyle
void definePageStyle(const librevenge::RVNGPropertyList &propList)
Definition: EBOOKSubDocument.cpp:41
libebook::EBOOKSubDocument::openFooter
void openFooter(const librevenge::RVNGPropertyList &propList)
Definition: EBOOKSubDocument.cpp:66
libebook::EBOOKSubDocument::drawPolyline
void drawPolyline(const librevenge::RVNGPropertyList &propList)
Definition: EBOOKSubDocument.cpp:301
libebook::EBOOKSubDocument::endDocument
void endDocument()
Definition: EBOOKSubDocument.cpp:32
libebook::EBOOKSubDocument::openTableRow
void openTableRow(const librevenge::RVNGPropertyList &propList)
Definition: EBOOKSubDocument.cpp:231
libebook::EBOOKSubDocument::closeFrame
void closeFrame()
Definition: EBOOKSubDocument.cpp:266
libebook::EBOOKSubDocument::drawPath
void drawPath(const librevenge::RVNGPropertyList &propList)
Definition: EBOOKSubDocument.cpp:306
libebook::EBOOKSubDocument::openSpan
void openSpan(const librevenge::RVNGPropertyList &propList)
Definition: EBOOKSubDocument.cpp:96
libebook::EBOOKSubDocument::openTextBox
void openTextBox(const librevenge::RVNGPropertyList &propList)
Definition: EBOOKSubDocument.cpp:216
libebook::EBOOKSubDocument::closeEndnote
void closeEndnote()
Definition: EBOOKSubDocument.cpp:201
libebook::EBOOKSubDocument::insertEquation
void insertEquation(const librevenge::RVNGPropertyList &propList)
Definition: EBOOKSubDocument.cpp:321
libebook::EBOOKSubDocument::openFootnote
void openFootnote(const librevenge::RVNGPropertyList &propList)
Definition: EBOOKSubDocument.cpp:186
libebook::EBOOKSubDocument::openOrderedListLevel
void openOrderedListLevel(const librevenge::RVNGPropertyList &propList)
Definition: EBOOKSubDocument.cpp:156
libebook::EBOOKSubDocument::openLink
void openLink(const librevenge::RVNGPropertyList &propList)
Definition: EBOOKSubDocument.cpp:106
libebook::EBOOKSubDocument::closePageSpan
void closePageSpan()
Definition: EBOOKSubDocument.cpp:51
libebook::EBOOKSubDocument::startDocument
void startDocument(const librevenge::RVNGPropertyList &propList)
Definition: EBOOKSubDocument.cpp:28
libebook::EBOOKSubDocument::openHeader
void openHeader(const librevenge::RVNGPropertyList &propList)
Definition: EBOOKSubDocument.cpp:56
libebook::EBOOKSubDocument::closeListElement
void closeListElement()
Definition: EBOOKSubDocument.cpp:181
libebook::EBOOKSubDocument::defineParagraphStyle
void defineParagraphStyle(const librevenge::RVNGPropertyList &propList)
Definition: EBOOKSubDocument.cpp:76
libebook::EBOOKSubDocument::drawConnector
void drawConnector(const librevenge::RVNGPropertyList &propList)
Definition: EBOOKSubDocument.cpp:311
libebook::EBOOKSubDocument::operator=
EBOOKSubDocument & operator=(const EBOOKSubDocument &)
libebook::EBOOKHTMLToken::text
Definition: EBOOKHTMLToken.h:259
libebook::EBOOKSubDocument::insertSpace
void insertSpace()
Definition: EBOOKSubDocument.cpp:136
libebook::EBOOKSubDocument::closeTableCell
void closeTableCell()
Definition: EBOOKSubDocument.cpp:246
libebook::EBOOKSubDocument::insertField
void insertField(const librevenge::RVNGPropertyList &propList)
Definition: EBOOKSubDocument.cpp:151
libebook::EBOOKSubDocument::insertCoveredTableCell
void insertCoveredTableCell(const librevenge::RVNGPropertyList &propList)
Definition: EBOOKSubDocument.cpp:251
libebook::EBOOKSubDocument::openEndnote
void openEndnote(const librevenge::RVNGPropertyList &propList)
Definition: EBOOKSubDocument.cpp:196
libebook::EBOOKSubDocument::~EBOOKSubDocument
~EBOOKSubDocument()
Definition: EBOOKSubDocument.cpp:20
libebook::EBOOKSubDocument::closeComment
void closeComment()
Definition: EBOOKSubDocument.cpp:211
libebook::EBOOKSubDocument::openParagraph
void openParagraph(const librevenge::RVNGPropertyList &propList)
Definition: EBOOKSubDocument.cpp:81
libebook::EBOOKSubDocument::openListElement
void openListElement(const librevenge::RVNGPropertyList &propList)
Definition: EBOOKSubDocument.cpp:176
libebook::EBOOKSubDocument::closeOrderedListLevel
void closeOrderedListLevel()
Definition: EBOOKSubDocument.cpp:166
libebook::EBOOKSubDocument::closeHeader
void closeHeader()
Definition: EBOOKSubDocument.cpp:61
libebook::EBOOKSubDocument::drawPolygon
void drawPolygon(const librevenge::RVNGPropertyList &propList)
Definition: EBOOKSubDocument.cpp:296
libebook::EBOOKSubDocument::closeFootnote
void closeFootnote()
Definition: EBOOKSubDocument.cpp:191
libebook::EBOOKSubDocument::closeLink
void closeLink()
Definition: EBOOKSubDocument.cpp:111
libebook::EBOOKSubDocument::openPageSpan
void openPageSpan(const librevenge::RVNGPropertyList &propList)
Definition: EBOOKSubDocument.cpp:46
libebook::EBOOKSubDocument::openSection
void openSection(const librevenge::RVNGPropertyList &propList)
Definition: EBOOKSubDocument.cpp:121
libebook::EBOOKSubDocument::setDocumentMetaData
void setDocumentMetaData(const librevenge::RVNGPropertyList &propList)
Definition: EBOOKSubDocument.cpp:24
libebook::EBOOKSubDocument::drawEllipse
void drawEllipse(const librevenge::RVNGPropertyList &propList)
Definition: EBOOKSubDocument.cpp:291
libebook::EBOOKSubDocument::openGroup
void openGroup(const librevenge::RVNGPropertyList &propList)
Definition: EBOOKSubDocument.cpp:271
libebook::EBOOKSubDocument::insertLineBreak
void insertLineBreak()
Definition: EBOOKSubDocument.cpp:146
document
XMLTreeNodePtr_t document
Definition: EBOOKHTMLParser.cpp:169
libebook::EBOOKSubDocument::closeSection
void closeSection()
Definition: EBOOKSubDocument.cpp:126
libebook::EBOOKSubDocument::defineCharacterStyle
void defineCharacterStyle(const librevenge::RVNGPropertyList &propList)
Definition: EBOOKSubDocument.cpp:91
libebook::EBOOKSubDocument::closeTableRow
void closeTableRow()
Definition: EBOOKSubDocument.cpp:236
libebook::EBOOKSubDocument::closeGroup
void closeGroup()
Definition: EBOOKSubDocument.cpp:276
libebook::EBOOKSubDocument::defineGraphicStyle
void defineGraphicStyle(const librevenge::RVNGPropertyList &propList)
Definition: EBOOKSubDocument.cpp:281
libebook::EBOOKSubDocument::openFrame
void openFrame(const librevenge::RVNGPropertyList &propList)
Definition: EBOOKSubDocument.cpp:261
libebook::EBOOKSubDocument::closeParagraph
void closeParagraph()
Definition: EBOOKSubDocument.cpp:86
libebook::EBOOKSubDocument::insertText
void insertText(const librevenge::RVNGString &text)
Definition: EBOOKSubDocument.cpp:141
libebook
Definition: CHMParser.cpp:20
libebook::EBOOKSubDocument::insertTab
void insertTab()
Definition: EBOOKSubDocument.cpp:131
libebook::EBOOKSubDocument::closeUnorderedListLevel
void closeUnorderedListLevel()
Definition: EBOOKSubDocument.cpp:171
libebook::EBOOKSubDocument::closeSpan
void closeSpan()
Definition: EBOOKSubDocument.cpp:101
libebook::EBOOKSubDocument::defineEmbeddedFont
void defineEmbeddedFont(const librevenge::RVNGPropertyList &propList)
Definition: EBOOKSubDocument.cpp:36
libebook::EBOOKSubDocument::openUnorderedListLevel
void openUnorderedListLevel(const librevenge::RVNGPropertyList &propList)
Definition: EBOOKSubDocument.cpp:161
libebook::EBOOKSubDocument::closeTextBox
void closeTextBox()
Definition: EBOOKSubDocument.cpp:221
libebook::EBOOKSubDocument::openTable
void openTable(const librevenge::RVNGPropertyList &propList)
Definition: EBOOKSubDocument.cpp:226
libebook::EBOOKSubDocument::closeFooter
void closeFooter()
Definition: EBOOKSubDocument.cpp:71
libebook::EBOOKSubDocument::drawRectangle
void drawRectangle(const librevenge::RVNGPropertyList &propList)
Definition: EBOOKSubDocument.cpp:286
libebook::EBOOKSubDocument::openComment
void openComment(const librevenge::RVNGPropertyList &propList)
Definition: EBOOKSubDocument.cpp:206
libebook::EBOOKSubDocument::insertBinaryObject
void insertBinaryObject(const librevenge::RVNGPropertyList &propList)
Definition: EBOOKSubDocument.cpp:316
libebook::EBOOKSubDocument::closeTable
void closeTable()
Definition: EBOOKSubDocument.cpp:256
libebook::EBOOKSubDocument::defineSectionStyle
void defineSectionStyle(const librevenge::RVNGPropertyList &propList)
Definition: EBOOKSubDocument.cpp:116
libebook::EBOOKSubDocument::m_document
librevenge::RVNGTextInterface & m_document
Definition: EBOOKSubDocument.h:106
libebook::EBOOKSubDocument::EBOOKSubDocument
EBOOKSubDocument(const EBOOKSubDocument &)