IWORKTableInfoElement.h Source File documentation

IWORKTableInfoElement.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 IWORKTABLEINFOELEMENT_H_INCLUDED
11 #define IWORKTABLEINFOELEMENT_H_INCLUDED
12
13 #include <boost/optional.hpp>
14 #include "IWORKStyle_fwd.h"
15 #include "IWORKTypes.h"
16
17 #include "IWORKXMLContextBase.h"
18
19 namespace libetonyek
20 {
21 class IWORKTableInfoElement : public IWORKXMLElementContextBase
22 {
23 public:
24 explicit IWORKTableInfoElement(IWORKXMLParserState &state);
25
26 private:
27 void startOfElement() override;
28 IWORKXMLContextPtr_t element(int name) override;
29 void endOfElement() override;
30
31 IWORKStylePtr_t m_style;
32 boost::optional<IWORKWrap> m_wrap;
33 };
34 }
35
36 #endif // IWORKTABLEINFOELEMENT_H_INCLUDED
37
38 /* vim:set shiftwidth=2 softtabstop=2 expandtab: */
libetonyek::try_double_cast
boost::optional< double > try_double_cast(const char *value)
Definition: libetonyek_xml.cpp:84
libetonyek::IWORKTableInfoElement::element
IWORKXMLContextPtr_t element(int name) override
Definition: IWORKTableInfoElement.cpp:668
IWORKNumberElement.h
libetonyek::IWORKToken::tableInfoTable
@ tableInfoTable
Definition: IWORKToken.h:445
libetonyek::IWORKXMLEmptyContextBase
IWORKXMLContextBase< IWORKXMLContextEmpty, IWORKXMLParserState > IWORKXMLEmptyContextBase
Definition: IWORKXMLContextBase.h:128
libetonyek::IWORKToken::tableCellContent
@ tableCellContent
Definition: IWORKToken.h:437
IWORKTextStorageElement.h
IWORKDictionary.h
IWORKGeometryElement.h
m_style
IWORKStylePtr_t m_style
Definition: IWORKPropertyMapElement.cpp:172
libetonyek
Definition: IWORKBezierElement.cpp:20
libetonyek::KEY1Token::table
@ table
Definition: KEY1Token.h:198
m_tableNameMap
const IWORKTableNameMapPtr_t & m_tableNameMap
Definition: IWORKOutputElements.cpp:334
libetonyek::IWORKToken::tableCellMaxYSide_ref
@ tableCellMaxYSide_ref
Definition: IWORKToken.h:442
m_hasHeaderRow
bool m_hasHeaderRow
Definition: IWORKTableInfoElement.cpp:570
m_rowsVector
std::deque< IWORKTableVector > & m_rowsVector
Definition: IWORKTableInfoElement.cpp:477
libetonyek::IWORKToken::ID
@ ID
Definition: IWORKToken.h:499
m_tableId
boost::optional< std::string > m_tableId
Definition: IWORKTableInfoElement.cpp:567
m_id
boost::optional< ID_t > m_id
Definition: IWORKTableInfoElement.cpp:566
libetonyek::IWORKXMLContextPtr_t
std::shared_ptr< IWORKXMLContext > IWORKXMLContextPtr_t
Definition: IWORKXMLContext.h:18
libetonyek::IWORK_CELL_TYPE_TEXT
@ IWORK_CELL_TYPE_TEXT
Definition: IWORKEnum.h:82
libetonyek::IWORKToken::NS_URI_SFA
@ NS_URI_SFA
Definition: IWORKToken.h:689
libetonyek::IWORKTableInfoElement
Definition: IWORKTableInfoElement.h:21
m_value
boost::optional< double > m_value
Definition: IWORKTableInfoElement.cpp:108
libetonyek::IWORKTable::m_langManager
const IWORKLanguageManager & m_langManager
Definition: IWORKTable.h:105
m_maxXBorderRef
boost::optional< ID_t > m_maxXBorderRef
Definition: IWORKTableInfoElement.cpp:161
libetonyek::IWORKToken::tableModelIsHeaderColumn
@ tableModelIsHeaderColumn
Definition: IWORKToken.h:611
ETONYEK_DEBUG_MSG
#define ETONYEK_DEBUG_MSG(M)
Definition: libetonyek_utils.h:54
libetonyek::KEY2Token::i
@ i
Definition: KEY2Token.h:101
IWORKFormulaElement.h
libetonyek::IWORKToken::row
@ row
Definition: IWORKToken.h:383
libetonyek::IWORKTextPtr_t
std::shared_ptr< IWORKText > IWORKTextPtr_t
Definition: IWORKText_fwd.h:18
IWORKTable.h
libetonyek::IWORKTableInfoElement::endOfElement
void endOfElement() override
Definition: IWORKTableInfoElement.cpp:687
libetonyek::IWORKToken::tableCellMinYSide_ref
@ tableCellMinYSide_ref
Definition: IWORKToken.h:441
libetonyek::try_int_cast
boost::optional< int > try_int_cast(const char *value)
Definition: libetonyek_xml.cpp:99
IWORKTableInfoElement.h
IWORKStyleContainer.h
libetonyek::PAG1Token::cell
@ cell
Definition: PAG1Token.h:64
m_columnsCell
std::deque< IWORKTableCell > & m_columnsCell
Definition: IWORKTableInfoElement.cpp:358
libetonyek::IWORKTableInfoElement::IWORKTableInfoElement
IWORKTableInfoElement(IWORKXMLParserState &state)
Definition: IWORKTableInfoElement.cpp:653
libetonyek::IWORKXMLContextBase::isCollector
bool isCollector() const
Definition: IWORKXMLContextBase.h:59
m_styleRef
boost::optional< ID_t > m_styleRef
Definition: IWORKTableInfoElement.cpp:160
libetonyek::IWORKXMLParserState
Definition: IWORKXMLParserState.h:31
libetonyek::IWORKToken::tableModelPartitionSource
@ tableModelPartitionSource
Definition: IWORKToken.h:447
libetonyek::IWORKToken::tableCellFormula
@ tableCellFormula
Definition: IWORKToken.h:438
libetonyek::IWORKTableInfoElement::m_wrap
boost::optional< IWORKWrap > m_wrap
Definition: IWORKTableInfoElement.h:32
IWORKMutableArrayElement.h
m_minYBorderRef
boost::optional< ID_t > m_minYBorderRef
Definition: IWORKTableInfoElement.cpp:161
libetonyek::IWORKToken::col
@ col
Definition: IWORKToken.h:150
libetonyek::IWORKToken::tableModelVectors
@ tableModelVectors
Definition: IWORKToken.h:450
libetonyek::IWORKTableInfoElement::m_style
IWORKStylePtr_t m_style
Definition: IWORKTableInfoElement.h:31
libetonyek::IWORKToken::line
@ line
Definition: IWORKToken.h:298
libetonyek::IWORKToken::tableCellArrayCellsByRow
@ tableCellArrayCellsByRow
Definition: IWORKToken.h:436
libetonyek::IWORKTableDataPtr_t
std::shared_ptr< IWORKTableData > IWORKTableDataPtr_t
Definition: IWORKTypes_fwd.h:76
libetonyek::IWORKXMLContextBase::getCollector
Collector & getCollector() const
Definition: IWORKXMLContextBase.h:49
libetonyek::bool_cast
bool bool_cast(const char *value)
Convert string value to bool.
Definition: libetonyek_xml.cpp:56
m_maxYBorderRef
boost::optional< ID_t > m_maxYBorderRef
Definition: IWORKTableInfoElement.cpp:161
libetonyek::IWORKToken::tableCellMaxXSide_ref
@ tableCellMaxXSide_ref
Definition: IWORKToken.h:440
libetonyek::IWORKToken::number
@ number
Definition: IWORKToken.h:331
libetonyek::IWORKToken::tableCellValue
@ tableCellValue
Definition: IWORKToken.h:444
libetonyek::IWORKGridLine_t
mdds::flat_segment_tree< unsigned, IWORKStylePtr_t > IWORKGridLine_t
Definition: IWORKTypes.h:121
libetonyek::IWORKToken::element
@ element
Definition: IWORKToken.h:188
libetonyek::IWORKToken::tableVectorBegin
@ tableVectorBegin
Definition: IWORKToken.h:455
libetonyek::IWORKToken::tableVectorAlong
@ tableVectorAlong
Definition: IWORKToken.h:451
libetonyek::IWORK_CELL_TYPE_NUMBER
@ IWORK_CELL_TYPE_NUMBER
Definition: IWORKEnum.h:81
IWORKText.h
libetonyek::IWORKToken::pos
@ pos
Definition: IWORKToken.h:592
libetonyek::IWORKToken::column
@ column
Definition: IWORKToken.h:152
libetonyek::IWORKToken::style
@ style
Definition: IWORKToken.h:414
IWORKTypes.h
libetonyek::IWORKTableInfoElement::startOfElement
void startOfElement() override
Definition: IWORKTableInfoElement.cpp:660
libetonyek::IWORKXMLContextBase
Definition: IWORKXMLContextBase.h:27
IWORKXMLParserState.h
libetonyek::IWORKXMLElementContextBase
IWORKXMLContextBase< IWORKXMLContextElement, IWORKXMLParserState > IWORKXMLElementContextBase
Definition: IWORKXMLContextBase.h:125
IWORKStringElement.h
libetonyek::IWORKToken::text_storage
@ text_storage
Definition: IWORKToken.h:471
IWORKCollector.h
libetonyek::IWORKToken::tableCellStyle_ref
@ tableCellStyle_ref
Definition: IWORKToken.h:443
libetonyek::IWORKToken::tableVectorArrayColumnVectors
@ tableVectorArrayColumnVectors
Definition: IWORKToken.h:453
libetonyek::IWORKToken::wrap
@ wrap
Definition: IWORKToken.h:496
libetonyek::IWORKToken::tableVectorEnd
@ tableVectorEnd
Definition: IWORKToken.h:456
libetonyek::IWORKToken::NS_URI_SF
@ NS_URI_SF
Definition: IWORKToken.h:688
libetonyek::IWORKStylePtr_t
std::shared_ptr< IWORKStyle > IWORKStylePtr_t
Definition: IWORKStyle_fwd.h:21
IWORKXMLContextBase.h
libetonyek::IWORKToken::tableVectorStyle_ref
@ tableVectorStyle_ref
Definition: IWORKToken.h:457
m_rowsCell
std::deque< IWORKTableCell > & m_rowsCell
Definition: IWORKTableInfoElement.cpp:359
libetonyek::IWORKToken::s
@ s
Definition: IWORKToken.h:387
m_dict
std::unordered_map< ID_t, std::deque< IWORKTableCell > > m_dict
Definition: IWORKTableInfoElement.cpp:357
m_minXBorderRef
boost::optional< ID_t > m_minXBorderRef
Definition: IWORKTableInfoElement.cpp:161
libetonyek::IWORKToken::tableVectorAxis
@ tableVectorAxis
Definition: IWORKToken.h:454
libetonyek::IWORKToken::tableCellPreferredHeight
@ tableCellPreferredHeight
Definition: IWORKToken.h:610
IWORKToken.h
libetonyek::IWORKToken::tableVectorArrayRowVectors
@ tableVectorArrayRowVectors
Definition: IWORKToken.h:452
libetonyek::get
const ValueT & get(const detail::IWAFieldImpl< TagV, ValueT, Reader > &field)
Definition: IWAField.h:190
m_hasHeaderColumn
bool m_hasHeaderColumn
Definition: IWORKTableInfoElement.cpp:569
IWORKRefContext.h
IWORKPushCollector.h
IWORKWrapElement.h
IWORKStyle_fwd.h
libetonyek::IWORKToken::tableModelStyle_ref
@ tableModelStyle_ref
Definition: IWORKToken.h:448
libetonyek::IWORKToken::geometry
@ geometry
Definition: IWORKToken.h:232
libetonyek::IWORKToken::tableCellMinXSide_ref
@ tableCellMinXSide_ref
Definition: IWORKToken.h:439
libetonyek::IWORKToken::tableModelIsHeaderRow
@ tableModelIsHeaderRow
Definition: IWORKToken.h:612
libetonyek::IWORKToken::name
@ name
Definition: IWORKToken.h:578
libetonyek::IWORKToken::value
@ value
Definition: IWORKToken.h:624
libetonyek::IWORKToken::tableCellArrayCellsByColumn
@ tableCellArrayCellsByColumn
Definition: IWORKToken.h:435
libetonyek::IWORKToken::tableModelCells
@ tableModelCells
Definition: IWORKToken.h:446
libetonyek_xml.h
libetonyek::IWORKToken::text
@ text
Definition: IWORKToken.h:465
libetonyek::IWORKToken::tableModelTableID
@ tableModelTableID
Definition: IWORKToken.h:449
libetonyek::IWORKXMLContextBase::getState
State & getState()
Definition: IWORKXMLContextBase.h:43
m_columnsVector
std::deque< IWORKTableVector > & m_columnsVector
Definition: IWORKTableInfoElement.cpp:476