EBOOKOutputElements.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 EBOOKOUTPUTELEMENTS_H
11 #define EBOOKOUTPUTELEMENTS_H
12
13 #include <list>
14 #include <map>
15
16 #include <librevenge/librevenge.h>
17
18 namespace libebook
19 {
20
21 class EBOOKOutputElement;
22
23 class EBOOKOutputElements
24 {
25 public:
26 EBOOKOutputElements();
27 virtual ~EBOOKOutputElements();
28 void append(const EBOOKOutputElements &elements);
29 void write(librevenge::RVNGTextInterface *iface) const;
30 void addCloseEndnote();
31 void addCloseFooter();
32 void addCloseFootnote();
33 void addCloseFrame();
34 void addCloseHeader();
35 void addCloseLink();
36 void addCloseListElement();
37 void addCloseOrderedListLevel();
38 void addClosePageSpan();
39 void addCloseParagraph();
40 void addCloseSection();
41 void addCloseSpan();
42 void addCloseTable();
43 void addCloseTableCell();
44 void addCloseTableRow();
45 void addCloseUnorderedListLevel();
46 void addInsertBinaryObject(const librevenge::RVNGPropertyList &propList);
47 void addInsertCoveredTableCell(const librevenge::RVNGPropertyList &propList);
48 void addInsertLineBreak();
49 void addInsertSpace();
50 void addInsertTab();
51 void addInsertText(const librevenge::RVNGString &text);
52 void addOpenEndnote(const librevenge::RVNGPropertyList &propList);
53 void addOpenFooter(const librevenge::RVNGPropertyList &propList, int id);
54 void addOpenFootnote(const librevenge::RVNGPropertyList &propList);
55 void addOpenFrame(const librevenge::RVNGPropertyList &propList);
56 void addOpenHeader(const librevenge::RVNGPropertyList &propList, int id);
57 void addOpenLink(const librevenge::RVNGPropertyList &propList);
58 void addOpenListElement(const librevenge::RVNGPropertyList &propList);
59 void addOpenOrderedListLevel(const librevenge::RVNGPropertyList &propList);
60 void addOpenPageSpan(const librevenge::RVNGPropertyList &propList);
61 void addOpenPageSpan(const librevenge::RVNGPropertyList &propList,
62 int footer, int footerLeft, int footerFirst, int footerLast,
63 int header, int headerLeft, int headerFirst, int headerLast);
64 void addOpenParagraph(const librevenge::RVNGPropertyList &propList);
65 void addOpenSection(const librevenge::RVNGPropertyList &propList);
66 void addOpenSpan(const librevenge::RVNGPropertyList &propList);
67 void addOpenTable(const librevenge::RVNGPropertyList &propList);
68 void addOpenTableCell(const librevenge::RVNGPropertyList &propList);
69 void addOpenTableRow(const librevenge::RVNGPropertyList &propList);
70 void addOpenUnorderedListLevel(const librevenge::RVNGPropertyList &propList);
71 void addStartDocument(const librevenge::RVNGPropertyList &propList);
72 bool empty() const
73 {
74 return m_bodyElements.empty();
75 }
76 private:
77 EBOOKOutputElements(const EBOOKOutputElements &);
78 EBOOKOutputElements &operator=(const EBOOKOutputElements &);
79 std::list<EBOOKOutputElement *> m_bodyElements;
80 std::map<int, std::list<EBOOKOutputElement *> > m_headerElements;
81 std::map<int, std::list<EBOOKOutputElement *> > m_footerElements;
82 std::list<EBOOKOutputElement *> *m_elements;
83 };
84
85 }
86
87 #endif /* EBOOKOUTPUTELEMENTS_H */
88
89 /* vim:set shiftwidth=2 softtabstop=2 expandtab: */
libebook::EBOOKOutputElements::addInsertText
void addInsertText(const librevenge::RVNGString &text)
Definition: EBOOKOutputElements.cpp:1071
libebook::EBOOKOutputElements::m_headerElements
std::map< int, std::list< EBOOKOutputElement * > > m_headerElements
Definition: EBOOKOutputElements.h:80
libebook::EBOOKOutputElements::addCloseSpan
void addCloseSpan()
Definition: EBOOKOutputElements.cpp:1011
libebook::EBOOKOutputElements
Definition: EBOOKOutputElements.h:23
libebook::EBOOKOutputElements::addOpenFrame
void addOpenFrame(const librevenge::RVNGPropertyList &propList)
Definition: EBOOKOutputElements.cpp:1100
libebook::EBOOKOutputElements::addCloseOrderedListLevel
void addCloseOrderedListLevel()
Definition: EBOOKOutputElements.cpp:987
libebook::EBOOKOutputElements::addInsertBinaryObject
void addInsertBinaryObject(const librevenge::RVNGPropertyList &propList)
Definition: EBOOKOutputElements.cpp:1041
libebook::EBOOKOutputElements::addOpenSpan
void addOpenSpan(const librevenge::RVNGPropertyList &propList)
Definition: EBOOKOutputElements.cpp:1158
libebook::EBOOKHTMLToken::footer
Definition: EBOOKHTMLToken.h:75
libebook::EBOOKOutputElements::addOpenSection
void addOpenSection(const librevenge::RVNGPropertyList &propList)
Definition: EBOOKOutputElements.cpp:1152
libebook::EBOOKOutputElements::addCloseListElement
void addCloseListElement()
Definition: EBOOKOutputElements.cpp:981
libebook::EBOOKOutputElements::addOpenLink
void addOpenLink(const librevenge::RVNGPropertyList &propList)
Definition: EBOOKOutputElements.cpp:1114
libebook::EBOOKOutputElements::addOpenPageSpan
void addOpenPageSpan(const librevenge::RVNGPropertyList &propList)
Definition: EBOOKOutputElements.cpp:1132
libebook::EBOOKOutputElements::addOpenFootnote
void addOpenFootnote(const librevenge::RVNGPropertyList &propList)
Definition: EBOOKOutputElements.cpp:1094
libebook::EBOOKHTMLToken::text
Definition: EBOOKHTMLToken.h:259
libebook::EBOOKOutputElements::addCloseLink
void addCloseLink()
Definition: EBOOKOutputElements.cpp:975
libebook::EBOOKOutputElements::addInsertCoveredTableCell
void addInsertCoveredTableCell(const librevenge::RVNGPropertyList &propList)
Definition: EBOOKOutputElements.cpp:1047
libebook::EBOOKOutputElements::addInsertLineBreak
void addInsertLineBreak()
Definition: EBOOKOutputElements.cpp:1053
libebook::EBOOKOutputElements::addCloseTableCell
void addCloseTableCell()
Definition: EBOOKOutputElements.cpp:1023
libebook::EBOOKOutputElements::addOpenHeader
void addOpenHeader(const librevenge::RVNGPropertyList &propList, int id)
Definition: EBOOKOutputElements.cpp:1106
libebook::EBOOKOutputElements::addCloseParagraph
void addCloseParagraph()
Definition: EBOOKOutputElements.cpp:999
libebook::EBOOKOutputElements::addOpenTableCell
void addOpenTableCell(const librevenge::RVNGPropertyList &propList)
Definition: EBOOKOutputElements.cpp:1170
libebook::EBOOKOutputElements::addOpenFooter
void addOpenFooter(const librevenge::RVNGPropertyList &propList, int id)
Definition: EBOOKOutputElements.cpp:1083
libebook::EBOOKOutputElements::addClosePageSpan
void addClosePageSpan()
Definition: EBOOKOutputElements.cpp:993
libebook::EBOOKOutputElements::addOpenParagraph
void addOpenParagraph(const librevenge::RVNGPropertyList &propList)
Definition: EBOOKOutputElements.cpp:1146
libebook::EBOOKOutputElements::addCloseEndnote
void addCloseEndnote()
Definition: EBOOKOutputElements.cpp:943
libebook::EBOOKOutputElements::EBOOKOutputElements
EBOOKOutputElements()
Definition: EBOOKOutputElements.cpp:911
libebook::EBOOKOutputElements::~EBOOKOutputElements
virtual ~EBOOKOutputElements()
Definition: EBOOKOutputElements.cpp:917
libebook::EBOOKOutputElements::m_elements
std::list< EBOOKOutputElement * > * m_elements
Definition: EBOOKOutputElements.h:82
libebook::EBOOKOutputElements::addCloseUnorderedListLevel
void addCloseUnorderedListLevel()
Definition: EBOOKOutputElements.cpp:1035
libebook::EBOOKOutputElements::addOpenListElement
void addOpenListElement(const librevenge::RVNGPropertyList &propList)
Definition: EBOOKOutputElements.cpp:1120
libebook::EBOOKOutputElements::addCloseSection
void addCloseSection()
Definition: EBOOKOutputElements.cpp:1005
libebook::EBOOKOutputElements::addOpenTable
void addOpenTable(const librevenge::RVNGPropertyList &propList)
Definition: EBOOKOutputElements.cpp:1164
libebook::EBOOKOutputElements::addCloseFootnote
void addCloseFootnote()
Definition: EBOOKOutputElements.cpp:956
libebook::EBOOKOutputElements::addOpenOrderedListLevel
void addOpenOrderedListLevel(const librevenge::RVNGPropertyList &propList)
Definition: EBOOKOutputElements.cpp:1126
libebook::EBOOKOutputElements::m_bodyElements
std::list< EBOOKOutputElement * > m_bodyElements
Definition: EBOOKOutputElements.h:79
libebook::EBOOKOutputElements::addCloseFrame
void addCloseFrame()
Definition: EBOOKOutputElements.cpp:962
libebook::EBOOKOutputElements::addInsertSpace
void addInsertSpace()
Definition: EBOOKOutputElements.cpp:1059
libebook::EBOOKOutputElements::addOpenUnorderedListLevel
void addOpenUnorderedListLevel(const librevenge::RVNGPropertyList &propList)
Definition: EBOOKOutputElements.cpp:1182
libebook::EBOOKOutputElements::operator=
EBOOKOutputElements & operator=(const EBOOKOutputElements &)
libebook::EBOOKOutputElements::addOpenEndnote
void addOpenEndnote(const librevenge::RVNGPropertyList &propList)
Definition: EBOOKOutputElements.cpp:1077
libebook
Definition: CHMParser.cpp:20
libebook::EBOOKOutputElements::addOpenTableRow
void addOpenTableRow(const librevenge::RVNGPropertyList &propList)
Definition: EBOOKOutputElements.cpp:1176
libebook::EBOOKOutputElements::addCloseTable
void addCloseTable()
Definition: EBOOKOutputElements.cpp:1017
libebook::EBOOKOutputElements::empty
bool empty() const
Definition: EBOOKOutputElements.h:72
libebook::EBOOKOutputElements::addInsertTab
void addInsertTab()
Definition: EBOOKOutputElements.cpp:1065
libebook::EBOOKHTMLToken::header
Definition: EBOOKHTMLToken.h:84
libebook::EBOOKOutputElements::addCloseFooter
void addCloseFooter()
Definition: EBOOKOutputElements.cpp:949
libebook::EBOOKOutputElements::append
void append(const EBOOKOutputElements &elements)
libebook::EBOOKOutputElements::addStartDocument
void addStartDocument(const librevenge::RVNGPropertyList &propList)
libebook::EBOOKOutputElements::addCloseTableRow
void addCloseTableRow()
Definition: EBOOKOutputElements.cpp:1029
libebook::EBOOKOutputElements::m_footerElements
std::map< int, std::list< EBOOKOutputElement * > > m_footerElements
Definition: EBOOKOutputElements.h:81
libebook::EBOOKOutputElements::write
void write(librevenge::RVNGTextInterface *iface) const
Definition: EBOOKOutputElements.cpp:936
libebook::EBOOKOutputElements::addCloseHeader
void addCloseHeader()
Definition: EBOOKOutputElements.cpp:968