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: */
IWORKTypes.h
IWORKXMLContextBase.h
libetonyek::IWORKExternalTextWrapElement
Definition: IWORKWrapElement.h:22
libetonyek::IWORKExternalTextWrapElement::element
IWORKXMLContextPtr_t element(int name) override
Definition: IWORKWrapElement.cpp:190
libetonyek::IWORKExternalTextWrapElement::attribute
void attribute(int name, const char *value) override
Definition: IWORKWrapElement.cpp:94
libetonyek::IWORKExternalTextWrapElement::IWORKExternalTextWrapElement
IWORKExternalTextWrapElement(const IWORKExternalTextWrapElement &)
libetonyek::IWORKExternalTextWrapElement::m_wrap
boost::optional< IWORKExternalTextWrap > & m_wrap
Definition: IWORKWrapElement.h:35
libetonyek::IWORKExternalTextWrapElement::endOfElement
void endOfElement() override
Definition: IWORKWrapElement.cpp:200
libetonyek::IWORKExternalTextWrapElement::IWORKExternalTextWrapElement
IWORKExternalTextWrapElement(IWORKXMLParserState &state, boost::optional< IWORKExternalTextWrap > &wrap)
Definition: IWORKWrapElement.cpp:87
libetonyek::IWORKExternalTextWrapElement::operator=
IWORKExternalTextWrapElement & operator=(const IWORKExternalTextWrapElement &)
libetonyek::IWORKWrapElement
Definition: IWORKWrapElement.h:39
libetonyek::IWORKWrapElement::m_wrap
boost::optional< IWORKWrap > & m_wrap
Definition: IWORKWrapElement.h:51
libetonyek::IWORKWrapElement::operator=
IWORKWrapElement & operator=(const IWORKWrapElement &)
libetonyek::IWORKWrapElement::IWORKWrapElement
IWORKWrapElement(IWORKXMLParserState &state, boost::optional< IWORKWrap > &wrap)
Definition: IWORKWrapElement.cpp:206
libetonyek::IWORKWrapElement::IWORKWrapElement
IWORKWrapElement(const IWORKWrapElement &)
libetonyek::IWORKWrapElement::element
IWORKXMLContextPtr_t element(int name) override
Definition: IWORKWrapElement.cpp:218
libetonyek::IWORKWrapElement::attribute
void attribute(int name, const char *value) override
Definition: IWORKWrapElement.cpp:213
libetonyek::IWORKXMLContextBase
Definition: IWORKXMLContextBase.h:28
libetonyek::IWORKXMLParserState
Definition: IWORKXMLParserState.h:32
libetonyek::IWORKToken::value
@ value
Definition: IWORKToken.h:631
libetonyek::IWORKToken::wrap
@ wrap
Definition: IWORKToken.h:503
libetonyek::IWORKToken::name
@ name
Definition: IWORKToken.h:585
libetonyek
Definition: IWORKBezierElement.cpp:21
libetonyek::IWORKXMLContextPtr_t
std::shared_ptr< IWORKXMLContext > IWORKXMLContextPtr_t
Definition: IWORKXMLContext.h:18