IWORKTable.h Source File documentation

IWORKTable.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 IWORKTABLE_H_INCLUDED
11 #define IWORKTABLE_H_INCLUDED
12
13 #include <deque>
14 #include <memory>
15
16 #include <boost/optional.hpp>
17
18 #include "IWORKStyle_fwd.h"
19 #include "IWORKTypes.h"
20 #include "IWORKOutputElements.h"
21
22 namespace libetonyek
23 {
24
25 class IWORKLanguageManager;
26 class IWORKText;
27 class IWORKTableRecorder;
28
29 class IWORKTable
30 {
31 struct Cell
32 {
33 IWORKOutputElements m_content;
34 unsigned m_columnSpan;
35 unsigned m_rowSpan;
36 bool m_covered;
37 IWORKFormulaPtr_t m_formula;
38 boost::optional<unsigned> m_formulaHC;
39 IWORKStylePtr_t m_style;
40 IWORKCellType m_type;
41 boost::optional<std::string> m_value;
42 boost::optional<IWORKDateTimeData> m_dateTime;
43
44 Cell();
45 };
46
47 typedef std::deque<Cell> Row_t;
48 typedef std::deque<Row_t> Table_t;
49
50 public:
51 enum CellType
52 {
53 CELL_TYPE_BODY,
54 CELL_TYPE_ALTERNATE_BODY,
55 CELL_TYPE_COLUMN_HEADER,
56 CELL_TYPE_ROW_HEADER,
57 CELL_TYPE_ROW_FOOTER
58 };
59
60 public:
61 explicit IWORKTable(const IWORKTableNameMapPtr_t &tableNameMap, const IWORKLanguageManager &langManager);
62
63 void setRecorder(const std::shared_ptr<IWORKTableRecorder> &recorder);
64 const std::shared_ptr<IWORKTableRecorder> &getRecorder() const;
65
66 void setSize(unsigned columns, unsigned rows);
67 void setHeaders(unsigned headerColumns, unsigned headerRows, unsigned footerRows);
68 void setBandedRows(bool banded = true);
69 void setRepeated(bool columns, bool rows);
70
71 void setOrder(int order);
72 void setStyle(const IWORKStylePtr_t &style);
73 void setSizes(const IWORKColumnSizes_t &columnSizes, const IWORKRowSizes_t &rowSizes);
74 void setBorders(const IWORKGridLineMap_t &verticalLines, const IWORKGridLineMap_t &horizontalLines);
75 void setBorders(const IWORKGridLineMap_t &verticalLeftLines, const IWORKGridLineMap_t &verticalRightLines,
76 const IWORKGridLineMap_t &horizontalTopLines, const IWORKGridLineMap_t &horizontalBottomLines);
77 void insertCell(unsigned column, unsigned row,
78 const boost::optional<std::string> &value = boost::none,
79 const std::shared_ptr<IWORKText> &text = std::shared_ptr<IWORKText>(),
80 const boost::optional<IWORKDateTimeData> &dateTime = boost::none,
81 unsigned columnSpan = 1, unsigned rowSpan = 1,
82 const IWORKFormulaPtr_t &formula = IWORKFormulaPtr_t(),
83 const boost::optional<unsigned> &formulaHC = boost::none,
84 const IWORKStylePtr_t &style = IWORKStylePtr_t(),
85 IWORKCellType type = IWORK_CELL_TYPE_TEXT);
86 void insertCoveredCell(unsigned column, unsigned row);
87
88 void draw(const librevenge::RVNGPropertyList &tableProps, IWORKOutputElements &elements, bool drawAsSimpleTable);
89
90 void setDefaultCellStyle(CellType type, const IWORKStylePtr_t &style);
91 void setDefaultLayoutStyle(CellType type, const IWORKStylePtr_t &style);
92 void setDefaultParagraphStyle(CellType type, const IWORKStylePtr_t &style);
93
94 boost::optional<int> getOrder() const;
95 IWORKStylePtr_t getStyle() const;
96 IWORKStylePtr_t getDefaultCellStyle(unsigned column, unsigned row) const;
97 IWORKStylePtr_t getDefaultLayoutStyle(unsigned column, unsigned row) const;
98 IWORKStylePtr_t getDefaultParagraphStyle(unsigned column, unsigned row) const;
99
100 private:
101 IWORKStylePtr_t getDefaultStyle(unsigned column, unsigned row, const IWORKStylePtr_t *group) const;
102
103 private:
104 const IWORKTableNameMapPtr_t m_tableNameMap;
105 const IWORKLanguageManager &m_langManager;
106
107 Table_t m_table;
108 IWORKStylePtr_t m_style;
109 boost::optional<int> m_order;
110 IWORKColumnSizes_t m_columnSizes;
111 IWORKRowSizes_t m_rowSizes;
112 IWORKGridLineMap_t m_verticalLines;
113 IWORKGridLineMap_t m_verticalRightLines; // if empty, m_verticalLines stores right/left line
114 IWORKGridLineMap_t m_horizontalLines;
115 IWORKGridLineMap_t m_horizontalBottomLines; // if empty, m_horizontalLines stores right/left line
116
117 unsigned m_rows;
118 unsigned m_columns;
119 unsigned m_headerRows;
120 unsigned m_footerRows;
121 unsigned m_headerColumns;
122 bool m_bandedRows;
123 bool m_headerRowsRepeated;
124 bool m_headerColumnsRepeated;
125
126 IWORKStylePtr_t m_defaultCellStyles[5];
127 IWORKStylePtr_t m_defaultLayoutStyles[5];
128 IWORKStylePtr_t m_defaultParaStyles[5];
129
130 std::shared_ptr<IWORKTableRecorder> m_recorder;
131 };
132
133 }
134
135 #endif // IWORKTABLE_H_INCLUDED
136
137 /* vim:set shiftwidth=2 softtabstop=2 expandtab: */
libetonyek::double_cast
double double_cast(const char *value)
Definition: libetonyek_xml.cpp:79
libetonyek::IWORKOutputElements::addCloseSpan
void addCloseSpan()
Definition: IWORKOutputElements.cpp:953
libetonyek::try_double_cast
boost::optional< double > try_double_cast(const char *value)
Definition: libetonyek_xml.cpp:84
libetonyek::IWORKToken::format
@ format
Definition: IWORKToken.h:530
libetonyek::IWORK_CELL_NUMBER_TYPE_SCIENTIFIC
@ IWORK_CELL_NUMBER_TYPE_SCIENTIFIC
Definition: IWORKEnum.h:92
libetonyek::IWORKTable::m_verticalRightLines
IWORKGridLineMap_t m_verticalRightLines
Definition: IWORKTable.h:113
libetonyek::IWORKTable::setDefaultLayoutStyle
void setDefaultLayoutStyle(CellType type, const IWORKStylePtr_t &style)
Definition: IWORKTable.cpp:653
libetonyek::IWORKOutputElements::addOpenTableCell
void addOpenTableCell(const librevenge::RVNGPropertyList &propList)
Definition: IWORKOutputElements.cpp:1118
m_rowSpan
const unsigned m_rowSpan
Definition: IWORKTableRecorder.cpp:154
libetonyek::writeBorder
void writeBorder(const IWORKStroke &stroke, const char *const name, librevenge::RVNGPropertyList &props)
Definition: libetonyek_utils.cpp:286
m_style
IWORKStylePtr_t m_style
Definition: IWORKPropertyMapElement.cpp:172
libetonyek
Definition: IWORKBezierElement.cpp:20
libetonyek::IWORKToken::none
@ none
Definition: IWORKToken.h:666
libetonyek::IWORKTable::Cell::m_columnSpan
unsigned m_columnSpan
Definition: IWORKTable.h:34
IWORKTableRecorder.h
libetonyek::IWORKToken::formula
@ formula
Definition: IWORKToken.h:224
libetonyek::IWORKLanguageManager
Definition: IWORKLanguageManager.h:23
libetonyek::IWORKTable::m_columns
unsigned m_columns
Definition: IWORKTable.h:118
libetonyek::IWORKToken::group
@ group
Definition: IWORKToken.h:244
libetonyek::IWORKTableNameMapPtr_t
std::shared_ptr< IWORKTableNameMap_t > IWORKTableNameMapPtr_t
Definition: IWORKTypes_fwd.h:34
libetonyek::IWORKTable::getDefaultCellStyle
IWORKStylePtr_t getDefaultCellStyle(unsigned column, unsigned row) const
Definition: IWORKTable.cpp:687
libetonyek::IWORKToken::SFTStrokeProperty
@ SFTStrokeProperty
Definition: IWORKToken.h:85
libetonyek::IWORKTable::m_horizontalLines
IWORKGridLineMap_t m_horizontalLines
Definition: IWORKTable.h:114
libetonyek::IWORKTable::getOrder
boost::optional< int > getOrder() const
Definition: IWORKTable.cpp:677
IWORKProperties.h
libetonyek::IWORKToken::type
@ type
Definition: IWORKToken.h:486
libetonyek::IWORK_CELL_TYPE_TEXT
@ IWORK_CELL_TYPE_TEXT
Definition: IWORKEnum.h:82
libetonyek::IWORKTable::setDefaultCellStyle
void setDefaultCellStyle(CellType type, const IWORKStylePtr_t &style)
Definition: IWORKTable.cpp:641
libetonyek::IWORKToken::SFTCellStylePropertyNumberFormat
@ SFTCellStylePropertyNumberFormat
Definition: IWORKToken.h:58
libetonyek::IWORKTable::setRecorder
void setRecorder(const std::shared_ptr< IWORKTableRecorder > &recorder)
Definition: IWORKTable.cpp:348
libetonyek::ETONYEK_EPOCH_BEGIN
const unsigned ETONYEK_EPOCH_BEGIN(978307200)
libetonyek::IWORKTable::m_style
IWORKStylePtr_t m_style
Definition: IWORKTable.h:108
libetonyek::IWORKTable::getRecorder
const std::shared_ptr< IWORKTableRecorder > & getRecorder() const
Definition: IWORKTable.cpp:353
libetonyek::IWORKTable::m_rows
unsigned m_rows
Definition: IWORKTable.h:117
libetonyek::IWORKTable::Cell
Definition: IWORKTable.h:31
libetonyek::IWORKToken::empty
@ empty
Definition: IWORKToken.h:656
libetonyek::IWORKTable::setSizes
void setSizes(const IWORKColumnSizes_t &columnSizes, const IWORKRowSizes_t &rowSizes)
Definition: IWORKTable.cpp:428
libetonyek::IWORKTable::Table_t
std::deque< Row_t > Table_t
Definition: IWORKTable.h:48
libetonyek::IWORKTable::m_langManager
const IWORKLanguageManager & m_langManager
Definition: IWORKTable.h:105
libetonyek::IWORKTable::setSize
void setSize(unsigned columns, unsigned rows)
Definition: IWORKTable.cpp:358
libetonyek::IWORKTable::m_defaultLayoutStyles
IWORKStylePtr_t m_defaultLayoutStyles[5]
Definition: IWORKTable.h:127
libetonyek::IWORKOutputElements::addCloseTable
void addCloseTable()
Definition: IWORKOutputElements.cpp:958
m_columnSpan
const unsigned m_columnSpan
Definition: IWORKTableRecorder.cpp:153
ETONYEK_DEBUG_MSG
#define ETONYEK_DEBUG_MSG(M)
Definition: libetonyek_utils.h:54
libetonyek::IWORKToken::row
@ row
Definition: IWORKToken.h:383
libetonyek::IWORKToken::SFTCellStylePropertyDurationFormat
@ SFTCellStylePropertyDurationFormat
Definition: IWORKToken.h:57
libetonyek::IWORKVerticalAlignment
IWORKVerticalAlignment
Definition: IWORKEnum.h:111
libetonyek::IWORKStyleStack
Representation of a dynamic inheritance of styles.
Definition: IWORKStyleStack.h:34
IWORKTable.h
libetonyek::IWORKTable::getDefaultStyle
IWORKStylePtr_t getDefaultStyle(unsigned column, unsigned row, const IWORKStylePtr_t *group) const
Definition: IWORKTable.cpp:702
libetonyek::IWORKTable::CELL_TYPE_BODY
@ CELL_TYPE_BODY
Definition: IWORKTable.h:53
m_formulaHC
const boost::optional< unsigned > m_formulaHC
Definition: IWORKOutputElements.cpp:333
libetonyek::PAG1Token::cell
@ cell
Definition: PAG1Token.h:64
libetonyek::IWORKToken::index
@ index
Definition: IWORKToken.h:564
libetonyek::IWORK_VERTICAL_ALIGNMENT_BOTTOM
@ IWORK_VERTICAL_ALIGNMENT_BOTTOM
Definition: IWORKEnum.h:115
libetonyek::IWORKTable::setBandedRows
void setBandedRows(bool banded=true)
Definition: IWORKTable.cpp:383
libetonyek::IWORK_VERTICAL_ALIGNMENT_MIDDLE
@ IWORK_VERTICAL_ALIGNMENT_MIDDLE
Definition: IWORKEnum.h:114
libetonyek::IWORKTable::m_columnSizes
IWORKColumnSizes_t m_columnSizes
Definition: IWORKTable.h:110
libetonyek::IWORKTable::setStyle
void setStyle(const IWORKStylePtr_t &style)
Definition: IWORKTable.cpp:417
libetonyek::IWORKToken::rows
@ rows
Definition: IWORKToken.h:385
libetonyek::IWORKTable::m_headerRows
unsigned m_headerRows
Definition: IWORKTable.h:119
libetonyek::IWORKTable::m_defaultParaStyles
IWORKStylePtr_t m_defaultParaStyles[5]
Definition: IWORKTable.h:128
libetonyek::IWORK_VERTICAL_ALIGNMENT_TOP
@ IWORK_VERTICAL_ALIGNMENT_TOP
Definition: IWORKEnum.h:113
libetonyek::IWORKTable::m_footerRows
unsigned m_footerRows
Definition: IWORKTable.h:120
libetonyek::IWORKStyleStack::has
bool has(const bool lookInParent=true) const
Definition: IWORKStyleStack.h:69
libetonyek::IWORKTable::setRepeated
void setRepeated(bool columns, bool rows)
Definition: IWORKTable.cpp:394
libetonyek::pt2in
double pt2in(const double d)
Convert a length from points to inches.
Definition: libetonyek_utils.cpp:225
libetonyek::IWORKTable::CELL_TYPE_ROW_FOOTER
@ CELL_TYPE_ROW_FOOTER
Definition: IWORKTable.h:57
libetonyek::IWORKTable::Cell::m_dateTime
boost::optional< IWORKDateTimeData > m_dateTime
Definition: IWORKTable.h:42
libetonyek::IWORKToken::columns
@ columns
Definition: IWORKToken.h:154
libetonyek::IWORKTable::getDefaultLayoutStyle
IWORKStylePtr_t getDefaultLayoutStyle(unsigned column, unsigned row) const
Definition: IWORKTable.cpp:692
libetonyek::PAG1Token::order
@ order
Definition: PAG1Token.h:43
libetonyek::IWORKTable::insertCoveredCell
void insertCoveredCell(unsigned column, unsigned row)
Definition: IWORKTable.cpp:509
libetonyek::IWORKOutputElements::addCloseTableRow
void addCloseTableRow()
Definition: IWORKOutputElements.cpp:968
libetonyek::IWORKOutputElements::addCloseTableCell
void addCloseTableCell()
Definition: IWORKOutputElements.cpp:963
libetonyek::IWORKOutputElements::addInsertCoveredTableCell
void addInsertCoveredTableCell(const librevenge::RVNGPropertyList &propList)
Definition: IWORKOutputElements.cpp:1013
libetonyek::IWORKToken::line
@ line
Definition: IWORKToken.h:298
libetonyek::IWORK_CELL_NUMBER_TYPE_DOUBLE
@ IWORK_CELL_NUMBER_TYPE_DOUBLE
Definition: IWORKEnum.h:93
libetonyek::IWORKTable::CellType
CellType
Definition: IWORKTable.h:51
libetonyek::IWORKOutputElements::addOpenParagraph
void addOpenParagraph(const librevenge::RVNGPropertyList &propList)
Definition: IWORKOutputElements.cpp:1098
libetonyek::IWORKTable::setBorders
void setBorders(const IWORKGridLineMap_t &verticalLines, const IWORKGridLineMap_t &horizontalLines)
Definition: IWORKTable.cpp:443
libetonyek::IWORKToken::c
@ c
Definition: IWORKToken.h:509
libetonyek::IWORKTable::Cell::m_formulaHC
boost::optional< unsigned > m_formulaHC
Definition: IWORKTable.h:38
libetonyek::IWORKStyleStack::get
const IWORKPropertyInfo< Property >::ValueType & get(const bool lookInParent=true) const
Definition: IWORKStyleStack.h:85
libetonyek::IWORKTable::m_rowSizes
IWORKRowSizes_t m_rowSizes
Definition: IWORKTable.h:111
libetonyek::IWORKTable::IWORKTable
IWORKTable(const IWORKTableNameMapPtr_t &tableNameMap, const IWORKLanguageManager &langManager)
Definition: IWORKTable.cpp:324
libetonyek::IWORKFormulaPtr_t
std::shared_ptr< IWORKFormula > IWORKFormulaPtr_t
Definition: IWORKTypes.h:123
m_content
IWORKMediaContentPtr_t & m_content
Definition: IWORKFillElement.cpp:319
libetonyek::IWORKTable::Cell::m_formula
IWORKFormulaPtr_t m_formula
Definition: IWORKTable.h:37
m_formula
const IWORKFormula m_formula
Definition: IWORKOutputElements.cpp:332
libetonyek::IWORKOutputElements::addOpenTable
void addOpenTable(const librevenge::RVNGPropertyList &propList)
Definition: IWORKOutputElements.cpp:1113
libetonyek::IWORKToken::val
@ val
Definition: IWORKToken.h:623
libetonyek::IWORKCellNumberType
IWORKCellNumberType
Definition: IWORKEnum.h:88
m_value
boost::optional< IWORKGradient > & m_value
Definition: IWORKFillElement.cpp:131
libetonyek::IWORK_CELL_TYPE_DURATION
@ IWORK_CELL_TYPE_DURATION
Definition: IWORKEnum.h:84
libetonyek::IWORKTable::setHeaders
void setHeaders(unsigned headerColumns, unsigned headerRows, unsigned footerRows)
Definition: IWORKTable.cpp:370
libetonyek::IWORKTable::getStyle
IWORKStylePtr_t getStyle() const
Definition: IWORKTable.cpp:682
libetonyek::IWORKGridLine_t
mdds::flat_segment_tree< unsigned, IWORKStylePtr_t > IWORKGridLine_t
Definition: IWORKTypes.h:121
libetonyek::IWORKToken::t
@ t
Definition: IWORKToken.h:420
libetonyek::IWORKToken::r
@ r
Definition: IWORKToken.h:373
libetonyek::IWORKTable::m_verticalLines
IWORKGridLineMap_t m_verticalLines
Definition: IWORKTable.h:112
libetonyek::IWORKToken::color
@ color
Definition: IWORKToken.h:151
libetonyek::IWORKTable::getDefaultParagraphStyle
IWORKStylePtr_t getDefaultParagraphStyle(unsigned column, unsigned row) const
Definition: IWORKTable.cpp:697
libetonyek::IWORK_CELL_TYPE_NUMBER
@ IWORK_CELL_TYPE_NUMBER
Definition: IWORKEnum.h:81
libetonyek::IWORKTable::setDefaultParagraphStyle
void setDefaultParagraphStyle(CellType type, const IWORKStylePtr_t &style)
Definition: IWORKTable.cpp:665
libetonyek::IWORKToken::string
@ string
Definition: IWORKToken.h:411
IWORKDocumentInterface.h
IWORKText.h
libetonyek::IWORKTable::Cell::m_rowSpan
unsigned m_rowSpan
Definition: IWORKTable.h:35
libetonyek::IWORKTable::m_headerColumnsRepeated
bool m_headerColumnsRepeated
Definition: IWORKTable.h:124
libetonyek_utils.h
libetonyek::IWORKTable::setOrder
void setOrder(int order)
Definition: IWORKTable.cpp:406
libetonyek::IWORKOutputElements::addOpenTableRow
void addOpenTableRow(const librevenge::RVNGPropertyList &propList)
Definition: IWORKOutputElements.cpp:1123
libetonyek::IWORKTable
Definition: IWORKTable.h:29
libetonyek::IWORKToken::column
@ column
Definition: IWORKToken.h:152
libetonyek::IWORKOutputElements::addInsertText
void addInsertText(const librevenge::RVNGString &text)
Definition: IWORKOutputElements.cpp:1038
libetonyek::IWORKToken::style
@ style
Definition: IWORKToken.h:414
libetonyek::IWORKTable::m_table
Table_t m_table
Definition: IWORKTable.h:107
IWORKTypes.h
libetonyek::IWORKTable::m_tableNameMap
const IWORKTableNameMapPtr_t m_tableNameMap
Definition: IWORKTable.h:104
libetonyek::IWORK_CELL_TYPE_DATE_TIME
@ IWORK_CELL_TYPE_DATE_TIME
Definition: IWORKEnum.h:83
libetonyek::IWORKTable::Cell::m_content
IWORKOutputElements m_content
Definition: IWORKTable.h:33
libetonyek::IWORKOutputElements::append
void append(const IWORKOutputElements &elements)
Definition: IWORKOutputElements.cpp:871
libetonyek::IWORKTable::m_defaultCellStyles
IWORKStylePtr_t m_defaultCellStyles[5]
Definition: IWORKTable.h:126
libetonyek::IWORKToken::SFTCellStylePropertyParagraphStyle
@ SFTCellStylePropertyParagraphStyle
Definition: IWORKToken.h:60
libetonyek::IWORKCellType
IWORKCellType
Definition: IWORKEnum.h:79
ETONYEK_NUM_ELEMENTS
#define ETONYEK_NUM_ELEMENTS(array)
Definition: libetonyek_utils.h:29
libetonyek::IWORKTable::CELL_TYPE_ROW_HEADER
@ CELL_TYPE_ROW_HEADER
Definition: IWORKTable.h:56
libetonyek::IWORKTable::m_horizontalBottomLines
IWORKGridLineMap_t m_horizontalBottomLines
Definition: IWORKTable.h:115
IWORKOutputElements.h
libetonyek::IWORKColumnSizes_t
std::deque< IWORKColumnRowSize > IWORKColumnSizes_t
Definition: IWORKTypes_fwd.h:22
libetonyek::IWORKTable::m_recorder
std::shared_ptr< IWORKTableRecorder > m_recorder
Definition: IWORKTable.h:130
libetonyek::IWORKTable::insertCell
void insertCell(unsigned column, unsigned row, const boost::optional< std::string > &value=boost::none, const std::shared_ptr< IWORKText > &text=std::shared_ptr< IWORKText >(), const boost::optional< IWORKDateTimeData > &dateTime=boost::none, unsigned columnSpan=1, unsigned rowSpan=1, const IWORKFormulaPtr_t &formula=IWORKFormulaPtr_t(), const boost::optional< unsigned > &formulaHC=boost::none, const IWORKStylePtr_t &style=IWORKStylePtr_t(), IWORKCellType type=IWORK_CELL_TYPE_TEXT)
Definition: IWORKTable.cpp:470
IWORKStyleStack.h
libetonyek::IWORKStylePtr_t
std::shared_ptr< IWORKStyle > IWORKStylePtr_t
Definition: IWORKStyle_fwd.h:21
libetonyek::IWORKToken::s
@ s
Definition: IWORKToken.h:387
libetonyek::IWORKTable::Row_t
std::deque< Cell > Row_t
Definition: IWORKTable.h:47
libetonyek::IWORKOutputElements::addCloseParagraph
void addCloseParagraph()
Definition: IWORKOutputElements.cpp:943
libetonyek::int_cast
int int_cast(const char *value)
Definition: libetonyek_xml.cpp:94
libetonyek::IWORK_CELL_TYPE_BOOL
@ IWORK_CELL_TYPE_BOOL
Definition: IWORKEnum.h:85
libetonyek::IWORKOutputElements::addOpenSpan
void addOpenSpan(const librevenge::RVNGPropertyList &propList)
Definition: IWORKOutputElements.cpp:1108
libetonyek::IWORKText::fillCharPropList
static void fillCharPropList(const IWORKStyleStack &style, const IWORKLanguageManager &langManager, librevenge::RVNGPropertyList &props)
Definition: IWORKText.cpp:79
m_type
boost::optional< IWORKGradientType > m_type
Definition: IWORKFillElement.cpp:132
libetonyek::IWORKRowSizes_t
std::deque< IWORKColumnRowSize > IWORKRowSizes_t
Definition: IWORKTypes_fwd.h:26
libetonyek::IWORKToken::padding
@ padding
Definition: IWORKToken.h:343
libetonyek::IWORK_CELL_NUMBER_TYPE_PERCENTAGE
@ IWORK_CELL_NUMBER_TYPE_PERCENTAGE
Definition: IWORKEnum.h:91
libetonyek::IWORKTable::CELL_TYPE_COLUMN_HEADER
@ CELL_TYPE_COLUMN_HEADER
Definition: IWORKTable.h:55
libetonyek::get
const ValueT & get(const detail::IWAFieldImpl< TagV, ValueT, Reader > &field)
Definition: IWAField.h:190
libetonyek::IWORKTable::Cell::m_value
boost::optional< std::string > m_value
Definition: IWORKTable.h:41
libetonyek::makeColor
librevenge::RVNGString makeColor(const IWORKColor &color)
Definition: libetonyek_utils.cpp:251
IWORKStyle_fwd.h
libetonyek::IWORKTable::Cell::m_style
IWORKStylePtr_t m_style
Definition: IWORKTable.h:39
libetonyek::IWORKToken::SFTCellStylePropertyLayoutStyle
@ SFTCellStylePropertyLayoutStyle
Definition: IWORKToken.h:59
libetonyek::IWORKTable::Cell::Cell
Cell()
Definition: IWORKTable.cpp:310
libetonyek::IWORKOutputElements::addOpenFormulaCell
void addOpenFormulaCell(const librevenge::RVNGPropertyList &propList, const IWORKFormula &formula, const boost::optional< unsigned > &formulaHC, const IWORKTableNameMapPtr_t &tableNameMap)
Definition: IWORKOutputElements.cpp:1053
libetonyek::IWORKTable::m_headerColumns
unsigned m_headerColumns
Definition: IWORKTable.h:121
libetonyek::IWORK_CELL_NUMBER_TYPE_CURRENCY
@ IWORK_CELL_NUMBER_TYPE_CURRENCY
Definition: IWORKEnum.h:90
libetonyek::IWORKTable::CELL_TYPE_ALTERNATE_BODY
@ CELL_TYPE_ALTERNATE_BODY
Definition: IWORKTable.h:54
libetonyek::IWORKToken::name
@ name
Definition: IWORKToken.h:578
libetonyek::IWORKTable::Cell::m_covered
bool m_covered
Definition: IWORKTable.h:36
libetonyek::IWORKToken::value
@ value
Definition: IWORKToken.h:624
libetonyek::IWORKTable::draw
void draw(const librevenge::RVNGPropertyList &tableProps, IWORKOutputElements &elements, bool drawAsSimpleTable)
Definition: IWORKTable.cpp:525
libetonyek::IWORKTable::Cell::m_type
IWORKCellType m_type
Definition: IWORKTable.h:40
m_dateTime
const boost::optional< IWORKDateTimeData > m_dateTime
Definition: IWORKTableRecorder.cpp:152
libetonyek::IWORKStyleStack::push
void push()
Push a style onto the active styles stack.
Definition: IWORKStyleStack.cpp:30
libetonyek::IWORKTable::m_order
boost::optional< int > m_order
Definition: IWORKTable.h:109
libetonyek::KEY1Token::gradient
@ gradient
Definition: KEY1Token.h:58
libetonyek::IWORKTable::m_headerRowsRepeated
bool m_headerRowsRepeated
Definition: IWORKTable.h:123
IWORKStyle.h
libetonyek::IWORKToken::opacity
@ opacity
Definition: IWORKToken.h:588
libetonyek::IWORKGridLineMap_t
std::map< unsigned, IWORKGridLine_t > IWORKGridLineMap_t
Definition: IWORKTypes.h:122
libetonyek::IWORKOutputElements
Definition: IWORKOutputElements.h:32
libetonyek_xml.h
libetonyek::IWORKToken::text
@ text
Definition: IWORKToken.h:465
libetonyek::IWORKTable::m_bandedRows
bool m_bandedRows
Definition: IWORKTable.h:122