the spreadsheet of a WPS4Spreadsheet More...
Classes | |
struct | ComparePosition |
a comparaison structure used to sort cell by rows and and columns More... | |
Public Types | |
enum | Type { T_Spreadsheet, T_Filter, T_Report } |
the spreadsheet type More... | |
typedef std::map< Vec2i, Cell, ComparePosition > | PositionToCellMap_t |
Public Member Functions | |
Spreadsheet (Type type=T_Spreadsheet, int id=0) | |
a constructor | |
Cell & | getCell (Vec2i const &pos) |
return a cell corresponding to a spreadsheet, create one if needed | |
Cell * | getLastCell () |
returns the last cell | |
void | setColumnWidth (int col, int w=-1) |
set the columns size | |
void | setRowHeight (int row, int h=-1) |
set the rows size | |
void | computeRightBottomPosition () |
compute the last Right Bottom cell position | |
bool | empty () const |
returns true if the spreedsheet is empty | |
Static Public Member Functions | |
static std::vector< float > | convertInPoint (std::vector< int > const &list, float defSize) |
convert the m_widthCols, m_heightRows in a vector of of point size | |
Public Attributes | |
Type | m_type |
the spreadsheet type | |
int | m_id |
the spreadsheet id | |
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::vector< int > | m_widthCols |
the column size in TWIP (?) | |
std::vector< int > | m_heightRows |
the row size in TWIP (?) | |
PositionToCellMap_t | m_positionToCellMap |
a map cell to not empty cells | |
Vec2i | m_lastCellPos |
the last cell position | |
std::vector< int > | m_rowPageBreaksList |
the list of row page break |
the spreadsheet of a WPS4Spreadsheet
typedef std::map<Vec2i, Cell, ComparePosition> WKS4SpreadsheetInternal::Spreadsheet::PositionToCellMap_t |
WKS4SpreadsheetInternal::Spreadsheet::Spreadsheet | ( | Type | type = T_Spreadsheet , |
int | id = 0 |
||
) | [inline] |
a constructor
void WKS4SpreadsheetInternal::Spreadsheet::computeRightBottomPosition | ( | ) | [inline] |
compute the last Right Bottom cell position
static std::vector<float> WKS4SpreadsheetInternal::Spreadsheet::convertInPoint | ( | std::vector< int > const & | list, |
float | defSize | ||
) | [inline, static] |
convert the m_widthCols, m_heightRows in a vector of of point size
bool WKS4SpreadsheetInternal::Spreadsheet::empty | ( | ) | const [inline] |
returns true if the spreedsheet is empty
Cell& WKS4SpreadsheetInternal::Spreadsheet::getCell | ( | Vec2i const & | pos | ) | [inline] |
return a cell corresponding to a spreadsheet, create one if needed
Cell* WKS4SpreadsheetInternal::Spreadsheet::getLastCell | ( | ) | [inline] |
returns the last cell
void WKS4SpreadsheetInternal::Spreadsheet::setColumnWidth | ( | int | col, |
int | w = -1 |
||
) | [inline] |
set the columns size
void WKS4SpreadsheetInternal::Spreadsheet::setRowHeight | ( | int | row, |
int | h = -1 |
||
) | [inline] |
set the rows size
std::vector<int> WKS4SpreadsheetInternal::Spreadsheet::m_heightRows |
the row size in TWIP (?)
Referenced by setRowHeight().
the spreadsheet id
the last cell position
Referenced by getCell(), and getLastCell().
the final Right Bottom position, computed by updateState
Referenced by computeRightBottomPosition().
the number of columns
Referenced by setColumnWidth().
the number of rows
Referenced by setRowHeight().
a map cell to not empty cells
Referenced by computeRightBottomPosition(), empty(), getCell(), and getLastCell().
std::vector<int> WKS4SpreadsheetInternal::Spreadsheet::m_rowPageBreaksList |
the list of row page break
the spreadsheet type
Referenced by WKS4Spreadsheet::readFilterClose(), and WKS4Spreadsheet::readReportClose().
std::vector<int> WKS4SpreadsheetInternal::Spreadsheet::m_widthCols |
the column size in TWIP (?)
Referenced by setColumnWidth().