- Main Page
- Related Pages
- Namespaces
- Classes
- Files

- File List
- File Members

KEYThemeCollector.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 libetonyek 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 KEYTHEMECOLLECTOR_H_INCLUDED
11 #define KEYTHEMECOLLECTOR_H_INCLUDED
12
13 #include "KEYCollectorBase.h"
14
15 namespace libetonyek
16 {
17
18 struct KEYDictionary;
19
20 class KEYThemeCollector : public KEYCollectorBase
21 {
22 public:
23 KEYThemeCollector(KEYDictionary &dict, KEYLayerMap_t &masterPages, KEYSize &size, const KEYDefaults &defaults);
24 virtual ~KEYThemeCollector();
25
26 // collector functions
27
28 virtual void collectPresentation(const boost::optional<KEYSize> &size);
29
30 virtual void collectLayer(const boost::optional<ID_t> &id, bool ref);
31 virtual void collectPage(const boost::optional<ID_t> &id);
32
33 virtual void startSlides();
34 virtual void endSlides();
35 virtual void startThemes();
36 virtual void endThemes();
37
38 virtual void startPage();
39 virtual void endPage();
40 virtual void startLayer();
41 virtual void endLayer();
42
43 private:
44 KEYLayerMap_t &m_masterPages;
45 KEYSize &m_size;
46 };
47
48 } // namespace libetonyek
49
50 #endif // KEYTHEMECOLLECTOR_H_INCLUDED
51
52 /* vim:set shiftwidth=2 softtabstop=2 expandtab: */
libetonyek::KEYThemeCollector::startSlides
virtual void startSlides()
Definition: KEYThemeCollector.cpp:68
libetonyek::KEYThemeCollector::m_masterPages
KEYLayerMap_t & m_masterPages
Definition: KEYThemeCollector.h:44
libetonyek::KEYThemeCollector::collectPresentation
virtual void collectPresentation(const boost::optional< KEYSize > &size)
Definition: KEYThemeCollector.cpp:31
libetonyek::KEYLayerMap_t
boost::unordered_map< ID_t, KEYLayerPtr_t > KEYLayerMap_t
Definition: KEYTypes_fwd.h:63
libetonyek::KEYThemeCollector::m_size
KEYSize & m_size
Definition: KEYThemeCollector.h:45
libetonyek::KEYThemeCollector::startLayer
virtual void startLayer()
Definition: KEYThemeCollector.cpp:94
libetonyek::KEYThemeCollector::collectPage
virtual void collectPage(const boost::optional< ID_t > &id)
Definition: KEYThemeCollector.cpp:62
libetonyek::KEYThemeCollector
Definition: KEYThemeCollector.h:20
libetonyek::KEYCollectorBase
Implementation of common parts of styles and content collector.
Definition: KEYCollectorBase.h:32
libetonyek::KEYThemeCollector::endLayer
virtual void endLayer()
Definition: KEYThemeCollector.cpp:99
libetonyek::KEYThemeCollector::startPage
virtual void startPage()
Definition: KEYThemeCollector.cpp:86
libetonyek::KEYThemeCollector::collectLayer
virtual void collectLayer(const boost::optional< ID_t > &id, bool ref)
Definition: KEYThemeCollector.cpp:39
KEYCollectorBase.h
libetonyek::KEYSize
Definition: KEYTypes.h:27
libetonyek::KEYThemeCollector::endThemes
virtual void endThemes()
Definition: KEYThemeCollector.cpp:81
libetonyek::KEYThemeCollector::~KEYThemeCollector
virtual ~KEYThemeCollector()
Definition: KEYThemeCollector.cpp:27
libetonyek::KEY1Token::dict
Definition: KEY1Token.h:42
libetonyek::KEYDictionary
A dictionary of all referenceable entities in the presentation.
Definition: KEYDictionary.h:35
libetonyek::KEYThemeCollector::endSlides
virtual void endSlides()
Definition: KEYThemeCollector.cpp:72
libetonyek::KEYThemeCollector::KEYThemeCollector
KEYThemeCollector(KEYDictionary &dict, KEYLayerMap_t &masterPages, KEYSize &size, const KEYDefaults &defaults)
Definition: KEYThemeCollector.cpp:20
libetonyek::KEY1Token::size
Definition: KEY1Token.h:72
libetonyek::KEYThemeCollector::endPage
virtual void endPage()
Definition: KEYThemeCollector.cpp:90
libetonyek::KEYThemeCollector::startThemes
virtual void startThemes()
Definition: KEYThemeCollector.cpp:76
libetonyek::KEYDefaults
A representation of default values for various parts of the format.
Definition: KEYDefaults.h:30