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
16namespace libvisio
17{
18
19 class VSDPage
20{
21public:
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{
36public:
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);
43private:
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: */
VSDOutputElementList.h
VSDTypes.h
libvisio::VSDOutputElementList
Definition: VSDOutputElementList.h:25
libvisio::VSDPage
Definition: VSDPages.h:20
libvisio::VSDPage::m_backgroundPageID
unsigned m_backgroundPageID
Definition: VSDPages.h:30
libvisio::VSDPage::operator=
VSDPage & operator=(const VSDPage &page)
Definition: VSDPages.cpp:32
libvisio::VSDPage::~VSDPage
~VSDPage()
Definition: VSDPages.cpp:28
libvisio::VSDPage::draw
void draw(librevenge::RVNGDrawingInterface *painter) const
Definition: VSDPages.cpp:51
libvisio::VSDPage::m_pageWidth
double m_pageWidth
Definition: VSDPages.h:28
libvisio::VSDPage::m_pageElements
VSDOutputElementList m_pageElements
Definition: VSDPages.h:31
libvisio::VSDPage::VSDPage
VSDPage()
Definition: VSDPages.cpp:14
libvisio::VSDPage::m_pageHeight
double m_pageHeight
Definition: VSDPages.h:28
libvisio::VSDPage::append
void append(const VSDOutputElementList &outputElements)
Definition: VSDPages.cpp:46
libvisio::VSDPage::m_pageName
librevenge::RVNGString m_pageName
Definition: VSDPages.h:29
libvisio::VSDPage::m_currentPageID
unsigned m_currentPageID
Definition: VSDPages.h:30
libvisio::VSDPages
Definition: VSDPages.h:35
libvisio::VSDPages::addPage
void addPage(const VSDPage &page)
Definition: VSDPages.cpp:62
libvisio::VSDPages::~VSDPages
~VSDPages()
Definition: VSDPages.cpp:130
libvisio::VSDPages::setMetaData
void setMetaData(const librevenge::RVNGPropertyList &metaData)
Definition: VSDPages.cpp:72
libvisio::VSDPages::draw
void draw(librevenge::RVNGDrawingInterface *painter)
Definition: VSDPages.cpp:77
libvisio::VSDPages::addBackgroundPage
void addBackgroundPage(const VSDPage &page)
Definition: VSDPages.cpp:67
libvisio::VSDPages::m_pages
std::vector< VSDPage > m_pages
Definition: VSDPages.h:45
libvisio::VSDPages::m_backgroundPages
std::map< unsigned, VSDPage > m_backgroundPages
Definition: VSDPages.h:46
libvisio::VSDPages::_drawWithBackground
void _drawWithBackground(librevenge::RVNGDrawingInterface *painter, const VSDPage &page)
Definition: VSDPages.cpp:115
libvisio::VSDPages::m_metaData
librevenge::RVNGPropertyList m_metaData
Definition: VSDPages.h:47
libvisio::VSDPages::VSDPages
VSDPages()
Definition: VSDPages.cpp:57
libvisio
Definition: VisioDocument.h:30