KEY1ParserState.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 KEY1PARSERSTATE_H_INCLUDED
11 #define KEY1PARSERSTATE_H_INCLUDED
12 
13 #include "IWORKXMLParserState.h"
14 
15 namespace libetonyek
16 {
17 
18 class KEY1Parser;
19 class KEYCollector;
20 struct KEY1Dictionary;
21 
23 {
29 };
30 
31 struct KEY1Bullet
32 {
35  , m_level()
36  , m_spacing()
37  {
38  }
40  boost::optional<int> m_level;
41  boost::optional<double> m_spacing;
42 };
43 
45 {
46  // not copyable
49 
50 public:
52 
55 
56  void pushIsPrototype(bool isPrototype);
57  void popIsPrototype();
58  void pushIsMasterSlide(bool isMasterSlide);
59  void popIsMasterSlide();
60 
61  void openBullets();
62  void openBullet(KEY1Bullet const &bullet);
63  void closeBullet();
64  void closeBullets();
67 
68 private:
70 
73 
74  std::deque<bool> m_prototypes;
75  std::deque<bool> m_masterSlides;
76 
79 
84 };
85 
86 }
87 
88 #endif // KEY1PARSERSTATE_H_INCLUDED
89 
90 /* vim:set shiftwidth=2 softtabstop=2 expandtab: */
KEY1BulletType m_type
Definition: KEY1ParserState.h:39
KEY1ParserState & operator=(const KEY1ParserState &)
KEY1Dictionary & getDictionary()
Definition: KEY1ParserState.cpp:39
Definition: KEY1Token.h:51
bool m_titleContentFound
Definition: KEY1ParserState.h:83
A dictionary of all referenceable entities in the presentation.
Definition: KEY1Dictionary.h:35
Definition: KEY1ParserState.h:44
void closeBullets()
Definition: KEY1ParserState.cpp:148
bool m_isMasterSlide
Definition: KEY1ParserState.h:66
void pushIsPrototype(bool isPrototype)
Definition: KEY1ParserState.cpp:49
bool m_isPrototype
Definition: KEY1ParserState.h:65
KEY1Dictionary & m_dict
Definition: KEY1ParserState.h:71
Definition: KEY1Parser.h:23
bool m_isTitleContentOpened
Definition: KEY1ParserState.h:81
Definition: KEY1ParserState.h:26
bool m_isBulletsOpened
Definition: KEY1ParserState.h:78
KEYCollector & getCollector()
Definition: KEY1ParserState.cpp:44
void storeCurrentPlaceholder()
Definition: KEY1ParserState.cpp:160
void popIsMasterSlide()
Definition: KEY1ParserState.cpp:72
bool m_isBulletOpened
Definition: KEY1ParserState.h:77
Definition: KEY1ParserState.h:24
Definition: KEY1ParserState.h:27
KEY1BulletType
Definition: KEY1ParserState.h:22
bool m_bodyContentFound
Definition: KEY1ParserState.h:82
Definition: KEY1ParserState.h:25
std::deque< bool > m_prototypes
Definition: KEY1ParserState.h:74
void openBullet(KEY1Bullet const &bullet)
Definition: KEY1ParserState.cpp:93
Definition: KEY1ParserState.h:28
bool m_isBodyContentOpened
Definition: KEY1ParserState.h:80
Definition: KEY1ParserState.h:31
Definition: IWORKXMLParserState.h:31
boost::optional< double > m_spacing
Definition: KEY1ParserState.h:41
Definition: IWORKToken.h:659
KEYCollector & m_collector
Definition: KEY1ParserState.h:72
void closeBullet()
Definition: KEY1ParserState.cpp:133
Definition: KEYCollector.h:24
void pushIsMasterSlide(bool isMasterSlide)
Definition: KEY1ParserState.cpp:66
std::deque< bool > m_masterSlides
Definition: KEY1ParserState.h:75
void popIsPrototype()
Definition: KEY1ParserState.cpp:55
void openBullets()
Definition: KEY1ParserState.cpp:83
KEY1Bullet()
Definition: KEY1ParserState.h:33
KEY1ParserState(const KEY1ParserState &)
boost::optional< int > m_level
Definition: KEY1ParserState.h:40

Generated for libetonyek by doxygen 1.8.6