QuattroSpreadsheetInternal::Spreadsheet Class Reference

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 More...
 
CellgetCell (Vec2i const &pos, libwps_tools_win::Font::Type type)
 return a cell corresponding to a spreadsheet, create one if needed More...
 
CellgetLastCell ()
 returns the last cell More...
 
void setColumnWidth (int col, int w=-1)
 set the columns size More...
 
std::vector< WPSColumnFormatgetWidths (float defSize=76) const
 return the columns format More...
 
float getRowHeight (int row) const
 returns the row size in point More...
 
float getRowHeight (int row, int &numRepeated) const
 returns the height of a row in point and updated repeated row More...
 
void setRowHeight (int row, int h)
 set the rows size More...
 
void compressRowHeights ()
 try to compress the list of row height More...
 
bool empty () const
 returns true if the spreedsheet is empty More...
 

Public Attributes

Type m_type
 the spreadsheet type More...
 
int m_id
 the spreadsheet id More...
 
int m_numCols
 the number of columns More...
 
int m_numRows
 the number of rows More...
 
std::vector< int > m_widthCols
 the column size in TWIP (?) More...
 
std::map< Vec2i, int > m_rowHeightMap
 the map Vec2i(min row, max row) to size in points More...
 
int m_heightDefault
 the default row size in point More...
 
std::map< Vec2i, Cellm_positionToCellMap
 a map cell to not empty cells More...
 
Vec2i m_lastCellPos
 the last cell position More...
 
std::vector< int > m_rowPageBreaksList
 the list of row page break More...
 

Detailed Description

the spreadsheet of a WPS4Spreadsheet

Member Enumeration Documentation

the spreadsheet type

Enumerator
T_Spreadsheet 
T_Filter 
T_Report 

Constructor & Destructor Documentation

QuattroSpreadsheetInternal::Spreadsheet::Spreadsheet ( Type  type = T_Spreadsheet,
int  id = 0 
)
inline

a constructor

Member Function Documentation

void QuattroSpreadsheetInternal::Spreadsheet::compressRowHeights ( )
inline

try to compress the list of row height

bool QuattroSpreadsheetInternal::Spreadsheet::empty ( ) const
inline

returns true if the spreedsheet is empty

Cell& QuattroSpreadsheetInternal::Spreadsheet::getCell ( Vec2i const &  pos,
libwps_tools_win::Font::Type  type 
)
inline

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

Cell* QuattroSpreadsheetInternal::Spreadsheet::getLastCell ( )
inline

returns the last cell

float QuattroSpreadsheetInternal::Spreadsheet::getRowHeight ( int  row) const
inline

returns the row size in point

float QuattroSpreadsheetInternal::Spreadsheet::getRowHeight ( int  row,
int &  numRepeated 
) const
inline

returns the height of a row in point and updated repeated row

std::vector<WPSColumnFormat> QuattroSpreadsheetInternal::Spreadsheet::getWidths ( float  defSize = 76) const
inline

return the columns format

void QuattroSpreadsheetInternal::Spreadsheet::setColumnWidth ( int  col,
int  w = -1 
)
inline

set the columns size

void QuattroSpreadsheetInternal::Spreadsheet::setRowHeight ( int  row,
int  h 
)
inline

set the rows size

Member Data Documentation

int QuattroSpreadsheetInternal::Spreadsheet::m_heightDefault

the default row size in point

Referenced by compressRowHeights(), and getRowHeight().

int QuattroSpreadsheetInternal::Spreadsheet::m_id

the spreadsheet id

Vec2i QuattroSpreadsheetInternal::Spreadsheet::m_lastCellPos

the last cell position

Referenced by getCell(), and getLastCell().

int QuattroSpreadsheetInternal::Spreadsheet::m_numCols

the number of columns

Referenced by setColumnWidth().

int QuattroSpreadsheetInternal::Spreadsheet::m_numRows

the number of rows

std::map<Vec2i, Cell> QuattroSpreadsheetInternal::Spreadsheet::m_positionToCellMap

a map cell to not empty cells

Referenced by empty(), getCell(), and getLastCell().

std::map<Vec2i,int> QuattroSpreadsheetInternal::Spreadsheet::m_rowHeightMap

the map Vec2i(min row, max row) to size in points

Referenced by compressRowHeights(), getRowHeight(), and setRowHeight().

std::vector<int> QuattroSpreadsheetInternal::Spreadsheet::m_rowPageBreaksList

the list of row page break

Type QuattroSpreadsheetInternal::Spreadsheet::m_type

the spreadsheet type

Referenced by QuattroSpreadsheet::readSpreadsheetClose().

std::vector<int> QuattroSpreadsheetInternal::Spreadsheet::m_widthCols

the column size in TWIP (?)

Referenced by getWidths(), and setColumnWidth().


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

Generated on Sat Jul 29 2017 15:32:24 for libwps by doxygen 1.8.8