10 #ifndef IWORKTABLE_H_INCLUDED
11 #define IWORKTABLE_H_INCLUDED
13 #include <boost/optional.hpp>
14 #include <boost/shared_ptr.hpp>
26 class IWORKTableRecorder;
60 void setRecorder(
const boost::shared_ptr<IWORKTableRecorder> &recorder);
61 const boost::shared_ptr<IWORKTableRecorder> &
getRecorder()
const;
64 void setHeaders(
unsigned headerColumns,
unsigned headerRows,
unsigned footerRows);
72 const boost::optional<std::string> &value =
boost::none,
73 const boost::shared_ptr<IWORKText> &
text = boost::shared_ptr<IWORKText>(),
74 unsigned columnSpan = 1,
unsigned rowSpan = 1,
75 const boost::optional<IWORKFormula> &formula =
boost::none,
121 #endif // IWORKTABLE_H_INCLUDED
CellType
Definition: IWORKTable.h:48
void setHeaders(unsigned headerColumns, unsigned headerRows, unsigned footerRows)
Definition: IWORKTable.cpp:248
Definition: IWORKBezierElement.cpp:18
Definition: IWORKOutputElements.h:30
boost::optional< IWORKFormula > m_formula
Definition: IWORKTable.h:36
IWORKRowSizes_t m_rowSizes
Definition: IWORKTable.h:99
bool m_headerRowsRepeated
Definition: IWORKTable.h:109
bool m_headerColumnsRepeated
Definition: IWORKTable.h:110
IWORKStylePtr_t getDefaultLayoutStyle(unsigned column, unsigned row) const
Definition: IWORKTable.cpp:481
boost::shared_ptr< IWORKStyle > IWORKStylePtr_t
Definition: IWORKStyle_fwd.h:21
void setSizes(const IWORKColumnSizes_t &columnSizes, const IWORKRowSizes_t &rowSizes)
Definition: IWORKTable.cpp:295
Definition: IWORKTable.h:30
void setDefaultParagraphStyle(CellType type, const IWORKStylePtr_t &style)
Definition: IWORKTable.cpp:464
void setSize(unsigned columns, unsigned rows)
Definition: IWORKTable.cpp:236
Definition: IWORKTable.h:53
std::deque< Cell > Row_t
Definition: IWORKTable.h:44
std::deque< Row_t > Table_t
Definition: IWORKTable.h:45
IWORKOutputElements m_content
Definition: IWORKTable.h:32
void setRepeated(bool columns, bool rows)
Definition: IWORKTable.cpp:272
Definition: IWORKToken.h:270
unsigned m_headerColumns
Definition: IWORKTable.h:107
boost::shared_ptr< IWORKTableRecorder > m_recorder
Definition: IWORKTable.h:116
Definition: IWORKToken.h:380
void setRecorder(const boost::shared_ptr< IWORKTableRecorder > &recorder)
Definition: IWORKTable.cpp:226
Definition: IWORKToken.h:147
Definition: IWORKToken.h:254
std::vector< IWORKGridLine_t > IWORKGridLineList_t
Definition: IWORKTypes.h:102
IWORKStylePtr_t getDefaultCellStyle(unsigned column, unsigned row) const
Definition: IWORKTable.cpp:476
IWORKColumnSizes_t m_columnSizes
Definition: IWORKTable.h:98
Definition: IWORKToken.h:231
void setDefaultLayoutStyle(CellType type, const IWORKStylePtr_t &style)
Definition: IWORKTable.cpp:452
Definition: IWORKEnum.h:73
IWORKTable(const IWORKTableNameMapPtr_t &tableNameMap)
Definition: IWORKTable.cpp:207
const boost::shared_ptr< IWORKTableRecorder > & getRecorder() const
Definition: IWORKTable.cpp:231
IWORKGridLineList_t m_horizontalLines
Definition: IWORKTable.h:101
IWORKGridLineList_t m_verticalLines
Definition: IWORKTable.h:100
Table_t m_table
Definition: IWORKTable.h:96
void draw(const librevenge::RVNGPropertyList &tableProps, IWORKOutputElements &elements)
Definition: IWORKTable.cpp:361
unsigned m_rowSpan
Definition: IWORKTable.h:34
unsigned m_columns
Definition: IWORKTable.h:104
unsigned m_columnSpan
Definition: IWORKTable.h:33
std::deque< double > IWORKColumnSizes_t
Definition: IWORKTypes_fwd.h:23
std::deque< double > IWORKRowSizes_t
Definition: IWORKTypes_fwd.h:25
Definition: IWORKTable.h:52
Definition: IWORKToken.h:82
Definition: IWORKTable.h:51
boost::shared_ptr< IWORKTableNameMap_t > IWORKTableNameMapPtr_t
Definition: IWORKTypes_fwd.h:33
void setDefaultCellStyle(CellType type, const IWORKStylePtr_t &style)
Definition: IWORKTable.cpp:440
unsigned m_rows
Definition: IWORKTable.h:103
void insertCell(unsigned column, unsigned row, const boost::optional< std::string > &value=boost::none, const boost::shared_ptr< IWORKText > &text=boost::shared_ptr< IWORKText >(), unsigned columnSpan=1, unsigned rowSpan=1, const boost::optional< IWORKFormula > &formula=boost::none, const IWORKStylePtr_t &style=IWORKStylePtr_t(), IWORKCellType type=IWORK_CELL_TYPE_TEXT)
Definition: IWORKTable.cpp:322
IWORKStylePtr_t getDefaultStyle(unsigned column, unsigned row, const IWORKStylePtr_t *group) const
Definition: IWORKTable.cpp:491
const IWORKTableNameMapPtr_t m_tableNameMap
Definition: IWORKTable.h:94
IWORKStylePtr_t m_style
Definition: IWORKTable.h:97
IWORKStylePtr_t m_defaultCellStyles[5]
Definition: IWORKTable.h:112
Definition: IWORKToken.h:80
Definition: IWORKTable.h:28
IWORKStylePtr_t m_defaultLayoutStyles[5]
Definition: IWORKTable.h:113
Definition: IWORKTable.h:50
IWORKStylePtr_t m_style
Definition: IWORKTable.h:37
IWORKStylePtr_t m_defaultParaStyles[5]
Definition: IWORKTable.h:114
Definition: IWORKToken.h:281
IWORKStylePtr_t getDefaultParagraphStyle(unsigned column, unsigned row) const
Definition: IWORKTable.cpp:486
void setBandedRows(bool banded=true)
Definition: IWORKTable.cpp:261
void setBorders(const IWORKGridLineList_t &verticalLines, const IWORKGridLineList_t &horizontalLines)
Definition: IWORKTable.cpp:310
IWORKCellType m_type
Definition: IWORKTable.h:38
void insertCoveredCell(unsigned column, unsigned row)
Definition: IWORKTable.cpp:345
IWORKCellType
Definition: IWORKEnum.h:70
bool m_bandedRows
Definition: IWORKTable.h:108
unsigned m_footerRows
Definition: IWORKTable.h:106
Definition: IWORKTable.h:54
boost::optional< std::string > m_value
Definition: IWORKTable.h:39
void setStyle(const IWORKStylePtr_t &style)
Definition: IWORKTable.cpp:284
unsigned m_headerRows
Definition: IWORKTable.h:105
Cell()
Definition: IWORKTable.cpp:195
bool m_covered
Definition: IWORKTable.h:35