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

Generated for libetonyek by doxygen 1.8.6