- Main Page
- Related Pages
- Namespaces
- Classes
- Files

- File List
- File Members

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