IWORKListLabelTypeinfoElement.h Source File documentation

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
18namespace libetonyek
19{
20
21 class IWORKListLabelTypeinfoElement : public IWORKXMLElementContextBase
22{
23public:
24 IWORKListLabelTypeinfoElement(IWORKXMLParserState &state, boost::optional<IWORKListLabelTypeInfo_t> &value);
25
26private:
27 void attribute(int name, const char *value) override;
28 IWORKXMLContextPtr_t element(int name) override;
29 void endOfElement() override;
30
31private:
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: */
IWORKTypes.h
IWORKXMLContextBase.h
libetonyek::IWORKListLabelTypeinfoElement
Definition IWORKListLabelTypeinfoElement.h:22
libetonyek::IWORKListLabelTypeinfoElement::m_isImage
bool m_isImage
Definition IWORKListLabelTypeinfoElement.h:38
libetonyek::IWORKListLabelTypeinfoElement::endOfElement
void endOfElement() override
Definition IWORKListLabelTypeinfoElement.cpp:80
libetonyek::IWORKListLabelTypeinfoElement::attribute
void attribute(int name, const char *value) override
Definition IWORKListLabelTypeinfoElement.cpp:38
libetonyek::IWORKListLabelTypeinfoElement::element
IWORKXMLContextPtr_t element(int name) override
Definition IWORKListLabelTypeinfoElement.cpp:61
libetonyek::IWORKListLabelTypeinfoElement::IWORKListLabelTypeinfoElement
IWORKListLabelTypeinfoElement(IWORKXMLParserState &state, boost::optional< IWORKListLabelTypeInfo_t > &value)
Definition IWORKListLabelTypeinfoElement.cpp:26
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
libetonyek::IWORKListLabelTypeinfoElement::m_textRef
boost::optional< ID_t > m_textRef
Definition IWORKListLabelTypeinfoElement.h:34
libetonyek::IWORKListLabelTypeinfoElement::m_imageRef
boost::optional< ID_t > m_imageRef
Definition IWORKListLabelTypeinfoElement.h:36
libetonyek::IWORKListLabelTypeinfoElement::m_isText
bool m_isText
Definition IWORKListLabelTypeinfoElement.h:37
libetonyek::IWORKListLabelTypeinfoElement::m_image
IWORKMediaContentPtr_t m_image
Definition IWORKListLabelTypeinfoElement.h:35
libetonyek::IWORKXMLContextBase
Definition IWORKXMLContextBase.h:28
libetonyek::IWORKXMLParserState
Definition IWORKXMLParserState.h:32
libetonyek
Definition IWORKBezierElement.cpp:21
libetonyek::IWORKMediaContentPtr_t
std::shared_ptr< IWORKMediaContent > IWORKMediaContentPtr_t
Definition IWORKTypes_fwd.h:56
libetonyek::IWORKXMLContextPtr_t
std::shared_ptr< IWORKXMLContext > IWORKXMLContextPtr_t
Definition IWORKXMLContext.h:20