VSDXTheme.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 __VSDXTHEME_H__
11 #define __VSDXTHEME_H__
12 
13 #include <vector>
14 #include <boost/optional.hpp>
15 #include <librevenge-stream/librevenge-stream.h>
16 #include "VSDXMLHelper.h"
17 
18 namespace libvisio
19 {
20 
21 class VSDCollector;
22 
24 {
32 
34 };
35 
37 {
51  std::vector<VSDXVariationClrScheme> m_variationClrSchemeLst;
52 
53  VSDXClrScheme();
54 };
55 
56 class VSDXTheme
57 {
58 public:
59  VSDXTheme();
60  ~VSDXTheme();
61  bool parse(librevenge::RVNGInputStream *input);
62  boost::optional<Colour> getThemeColour(unsigned value, unsigned variationIndex = 0) const;
63 
64 private:
65  VSDXTheme(const VSDXTheme &);
66  VSDXTheme &operator=(const VSDXTheme &);
67 
68  boost::optional<Colour> readSrgbClr(xmlTextReaderPtr reader);
69  boost::optional<Colour> readSysClr(xmlTextReaderPtr reader);
70 
71  void readClrScheme(xmlTextReaderPtr reader);
72  void readThemeColour(xmlTextReaderPtr reader, int idToken, Colour &clr);
73  void readVariationClrSchemeLst(xmlTextReaderPtr reader);
74  void readVariationClrScheme(xmlTextReaderPtr reader, VSDXVariationClrScheme &varClrSch);
75 
76  int getElementToken(xmlTextReaderPtr reader);
77 
79 };
80 
81 } // namespace libvisio
82 
83 #endif // __VSDXTHEME_H__
84 /* vim:set shiftwidth=2 softtabstop=2 expandtab: */

Generated for libvisio by doxygen 1.8.4