VSDOutputElementList.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 libvisio 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 __VSDOUTPUTELEMENTLIST_H__
11#define __VSDOUTPUTELEMENTLIST_H__
12
13#include <map>
14#include <memory>
15#include <list>
16#include <vector>
17#include <librevenge/librevenge.h>
18
19namespace libvisio
20{
21
23
25{
26public:
33 void append(VSDOutputElementList &&elementList);
34 void draw(librevenge::RVNGDrawingInterface *painter) const;
35 void addStyle(const librevenge::RVNGPropertyList &propList);
36 void addPath(const librevenge::RVNGPropertyList &propList);
37 void addGraphicObject(const librevenge::RVNGPropertyList &propList);
38 void addStartTextObject(const librevenge::RVNGPropertyList &propList);
39 void addEndTextObject();
40 void addOpenUnorderedListLevel(const librevenge::RVNGPropertyList &propList);
42 void addOpenListElement(const std::shared_ptr<const librevenge::RVNGPropertyList> &propList);
44 void addOpenParagraph(const std::shared_ptr<const librevenge::RVNGPropertyList> &propList);
45 void addCloseParagraph();
46 void addOpenSpan(const std::shared_ptr<const librevenge::RVNGPropertyList> &propList);
47 void addCloseSpan();
48 void addInsertText(const librevenge::RVNGString &text);
49 void addInsertLineBreak();
50 void addInsertTab();
51 void addStartLayer(const librevenge::RVNGPropertyList &propList);
52 void addEndLayer();
53 bool empty() const
54 {
55 return m_elements.empty();
56 }
57private:
58 std::vector<std::unique_ptr<VSDOutputElement>> m_elements;
59};
60
61
62} // namespace libvisio
63
64#endif // __VSDOUTPUTELEMENTLIST_H__
65/* vim:set shiftwidth=2 softtabstop=2 expandtab: */
void append(VSDOutputElementList &&elementList)
Definition VSDOutputElementList.cpp:522
void addInsertLineBreak()
Definition VSDOutputElementList.cpp:574
void addInsertText(const librevenge::RVNGString &text)
Definition VSDOutputElementList.cpp:569
void addOpenSpan(const std::shared_ptr< const librevenge::RVNGPropertyList > &propList)
Definition VSDOutputElementList.cpp:564
void addOpenUnorderedListLevel(const librevenge::RVNGPropertyList &propList)
Definition VSDOutputElementList.cpp:614
void addOpenParagraph(const std::shared_ptr< const librevenge::RVNGPropertyList > &propList)
Definition VSDOutputElementList.cpp:559
void addGraphicObject(const librevenge::RVNGPropertyList &propList)
Definition VSDOutputElementList.cpp:549
VSDOutputElementList & operator=(VSDOutputElementList &&elementList)
VSDOutputElementList()
Definition VSDOutputElementList.cpp:493
void addStartTextObject(const librevenge::RVNGPropertyList &propList)
Definition VSDOutputElementList.cpp:554
void addStartLayer(const librevenge::RVNGPropertyList &propList)
Definition VSDOutputElementList.cpp:599
void addEndTextObject()
Definition VSDOutputElementList.cpp:594
VSDOutputElementList & operator=(const VSDOutputElementList &elementList)
Definition VSDOutputElementList.cpp:505
void addEndLayer()
Definition VSDOutputElementList.cpp:604
void addOpenListElement(const std::shared_ptr< const librevenge::RVNGPropertyList > &propList)
Definition VSDOutputElementList.cpp:609
void addCloseListElement()
Definition VSDOutputElementList.cpp:619
void addPath(const librevenge::RVNGPropertyList &propList)
Definition VSDOutputElementList.cpp:544
void addCloseUnorderedListLevel()
Definition VSDOutputElementList.cpp:624
void addCloseParagraph()
Definition VSDOutputElementList.cpp:589
void draw(librevenge::RVNGDrawingInterface *painter) const
Definition VSDOutputElementList.cpp:533
void addInsertTab()
Definition VSDOutputElementList.cpp:579
VSDOutputElementList(VSDOutputElementList &&elementList)
void addCloseSpan()
Definition VSDOutputElementList.cpp:584
bool empty() const
Definition VSDOutputElementList.h:53
std::vector< std::unique_ptr< VSDOutputElement > > m_elements
Definition VSDOutputElementList.h:58
void addStyle(const librevenge::RVNGPropertyList &propList)
Definition VSDOutputElementList.cpp:539
Definition VSDOutputElementList.cpp:61
Definition libvisio_utils.h:47

Generated for libvisio by doxygen 1.18.0