IWORKImageElement.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 IWORKIMAGEELEMENT_H_INCLUDED
11#define IWORKIMAGEELEMENT_H_INCLUDED
12
13#include <boost/optional.hpp>
14
15#include "IWORKTypes.h"
16#include "IWORKXMLContextBase.h"
17
18namespace libetonyek
19{
20
22{
23public:
26
27private:
28 void startOfElement() override;
29 void attribute(int name, const char *value) override;
30 IWORKXMLContextPtr_t element(int name) override;
31 void endOfElement() override;
32
33private:
34 boost::optional<bool> m_locked;
38 boost::optional<IWORKSize> m_size;
40 boost::optional<IWORKColor> m_fillColor;
41 boost::optional<ID_t> m_binaryRef;
44 boost::optional<IWORKSize> m_placeholderSize;
45};
46
47}
48
49#endif // IWORKIMAGEELEMENT_H_INCLUDED
50
51/* vim:set shiftwidth=2 softtabstop=2 expandtab: */
Definition IWORKImageElement.h:22
boost::optional< IWORKSize > m_placeholderSize
Definition IWORKImageElement.h:44
void attribute(int name, const char *value) override
Definition IWORKImageElement.cpp:73
IWORKMediaContentPtr_t m_localContent
Definition IWORKImageElement.h:36
IWORKStylePtr_t m_style
Definition IWORKImageElement.h:42
boost::optional< IWORKColor > m_fillColor
Definition IWORKImageElement.h:40
void startOfElement() override
Definition IWORKImageElement.cpp:67
IWORKMediaContentPtr_t m_filteredImage
Definition IWORKImageElement.h:37
IWORKImageElement(IWORKXMLParserState &state, IWORKMediaContentPtr_t &content)
Definition IWORKImageElement.cpp:35
boost::optional< ID_t > m_binaryRef
Definition IWORKImageElement.h:41
IWORKDataPtr_t m_data
Definition IWORKImageElement.h:39
void endOfElement() override
Definition IWORKImageElement.cpp:128
boost::optional< bool > m_locked
Definition IWORKImageElement.h:34
IWORKGeometryPtr_t m_cropGeometry
Definition IWORKImageElement.h:43
boost::optional< IWORKSize > m_size
Definition IWORKImageElement.h:38
IWORKMediaContentPtr_t & m_content
Definition IWORKImageElement.h:35
Definition IWORKXMLContextBase.h:28
Definition IWORKXMLParserState.h:32
@ value
Definition IWORKToken.h:631
@ content
Definition IWORKToken.h:167
@ element
Definition IWORKToken.h:192
@ name
Definition IWORKToken.h:585
Definition IWORKBezierElement.cpp:21
std::shared_ptr< IWORKMediaContent > IWORKMediaContentPtr_t
Definition IWORKTypes_fwd.h:58
std::shared_ptr< IWORKData > IWORKDataPtr_t
Definition IWORKTypes_fwd.h:53
std::shared_ptr< IWORKXMLContext > IWORKXMLContextPtr_t
Definition IWORKXMLContext.h:20
std::shared_ptr< IWORKGeometry > IWORKGeometryPtr_t
Definition IWORKTypes_fwd.h:45
std::shared_ptr< IWORKStyle > IWORKStylePtr_t
Definition IWORKStyle_fwd.h:23

Generated for libetonyek by doxygen 1.12.0