IWORKMediaElement.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 IWORKMEDIAELEMENT_H_INCLUDED
11 #define IWORKMEDIAELEMENT_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:
24  explicit IWORKMediaElement(IWORKXMLParserState &state);
25 
26 private:
27  void attribute(int name, const char *value) override;
28  void startOfElement() override;
29  IWORKXMLContextPtr_t element(int name) override;
30  void endOfElement() override;
31 
32 private:
37  boost::optional<ID_t> m_audioOnlyImageRef;
40  boost::optional<int> m_order;
41  boost::optional<IWORKWrap> m_wrap;
42  boost::optional<IWORKSize> m_placeholderSize;
43 };
44 
45 }
46 
47 #endif // IWORKMEDIAELEMENT_H_INCLUDED
48 
49 /* vim:set shiftwidth=2 softtabstop=2 expandtab: */
std::shared_ptr< IWORKGeometry > IWORKGeometryPtr_t
Definition: IWORKTypes_fwd.h:41
std::shared_ptr< IWORKXMLContext > IWORKXMLContextPtr_t
Definition: IWORKXMLContext.h:18
void endOfElement() override
Definition: IWORKMediaElement.cpp:401
IWORKXMLContextPtr_t element(int name) override
Definition: IWORKMediaElement.cpp:359
void startOfElement() override
Definition: IWORKMediaElement.cpp:353
std::shared_ptr< IWORKStyle > IWORKStylePtr_t
Definition: IWORKStyle_fwd.h:21
boost::optional< IWORKWrap > m_wrap
Definition: IWORKMediaElement.h:41
Definition: IWORKToken.h:631
void attribute(int name, const char *value) override
Definition: IWORKMediaElement.cpp:341
IWORKStylePtr_t m_style
Definition: IWORKMediaElement.h:38
std::shared_ptr< IWORKData > IWORKDataPtr_t
Definition: IWORKTypes_fwd.h:49
const char * name
Definition: IWORKToken.cpp:43
IWORKMediaContentPtr_t m_audioOnlyImage
Definition: IWORKMediaElement.h:35
Definition: IWORKMediaElement.h:21
boost::optional< int > m_order
Definition: IWORKMediaElement.h:40
Definition: IWORKXMLContextBase.h:27
Definition: IWORKXMLParserState.h:31
IWORKMediaContentPtr_t m_posterImage
Definition: IWORKMediaElement.h:36
boost::optional< ID_t > m_audioOnlyImageRef
Definition: IWORKMediaElement.h:37
IWORKGeometryPtr_t m_cropGeometry
Definition: IWORKMediaElement.h:39
IWORKMediaElement(IWORKXMLParserState &state)
Definition: IWORKMediaElement.cpp:326
std::shared_ptr< IWORKMediaContent > IWORKMediaContentPtr_t
Definition: IWORKTypes_fwd.h:54
IWORKMediaContentPtr_t m_content
Definition: IWORKMediaElement.h:33
boost::optional< IWORKSize > m_placeholderSize
Definition: IWORKMediaElement.h:42
IWORKDataPtr_t m_movieData
Definition: IWORKMediaElement.h:34

Generated for libetonyek by doxygen 1.8.6