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
21namespace libetonyek
22{
23
25{
26public:
27 PAG1StyleContext(PAG1ParserState &state, IWORKStyleMap_t *styleMap, const char *defaultParent, bool nested = false);
28
29private:
30 void attribute(int name, const char *value) override;
31 IWORKXMLContextPtr_t element(int name) override;
32 void endOfElement() override;
33
34private:
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: */
Represents a (hierarchical) property map.
Definition IWORKPropertyMap.h:25
Definition IWORKStyleContext.h:25
Definition PAG1ParserState.h:24
Definition PAG1StyleContext.h:25
IWORKPropertyMap m_props
Definition PAG1StyleContext.h:35
boost::optional< std::string > m_ident
Definition PAG1StyleContext.h:37
boost::optional< std::string > m_parentIdent
Definition PAG1StyleContext.h:38
void attribute(int name, const char *value) override
Definition PAG1StyleContext.cpp:156
void endOfElement() override
Definition PAG1StyleContext.cpp:187
PAG1StyleContext(PAG1ParserState &state, IWORKStyleMap_t *styleMap, const char *defaultParent, bool nested=false)
Definition PAG1StyleContext.cpp:147
IWORKStyleContext m_base
Definition PAG1StyleContext.h:36
Definition PAG1XMLContextBase.h:23
@ value
Definition IWORKToken.h:631
@ element
Definition IWORKToken.h:192
@ name
Definition IWORKToken.h:585
Definition IWORKBezierElement.cpp:21
std::unordered_map< ID_t, IWORKStylePtr_t > IWORKStyleMap_t
Definition IWORKStyle_fwd.h:24
std::shared_ptr< IWORKXMLContext > IWORKXMLContextPtr_t
Definition IWORKXMLContext.h:20

Generated for libetonyek by doxygen 1.12.0