37 class WPXPropertyList;
76 std::vector<WPSBorder>
const &
borders()
const
209 if (diffF < 0)
return true;
210 if (diffF > 0)
return false;
212 if (diff)
return (diff < 0);
215 if (diffF < 0)
return true;
216 if (diffF > 0)
return false;
void setBox(Box2f const &b)
set the bounding box (units in point)
Definition: WPSCell.h:127
shared_ptr< WPSContentListener > WPSContentListenerPtr
Definition: WPSCell.h:38
a border list
Definition: libwps_internal.h:225
a comparaison structure used retrieve the rows and the columns
Definition: WPSCell.h:184
Point(int wh, WPSCell const *cell)
Definition: WPSCell.h:190
Vec2< T > const & min() const
the minimum 2D point (in x and in y)
Definition: libwps_internal.h:517
Vec2i m_numberCellSpanned
the cell spanned : by default (1,1)
Definition: WPSCell.h:232
virtual bool send(WPSContentListenerPtr &listener)=0
call when a cell must be send
WPSCell()
constructor
Definition: WPSCell.h:124
void setVerticalSet(bool verticalSet)
fixes or not the vertical size
Definition: WPSCell.h:142
float getSize(int coord) const
Definition: WPSCell.h:197
Definition: WPSContentListener.h:168
Vec2i const & numSpannedCells() const
returns the number of spanned cells
Definition: WPSCell.h:163
a structure used to defined the cell position, and a format
Definition: WPSCell.h:119
void setNumSpannedCells(Vec2i numSpanned)
sets the number of spanned cells : Vec2i(1,1) means 1 cellule
Definition: WPSCell.h:168
bool isVerticalSet() const
returns true if the vertical is fixed
Definition: WPSCell.h:137
Box2f m_box
the cell bounding box (unit in point)
Definition: WPSCell.h:226
int m_coord
the coord to compare
Definition: WPSCell.h:222
Vec2i const & position() const
position accessor
Definition: WPSCell.h:152
Vec2< T > const & max() const
the maximum 2D point (in x and in y)
Definition: libwps_internal.h:522
Compare(int dim)
Definition: WPSCell.h:186
bool operator()(Point const &c1, Point const &c2) const
comparaison function
Definition: WPSCell.h:206
small structure to define a cell point
Definition: WPSCell.h:188
float getPos(int coord) const
Definition: WPSCell.h:191
Box2f const & box() const
return the bounding box
Definition: WPSCell.h:132
void setPosition(Vec2i posi)
set the cell positions : 0,0 -> A1, 0,1 -> A2
Definition: WPSCell.h:157
Vec2i m_position
the cell row and column : 0,0 -> A1, 0,1 -> A2
Definition: WPSCell.h:230
WPSCell const * m_cell
Definition: WPSCell.h:202
int m_which
Definition: WPSCell.h:201
Definition: WPSTable.h:45
bool m_verticalSet
true if y size is fixed
Definition: WPSCell.h:228
virtual bool sendContent(WPSContentListenerPtr &listener)=0
call when the content of a cell must be send
Vec2< T > size() const
the box size
Definition: libwps_internal.h:547
friend std::ostream & operator<<(std::ostream &o, WPSCell const &cell)
operator<<
Definition: WPSCell.cpp:111
shared_ptr< WPSCell > WPSCellPtr
Definition: WPSCell.h:235
Vec2i & position()
position accessor
Definition: WPSCell.h:147