IWORKMediaElement.h Source File documentation

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::IWORKToken::poster_image
@ poster_image
Definition: IWORKToken.h:369
libetonyek::IWORKMediaElement::IWORKMediaElement
IWORKMediaElement(IWORKXMLParserState &state)
Definition: IWORKMediaElement.cpp:326
m_audioOnlyImage
IWORKMediaContentPtr_t m_audioOnlyImage
Definition: IWORKMediaElement.cpp:218
libetonyek::IWORKMediaElement::m_placeholderSize
boost::optional< IWORKSize > m_placeholderSize
Definition: IWORKMediaElement.h:42
m_dataRef
optional< ID_t > m_dataRef
Definition: IWORKMediaElement.cpp:95
libetonyek::PAG1Token::NS_URI_SL
@ NS_URI_SL
Definition: PAG1Token.h:77
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::main_movie
@ main_movie
Definition: IWORKToken.h:317
m_content
IWORKMediaContentPtr_t & m_content
Definition: IWORKMediaElement.cpp:52
libetonyek::IWORKMediaElement::element
IWORKXMLContextPtr_t element(int name) override
Definition: IWORKMediaElement.cpp:359
libetonyek::IWORKXMLContextPtr_t
std::shared_ptr< IWORKXMLContext > IWORKXMLContextPtr_t
Definition: IWORKXMLContext.h:18
libetonyek::IWORKDataPtr_t
std::shared_ptr< IWORKData > IWORKDataPtr_t
Definition: IWORKTypes_fwd.h:49
libetonyek::IWORKToken::main_movie_ref
@ main_movie_ref
Definition: IWORKToken.h:318
m_data
IWORKDataPtr_t & m_data
Definition: IWORKMediaElement.cpp:93
m_order
const boost::optional< int > m_order
Definition: IWORKRecorder.cpp:81
ETONYEK_DEBUG_MSG
#define ETONYEK_DEBUG_MSG(M)
Definition: libetonyek_utils.h:54
libetonyek::IWORKToken::crop_geometry
@ crop_geometry
Definition: IWORKToken.h:170
libetonyek::try_int_cast
boost::optional< int > try_int_cast(const char *value)
Definition: libetonyek_xml.cpp:99
IWORKStyleContainer.h
libetonyek::IWORKXMLContextBase::isCollector
bool isCollector() const
Definition: IWORKXMLContextBase.h:59
libetonyek::IWORKMediaElement::endOfElement
void endOfElement() override
Definition: IWORKMediaElement.cpp:401
libetonyek::IWORKMediaContentPtr_t
std::shared_ptr< IWORKMediaContent > IWORKMediaContentPtr_t
Definition: IWORKTypes_fwd.h:54
libetonyek::IWORKXMLParserState
Definition: IWORKXMLParserState.h:31
m_audioOnlyImageRef
boost::optional< ID_t > m_audioOnlyImageRef
Definition: IWORKMediaElement.cpp:220
libetonyek::IWORKToken::alpha_mask_path
@ alpha_mask_path
Definition: IWORKToken.h:90
libetonyek::IWORKMediaElement::m_audioOnlyImageRef
boost::optional< ID_t > m_audioOnlyImageRef
Definition: IWORKMediaElement.h:37
libetonyek::IWORKMediaElement::m_order
boost::optional< int > m_order
Definition: IWORKMediaElement.h:40
libetonyek::PAG1Token::order
@ order
Definition: PAG1Token.h:43
libetonyek::IWORKToken::content
@ content
Definition: IWORKToken.h:163
libetonyek::IWORKMediaElement::startOfElement
void startOfElement() override
Definition: IWORKMediaElement.cpp:353
m_cropGeometry
const IWORKGeometryPtr_t m_cropGeometry
Definition: IWORKRecorder.cpp:80
libetonyek::IWORKXMLContextBase::getCollector
Collector & getCollector() const
Definition: IWORKXMLContextBase.h:49
libetonyek::IWORKMediaElement::m_wrap
boost::optional< IWORKWrap > m_wrap
Definition: IWORKMediaElement.h:41
PAG1Token.h
libetonyek::IWORKToken::traced_path
@ traced_path
Definition: IWORKToken.h:481
libetonyek::IWORKMediaElement
Definition: IWORKMediaElement.h:21
libetonyek::IWORKToken::element
@ element
Definition: IWORKToken.h:188
libetonyek::IWORKToken::placeholder_size
@ placeholder_size
Definition: IWORKToken.h:362
libetonyek::IWORKMediaElement::m_style
IWORKStylePtr_t m_style
Definition: IWORKMediaElement.h:38
libetonyek::IWORKMediaElement::m_posterImage
IWORKMediaContentPtr_t m_posterImage
Definition: IWORKMediaElement.h:36
libetonyek::IWORKToken::string
@ string
Definition: IWORKToken.h:411
libetonyek::IWORKToken::self_contained_movie
@ self_contained_movie
Definition: IWORKToken.h:393
libetonyek::IWORKToken::style
@ style
Definition: IWORKToken.h:414
IWORKTypes.h
libetonyek::IWORKMediaElement::m_cropGeometry
IWORKGeometryPtr_t m_cropGeometry
Definition: IWORKMediaElement.h:39
IWORKMediaElement.h
libetonyek::IWORKXMLContextBase
Definition: IWORKXMLContextBase.h:27
IWORKXMLParserState.h
libetonyek::IWORKXMLElementContextBase
IWORKXMLContextBase< IWORKXMLContextElement, IWORKXMLParserState > IWORKXMLElementContextBase
Definition: IWORKXMLContextBase.h:125
IWORKCollector.h
IWORKParser.h
m_posterImage
IWORKMediaContentPtr_t m_posterImage
Definition: IWORKMediaElement.cpp:219
IWORKBinaryElement.h
IWORKDataElement.h
libetonyek::IWORKToken::masking_shape_path_source
@ masking_shape_path_source
Definition: IWORKToken.h:320
libetonyek::IWORKToken::wrap
@ wrap
Definition: IWORKToken.h:496
libetonyek::IWORKToken::first
@ first
Definition: IWORKToken.h:524
libetonyek::IWORKToken::audio_only_image
@ audio_only_image
Definition: IWORKToken.h:107
libetonyek::IWORKToken::audio_only_image_ref
@ audio_only_image_ref
Definition: IWORKToken.h:108
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
libetonyek::IWORKMediaElement::m_content
IWORKMediaContentPtr_t m_content
Definition: IWORKMediaElement.h:33
libetonyek::IWORKToken::data_ref
@ data_ref
Definition: IWORKToken.h:179
libetonyek::IWORKMediaElement::m_movieData
IWORKDataPtr_t m_movieData
Definition: IWORKMediaElement.h:34
IWORKToken.h
m_otherData
IWORKDataPtr_t m_otherData
Definition: IWORKMediaElement.cpp:152
libetonyek::get
const ValueT & get(const detail::IWAFieldImpl< TagV, ValueT, Reader > &field)
Definition: IWAField.h:190
IWORKRefContext.h
libetonyek::IWORKMediaElement::attribute
void attribute(int name, const char *value) override
Definition: IWORKMediaElement.cpp:341
IWORKWrapElement.h
m_mainMovieRef
optional< ID_t > m_mainMovieRef
Definition: IWORKMediaElement.cpp:153
libetonyek::IWORKToken::image_media
@ image_media
Definition: IWORKToken.h:261
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::IWORKMediaElement::m_audioOnlyImage
IWORKMediaContentPtr_t m_audioOnlyImage
Definition: IWORKMediaElement.h:35
libetonyek::IWORKToken::other_datas
@ other_datas
Definition: IWORKToken.h:338
libetonyek::IWORKToken::movie_media
@ movie_media
Definition: IWORKToken.h:325
libetonyek::IWORKToken::filtered_image
@ filtered_image
Definition: IWORKToken.h:203
libetonyek_xml.h
libetonyek::IWORKXMLContextBase::getState
State & getState()
Definition: IWORKXMLContextBase.h:43