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
20namespace libetonyek
21{
22 class IWORKDateTimeFormatElement : public IWORKXMLEmptyContextBase
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
35 class IWORKDurationFormatElement : public IWORKXMLEmptyContextBase
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
48 class IWORKNumberFormatElement : public IWORKXMLEmptyContextBase
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: */
IWORKPropertyMap.h
IWORKTypes.h
IWORKXMLContextBase.h
libetonyek::IWORKDateTimeFormatElement
Definition: IWORKFormatElement.h:23
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::IWORKDateTimeFormatElement::endOfElement
void endOfElement() override
Definition: IWORKFormatElement.cpp:52
libetonyek::IWORKDurationFormatElement
Definition: IWORKFormatElement.h:36
libetonyek::IWORKDurationFormatElement::attribute
void attribute(int name, const char *value) override
Definition: IWORKFormatElement.cpp:66
libetonyek::IWORKDurationFormatElement::endOfElement
void endOfElement() override
Definition: IWORKFormatElement.cpp:81
libetonyek::IWORKDurationFormatElement::m_value
boost::optional< IWORKDurationFormat > & m_value
Definition: IWORKFormatElement.h:45
libetonyek::IWORKNumberFormatElement
Definition: IWORKFormatElement.h:49
libetonyek::IWORKNumberFormatElement::endOfElement
void endOfElement() override
Definition: IWORKFormatElement.cpp:143
libetonyek::IWORKNumberFormatElement::m_value
boost::optional< IWORKNumberFormat > & m_value
Definition: IWORKFormatElement.h:58
libetonyek::IWORKNumberFormatElement::attribute
void attribute(int name, const char *value) override
Definition: IWORKFormatElement.cpp:95
libetonyek::IWORKXMLContextBase
Definition: IWORKXMLContextBase.h:28
libetonyek::IWORKXMLParserState
Definition: IWORKXMLParserState.h:32
libetonyek
Definition: IWORKBezierElement.cpp:21