LotusSpreadsheetInternal::Spreadsheet Class Reference

the spreadsheet of a WPS4Spreadsheet More...

List of all members.

Classes

struct  ComparePosition
 a comparaison structure used to sort cell by rows and and columns More...

Public Types

typedef std::map< Vec2i, Cell,
ComparePosition
PositionToCellMap_t

Public Member Functions

 Spreadsheet ()
 a constructor
CellgetCell (Vec2i const &pos)
 return a cell corresponding to a spreadsheet, create one if needed
bool getRowBounds (int col, Vec2i &bound) const
 return the row bounds corresponding to a column
void setColumnWidthInChar (int col, int w=-1)
 set the columns size
void setRowHeight (int row, int h=-1)
 set the rows size
bool empty () const
 returns true if the spreedsheet is empty
void computeRightBottomPosition ()
 compute the last Right Bottom cell position, using the cell list

Static Public Member Functions

static std::vector< float > convertInPoint (std::vector< int > const &list, float defSize, float factor=1)
 convert the m_widthColsInChar, m_heightRows in a vector of of point size

Public Attributes

librevenge::RVNGString m_name
 the sheet name
int m_numCols
 the number of columns
int m_numRows
 the number of rows
Vec2i m_LBPosition
 the final Right Bottom position, computed by updateState
std::map< int, Vec2im_boundsColsMap
 a map used to stored the min/max row of each columns
std::vector< int > m_widthColsInChar
 the column size in char
std::vector< int > m_heightRows
 the row size in TWIP (?)
std::vector< int > m_rowPageBreaksList
 the list of row page break
PositionToCellMap_t m_positionToCellMap
 a map cell to not empty cells

Detailed Description

the spreadsheet of a WPS4Spreadsheet


Member Typedef Documentation


Constructor & Destructor Documentation


Member Function Documentation

compute the last Right Bottom cell position, using the cell list

static std::vector<float> LotusSpreadsheetInternal::Spreadsheet::convertInPoint ( std::vector< int > const &  list,
float  defSize,
float  factor = 1 
) [inline, static]

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

Referenced by LotusSpreadsheet::sendSpreadsheet().

returns true if the spreedsheet is empty

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

Referenced by LotusSpreadsheet::readCell().

bool LotusSpreadsheetInternal::Spreadsheet::getRowBounds ( int  col,
Vec2i bound 
) const [inline]

return the row bounds corresponding to a column

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

set the columns size

Referenced by LotusSpreadsheet::readColumnSizes().

void LotusSpreadsheetInternal::Spreadsheet::setRowHeight ( int  row,
int  h = -1 
) [inline]

set the rows size

Referenced by LotusSpreadsheet::readRowSizes().


Member Data Documentation

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

Referenced by getRowBounds(), LotusSpreadsheet::readColumnDefinition(), and setColumnWidthInChar().

the sheet name

Referenced by empty().

the list of row page break


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