KEY1StylesContext.h Source File documentation

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
24 class KEY1StylesContext : public KEY1XMLElementContextBase
25{
26public:
27 KEY1StylesContext(KEY1ParserState &state, IWORKStylePtr_t &style, IWORKStylePtr_t parentStyle);
28
29private:
30 IWORKXMLContextPtr_t element(int name) override;
31 void endOfElement() override;
32
33private:
34 IWORKStylePtr_t &m_style;
35 IWORKPropertyMap m_propMap;
36 IWORKStylePtr_t m_parentStyle;
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: */
IWORKPropertyMap.h
IWORKStyle_fwd.h
IWORKTypes.h
KEY1XMLContextBase.h
libetonyek::IWORKPropertyMap
Represents a (hierarchical) property map.
Definition: IWORKPropertyMap.h:25
libetonyek::KEY1ParserState
Definition: KEY1ParserState.h:45
libetonyek::KEY1StylesContext
Definition: KEY1StylesContext.h:25
libetonyek::KEY1StylesContext::m_pattern
boost::optional< IWORKPattern > m_pattern
Definition: KEY1StylesContext.h:41
libetonyek::KEY1StylesContext::m_lineTail
boost::optional< IWORKMarker > m_lineTail
Definition: KEY1StylesContext.h:40
libetonyek::KEY1StylesContext::m_fill
boost::optional< IWORKFill > m_fill
Definition: KEY1StylesContext.h:38
libetonyek::KEY1StylesContext::element
IWORKXMLContextPtr_t element(int name) override
Definition: KEY1StylesContext.cpp:245
libetonyek::KEY1StylesContext::m_propMap
IWORKPropertyMap m_propMap
Definition: KEY1StylesContext.h:35
libetonyek::KEY1StylesContext::m_shadow
boost::optional< IWORKShadow > m_shadow
Definition: KEY1StylesContext.h:42
libetonyek::KEY1StylesContext::m_style
IWORKStylePtr_t & m_style
Definition: KEY1StylesContext.h:34
libetonyek::KEY1StylesContext::m_parentStyle
IWORKStylePtr_t m_parentStyle
Definition: KEY1StylesContext.h:36
libetonyek::KEY1StylesContext::m_lineHead
boost::optional< IWORKMarker > m_lineHead
Definition: KEY1StylesContext.h:39
libetonyek::KEY1StylesContext::endOfElement
void endOfElement() override
Definition: KEY1StylesContext.cpp:266
libetonyek::KEY1StylesContext::KEY1StylesContext
KEY1StylesContext(KEY1ParserState &state, IWORKStylePtr_t &style, IWORKStylePtr_t parentStyle)
Definition: KEY1StylesContext.cpp:232
libetonyek::KEY1XMLContextBase
Definition: KEY1XMLContextBase.h:23
libetonyek::IWORKToken::style
@ style
Definition: IWORKToken.h:421
libetonyek::IWORKToken::name
@ name
Definition: IWORKToken.h:585
libetonyek
Definition: IWORKBezierElement.cpp:21
libetonyek::IWORKXMLContextPtr_t
std::shared_ptr< IWORKXMLContext > IWORKXMLContextPtr_t
Definition: IWORKXMLContext.h:18
libetonyek::IWORKStylePtr_t
std::shared_ptr< IWORKStyle > IWORKStylePtr_t
Definition: IWORKStyle_fwd.h:21