VSDOutputElementList.h
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* libvisio
3  * Version: MPL 1.1 / GPLv2+ / LGPLv2+
4  *
5  * The contents of this file are subject to the Mozilla Public License Version
6  * 1.1 (the "License"); you may not use this file except in compliance with
7  * the License or as specified alternatively below. You may obtain a copy of
8  * the License at http://www.mozilla.org/MPL/
9  *
10  * Software distributed under the License is distributed on an "AS IS" basis,
11  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
12  * for the specific language governing rights and limitations under the
13  * License.
14  *
15  * Major Contributor(s):
16  * Copyright (C) 2011 Fridrich Strba <fridrich.strba@bluewin.ch>
17  * Copyright (C) 2011 Eilidh McAdam <tibbylickle@gmail.com>
18  *
19  *
20  * All Rights Reserved.
21  *
22  * For minor contributions see the git repository.
23  *
24  * Alternatively, the contents of this file may be used under the terms of
25  * either the GNU General Public License Version 2 or later (the "GPLv2+"), or
26  * the GNU Lesser General Public License Version 2 or later (the "LGPLv2+"),
27  * in which case the provisions of the GPLv2+ or the LGPLv2+ are applicable
28  * instead of those above.
29  */
30 
31 #ifndef __VSDOUTPUTELEMENTLIST_H__
32 #define __VSDOUTPUTELEMENTLIST_H__
33 
34 #include <map>
35 #include <list>
36 #include <vector>
37 #include <libwpd/libwpd.h>
38 #include <libwpg/libwpg.h>
39 
40 namespace libvisio
41 {
42 
43 class VSDOutputElement;
44 
46 {
47 public:
49  VSDOutputElementList(const VSDOutputElementList &elementList);
51  virtual ~VSDOutputElementList();
52  void append(const VSDOutputElementList &elementList);
53  void draw(libwpg::WPGPaintInterface *painter) const;
54  void addStyle(const WPXPropertyList &propList, const WPXPropertyListVector &propListVec);
55  void addPath(const WPXPropertyListVector &propListVec);
56  void addGraphicObject(const WPXPropertyList &propList, const ::WPXBinaryData &binaryData);
57  void addStartTextObject(const WPXPropertyList &propList, const WPXPropertyListVector &propListVec);
58  void addStartTextLine(const WPXPropertyList &propList);
59  void addStartTextSpan(const WPXPropertyList &propList);
60  void addInsertText(const WPXString &text);
61  void addEndTextSpan();
62  void addEndTextLine();
63  void addEndTextObject();
64  void addStartLayer(const WPXPropertyList &propList);
65  void addEndLayer();
66  bool empty() const
67  {
68  return m_elements.empty();
69  }
70 private:
71  std::vector<VSDOutputElement *> m_elements;
72 };
73 
74 
75 } // namespace libvisio
76 
77 #endif // __VSDOUTPUTELEMENTLIST_H__
78 /* vim:set shiftwidth=2 softtabstop=2 expandtab: */
bool empty() const
Definition: VSDOutputElementList.h:66
virtual ~VSDOutputElementList()
Definition: VSDOutputElementList.cpp:368
void addGraphicObject(const WPXPropertyList &propList, const ::WPXBinaryData &binaryData)
Definition: VSDOutputElementList.cpp:391
VSDOutputElementList()
Definition: VSDOutputElementList.cpp:336
Definition: VSDOutputElementList.h:45
void addEndTextLine()
Definition: VSDOutputElementList.cpp:421
void addStartTextObject(const WPXPropertyList &propList, const WPXPropertyListVector &propListVec)
Definition: VSDOutputElementList.cpp:396
std::vector< VSDOutputElement * > m_elements
Definition: VSDOutputElementList.h:71
void draw(libwpg::WPGPaintInterface *painter) const
Definition: VSDOutputElementList.cpp:375
void addStartLayer(const WPXPropertyList &propList)
Definition: VSDOutputElementList.cpp:431
void addStyle(const WPXPropertyList &propList, const WPXPropertyListVector &propListVec)
Definition: VSDOutputElementList.cpp:381
void addEndTextSpan()
Definition: VSDOutputElementList.cpp:416
void addEndLayer()
Definition: VSDOutputElementList.cpp:436
void addStartTextSpan(const WPXPropertyList &propList)
Definition: VSDOutputElementList.cpp:406
void addPath(const WPXPropertyListVector &propListVec)
Definition: VSDOutputElementList.cpp:386
void addStartTextLine(const WPXPropertyList &propList)
Definition: VSDOutputElementList.cpp:401
void append(const VSDOutputElementList &elementList)
Definition: VSDOutputElementList.cpp:362
void addEndTextObject()
Definition: VSDOutputElementList.cpp:426
VSDOutputElementList & operator=(const VSDOutputElementList &elementList)
Definition: VSDOutputElementList.cpp:349
void addInsertText(const WPXString &text)
Definition: VSDOutputElementList.cpp:411

Generated for libvisio by doxygen 1.8.5