IWORKListLabelTypeinfoElement.h Source File documentation

- Main Page
- Related Pages
- Namespaces
- Classes
- Files

- File List
- File Members

IWORKListLabelTypeinfoElement.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 IWORKLISTLABELTYPEINFOELEMENT_H_INCLUDED
11 #define IWORKLISTLABELTYPEINFOELEMENT_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 IWORKListLabelTypeinfoElement : public IWORKXMLElementContextBase
22 {
23 public:
24 IWORKListLabelTypeinfoElement(IWORKXMLParserState &state, boost::optional<IWORKListLabelTypeInfo_t> &value);
25
26 private:
27 virtual void attribute(int name, const char *value);
28 virtual IWORKXMLContextPtr_t element(int name);
29 virtual void endOfElement();
30
31 private:
32 boost::optional<IWORKListLabelTypeInfo_t> &m_value;
33 boost::optional<IWORKListLabelTypeInfo_t> m_text;
34 boost::optional<ID_t> m_textRef;
35 IWORKMediaContentPtr_t m_image;
36 boost::optional<ID_t> m_imageRef;
37 bool m_isText;
38 bool m_isImage;
39 };
40
41 }
42
43 #endif // IWORKLISTLABELTYPEINFOELEMENT_H_INCLUDED
44
45 /* vim:set shiftwidth=2 softtabstop=2 expandtab: */
libetonyek
Definition: IWORKBezierElement.cpp:18
IWORKXMLContextBase.h
libetonyek::IWORKMediaContentPtr_t
boost::shared_ptr< IWORKMediaContent > IWORKMediaContentPtr_t
Definition: IWORKTypes_fwd.h:53
libetonyek::IWORKListLabelTypeinfoElement::attribute
virtual void attribute(int name, const char *value)
Definition: IWORKListLabelTypeinfoElement.cpp:38
libetonyek::IWORKListLabelTypeinfoElement::endOfElement
virtual void endOfElement()
Definition: IWORKListLabelTypeinfoElement.cpp:77
libetonyek::IWORKListLabelTypeinfoElement::m_isText
bool m_isText
Definition: IWORKListLabelTypeinfoElement.h:37
libetonyek::IWORKXMLContextPtr_t
boost::shared_ptr< IWORKXMLContext > IWORKXMLContextPtr_t
Definition: IWORKXMLContext.h:18
libetonyek::IWORKListLabelTypeinfoElement::m_isImage
bool m_isImage
Definition: IWORKListLabelTypeinfoElement.h:38
libetonyek::IWORKListLabelTypeinfoElement::m_image
IWORKMediaContentPtr_t m_image
Definition: IWORKListLabelTypeinfoElement.h:35
libetonyek::IWORKListLabelTypeinfoElement::m_value
boost::optional< IWORKListLabelTypeInfo_t > & m_value
Definition: IWORKListLabelTypeinfoElement.h:32
libetonyek::IWORKListLabelTypeinfoElement::m_text
boost::optional< IWORKListLabelTypeInfo_t > m_text
Definition: IWORKListLabelTypeinfoElement.h:33
name
const char * name
Definition: IWORKToken.cpp:43
libetonyek::IWORKListLabelTypeinfoElement
Definition: IWORKListLabelTypeinfoElement.h:21
libetonyek::IWORKListLabelTypeinfoElement::m_imageRef
boost::optional< ID_t > m_imageRef
Definition: IWORKListLabelTypeinfoElement.h:36
libetonyek::IWORKXMLContextBase
Definition: IWORKXMLContextBase.h:27
libetonyek::IWORKXMLParserState
Definition: IWORKXMLParserState.h:30
IWORKTypes.h
libetonyek::IWORKListLabelTypeinfoElement::IWORKListLabelTypeinfoElement
IWORKListLabelTypeinfoElement(IWORKXMLParserState &state, boost::optional< IWORKListLabelTypeInfo_t > &value)
Definition: IWORKListLabelTypeinfoElement.cpp:26
libetonyek::IWORKListLabelTypeinfoElement::element
virtual IWORKXMLContextPtr_t element(int name)
Definition: IWORKListLabelTypeinfoElement.cpp:61
libetonyek::IWORKListLabelTypeinfoElement::m_textRef
boost::optional< ID_t > m_textRef
Definition: IWORKListLabelTypeinfoElement.h:34