KEY2Parser.h Source File documentation

KEY2Parser.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 KEY2PARSER_H_INCLUDED
11 #define KEY2PARSER_H_INCLUDED
12
13 #include "IWORKParser.h"
14 #include "KEY2ParserState.h"
15
16 namespace libetonyek
17 {
18
19 class KEYCollector;
20 struct KEY2Dictionary;
21
22 class KEY2Parser : public IWORKParser
23 {
24 public:
25 KEY2Parser(const RVNGInputStreamPtr_t &input, const RVNGInputStreamPtr_t &package, KEYCollector &collector, KEY2Dictionary &dict);
26 ~KEY2Parser() override;
27
28 private:
29 IWORKXMLContextPtr_t createDocumentContext() override;
30 IWORKXMLContextPtr_t createDiscardContext() override;
31 const IWORKTokenizer &getTokenizer() const override;
32
33 private:
34 KEY2ParserState m_state;
35 };
36
37 }
38
39 #endif // KEY2PARSER_H_INCLUDED
40
41 /* vim:set shiftwidth=2 softtabstop=2 expandtab: */
libetonyek::KEY2XMLEmptyContextBase
KEY2XMLContextBase< IWORKXMLContextEmpty > KEY2XMLEmptyContextBase
Definition: KEY2XMLContextBase.h:42
IWORKChainedTokenizer.h
libetonyek::KEY2Token::master_ref
@ master_ref
Definition: KEY2Token.h:64
libetonyek::KEY1Token::slide_list
@ slide_list
Definition: KEY1Token.h:93
libetonyek::KEY2ParserState
Definition: KEY2ParserState.h:24
libetonyek::KEY2XMLElementContextBase
KEY2XMLContextBase< IWORKXMLContextElement > KEY2XMLElementContextBase
Definition: KEY2XMLContextBase.h:39
IWORKImageElement.h
IWORKTextStorageElement.h
IWORKGeometryElement.h
libetonyek
Definition: IWORKBezierElement.cpp:20
libetonyek::KEY2Token::VERSION_STR_5
@ VERSION_STR_5
Definition: KEY2Token.h:100
libetonyek::KEY2Dictionary
A dictionary of all referenceable entities in the presentation.
Definition: KEY2Dictionary.h:33
libetonyek::KEY2Token::VERSION_STR_2
@ VERSION_STR_2
Definition: KEY2Token.h:97
KEY2Token.h
libetonyek::KEY1Token::theme
@ theme
Definition: KEY1Token.h:101
libetonyek::KEY2Token::object_placeholder
@ object_placeholder
Definition: KEY2Token.h:68
libetonyek::IWORKToken::group
@ group
Definition: IWORKToken.h:244
libetonyek::IWORKToken::shape
@ shape
Definition: IWORKToken.h:394
libetonyek::KEY1Token::master_slides
@ master_slides
Definition: KEY1Token.h:68
libetonyek::IWORKChainedTokenizer
Definition: IWORKChainedTokenizer.h:18
KEY2XMLContextBase.h
libetonyek::IWORKToken::ID
@ ID
Definition: IWORKToken.h:499
m_style
IWORKStylePtr_t m_style
Definition: KEY2Parser.cpp:378
libetonyek::KEYPlaceholderPtr_t
std::shared_ptr< KEYPlaceholder > KEYPlaceholderPtr_t
Definition: KEYTypes_fwd.h:26
libetonyek::IWORKXMLContextPtr_t
std::shared_ptr< IWORKXMLContext > IWORKXMLContextPtr_t
Definition: IWORKXMLContext.h:18
libetonyek::IWORKToken::NS_URI_SFA
@ NS_URI_SFA
Definition: IWORKToken.h:689
IWORKStylesheetBase.h
m_bodyRef
boost::optional< ID_t > m_bodyRef
Definition: KEY2Parser.cpp:1074
libetonyek::IWORKToken::stylesheet
@ stylesheet
Definition: IWORKToken.h:417
libetonyek::IWORKToken::slide_style
@ slide_style
Definition: IWORKToken.h:397
m_graphicStyle
IWORKStylePtr_t m_graphicStyle
Definition: KEY2Parser.cpp:531
IWORKPathElement.h
m_titleText
IWORKTextPtr_t & m_titleText
Definition: KEY2Parser.cpp:602
libetonyek::IWORKTokenizer
Definition: IWORKTokenizer.h:16
IWORKPositionElement.h
libetonyek::KEYSlidePtr_t
std::shared_ptr< KEYSlide > KEYSlidePtr_t
Definition: KEYTypes_fwd.h:31
m_size
optional< IWORKSize > m_size
Definition: KEY2Parser.cpp:819
KEY2StyleContext.h
m_objectRef
boost::optional< ID_t > m_objectRef
Definition: KEY2Parser.cpp:1075
libetonyek::KEY2Token::VERSION_STR_4
@ VERSION_STR_4
Definition: KEY2Token.h:99
libetonyek::IWORKToken::comment
@ comment
Definition: IWORKToken.h:156
m_slidenumberRef
boost::optional< ID_t > m_slidenumberRef
Definition: KEY2Parser.cpp:1076
m_masterRef
optional< ID_t > m_masterRef
Definition: KEY2Parser.cpp:1066
ETONYEK_DEBUG_MSG
#define ETONYEK_DEBUG_MSG(M)
Definition: libetonyek_utils.h:54
KEYCollector.h
libetonyek::KEY1Token::master_slide
@ master_slide
Definition: KEY1Token.h:67
libetonyek::IWORKToken::anon_styles
@ anon_styles
Definition: IWORKToken.h:101
libetonyek::KEY2Token::style_ref
@ style_ref
Definition: KEY2Token.h:80
libetonyek::IWORKTextPtr_t
std::shared_ptr< IWORKText > IWORKTextPtr_t
Definition: IWORKText_fwd.h:18
libetonyek::IWORKToken::drawables
@ drawables
Definition: IWORKToken.h:183
libetonyek::KEY2Parser::createDiscardContext
IWORKXMLContextPtr_t createDiscardContext() override
Definition: KEY2Parser.cpp:1614
m_savedStylesheet
IWORKStylesheetPtr_t m_savedStylesheet
Definition: KEY2Parser.cpp:1557
libetonyek::try_int_cast
boost::optional< int > try_int_cast(const char *value)
Definition: libetonyek_xml.cpp:99
libetonyek::IWORKToken::tabular_info
@ tabular_info
Definition: IWORKToken.h:458
IWORKTableInfoElement.h
IWORKStyleContainer.h
libetonyek::KEY2Token::sticky_notes
@ sticky_notes
Definition: KEY2Token.h:78
libetonyek::IWORKParser
Definition: IWORKParser.h:23
IWORKLineElement.h
libetonyek::IWORKStylesheetPtr_t
std::shared_ptr< IWORKStylesheet > IWORKStylesheetPtr_t
Definition: IWORKStylesheet.h:19
libetonyek::KEY2Parser::~KEY2Parser
~KEY2Parser() override
Definition: KEY2Parser.cpp:1605
libetonyek::IWORKToken::path
@ path
Definition: IWORKToken.h:358
KEY2ParserState.h
libetonyek::KEY2Token::theme_list
@ theme_list
Definition: KEY2Token.h:84
libetonyek::KEY2Token::getTokenizer
const IWORKTokenizer & getTokenizer()
Definition: KEY2Token.cpp:57
IWORKShapeContext.h
libetonyek::IWORKToken::kind
@ kind
Definition: IWORKToken.h:567
libetonyek::KEY2Token::slide_number_placeholder
@ slide_number_placeholder
Definition: KEY2Token.h:76
libetonyek::KEY2Parser::createDocumentContext
IWORKXMLContextPtr_t createDocumentContext() override
Definition: KEY2Parser.cpp:1609
libetonyek::KEY2Token::body_placeholder
@ body_placeholder
Definition: KEY2Token.h:48
m_styleRef
optional< ID_t > m_styleRef
Definition: KEY2Parser.cpp:439
IWORKTextBodyElement.h
KEY2Dictionary.h
m_depth
optional< int > m_depth
Definition: KEY2Parser.cpp:440
libetonyek::IWORKToken::authors
@ authors
Definition: IWORKToken.h:109
IWORKStylesContext.h
libetonyek::IWORKToken::table_info
@ table_info
Definition: IWORKToken.h:429
libetonyek::IWORKToken::body_placeholder_ref
@ body_placeholder_ref
Definition: IWORKToken.h:117
IWORKGroupElement.h
m_ref
optional< ID_t > m_ref
Definition: KEY2Parser.cpp:281
libetonyek::IWORKToken::size
@ size
Definition: IWORKToken.h:395
libetonyek::IWORKToken::title
@ title
Definition: IWORKToken.h:476
libetonyek::IWORKToken::line
@ line
Definition: IWORKToken.h:298
libetonyek::KEY1Token::slide
@ slide
Definition: KEY1Token.h:92
IWORKStyleRefContext.h
libetonyek::IWORKToken::parent_ref
@ parent_ref
Definition: IWORKToken.h:357
IWORKPath.h
libetonyek::KEY2Token::title_placeholder
@ title_placeholder
Definition: KEY2Token.h:86
m_placeholderRef
optional< ID_t > & m_placeholderRef
Definition: KEY2Parser.cpp:895
libetonyek::IWORKToken::placeholder_style
@ placeholder_style
Definition: IWORKToken.h:363
m_pendingSize
bool m_pendingSize
Definition: KEY2Parser.cpp:1436
m_parent
optional< ID_t > m_parent
Definition: KEY2Parser.cpp:226
libetonyek::KEY1Token::presentation
@ presentation
Definition: KEY1Token.h:77
libetonyek::IWORKToken::image
@ image
Definition: IWORKToken.h:260
m_comment
boost::optional< std::string > m_comment
Definition: KEY2Parser.cpp:128
libetonyek::IWORKToken::proxy_master_layer
@ proxy_master_layer
Definition: IWORKToken.h:372
libetonyek::IWORKToken::metadata
@ metadata
Definition: IWORKToken.h:323
libetonyek::IWORKToken::element
@ element
Definition: IWORKToken.h:188
libetonyek::IWORKToken::placeholder_style_ref
@ placeholder_style_ref
Definition: IWORKToken.h:364
libetonyek::KEY2Token::headline
@ headline
Definition: KEY2Token.h:58
libetonyek::IWORKToken::layer
@ layer
Definition: IWORKToken.h:286
libetonyek::KEYPlaceholderMap_t
std::unordered_map< ID_t, KEYPlaceholderPtr_t > KEYPlaceholderMap_t
Definition: KEYTypes_fwd.h:29
m_titleRef
boost::optional< ID_t > m_titleRef
Definition: KEY2Parser.cpp:1077
m_isMasterSlide
bool m_isMasterSlide
Definition: KEY2Parser.cpp:1064
libetonyek::IWORKToken::styles
@ styles
Definition: IWORKToken.h:416
libetonyek::IWORKToken::string
@ string
Definition: IWORKToken.h:411
IWORKText.h
libetonyek_utils.h
libetonyek::IWORKToken::layers
@ layers
Definition: IWORKToken.h:288
libetonyek::IWORKToken::version
@ version
Definition: IWORKToken.h:626
m_opened
bool m_opened
Definition: KEY2Parser.cpp:441
libetonyek::IWORKToken::style
@ style
Definition: IWORKToken.h:414
IWORKTypes.h
IWORKMediaElement.h
libetonyek::KEY2Token::VERSION_STR_3
@ VERSION_STR_3
Definition: KEY2Token.h:98
IWORKDiscardContext.h
libetonyek::IWORKToken::connection_line
@ connection_line
Definition: IWORKToken.h:157
IWORKTextElement.h
libetonyek::KEY2Parser::KEY2Parser
KEY2Parser(const RVNGInputStreamPtr_t &input, const RVNGInputStreamPtr_t &package, KEYCollector &collector, KEY2Dictionary &dict)
Definition: KEY2Parser.cpp:1599
libetonyek::KEYLayerPtr_t
std::shared_ptr< KEYLayer > KEYLayerPtr_t
Definition: KEYTypes_fwd.h:21
IWORKStringElement.h
libetonyek::IWORKToken::text_storage
@ text_storage
Definition: IWORKToken.h:471
IWORKParser.h
libetonyek::KEY2Parser::getTokenizer
const IWORKTokenizer & getTokenizer() const override
Definition: KEY2Parser.cpp:1619
m_kind
const PlaceholderRefType m_kind
Definition: KEY2Parser.cpp:333
libetonyek::IWORKToken::title_placeholder_ref
@ title_placeholder_ref
Definition: IWORKToken.h:477
IWORKTabularInfoElement.h
libetonyek::IWORKToken::sticky_note
@ sticky_note
Definition: IWORKToken.h:407
m_title
boost::optional< std::string > m_title
Definition: KEY2Parser.cpp:126
libetonyek::IWORKToken::wrap
@ wrap
Definition: IWORKToken.h:496
libetonyek::KEY2Parser
Definition: KEY2Parser.h:22
libetonyek::KEY1Token::dict
@ dict
Definition: KEY1Token.h:51
libetonyek::IWORKToken::NS_URI_SF
@ NS_URI_SF
Definition: IWORKToken.h:688
libetonyek::IWORKStylePtr_t
std::shared_ptr< IWORKStyle > IWORKStylePtr_t
Definition: IWORKStyle_fwd.h:21
KEY2Parser.h
m_bodyText
IWORKTextPtr_t & m_bodyText
Definition: KEY2Parser.cpp:601
libetonyek::KEY1Token::bullets
@ bullets
Definition: KEY1Token.h:43
libetonyek::KEY1Token::NS_URI_KEY
@ NS_URI_KEY
Definition: KEY1Token.h:248
IWORKToken.h
libetonyek::IWORKToken::keywords
@ keywords
Definition: IWORKToken.h:275
libetonyek::RVNGInputStreamPtr_t
std::shared_ptr< librevenge::RVNGInputStream > RVNGInputStreamPtr_t
Definition: libetonyek_utils.h:82
libetonyek::KEY2Token::depth
@ depth
Definition: KEY2Token.h:90
libetonyek::KEY2Token::page
@ page
Definition: KEY2Token.h:69
libetonyek::KEY2Parser::m_state
KEY2ParserState m_state
Definition: KEY2Parser.h:34
libetonyek::get
const ValueT & get(const detail::IWAFieldImpl< TagV, ValueT, Reader > &field)
Definition: IWAField.h:190
IWORKRefContext.h
libetonyek::KEYCollector
Definition: KEYCollector.h:24
libetonyek::KEY1Token::notes
@ notes
Definition: KEY1Token.h:71
IWORKSizeElement.h
libetonyek::IWORKToken::geometry
@ geometry
Definition: IWORKToken.h:232
libetonyek::IWORKToken::getTokenizer
const IWORKTokenizer & getTokenizer()
Definition: IWORKToken.cpp:57
libetonyek::IWORKToken::layer_ref
@ layer_ref
Definition: IWORKToken.h:287
libetonyek::IWORKToken::name
@ name
Definition: IWORKToken.h:578
libetonyek::IWORKToken::value
@ value
Definition: IWORKToken.h:624
m_value
optional< string > & m_value
Definition: KEY2Parser.cpp:94
m_name
boost::optional< std::string > m_name
Definition: KEY2Parser.cpp:1068
m_keywords
boost::optional< std::string > m_keywords
Definition: KEY2Parser.cpp:127
IWORKStyle.h
m_author
boost::optional< std::string > m_author
Definition: KEY2Parser.cpp:125
libetonyek::IWORKToken::media
@ media
Definition: IWORKToken.h:321
libetonyek_xml.h
m_state
KEY2ParserState & m_state
Definition: KEY2Parser.cpp:1556
libetonyek::IWORKToken::text
@ text
Definition: IWORKToken.h:465
KEYTypes.h