EPUBPageElements.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 libepubgen 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 INCLUDED_EPUBPAGEELEMENTS_H
11 #define INCLUDED_EPUBPAGEELEMENTS_H
12 
13 #include <vector>
14 
15 #include <librevenge/librevenge.h>
16 
17 namespace libepubgen
18 {
19 
20 class EPUBPageElement;
21 
23 {
24 public:
26  EPUBPageElements(const EPUBPageElements &elementList);
27  EPUBPageElements &operator=(const EPUBPageElements &elementList);
29 
30  void draw(librevenge::RVNGDrawingInterface *painter) const;
31  void addStyle(const librevenge::RVNGPropertyList &propList);
32  void addPath(const librevenge::RVNGPropertyList &propList);
33  void addGraphicObject(const librevenge::RVNGPropertyList &propList);
34  void addStartTextObject(const librevenge::RVNGPropertyList &propList);
35  void addOpenParagraph(const librevenge::RVNGPropertyList &propList);
36  void addOpenSpan(const librevenge::RVNGPropertyList &propList);
37  void addInsertText(const librevenge::RVNGString &text);
38  void addCloseSpan();
39  void addCloseParagraph();
40  void addEndTextObject();
41  void addStartGroup(const librevenge::RVNGPropertyList &propList);
42  void addEndGroup();
43 
44  bool empty() const
45  {
46  return m_elements.empty();
47  }
48 
49 private:
50  std::vector<EPUBPageElement *> m_elements;
51 };
52 
53 }
54 
55 #endif // INCLUDED_EPUBPAGEELEMENTS_H
56 
57 /* vim:set shiftwidth=2 softtabstop=2 expandtab: */
void addCloseParagraph()
Definition: EPUBPageElements.cpp:474
void draw(librevenge::RVNGDrawingInterface *painter) const
Definition: EPUBPageElements.cpp:428
Definition: EPUBBinarySink.cpp:12
EPUBPageElements()
Definition: EPUBPageElements.cpp:395
void addOpenParagraph(const librevenge::RVNGPropertyList &propList)
Definition: EPUBPageElements.cpp:454
void addPath(const librevenge::RVNGPropertyList &propList)
Definition: EPUBPageElements.cpp:439
void addOpenSpan(const librevenge::RVNGPropertyList &propList)
Definition: EPUBPageElements.cpp:459
void addEndGroup()
Definition: EPUBPageElements.cpp:489
void addInsertText(const librevenge::RVNGString &text)
Definition: EPUBPageElements.cpp:464
EPUBPageElements & operator=(const EPUBPageElements &elementList)
Definition: EPUBPageElements.cpp:408
std::vector< EPUBPageElement * > m_elements
Definition: EPUBPageElements.h:50
void addStyle(const librevenge::RVNGPropertyList &propList)
Definition: EPUBPageElements.cpp:434
Definition: EPUBPageElements.h:22
void addCloseSpan()
Definition: EPUBPageElements.cpp:469
void addEndTextObject()
Definition: EPUBPageElements.cpp:479
~EPUBPageElements()
Definition: EPUBPageElements.cpp:421
void addGraphicObject(const librevenge::RVNGPropertyList &propList)
Definition: EPUBPageElements.cpp:444
void addStartTextObject(const librevenge::RVNGPropertyList &propList)
Definition: EPUBPageElements.cpp:449
void addStartGroup(const librevenge::RVNGPropertyList &propList)
Definition: EPUBPageElements.cpp:484
bool empty() const
Definition: EPUBPageElements.h:44

Generated for libepubgen by doxygen 1.8.9.1