IWORKWrapElement.h Source File documentation

IWORKWrapElement.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 IWORKWRAPELEMENT_H_INCLUDED
11 #define IWORKWRAPELEMENT_H_INCLUDED
12
13 #include <boost/optional.hpp>
14
15 #include "IWORKTypes.h"
16 #include "IWORKXMLContextBase.h"
17
18 namespace libetonyek
19 {
20
21 class IWORKExternalTextWrapElement : public IWORKXMLElementContextBase
22 {
23 public:
24 IWORKExternalTextWrapElement(IWORKXMLParserState &state, boost::optional<IWORKExternalTextWrap> &wrap);
25
26 protected:
27 void attribute(int name, const char *value) override;
28 IWORKXMLContextPtr_t element(int name) override;
29 void endOfElement() override;
30
31 private:
32 IWORKExternalTextWrapElement(const IWORKExternalTextWrapElement &);
33 IWORKExternalTextWrapElement &operator=(const IWORKExternalTextWrapElement &);
34
35 boost::optional<IWORKExternalTextWrap> &m_wrap;
36 };
37
38 class IWORKWrapElement : public IWORKXMLElementContextBase
39 {
40 public:
41 IWORKWrapElement(IWORKXMLParserState &state, boost::optional<IWORKWrap> &wrap);
42
43 protected:
44 void attribute(int name, const char *value) override;
45 IWORKXMLContextPtr_t element(int name) override;
46
47 private:
48 IWORKWrapElement(const IWORKWrapElement &);
49 IWORKWrapElement &operator=(const IWORKWrapElement &);
50
51 boost::optional<IWORKWrap> &m_wrap;
52 };
53
54 }
55
56 #endif // IWORKWRAPELEMENT_H_INCLUDED
57
58 /* vim:set shiftwidth=2 softtabstop=2 expandtab: */
libetonyek::double_cast
double double_cast(const char *value)
Definition: libetonyek_xml.cpp:79
libetonyek::IWORKToken::wrap_style
@ wrap_style
Definition: IWORKToken.h:632
libetonyek::IWORKExternalTextWrapElement::m_wrap
boost::optional< IWORKExternalTextWrap > & m_wrap
Definition: IWORKWrapElement.h:35
libetonyek::IWORKToken::tight
@ tight
Definition: IWORKToken.h:674
libetonyek::IWORKXMLEmptyContextBase
IWORKXMLContextBase< IWORKXMLContextEmpty, IWORKXMLParserState > IWORKXMLEmptyContextBase
Definition: IWORKXMLContextBase.h:128
libetonyek::IWORK_WRAP_DIRECTION_RIGHT
@ IWORK_WRAP_DIRECTION_RIGHT
Definition: IWORKEnum.h:162
IWORKBezierElement.h
IWORKDictionary.h
IWORKGeometryElement.h
libetonyek
Definition: IWORKBezierElement.cpp:20
libetonyek::IWORKWrapElement::m_wrap
boost::optional< IWORKWrap > & m_wrap
Definition: IWORKWrapElement.h:51
libetonyek::IWORKExternalTextWrapElement
Definition: IWORKWrapElement.h:21
libetonyek::IWORKToken::attachment_wrap_type
@ attachment_wrap_type
Definition: IWORKToken.h:503
IWORKTokenizer.h
libetonyek::IWORK_WRAP_STYLE_REGULAR
@ IWORK_WRAP_STYLE_REGULAR
Definition: IWORKEnum.h:167
libetonyek::IWORKToken::bezier
@ bezier
Definition: IWORKToken.h:112
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
m_path
IWORKPathPtr_t & m_path
Definition: IWORKWrapElement.cpp:38
libetonyek::IWORKToken::floating_wrap_enabled
@ floating_wrap_enabled
Definition: IWORKToken.h:528
libetonyek::IWORKToken::margin
@ margin
Definition: IWORKToken.h:573
libetonyek::IWORKExternalTextWrap
Definition: IWORKTypes.h:172
ETONYEK_DEBUG_MSG
#define ETONYEK_DEBUG_MSG(M)
Definition: libetonyek_utils.h:54
libetonyek::IWORKExternalTextWrapElement::endOfElement
void endOfElement() override
Definition: IWORKWrapElement.cpp:200
libetonyek::IWORK_WRAP_TYPE_NEITHER
@ IWORK_WRAP_TYPE_NEITHER
Definition: IWORKEnum.h:175
libetonyek::IWORKWrapElement::operator=
IWORKWrapElement & operator=(const IWORKWrapElement &)
libetonyek::IWORKWrapElement::element
IWORKXMLContextPtr_t element(int name) override
Definition: IWORKWrapElement.cpp:218
libetonyek::IWORKToken::alpha_threshold
@ alpha_threshold
Definition: IWORKToken.h:649
libetonyek::IWORKToken::largest
@ largest
Definition: IWORKToken.h:659
libetonyek::IWORKExternalTextWrapElement::operator=
IWORKExternalTextWrapElement & operator=(const IWORKExternalTextWrapElement &)
libetonyek::IWORKToken::path
@ path
Definition: IWORKToken.h:358
libetonyek::IWORKExternalTextWrapElement::element
IWORKXMLContextPtr_t element(int name) override
Definition: IWORKWrapElement.cpp:190
libetonyek::IWORKXMLParserState
Definition: IWORKXMLParserState.h:31
libetonyek::IWORKToken::right
@ right
Definition: IWORKToken.h:597
libetonyek::IWORKWrapElement
Definition: IWORKWrapElement.h:38
libetonyek::IWORK_WRAP_DIRECTION_BOTH
@ IWORK_WRAP_DIRECTION_BOTH
Definition: IWORKEnum.h:160
libetonyek::bool_cast
bool bool_cast(const char *value)
Convert string value to bool.
Definition: libetonyek_xml.cpp:56
IWORKPath.h
libetonyek::IWORKToken::left
@ left
Definition: IWORKToken.h:568
libetonyek::IWORKToken::aligned
@ aligned
Definition: IWORKToken.h:648
libetonyek::IWORKPathPtr_t
std::shared_ptr< IWORKPath > IWORKPathPtr_t
Definition: IWORKPath_fwd.h:20
libetonyek::IWORKExternalTextWrapElement::IWORKExternalTextWrapElement
IWORKExternalTextWrapElement(IWORKXMLParserState &state, boost::optional< IWORKExternalTextWrap > &wrap)
Definition: IWORKWrapElement.cpp:87
libetonyek::IWORK_WRAP_STYLE_TIGHT
@ IWORK_WRAP_STYLE_TIGHT
Definition: IWORKEnum.h:168
libetonyek::IWORKToken::element
@ element
Definition: IWORKToken.h:188
m_geometry
const IWORKGeometryPtr_t m_geometry
Definition: IWORKRecorder.cpp:56
libetonyek::IWORKToken::version
@ version
Definition: IWORKToken.h:626
IWORKTypes.h
libetonyek::IWORKXMLContextBase
Definition: IWORKXMLContextBase.h:27
libetonyek::IWORKWrapElement::attribute
void attribute(int name, const char *value) override
Definition: IWORKWrapElement.cpp:213
IWORKXMLParserState.h
libetonyek::IWORKToken::both
@ both
Definition: IWORKToken.h:650
libetonyek::IWORK_WRAP_TYPE_DIRECTIONAL
@ IWORK_WRAP_TYPE_DIRECTIONAL
Definition: IWORKEnum.h:173
libetonyek::IWORKToken::floating_wrap_type
@ floating_wrap_type
Definition: IWORKToken.h:529
libetonyek::IWORKToken::unaligned
@ unaligned
Definition: IWORKToken.h:677
libetonyek::IWORKToken::wrap
@ wrap
Definition: IWORKToken.h:496
libetonyek::IWORKToken::NS_URI_SF
@ NS_URI_SF
Definition: IWORKToken.h:688
IWORKXMLContextBase.h
libetonyek::IWORKWrap
Definition: IWORKTypes.h:186
libetonyek::IWORKToken::inline_wrap_enabled
@ inline_wrap_enabled
Definition: IWORKToken.h:563
libetonyek::IWORKToken::neither
@ neither
Definition: IWORKToken.h:665
libetonyek::IWORKToken::direction
@ direction
Definition: IWORKToken.h:518
IWORKToken.h
libetonyek::IWORKWrapElement::IWORKWrapElement
IWORKWrapElement(IWORKXMLParserState &state, boost::optional< IWORKWrap > &wrap)
Definition: IWORKWrapElement.cpp:206
libetonyek::IWORKToken::regular
@ regular
Definition: IWORKToken.h:668
libetonyek::IWORK_WRAP_DIRECTION_LEFT
@ IWORK_WRAP_DIRECTION_LEFT
Definition: IWORKEnum.h:161
libetonyek::get
const ValueT & get(const detail::IWAFieldImpl< TagV, ValueT, Reader > &field)
Definition: IWAField.h:190
libetonyek::IWORKExternalTextWrapElement::attribute
void attribute(int name, const char *value) override
Definition: IWORKWrapElement.cpp:94
IWORKWrapElement.h
libetonyek::IWORK_WRAP_TYPE_LARGEST
@ IWORK_WRAP_TYPE_LARGEST
Definition: IWORKEnum.h:174
libetonyek::IWORKToken::geometry
@ geometry
Definition: IWORKToken.h:232
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::directional
@ directional
Definition: IWORKToken.h:654
libetonyek_xml.h
libetonyek::IWORKXMLContextBase::getState
State & getState()
Definition: IWORKXMLContextBase.h:43