92 void addTo(librevenge::RVNGPropertyList &propList)
const;
252 return c1.
compare(c2,
true) < 0;
258 static bool convertDTFormat(std::string
const &dtFormat, librevenge::RVNGPropertyListVector &propListVector);
296 , m_verticalSet(true)
298 , m_numberCellSpanned(1,1) {}
303 void addTo(librevenge::RVNGPropertyList &propList)
const;
318 return m_verticalSet;
323 m_verticalSet = verticalSet;
344 return m_numberCellSpanned;
349 m_numberCellSpanned=numSpanned;
376 return m_cell->box().max()[coord];
377 return m_cell->box().min()[coord];
381 return m_cell->box().size()[coord];
391 if (diffF < 0)
return true;
392 if (diffF > 0)
return false;
394 if (diff)
return (diff < 0);
397 if (diffF < 0)
return true;
398 if (diffF > 0)
return false;
std::shared_ptr< WPSListener > WPSListenerPtr
shared pointer to WPSListener
Definition: libwps_internal.h:105
a border list
Definition: libwps_internal.h:394
a comparaison structure used retrieve the rows and the columns
Definition: WPSCell.h:363
Vec2< T > size() const
the box size
Definition: libwps_internal.h:754
bool operator()(Point const &c1, Point const &c2) const
comparaison function
Definition: WPSCell.h:388
Point(int wh, WPSCell const *cell)
Definition: WPSCell.h:370
Vec2i m_numberCellSpanned
the cell spanned : by default (1,1)
Definition: WPSCell.h:418
WPSBox2f const & box() const
return the bounding box
Definition: WPSCell.h:311
define the font properties
Definition: WPSFont.h:36
void setBox(WPSBox2f const &b)
set the bounding box (units in point)
Definition: WPSCell.h:306
WPSCell()
constructor
Definition: WPSCell.h:293
void setVerticalSet(bool verticalSet)
fixes or not the vertical size
Definition: WPSCell.h:321
a structure used to defined the cell position, and a format
Definition: WPSCell.h:288
void setNumSpannedCells(Vec2i numSpanned)
sets the number of spanned cells : Vec2i(1,1) means 1 cellule
Definition: WPSCell.h:347
bool isVerticalSet() const
returns true if the vertical is fixed
Definition: WPSCell.h:316
int m_coord
the coord to compare
Definition: WPSCell.h:408
Compare(int dim)
Definition: WPSCell.h:365
~WPSCell() override
destructor
Definition: WPSCell.h:300
float getPos(int coord) const
Definition: WPSCell.h:373
float getSize(int coord) const
Definition: WPSCell.h:379
small structure to define a cell point
Definition: WPSCell.h:368
void setPosition(Vec2i posi)
set the cell positions : 0,0 -> A1, 0,1 -> A2
Definition: WPSCell.h:336
the class to store a color
Definition: libwps_internal.h:280
Vec2i m_position
the cell row and column : 0,0 -> A1, 0,1 -> A2
Definition: WPSCell.h:416
WPSCell const * m_cell
Definition: WPSCell.h:384
int m_which
Definition: WPSCell.h:383
Vec2i const & position() const
position accessor
Definition: WPSCell.h:331
Definition: WPSTable.h:156
Vec2i const & numSpannedCells() const
returns the number of spanned cells
Definition: WPSCell.h:342
bool m_verticalSet
true if y size is fixed
Definition: WPSCell.h:414
WPSBox2f m_box
the cell bounding box (unit in point)
Definition: WPSCell.h:412
Vec2i & position()
position accessor
Definition: WPSCell.h:326