PAG1StyleContext.h Source File documentation

PAG1StyleContext.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 PAG1STYLECONTEXT_H_INCLUDED
11 #define PAG1STYLECONTEXT_H_INCLUDED
12
13 #include <string>
14
15 #include <boost/optional.hpp>
16
17 #include "IWORKPropertyMap.h"
18 #include "IWORKStyleContext.h"
19 #include "PAG1XMLContextBase.h"
20
21 namespace libetonyek
22 {
23
24 class PAG1StyleContext : public PAG1XMLElementContextBase
25 {
26 public:
27 PAG1StyleContext(PAG1ParserState &state, IWORKStyleMap_t *styleMap, const char *defaultParent, bool nested = false);
28
29 private:
30 void attribute(int name, const char *value) override;
31 IWORKXMLContextPtr_t element(int name) override;
32 void endOfElement() override;
33
34 private:
35 IWORKPropertyMap m_props;
36 IWORKStyleContext m_base;
37 boost::optional<std::string> m_ident;
38 boost::optional<std::string> m_parentIdent;
39 };
40
41 }
42
43 #endif // PAG1STYLECONTEXT_H_INCLUDED
44
45 /* vim:set shiftwidth=2 softtabstop=2 expandtab: */
libetonyek::IWORKToken::header
@ header
Definition: IWORKToken.h:252
libetonyek::IWORKXMLEmptyContextBase
IWORKXMLContextBase< IWORKXMLContextEmpty, IWORKXMLParserState > IWORKXMLEmptyContextBase
Definition: IWORKXMLContextBase.h:128
libetonyek::PAG1Token::NS_URI_SL
@ NS_URI_SL
Definition: PAG1Token.h:77
libetonyek
Definition: IWORKBezierElement.cpp:20
PAG1StyleContext.h
libetonyek::IWORKStyleMap_t
std::unordered_map< ID_t, IWORKStylePtr_t > IWORKStyleMap_t
Definition: IWORKStyle_fwd.h:24
m_props
RVNGPropertyList & m_props
Definition: IWORKCollector.cpp:222
libetonyek::PAG1ParserState
Definition: PAG1ParserState.h:23
libetonyek::IWORKToken::ID
@ ID
Definition: IWORKToken.h:499
IWORKPropertyMap.h
IWORKProperties.h
libetonyek::IWORKXMLContextPtr_t
std::shared_ptr< IWORKXMLContext > IWORKXMLContextPtr_t
Definition: IWORKXMLContext.h:18
libetonyek::IWORKToken::NS_URI_SFA
@ NS_URI_SFA
Definition: IWORKToken.h:689
libetonyek::IWORKToken::evenPageMaster
@ evenPageMaster
Definition: IWORKToken.h:192
libetonyek::IWORKStyleContext::attribute
void attribute(int name, const char *value) override
Definition: IWORKStyleContext.cpp:48
libetonyek::PAG1StyleContext::m_ident
boost::optional< std::string > m_ident
Definition: PAG1StyleContext.h:37
libetonyek::PAG1StyleContext::attribute
void attribute(int name, const char *value) override
Definition: PAG1StyleContext.cpp:156
libetonyek::PAG1StyleContext::endOfElement
void endOfElement() override
Definition: PAG1StyleContext.cpp:187
m_header
optional< string > m_header
Definition: PAG1StyleContext.cpp:49
libetonyek::PAG1XMLContextBase
Definition: PAG1XMLContextBase.h:22
IWORKStyleContext.h
libetonyek::IWORKToken::ident
@ ident
Definition: IWORKToken.h:559
m_value
optional< IWORKPageMaster > & m_value
Definition: PAG1StyleContext.cpp:48
ETONYEK_DEBUG_MSG
#define ETONYEK_DEBUG_MSG(M)
Definition: libetonyek_utils.h:54
PAGTypes.h
libetonyek::PAG1StyleContext::m_parentIdent
boost::optional< std::string > m_parentIdent
Definition: PAG1StyleContext.h:38
IWORKPropertyContext.h
libetonyek::IWORKToken::footer
@ footer
Definition: IWORKToken.h:218
libetonyek::IWORKToken::property_map
@ property_map
Definition: IWORKToken.h:370
m_base
IWORKPropertyMapElement m_base
Definition: PAG1StyleContext.cpp:117
libetonyek::PAG1StyleContext::m_base
IWORKStyleContext m_base
Definition: PAG1StyleContext.h:36
libetonyek::PAG1StyleContext::element
IWORKXMLContextPtr_t element(int name) override
Definition: PAG1StyleContext.cpp:174
libetonyek::IWORKToken::oddPageMaster
@ oddPageMaster
Definition: IWORKToken.h:335
PAG1Token.h
libetonyek::IWORKToken::element
@ element
Definition: IWORKToken.h:188
libetonyek::PAG1XMLElementContextBase
PAG1XMLContextBase< IWORKXMLContextElement > PAG1XMLElementContextBase
Definition: PAG1XMLContextBase.h:39
IWORKPropertyMapElement.h
libetonyek::IWORKStyleContext::endOfElement
void endOfElement() override
Definition: IWORKStyleContext.cpp:88
libetonyek::IWORKToken::string
@ string
Definition: IWORKToken.h:411
libetonyek::PAG1StyleContext
Definition: PAG1StyleContext.h:24
libetonyek::IWORKPropertyMap
Represents a (hierarchical) property map.
Definition: IWORKPropertyMap.h:24
libetonyek::PAG1StyleContext::m_props
IWORKPropertyMap m_props
Definition: PAG1StyleContext.h:35
libetonyek::IWORKToken::parent_ident
@ parent_ident
Definition: IWORKToken.h:589
libetonyek::IWORKToken::NS_URI_SF
@ NS_URI_SF
Definition: IWORKToken.h:688
libetonyek::PAG1StyleContext::PAG1StyleContext
PAG1StyleContext(PAG1ParserState &state, IWORKStyleMap_t *styleMap, const char *defaultParent, bool nested=false)
Definition: PAG1StyleContext.cpp:147
PAG1XMLContextBase.h
IWORKToken.h
PAGProperties.h
m_propMap
IWORKPropertyMap & m_propMap
Definition: PAG1StyleContext.cpp:118
libetonyek::get
const ValueT & get(const detail::IWAFieldImpl< TagV, ValueT, Reader > &field)
Definition: IWAField.h:190
m_footer
optional< string > m_footer
Definition: PAG1StyleContext.cpp:50
PAG1ParserState.h
libetonyek::IWORKToken::firstPageMaster
@ firstPageMaster
Definition: IWORKToken.h:209
libetonyek::IWORKToken::name
@ name
Definition: IWORKToken.h:578
libetonyek::IWORKToken::value
@ value
Definition: IWORKToken.h:624
libetonyek::IWORKStyleContext
Definition: IWORKStyleContext.h:24
IWORKStyle.h
PAGCollector.h
libetonyek_xml.h
libetonyek::IWORKXMLContextBase< Base, PAG1ParserState, PAGCollector >::getState
PAG1ParserState & getState()
Definition: IWORKXMLContextBase.h:43