KEY1FillElement.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 KEY1FILLELEMENT_H_INCLUDED
11 #define KEY1FILLELEMENT_H_INCLUDED
12 
13 #include <string>
14 #include <boost/optional.hpp>
15 
16 #include "KEY1XMLContextBase.h"
17 
18 #include "IWORKEnum.h"
19 #include "IWORKTypes.h"
20 
21 namespace libetonyek
22 {
24 {
25  enum FillType
26  {
30  };
31 public:
32  KEY1FillElement(KEY1ParserState &state, boost::optional<IWORKFill> &fill);
33 
34 private:
35  void attribute(int name, const char *value) override;
36  IWORKXMLContextPtr_t element(int name) override;
37  void endOfElement() override;
38 
39 private:
40  boost::optional<IWORKFill> &m_fill;
41  boost::optional<FillType> m_type;
42  boost::optional<IWORKColor> m_color;
43  boost::optional<std::string> m_imageName;
44  boost::optional<IWORKImageType> m_imageType;
45 };
46 }
47 
48 #endif // KEY1FILLELEMENT_H_INCLUDED
49 
50 /* vim:set shiftwidth=2 softtabstop=2 expandtab: */
std::shared_ptr< IWORKXMLContext > IWORKXMLContextPtr_t
Definition: IWORKXMLContext.h:18
Definition: KEY1ParserState.h:44
void attribute(int name, const char *value) override
Definition: KEY1FillElement.cpp:37
Definition: KEY1FillElement.h:23
Definition: IWORKToken.h:631
IWORKXMLContextPtr_t element(int name) override
Definition: KEY1FillElement.cpp:89
boost::optional< IWORKFill > & m_fill
Definition: KEY1FillElement.h:40
boost::optional< IWORKImageType > m_imageType
Definition: KEY1FillElement.h:44
Definition: KEY1FillElement.h:29
boost::optional< IWORKColor > m_color
Definition: KEY1FillElement.h:42
void endOfElement() override
Definition: KEY1FillElement.cpp:101
Definition: KEY1FillElement.h:28
const char * name
Definition: IWORKToken.cpp:43
FillType
Definition: KEY1FillElement.h:25
Definition: KEY1XMLContextBase.h:22
boost::optional< std::string > m_imageName
Definition: KEY1FillElement.h:43
KEY1FillElement(KEY1ParserState &state, boost::optional< IWORKFill > &fill)
Definition: KEY1FillElement.cpp:27
boost::optional< FillType > m_type
Definition: KEY1FillElement.h:41
Definition: KEY1FillElement.h:27
Definition: IWORKToken.h:204

Generated for libetonyek by doxygen 1.8.6