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
Definition: IWORKBezierElement.cpp:20
libetonyek::IWORKXMLContextPtr_t
std::shared_ptr< IWORKXMLContext > IWORKXMLContextPtr_t
Definition: IWORKXMLContext.h:18
IWORKXMLContextBase.h
libetonyek::IWORKWrapElement
Definition: IWORKWrapElement.h:38
libetonyek::IWORKWrapElement::m_wrap
boost::optional< IWORKWrap > & m_wrap
Definition: IWORKWrapElement.h:51
libetonyek::IWORKToken::value
Definition: IWORKToken.h:624
libetonyek::IWORKWrapElement::IWORKWrapElement
IWORKWrapElement(IWORKXMLParserState &state, boost::optional< IWORKWrap > &wrap)
Definition: IWORKWrapElement.cpp:206
libetonyek::IWORKExternalTextWrapElement::endOfElement
void endOfElement() override
Definition: IWORKWrapElement.cpp:200
libetonyek::IWORKExternalTextWrapElement::operator=
IWORKExternalTextWrapElement & operator=(const IWORKExternalTextWrapElement &)
libetonyek::IWORKExternalTextWrapElement
Definition: IWORKWrapElement.h:21
name
const char * name
Definition: IWORKToken.cpp:43
libetonyek::IWORKExternalTextWrapElement::m_wrap
boost::optional< IWORKExternalTextWrap > & m_wrap
Definition: IWORKWrapElement.h:35
libetonyek::IWORKWrapElement::attribute
void attribute(int name, const char *value) override
Definition: IWORKWrapElement.cpp:213
libetonyek::IWORKXMLContextBase
Definition: IWORKXMLContextBase.h:27
libetonyek::IWORKXMLParserState
Definition: IWORKXMLParserState.h:31
libetonyek::IWORKExternalTextWrapElement::IWORKExternalTextWrapElement
IWORKExternalTextWrapElement(IWORKXMLParserState &state, boost::optional< IWORKExternalTextWrap > &wrap)
Definition: IWORKWrapElement.cpp:87
libetonyek::IWORKWrapElement::operator=
IWORKWrapElement & operator=(const IWORKWrapElement &)
IWORKTypes.h
libetonyek::IWORKExternalTextWrapElement::attribute
void attribute(int name, const char *value) override
Definition: IWORKWrapElement.cpp:94
libetonyek::IWORKWrapElement::element
IWORKXMLContextPtr_t element(int name) override
Definition: IWORKWrapElement.cpp:218
libetonyek::IWORKToken::wrap
Definition: IWORKToken.h:496
libetonyek::IWORKExternalTextWrapElement::element
IWORKXMLContextPtr_t element(int name) override
Definition: IWORKWrapElement.cpp:190