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

Generated for libetonyek by doxygen 1.13.2