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

Generated for libetonyek by doxygen 1.12.0