Go to the documentation of this file.
86 void add(std::shared_ptr<MWAWCell> cell)
139 std::shared_ptr<MWAWCell>
get(
int id);
int numCells() const
returns the number of cell
Definition: MWAWTable.hxx:113
bool buildPosToCellId()
a function which fills to posToCellId vector using the cell position
Definition: MWAWTable.cxx:312
#define MWAW_DEBUG_MSG(M)
Definition: libmwaw_internal.hxx:129
MWAWVec2< float > MWAWVec2f
MWAWVec2 of float.
Definition: libmwaw_internal.hxx:842
@ Paragraph
Definition: MWAWTable.hxx:62
int m_cellId
the cell id ( used by compare)
Definition: MWAWTable.cxx:90
void setRelativePosition(AnchorTo anchor, XPos X=XLeft, YPos Y=YTop)
sets the relative position
Definition: MWAWPosition.hxx:237
float getSize(int coord) const
returns the cells size
Definition: MWAWTable.cxx:81
@ BoxBit
Definition: MWAWTable.hxx:56
small structure to define a cell point
Definition: MWAWTable.cxx:67
Compare(int dim)
constructor
Definition: MWAWTable.cxx:62
bool sendTable(MWAWListenerPtr listener, bool inFrame=true)
try to send the table
Definition: MWAWTable.cxx:471
uint32_t m_givenData
a int to indicate what data are given in entries
Definition: MWAWTable.hxx:185
static MWAWGraphicShape line(MWAWVec2f const &orign, MWAWVec2f const &dest)
static constructor to create a line
Definition: MWAWGraphicShape.cxx:228
float m_leftMargin
the left margin in point
Definition: MWAWTable.hxx:203
double m_width
the border total width in point
Definition: libmwaw_internal.hxx:387
void sendExtraLines(MWAWListenerPtr listener) const
send extra line
Definition: MWAWTable.cxx:170
void setMin(MWAWVec2< T > const &x)
resets the minimum point
Definition: libmwaw_internal.hxx:1085
std::vector< float > const & getColsSize() const
returns the columns size if defined (in point)
Definition: MWAWTable.hxx:128
a structure used to define a picture style
Definition: MWAWGraphicStyle.hxx:48
void setOrder(int ord) const
set background/foward order
Definition: MWAWPosition.hxx:264
bool hasExtraLine() const
returns true if we have some extra lines
Definition: MWAWCell.hxx:337
ExtraLine extraLine() const
returns the extra lines
Definition: MWAWCell.hxx:342
Defines MWAWCell (cell content and format)
@ TableDimBit
Definition: MWAWTable.hxx:56
Point(int wh, MWAWCell const *cell, int cellId)
Definition: MWAWTable.cxx:68
a comparaison structure used retrieve the rows and the columns
Definition: MWAWTable.cxx:60
bool m_hasExtraLines
true if we need to send extra lines
Definition: MWAWTable.hxx:210
MWAWCell const * m_cell
the cell
Definition: MWAWTable.cxx:88
Alignment
an enum do define the table alignment.
Definition: MWAWTable.hxx:61
@ Center
Definition: MWAWTable.hxx:62
float m_lineWidth
the linewidth
Definition: MWAWGraphicStyle.hxx:508
int getCellIdPos(int col, int row) const
convert a cell position in a posToCellId's position
Definition: MWAWTable.hxx:166
bool setMergeBorders(bool val)
sets the merge borders' value
Definition: MWAWTable.hxx:100
bool hasExtraLines()
returns true if the table has extralines
Definition: MWAWTable.hxx:144
uint32_t m_setData
a int to indicate what data are been reconstruct
Definition: MWAWTable.hxx:187
Class to define the position of an object (textbox, picture, ..) in the document.
Definition: MWAWPosition.hxx:48
a border
Definition: libmwaw_internal.hxx:333
bool mergeBorders() const
returns true if we need to merge borders
Definition: MWAWTable.hxx:95
@ Right
Definition: MWAWTable.hxx:62
Wrapping m_wrapping
Wrapping.
Definition: MWAWPosition.hxx:278
std::vector< int > m_posToCellId
a vector used to store an id corresponding to each cell
Definition: MWAWTable.hxx:208
a class used to recreate the table structure using cell informations, ....
Definition: MWAWTable.hxx:52
std::vector< float > const & getRowsSize() const
returns the row size if defined (in point)
Definition: MWAWTable.hxx:118
void setMax(MWAWVec2< T > const &y)
resets the maximum point
Definition: libmwaw_internal.hxx:1090
std::vector< std::shared_ptr< MWAWCell > > m_cellsList
the list of cells
Definition: MWAWTable.hxx:191
bool m_mergeBorders
do we need to merge cell borders ( default yes)
Definition: MWAWTable.hxx:189
void setColsSize(std::vector< float > const &cSize)
define the columns size (in point)
Definition: MWAWTable.hxx:133
float getPos(int coord) const
Definition: MWAWTable.cxx:74
bool updateTable()
try to build the table structures
Definition: MWAWTable.cxx:458
MWAWColor m_lineColor
the line color
Definition: MWAWGraphicStyle.hxx:516
void setRowsSize(std::vector< float > const &rSize)
define the row size (in point)
Definition: MWAWTable.hxx:123
@ TablePosToCellBit
Definition: MWAWTable.hxx:56
MWAWBorder const & extraLineType() const
returns the extra line border
Definition: MWAWCell.hxx:347
@ E_Cross
Definition: MWAWCell.hxx:137
std::vector< float > m_rowsSize
the final row size (in point)
Definition: MWAWTable.hxx:197
@ SizeBit
Definition: MWAWTable.hxx:56
MWAWTable(uint32_t givenData=BoxBit)
the constructor
Definition: MWAWTable.hxx:65
@ E_Line1
Definition: MWAWCell.hxx:137
@ WForeground
Definition: MWAWPosition.hxx:53
@ Left
Definition: MWAWTable.hxx:62
bool buildStructures()
create the correspondance list, ...
Definition: MWAWTable.cxx:223
MWAWVec2< T > const & min() const
the minimum 2D point (in x and in y)
Definition: libmwaw_internal.hxx:1039
size_t m_numCols
the number of cols ( set by buildPosToCellId )
Definition: MWAWTable.hxx:195
bool buildDims()
compute the rows and the cells size
Definition: MWAWTable.cxx:368
Internal: the structures of a MWAWTable.
Definition: MWAWTable.cxx:58
bool sendAsText(MWAWListenerPtr listener)
try to send the table as basic text
Definition: MWAWTable.cxx:502
MWAWVec2< T > size() const
the box size
Definition: libmwaw_internal.hxx:1067
size_t m_numRows
the number of rows ( set by buildPosToCellId )
Definition: MWAWTable.hxx:193
@ Frame
Definition: MWAWPosition.hxx:51
Alignment m_alignment
the table alignment
Definition: MWAWTable.hxx:201
int m_coord
the coord to compare
Definition: MWAWTable.cxx:109
int m_which
the position of the point in the cell (0: LT, 1: RB)
Definition: MWAWTable.cxx:86
std::shared_ptr< MWAWListener > MWAWListenerPtr
a smart pointer of MWAWListener
Definition: libmwaw_internal.hxx:553
float m_rightMargin
the right margin in point
Definition: MWAWTable.hxx:205
@ E_Line2
Definition: MWAWCell.hxx:137
std::shared_ptr< MWAWCell > get(int id)
returns the i^th cell
Definition: MWAWTable.cxx:122
a structure used to define a cell and its format
Definition: MWAWCell.hxx:53
MWAWVec2< T > const & max() const
the maximum 2D point (in x and in y)
Definition: libmwaw_internal.hxx:1044
std::vector< float > m_colsSize
the final col size (in point)
Definition: MWAWTable.hxx:199
MWAWColor m_color
the border color
Definition: libmwaw_internal.hxx:393
void setAlignment(Alignment align, float leftMargin=0, float rightMargin=0)
defines the current alignment
Definition: MWAWTable.hxx:106
void addTablePropertiesTo(librevenge::RVNGPropertyList &propList) const
adds the table properties to propList
Definition: MWAWTable.cxx:131
virtual ~MWAWTable()
the destructor
Definition: MWAWTable.cxx:118
MWAWVec2< int > MWAWVec2i
MWAWVec2 of int.
Definition: libmwaw_internal.hxx:838
MWAWBox2f const & bdBox() const
bdbox accessor
Definition: MWAWCell.hxx:206
void add(std::shared_ptr< MWAWCell > cell)
add a new cells
Definition: MWAWTable.hxx:86
bool operator()(Point const &c1, Point const &c2) const
comparaison function
Definition: MWAWTable.cxx:94
DataSet
an enum used to indicate what the list of entries which are filled
Definition: MWAWTable.hxx:55
@ CellPositionBit
Definition: MWAWTable.hxx:56
Generated on Fri Sep 18 2020 18:14:52 for libmwaw by
doxygen 1.8.20