VSDXOutputElementList.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 __VSDXOUTPUTELEMENTLIST_H__
32 #define __VSDXOUTPUTELEMENTLIST_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 VSDXOutputElement;
44 
46 {
47 public:
49  VSDXOutputElementList(const VSDXOutputElementList &elementList);
51  virtual ~VSDXOutputElementList();
52  void append(const VSDXOutputElementList &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  bool empty() const
65  {
66  return m_elements.empty();
67  }
68 private:
69  std::vector<VSDXOutputElement *> m_elements;
70 };
71 
72 
73 } // namespace libvisio
74 
75 #endif // __VSDXOUTPUTELEMENTLIST_H__
76 /* vim:set shiftwidth=2 softtabstop=2 expandtab: */
VSDXOutputElementList()
Definition: VSDXOutputElementList.cpp:289
VSDXOutputElementList & operator=(const VSDXOutputElementList &elementList)
Definition: VSDXOutputElementList.cpp:302
void addStyle(const WPXPropertyList &propList, const WPXPropertyListVector &propListVec)
Definition: VSDXOutputElementList.cpp:334
void append(const VSDXOutputElementList &elementList)
Definition: VSDXOutputElementList.cpp:315
Definition: VSDXOutputElementList.h:45
void draw(libwpg::WPGPaintInterface *painter) const
Definition: VSDXOutputElementList.cpp:328
std::vector< VSDXOutputElement * > m_elements
Definition: VSDXOutputElementList.h:69
void addStartTextSpan(const WPXPropertyList &propList)
Definition: VSDXOutputElementList.cpp:359
void addInsertText(const WPXString &text)
Definition: VSDXOutputElementList.cpp:364
void addGraphicObject(const WPXPropertyList &propList, const ::WPXBinaryData &binaryData)
Definition: VSDXOutputElementList.cpp:344
void addStartTextObject(const WPXPropertyList &propList, const WPXPropertyListVector &propListVec)
Definition: VSDXOutputElementList.cpp:349
void addStartTextLine(const WPXPropertyList &propList)
Definition: VSDXOutputElementList.cpp:354
virtual ~VSDXOutputElementList()
Definition: VSDXOutputElementList.cpp:321
void addEndTextLine()
Definition: VSDXOutputElementList.cpp:374
void addPath(const WPXPropertyListVector &propListVec)
Definition: VSDXOutputElementList.cpp:339
Definition: libvisio_utils.h:78
bool empty() const
Definition: VSDXOutputElementList.h:64
void addEndTextObject()
Definition: VSDXOutputElementList.cpp:379
void addEndTextSpan()
Definition: VSDXOutputElementList.cpp:369

Generated for libvisio by doxygen 1.8.13