VSDPages.h
Go to the documentation of this file.
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/*
* This file is part of the libvisio project.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
#ifndef __VSDPAGES_H__
#define __VSDPAGES_H__
#include "VSDOutputElementList.h"
#include "VSDTypes.h"
namespace libvisio
{
class VSDPage
{
public:
VSDPage();
VSDPage(const VSDPage &page);
~VSDPage();
VSDPage &operator=(const VSDPage &page);
void append(const VSDOutputElementList &outputElements);
void draw(librevenge::RVNGDrawingInterface *painter) const;
double m_pageWidth, m_pageHeight;
librevenge::RVNGString m_pageName;
unsigned m_currentPageID, m_backgroundPageID;
VSDOutputElementList m_pageElements;
};
class VSDPages
{
public:
VSDPages();
~VSDPages();
void addPage(const VSDPage &page);
void addBackgroundPage(const VSDPage &page);
void draw(librevenge::RVNGDrawingInterface *painter);
void setMetaData(const librevenge::RVNGPropertyList &metaData);
private:
void _drawWithBackground(librevenge::RVNGDrawingInterface *painter, const VSDPage &page);
std::vector<VSDPage> m_pages;
std::map<unsigned, VSDPage> m_backgroundPages;
librevenge::RVNGPropertyList m_metaData;
};
} // namespace libvisio
#endif // __VSDPAGES_H__
/* 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::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 libvisio_utils.h:47