Debian Codegraph @

src/lib/CDROutputElementList.h

raw symbols SCIP
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: */