the spreadsheet of a Quattro Spreadsheet More...
Public Member Functions | |
| Spreadsheet (int id, libwps_tools_win::Font::Type fontType) | |
| a constructor | |
| Cell & | getCell (Vec2i const &pos, libwps_tools_win::Font::Type type) |
| return a cell corresponding to a spreadsheet, create one if needed | |
| bool | empty () const |
| returns true if the spreedsheet is empty | |
| void | setColumnWidth (int col, int w=-1) |
| set the columns size | |
| std::vector< WPSColumnFormat > | getWidths () const |
| return the columns format | |
| void | setRowHeight (int row, int h) |
| set the rows size in TWIP | |
| void | setRowHeights (int minRow, int maxRow, int h) |
| set the rows size in TWIP | |
| 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 | compressRowHeights () |
| try to compress the list of row height | |
| Vec2f | getPosition (Vec2i const &cell) const |
| returns the cell position | |
Public Attributes | |
| int | m_id |
| the spreadsheet id | |
| int | m_numCols |
| the number of columns | |
| std::map< Vec2i, int > | m_rowHeightMap |
| the map Vec2i(min row, max row) to size in TWIP | |
| float | m_heightDefault |
| the default row size in point | |
| std::vector< int > | m_widthCols |
| the column size in TWIP | |
| float | m_widthDefault |
| the default width size in point | |
| std::map< Vec2i, Cell > | m_positionToCellMap |
| a map cell to not empty cells | |
| Cell | m_dummyCell |
| a dummy cell | |
the spreadsheet of a Quattro Spreadsheet
|
inline |
a constructor
|
inline |
try to compress the list of row height
|
inline |
returns true if the spreedsheet is empty
|
inline |
return a cell corresponding to a spreadsheet, create one if needed
returns the cell position
returns the row size in point
|
inline |
returns the height of a row in point and updated repeated row
|
inline |
return the columns format
set the columns size
set the rows size in TWIP
|
inline |
set the rows size in TWIP
|
mutable |
a dummy cell
Referenced by getCell().
| float QuattroSpreadsheetInternal::Spreadsheet::m_heightDefault |
the default row size in point
Referenced by compressRowHeights(), getPosition(), getRowHeight(), and getRowHeight().
| int QuattroSpreadsheetInternal::Spreadsheet::m_id |
the spreadsheet id
| int QuattroSpreadsheetInternal::Spreadsheet::m_numCols |
the number of columns
Referenced by setColumnWidth().
the map Vec2i(min row, max row) to size in TWIP
Referenced by compressRowHeights(), getPosition(), getRowHeight(), getRowHeight(), setRowHeight(), and setRowHeights().
| std::vector<int> QuattroSpreadsheetInternal::Spreadsheet::m_widthCols |
the column size in TWIP
Referenced by getPosition(), getWidths(), and setColumnWidth().
| float QuattroSpreadsheetInternal::Spreadsheet::m_widthDefault |
the default width size in point
Referenced by getPosition(), and getWidths().