86 void add(std::shared_ptr<MWAWCell> cell)
139 std::shared_ptr<MWAWCell>
get(
int id);
bool sendAsText(MWAWListenerPtr listener)
try to send the table as basic text
Definition: MWAWTable.cxx:502
Definition: MWAWTable.hxx:62
void setColsSize(std::vector< float > const &cSize)
define the columns size (in point)
Definition: MWAWTable.hxx:133
Definition: MWAWTable.hxx:62
std::shared_ptr< MWAWListener > MWAWListenerPtr
a smart pointer of MWAWListener
Definition: libmwaw_internal.hxx:553
float m_leftMargin
the left margin in point
Definition: MWAWTable.hxx:203
void setRowsSize(std::vector< float > const &rSize)
define the row size (in point)
Definition: MWAWTable.hxx:123
Definition: MWAWTable.hxx:56
a class used to recreate the table structure using cell informations, ....
Definition: MWAWTable.hxx:51
Definition: MWAWTable.hxx:56
Definition: MWAWTable.hxx:56
bool updateTable()
try to build the table structures
Definition: MWAWTable.cxx:458
std::vector< float > const & getColsSize() const
returns the columns size if defined (in point)
Definition: MWAWTable.hxx:128
uint32_t m_setData
a int to indicate what data are been reconstruct
Definition: MWAWTable.hxx:187
void addTablePropertiesTo(librevenge::RVNGPropertyList &propList) const
adds the table properties to propList
Definition: MWAWTable.cxx:131
bool buildPosToCellId()
a function which fills to posToCellId vector using the cell position
Definition: MWAWTable.cxx:312
void add(std::shared_ptr< MWAWCell > cell)
add a new cells
Definition: MWAWTable.hxx:86
Definition: MWAWTable.hxx:62
bool m_mergeBorders
do we need to merge cell borders ( default yes)
Definition: MWAWTable.hxx:189
float m_rightMargin
the right margin in point
Definition: MWAWTable.hxx:205
bool m_hasExtraLines
true if we need to send extra lines
Definition: MWAWTable.hxx:210
size_t m_numRows
the number of rows ( set by buildPosToCellId )
Definition: MWAWTable.hxx:193
void sendExtraLines(MWAWListenerPtr listener) const
send extra line
Definition: MWAWTable.cxx:170
bool hasExtraLines()
returns true if the table has extralines
Definition: MWAWTable.hxx:144
bool setMergeBorders(bool val)
sets the merge borders' value
Definition: MWAWTable.hxx:100
#define MWAW_DEBUG_MSG(M)
Definition: libmwaw_internal.hxx:129
int numCells() const
returns the number of cell
Definition: MWAWTable.hxx:113
bool buildDims()
compute the rows and the cells size
Definition: MWAWTable.cxx:368
Definition: MWAWTable.hxx:56
void setAlignment(Alignment align, float leftMargin=0, float rightMargin=0)
defines the current alignment
Definition: MWAWTable.hxx:106
bool mergeBorders() const
returns true if we need to merge borders
Definition: MWAWTable.hxx:95
virtual ~MWAWTable()
the destructor
Definition: MWAWTable.cxx:118
Alignment
an enum do define the table alignment.
Definition: MWAWTable.hxx:61
std::vector< float > const & getRowsSize() const
returns the row size if defined (in point)
Definition: MWAWTable.hxx:118
int getCellIdPos(int col, int row) const
convert a cell position in a posToCellId's position
Definition: MWAWTable.hxx:166
uint32_t m_givenData
a int to indicate what data are given in entries
Definition: MWAWTable.hxx:185
std::vector< std::shared_ptr< MWAWCell > > m_cellsList
the list of cells
Definition: MWAWTable.hxx:191
Alignment m_alignment
the table alignment
Definition: MWAWTable.hxx:201
size_t m_numCols
the number of cols ( set by buildPosToCellId )
Definition: MWAWTable.hxx:195
std::vector< float > m_rowsSize
the final row size (in point)
Definition: MWAWTable.hxx:197
Defines MWAWCell (cell content and format)
std::vector< float > m_colsSize
the final col size (in point)
Definition: MWAWTable.hxx:199
std::vector< int > m_posToCellId
a vector used to store an id corresponding to each cell
Definition: MWAWTable.hxx:208
bool sendTable(MWAWListenerPtr listener, bool inFrame=true)
try to send the table
Definition: MWAWTable.cxx:471
DataSet
an enum used to indicate what the list of entries which are filled
Definition: MWAWTable.hxx:55
bool buildStructures()
create the correspondance list, ...
Definition: MWAWTable.cxx:223
MWAWTable(uint32_t givenData=BoxBit)
the constructor
Definition: MWAWTable.hxx:65
Definition: MWAWTable.hxx:62
Definition: MWAWTable.hxx:56