- Main Page
- Namespaces
- Classes
- Files

- File List
- File Members

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
45 class VSDOutputElementList
46 {
47 public:
48 VSDOutputElementList();
49 VSDOutputElementList(const VSDOutputElementList &elementList);
50 VSDOutputElementList &operator=(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: */
libvisio::VSDOutputElementList::empty
bool empty() const
Definition: VSDOutputElementList.h:66
libvisio::VSDOutputElementList::~VSDOutputElementList
virtual ~VSDOutputElementList()
Definition: VSDOutputElementList.cpp:368
libvisio::VSDOutputElementList::addGraphicObject
void addGraphicObject(const WPXPropertyList &propList, const ::WPXBinaryData &binaryData)
Definition: VSDOutputElementList.cpp:391
libvisio::VSDOutputElementList::VSDOutputElementList
VSDOutputElementList()
Definition: VSDOutputElementList.cpp:336
libvisio::VSDOutputElementList
Definition: VSDOutputElementList.h:45
libvisio::VSDOutputElementList::addEndTextLine
void addEndTextLine()
Definition: VSDOutputElementList.cpp:421
libvisio::VSDOutputElementList::addStartTextObject
void addStartTextObject(const WPXPropertyList &propList, const WPXPropertyListVector &propListVec)
Definition: VSDOutputElementList.cpp:396
libvisio::VSDOutputElementList::m_elements
std::vector< VSDOutputElement * > m_elements
Definition: VSDOutputElementList.h:71
libvisio::VSDOutputElementList::draw
void draw(libwpg::WPGPaintInterface *painter) const
Definition: VSDOutputElementList.cpp:375
libvisio::VSDOutputElementList::addStartLayer
void addStartLayer(const WPXPropertyList &propList)
Definition: VSDOutputElementList.cpp:431
libvisio::VSDOutputElementList::addStyle
void addStyle(const WPXPropertyList &propList, const WPXPropertyListVector &propListVec)
Definition: VSDOutputElementList.cpp:381
libvisio::VSDOutputElementList::addEndTextSpan
void addEndTextSpan()
Definition: VSDOutputElementList.cpp:416
libvisio::VSDOutputElementList::addEndLayer
void addEndLayer()
Definition: VSDOutputElementList.cpp:436
libvisio::VSDOutputElementList::addStartTextSpan
void addStartTextSpan(const WPXPropertyList &propList)
Definition: VSDOutputElementList.cpp:406
libvisio::VSDOutputElementList::addPath
void addPath(const WPXPropertyListVector &propListVec)
Definition: VSDOutputElementList.cpp:386
libvisio::VSDOutputElementList::addStartTextLine
void addStartTextLine(const WPXPropertyList &propList)
Definition: VSDOutputElementList.cpp:401
libvisio::VSDOutputElementList::append
void append(const VSDOutputElementList &elementList)
Definition: VSDOutputElementList.cpp:362
libvisio::VSDOutputElementList::addEndTextObject
void addEndTextObject()
Definition: VSDOutputElementList.cpp:426
libvisio::VSDOutputElementList::operator=
VSDOutputElementList & operator=(const VSDOutputElementList &elementList)
Definition: VSDOutputElementList.cpp:349
libvisio::VSDOutputElementList::addInsertText
void addInsertText(const WPXString &text)
Definition: VSDOutputElementList.cpp:411