IWORKLineElement.h Source File documentation

IWORKLineElement.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 IWORKLINEELEMENT_H_INCLUDED
11 #define IWORKLINEELEMENT_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 IWORKLineElement : public IWORKXMLElementContextBase
23 {
24 public:
25 explicit IWORKLineElement(IWORKXMLParserState &state);
26
27 private:
28 void startOfElement() override;
29 IWORKXMLContextPtr_t element(int name) override;
30 void endOfElement() override;
31
32 private:
33 boost::optional<IWORKPosition> m_head;
34 boost::optional<IWORKPosition> m_tail;
35 IWORKStylePtr_t m_style;
36 };
37
38 }
39
40 #endif // IWORKLINEELEMENT_H_INCLUDED
41
42 /* vim:set shiftwidth=2 softtabstop=2 expandtab: */
m_tail
boost::optional< IWORKPosition > m_tail
Definition: KEY1Parser.cpp:650
IWORKDictionary.h
IWORKGeometryElement.h
m_style
IWORKStylePtr_t m_style
Definition: IWORKPropertyMapElement.cpp:172
libetonyek
Definition: IWORKBezierElement.cpp:20
libetonyek::IWORKToken::head
@ head
Definition: IWORKToken.h:251
libetonyek::IWORKLineElement::startOfElement
void startOfElement() override
Definition: IWORKLineElement.cpp:36
libetonyek::IWORKXMLContextPtr_t
std::shared_ptr< IWORKXMLContext > IWORKXMLContextPtr_t
Definition: IWORKXMLContext.h:18
libetonyek::IWORKLineElement::element
IWORKXMLContextPtr_t element(int name) override
Definition: IWORKLineElement.cpp:42
IWORKPositionElement.h
ETONYEK_DEBUG_MSG
#define ETONYEK_DEBUG_MSG(M)
Definition: libetonyek_utils.h:54
IWORKStyleContainer.h
IWORKLineElement.h
libetonyek::IWORKLineElement::m_style
IWORKStylePtr_t m_style
Definition: IWORKLineElement.h:35
libetonyek::IWORKXMLContextBase::isCollector
bool isCollector() const
Definition: IWORKXMLContextBase.h:59
libetonyek::IWORKXMLParserState
Definition: IWORKXMLParserState.h:31
libetonyek::IWORKToken::line
@ line
Definition: IWORKToken.h:298
libetonyek::IWORKXMLContextBase::getCollector
Collector & getCollector() const
Definition: IWORKXMLContextBase.h:49
libetonyek::IWORKLinePtr_t
std::shared_ptr< IWORKLine > IWORKLinePtr_t
Definition: IWORKTypes_fwd.h:45
libetonyek::IWORKToken::style
@ style
Definition: IWORKToken.h:414
libetonyek::IWORKToken::tail
@ tail
Definition: IWORKToken.h:463
IWORKTypes.h
libetonyek::IWORKXMLContextBase
Definition: IWORKXMLContextBase.h:27
libetonyek::IWORKLineElement::m_tail
boost::optional< IWORKPosition > m_tail
Definition: IWORKLineElement.h:34
IWORKXMLParserState.h
IWORKCollector.h
libetonyek::IWORKLineElement::IWORKLineElement
IWORKLineElement(IWORKXMLParserState &state)
Definition: IWORKLineElement.cpp:28
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
libetonyek::IWORKLineElement::endOfElement
void endOfElement() override
Definition: IWORKLineElement.cpp:61
IWORKToken.h
libetonyek::get
const ValueT & get(const detail::IWAFieldImpl< TagV, ValueT, Reader > &field)
Definition: IWAField.h:190
IWORKRefContext.h
libetonyek::IWORKLine
Definition: IWORKTypes.h:126
libetonyek::IWORKLineElement
Definition: IWORKLineElement.h:22
IWORKStyle_fwd.h
libetonyek::IWORKToken::geometry
@ geometry
Definition: IWORKToken.h:232
libetonyek::IWORKToken::name
@ name
Definition: IWORKToken.h:578
libetonyek::IWORKLineElement::m_head
boost::optional< IWORKPosition > m_head
Definition: IWORKLineElement.h:33
m_head
boost::optional< IWORKPosition > m_head
Definition: KEY1Parser.cpp:649
libetonyek::IWORKXMLContextBase::getState
State & getState()
Definition: IWORKXMLContextBase.h:43