a structure used to defined the cell format More...
#include <MWAWCell.hxx>
Public Types | |
| enum | HorizontalAlignment { HALIGN_LEFT, HALIGN_RIGHT, HALIGN_CENTER, HALIGN_FULL, HALIGN_DEFAULT } |
| the default horizontal alignement. More... | |
| enum | VerticalAlignment { VALIGN_TOP, VALIGN_CENTER, VALIGN_BOTTOM, VALIGN_DEFAULT } |
| the default vertical alignement. More... | |
| enum | Format { F_TEXT, F_NUMBER, F_DATE, F_TIME, F_UNKNOWN } |
| the different types of cell's field More... | |
Public Member Functions | |
| MWAWCellFormat () | |
| constructor More... | |
| virtual | ~MWAWCellFormat () |
| Format | format () const |
| returns the format type More... | |
| int | subformat () const |
| returns the subformat type More... | |
| void | setFormat (Format form, int subform=0) |
| sets the format type More... | |
| void | setSubformat (int subFormat) |
| sets the subformat More... | |
| int | digits () const |
| returns the number of digits ( for a number) More... | |
| void | setDigits (int newDigit) |
| set the number of digits ( for a number) More... | |
| bool | isProtected () const |
| returns true if the cell is protected More... | |
| void | setProtected (bool fl) |
| returns true if the cell is protected More... | |
| HorizontalAlignment | hAlignement () const |
| returns the horizontal alignement More... | |
| void | setHAlignement (HorizontalAlignment align) |
| sets the horizontal alignement More... | |
| VerticalAlignment | vAlignement () const |
| returns the vertical alignement More... | |
| void | setVAlignement (VerticalAlignment align) |
| sets the vertical alignement More... | |
| bool | hasBorders () const |
| return true if the cell has some border More... | |
| std::vector< MWAWBorder > const & | borders () const |
| return the cell border: libmwaw::Left | ... More... | |
| void | resetBorders () |
| reset the border More... | |
| void | setBorders (int wh, MWAWBorder const &border) |
| sets the cell border: wh=libmwaw::Left|... More... | |
| MWAWColor | backgroundColor () const |
| returns the background color More... | |
| void | setBackgroundColor (MWAWColor color) |
| set the background color More... | |
| int | compare (MWAWCellFormat const &cell) const |
| a comparison function More... | |
Protected Attributes | |
| Format | m_format |
| the cell format : by default unknown More... | |
| int | m_subFormat |
| the sub format More... | |
| int | m_digits |
| the number of digits More... | |
| HorizontalAlignment | m_hAlign |
| the cell alignement : by default nothing More... | |
| VerticalAlignment | m_vAlign |
| the vertical cell alignement : by default nothing More... | |
| std::vector< MWAWBorder > | m_bordersList |
| the cell border MWAWBorder::Pos More... | |
| MWAWColor | m_backgroundColor |
| the backgroung color More... | |
| bool | m_protected |
| cell protected More... | |
Friends | |
| std::ostream & | operator<< (std::ostream &o, MWAWCellFormat const &cell) |
| operator<< More... | |
a structure used to defined the cell format
|
inline |
constructor
|
inlinevirtual |
|
inline |
returns the background color
Referenced by MWAWContentListener::openTableCell().
|
inline |
return the cell border: libmwaw::Left | ...
Referenced by MWAWContentListener::openTableCell().
| int MWAWCellFormat::compare | ( | MWAWCellFormat const & | cell | ) | const |
a comparison function
|
inline |
returns the number of digits ( for a number)
|
inline |
returns the format type
Referenced by MWAWContentListener::openTableCell().
|
inline |
returns the horizontal alignement
Referenced by MWAWContentListener::openTableCell().
|
inline |
return true if the cell has some border
|
inline |
returns true if the cell is protected
Referenced by MWAWContentListener::openTableCell().
|
inline |
reset the border
|
inline |
set the background color
Referenced by MWProStructuresInternal::Cell::send(), WNTextInternal::Cell::send(), MSWText::sendTable(), HMWJGraph::sendTableCell(), HMWKGraph::sendTableCell(), MRWTextInternal::Paragraph::update(), and CWTable::updateCell().
| void MWAWCellFormat::setBorders | ( | int | wh, |
| MWAWBorder const & | border | ||
| ) |
sets the cell border: wh=libmwaw::Left|...
Referenced by MWProStructuresInternal::Cell::send(), WNTextInternal::Cell::send(), FWText::sendTable(), MSKGraph::sendTable(), MSWText::sendTable(), HMWJGraph::sendTableCell(), HMWKGraph::sendTableCell(), MRWTextInternal::Paragraph::update(), and CWTable::updateCell().
|
inline |
set the number of digits ( for a number)
|
inline |
sets the format type
|
inline |
sets the horizontal alignement
|
inline |
returns true if the cell is protected
|
inline |
sets the subformat
|
inline |
sets the vertical alignement
Referenced by HMWJGraph::sendTableCell(), HMWKGraph::sendTableCell(), and CWTable::updateCell().
|
inline |
returns the subformat type
Referenced by MWAWContentListener::openTableCell().
|
inline |
returns the vertical alignement
Referenced by MWAWContentListener::openTableCell().
|
friend |
operator<<
|
protected |
the backgroung color
Referenced by backgroundColor(), compare(), operator<<(), and setBackgroundColor().
|
protected |
the cell border MWAWBorder::Pos
Referenced by borders(), compare(), hasBorders(), operator<<(), resetBorders(), and setBorders().
|
protected |
the number of digits
Referenced by compare(), digits(), operator<<(), and setDigits().
|
protected |
the cell format : by default unknown
Referenced by compare(), format(), operator<<(), and setFormat().
|
protected |
the cell alignement : by default nothing
Referenced by compare(), hAlignement(), operator<<(), and setHAlignement().
|
protected |
cell protected
Referenced by compare(), isProtected(), operator<<(), and setProtected().
|
protected |
the sub format
Referenced by compare(), operator<<(), setFormat(), setSubformat(), and subformat().
|
protected |
the vertical cell alignement : by default nothing
Referenced by compare(), operator<<(), setVAlignement(), and vAlignement().