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 
24 {
25 public:
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: */
void addStartGroup(const librevenge::RVNGPropertyList &propList)
Definition: CDROutputElementList.cpp:408
void addEndGroup()
Definition: CDROutputElementList.cpp:413
void addCloseSpan()
Definition: CDROutputElementList.cpp:393
~CDROutputElementList()
Definition: CDROutputElementList.cpp:348
void addGraphicObject(const librevenge::RVNGPropertyList &propList)
Definition: CDROutputElementList.cpp:368
CDROutputElementList()
Definition: CDROutputElementList.cpp:343
void addCloseParagraph()
Definition: CDROutputElementList.cpp:398
bool empty() const
Definition: CDROutputElementList.h:41
void addStyle(const librevenge::RVNGPropertyList &propList)
Definition: CDROutputElementList.cpp:358
Definition: CDRCollector.h:24
std::vector< std::shared_ptr< CDROutputElement > > m_elements
Definition: CDROutputElementList.h:46
void addInsertText(const librevenge::RVNGString &text)
Definition: CDROutputElementList.cpp:388
void draw(librevenge::RVNGDrawingInterface *painter) const
Definition: CDROutputElementList.cpp:352
void addStartTextObject(const librevenge::RVNGPropertyList &propList)
Definition: CDROutputElementList.cpp:373
void addOpenParagraph(const librevenge::RVNGPropertyList &propList)
Definition: CDROutputElementList.cpp:378
Definition: CDROutputElementList.h:23
void addPath(const librevenge::RVNGPropertyList &propList)
Definition: CDROutputElementList.cpp:363
void addEndTextObject()
Definition: CDROutputElementList.cpp:403
void addOpenSpan(const librevenge::RVNGPropertyList &propList)
Definition: CDROutputElementList.cpp:383

Generated for libcdr by doxygen 1.8.10