KEY1StylesContext.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 KEY1STYLESCONTEXT_H_INCLUDED
11#define KEY1STYLESCONTEXT_H_INCLUDED
12
13#include <boost/optional.hpp>
14
15#include "KEY1XMLContextBase.h"
16
17#include "IWORKPropertyMap.h"
18#include "IWORKStyle_fwd.h"
19#include "IWORKTypes.h"
20
21namespace libetonyek
22{
23
25{
26public:
28
29private:
30 IWORKXMLContextPtr_t element(int name) override;
31 void endOfElement() override;
32
33private:
37
38 boost::optional<IWORKFill> m_fill;
39 boost::optional<IWORKMarker> m_lineHead;
40 boost::optional<IWORKMarker> m_lineTail;
41 boost::optional<IWORKPattern> m_pattern;
42 boost::optional<IWORKShadow> m_shadow;
43};
44}
45
46#endif // KEY1STYLESCONTEXT_H_INCLUDED
47
48/* vim:set shiftwidth=2 softtabstop=2 expandtab: */
Represents a (hierarchical) property map.
Definition IWORKPropertyMap.h:25
Definition KEY1ParserState.h:45
Definition KEY1StylesContext.h:25
boost::optional< IWORKPattern > m_pattern
Definition KEY1StylesContext.h:41
boost::optional< IWORKMarker > m_lineTail
Definition KEY1StylesContext.h:40
boost::optional< IWORKFill > m_fill
Definition KEY1StylesContext.h:38
IWORKPropertyMap m_propMap
Definition KEY1StylesContext.h:35
boost::optional< IWORKShadow > m_shadow
Definition KEY1StylesContext.h:42
IWORKStylePtr_t & m_style
Definition KEY1StylesContext.h:34
IWORKStylePtr_t m_parentStyle
Definition KEY1StylesContext.h:36
boost::optional< IWORKMarker > m_lineHead
Definition KEY1StylesContext.h:39
void endOfElement() override
Definition KEY1StylesContext.cpp:266
KEY1StylesContext(KEY1ParserState &state, IWORKStylePtr_t &style, IWORKStylePtr_t parentStyle)
Definition KEY1StylesContext.cpp:232
Definition KEY1XMLContextBase.h:23
@ element
Definition IWORKToken.h:192
@ style
Definition IWORKToken.h:421
@ name
Definition IWORKToken.h:585
Definition IWORKBezierElement.cpp:21
std::shared_ptr< IWORKXMLContext > IWORKXMLContextPtr_t
Definition IWORKXMLContext.h:20
std::shared_ptr< IWORKStyle > IWORKStylePtr_t
Definition IWORKStyle_fwd.h:23

Generated for libetonyek by doxygen 1.12.0