WingzParserInternal::Spreadsheet Struct Reference

Internal: the spreadsheet data of a WingzParser. More...

Public Member Functions

 Spreadsheet ()
 constructor
 
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
 
std::vector< float > convertInPoint (std::vector< float > const &list) const
 convert the m_widthCols in a vector of of point size
 
MWAWVec2f getPosition (MWAWVec2i const &cell, MWAWVec2f const &relPos) const
 returns the page position corresponding to a cell and its relative position(in percent)
 
void update (Cell &cell) const
 update the cell, ie. look if there is a avalaible formula, ...
 

Public Attributes

float m_widthDefault
 the default column width
 
std::vector< float > m_widthCols
 the column size in points
 
float m_heightDefault
 the default row height
 
std::vector< float > m_heightRows
 the row height in points
 
std::vector< Cellm_cells
 the list of not empty cells
 
std::map< int, MWAWCellContent::FormulaInstructionm_cellIdPosMap
 the map cellId to cellPos
 
std::map< int, std::vector< MWAWCellContent::FormulaInstruction > > m_formulaMap
 the list of formula
 
std::map< int, Stylem_styleMap
 the list of style
 
std::string m_name
 the spreadsheet name
 

Protected Member Functions

MWAWVec2i getRightBottomPosition () const
 returns the last Right Bottom cell position
 

Detailed Description

Internal: the spreadsheet data of a WingzParser.

Constructor & Destructor Documentation

◆ Spreadsheet()

WingzParserInternal::Spreadsheet::Spreadsheet ( )
inline

constructor

Member Function Documentation

◆ convertInPoint()

std::vector< float > WingzParserInternal::Spreadsheet::convertInPoint ( std::vector< float > const &  list) const
inline

convert the m_widthCols in a vector of of point size

◆ getPosition()

MWAWVec2f WingzParserInternal::Spreadsheet::getPosition ( MWAWVec2i const &  cell,
MWAWVec2f const &  relPos 
) const
inline

returns the page position corresponding to a cell and its relative position(in percent)

◆ getRightBottomPosition()

MWAWVec2i WingzParserInternal::Spreadsheet::getRightBottomPosition ( ) const
inlineprotected

returns the last Right Bottom cell position

◆ getRowHeight() [1/2]

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

returns the row size in point

◆ getRowHeight() [2/2]

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

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

◆ update()

void WingzParserInternal::Spreadsheet::update ( Cell cell) const

update the cell, ie. look if there is a avalaible formula, ...

Member Data Documentation

◆ m_cellIdPosMap

std::map<int, MWAWCellContent::FormulaInstruction> WingzParserInternal::Spreadsheet::m_cellIdPosMap

the map cellId to cellPos

◆ m_cells

std::vector<Cell> WingzParserInternal::Spreadsheet::m_cells

the list of not empty cells

◆ m_formulaMap

std::map<int, std::vector<MWAWCellContent::FormulaInstruction> > WingzParserInternal::Spreadsheet::m_formulaMap

the list of formula

◆ m_heightDefault

float WingzParserInternal::Spreadsheet::m_heightDefault

the default row height

◆ m_heightRows

std::vector<float> WingzParserInternal::Spreadsheet::m_heightRows

the row height in points

◆ m_name

std::string WingzParserInternal::Spreadsheet::m_name

the spreadsheet name

◆ m_styleMap

std::map<int, Style> WingzParserInternal::Spreadsheet::m_styleMap

the list of style

◆ m_widthCols

std::vector<float> WingzParserInternal::Spreadsheet::m_widthCols

the column size in points

◆ m_widthDefault

float WingzParserInternal::Spreadsheet::m_widthDefault

the default column width


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

Generated on Thu Jan 19 2023 00:00:00 for libmwaw by doxygen 1.9.6