a structure used to defined the cell position, and a format More...
#include <WPSCell.h>
Classes | |
struct | Compare |
a comparaison structure used retrieve the rows and the columns More... | |
Public Member Functions | |
WPSCell () | |
constructor | |
void | setBox (Box2f const &b) |
set the bounding box (units in point) | |
Box2f const & | box () const |
return the bounding box | |
Vec2i & | position () |
position accessor | |
Vec2i const & | position () const |
position accessor | |
void | setPosition (Vec2i posi) |
set the cell positions : 0,0 -> A1, 0,1 -> A2 | |
Vec2i const & | numSpannedCells () const |
returns the number of spanned cells | |
void | setNumSpannedCells (Vec2i numSpanned) |
sets the number of spanned cells : Vec2i(1,1) means 1 cellule | |
virtual bool | send (WPSContentListenerPtr &listener)=0 |
call when a cell must be send | |
virtual bool | sendContent (WPSContentListenerPtr &listener)=0 |
call when the content of a cell must be send | |
Protected Attributes | |
Box2f | m_box |
the cell bounding box (unit in point) | |
Vec2i | m_position |
the cell row and column : 0,0 -> A1, 0,1 -> A2 | |
Vec2i | m_numberCellSpanned |
the cell spanned : by default (1,1) | |
Friends | |
class | WPSTable |
std::ostream & | operator<< (std::ostream &o, WPSCell const &cell) |
operator<< |
a structure used to defined the cell position, and a format
WPSCell::WPSCell | ( | ) | [inline] |
constructor
Box2f const& WPSCell::box | ( | ) | const [inline] |
return the bounding box
Referenced by WPSCell::Compare::Point::getPos(), WPSCell::Compare::Point::getSize(), and WPSCell::Compare::operator()().
Vec2i const& WPSCell::numSpannedCells | ( | ) | const [inline] |
returns the number of spanned cells
Referenced by WPSContentListener::openTableCell(), and operator<<().
Vec2i& WPSCell::position | ( | ) | [inline] |
position accessor
Referenced by WPSContentListener::openTableCell().
Vec2i const& WPSCell::position | ( | ) | const [inline] |
position accessor
virtual bool WPSCell::send | ( | WPSContentListenerPtr & | listener | ) | [pure virtual] |
call when a cell must be send
virtual bool WPSCell::sendContent | ( | WPSContentListenerPtr & | listener | ) | [pure virtual] |
call when the content of a cell must be send
void WPSCell::setBox | ( | Box2f const & | b | ) | [inline] |
set the bounding box (units in point)
void WPSCell::setNumSpannedCells | ( | Vec2i | numSpanned | ) | [inline] |
sets the number of spanned cells : Vec2i(1,1) means 1 cellule
void WPSCell::setPosition | ( | Vec2i | posi | ) | [inline] |
set the cell positions : 0,0 -> A1, 0,1 -> A2
std::ostream& operator<< | ( | std::ostream & | o, |
WPSCell const & | cell | ||
) | [friend] |
operator<<
friend class WPSTable [friend] |
Box2f WPSCell::m_box [protected] |
the cell bounding box (unit in point)
Referenced by box(), operator<<(), and setBox().
Vec2i WPSCell::m_numberCellSpanned [protected] |
the cell spanned : by default (1,1)
Referenced by numSpannedCells(), and setNumSpannedCells().
Vec2i WPSCell::m_position [protected] |
the cell row and column : 0,0 -> A1, 0,1 -> A2
Referenced by operator<<(), position(), and setPosition().