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
18 namespace libetonyek
19 {
20
21 class IWORKImageElement : public IWORKXMLElementContextBase
22 {
23 public:
24 explicit IWORKImageElement(IWORKXMLParserState &state, IWORKMediaContentPtr_t &content);
25 explicit IWORKImageElement(IWORKXMLParserState &state);
26
27 private:
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
33 private:
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: */
IWORKImageElement.h
IWORKDictionary.h
m_fillColor
optional< IWORKColor > m_fillColor
Definition: IWORKMediaElement.cpp:94
IWORKGeometryElement.h
m_style
IWORKStylePtr_t m_style
Definition: IWORKPropertyMapElement.cpp:172
libetonyek
Definition: IWORKBezierElement.cpp:20
libetonyek::IWORKToken::none
@ none
Definition: IWORKToken.h:666
libetonyek::IWORKToken::binary
@ binary
Definition: IWORKToken.h:115
libetonyek::IWORKImageElement::m_localContent
IWORKMediaContentPtr_t m_localContent
Definition: IWORKImageElement.h:36
libetonyek::IWORKImageElement::startOfElement
void startOfElement() override
Definition: IWORKImageElement.cpp:67
libetonyek::IWORKXMLContextPtr_t
std::shared_ptr< IWORKXMLContext > IWORKXMLContextPtr_t
Definition: IWORKXMLContext.h:18
libetonyek::IWORKToken::NS_URI_SFA
@ NS_URI_SFA
Definition: IWORKToken.h:689
libetonyek::IWORKDataPtr_t
std::shared_ptr< IWORKData > IWORKDataPtr_t
Definition: IWORKTypes_fwd.h:49
libetonyek::IWORKImageElement
Definition: IWORKImageElement.h:21
m_data
IWORKDataPtr_t & m_data
Definition: IWORKMediaElement.cpp:93
libetonyek::IWORKImageElement::m_cropGeometry
IWORKGeometryPtr_t m_cropGeometry
Definition: IWORKImageElement.h:43
ETONYEK_DEBUG_MSG
#define ETONYEK_DEBUG_MSG(M)
Definition: libetonyek_utils.h:54
libetonyek::IWORKToken::crop_geometry
@ crop_geometry
Definition: IWORKToken.h:170
libetonyek::IWORKImageElement::m_filteredImage
IWORKMediaContentPtr_t m_filteredImage
Definition: IWORKImageElement.h:37
libetonyek::IWORKImageElement::m_placeholderSize
boost::optional< IWORKSize > m_placeholderSize
Definition: IWORKImageElement.h:44
libetonyek::IWORKImageElement::m_locked
boost::optional< bool > m_locked
Definition: IWORKImageElement.h:34
IWORKStyleContainer.h
libetonyek::IWORKToken::locked
@ locked
Definition: IWORKToken.h:570
m_size
optional< IWORKSize > m_size
Definition: IWORKPathElement.cpp:48
libetonyek::IWORKXMLContextBase::isCollector
bool isCollector() const
Definition: IWORKXMLContextBase.h:59
libetonyek::IWORKImageElement::m_data
IWORKDataPtr_t m_data
Definition: IWORKImageElement.h:39
libetonyek::IWORKMediaContentPtr_t
std::shared_ptr< IWORKMediaContent > IWORKMediaContentPtr_t
Definition: IWORKTypes_fwd.h:54
libetonyek::IWORKXMLParserState
Definition: IWORKXMLParserState.h:31
libetonyek::IWORKImageElement::IWORKImageElement
IWORKImageElement(IWORKXMLParserState &state, IWORKMediaContentPtr_t &content)
Definition: IWORKImageElement.cpp:35
libetonyek::IWORKImageElement::m_size
boost::optional< IWORKSize > m_size
Definition: IWORKImageElement.h:38
libetonyek::IWORKImageElement::endOfElement
void endOfElement() override
Definition: IWORKImageElement.cpp:128
libetonyek::IWORKToken::size
@ size
Definition: IWORKToken.h:395
libetonyek::IWORKToken::content
@ content
Definition: IWORKToken.h:163
m_cropGeometry
const IWORKGeometryPtr_t m_cropGeometry
Definition: IWORKRecorder.cpp:80
libetonyek::IWORKImageElement::attribute
void attribute(int name, const char *value) override
Definition: IWORKImageElement.cpp:73
libetonyek::IWORKXMLContextBase::getCollector
Collector & getCollector() const
Definition: IWORKXMLContextBase.h:49
libetonyek::bool_cast
bool bool_cast(const char *value)
Convert string value to bool.
Definition: libetonyek_xml.cpp:56
m_locked
const bool m_locked
Definition: IWORKRecorder.cpp:82
m_content
IWORKMediaContentPtr_t & m_content
Definition: IWORKFillElement.cpp:319
libetonyek::IWORKToken::placeholder_size
@ placeholder_size
Definition: IWORKToken.h:362
libetonyek::IWORKImageElement::m_content
IWORKMediaContentPtr_t & m_content
Definition: IWORKImageElement.h:35
libetonyek::IWORKToken::version
@ version
Definition: IWORKToken.h:626
libetonyek::IWORKToken::style
@ style
Definition: IWORKToken.h:414
IWORKTypes.h
libetonyek::IWORKXMLContextBase
Definition: IWORKXMLContextBase.h:27
IWORKXMLParserState.h
libetonyek::IWORKToken::binary_ref
@ binary_ref
Definition: IWORKToken.h:116
IWORKCollector.h
libetonyek::IWORKImageElement::m_fillColor
boost::optional< IWORKColor > m_fillColor
Definition: IWORKImageElement.h:40
IWORKBinaryElement.h
libetonyek::IWORKImageElement::m_binaryRef
boost::optional< ID_t > m_binaryRef
Definition: IWORKImageElement.h:41
IWORKDataElement.h
libetonyek::IWORKImageElement::m_style
IWORKStylePtr_t m_style
Definition: IWORKImageElement.h:42
libetonyek::IWORKToken::masking_shape_path_source
@ masking_shape_path_source
Definition: IWORKToken.h:320
libetonyek::IWORKToken::first
@ first
Definition: IWORKToken.h:524
libetonyek::IWORKGeometryPtr_t
std::shared_ptr< IWORKGeometry > IWORKGeometryPtr_t
Definition: IWORKTypes_fwd.h:41
libetonyek::IWORKToken::NS_URI_SF
@ NS_URI_SF
Definition: IWORKToken.h:688
libetonyek::IWORKStylePtr_t
std::shared_ptr< IWORKStyle > IWORKStylePtr_t
Definition: IWORKStyle_fwd.h:21
IWORKXMLContextBase.h
IWORKFilteredImageElement.h
IWORKToken.h
libetonyek::get
const ValueT & get(const detail::IWAFieldImpl< TagV, ValueT, Reader > &field)
Definition: IWAField.h:190
IWORKRefContext.h
libetonyek::IWORKImageElement::element
IWORKXMLContextPtr_t element(int name) override
Definition: IWORKImageElement.cpp:88
IWORKSizeElement.h
libetonyek::IWORKToken::geometry
@ geometry
Definition: IWORKToken.h:232
libetonyek::IWORKToken::name
@ name
Definition: IWORKToken.h:578
libetonyek::IWORKToken::data
@ data
Definition: IWORKToken.h:174
libetonyek::IWORKToken::value
@ value
Definition: IWORKToken.h:624
libetonyek::IWORKToken::filtered_image
@ filtered_image
Definition: IWORKToken.h:203
libetonyek_xml.h
libetonyek::IWORKXMLContextBase::getState
State & getState()
Definition: IWORKXMLContextBase.h:43