small class use to define a sheet cell content More...
#include <STOFFCell.hxx>
Classes | |
struct | FormulaInstruction |
small class use to define a formula instruction More... | |
Public Types | |
enum | Type { C_NONE, C_TEXT, C_TEXT_BASIC, C_NUMBER, C_FORMULA, C_UNKNOWN } |
the different types of cell's field More... | |
Public Member Functions | |
STOFFCellContent () | |
constructor More... | |
~STOFFCellContent () | |
destructor More... | |
bool | empty () const |
returns true if the cell has no content More... | |
void | setValue (double value) |
sets the double value More... | |
bool | isValueSet () const |
returns true if the value has been setted More... | |
bool | hasText () const |
returns true if the text is set More... | |
Static Public Member Functions | |
static bool | double2Date (double val, int &Y, int &M, int &D) |
conversion beetween double days since 1900 and a date, ie val=0 corresponds to 1/1/1900, val=365 to 1/1/1901, ... More... | |
static bool | double2Time (double val, int &H, int &M, int &S) |
conversion beetween double: second since 0:00 and time More... | |
static bool | date2Double (int Y, int M, int D, double &val) |
conversion beetween date and double days since 1900 date More... | |
Public Attributes | |
Type | m_contentType |
the content type ( by default unknown ) More... | |
double | m_value |
the cell value More... | |
bool | m_valueSet |
true if the value has been set More... | |
std::vector< uint32_t > | m_text |
the text value (for C_TEXT_BASIC) More... | |
std::vector< FormulaInstruction > | m_formula |
the formula list of instruction More... | |
Friends | |
std::ostream & | operator<< (std::ostream &o, STOFFCellContent const &cell) |
operator<< More... | |
small class use to define a sheet cell content
|
inline |
constructor
|
inline |
destructor
|
static |
conversion beetween date and double days since 1900 date
|
static |
conversion beetween double days since 1900 and a date, ie val=0 corresponds to 1/1/1900, val=365 to 1/1/1901, ...
Referenced by STOFFSpreadsheetListener::openSheetCell().
|
static |
conversion beetween double: second since 0:00 and time
Referenced by STOFFSpreadsheetListener::openSheetCell().
|
inline |
returns true if the cell has no content
|
inline |
returns true if the text is set
|
inline |
returns true if the value has been setted
Referenced by empty(), STOFFSpreadsheetListener::openSheetCell(), and operator<<().
|
inline |
sets the double value
|
friend |
operator<<
Type STOFFCellContent::m_contentType |
the content type ( by default unknown )
Referenced by empty(), hasText(), operator<<(), StarCellFormula::readSCFormula(), StarCellFormula::readSCFormula3(), and StarObjectSpreadsheet::sendCell().
std::vector<FormulaInstruction> STOFFCellContent::m_formula |
the formula list of instruction
Referenced by empty(), STOFFSpreadsheetListener::openSheetCell(), operator<<(), StarCellFormula::readSCFormula(), StarCellFormula::readSCFormula3(), StarObjectSpreadsheet::sendCell(), and StarCellFormula::updateFormula().
std::vector<uint32_t> STOFFCellContent::m_text |
the text value (for C_TEXT_BASIC)
Referenced by empty(), hasText(), operator<<(), and StarObjectSpreadsheet::sendCell().
double STOFFCellContent::m_value |
the cell value
Referenced by STOFFSpreadsheetListener::openSheetCell(), operator<<(), and setValue().
bool STOFFCellContent::m_valueSet |
true if the value has been set
Referenced by isValueSet(), and setValue().