IWORKXMLParserState.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 IWORKXMLPARSERSTATE_H_INCLUDED
11 #define IWORKXMLPARSERSTATE_H_INCLUDED
12 
13 #include <memory>
14 
15 #include "IWORKStylesheet.h"
16 #include "IWORKLanguageManager.h"
17 #include "IWORKTypes.h"
18 #include "IWORKTypes_fwd.h"
19 
20 namespace libetonyek
21 {
22 
23 class IWORKCollector;
24 struct IWORKDictionary;
25 class IWORKParser;
26 class IWORKTable;
27 class IWORKText;
28 class IWORKTokenizer;
29 
31 {
32  // not copyable
35 
36 public:
38 
42  const IWORKTokenizer &getTokenizer() const;
43 
44 public:
47  // When false, nothing should be sent to collector. This is used to
48  // gather referenceable entities in skipped parts of the file.
52  std::shared_ptr<IWORKTable> m_currentTable;
53  std::shared_ptr<IWORKText> m_currentText;
54 
55 private:
59 };
60 
61 }
62 
63 #endif // IWORKXMLPARSERSTATE_H_INCLUDED
64 
65 /* vim:set shiftwidth=2 softtabstop=2 expandtab: */
Definition: IWORKBezierElement.cpp:18
Definition: IWORKParser.h:23
IWORKCollector & getCollector() const
Definition: IWORKXMLParserState.cpp:47
bool m_enableCollector
Definition: IWORKXMLParserState.h:49
Definition: KEY1Token.h:49
IWORKXMLParserState & operator=(const IWORKXMLParserState &)
IWORKXMLParserState(const IWORKXMLParserState &)
IWORKParser & getParser()
Definition: IWORKXMLParserState.cpp:37
IWORKCollector & m_collector
Definition: IWORKXMLParserState.h:57
IWORKDictionary & getDictionary()
Definition: IWORKXMLParserState.cpp:42
A dictionary of all referenceable entities in the presentation.
Definition: IWORKDictionary.h:38
IWORKStylesheetPtr_t m_stylesheet
Definition: IWORKXMLParserState.h:46
IWORKLanguageManager m_langManager
Definition: IWORKXMLParserState.h:51
std::shared_ptr< IWORKTableData > IWORKTableDataPtr_t
Definition: IWORKTypes_fwd.h:74
IWORKTableDataPtr_t m_tableData
Definition: IWORKXMLParserState.h:45
std::shared_ptr< IWORKTable > m_currentTable
Definition: IWORKXMLParserState.h:52
Definition: IWORKCollector.h:41
IWORKTableNameMapPtr_t m_tableNameMap
Definition: IWORKXMLParserState.h:50
IWORKParser & m_parser
Definition: IWORKXMLParserState.h:56
const IWORKTokenizer & getTokenizer() const
Definition: IWORKXMLParserState.cpp:52
Definition: IWORKXMLParserState.h:30
std::shared_ptr< IWORKTableNameMap_t > IWORKTableNameMapPtr_t
Definition: IWORKTypes_fwd.h:32
Definition: IWORKLanguageManager.h:23
std::shared_ptr< IWORKText > m_currentText
Definition: IWORKXMLParserState.h:53
IWORKDictionary & m_dict
Definition: IWORKXMLParserState.h:58
Definition: IWORKTokenizer.h:16
std::shared_ptr< IWORKStylesheet > IWORKStylesheetPtr_t
Definition: IWORKStylesheet.h:19

Generated for libetonyek by doxygen 1.8.13