IWORKStrokeContext.h Source File documentation

IWORKStrokeContext.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 IWORKSTROKECONTEXT_H_INCLUDED
11 #define IWORKSTROKECONTEXT_H_INCLUDED
12
13 #include <deque>
14 #include <boost/optional.hpp>
15
16 #include "IWORKXMLContextBase.h"
17
18 #include "IWORKTypes.h"
19
20 namespace libetonyek
21 {
22 class IWORKStrokeContext : public IWORKXMLElementContextBase
23 {
24 public:
25 IWORKStrokeContext(IWORKXMLParserState &state, boost::optional<IWORKStroke> &value);
26 IWORKXMLContextPtr_t element(int name) override;
27 void endOfElement() override;
28
29 private:
30 boost::optional<IWORKStroke> &m_value;
31 boost::optional<ID_t> m_ref;
32 };
33
34 }
35
36 #endif // IWORKSTROKECONTEXT_H_INCLUDED
37
38 /* vim:set shiftwidth=2 softtabstop=2 expandtab: */
libetonyek::double_cast
double double_cast(const char *value)
Definition: libetonyek_xml.cpp:79
libetonyek::IWORKStrokeContext::endOfElement
void endOfElement() override
Definition: IWORKStrokeContext.cpp:366
libetonyek::IWORKXMLEmptyContextBase
IWORKXMLContextBase< IWORKXMLContextEmpty, IWORKXMLParserState > IWORKXMLEmptyContextBase
Definition: IWORKXMLContextBase.h:128
IWORKDictionary.h
libetonyek::IWORKStrokeContext::IWORKStrokeContext
IWORKStrokeContext(IWORKXMLParserState &state, boost::optional< IWORKStroke > &value)
Definition: IWORKStrokeContext.cpp:337
libetonyek
Definition: IWORKBezierElement.cpp:20
libetonyek::IWORKToken::null
@ null
Definition: IWORKToken.h:330
libetonyek::IWORKToken::manipulated_stroke
@ manipulated_stroke
Definition: IWORKToken.h:319
libetonyek::IWORK_LINE_CAP_ROUND
@ IWORK_LINE_CAP_ROUND
Definition: IWORKEnum.h:69
libetonyek::IWORKStrokeContext::element
IWORKXMLContextPtr_t element(int name) override
Definition: IWORKStrokeContext.cpp:344
IWORKTokenizer.h
libetonyek::IWORKToken::pattern_ref
@ pattern_ref
Definition: IWORKToken.h:360
m_color
boost::optional< IWORKColor > m_color
Definition: IWORKStrokeContext.cpp:230
libetonyek::IWORKToken::ID
@ ID
Definition: IWORKToken.h:499
m_ref
boost::optional< ID_t > m_ref
Definition: IWORKStrokeContext.cpp:116
libetonyek::IWORKStrokeContext::m_value
boost::optional< IWORKStroke > & m_value
Definition: IWORKStrokeContext.h:30
libetonyek::IWORKToken::type
@ type
Definition: IWORKToken.h:486
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
libetonyek::IWORKToken::empty
@ empty
Definition: IWORKToken.h:656
ETONYEK_DEBUG_MSG
#define ETONYEK_DEBUG_MSG(M)
Definition: libetonyek_utils.h:54
IWORKColorElement.h
libetonyek::IWORK_STROKE_TYPE_SOLID
@ IWORK_STROKE_TYPE_SOLID
Definition: IWORKEnum.h:121
libetonyek::IWORKToken::butt
@ butt
Definition: IWORKToken.h:652
libetonyek::IWORKStrokeContext
Definition: IWORKStrokeContext.h:22
libetonyek::IWORKToken::stroke_ref
@ stroke_ref
Definition: IWORKToken.h:413
m_element
boost::optional< double > m_element
Definition: IWORKStrokeContext.cpp:69
libetonyek::IWORK_STROKE_TYPE_NONE
@ IWORK_STROKE_TYPE_NONE
Definition: IWORKEnum.h:120
libetonyek::IWORKStrokeContext::m_ref
boost::optional< ID_t > m_ref
Definition: IWORKStrokeContext.h:31
libetonyek::IWORKXMLParserState
Definition: IWORKXMLParserState.h:31
m_patternRef
boost::optional< ID_t > m_patternRef
Definition: IWORKStrokeContext.cpp:234
libetonyek::IWORKToken::pattern
@ pattern
Definition: IWORKToken.h:359
libetonyek::IWORKToken::phase
@ phase
Definition: IWORKToken.h:591
m_cap
boost::optional< IWORKLineCap > m_cap
Definition: IWORKStrokeContext.cpp:231
libetonyek::IWORKToken::val
@ val
Definition: IWORKToken.h:623
m_pattern
boost::optional< IWORKPattern > & m_pattern
Definition: IWORKStrokeContext.cpp:115
libetonyek::IWORKToken::element
@ element
Definition: IWORKToken.h:188
libetonyek::IWORKToken::color
@ color
Definition: IWORKToken.h:151
m_value
boost::optional< double > & m_value
Definition: IWORKStrokeContext.cpp:38
libetonyek::IWORK_LINE_JOIN_MITER
@ IWORK_LINE_JOIN_MITER
Definition: IWORKEnum.h:75
libetonyek::IWORK_STROKE_TYPE_DASHED
@ IWORK_STROKE_TYPE_DASHED
Definition: IWORKEnum.h:122
m_join
boost::optional< IWORKLineJoin > m_join
Definition: IWORKStrokeContext.cpp:232
libetonyek_utils.h
libetonyek::IWORKToken::round
@ round
Definition: IWORKToken.h:670
m_width
boost::optional< double > m_width
Definition: IWORKStrokeContext.cpp:229
IWORKTypes.h
libetonyek::IWORKXMLContextBase
Definition: IWORKXMLContextBase.h:27
IWORKXMLParserState.h
libetonyek::IWORKXMLElementContextBase
IWORKXMLContextBase< IWORKXMLContextElement, IWORKXMLParserState > IWORKXMLElementContextBase
Definition: IWORKXMLContextBase.h:125
libetonyek::IWORKToken::miter
@ miter
Definition: IWORKToken.h:663
libetonyek::IWORKToken::cap
@ cap
Definition: IWORKToken.h:510
libetonyek::IWORKToken::stroke
@ stroke
Definition: IWORKToken.h:412
libetonyek::IWORKToken::NS_URI_SF
@ NS_URI_SF
Definition: IWORKToken.h:688
IWORKXMLContextBase.h
libetonyek::IWORKToken::solid
@ solid
Definition: IWORKToken.h:671
libetonyek::IWORKToken::calligraphy_stroke
@ calligraphy_stroke
Definition: IWORKToken.h:123
IWORKToken.h
libetonyek::IWORKToken::join
@ join
Definition: IWORKToken.h:565
libetonyek::IWORK_LINE_JOIN_ROUND
@ IWORK_LINE_JOIN_ROUND
Definition: IWORKEnum.h:76
libetonyek::get
const ValueT & get(const detail::IWAFieldImpl< TagV, ValueT, Reader > &field)
Definition: IWAField.h:190
IWORKRefContext.h
libetonyek::IWORK_LINE_CAP_BUTT
@ IWORK_LINE_CAP_BUTT
Definition: IWORKEnum.h:68
IWORKStrokeContext.h
libetonyek::IWORKToken::width
@ width
Definition: IWORKToken.h:631
libetonyek::IWORKToken::frame
@ frame
Definition: IWORKToken.h:229
libetonyek::IWORKToken::getTokenizer
const IWORKTokenizer & getTokenizer()
Definition: IWORKToken.cpp:57
libetonyek::IWORKToken::name
@ name
Definition: IWORKToken.h:578
libetonyek::IWORKToken::value
@ value
Definition: IWORKToken.h:624
libetonyek::IWORKToken::parameters
@ parameters
Definition: IWORKToken.h:356
libetonyek_xml.h
libetonyek::IWORKXMLContextBase::getState
State & getState()
Definition: IWORKXMLContextBase.h:43