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;
29  librevenge::RVNGString m_pageName;
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 private:
43  void _drawWithBackground(librevenge::RVNGDrawingInterface *painter, const VSDPage &page);
44  std::vector<VSDPage> m_pages;
45  std::map<unsigned, VSDPage> m_backgroundPages;
46 };
47 
48 
49 } // namespace libvisio
50 
51 #endif // __VSDPAGES_H__
52 /* vim:set shiftwidth=2 softtabstop=2 expandtab: */

Generated for libvisio by doxygen 1.8.4