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 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 | |
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 | |
std::ostream & | operator<< (std::ostream &o, WPSCellFormat const &cell) |
operator<< More... | |
a structure used to defined the cell format
|
inline |
constructor
|
inlinevirtual |
|
inline |
returns the background color
Referenced by WPSContentListener::openTableCell().
|
inline |
return the cell border: libwps::LeftBit | ...
Referenced by WPSContentListener::openTableCell().
int WPSCellFormat::compare | ( | WPSCellFormat const & | cell | ) | const |
a comparison function
|
inline |
returns the horizontal alignement
|
inline |
return true if the cell has some border
|
inline |
reset the border
|
inline |
set the background color
void WPSCellFormat::setBorders | ( | int | wh, |
WPSBorder const & | border | ||
) |
sets the cell border: wh=WPSBorder::LeftBit|...
|
inline |
sets the horizontal alignement
|
friend |
operator<<
|
protected |
the backgroung color
Referenced by backgroundColor(), compare(), operator<<(), and setBackgroundColor().
|
protected |
the cell border WPSBorder::Pos
Referenced by borders(), WPS8TableInternal::Cell::Cell(), compare(), hasBorders(), operator<<(), resetBorders(), and setBorders().
|
protected |
the cell alignement : by default nothing
Referenced by compare(), hAlignement(), operator<<(), and setHAlignement().