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: */
text
qi::rule< Iterator, AttrValue_t, qi::space_type > text
Definition TealDocParser.cpp:232
libebook::EBOOKOutputElements
Definition EBOOKOutputElements.h:24
libebook::EBOOKOutputElements::addCloseTableRow
void addCloseTableRow()
Definition EBOOKOutputElements.cpp:1028
libebook::EBOOKOutputElements::addOpenTableRow
void addOpenTableRow(const librevenge::RVNGPropertyList &propList)
Definition EBOOKOutputElements.cpp:1175
libebook::EBOOKOutputElements::addStartDocument
void addStartDocument(const librevenge::RVNGPropertyList &propList)
libebook::EBOOKOutputElements::m_footerElements
std::map< int, std::list< EBOOKOutputElement * > > m_footerElements
Definition EBOOKOutputElements.h:81
libebook::EBOOKOutputElements::addCloseTableCell
void addCloseTableCell()
Definition EBOOKOutputElements.cpp:1022
libebook::EBOOKOutputElements::addCloseSpan
void addCloseSpan()
Definition EBOOKOutputElements.cpp:1010
libebook::EBOOKOutputElements::~EBOOKOutputElements
virtual ~EBOOKOutputElements()
Definition EBOOKOutputElements.cpp:916
libebook::EBOOKOutputElements::m_headerElements
std::map< int, std::list< EBOOKOutputElement * > > m_headerElements
Definition EBOOKOutputElements.h:80
libebook::EBOOKOutputElements::addInsertTab
void addInsertTab()
Definition EBOOKOutputElements.cpp:1064
libebook::EBOOKOutputElements::addOpenOrderedListLevel
void addOpenOrderedListLevel(const librevenge::RVNGPropertyList &propList)
Definition EBOOKOutputElements.cpp:1125
libebook::EBOOKOutputElements::addClosePageSpan
void addClosePageSpan()
Definition EBOOKOutputElements.cpp:992
libebook::EBOOKOutputElements::addCloseTable
void addCloseTable()
Definition EBOOKOutputElements.cpp:1016
libebook::EBOOKOutputElements::addOpenEndnote
void addOpenEndnote(const librevenge::RVNGPropertyList &propList)
Definition EBOOKOutputElements.cpp:1076
libebook::EBOOKOutputElements::addOpenPageSpan
void addOpenPageSpan(const librevenge::RVNGPropertyList &propList)
Definition EBOOKOutputElements.cpp:1131
libebook::EBOOKOutputElements::EBOOKOutputElements
EBOOKOutputElements()
Definition EBOOKOutputElements.cpp:910
libebook::EBOOKOutputElements::addOpenFootnote
void addOpenFootnote(const librevenge::RVNGPropertyList &propList)
Definition EBOOKOutputElements.cpp:1093
libebook::EBOOKOutputElements::addCloseFooter
void addCloseFooter()
Definition EBOOKOutputElements.cpp:948
libebook::EBOOKOutputElements::append
void append(const EBOOKOutputElements &elements)
libebook::EBOOKOutputElements::addOpenSpan
void addOpenSpan(const librevenge::RVNGPropertyList &propList)
Definition EBOOKOutputElements.cpp:1157
libebook::EBOOKOutputElements::addOpenListElement
void addOpenListElement(const librevenge::RVNGPropertyList &propList)
Definition EBOOKOutputElements.cpp:1119
libebook::EBOOKOutputElements::addCloseEndnote
void addCloseEndnote()
Definition EBOOKOutputElements.cpp:942
libebook::EBOOKOutputElements::addInsertSpace
void addInsertSpace()
Definition EBOOKOutputElements.cpp:1058
libebook::EBOOKOutputElements::m_elements
std::list< EBOOKOutputElement * > * m_elements
Definition EBOOKOutputElements.h:82
libebook::EBOOKOutputElements::addOpenFrame
void addOpenFrame(const librevenge::RVNGPropertyList &propList)
Definition EBOOKOutputElements.cpp:1099
libebook::EBOOKOutputElements::addInsertText
void addInsertText(const librevenge::RVNGString &text)
Definition EBOOKOutputElements.cpp:1070
libebook::EBOOKOutputElements::EBOOKOutputElements
EBOOKOutputElements(const EBOOKOutputElements &)
libebook::EBOOKOutputElements::addOpenLink
void addOpenLink(const librevenge::RVNGPropertyList &propList)
Definition EBOOKOutputElements.cpp:1113
libebook::EBOOKOutputElements::addOpenFooter
void addOpenFooter(const librevenge::RVNGPropertyList &propList, int id)
Definition EBOOKOutputElements.cpp:1082
libebook::EBOOKOutputElements::addCloseUnorderedListLevel
void addCloseUnorderedListLevel()
Definition EBOOKOutputElements.cpp:1034
libebook::EBOOKOutputElements::empty
bool empty() const
Definition EBOOKOutputElements.h:72
libebook::EBOOKOutputElements::addCloseLink
void addCloseLink()
Definition EBOOKOutputElements.cpp:974
libebook::EBOOKOutputElements::addInsertLineBreak
void addInsertLineBreak()
Definition EBOOKOutputElements.cpp:1052
libebook::EBOOKOutputElements::addOpenTableCell
void addOpenTableCell(const librevenge::RVNGPropertyList &propList)
Definition EBOOKOutputElements.cpp:1169
libebook::EBOOKOutputElements::addInsertCoveredTableCell
void addInsertCoveredTableCell(const librevenge::RVNGPropertyList &propList)
Definition EBOOKOutputElements.cpp:1046
libebook::EBOOKOutputElements::addOpenSection
void addOpenSection(const librevenge::RVNGPropertyList &propList)
Definition EBOOKOutputElements.cpp:1151
libebook::EBOOKOutputElements::addCloseHeader
void addCloseHeader()
Definition EBOOKOutputElements.cpp:967
libebook::EBOOKOutputElements::addOpenHeader
void addOpenHeader(const librevenge::RVNGPropertyList &propList, int id)
Definition EBOOKOutputElements.cpp:1105
libebook::EBOOKOutputElements::write
void write(librevenge::RVNGTextInterface *iface) const
Definition EBOOKOutputElements.cpp:935
libebook::EBOOKOutputElements::addCloseListElement
void addCloseListElement()
Definition EBOOKOutputElements.cpp:980
libebook::EBOOKOutputElements::addOpenUnorderedListLevel
void addOpenUnorderedListLevel(const librevenge::RVNGPropertyList &propList)
Definition EBOOKOutputElements.cpp:1181
libebook::EBOOKOutputElements::addCloseParagraph
void addCloseParagraph()
Definition EBOOKOutputElements.cpp:998
libebook::EBOOKOutputElements::operator=
EBOOKOutputElements & operator=(const EBOOKOutputElements &)
libebook::EBOOKOutputElements::addOpenTable
void addOpenTable(const librevenge::RVNGPropertyList &propList)
Definition EBOOKOutputElements.cpp:1163
libebook::EBOOKOutputElements::addCloseOrderedListLevel
void addCloseOrderedListLevel()
Definition EBOOKOutputElements.cpp:986
libebook::EBOOKOutputElements::m_bodyElements
std::list< EBOOKOutputElement * > m_bodyElements
Definition EBOOKOutputElements.h:79
libebook::EBOOKOutputElements::addCloseFootnote
void addCloseFootnote()
Definition EBOOKOutputElements.cpp:955
libebook::EBOOKOutputElements::addCloseSection
void addCloseSection()
Definition EBOOKOutputElements.cpp:1004
libebook::EBOOKOutputElements::addInsertBinaryObject
void addInsertBinaryObject(const librevenge::RVNGPropertyList &propList)
Definition EBOOKOutputElements.cpp:1040
libebook::EBOOKOutputElements::addOpenParagraph
void addOpenParagraph(const librevenge::RVNGPropertyList &propList)
Definition EBOOKOutputElements.cpp:1145
libebook::EBOOKOutputElements::addCloseFrame
void addCloseFrame()
Definition EBOOKOutputElements.cpp:961
libebook
Definition BBeBCollector.cpp:19