libetonyek::IWORKTable Class Reference

#include <IWORKTable.h>

List of all members.

Classes

struct  Cell

Public Types

enum  CellType {
  CELL_TYPE_BODY, CELL_TYPE_ALTERNATE_BODY, CELL_TYPE_COLUMN_HEADER, CELL_TYPE_ROW_HEADER,
  CELL_TYPE_ROW_FOOTER
}

Public Member Functions

 IWORKTable (const IWORKTableNameMapPtr_t &tableNameMap)
void setRecorder (const boost::shared_ptr< IWORKTableRecorder > &recorder)
const boost::shared_ptr
< IWORKTableRecorder > & 
getRecorder () const
void setSize (unsigned columns, unsigned rows)
void setHeaders (unsigned headerColumns, unsigned headerRows, unsigned footerRows)
void setBandedRows (bool banded=true)
void setRepeated (bool columns, bool rows)
void setStyle (const IWORKStylePtr_t &style)
void setSizes (const IWORKColumnSizes_t &columnSizes, const IWORKRowSizes_t &rowSizes)
void setBorders (const IWORKGridLineList_t &verticalLines, const IWORKGridLineList_t &horizontalLines)
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)
void insertCoveredCell (unsigned column, unsigned row)
void draw (const librevenge::RVNGPropertyList &tableProps, IWORKOutputElements &elements)
void setDefaultCellStyle (CellType type, const IWORKStylePtr_t &style)
void setDefaultLayoutStyle (CellType type, const IWORKStylePtr_t &style)
void setDefaultParagraphStyle (CellType type, const IWORKStylePtr_t &style)
IWORKStylePtr_t getDefaultCellStyle (unsigned column, unsigned row) const
IWORKStylePtr_t getDefaultLayoutStyle (unsigned column, unsigned row) const
IWORKStylePtr_t getDefaultParagraphStyle (unsigned column, unsigned row) const

Private Types

typedef std::deque< CellRow_t
typedef std::deque< Row_tTable_t

Private Member Functions

IWORKStylePtr_t getDefaultStyle (unsigned column, unsigned row, const IWORKStylePtr_t *group) const

Private Attributes

const IWORKTableNameMapPtr_t m_tableNameMap
Table_t m_table
IWORKStylePtr_t m_style
IWORKColumnSizes_t m_columnSizes
IWORKRowSizes_t m_rowSizes
IWORKGridLineList_t m_verticalLines
IWORKGridLineList_t m_horizontalLines
unsigned m_rows
unsigned m_columns
unsigned m_headerRows
unsigned m_footerRows
unsigned m_headerColumns
bool m_bandedRows
bool m_headerRowsRepeated
bool m_headerColumnsRepeated
IWORKStylePtr_t m_defaultCellStyles [5]
IWORKStylePtr_t m_defaultLayoutStyles [5]
IWORKStylePtr_t m_defaultParaStyles [5]
boost::shared_ptr
< IWORKTableRecorder
m_recorder

Member Typedef Documentation

typedef std::deque<Cell> libetonyek::IWORKTable::Row_t [private]
typedef std::deque<Row_t> libetonyek::IWORKTable::Table_t [private]

Member Enumeration Documentation

Enumerator:
CELL_TYPE_BODY 
CELL_TYPE_ALTERNATE_BODY 
CELL_TYPE_COLUMN_HEADER 
CELL_TYPE_ROW_HEADER 
CELL_TYPE_ROW_FOOTER 

Constructor & Destructor Documentation

libetonyek::IWORKTable::IWORKTable ( const IWORKTableNameMapPtr_t tableNameMap) [explicit]

Member Function Documentation

void libetonyek::IWORKTable::draw ( const librevenge::RVNGPropertyList &  tableProps,
IWORKOutputElements elements 
)
IWORKStylePtr_t libetonyek::IWORKTable::getDefaultCellStyle ( unsigned  column,
unsigned  row 
) const

Referenced by draw().

IWORKStylePtr_t libetonyek::IWORKTable::getDefaultLayoutStyle ( unsigned  column,
unsigned  row 
) const
IWORKStylePtr_t libetonyek::IWORKTable::getDefaultParagraphStyle ( unsigned  column,
unsigned  row 
) const
IWORKStylePtr_t libetonyek::IWORKTable::getDefaultStyle ( unsigned  column,
unsigned  row,
const IWORKStylePtr_t group 
) const [private]
const boost::shared_ptr< IWORKTableRecorder > & libetonyek::IWORKTable::getRecorder ( ) const
void libetonyek::IWORKTable::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 
)
void libetonyek::IWORKTable::insertCoveredCell ( unsigned  column,
unsigned  row 
)
void libetonyek::IWORKTable::setBandedRows ( bool  banded = true)
void libetonyek::IWORKTable::setBorders ( const IWORKGridLineList_t verticalLines,
const IWORKGridLineList_t horizontalLines 
)
void libetonyek::IWORKTable::setHeaders ( unsigned  headerColumns,
unsigned  headerRows,
unsigned  footerRows 
)
void libetonyek::IWORKTable::setRecorder ( const boost::shared_ptr< IWORKTableRecorder > &  recorder)
void libetonyek::IWORKTable::setRepeated ( bool  columns,
bool  rows 
)
void libetonyek::IWORKTable::setSize ( unsigned  columns,
unsigned  rows 
)
void libetonyek::IWORKTable::setSizes ( const IWORKColumnSizes_t columnSizes,
const IWORKRowSizes_t rowSizes 
)

Member Data Documentation

Referenced by setSize().

unsigned libetonyek::IWORKTable::m_rows [private]

Referenced by getDefaultStyle(), and setSize().


The documentation for this class was generated from the following files: