PAG1StyleContext.h Source File documentation

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

- File List
- File Members

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 virtual void attribute(int name, const char *value);
31 virtual IWORKXMLContextPtr_t element(int name);
32 virtual void endOfElement();
33
34 private:
35 IWORKPropertyMap m_props;
36 IWORKStyleContext m_base;
37 IWORKStyleMap_t *const m_styleMap;
38 const bool m_nested;
39 boost::optional<std::string> m_ident;
40 boost::optional<std::string> m_parentIdent;
41 };
42
43 }
44
45 #endif // PAG1STYLECONTEXT_H_INCLUDED
46
47 /* vim:set shiftwidth=2 softtabstop=2 expandtab: */
libetonyek::PAG1StyleContext::PAG1StyleContext
PAG1StyleContext(PAG1ParserState &state, IWORKStyleMap_t *styleMap, const char *defaultParent, bool nested=false)
Definition: PAG1StyleContext.cpp:140
libetonyek
Definition: IWORKBezierElement.cpp:18
libetonyek::PAG1StyleContext::element
virtual IWORKXMLContextPtr_t element(int name)
Definition: PAG1StyleContext.cpp:167
libetonyek::PAG1StyleContext::endOfElement
virtual void endOfElement()
Definition: PAG1StyleContext.cpp:178
libetonyek::PAG1StyleContext::attribute
virtual void attribute(int name, const char *value)
Definition: PAG1StyleContext.cpp:149
libetonyek::IWORKStyleContext
Definition: IWORKStyleContext.h:24
libetonyek::PAG1StyleContext::m_nested
const bool m_nested
Definition: PAG1StyleContext.h:38
libetonyek::IWORKPropertyMap
Represents a (hierarchical) property map.
Definition: IWORKPropertyMap.h:23
IWORKStyleContext.h
libetonyek::PAG1StyleContext::m_props
IWORKPropertyMap m_props
Definition: PAG1StyleContext.h:35
libetonyek::PAG1XMLContextBase
Definition: PAG1XMLContextBase.h:22
libetonyek::IWORKXMLContextPtr_t
boost::shared_ptr< IWORKXMLContext > IWORKXMLContextPtr_t
Definition: IWORKXMLContext.h:18
libetonyek::PAG1StyleContext::m_ident
boost::optional< std::string > m_ident
Definition: PAG1StyleContext.h:39
libetonyek::PAG1StyleContext
Definition: PAG1StyleContext.h:24
libetonyek::PAG1StyleContext::m_parentIdent
boost::optional< std::string > m_parentIdent
Definition: PAG1StyleContext.h:40
name
const char * name
Definition: IWORKToken.cpp:43
IWORKPropertyMap.h
PAG1XMLContextBase.h
libetonyek::PAG1ParserState
Definition: PAG1ParserState.h:23
libetonyek::PAG1StyleContext::m_styleMap
IWORKStyleMap_t *const m_styleMap
Definition: PAG1StyleContext.h:37
libetonyek::PAG1StyleContext::m_base
IWORKStyleContext m_base
Definition: PAG1StyleContext.h:36
libetonyek::IWORKStyleMap_t
boost::unordered_map< ID_t, IWORKStylePtr_t > IWORKStyleMap_t
Definition: IWORKStyle_fwd.h:24