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
18namespace libetonyek
19{
20
21 class IWORKMediaElement : public IWORKXMLElementContextBase
22{
23public:
24 explicit IWORKMediaElement(IWORKXMLParserState &state);
25
26private:
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
32private:
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: */
IWORKTypes.h
IWORKXMLContextBase.h
libetonyek::IWORKMediaElement::IWORKMediaElement
IWORKMediaElement(IWORKXMLParserState &state)
Definition IWORKMediaElement.cpp:326
libetonyek::IWORKMediaElement::m_cropGeometry
IWORKGeometryPtr_t m_cropGeometry
Definition IWORKMediaElement.h:39
libetonyek::IWORKMediaElement::m_movieData
IWORKDataPtr_t m_movieData
Definition IWORKMediaElement.h:34
libetonyek::IWORKMediaElement::m_style
IWORKStylePtr_t m_style
Definition IWORKMediaElement.h:38
libetonyek::IWORKMediaElement::m_audioOnlyImageRef
boost::optional< ID_t > m_audioOnlyImageRef
Definition IWORKMediaElement.h:37
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_wrap
boost::optional< IWORKWrap > m_wrap
Definition IWORKMediaElement.h:41
libetonyek::IWORKMediaElement::startOfElement
void startOfElement() override
Signalize the start of an element.
Definition IWORKMediaElement.cpp:353
libetonyek::IWORKMediaElement::m_posterImage
IWORKMediaContentPtr_t m_posterImage
Definition IWORKMediaElement.h:36
libetonyek::IWORKMediaElement::endOfElement
void endOfElement() override
Signalize the end of an element.
Definition IWORKMediaElement.cpp:401
libetonyek::IWORKMediaElement::m_audioOnlyImage
IWORKMediaContentPtr_t m_audioOnlyImage
Definition IWORKMediaElement.h:35
libetonyek::IWORKMediaElement::m_order
boost::optional< int > m_order
Definition IWORKMediaElement.h:40
libetonyek::IWORKMediaElement::attribute
void attribute(int name, const char *value) override
Process an attribute.
Definition IWORKMediaElement.cpp:341
libetonyek::IWORKXMLParserState
Definition IWORKXMLParserState.h:32
libetonyek::IWORKToken::value
@ value
Definition IWORKToken.h:631
libetonyek::IWORKToken::element
@ element
Definition IWORKToken.h:192
libetonyek::IWORKToken::name
@ name
Definition IWORKToken.h:585
libetonyek
Definition IWORKBezierElement.cpp:21
libetonyek::IWORKMediaContentPtr_t
std::shared_ptr< IWORKMediaContent > IWORKMediaContentPtr_t
Definition IWORKTypes_fwd.h:58
libetonyek::IWORKDataPtr_t
std::shared_ptr< IWORKData > IWORKDataPtr_t
Definition IWORKTypes_fwd.h:53
libetonyek::IWORKXMLContextPtr_t
std::shared_ptr< IWORKXMLContext > IWORKXMLContextPtr_t
Definition IWORKXMLContext.h:20
libetonyek::IWORKXMLElementContextBase
IWORKXMLContextBase< IWORKXMLContextElement, IWORKXMLParserState > IWORKXMLElementContextBase
Definition IWORKXMLContextBase.h:124
libetonyek::IWORKGeometryPtr_t
std::shared_ptr< IWORKGeometry > IWORKGeometryPtr_t
Definition IWORKTypes_fwd.h:45
libetonyek::IWORKStylePtr_t
std::shared_ptr< IWORKStyle > IWORKStylePtr_t
Definition IWORKStyle_fwd.h:23