37 class WPXPropertyList;
76 std::vector<WPSBorder>
const &
borders()
const 139 return m_verticalSet;
144 m_verticalSet = verticalSet;
165 return m_numberCellSpanned;
170 m_numberCellSpanned=numSpanned;
194 return m_cell->box().max()[coord];
195 return m_cell->box().min()[coord];
199 return m_cell->box().size()[coord];
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
bool operator()(Point const &c1, Point const &c2) const
comparaison function
Definition: WPSCell.h:206
Point(int wh, WPSCell const *cell)
Definition: WPSCell.h:190
Vec2i m_numberCellSpanned
the cell spanned : by default (1,1)
Definition: WPSCell.h:232
Vec2< T > size() const
the box size
Definition: libwps_internal.h:547
WPSCell()
constructor
Definition: WPSCell.h:124
void setVerticalSet(bool verticalSet)
fixes or not the vertical size
Definition: WPSCell.h:142
Definition: WPSContentListener.h:168
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
Box2f m_box
the cell bounding box (unit in point)
Definition: WPSCell.h:226
bool isVerticalSet() const
returns true if the vertical is fixed
Definition: WPSCell.h:137
int m_coord
the coord to compare
Definition: WPSCell.h:222
Compare(int dim)
Definition: WPSCell.h:186
float getPos(int coord) const
Definition: WPSCell.h:191
float getSize(int coord) const
Definition: WPSCell.h:197
small structure to define a cell point
Definition: WPSCell.h:188
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
Box2f const & box() const
return the bounding box
Definition: WPSCell.h:132
int m_which
Definition: WPSCell.h:201
Vec2i const & position() const
position accessor
Definition: WPSCell.h:152
Definition: WPSTable.h:45
Vec2i const & numSpannedCells() const
returns the number of spanned cells
Definition: WPSCell.h:163
bool m_verticalSet
true if y size is fixed
Definition: WPSCell.h:228
shared_ptr< WPSCell > WPSCellPtr
Definition: WPSCell.h:235
Vec2i & position()
position accessor
Definition: WPSCell.h:147