CDROutputElementList.h Source File documentation

CDROutputElementList.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 libcdr 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 __CDROUTPUTELEMENTLIST_H__
11 #define __CDROUTPUTELEMENTLIST_H__
12
13 #include <memory>
14 #include <vector>
15
16 #include <librevenge/librevenge.h>
17
18 namespace libcdr
19 {
20
21 class CDROutputElement;
22
23 class CDROutputElementList
24 {
25 public:
26 CDROutputElementList();
27 ~CDROutputElementList();
28 void draw(librevenge::RVNGDrawingInterface *painter) const;
29 void addStyle(const librevenge::RVNGPropertyList &propList);
30 void addPath(const librevenge::RVNGPropertyList &propList);
31 void addGraphicObject(const librevenge::RVNGPropertyList &propList);
32 void addStartTextObject(const librevenge::RVNGPropertyList &propList);
33 void addOpenParagraph(const librevenge::RVNGPropertyList &propList);
34 void addOpenSpan(const librevenge::RVNGPropertyList &propList);
35 void addInsertText(const librevenge::RVNGString &text);
36 void addCloseSpan();
37 void addCloseParagraph();
38 void addEndTextObject();
39 void addStartGroup(const librevenge::RVNGPropertyList &propList);
40 void addEndGroup();
41 bool empty() const
42 {
43 return m_elements.empty();
44 }
45 private:
46 std::vector<std::shared_ptr<CDROutputElement>> m_elements;
47 };
48
49
50 } // namespace libcdr
51
52 #endif // __CDROUTPUTELEMENTLIST_H__
53 /* vim:set shiftwidth=2 softtabstop=2 expandtab: */
libcdr::CDROpenParagraphOutputElement::CDROpenParagraphOutputElement
CDROpenParagraphOutputElement(const librevenge::RVNGPropertyList &propList)
Definition: CDROutputElementList.cpp:278
libcdr::CDRInsertTextOutputElement::m_text
librevenge::RVNGString m_text
Definition: CDROutputElementList.cpp:181
libcdr::CDRStartTextObjectOutputElement::draw
void draw(librevenge::RVNGDrawingInterface *painter) override
Definition: CDROutputElementList.cpp:262
libcdr::CDRStyleOutputElement::m_propList
librevenge::RVNGPropertyList m_propList
Definition: CDROutputElementList.cpp:115
libcdr::CDRPathOutputElement::~CDRPathOutputElement
~CDRPathOutputElement() override
Definition: CDROutputElementList.cpp:123
libcdr::CDROutputElementList::addCloseSpan
void addCloseSpan()
Definition: CDROutputElementList.cpp:393
libcdr::CDRStartTextObjectOutputElement::m_propList
librevenge::RVNGPropertyList m_propList
Definition: CDROutputElementList.cpp:148
libcdr::CDRStartLayerOutputElement
Definition: CDROutputElementList.cpp:212
libcdr::CDRGraphicObjectOutputElement::CDRGraphicObjectOutputElement
CDRGraphicObjectOutputElement(const librevenge::RVNGPropertyList &propList)
Definition: CDROutputElementList.cpp:249
libcdr::CDROutputElementList::addEndGroup
void addEndGroup()
Definition: CDROutputElementList.cpp:413
libcdr::CDROutputElementList::addPath
void addPath(const librevenge::RVNGPropertyList &propList)
Definition: CDROutputElementList.cpp:363
libcdr::CDREndTextObjectOutputElement::CDREndTextObjectOutputElement
CDREndTextObjectOutputElement()
Definition: CDROutputElementList.cpp:315
libcdr::CDROpenSpanOutputElement::~CDROpenSpanOutputElement
~CDROpenSpanOutputElement() override
Definition: CDROutputElementList.cpp:167
libcdr::CDROpenSpanOutputElement::draw
void draw(librevenge::RVNGDrawingInterface *painter) override
Definition: CDROutputElementList.cpp:271
libcdr::CDROutputElementList::addOpenSpan
void addOpenSpan(const librevenge::RVNGPropertyList &propList)
Definition: CDROutputElementList.cpp:383
libcdr::CDREndTextObjectOutputElement
Definition: CDROutputElementList.cpp:204
libcdr::CDREndLayerOutputElement
Definition: CDROutputElementList.cpp:222
libcdr::CDROutputElementList::empty
bool empty() const
Definition: CDROutputElementList.h:41
libcdr::CDRInsertTextOutputElement::CDRInsertTextOutputElement
CDRInsertTextOutputElement(const librevenge::RVNGString &text)
Definition: CDROutputElementList.cpp:288
libcdr::CDROutputElement::~CDROutputElement
virtual ~CDROutputElement()
Definition: CDROutputElementList.cpp:103
libcdr::CDRStartTextObjectOutputElement::~CDRStartTextObjectOutputElement
~CDRStartTextObjectOutputElement() override
Definition: CDROutputElementList.cpp:145
libcdr::CDROutputElementList::addStyle
void addStyle(const librevenge::RVNGPropertyList &propList)
Definition: CDROutputElementList.cpp:358
libcdr::CDRInsertTextOutputElement::draw
void draw(librevenge::RVNGDrawingInterface *painter) override
Definition: CDROutputElementList.cpp:291
libcdr::CDROutputElementList::draw
void draw(librevenge::RVNGDrawingInterface *painter) const
Definition: CDROutputElementList.cpp:352
libcdr::CDROutputElementList::~CDROutputElementList
~CDROutputElementList()
Definition: CDROutputElementList.cpp:348
libcdr::CDROutputElement
Definition: CDROutputElementList.cpp:100
libcdr::CDRPathOutputElement::m_propList
librevenge::RVNGPropertyList m_propList
Definition: CDROutputElementList.cpp:126
libcdr::CDRPathOutputElement::draw
void draw(librevenge::RVNGDrawingInterface *painter) override
Definition: CDROutputElementList.cpp:242
libcdr::CDRStartTextObjectOutputElement::CDRStartTextObjectOutputElement
CDRStartTextObjectOutputElement(const librevenge::RVNGPropertyList &propList)
Definition: CDROutputElementList.cpp:259
libcdr::CDROutputElementList::addCloseParagraph
void addCloseParagraph()
Definition: CDROutputElementList.cpp:398
libcdr::CDROpenParagraphOutputElement::~CDROpenParagraphOutputElement
~CDROpenParagraphOutputElement() override
Definition: CDROutputElementList.cpp:156
libcdr::CDROutputElementList::CDROutputElementList
CDROutputElementList()
Definition: CDROutputElementList.cpp:343
libcdr::CDROutputElementList::addEndTextObject
void addEndTextObject()
Definition: CDROutputElementList.cpp:403
libcdr::CDROutputElementList::addStartGroup
void addStartGroup(const librevenge::RVNGPropertyList &propList)
Definition: CDROutputElementList.cpp:408
libcdr::CDRCloseSpanOutputElement::CDRCloseSpanOutputElement
CDRCloseSpanOutputElement()
Definition: CDROutputElementList.cpp:297
libcdr::CDRCloseParagraphOutputElement
Definition: CDROutputElementList.cpp:195
libcdr::CDRGraphicObjectOutputElement::draw
void draw(librevenge::RVNGDrawingInterface *painter) override
Definition: CDROutputElementList.cpp:252
libcdr::CDROutputElementList
Definition: CDROutputElementList.h:24
libcdr
Definition: CDRCollector.h:25
libcdr::CDRStartLayerOutputElement::draw
void draw(librevenge::RVNGDrawingInterface *painter) override
Definition: CDROutputElementList.cpp:336
libcdr::CDRGraphicObjectOutputElement
Definition: CDROutputElementList.cpp:131
libcdr::CDRStartLayerOutputElement::CDRStartLayerOutputElement
CDRStartLayerOutputElement(const librevenge::RVNGPropertyList &propList)
Definition: CDROutputElementList.cpp:333
libcdr::CDREndLayerOutputElement::~CDREndLayerOutputElement
~CDREndLayerOutputElement() override
Definition: CDROutputElementList.cpp:225
libcdr::CDRGraphicObjectOutputElement::m_propList
librevenge::RVNGPropertyList m_propList
Definition: CDROutputElementList.cpp:137
libcdr::CDROutputElement::draw
virtual void draw(librevenge::RVNGDrawingInterface *painter)=0
libcdr::CDRStartLayerOutputElement::m_propList
librevenge::RVNGPropertyList m_propList
Definition: CDROutputElementList.cpp:218
libcdr::CDRCloseSpanOutputElement::~CDRCloseSpanOutputElement
~CDRCloseSpanOutputElement() override
Definition: CDROutputElementList.cpp:189
libcdr::CDRPathOutputElement::CDRPathOutputElement
CDRPathOutputElement(const librevenge::RVNGPropertyList &propList)
Definition: CDROutputElementList.cpp:239
libcdr::CDREndTextObjectOutputElement::draw
void draw(librevenge::RVNGDrawingInterface *painter) override
Definition: CDROutputElementList.cpp:317
libcdr::CDROpenSpanOutputElement
Definition: CDROutputElementList.cpp:164
libcdr::CDROpenParagraphOutputElement
Definition: CDROutputElementList.cpp:153
libcdr::CDRStyleOutputElement::draw
void draw(librevenge::RVNGDrawingInterface *painter) override
Definition: CDROutputElementList.cpp:232
libcdr::CDRStyleOutputElement::CDRStyleOutputElement
CDRStyleOutputElement(const librevenge::RVNGPropertyList &propList)
Definition: CDROutputElementList.cpp:229
libcdr::CDROutputElement::CDROutputElement
CDROutputElement()
Definition: CDROutputElementList.cpp:102
libcdr::CDRCloseParagraphOutputElement::draw
void draw(librevenge::RVNGDrawingInterface *painter) override
Definition: CDROutputElementList.cpp:308
libcdr::CDRStartTextObjectOutputElement
Definition: CDROutputElementList.cpp:142
libcdr::CDRInsertTextOutputElement::~CDRInsertTextOutputElement
~CDRInsertTextOutputElement() override
Definition: CDROutputElementList.cpp:178
libcdr::CDREndTextObjectOutputElement::~CDREndTextObjectOutputElement
~CDREndTextObjectOutputElement() override
Definition: CDROutputElementList.cpp:207
libcdr::CDRStyleOutputElement
Definition: CDROutputElementList.cpp:109
libcdr::CDREndLayerOutputElement::CDREndLayerOutputElement
CDREndLayerOutputElement()
Definition: CDROutputElementList.cpp:324
libcdr::CDRPathOutputElement
Definition: CDROutputElementList.cpp:120
libcdr::CDRInsertTextOutputElement
Definition: CDROutputElementList.cpp:175
libcdr::CDROutputElementList::addInsertText
void addInsertText(const librevenge::RVNGString &text)
Definition: CDROutputElementList.cpp:388
libcdr::CDROpenSpanOutputElement::CDROpenSpanOutputElement
CDROpenSpanOutputElement(const librevenge::RVNGPropertyList &propList)
Definition: CDROutputElementList.cpp:268
libcdr::CDROpenParagraphOutputElement::draw
void draw(librevenge::RVNGDrawingInterface *painter) override
Definition: CDROutputElementList.cpp:281
libcdr::CDRStartLayerOutputElement::~CDRStartLayerOutputElement
~CDRStartLayerOutputElement() override
Definition: CDROutputElementList.cpp:215
libcdr::CDROpenSpanOutputElement::m_propList
librevenge::RVNGPropertyList m_propList
Definition: CDROutputElementList.cpp:170
libcdr::CDROpenParagraphOutputElement::m_propList
librevenge::RVNGPropertyList m_propList
Definition: CDROutputElementList.cpp:159
CDROutputElementList.h
libcdr::CDRCloseParagraphOutputElement::CDRCloseParagraphOutputElement
CDRCloseParagraphOutputElement()
Definition: CDROutputElementList.cpp:306
libcdr::CDRGraphicObjectOutputElement::~CDRGraphicObjectOutputElement
~CDRGraphicObjectOutputElement() override
Definition: CDROutputElementList.cpp:134
libcdr::CDRCloseParagraphOutputElement::~CDRCloseParagraphOutputElement
~CDRCloseParagraphOutputElement() override
Definition: CDROutputElementList.cpp:198
libcdr::CDROutputElementList::addGraphicObject
void addGraphicObject(const librevenge::RVNGPropertyList &propList)
Definition: CDROutputElementList.cpp:368
libcdr::CDROutputElementList::addOpenParagraph
void addOpenParagraph(const librevenge::RVNGPropertyList &propList)
Definition: CDROutputElementList.cpp:378
libcdr::CDRCloseSpanOutputElement
Definition: CDROutputElementList.cpp:186
libcdr::CDREndLayerOutputElement::draw
void draw(librevenge::RVNGDrawingInterface *painter) override
Definition: CDROutputElementList.cpp:326
libcdr::CDROutputElementList::addStartTextObject
void addStartTextObject(const librevenge::RVNGPropertyList &propList)
Definition: CDROutputElementList.cpp:373
libcdr::CDRStyleOutputElement::~CDRStyleOutputElement
~CDRStyleOutputElement() override
Definition: CDROutputElementList.cpp:112
libcdr::CDROutputElementList::m_elements
std::vector< std::shared_ptr< CDROutputElement > > m_elements
Definition: CDROutputElementList.h:46
libcdr::CDRCloseSpanOutputElement::draw
void draw(librevenge::RVNGDrawingInterface *painter) override
Definition: CDROutputElementList.cpp:299