IWORKImageElement.h Source File documentation

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