10 #ifndef IWORKTABLE_H_INCLUDED
11 #define IWORKTABLE_H_INCLUDED
18 #include <boost/optional.hpp>
27 class IWORKLanguageManager;
29 class IWORKTableRecorder;
65 void setRecorder(
const std::shared_ptr<IWORKTableRecorder> &recorder);
66 const std::shared_ptr<IWORKTableRecorder> &
getRecorder()
const;
70 void setHeaders(
unsigned headerColumns,
unsigned headerRows,
unsigned footerRows);
83 const std::shared_ptr<IWORKText> &
text = std::shared_ptr<IWORKText>(),
84 const boost::optional<IWORKDateTimeData> &dateTime =
boost::none,
85 unsigned columnSpan = 1,
unsigned rowSpan = 1,
87 const boost::optional<unsigned> &formulaHC =
boost::none,
92 void draw(
const librevenge::RVNGPropertyList &tableProps,
IWORKOutputElements &elements,
bool drawAsSimpleTable);
98 boost::optional<int>
getOrder()
const;
144 #endif // IWORKTABLE_H_INCLUDED
CellType
Definition: IWORKTable.h:53
void setHeaders(unsigned headerColumns, unsigned headerRows, unsigned footerRows)
Definition: IWORKTable.cpp:499
const std::shared_ptr< IWORKTableRecorder > & getRecorder() const
Definition: IWORKTable.cpp:477
Definition: IWORKOutputElements.h:32
boost::optional< IWORKDateTimeData > m_dateTime
Definition: IWORKTable.h:44
IWORKRowSizes_t m_rowSizes
Definition: IWORKTable.h:120
bool m_headerRowsRepeated
Definition: IWORKTable.h:132
bool m_headerColumnsRepeated
Definition: IWORKTable.h:133
IWORKStylePtr_t getDefaultLayoutStyle(unsigned column, unsigned row) const
Definition: IWORKTable.cpp:995
boost::optional< int > getOrder() const
Definition: IWORKTable.cpp:980
IWORKGridLineMap_t m_verticalRightLines
Definition: IWORKTable.h:122
void setSizes(const IWORKColumnSizes_t &columnSizes, const IWORKRowSizes_t &rowSizes)
Definition: IWORKTable.cpp:557
const IWORKLanguageManager & m_langManager
Definition: IWORKTable.h:111
Definition: IWORKTable.h:33
void setDefaultParagraphStyle(CellType type, const IWORKStylePtr_t &style)
Definition: IWORKTable.cpp:968
void setSize(unsigned columns, unsigned rows)
Definition: IWORKTable.cpp:487
IWORKGridLineMap_t m_horizontalBottomLines
Definition: IWORKTable.h:124
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:609
std::shared_ptr< IWORKStyle > IWORKStylePtr_t
Definition: IWORKStyle_fwd.h:21
Definition: IWORKTable.h:58
Definition: PAG1Token.h:43
Definition: IWORKToken.h:631
std::deque< Cell > Row_t
Definition: IWORKTable.h:49
std::deque< Row_t > Table_t
Definition: IWORKTable.h:50
IWORKOutputElements m_content
Definition: IWORKTable.h:35
IWORKStylePtr_t getStyle() const
Definition: IWORKTable.cpp:985
void setRepeated(bool columns, bool rows)
Definition: IWORKTable.cpp:523
Definition: IWORKToken.h:472
void setName(std::string const &name)
Definition: IWORKTable.cpp:482
unsigned m_headerColumns
Definition: IWORKTable.h:130
Definition: IWORKToken.h:674
Definition: IWORKToken.h:248
std::deque< IWORKColumnRowSize > IWORKRowSizes_t
Definition: IWORKTypes_fwd.h:26
Definition: IWORKToken.h:421
void setBorders(const IWORKGridLineMap_t &verticalLines, const IWORKGridLineMap_t &horizontalLines)
Definition: IWORKTable.cpp:572
std::deque< IWORKColumnRowSize > IWORKColumnSizes_t
Definition: IWORKTypes_fwd.h:22
std::map< std::pair< unsigned, unsigned >, IWORKOutputElements > m_commentMap
Definition: IWORKTable.h:113
IWORKStylePtr_t getDefaultCellStyle(unsigned column, unsigned row) const
Definition: IWORKTable.cpp:990
IWORKFormulaPtr_t m_formula
Definition: IWORKTable.h:39
IWORKColumnSizes_t m_columnSizes
Definition: IWORKTable.h:119
Definition: IWORKToken.h:392
void setDefaultLayoutStyle(CellType type, const IWORKStylePtr_t &style)
Definition: IWORKTable.cpp:956
Definition: IWORKEnum.h:82
IWORKGridLineMap_t m_verticalLines
Definition: IWORKTable.h:121
const char * name
Definition: IWORKToken.cpp:43
void draw(const librevenge::RVNGPropertyList &tableProps, IWORKOutputElements &elements, bool drawAsSimpleTable)
Definition: IWORKTable.cpp:740
std::shared_ptr< IWORKFormula > IWORKFormulaPtr_t
Definition: IWORKTypes.h:123
Table_t m_table
Definition: IWORKTable.h:115
boost::optional< std::string > writeFormat(IWORKOutputElements &elements, const IWORKStylePtr_t &style, const IWORKCellType type, boost::optional< std::string > &rvngValueType)
Definition: IWORKTable.cpp:664
unsigned m_rowSpan
Definition: IWORKTable.h:37
unsigned m_columns
Definition: IWORKTable.h:127
unsigned m_columnSpan
Definition: IWORKTable.h:36
void setOrder(int order)
Definition: IWORKTable.cpp:535
std::map< librevenge::RVNGString, std::string > m_formatNameMap
Definition: IWORKTable.h:112
Definition: IWORKTable.h:57
Definition: IWORKToken.h:158
Definition: IWORKTable.h:56
IWORKTable(const IWORKTableNameMapPtr_t &tableNameMap, const IWORKLanguageManager &langManager)
Definition: IWORKTable.cpp:445
std::shared_ptr< IWORKTableNameMap_t > IWORKTableNameMapPtr_t
Definition: IWORKTypes_fwd.h:34
std::map< unsigned, IWORKGridLine_t > IWORKGridLineMap_t
Definition: IWORKTypes.h:122
IWORKGridLineMap_t m_horizontalLines
Definition: IWORKTable.h:123
void setDefaultCellStyle(CellType type, const IWORKStylePtr_t &style)
Definition: IWORKTable.cpp:944
void setComment(unsigned column, unsigned row, IWORKOutputElements const &text)
Definition: IWORKTable.cpp:584
std::shared_ptr< IWORKTableRecorder > m_recorder
Definition: IWORKTable.h:139
Definition: IWORKLanguageManager.h:23
unsigned m_rows
Definition: IWORKTable.h:126
IWORKStylePtr_t getDefaultStyle(unsigned column, unsigned row, const IWORKStylePtr_t *group) const
Definition: IWORKTable.cpp:1005
void setRecorder(const std::shared_ptr< IWORKTableRecorder > &recorder)
Definition: IWORKTable.cpp:472
const IWORKTableNameMapPtr_t m_tableNameMap
Definition: IWORKTable.h:110
Definition: IWORKToken.h:418
Definition: IWORKToken.h:228
IWORKStylePtr_t m_style
Definition: IWORKTable.h:116
IWORKStylePtr_t m_defaultCellStyles[5]
Definition: IWORKTable.h:135
Definition: IWORKToken.h:156
Definition: IWORKTable.h:31
IWORKStylePtr_t m_defaultLayoutStyles[5]
Definition: IWORKTable.h:136
Definition: IWORKTable.h:55
boost::optional< int > m_order
Definition: IWORKTable.h:118
IWORKStylePtr_t m_style
Definition: IWORKTable.h:41
IWORKStylePtr_t m_defaultParaStyles[5]
Definition: IWORKTable.h:137
Definition: IWORKToken.h:493
IWORKStylePtr_t getDefaultParagraphStyle(unsigned column, unsigned row) const
Definition: IWORKTable.cpp:1000
void setBandedRows(bool banded=true)
Definition: IWORKTable.cpp:512
IWORKCellType m_type
Definition: IWORKTable.h:42
boost::optional< unsigned > m_formulaHC
Definition: IWORKTable.h:40
void insertCoveredCell(unsigned column, unsigned row)
Definition: IWORKTable.cpp:648
IWORKCellType
Definition: IWORKEnum.h:79
bool m_bandedRows
Definition: IWORKTable.h:131
Definition: IWORKToken.h:390
boost::optional< std::string > m_name
Definition: IWORKTable.h:117
unsigned m_footerRows
Definition: IWORKTable.h:129
Definition: IWORKTable.h:59
boost::optional< std::string > m_value
Definition: IWORKTable.h:43
void setStyle(const IWORKStylePtr_t &style)
Definition: IWORKTable.cpp:546
unsigned m_headerRows
Definition: IWORKTable.h:128
Cell()
Definition: IWORKTable.cpp:431
bool m_covered
Definition: IWORKTable.h:38