LotusSpreadsheetInternal::Spreadsheet Class Reference

the spreadsheet of a LotusSpreadsheet More...

Public Member Functions

 Spreadsheet ()
 a constructor More...
 
CellgetCell (RVNGInputStreamPtr input, Vec2i const &pos)
 return a cell corresponding to a spreadsheet, create one if needed More...
 
void setColumnWidthInChar (int col, int w=-1)
 set the columns size More...
 
float getRowHeight (int row) const
 returns the row size in point More...
 
void setRowHeight (int row, int h)
 set the rows size More...
 
Vec2f getPosition (Vec2i const &cell) const
 returns the position corresponding to a cell More...
 
void compressRowHeights ()
 try to compress the list of row height More...
 
std::vector< float > getColumnWidths (std::vector< int > &repeated) const
 convert the m_widthColsInChar, m_rowHeightMap in a vector of of point size More...
 
int getRowStyleId (int row) const
 returns the row style id corresponding to a sheetId (or -1) More...
 
bool empty () const
 returns true if the spreedsheet is empty More...
 

Public Attributes

librevenge::RVNGString m_name
 the sheet name More...
 
int m_numCols
 the number of columns More...
 
int m_numRows
 the number of rows More...
 
std::map< int, Vec2im_boundsColsMap
 a map used to stored the min/max row of each columns More...
 
std::vector< int > m_widthColsInChar
 the column size in char More...
 
std::map< Vec2i, int > m_rowHeightMap
 the map Vec2i(min row, max row) to size in points More...
 
int m_heightDefault
 the default row size in point More...
 
std::vector< int > m_rowPageBreaksList
 the list of row page break More...
 
std::map< Vec2i, Cellm_positionToCellMap
 a map cell to not empty cells More...
 
std::map< Vec2i, size_t > m_rowToStyleIdMap
 map Vec2i(min row, max row) to state row style id More...
 
std::map< int, ExtraRowStylesm_rowToExtraStyleMap
 map row to extra style More...
 

Detailed Description

the spreadsheet of a LotusSpreadsheet

Constructor & Destructor Documentation

§ Spreadsheet()

LotusSpreadsheetInternal::Spreadsheet::Spreadsheet ( )
inline

a constructor

Member Function Documentation

§ compressRowHeights()

void LotusSpreadsheetInternal::Spreadsheet::compressRowHeights ( )
inline

try to compress the list of row height

Referenced by LotusSpreadsheet::sendSpreadsheet().

§ empty()

bool LotusSpreadsheetInternal::Spreadsheet::empty ( ) const
inline

returns true if the spreedsheet is empty

§ getCell()

Cell& LotusSpreadsheetInternal::Spreadsheet::getCell ( RVNGInputStreamPtr  input,
Vec2i const &  pos 
)
inline

return a cell corresponding to a spreadsheet, create one if needed

Referenced by LotusSpreadsheet::readCell().

§ getColumnWidths()

std::vector<float> LotusSpreadsheetInternal::Spreadsheet::getColumnWidths ( std::vector< int > &  repeated) const
inline

convert the m_widthColsInChar, m_rowHeightMap in a vector of of point size

Referenced by LotusSpreadsheet::sendSpreadsheet().

§ getPosition()

Vec2f LotusSpreadsheetInternal::Spreadsheet::getPosition ( Vec2i const &  cell) const
inline

returns the position corresponding to a cell

Referenced by LotusSpreadsheet::getLeftTopPosition().

§ getRowHeight()

float LotusSpreadsheetInternal::Spreadsheet::getRowHeight ( int  row) const
inline

returns the row size in point

Referenced by LotusSpreadsheet::sendSpreadsheet().

§ getRowStyleId()

int LotusSpreadsheetInternal::Spreadsheet::getRowStyleId ( int  row) const
inline

returns the row style id corresponding to a sheetId (or -1)

Referenced by LotusSpreadsheet::sendRowContent().

§ setColumnWidthInChar()

void LotusSpreadsheetInternal::Spreadsheet::setColumnWidthInChar ( int  col,
int  w = -1 
)
inline

set the columns size

Referenced by LotusSpreadsheet::readColumnSizes().

§ setRowHeight()

void LotusSpreadsheetInternal::Spreadsheet::setRowHeight ( int  row,
int  h 
)
inline

Member Data Documentation

§ m_boundsColsMap

std::map<int, Vec2i> LotusSpreadsheetInternal::Spreadsheet::m_boundsColsMap

a map used to stored the min/max row of each columns

Referenced by LotusSpreadsheet::readColumnDefinition().

§ m_heightDefault

int LotusSpreadsheetInternal::Spreadsheet::m_heightDefault

the default row size in point

§ m_name

librevenge::RVNGString LotusSpreadsheetInternal::Spreadsheet::m_name

the sheet name

§ m_numCols

int LotusSpreadsheetInternal::Spreadsheet::m_numCols

the number of columns

§ m_numRows

int LotusSpreadsheetInternal::Spreadsheet::m_numRows

the number of rows

§ m_positionToCellMap

std::map<Vec2i, Cell> LotusSpreadsheetInternal::Spreadsheet::m_positionToCellMap

a map cell to not empty cells

Referenced by LotusSpreadsheet::sendRowContent(), and LotusSpreadsheet::sendSpreadsheet().

§ m_rowHeightMap

std::map<Vec2i,int> LotusSpreadsheetInternal::Spreadsheet::m_rowHeightMap

the map Vec2i(min row, max row) to size in points

Referenced by LotusSpreadsheet::sendSpreadsheet().

§ m_rowPageBreaksList

std::vector<int> LotusSpreadsheetInternal::Spreadsheet::m_rowPageBreaksList

the list of row page break

§ m_rowToExtraStyleMap

std::map<int,ExtraRowStyles> LotusSpreadsheetInternal::Spreadsheet::m_rowToExtraStyleMap

§ m_rowToStyleIdMap

std::map<Vec2i,size_t> LotusSpreadsheetInternal::Spreadsheet::m_rowToStyleIdMap

map Vec2i(min row, max row) to state row style id

Referenced by LotusSpreadsheet::sendSpreadsheet(), and LotusSpreadsheet::updateState().

§ m_widthColsInChar

std::vector<int> LotusSpreadsheetInternal::Spreadsheet::m_widthColsInChar

the column size in char


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

Generated on Wed Oct 26 2016 16:54:39 for libwps by doxygen 1.8.12