the spreadsheet of a WPS4Spreadsheet More...
| Public Types | |
| enum | Type { T_Spreadsheet , T_Filter , T_Report } | 
| the spreadsheet type  More... | |
| 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 | |
| float | getRowHeight (int row) const | 
| returns the row size in point | |
| float | getRowHeight (int row, int &numRepeated) const | 
| returns the height of a row in point and updated repeated row | |
| void | setRowHeight (int row, int h) | 
| set the rows size | |
| void | compressRowHeights () | 
| try to compress the list of row height | |
| std::vector< WPSColumnFormat > | getWidths (float defSize=72) const | 
| return the columns format | |
| bool | empty () const | 
| returns true if the spreedsheet is empty | |
| 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 | |
| std::vector< int > | m_widthCols | 
| the column size in TWIP (?) | |
| std::map< Vec2i, int > | m_rowHeightMap | 
| the map Vec2i(min row, max row) to size in TWIP (?) | |
| int | m_heightDefault | 
| the default row size in point | |
| std::map< Vec2i, Cell > | 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
| 
 | inlineexplicit | 
a constructor
| 
 | inline | 
try to compress the list of row height
| 
 | inline | 
returns true if the spreedsheet is empty
return a cell corresponding to a spreadsheet, create one if needed
| 
 | inline | 
returns the last cell
| 
 | inline | 
returns the row size in point
| 
 | inline | 
returns the height of a row in point and updated repeated row
\note: you must first call compressRowHeigths
| 
 | inline | 
return the columns format
| 
 | inline | 
set the columns size
| 
 | inline | 
set the rows size
| int WKS4SpreadsheetInternal::Spreadsheet::m_heightDefault | 
the default row size in point
Referenced by compressRowHeights(), getRowHeight(), getRowHeight(), and Spreadsheet().
| int WKS4SpreadsheetInternal::Spreadsheet::m_id | 
the spreadsheet id
Referenced by Spreadsheet().
| Vec2i WKS4SpreadsheetInternal::Spreadsheet::m_lastCellPos | 
the last cell position
Referenced by getCell(), getLastCell(), and Spreadsheet().
| int WKS4SpreadsheetInternal::Spreadsheet::m_numCols | 
the number of columns
Referenced by setColumnWidth(), and Spreadsheet().
| int WKS4SpreadsheetInternal::Spreadsheet::m_numRows | 
the number of rows
Referenced by Spreadsheet().
a map cell to not empty cells
Referenced by empty(), getCell(), getLastCell(), and Spreadsheet().
| std::map<Vec2i,int> WKS4SpreadsheetInternal::Spreadsheet::m_rowHeightMap | 
the map Vec2i(min row, max row) to size in TWIP (?)
Referenced by compressRowHeights(), getRowHeight(), getRowHeight(), setRowHeight(), and Spreadsheet().
| std::vector<int> WKS4SpreadsheetInternal::Spreadsheet::m_rowPageBreaksList | 
the list of row page break
Referenced by Spreadsheet().
| Type WKS4SpreadsheetInternal::Spreadsheet::m_type | 
the spreadsheet type
Referenced by Spreadsheet().
| std::vector<int> WKS4SpreadsheetInternal::Spreadsheet::m_widthCols | 
the column size in TWIP (?)
Referenced by getWidths(), setColumnWidth(), and Spreadsheet().