IWORKGeometryElement.h Source File documentation

- Main Page
- Related Pages
- Namespaces
- Classes
- Files

- File List
- File Members

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
18 namespace libetonyek
19 {
20
21 class IWORKGeometryElement : public IWORKXMLElementContextBase
22 {
23 public:
24 explicit IWORKGeometryElement(IWORKXMLParserState &state);
25 IWORKGeometryElement(IWORKXMLParserState &state, IWORKGeometryPtr_t &geometry);
26
27 protected:
28 virtual void attribute(int name, const char *value);
29 virtual IWORKXMLContextPtr_t element(int name);
30 virtual void endOfElement();
31
32 private:
33 IWORKGeometryPtr_t *const m_geometry;
34 boost::optional<IWORKSize> m_naturalSize;
35 boost::optional<IWORKSize> m_size;
36 boost::optional<IWORKPosition> m_pos;
37 boost::optional<double> m_angle;
38 boost::optional<double> m_shearXAngle;
39 boost::optional<double> m_shearYAngle;
40 boost::optional<bool> m_aspectRatioLocked;
41 boost::optional<bool> m_sizesLocked;
42 boost::optional<bool> m_horizontalFlip;
43 boost::optional<bool> m_verticalFlip;
44 };
45
46 }
47
48 #endif // IWORKGEOMETRYELEMENT_H_INCLUDED
49
50 /* vim:set shiftwidth=2 softtabstop=2 expandtab: */
libetonyek
Definition: IWORKBezierElement.cpp:18
IWORKXMLContextBase.h
libetonyek::IWORKGeometryPtr_t
boost::shared_ptr< IWORKGeometry > IWORKGeometryPtr_t
Definition: IWORKTypes_fwd.h:40
libetonyek::IWORKGeometryElement::endOfElement
virtual void endOfElement()
Definition: IWORKGeometryElement.cpp:85
libetonyek::IWORKXMLContextPtr_t
boost::shared_ptr< IWORKXMLContext > IWORKXMLContextPtr_t
Definition: IWORKXMLContext.h:18
libetonyek::IWORKGeometryElement::m_horizontalFlip
boost::optional< bool > m_horizontalFlip
Definition: IWORKGeometryElement.h:42
libetonyek::IWORKGeometryElement::m_shearYAngle
boost::optional< double > m_shearYAngle
Definition: IWORKGeometryElement.h:39
libetonyek::IWORKGeometryElement::m_verticalFlip
boost::optional< bool > m_verticalFlip
Definition: IWORKGeometryElement.h:43
name
const char * name
Definition: IWORKToken.cpp:43
libetonyek::IWORKGeometryElement::element
virtual IWORKXMLContextPtr_t element(int name)
Definition: IWORKGeometryElement.cpp:70
libetonyek::IWORKGeometryElement::m_angle
boost::optional< double > m_angle
Definition: IWORKGeometryElement.h:37
libetonyek::IWORKGeometryElement::m_sizesLocked
boost::optional< bool > m_sizesLocked
Definition: IWORKGeometryElement.h:41
libetonyek::IWORKToken::geometry
Definition: IWORKToken.h:139
libetonyek::IWORKGeometryElement::m_naturalSize
boost::optional< IWORKSize > m_naturalSize
Definition: IWORKGeometryElement.h:34
libetonyek::IWORKXMLContextBase
Definition: IWORKXMLContextBase.h:27
libetonyek::IWORKXMLParserState
Definition: IWORKXMLParserState.h:30
libetonyek::IWORKGeometryElement
Definition: IWORKGeometryElement.h:21
libetonyek::IWORKGeometryElement::IWORKGeometryElement
IWORKGeometryElement(IWORKXMLParserState &state)
Definition: IWORKGeometryElement.cpp:27
libetonyek::IWORKGeometryElement::m_size
boost::optional< IWORKSize > m_size
Definition: IWORKGeometryElement.h:35
libetonyek::IWORKGeometryElement::m_aspectRatioLocked
boost::optional< bool > m_aspectRatioLocked
Definition: IWORKGeometryElement.h:40
libetonyek::IWORKGeometryElement::m_pos
boost::optional< IWORKPosition > m_pos
Definition: IWORKGeometryElement.h:36
IWORKTypes.h
libetonyek::IWORKGeometryElement::m_geometry
IWORKGeometryPtr_t *const m_geometry
Definition: IWORKGeometryElement.h:33
libetonyek::IWORKGeometryElement::m_shearXAngle
boost::optional< double > m_shearXAngle
Definition: IWORKGeometryElement.h:38
libetonyek::IWORKGeometryElement::attribute
virtual void attribute(int name, const char *value)
Definition: IWORKGeometryElement.cpp:39