WPSCellFormat Class Reference

a structure used to defined the cell format More...

#include <WPSCell.h>

Inheritance diagram for WPSCellFormat:
WPSCell

Public Types

enum  HorizontalAlignment {
  HALIGN_LEFT, HALIGN_RIGHT, HALIGN_CENTER, HALIGN_FULL,
  HALIGN_DEFAULT
}
 the default horizontal alignement. More...

Public Member Functions

 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
int borders () const
 return the cell border: libwps::LeftBorderBit | ...
void setBorders (int bList)
 sets the cell border
int compare (WPSCellFormat const &cell) const
 a comparison function

Protected Attributes

HorizontalAlignment m_hAlign
 the cell alignement : by default nothing
int m_bordersList
 the cell border : libwps::LeftBorderBit | ...

Friends

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

Detailed Description

a structure used to defined the cell format

Member Enumeration Documentation

the default horizontal alignement.

Note
actually mainly used for table/spreadsheet cell, FULL is not yet implemented
Enumerator:
HALIGN_LEFT 
HALIGN_RIGHT 
HALIGN_CENTER 
HALIGN_FULL 
HALIGN_DEFAULT 

Constructor & Destructor Documentation

WPSCellFormat::WPSCellFormat ( )
inline

constructor

virtual WPSCellFormat::~WPSCellFormat ( )
inlinevirtual

Member Function Documentation

int WPSCellFormat::borders ( ) const
inline

return the cell border: libwps::LeftBorderBit | ...

int WPSCellFormat::compare ( WPSCellFormat const &  cell) const

a comparison function

HorizontalAlignment WPSCellFormat::hAlignement ( ) const
inline

returns the horizontal alignement

bool WPSCellFormat::hasBorders ( ) const
inline

return true if the cell has some border

void WPSCellFormat::setBorders ( int  bList)
inline

sets the cell border

void WPSCellFormat::setHAlignement ( HorizontalAlignment  align)
inline

sets the horizontal alignement

Friends And Related Function Documentation

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

operator<<

Member Data Documentation

int WPSCellFormat::m_bordersList
protected

the cell border : libwps::LeftBorderBit | ...

Referenced by borders(), compare(), hasBorders(), operator<<(), and setBorders().

HorizontalAlignment WPSCellFormat::m_hAlign
protected

the cell alignement : by default nothing

Referenced by compare(), hAlignement(), operator<<(), and setHAlignement().


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

Generated on Wed Aug 8 2012 16:07:58 for libwps by doxygen 1.8.1.2