WPSCell Class Reference

a structure used to defined the cell position, and a format More...

#include <WPSCell.h>

Inheritance diagram for WPSCell:
WPSCellFormat WKS4SpreadsheetInternal::Cell WPS8TableInternal::Cell

List of all members.

Classes

struct  Compare
 a comparaison structure used retrieve the rows and the columns More...

Public Member Functions

 WPSCell ()
 constructor
virtual ~WPSCell ()
 destructor
void addTo (librevenge::RVNGPropertyList &propList) const
 add to the propList
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
virtual bool send (WPSListenerPtr &listener)=0
 call when a cell must be send
virtual bool sendContent (WPSListenerPtr &listener)=0
 call when the content of a cell must be send

Protected Attributes

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)

Friends

class WPSTable
std::ostream & operator<< (std::ostream &o, WPSCell const &cell)
 operator<<

Detailed Description

a structure used to defined the cell position, and a format


Constructor & Destructor Documentation

WPSCell::WPSCell ( ) [inline]

constructor

virtual WPSCell::~WPSCell ( ) [inline, virtual]

destructor


Member Function Documentation

void WPSCell::addTo ( librevenge::RVNGPropertyList &  propList) const

add to the propList

Reimplemented from WPSCellFormat.

Referenced by WKSContentListener::openSheetCell(), and WPSContentListener::openTableCell().

Box2f const& WPSCell::box ( ) const [inline]
bool WPSCell::isVerticalSet ( ) const [inline]

returns true if the vertical is fixed

Vec2i const& WPSCell::numSpannedCells ( ) const [inline]

returns the number of spanned cells

Referenced by addTo(), and operator<<().

Vec2i const& WPSCell::position ( ) const [inline]

position accessor

virtual bool WPSCell::send ( WPSListenerPtr listener) [pure virtual]

call when a cell must be send

Implemented in WKS4SpreadsheetInternal::Cell, and WPS8TableInternal::Cell.

virtual bool WPSCell::sendContent ( WPSListenerPtr listener) [pure virtual]

call when the content of a cell must be send

Implemented in WKS4SpreadsheetInternal::Cell, and WPS8TableInternal::Cell.

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

Referenced by WKS4Spreadsheet::readCell().

void WPSCell::setVerticalSet ( bool  verticalSet) [inline]

fixes or not the vertical size


Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  o,
WPSCell const &  cell 
) [friend]

operator<<

friend class WPSTable [friend]

Member Data Documentation

Box2f WPSCell::m_box [protected]

the cell bounding box (unit in point)

Referenced by box(), operator<<(), and setBox().

the cell spanned : by default (1,1)

Referenced by numSpannedCells(), and setNumSpannedCells().

the cell row and column : 0,0 -> A1, 0,1 -> A2

Referenced by operator<<(), position(), and setPosition().

bool WPSCell::m_verticalSet [protected]

true if y size is fixed

Referenced by isVerticalSet(), WPSCell::Compare::operator()(), operator<<(), and setVerticalSet().


The documentation for this class was generated from the following files: