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
15namespace libetonyek
16{
17
18class KEY1Parser;
19class KEYCollector;
20struct KEY1Dictionary;
21
30
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
50public:
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
68private:
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: */
Definition IWORKXMLParserState.h:32
Definition KEY1ParserState.h:45
bool m_titleContentFound
Definition KEY1ParserState.h:83
KEY1ParserState & operator=(const KEY1ParserState &)
KEY1Dictionary & m_dict
Definition KEY1ParserState.h:71
std::deque< bool > m_masterSlides
Definition KEY1ParserState.h:75
bool m_isMasterSlide
Definition KEY1ParserState.h:66
std::deque< bool > m_prototypes
Definition KEY1ParserState.h:74
bool m_isTitleContentOpened
Definition KEY1ParserState.h:81
void closeBullets()
Definition KEY1ParserState.cpp:148
void popIsPrototype()
Definition KEY1ParserState.cpp:55
void openBullet(KEY1Bullet const &bullet)
Definition KEY1ParserState.cpp:93
KEY1Dictionary & getDictionary()
Definition KEY1ParserState.cpp:39
void pushIsMasterSlide(bool isMasterSlide)
Definition KEY1ParserState.cpp:66
void closeBullet()
Definition KEY1ParserState.cpp:133
bool m_isBulletOpened
Definition KEY1ParserState.h:77
bool m_isBulletsOpened
Definition KEY1ParserState.h:78
KEY1ParserState(const KEY1ParserState &)
KEYCollector & getCollector()
Definition KEY1ParserState.cpp:44
KEYCollector & m_collector
Definition KEY1ParserState.h:72
bool m_bodyContentFound
Definition KEY1ParserState.h:82
void storeCurrentPlaceholder()
Definition KEY1ParserState.cpp:160
void pushIsPrototype(bool isPrototype)
Definition KEY1ParserState.cpp:49
bool m_isPrototype
Definition KEY1ParserState.h:65
void popIsMasterSlide()
Definition KEY1ParserState.cpp:72
void openBullets()
Definition KEY1ParserState.cpp:83
bool m_isBodyContentOpened
Definition KEY1ParserState.h:80
Definition KEY1Parser.h:24
Definition KEYCollector.h:25
@ bullet
Definition IWORKToken.h:659
@ dict
Definition KEY1Token.h:51
Definition IWORKBezierElement.cpp:21
KEY1BulletType
Definition KEY1ParserState.h:23
@ KEY1_BULLETTYPE_SEQUENCE
Definition KEY1ParserState.h:27
@ KEY1_BULLETTYPE_CHARACTER
Definition KEY1ParserState.h:24
@ KEY1_BULLETTYPE_INHERITED
Definition KEY1ParserState.h:26
@ KEY1_BULLETTYPE_IMAGE
Definition KEY1ParserState.h:25
@ KEY1_BULLETTYPE_NONE
Definition KEY1ParserState.h:28
Definition KEY1ParserState.h:32
KEY1BulletType m_type
Definition KEY1ParserState.h:39
boost::optional< double > m_spacing
Definition KEY1ParserState.h:41
boost::optional< int > m_level
Definition KEY1ParserState.h:40
KEY1Bullet()
Definition KEY1ParserState.h:33
A dictionary of all referenceable entities in the presentation.
Definition KEY1Dictionary.h:36

Generated for libetonyek by doxygen 1.12.0