IWORKDataElement.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 IWORKDATAELEMENT_H_INCLUDED
11#define IWORKDATAELEMENT_H_INCLUDED
12
13#include <string>
14
15#include <boost/optional.hpp>
16
17#include "libetonyek_utils.h"
18#include "IWORKTypes_fwd.h"
19#include "IWORKXMLContextBase.h"
20
21namespace libetonyek
22{
23
25{
26public:
27 IWORKDataElement(IWORKXMLParserState &state, IWORKDataPtr_t &data, boost::optional<IWORKColor> &fillColor);
28
29private:
30 void attribute(int name, const char *value) override;
31 void endOfElement() override;
32
33private:
35 boost::optional<IWORKColor> &m_fillColor;
36 boost::optional<std::string> m_displayName;
38 boost::optional<std::string> m_mimeType;
39};
40
41}
42
43#endif // IWORKDATAELEMENT_H_INCLUDED
44
45/* vim:set shiftwidth=2 softtabstop=2 expandtab: */
IWORKDataPtr_t & m_data
Definition IWORKDataElement.h:34
IWORKDataElement(IWORKXMLParserState &state, IWORKDataPtr_t &data, boost::optional< IWORKColor > &fillColor)
Definition IWORKDataElement.cpp:24
boost::optional< std::string > m_mimeType
Definition IWORKDataElement.h:38
RVNGInputStreamPtr_t m_stream
Definition IWORKDataElement.h:37
boost::optional< IWORKColor > & m_fillColor
Definition IWORKDataElement.h:35
void attribute(int name, const char *value) override
Process an attribute.
Definition IWORKDataElement.cpp:34
boost::optional< std::string > m_displayName
Definition IWORKDataElement.h:36
void endOfElement() override
Signalize the end of an element.
Definition IWORKDataElement.cpp:107
Definition IWORKXMLParserState.h:32
@ value
Definition IWORKToken.h:631
@ data
Definition IWORKToken.h:178
@ name
Definition IWORKToken.h:585
Definition IWORKBezierElement.cpp:21
std::shared_ptr< librevenge::RVNGInputStream > RVNGInputStreamPtr_t
Definition libetonyek_utils.h:82
std::shared_ptr< IWORKData > IWORKDataPtr_t
Definition IWORKTypes_fwd.h:51
IWORKXMLContextBase< IWORKXMLContextEmpty, IWORKXMLParserState > IWORKXMLEmptyContextBase
Definition IWORKXMLContextBase.h:127

Generated for libetonyek by doxygen 1.13.2