IWORKFormatElement.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 IWORKFORMATELEMENT_H_INCLUDED
11 #define IWORKFORMATELEMENT_H_INCLUDED
12 
13 #include <boost/optional.hpp>
14 
15 #include "IWORKXMLContextBase.h"
16 
17 #include "IWORKPropertyMap.h"
18 #include "IWORKTypes.h"
19 
20 namespace libetonyek
21 {
23 {
24 public:
25  IWORKDateTimeFormatElement(IWORKXMLParserState &state, boost::optional<IWORKDateTimeFormat> &value);
26 
27 private:
28  void attribute(int name, const char *value) override;
29  void endOfElement() override;
30 
31 private:
32  boost::optional<IWORKDateTimeFormat> &m_value;
33 };
34 
36 {
37 public:
38  IWORKDurationFormatElement(IWORKXMLParserState &state, boost::optional<IWORKDurationFormat> &value);
39 
40 private:
41  void attribute(int name, const char *value) override;
42  void endOfElement() override;
43 
44 private:
45  boost::optional<IWORKDurationFormat> &m_value;
46 };
47 
49 {
50 public:
51  IWORKNumberFormatElement(IWORKXMLParserState &state, boost::optional<IWORKNumberFormat> &value);
52 
53 private:
54  void attribute(int name, const char *value) override;
55  void endOfElement() override;
56 
57 private:
58  boost::optional<IWORKNumberFormat> &m_value;
59 };
60 
61 }
62 
63 #endif // IWORKFORMATELEMENT_H_INCLUDED
64 
65 /* vim:set shiftwidth=2 softtabstop=2 expandtab: */
void endOfElement() override
Definition: IWORKFormatElement.cpp:143
void endOfElement() override
Definition: IWORKFormatElement.cpp:81
IWORKDurationFormatElement(IWORKXMLParserState &state, boost::optional< IWORKDurationFormat > &value)
Definition: IWORKFormatElement.cpp:59
Definition: IWORKToken.h:631
void attribute(int name, const char *value) override
Definition: IWORKFormatElement.cpp:37
boost::optional< IWORKDateTimeFormat > & m_value
Definition: IWORKFormatElement.h:32
boost::optional< IWORKDurationFormat > & m_value
Definition: IWORKFormatElement.h:45
Definition: IWORKFormatElement.h:48
const char * name
Definition: IWORKToken.cpp:43
IWORKDateTimeFormatElement(IWORKXMLParserState &state, boost::optional< IWORKDateTimeFormat > &value)
Definition: IWORKFormatElement.cpp:30
boost::optional< IWORKNumberFormat > & m_value
Definition: IWORKFormatElement.h:58
void endOfElement() override
Definition: IWORKFormatElement.cpp:52
Definition: IWORKXMLContextBase.h:27
Definition: IWORKFormatElement.h:22
Definition: IWORKXMLParserState.h:31
void attribute(int name, const char *value) override
Definition: IWORKFormatElement.cpp:66
void attribute(int name, const char *value) override
Definition: IWORKFormatElement.cpp:95
IWORKNumberFormatElement(IWORKXMLParserState &state, boost::optional< IWORKNumberFormat > &value)
Definition: IWORKFormatElement.cpp:88
Definition: IWORKFormatElement.h:35

Generated for libetonyek by doxygen 1.8.6