IWORKShapeContext.h Source File documentation

IWORKShapeContext.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 IWORKSHAPECONTEXT_H_INCLUDED
11 #define IWORKSHAPECONTEXT_H_INCLUDED
12
13 #include <boost/optional.hpp>
14
15 #include "IWORKStyle_fwd.h"
16 #include "IWORKTypes.h"
17 #include "IWORKXMLContextBase.h"
18
19 namespace libetonyek
20 {
21
22 class IWORKShapeContext : public IWORKXMLElementContextBase
23 {
24 public:
25 explicit IWORKShapeContext(IWORKXMLParserState &state);
26
27 protected:
28 void startOfElement() override;
29 void attribute(int name, const char *value) override;
30 IWORKXMLContextPtr_t element(int name) override;
31 void endOfElement() override;
32
33 protected:
34 IWORKStylePtr_t m_style;
35 boost::optional<IWORKWrap> m_wrap;
36 boost::optional<int> m_order;
37 bool m_locked;
38 };
39
40 }
41
42 #endif // IWORKSHAPECONTEXT_H_INCLUDED
43
44 /* vim:set shiftwidth=2 softtabstop=2 expandtab: */
libetonyek::IWORKShapeContext::IWORKShapeContext
IWORKShapeContext(IWORKXMLParserState &state)
Definition: IWORKShapeContext.cpp:36
libetonyek::IWORKShapeContext::startOfElement
void startOfElement() override
Definition: IWORKShapeContext.cpp:71
IWORKDictionary.h
IWORKGeometryElement.h
m_style
IWORKStylePtr_t m_style
Definition: IWORKPropertyMapElement.cpp:172
libetonyek
Definition: IWORKBezierElement.cpp:20
libetonyek::IWORKShapeContext::element
IWORKXMLContextPtr_t element(int name) override
Definition: IWORKShapeContext.cpp:81
libetonyek::IWORKToken::ID
@ ID
Definition: IWORKToken.h:499
libetonyek::IWORKXMLContextPtr_t
std::shared_ptr< IWORKXMLContext > IWORKXMLContextPtr_t
Definition: IWORKXMLContext.h:18
libetonyek::IWORKToken::NS_URI_SFA
@ NS_URI_SFA
Definition: IWORKToken.h:689
IWORKPathElement.h
libetonyek::IWORKShapeContext::attribute
void attribute(int name, const char *value) override
Definition: IWORKShapeContext.cpp:45
m_order
const boost::optional< int > m_order
Definition: IWORKRecorder.cpp:81
ETONYEK_DEBUG_MSG
#define ETONYEK_DEBUG_MSG(M)
Definition: libetonyek_utils.h:54
libetonyek::IWORKShapeContext::endOfElement
void endOfElement() override
Definition: IWORKShapeContext.cpp:103
IWORKStyleContainer.h
libetonyek::IWORKToken::locked
@ locked
Definition: IWORKToken.h:570
libetonyek::IWORKToken::path
@ path
Definition: IWORKToken.h:358
libetonyek::IWORKXMLContextBase::isCollector
bool isCollector() const
Definition: IWORKXMLContextBase.h:59
libetonyek::IWORKXMLParserState
Definition: IWORKXMLParserState.h:31
IWORKShapeContext.h
libetonyek::IWORKShapeContext::m_order
boost::optional< int > m_order
Definition: IWORKShapeContext.h:36
libetonyek::IWORKShapeContext
Definition: IWORKShapeContext.h:22
libetonyek::IWORKToken::sfclass
@ sfclass
Definition: IWORKToken.h:603
libetonyek::IWORKXMLContextBase::getCollector
Collector & getCollector() const
Definition: IWORKXMLContextBase.h:49
libetonyek::bool_cast
bool bool_cast(const char *value)
Convert string value to bool.
Definition: libetonyek_xml.cpp:56
m_locked
const bool m_locked
Definition: IWORKRecorder.cpp:82
libetonyek::IWORKToken::style
@ style
Definition: IWORKToken.h:414
IWORKTypes.h
libetonyek::IWORKXMLContextBase
Definition: IWORKXMLContextBase.h:27
IWORKTextElement.h
IWORKXMLParserState.h
IWORKCollector.h
libetonyek::IWORKToken::wrap
@ wrap
Definition: IWORKToken.h:496
libetonyek::IWORKToken::first
@ first
Definition: IWORKToken.h:524
libetonyek::IWORKToken::NS_URI_SF
@ NS_URI_SF
Definition: IWORKToken.h:688
libetonyek::IWORKStylePtr_t
std::shared_ptr< IWORKStyle > IWORKStylePtr_t
Definition: IWORKStyle_fwd.h:21
IWORKXMLContextBase.h
IWORKToken.h
libetonyek::IWORKShapeContext::m_style
IWORKStylePtr_t m_style
Definition: IWORKShapeContext.h:34
IWORKRefContext.h
IWORKWrapElement.h
IWORKStyle_fwd.h
libetonyek::IWORKToken::geometry
@ geometry
Definition: IWORKToken.h:232
libetonyek::IWORKToken::name
@ name
Definition: IWORKToken.h:578
libetonyek::IWORKShapeContext::m_locked
bool m_locked
Definition: IWORKShapeContext.h:37
libetonyek::IWORKToken::value
@ value
Definition: IWORKToken.h:624
libetonyek::IWORKShapeContext::m_wrap
boost::optional< IWORKWrap > m_wrap
Definition: IWORKShapeContext.h:35
libetonyek_xml.h
libetonyek::IWORKToken::text
@ text
Definition: IWORKToken.h:465
libetonyek::IWORKXMLContextBase::getState
State & getState()
Definition: IWORKXMLContextBase.h:43