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
20namespace libetonyek
21{
23{
24public:
25 IWORKDateTimeFormatElement(IWORKXMLParserState &state, boost::optional<IWORKDateTimeFormat> &value);
26
27private:
28 void attribute(int name, const char *value) override;
29 void endOfElement() override;
30
31private:
32 boost::optional<IWORKDateTimeFormat> &m_value;
33};
34
36{
37public:
38 IWORKDurationFormatElement(IWORKXMLParserState &state, boost::optional<IWORKDurationFormat> &value);
39
40private:
41 void attribute(int name, const char *value) override;
42 void endOfElement() override;
43
44private:
45 boost::optional<IWORKDurationFormat> &m_value;
46};
47
49{
50public:
51 IWORKNumberFormatElement(IWORKXMLParserState &state, boost::optional<IWORKNumberFormat> &value);
52
53private:
54 void attribute(int name, const char *value) override;
55 void endOfElement() override;
56
57private:
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 attribute(int name, const char *value) override
Process an attribute.
Definition IWORKFormatElement.cpp:37
boost::optional< IWORKDateTimeFormat > & m_value
Definition IWORKFormatElement.h:32
IWORKDateTimeFormatElement(IWORKXMLParserState &state, boost::optional< IWORKDateTimeFormat > &value)
Definition IWORKFormatElement.cpp:30
void endOfElement() override
Signalize the end of an element.
Definition IWORKFormatElement.cpp:52
IWORKDurationFormatElement(IWORKXMLParserState &state, boost::optional< IWORKDurationFormat > &value)
Definition IWORKFormatElement.cpp:59
void attribute(int name, const char *value) override
Process an attribute.
Definition IWORKFormatElement.cpp:66
void endOfElement() override
Signalize the end of an element.
Definition IWORKFormatElement.cpp:81
boost::optional< IWORKDurationFormat > & m_value
Definition IWORKFormatElement.h:45
void endOfElement() override
Signalize the end of an element.
Definition IWORKFormatElement.cpp:143
boost::optional< IWORKNumberFormat > & m_value
Definition IWORKFormatElement.h:58
void attribute(int name, const char *value) override
Process an attribute.
Definition IWORKFormatElement.cpp:95
IWORKNumberFormatElement(IWORKXMLParserState &state, boost::optional< IWORKNumberFormat > &value)
Definition IWORKFormatElement.cpp:88
Definition IWORKXMLParserState.h:32
@ value
Definition IWORKToken.h:631
@ name
Definition IWORKToken.h:585
Definition IWORKBezierElement.cpp:21
IWORKXMLContextBase< IWORKXMLContextEmpty, IWORKXMLParserState > IWORKXMLEmptyContextBase
Definition IWORKXMLContextBase.h:127

Generated for libetonyek by doxygen 1.13.2