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 
22 {
23 public:
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;
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: */
std::shared_ptr< IWORKGeometry > IWORKGeometryPtr_t
Definition: IWORKTypes_fwd.h:41
boost::optional< IWORKSize > m_size
Definition: IWORKImageElement.h:38
boost::optional< ID_t > m_binaryRef
Definition: IWORKImageElement.h:41
std::shared_ptr< IWORKXMLContext > IWORKXMLContextPtr_t
Definition: IWORKXMLContext.h:18
Definition: IWORKImageElement.h:21
Definition: IWORKToken.h:167
IWORKXMLContextPtr_t element(int name) override
Definition: IWORKImageElement.cpp:88
std::shared_ptr< IWORKStyle > IWORKStylePtr_t
Definition: IWORKStyle_fwd.h:21
Definition: IWORKToken.h:631
void endOfElement() override
Definition: IWORKImageElement.cpp:128
std::shared_ptr< IWORKData > IWORKDataPtr_t
Definition: IWORKTypes_fwd.h:49
IWORKGeometryPtr_t m_cropGeometry
Definition: IWORKImageElement.h:43
const char * name
Definition: IWORKToken.cpp:43
boost::optional< IWORKSize > m_placeholderSize
Definition: IWORKImageElement.h:44
IWORKImageElement(IWORKXMLParserState &state, IWORKMediaContentPtr_t &content)
Definition: IWORKImageElement.cpp:35
void startOfElement() override
Definition: IWORKImageElement.cpp:67
Definition: IWORKXMLContextBase.h:27
Definition: IWORKXMLParserState.h:31
boost::optional< IWORKColor > m_fillColor
Definition: IWORKImageElement.h:40
IWORKMediaContentPtr_t & m_content
Definition: IWORKImageElement.h:35
IWORKDataPtr_t m_data
Definition: IWORKImageElement.h:39
IWORKMediaContentPtr_t m_localContent
Definition: IWORKImageElement.h:36
IWORKStylePtr_t m_style
Definition: IWORKImageElement.h:42
IWORKMediaContentPtr_t m_filteredImage
Definition: IWORKImageElement.h:37
void attribute(int name, const char *value) override
Definition: IWORKImageElement.cpp:73
boost::optional< bool > m_locked
Definition: IWORKImageElement.h:34
std::shared_ptr< IWORKMediaContent > IWORKMediaContentPtr_t
Definition: IWORKTypes_fwd.h:54

Generated for libetonyek by doxygen 1.8.6