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 More... | |
void | setBox (Box2f const &b) |
set the bounding box (units in point) More... | |
Box2f const & | box () const |
return the bounding box More... | |
bool | isVerticalSet () const |
returns true if the vertical is fixed More... | |
void | setVerticalSet (bool verticalSet) |
fixes or not the vertical size More... | |
Vec2i & | position () |
position accessor More... | |
Vec2i const & | position () const |
position accessor More... | |
void | setPosition (Vec2i posi) |
set the cell positions : 0,0 -> A1, 0,1 -> A2 More... | |
Vec2i const & | numSpannedCells () const |
returns the number of spanned cells More... | |
void | setNumSpannedCells (Vec2i numSpanned) |
sets the number of spanned cells : Vec2i(1,1) means 1 cellule More... | |
virtual bool | send (WPSContentListenerPtr &listener)=0 |
call when a cell must be send More... | |
virtual bool | sendContent (WPSContentListenerPtr &listener)=0 |
call when the content of a cell must be send More... | |
![]() | |
WPSCellFormat () | |
constructor More... | |
virtual | ~WPSCellFormat () |
HorizontalAlignment | hAlignement () const |
returns the horizontal alignement More... | |
void | setHAlignement (HorizontalAlignment align) |
sets the horizontal alignement More... | |
bool | hasBorders () const |
return true if the cell has some border More... | |
std::vector< WPSBorder > const & | borders () const |
return the cell border: libwps::LeftBit | ... More... | |
void | resetBorders () |
reset the border More... | |
void | setBorders (int wh, WPSBorder const &border) |
sets the cell border: wh=WPSBorder::LeftBit|... More... | |
uint32_t | backgroundColor () const |
returns the background color More... | |
void | setBackgroundColor (uint32_t color) |
set the background color More... | |
int | compare (WPSCellFormat const &cell) const |
a comparison function More... | |
Protected Attributes | |
Box2f | m_box |
the cell bounding box (unit in point) More... | |
bool | m_verticalSet |
true if y size is fixed More... | |
Vec2i | m_position |
the cell row and column : 0,0 -> A1, 0,1 -> A2 More... | |
Vec2i | m_numberCellSpanned |
the cell spanned : by default (1,1) More... | |
![]() | |
HorizontalAlignment | m_hAlign |
the cell alignement : by default nothing More... | |
std::vector< WPSBorder > | m_bordersList |
the cell border WPSBorder::Pos More... | |
uint32_t | m_backgroundColor |
the backgroung color More... | |
Friends | |
class | WPSTable |
std::ostream & | operator<< (std::ostream &o, WPSCell const &cell) |
operator<< More... | |
Additional Inherited Members | |
![]() | |
enum | HorizontalAlignment { HALIGN_LEFT, HALIGN_RIGHT, HALIGN_CENTER, HALIGN_FULL, HALIGN_DEFAULT } |
the default horizontal alignement. More... | |
a structure used to defined the cell position, and a format
|
inline |
constructor
|
inline |
return the bounding box
Referenced by WPSCell::Compare::Point::getPos(), WPSCell::Compare::Point::getSize(), and WPSCell::Compare::operator()().
|
inline |
returns true if the vertical is fixed
|
inline |
returns the number of spanned cells
Referenced by WPSContentListener::openTableCell(), and operator<<().
|
inline |
position accessor
Referenced by WPSContentListener::openTableCell().
|
inline |
position accessor
|
pure virtual |
call when a cell must be send
Implemented in WPS8TableInternal::Cell.
|
pure virtual |
call when the content of a cell must be send
Implemented in WPS8TableInternal::Cell.
|
inline |
set the bounding box (units in point)
|
inline |
sets the number of spanned cells : Vec2i(1,1) means 1 cellule
|
inline |
set the cell positions : 0,0 -> A1, 0,1 -> A2
|
inline |
fixes or not the vertical size
|
friend |
operator<<
|
friend |
|
protected |
the cell bounding box (unit in point)
Referenced by box(), operator<<(), and setBox().
|
protected |
the cell spanned : by default (1,1)
Referenced by numSpannedCells(), and setNumSpannedCells().
|
protected |
the cell row and column : 0,0 -> A1, 0,1 -> A2
Referenced by operator<<(), position(), and setPosition().
|
protected |
true if y size is fixed
Referenced by isVerticalSet(), WPSCell::Compare::operator()(), operator<<(), and setVerticalSet().