the spreadsheet of a QuattroDos Spreadsheet 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, libwps_tools_win::Font::Type type) |
return a cell corresponding to a spreadsheet, create one if needed | |
Cell * | getLastCell () |
returns the last cell | |
void | insertChartPositions (std::map< Vec2i, Vec2i > const &chartPosMap, libwps_tools_win::Font::Type type) |
void | setColumnWidth (int col, int w=-1) |
set the columns size | |
std::vector< WPSColumnFormat > | getWidths () const |
return the columns format | |
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 | |
Vec2f | getZoneSize (Vec2i const &cell0, Vec2i const &cell1) const |
return the size of the zone containning two cells | |
void | compressRowHeights () |
try to compress the list of row height | |
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 | |
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 points | |
int | m_heightDefault |
the default row size in point | |
int | m_widthDefault |
the default width 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 QuattroDos Spreadsheet
|
inlineexplicit |
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
|
inline |
returns the last cell
returns the row size in point
|
inline |
returns the height of a row in point and updated repeated row
|
inline |
return the columns format
|
inline |
return the size of the zone containning two cells
|
inline |
set the columns size
set the rows size
int QuattroDosSpreadsheetInternal::Spreadsheet::m_heightDefault |
the default row size in point
Referenced by compressRowHeights(), getRowHeight(), getRowHeight(), and getZoneSize().
int QuattroDosSpreadsheetInternal::Spreadsheet::m_id |
the spreadsheet id
Vec2i QuattroDosSpreadsheetInternal::Spreadsheet::m_lastCellPos |
the last cell position
Referenced by getCell(), and getLastCell().
int QuattroDosSpreadsheetInternal::Spreadsheet::m_numCols |
the number of columns
Referenced by setColumnWidth().
a map cell to not empty cells
Referenced by empty(), getCell(), getLastCell(), and insertChartPositions().
the map Vec2i(min row, max row) to size in points
Referenced by compressRowHeights(), getRowHeight(), getRowHeight(), getZoneSize(), and setRowHeight().
std::vector<int> QuattroDosSpreadsheetInternal::Spreadsheet::m_rowPageBreaksList |
the list of row page break
Type QuattroDosSpreadsheetInternal::Spreadsheet::m_type |
the spreadsheet type
std::vector<int> QuattroDosSpreadsheetInternal::Spreadsheet::m_widthCols |
the column size in TWIP (?)
Referenced by getWidths(), getZoneSize(), insertChartPositions(), and setColumnWidth().
int QuattroDosSpreadsheetInternal::Spreadsheet::m_widthDefault |
the default width size in point
Referenced by getWidths(), and getZoneSize().