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
Definition: IWORKBezierElement.cpp:20
libetonyek::IWORKParser
Definition: IWORKParser.h:23
libetonyek::IWORKXMLContextPtr_t
std::shared_ptr< IWORKXMLContext > IWORKXMLContextPtr_t
Definition: IWORKXMLContext.h:18
KEY2ParserState.h
libetonyek::KEY1Token::dict
Definition: KEY1Token.h:51
libetonyek::KEY2Parser::KEY2Parser
KEY2Parser(const RVNGInputStreamPtr_t &input, const RVNGInputStreamPtr_t &package, KEYCollector &collector, KEY2Dictionary &dict)
Definition: KEY2Parser.cpp:1599
libetonyek::KEY2Parser::getTokenizer
const IWORKTokenizer & getTokenizer() const override
Definition: KEY2Parser.cpp:1619
libetonyek::KEY2Parser::m_state
KEY2ParserState m_state
Definition: KEY2Parser.h:34
libetonyek::KEY2Dictionary
A dictionary of all referenceable entities in the presentation.
Definition: KEY2Dictionary.h:33
libetonyek::KEY2Parser::createDiscardContext
IWORKXMLContextPtr_t createDiscardContext() override
Definition: KEY2Parser.cpp:1614
libetonyek::KEY2Parser::createDocumentContext
IWORKXMLContextPtr_t createDocumentContext() override
Definition: KEY2Parser.cpp:1609
libetonyek::KEY2ParserState
Definition: KEY2ParserState.h:24
IWORKParser.h
libetonyek::RVNGInputStreamPtr_t
std::shared_ptr< librevenge::RVNGInputStream > RVNGInputStreamPtr_t
Definition: libetonyek_utils.h:82
libetonyek::KEYCollector
Definition: KEYCollector.h:24
libetonyek::IWORKTokenizer
Definition: IWORKTokenizer.h:16
libetonyek::KEY2Parser::~KEY2Parser
~KEY2Parser() override
Definition: KEY2Parser.cpp:1605
libetonyek::KEY2Parser
Definition: KEY2Parser.h:22