WPS8TableInternal::Cell Struct Reference

Internal: class to store a basic cell with borders. More...

Inheritance diagram for WPS8TableInternal::Cell:
WPSCell WPSCellFormat

List of all members.

Public Member Functions

 Cell (WPS8Table &parser)
 constructor
virtual ~Cell ()
 virtual destructor
virtual bool send (WPSContentListenerPtr &listener)
 call when a cell must be send
virtual bool sendContent (WPSContentListenerPtr &)
 call when the content of a cell must be send
- Public Member Functions inherited from WPSCell
 WPSCell ()
 constructor
void setBox (Box2f const &b)
 set the bounding box (units in point)
Box2f const & box () const
 return the bounding box
bool isVerticalSet () const
 returns true if the vertical is fixed
void setVerticalSet (bool verticalSet)
 fixes or not the vertical size
Vec2iposition ()
 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
- Public Member Functions inherited from WPSCellFormat
 WPSCellFormat ()
 constructor
virtual ~WPSCellFormat ()
HorizontalAlignment hAlignement () const
 returns the horizontal alignement
void setHAlignement (HorizontalAlignment align)
 sets the horizontal alignement
bool hasBorders () const
 return true if the cell has some border
std::vector< WPSBorder > const & borders () const
 return the cell border: libwps::LeftBit | ...
void resetBorders ()
 reset the border
void setBorders (int wh, WPSBorder const &border)
 sets the cell border: wh=WPSBorder::LeftBit|...
uint32_t backgroundColor () const
 returns the background color
void setBackgroundColor (uint32_t color)
 set the background color
int compare (WPSCellFormat const &cell) const
 a comparison function

Public Attributes

WPS8Tablem_tableParser
 the actual parser
int m_id
 the cell id
int m_strsId
 the strsId
Vec2f m_size
 frame size in inches
float m_bordersSep [4]
 border text separator T,L,R,B ( checkme, not sure )

Friends

std::ostream & operator<< (std::ostream &o, Cell const &cell)
 operator<<

Additional Inherited Members

- Protected Attributes inherited from WPSCell
Box2f m_box
 the cell bounding box (unit in point)
bool m_verticalSet
 true if y size is fixed
Vec2i m_position
 the cell row and column : 0,0 -> A1, 0,1 -> A2
Vec2i m_numberCellSpanned
 the cell spanned : by default (1,1)
- Protected Attributes inherited from WPSCellFormat
HorizontalAlignment m_hAlign
 the cell alignement : by default nothing
std::vector< WPSBorderm_bordersList
 the cell border WPSBorder::Pos
uint32_t m_backgroundColor
 the backgroung color

Detailed Description

Internal: class to store a basic cell with borders.


Constructor & Destructor Documentation

WPS8TableInternal::Cell::Cell ( WPS8Table parser)
inline

constructor

virtual WPS8TableInternal::Cell::~Cell ( )
inlinevirtual

virtual destructor


Member Function Documentation

virtual bool WPS8TableInternal::Cell::send ( WPSContentListenerPtr listener)
inlinevirtual

call when a cell must be send

Implements WPSCell.

virtual bool WPS8TableInternal::Cell::sendContent ( WPSContentListenerPtr )
inlinevirtual

call when the content of a cell must be send

Implements WPSCell.

Referenced by send().


Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  o,
Cell const &  cell 
)
friend

operator<<


Member Data Documentation

float WPS8TableInternal::Cell::m_bordersSep[4]

border text separator T,L,R,B ( checkme, not sure )

Referenced by Cell(), and WPS8TableInternal::operator<<().

int WPS8TableInternal::Cell::m_id

the cell id

Referenced by sendContent().

Vec2f WPS8TableInternal::Cell::m_size

frame size in inches

Referenced by WPS8TableInternal::operator<<().

int WPS8TableInternal::Cell::m_strsId
mutable

the strsId

Referenced by sendContent().

WPS8Table& WPS8TableInternal::Cell::m_tableParser

the actual parser

Referenced by sendContent().


The documentation for this struct was generated from the following file:

Generated on Sat May 25 2013 07:32:17 for libwps by doxygen 1.8.1.1