IWORKFormulaElement.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 IWORKFORMULAELEMENT_H_INCLUDED
11#define IWORKFORMULAELEMENT_H_INCLUDED
12
13#include <boost/optional.hpp>
14
15#include "IWORKXMLContextBase.h"
16#include "IWORKXMLParserState.h"
17
18namespace libetonyek
19{
22{
23public:
24 explicit IWORKFoElement(IWORKXMLParserState &state);
25
26private:
27 void attribute(int name, const char *value) override;
28 IWORKXMLContextPtr_t element(int name) override;
29 void endOfElement() override;
30 const boost::optional<ID_t> &getId() const;
31
32private:
33 boost::optional<ID_t> m_id;
34 boost::optional<std::string> m_formula;
35 boost::optional<unsigned> m_hc;
36};
37
40{
41public:
43
44private:
45 void attribute(int name, const char *value) override;
46 IWORKXMLContextPtr_t element(int name) override;
47 void endOfElement() override;
48 const boost::optional<ID_t> &getId() const;
49
50private:
51 boost::optional<ID_t> m_id;
52 boost::optional<std::string> m_formula;
53 boost::optional<unsigned> m_hc;
54};
55
58{
59public:
61
62private:
63 void attribute(int name, const char *value) override;
64 IWORKXMLContextPtr_t element(int name) override;
65 void endOfElement() override;
66 const boost::optional<ID_t> &getId() const;
67
68private:
69 boost::optional<ID_t> m_id;
70 boost::optional<std::string> m_formula;
71 boost::optional<std::string> m_tableId;
72};
73
76{
77public:
78 explicit IWORKOfElement(IWORKXMLParserState &state);
79
80private:
81 void attribute(int name, const char *value) override;
82 IWORKXMLContextPtr_t element(int name) override;
83 void endOfElement() override;
84
85 boost::optional<ID_t> m_ref;
86 boost::optional<unsigned> m_hc;
87};
88}
89
90#endif // IWORKFORMULAELEMENT_H_INCLUDED
91
92/* vim:set shiftwidth=2 softtabstop=2 expandtab: */
class to parse the sf:fo element, ie. formula element
Definition IWORKFormulaElement.h:22
const boost::optional< ID_t > & getId() const
Definition IWORKFormulaElement.cpp:156
boost::optional< ID_t > m_id
Definition IWORKFormulaElement.h:33
void endOfElement() override
Definition IWORKFormulaElement.cpp:197
boost::optional< unsigned > m_hc
Definition IWORKFormulaElement.h:35
IWORKFoElement(IWORKXMLParserState &state)
Definition IWORKFormulaElement.cpp:148
void attribute(int name, const char *value) override
Definition IWORKFormulaElement.cpp:161
boost::optional< std::string > m_formula
Definition IWORKFormulaElement.h:34
class to parse the sf:formula element
Definition IWORKFormulaElement.h:40
const boost::optional< ID_t > & getId() const
Definition IWORKFormulaElement.cpp:274
boost::optional< std::string > m_formula
Definition IWORKFormulaElement.h:52
IWORKFormulaElement(IWORKXMLParserState &state)
Definition IWORKFormulaElement.cpp:266
void endOfElement() override
Definition IWORKFormulaElement.cpp:309
void attribute(int name, const char *value) override
Definition IWORKFormulaElement.cpp:279
boost::optional< unsigned > m_hc
Definition IWORKFormulaElement.h:53
boost::optional< ID_t > m_id
Definition IWORKFormulaElement.h:51
class to parse the sf:of element, ie formula offset element
Definition IWORKFormulaElement.h:76
void endOfElement() override
Definition IWORKFormulaElement.cpp:248
void attribute(int name, const char *value) override
Definition IWORKFormulaElement.cpp:218
boost::optional< unsigned > m_hc
Definition IWORKFormulaElement.h:86
IWORKOfElement(IWORKXMLParserState &state)
Definition IWORKFormulaElement.cpp:211
boost::optional< ID_t > m_ref
Definition IWORKFormulaElement.h:85
class to parse the sf:TableCellFormula element
Definition IWORKFormulaElement.h:58
IWORKTableCellFormulaElement(IWORKXMLParserState &state)
Definition IWORKFormulaElement.cpp:322
boost::optional< ID_t > m_id
Definition IWORKFormulaElement.h:69
boost::optional< std::string > m_tableId
Definition IWORKFormulaElement.h:71
void attribute(int name, const char *value) override
Definition IWORKFormulaElement.cpp:335
boost::optional< std::string > m_formula
Definition IWORKFormulaElement.h:70
void endOfElement() override
Definition IWORKFormulaElement.cpp:365
const boost::optional< ID_t > & getId() const
Definition IWORKFormulaElement.cpp:330
Definition IWORKXMLContextBase.h:28
Definition IWORKXMLParserState.h:32
@ value
Definition IWORKToken.h:631
@ element
Definition IWORKToken.h:192
@ name
Definition IWORKToken.h:585
Definition IWORKBezierElement.cpp:21
std::shared_ptr< IWORKXMLContext > IWORKXMLContextPtr_t
Definition IWORKXMLContext.h:20

Generated for libetonyek by doxygen 1.12.0