IWORKGeometryElement.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 IWORKGEOMETRYELEMENT_H_INCLUDED
11#define IWORKGEOMETRYELEMENT_H_INCLUDED
12
13#include <boost/optional.hpp>
14
15#include "IWORKTypes.h"
16#include "IWORKXMLContextBase.h"
17
18namespace libetonyek
19{
20
22{
23public:
26
27protected:
28 void attribute(int name, const char *value) override;
29 IWORKXMLContextPtr_t element(int name) override;
30 void endOfElement() override;
31
32private:
35
37 boost::optional<IWORKSize> m_naturalSize;
38 boost::optional<IWORKSize> m_size;
39 boost::optional<IWORKPosition> m_pos;
40 boost::optional<double> m_angle;
41 boost::optional<double> m_shearXAngle;
42 boost::optional<double> m_shearYAngle;
43 boost::optional<bool> m_aspectRatioLocked;
44 boost::optional<bool> m_sizesLocked;
45 boost::optional<bool> m_horizontalFlip;
46 boost::optional<bool> m_verticalFlip;
47};
48
49}
50
51#endif // IWORKGEOMETRYELEMENT_H_INCLUDED
52
53/* vim:set shiftwidth=2 softtabstop=2 expandtab: */
boost::optional< double > m_shearYAngle
Definition IWORKGeometryElement.h:42
boost::optional< double > m_shearXAngle
Definition IWORKGeometryElement.h:41
boost::optional< IWORKSize > m_size
Definition IWORKGeometryElement.h:38
IWORKGeometryElement & operator=(const IWORKGeometryElement &)
boost::optional< bool > m_verticalFlip
Definition IWORKGeometryElement.h:46
boost::optional< bool > m_aspectRatioLocked
Definition IWORKGeometryElement.h:43
boost::optional< double > m_angle
Definition IWORKGeometryElement.h:40
void endOfElement() override
Signalize the end of an element.
Definition IWORKGeometryElement.cpp:108
boost::optional< bool > m_horizontalFlip
Definition IWORKGeometryElement.h:45
void attribute(int name, const char *value) override
Process an attribute.
Definition IWORKGeometryElement.cpp:59
boost::optional< bool > m_sizesLocked
Definition IWORKGeometryElement.h:44
boost::optional< IWORKSize > m_naturalSize
Definition IWORKGeometryElement.h:37
boost::optional< IWORKPosition > m_pos
Definition IWORKGeometryElement.h:39
IWORKGeometryPtr_t *const m_geometry
Definition IWORKGeometryElement.h:36
IWORKGeometryElement(IWORKXMLParserState &state)
Definition IWORKGeometryElement.cpp:27
IWORKGeometryElement(const IWORKGeometryElement &)
Definition IWORKXMLParserState.h:32
@ value
Definition IWORKToken.h:631
@ element
Definition IWORKToken.h:192
@ geometry
Definition IWORKToken.h:236
@ name
Definition IWORKToken.h:585
Definition IWORKBezierElement.cpp:21
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

Generated for libetonyek by doxygen 1.13.2