IWORKOutputElements.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 libetonyek 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 IWORKOUTPUTELEMENTS_H_INCLUDED
11 #define IWORKOUTPUTELEMENTS_H_INCLUDED
12
13 #include <deque>
14 #include <memory>
15 #include <unordered_map>
16
17 #include <librevenge/librevenge.h>
18
19 #include "IWORKTypes_fwd.h"
20
21 namespace libetonyek
22 {
23
24 class IWORKDocumentInterface;
25 class IWORKFormula;
26 class IWORKOutputElement;
27
28
29 class IWORKOutputElements
30 {
31 typedef std::deque<std::shared_ptr<IWORKOutputElement> > ElementList_t;
32
33 public:
34 IWORKOutputElements();
35
36 void append(const IWORKOutputElements &elements);
37 void write(IWORKDocumentInterface *iface) const;
38 void clear();
39 bool empty() const;
40
41 void addCloseComment();
42 void addCloseEndnote();
43 void addCloseFooter();
44 void addCloseFootnote();
45 void addCloseFrame();
46 void addCloseHeader();
47 void addCloseLink();
48 void addCloseListElement();
49 void addCloseOrderedListLevel();
50 void addCloseParagraph();
51 void addCloseSection();
52 void addCloseSpan();
53 void addCloseTable();
54 void addCloseTableCell();
55 void addCloseTableRow();
56 void addCloseUnorderedListLevel();
57 void addDrawGraphicObject(const librevenge::RVNGPropertyList &propList);
58 void addDrawPath(const librevenge::RVNGPropertyList &propList);
59 void addDrawPolyline(const librevenge::RVNGPropertyList &propList);
60 void addEndLayer();
61 void addEndNotes();
62 void addEndTextObject();
63 void addInsertBinaryObject(const librevenge::RVNGPropertyList &propList);
64 void addInsertCoveredTableCell(const librevenge::RVNGPropertyList &propList);
65 void addInsertLineBreak();
66 void addInsertSpace();
67 void addInsertTab();
68 void addInsertText(const librevenge::RVNGString &text);
69 void addOpenComment(const librevenge::RVNGPropertyList &propList);
70 void addOpenEndnote(const librevenge::RVNGPropertyList &propList);
71 void addOpenFormulaCell(const librevenge::RVNGPropertyList &propList, const IWORKFormula &formula, const IWORKTableNameMapPtr_t &tableNameMap);
72 void addOpenFooter(const librevenge::RVNGPropertyList &propList);
73 void addOpenFootnote(const librevenge::RVNGPropertyList &propList);
74 void addOpenFrame(const librevenge::RVNGPropertyList &propList);
75 void addOpenHeader(const librevenge::RVNGPropertyList &propList);
76 void addOpenLink(const librevenge::RVNGPropertyList &propList);
77 void addOpenListElement(const librevenge::RVNGPropertyList &propList);
78 void addOpenOrderedListLevel(const librevenge::RVNGPropertyList &propList);
79 void addOpenParagraph(const librevenge::RVNGPropertyList &propList);
80 void addOpenSection(const librevenge::RVNGPropertyList &propList);
81 void addOpenSpan(const librevenge::RVNGPropertyList &propList);
82 void addOpenTable(const librevenge::RVNGPropertyList &propList);
83 void addOpenTableCell(const librevenge::RVNGPropertyList &propList);
84 void addOpenTableRow(const librevenge::RVNGPropertyList &propList);
85 void addOpenUnorderedListLevel(const librevenge::RVNGPropertyList &propList);
86 void addSetStyle(const librevenge::RVNGPropertyList &propList);
87 void addStartLayer(const librevenge::RVNGPropertyList &propList);
88 void addStartNotes(const librevenge::RVNGPropertyList &propList);
89 void addStartTextObject(const librevenge::RVNGPropertyList &propList);
90
91 private:
92 ElementList_t m_elements;
93 };
94
95 }
96
97 #endif /* IWORKOUTPUTELEMENTS_H_INCLUDED */
98
99 /* vim:set shiftwidth=2 softtabstop=2 expandtab: */
libetonyek::IWORKOutputElements::addOpenTable
void addOpenTable(const librevenge::RVNGPropertyList &propList)
Definition: IWORKOutputElements.cpp:1048
libetonyek
Definition: IWORKBezierElement.cpp:18
libetonyek::IWORKOutputElements::addCloseListElement
void addCloseListElement()
Definition: IWORKOutputElements.cpp:878
libetonyek::IWORKOutputElements::addOpenTableCell
void addOpenTableCell(const librevenge::RVNGPropertyList &propList)
Definition: IWORKOutputElements.cpp:1053
libetonyek::IWORKOutputElements::addInsertBinaryObject
void addInsertBinaryObject(const librevenge::RVNGPropertyList &propList)
Definition: IWORKOutputElements.cpp:953
libetonyek::IWORKOutputElements
Definition: IWORKOutputElements.h:29
libetonyek::IWORKOutputElements::addOpenParagraph
void addOpenParagraph(const librevenge::RVNGPropertyList &propList)
Definition: IWORKOutputElements.cpp:1033
libetonyek::IWORKOutputElements::addCloseUnorderedListLevel
void addCloseUnorderedListLevel()
Definition: IWORKOutputElements.cpp:918
libetonyek::IWORKOutputElements::empty
bool empty() const
Definition: IWORKOutputElements.cpp:838
libetonyek::IWORKOutputElements::ElementList_t
std::deque< std::shared_ptr< IWORKOutputElement > > ElementList_t
Definition: IWORKOutputElements.h:31
libetonyek::IWORKOutputElements::addOpenSpan
void addOpenSpan(const librevenge::RVNGPropertyList &propList)
Definition: IWORKOutputElements.cpp:1043
libetonyek::IWORKOutputElements::addCloseEndnote
void addCloseEndnote()
Definition: IWORKOutputElements.cpp:848
libetonyek::IWORKOutputElements::addStartLayer
void addStartLayer(const librevenge::RVNGPropertyList &propList)
Definition: IWORKOutputElements.cpp:1073
libetonyek::IWORKOutputElements::addInsertTab
void addInsertTab()
Definition: IWORKOutputElements.cpp:973
libetonyek::IWORKOutputElements::addCloseFooter
void addCloseFooter()
Definition: IWORKOutputElements.cpp:853
libetonyek::IWORKOutputElements::addOpenFormulaCell
void addOpenFormulaCell(const librevenge::RVNGPropertyList &propList, const IWORKFormula &formula, const IWORKTableNameMapPtr_t &tableNameMap)
Definition: IWORKOutputElements.cpp:993
libetonyek::IWORKOutputElements::addCloseTable
void addCloseTable()
Definition: IWORKOutputElements.cpp:903
libetonyek::IWORKOutputElements::addSetStyle
void addSetStyle(const librevenge::RVNGPropertyList &propList)
Definition: IWORKOutputElements.cpp:1068
libetonyek::IWORKOutputElements::addCloseSection
void addCloseSection()
Definition: IWORKOutputElements.cpp:893
libetonyek::IWORKOutputElements::addCloseFootnote
void addCloseFootnote()
Definition: IWORKOutputElements.cpp:858
libetonyek::IWORKOutputElements::addOpenOrderedListLevel
void addOpenOrderedListLevel(const librevenge::RVNGPropertyList &propList)
Definition: IWORKOutputElements.cpp:1028
libetonyek::IWORKOutputElements::addOpenLink
void addOpenLink(const librevenge::RVNGPropertyList &propList)
Definition: IWORKOutputElements.cpp:1018
libetonyek::IWORKOutputElements::addCloseTableRow
void addCloseTableRow()
Definition: IWORKOutputElements.cpp:913
libetonyek::IWORKToken::text
Definition: IWORKToken.h:284
IWORKTypes_fwd.h
libetonyek::IWORKOutputElements::addOpenComment
void addOpenComment(const librevenge::RVNGPropertyList &propList)
Definition: IWORKOutputElements.cpp:983
libetonyek::IWORKDocumentInterface
Definition: IWORKDocumentInterface.h:18
libetonyek::IWORKOutputElements::addOpenEndnote
void addOpenEndnote(const librevenge::RVNGPropertyList &propList)
Definition: IWORKOutputElements.cpp:988
libetonyek::IWORKOutputElements::addDrawGraphicObject
void addDrawGraphicObject(const librevenge::RVNGPropertyList &propList)
Definition: IWORKOutputElements.cpp:923
libetonyek::IWORKOutputElements::addEndTextObject
void addEndTextObject()
Definition: IWORKOutputElements.cpp:948
libetonyek::IWORKFormula
Definition: IWORKFormula.h:22
libetonyek::IWORKOutputElements::addCloseLink
void addCloseLink()
Definition: IWORKOutputElements.cpp:873
libetonyek::IWORKOutputElements::write
void write(IWORKDocumentInterface *iface) const
Definition: IWORKOutputElements.cpp:826
libetonyek::IWORKOutputElements::addCloseSpan
void addCloseSpan()
Definition: IWORKOutputElements.cpp:898
libetonyek::IWORKOutputElements::addOpenFooter
void addOpenFooter(const librevenge::RVNGPropertyList &propList)
Definition: IWORKOutputElements.cpp:998
libetonyek::IWORKOutputElements::addInsertCoveredTableCell
void addInsertCoveredTableCell(const librevenge::RVNGPropertyList &propList)
Definition: IWORKOutputElements.cpp:958
libetonyek::IWORKOutputElements::addCloseComment
void addCloseComment()
Definition: IWORKOutputElements.cpp:843
libetonyek::IWORKOutputElements::addOpenListElement
void addOpenListElement(const librevenge::RVNGPropertyList &propList)
Definition: IWORKOutputElements.cpp:1023
libetonyek::IWORKOutputElements::addStartTextObject
void addStartTextObject(const librevenge::RVNGPropertyList &propList)
Definition: IWORKOutputElements.cpp:1083
libetonyek::IWORKOutputElements::addInsertLineBreak
void addInsertLineBreak()
Definition: IWORKOutputElements.cpp:963
libetonyek::IWORKOutputElements::addInsertSpace
void addInsertSpace()
Definition: IWORKOutputElements.cpp:968
libetonyek::IWORKOutputElements::addInsertText
void addInsertText(const librevenge::RVNGString &text)
Definition: IWORKOutputElements.cpp:978
libetonyek::IWORKTableNameMapPtr_t
std::shared_ptr< IWORKTableNameMap_t > IWORKTableNameMapPtr_t
Definition: IWORKTypes_fwd.h:32
libetonyek::IWORKOutputElements::addOpenTableRow
void addOpenTableRow(const librevenge::RVNGPropertyList &propList)
Definition: IWORKOutputElements.cpp:1058
libetonyek::IWORKOutputElements::addDrawPolyline
void addDrawPolyline(const librevenge::RVNGPropertyList &propList)
Definition: IWORKOutputElements.cpp:933
libetonyek::IWORKOutputElements::addEndLayer
void addEndLayer()
Definition: IWORKOutputElements.cpp:938
libetonyek::IWORKOutputElements::addCloseFrame
void addCloseFrame()
Definition: IWORKOutputElements.cpp:863
libetonyek::IWORKOutputElements::addCloseOrderedListLevel
void addCloseOrderedListLevel()
Definition: IWORKOutputElements.cpp:883
libetonyek::IWORKOutputElements::addStartNotes
void addStartNotes(const librevenge::RVNGPropertyList &propList)
Definition: IWORKOutputElements.cpp:1078
libetonyek::IWORKOutputElements::addEndNotes
void addEndNotes()
Definition: IWORKOutputElements.cpp:943
libetonyek::IWORKOutputElements::addOpenFrame
void addOpenFrame(const librevenge::RVNGPropertyList &propList)
Definition: IWORKOutputElements.cpp:1008
libetonyek::IWORKOutputElements::m_elements
ElementList_t m_elements
Definition: IWORKOutputElements.h:92
libetonyek::IWORKOutputElements::append
void append(const IWORKOutputElements &elements)
Definition: IWORKOutputElements.cpp:821
libetonyek::IWORKOutputElements::addOpenHeader
void addOpenHeader(const librevenge::RVNGPropertyList &propList)
Definition: IWORKOutputElements.cpp:1013
libetonyek::IWORKOutputElements::addOpenUnorderedListLevel
void addOpenUnorderedListLevel(const librevenge::RVNGPropertyList &propList)
Definition: IWORKOutputElements.cpp:1063
libetonyek::IWORKOutputElements::clear
void clear()
Definition: IWORKOutputElements.cpp:833
libetonyek::IWORKOutputElements::addOpenSection
void addOpenSection(const librevenge::RVNGPropertyList &propList)
Definition: IWORKOutputElements.cpp:1038
libetonyek::IWORKOutputElements::addCloseHeader
void addCloseHeader()
Definition: IWORKOutputElements.cpp:868
libetonyek::IWORKOutputElements::addCloseTableCell
void addCloseTableCell()
Definition: IWORKOutputElements.cpp:908
libetonyek::IWORKOutputElements::addDrawPath
void addDrawPath(const librevenge::RVNGPropertyList &propList)
Definition: IWORKOutputElements.cpp:928
libetonyek::IWORKOutputElements::addOpenFootnote
void addOpenFootnote(const librevenge::RVNGPropertyList &propList)
Definition: IWORKOutputElements.cpp:1003
libetonyek::IWORKOutputElements::IWORKOutputElements
IWORKOutputElements()
Definition: IWORKOutputElements.cpp:816
libetonyek::IWORKOutputElements::addCloseParagraph
void addCloseParagraph()
Definition: IWORKOutputElements.cpp:888