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 setColumnWidth (int col, WPSColumnFormat const &format)
 set the columns size More...
 
WPSRowFormat getRowHeight (int row) const
 returns the row size in point More...
 
void setRowHeight (int row, WPSRowFormat const &format)
 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< WPSColumnFormatgetWidths () const
 convert the m_widthColsInChar 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< WPSColumnFormatm_widthCols
 the column size More...
 
std::map< Vec2i, WPSRowFormatm_rowHeightMap
 the map Vec2i(min row, max row) to size in points More...
 
float 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

LotusSpreadsheetInternal::Spreadsheet::Spreadsheet ( )
inline

a constructor

Member Function Documentation

void LotusSpreadsheetInternal::Spreadsheet::compressRowHeights ( )
inline

try to compress the list of row height

Referenced by LotusSpreadsheet::sendSpreadsheet().

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

returns true if the spreedsheet is empty

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().

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

returns the position corresponding to a cell

Referenced by LotusSpreadsheet::getLeftTopPosition().

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

returns the row size in point

Referenced by LotusSpreadsheet::sendSpreadsheet().

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

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

Referenced by LotusSpreadsheet::sendRowContent().

std::vector<WPSColumnFormat> LotusSpreadsheetInternal::Spreadsheet::getWidths ( ) const
inline

convert the m_widthColsInChar in a vector of of point size

Referenced by LotusSpreadsheet::sendSpreadsheet().

void LotusSpreadsheetInternal::Spreadsheet::setColumnWidth ( int  col,
WPSColumnFormat const &  format 
)
inline
void LotusSpreadsheetInternal::Spreadsheet::setRowHeight ( int  row,
WPSRowFormat const &  format 
)
inline

Member Data Documentation

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

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

Referenced by LotusSpreadsheet::readColumnDefinition(), and setColumnWidth().

float LotusSpreadsheetInternal::Spreadsheet::m_heightDefault

the default row size in point

Referenced by compressRowHeights(), getPosition(), and getRowHeight().

librevenge::RVNGString LotusSpreadsheetInternal::Spreadsheet::m_name

the sheet name

Referenced by empty().

int LotusSpreadsheetInternal::Spreadsheet::m_numCols

the number of columns

Referenced by setColumnWidth().

int LotusSpreadsheetInternal::Spreadsheet::m_numRows

the number of rows

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

a map cell to not empty cells

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

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

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

Referenced by compressRowHeights(), getPosition(), getRowHeight(), LotusSpreadsheet::sendSpreadsheet(), and setRowHeight().

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

the list of row page break

std::map<int,ExtraRowStyles> LotusSpreadsheetInternal::Spreadsheet::m_rowToExtraStyleMap
std::map<Vec2i,size_t> LotusSpreadsheetInternal::Spreadsheet::m_rowToStyleIdMap

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

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

std::vector<WPSColumnFormat> LotusSpreadsheetInternal::Spreadsheet::m_widthCols

the column size

Referenced by getPosition(), getWidths(), and setColumnWidth().


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

Generated on Wed Apr 11 2018 00:19:13 for libwps by doxygen 1.8.5