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
21 class IWORKMediaElement : public IWORKXMLElementContextBase
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:
33 IWORKMediaContentPtr_t m_content;
34 IWORKDataPtr_t m_movieData;
35 IWORKMediaContentPtr_t m_audioOnlyImage;
36 IWORKMediaContentPtr_t m_posterImage;
37 boost::optional<ID_t> m_audioOnlyImageRef;
38 IWORKStylePtr_t m_style;
39 IWORKGeometryPtr_t m_cropGeometry;
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: */
libetonyek::IWORKGeometryPtr_t
std::shared_ptr< IWORKGeometry > IWORKGeometryPtr_t
Definition: IWORKTypes_fwd.h:41
libetonyek
Definition: IWORKBezierElement.cpp:20
libetonyek::IWORKXMLContextPtr_t
std::shared_ptr< IWORKXMLContext > IWORKXMLContextPtr_t
Definition: IWORKXMLContext.h:18
libetonyek::IWORKMediaElement::endOfElement
void endOfElement() override
Definition: IWORKMediaElement.cpp:401
IWORKXMLContextBase.h
libetonyek::IWORKMediaElement::element
IWORKXMLContextPtr_t element(int name) override
Definition: IWORKMediaElement.cpp:359
libetonyek::IWORKMediaElement::startOfElement
void startOfElement() override
Definition: IWORKMediaElement.cpp:353
libetonyek::IWORKStylePtr_t
std::shared_ptr< IWORKStyle > IWORKStylePtr_t
Definition: IWORKStyle_fwd.h:21
libetonyek::IWORKMediaElement::m_wrap
boost::optional< IWORKWrap > m_wrap
Definition: IWORKMediaElement.h:41
libetonyek::IWORKToken::value
Definition: IWORKToken.h:624
libetonyek::IWORKMediaElement::attribute
void attribute(int name, const char *value) override
Definition: IWORKMediaElement.cpp:341
libetonyek::IWORKMediaElement::m_style
IWORKStylePtr_t m_style
Definition: IWORKMediaElement.h:38
libetonyek::IWORKDataPtr_t
std::shared_ptr< IWORKData > IWORKDataPtr_t
Definition: IWORKTypes_fwd.h:49
name
const char * name
Definition: IWORKToken.cpp:43
libetonyek::IWORKMediaElement::m_audioOnlyImage
IWORKMediaContentPtr_t m_audioOnlyImage
Definition: IWORKMediaElement.h:35
libetonyek::IWORKMediaElement
Definition: IWORKMediaElement.h:21
libetonyek::IWORKMediaElement::m_order
boost::optional< int > m_order
Definition: IWORKMediaElement.h:40
libetonyek::IWORKXMLContextBase
Definition: IWORKXMLContextBase.h:27
libetonyek::IWORKXMLParserState
Definition: IWORKXMLParserState.h:31
libetonyek::IWORKMediaElement::m_posterImage
IWORKMediaContentPtr_t m_posterImage
Definition: IWORKMediaElement.h:36
libetonyek::IWORKMediaElement::m_audioOnlyImageRef
boost::optional< ID_t > m_audioOnlyImageRef
Definition: IWORKMediaElement.h:37
IWORKTypes.h
libetonyek::IWORKMediaElement::m_cropGeometry
IWORKGeometryPtr_t m_cropGeometry
Definition: IWORKMediaElement.h:39
libetonyek::IWORKMediaElement::IWORKMediaElement
IWORKMediaElement(IWORKXMLParserState &state)
Definition: IWORKMediaElement.cpp:326
libetonyek::IWORKMediaContentPtr_t
std::shared_ptr< IWORKMediaContent > IWORKMediaContentPtr_t
Definition: IWORKTypes_fwd.h:54
libetonyek::IWORKMediaElement::m_content
IWORKMediaContentPtr_t m_content
Definition: IWORKMediaElement.h:33
libetonyek::IWORKMediaElement::m_placeholderSize
boost::optional< IWORKSize > m_placeholderSize
Definition: IWORKMediaElement.h:42
libetonyek::IWORKMediaElement::m_movieData
IWORKDataPtr_t m_movieData
Definition: IWORKMediaElement.h:34