small class use to define a sheet cell content More...
#include <WKSContentListener.h>
Public Types | |
| enum | ContentType { C_NONE, C_TEXT, C_NUMBER, C_FORMULA, C_UNKNOWN } |
| the different types of cell's field More... | |
Public Member Functions | |
| CellContent () | |
| constructor | |
| ~CellContent () | |
| destructor | |
| bool | empty () const |
| returns true if the cell has no content | |
| void | setValue (double value) |
| sets the double value | |
| bool | isValueSet () const |
| returns true if the value has been setted | |
| bool | hasText () const |
| returns true if the text is set | |
Static Public Member Functions | |
| static bool | double2Date (double val, int &Y, int &M, int &D) |
| conversion beetween double days since 1900 and date | |
| static bool | double2Time (double val, int &H, int &M, int &S) |
| conversion beetween double: second since 0:00 and time | |
Public Attributes | |
| ContentType | m_contentType |
| the content type ( by default unknown ) | |
| double | m_value |
| the cell value | |
| bool | m_valueSet |
| true if the value has been set | |
| WPSEntry | m_textEntry |
| the cell string | |
| std::vector< FormulaInstruction > | m_formula |
| the formula list of instruction | |
Friends | |
| std::ostream & | operator<< (std::ostream &o, CellContent const &cell) |
| operator<< | |
small class use to define a sheet cell content
| WKSContentListener::CellContent::CellContent | ( | ) | [inline] |
constructor
| WKSContentListener::CellContent::~CellContent | ( | ) | [inline] |
destructor
| bool WKSContentListener::CellContent::double2Date | ( | double | val, |
| int & | Y, | ||
| int & | M, | ||
| int & | D | ||
| ) | [static] |
conversion beetween double days since 1900 and date
Referenced by WKSContentListener::openSheetCell().
| bool WKSContentListener::CellContent::double2Time | ( | double | val, |
| int & | H, | ||
| int & | M, | ||
| int & | S | ||
| ) | [static] |
conversion beetween double: second since 0:00 and time
Referenced by WKSContentListener::openSheetCell().
| bool WKSContentListener::CellContent::empty | ( | ) | const [inline] |
returns true if the cell has no content
| bool WKSContentListener::CellContent::hasText | ( | ) | const [inline] |
returns true if the text is set
Referenced by operator<<().
| bool WKSContentListener::CellContent::isValueSet | ( | ) | const [inline] |
returns true if the value has been setted
Referenced by empty(), WKSContentListener::openSheetCell(), and operator<<().
| void WKSContentListener::CellContent::setValue | ( | double | value | ) | [inline] |
sets the double value
Referenced by WKS4Spreadsheet::readCell().
| std::ostream& operator<< | ( | std::ostream & | o, |
| WKSContentListener::CellContent const & | cell | ||
| ) | [friend] |
operator<<
the content type ( by default unknown )
Referenced by empty(), operator<<(), WKS4Spreadsheet::readCell(), and WKS4Spreadsheet::readDOSCellProperty().
the formula list of instruction
Referenced by empty(), WKSContentListener::openSheetCell(), operator<<(), WKS4Spreadsheet::readCell(), and WKS4Spreadsheet::sendCellContent().
the cell string
Referenced by empty(), hasText(), operator<<(), WKS4Spreadsheet::readCell(), and WKS4Spreadsheet::sendCellContent().
the cell value
Referenced by WKSContentListener::openSheetCell(), operator<<(), and setValue().
true if the value has been set
Referenced by isValueSet(), and setValue().