a structure used to defined the cell format More...
#include <WPSCell.h>
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<< | |
a structure used to defined the cell format
| WPSCellFormat::WPSCellFormat | ( | ) | [inline] |
constructor
| virtual WPSCellFormat::~WPSCellFormat | ( | ) | [inline, virtual] |
| 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
| std::ostream& operator<< | ( | std::ostream & | o, |
| WPSCellFormat const & | cell | ||
| ) | [friend] |
operator<<
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().