IWORKFormatElement.h Source File documentation

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 {
22 class IWORKDateTimeFormatElement : public IWORKXMLEmptyContextBase
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
35 class IWORKDurationFormatElement : public IWORKXMLEmptyContextBase
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
48 class IWORKNumberFormatElement : public IWORKXMLEmptyContextBase
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: */
libetonyek
Definition: IWORKBezierElement.cpp:20
IWORKXMLContextBase.h
libetonyek::IWORKNumberFormatElement::endOfElement
void endOfElement() override
Definition: IWORKFormatElement.cpp:143
libetonyek::IWORKDurationFormatElement::endOfElement
void endOfElement() override
Definition: IWORKFormatElement.cpp:81
libetonyek::IWORKDurationFormatElement::IWORKDurationFormatElement
IWORKDurationFormatElement(IWORKXMLParserState &state, boost::optional< IWORKDurationFormat > &value)
Definition: IWORKFormatElement.cpp:59
libetonyek::IWORKToken::value
Definition: IWORKToken.h:624
libetonyek::IWORKDateTimeFormatElement::attribute
void attribute(int name, const char *value) override
Definition: IWORKFormatElement.cpp:37
libetonyek::IWORKDateTimeFormatElement::m_value
boost::optional< IWORKDateTimeFormat > & m_value
Definition: IWORKFormatElement.h:32
libetonyek::IWORKDurationFormatElement::m_value
boost::optional< IWORKDurationFormat > & m_value
Definition: IWORKFormatElement.h:45
libetonyek::IWORKNumberFormatElement
Definition: IWORKFormatElement.h:48
name
const char * name
Definition: IWORKToken.cpp:43
libetonyek::IWORKDateTimeFormatElement::IWORKDateTimeFormatElement
IWORKDateTimeFormatElement(IWORKXMLParserState &state, boost::optional< IWORKDateTimeFormat > &value)
Definition: IWORKFormatElement.cpp:30
libetonyek::IWORKNumberFormatElement::m_value
boost::optional< IWORKNumberFormat > & m_value
Definition: IWORKFormatElement.h:58
libetonyek::IWORKDateTimeFormatElement::endOfElement
void endOfElement() override
Definition: IWORKFormatElement.cpp:52
IWORKPropertyMap.h
libetonyek::IWORKXMLContextBase
Definition: IWORKXMLContextBase.h:27
libetonyek::IWORKDateTimeFormatElement
Definition: IWORKFormatElement.h:22
libetonyek::IWORKXMLParserState
Definition: IWORKXMLParserState.h:31
libetonyek::IWORKDurationFormatElement::attribute
void attribute(int name, const char *value) override
Definition: IWORKFormatElement.cpp:66
libetonyek::IWORKNumberFormatElement::attribute
void attribute(int name, const char *value) override
Definition: IWORKFormatElement.cpp:95
IWORKTypes.h
libetonyek::IWORKNumberFormatElement::IWORKNumberFormatElement
IWORKNumberFormatElement(IWORKXMLParserState &state, boost::optional< IWORKNumberFormat > &value)
Definition: IWORKFormatElement.cpp:88
libetonyek::IWORKDurationFormatElement
Definition: IWORKFormatElement.h:35