74 void add(shared_ptr<STOFFCell> cell)
127 shared_ptr<STOFFCell>
get(
int id);
bool sendAsText(STOFFListenerPtr listener)
try to send the table as basic text
Definition: STOFFTable.cxx:434
bool buildPosToCellId()
a function which fills to posToCellId vector using the cell position
Definition: STOFFTable.cxx:248
std::vector< float > m_rowsSize
the final row size (in point)
Definition: STOFFTable.hxx:177
float m_rightMargin
the right margin in point
Definition: STOFFTable.hxx:185
bool sendTable(STOFFListenerPtr listener)
try to send the table
Definition: STOFFTable.cxx:405
uint32_t m_givenData
a int to indicate what data are given in entries
Definition: STOFFTable.hxx:165
Defines STOFFCell (cell content and format)
STOFFTable(uint32_t givenData=BoxBit)
the constructor
Definition: STOFFTable.hxx:65
void addTablePropertiesTo(librevenge::RVNGPropertyList &propList) const
adds the table properties to propList
Definition: STOFFTable.cxx:120
size_t m_numRows
the number of rows ( set by buildPosToCellId )
Definition: STOFFTable.hxx:173
virtual ~STOFFTable()
the destructor
Definition: STOFFTable.cxx:107
void setAlignment(Alignment align, float leftMargin=0, float rightMargin=0)
defines the current alignment
Definition: STOFFTable.hxx:94
bool mergeBorders() const
returns true if we need to merge borders
Definition: STOFFTable.hxx:83
Alignment
an enum do define the table alignment.
Definition: STOFFTable.hxx:61
size_t m_numCols
the number of cols ( set by buildPosToCellId )
Definition: STOFFTable.hxx:175
#define STOFF_DEBUG_MSG(M)
Definition: libstaroffice_internal.hxx:127
std::vector< float > m_colsSize
the final col size (in point)
Definition: STOFFTable.hxx:179
Definition: STOFFTable.hxx:62
std::vector< shared_ptr< STOFFCell > > m_cellsList
the list of cells
Definition: STOFFTable.hxx:171
a class used to recreate the table structure using cell informations, ....
Definition: STOFFTable.hxx:51
Definition: STOFFTable.hxx:62
int numCells() const
returns the number of cell
Definition: STOFFTable.hxx:101
shared_ptr< STOFFListener > STOFFListenerPtr
a smart pointer of STOFFListener
Definition: libstaroffice_internal.hxx:476
Definition: STOFFTable.hxx:56
Definition: STOFFTable.hxx:56
Definition: STOFFTable.hxx:56
std::vector< float > const & getRowsSize() const
returns the row size if defined (in point)
Definition: STOFFTable.hxx:106
Definition: STOFFTable.hxx:62
Definition: STOFFTable.hxx:56
Definition: STOFFTable.hxx:62
bool setMergeBorders(bool val)
sets the merge borders' value
Definition: STOFFTable.hxx:88
void setColsSize(std::vector< float > const &cSize)
define the columns size (in point)
Definition: STOFFTable.hxx:121
std::vector< int > m_posToCellId
a vector used to store an id corresponding to each cell
Definition: STOFFTable.hxx:188
Alignment m_alignment
the table alignment
Definition: STOFFTable.hxx:181
std::vector< float > const & getColsSize() const
returns the columns size if defined (in point)
Definition: STOFFTable.hxx:116
DataSet
an enum used to indicate what the list of entries which are filled
Definition: STOFFTable.hxx:55
void add(shared_ptr< STOFFCell > cell)
add a new cells
Definition: STOFFTable.hxx:74
void setRowsSize(std::vector< float > const &rSize)
define the row size (in point)
Definition: STOFFTable.hxx:111
bool buildStructures()
create the correspondance list, ...
Definition: STOFFTable.cxx:158
int getCellIdPos(int col, int row) const
convert a cell position in a posToCellId's position
Definition: STOFFTable.hxx:148
bool updateTable()
try to build the table structures
Definition: STOFFTable.cxx:392
bool buildDims()
compute the rows and the cells size
Definition: STOFFTable.cxx:302
bool m_mergeBorders
do we need to merge cell borders ( default yes)
Definition: STOFFTable.hxx:169
uint32_t m_setData
a int to indicate what data are been reconstruct
Definition: STOFFTable.hxx:167
float m_leftMargin
the left margin in point
Definition: STOFFTable.hxx:183
Definition: STOFFTable.hxx:56