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

Generated for libetonyek by doxygen 1.9.1