VSDPages.h Source File documentation

VSDPages.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 __VSDPAGES_H__
11 #define __VSDPAGES_H__
12
13 #include "VSDOutputElementList.h"
14 #include "VSDTypes.h"
15
16 namespace libvisio
17 {
18
19 class VSDPage
20 {
21 public:
22 VSDPage();
23 VSDPage(const VSDPage &page);
24 ~VSDPage();
25 VSDPage &operator=(const VSDPage &page);
26 void append(const VSDOutputElementList &outputElements);
27 void draw(librevenge::RVNGDrawingInterface *painter) const;
28 double m_pageWidth, m_pageHeight;
29 librevenge::RVNGString m_pageName;
30 unsigned m_currentPageID, m_backgroundPageID;
31 VSDOutputElementList m_pageElements;
32 };
33
34 class VSDPages
35 {
36 public:
37 VSDPages();
38 ~VSDPages();
39 void addPage(const VSDPage &page);
40 void addBackgroundPage(const VSDPage &page);
41 void draw(librevenge::RVNGDrawingInterface *painter);
42 void setMetaData(const librevenge::RVNGPropertyList &metaData);
43 private:
44 void _drawWithBackground(librevenge::RVNGDrawingInterface *painter, const VSDPage &page);
45 std::vector<VSDPage> m_pages;
46 std::map<unsigned, VSDPage> m_backgroundPages;
47 librevenge::RVNGPropertyList m_metaData;
48 };
49
50
51 } // namespace libvisio
52
53 #endif // __VSDPAGES_H__
54 /* vim:set shiftwidth=2 softtabstop=2 expandtab: */
libvisio::VSDPages::m_metaData
librevenge::RVNGPropertyList m_metaData
Definition: VSDPages.h:47
libvisio::VSDPages
Definition: VSDPages.h:34
libvisio::VSDPage::m_pageElements
VSDOutputElementList m_pageElements
Definition: VSDPages.h:31
libvisio::VSDPage::m_pageWidth
double m_pageWidth
Definition: VSDPages.h:28
libvisio::VSDPage::VSDPage
VSDPage()
Definition: VSDPages.cpp:13
libvisio::VSDPage::~VSDPage
~VSDPage()
Definition: VSDPages.cpp:27
libvisio::VSDOutputElementList
Definition: VSDOutputElementList.h:23
libvisio::VSDPage::m_currentPageID
unsigned m_currentPageID
Definition: VSDPages.h:30
libvisio::VSDPage::m_pageName
librevenge::RVNGString m_pageName
Definition: VSDPages.h:29
libvisio::VSDPages::m_pages
std::vector< VSDPage > m_pages
Definition: VSDPages.h:45
VSDTypes.h
libvisio::VSDPage::operator=
VSDPage & operator=(const VSDPage &page)
Definition: VSDPages.cpp:31
VSDOutputElementList.h
libvisio::VSDPage::m_pageHeight
double m_pageHeight
Definition: VSDPages.h:28
libvisio::VSDPage::m_backgroundPageID
unsigned m_backgroundPageID
Definition: VSDPages.h:30
libvisio::VSDPages::m_backgroundPages
std::map< unsigned, VSDPage > m_backgroundPages
Definition: VSDPages.h:46
libvisio::VSDPage::append
void append(const VSDOutputElementList &outputElements)
Definition: VSDPages.cpp:45
libvisio
Definition: libvisio_utils.h:73
libvisio::VSDPage::draw
void draw(librevenge::RVNGDrawingInterface *painter) const
Definition: VSDPages.cpp:50
libvisio::VSDPage
Definition: VSDPages.h:19