small class use to define a sheet cell content More...
#include <MWAWCell.hxx>
Classes | |
struct | FormulaInstruction |
small class use to define a formula instruction More... | |
Public Types | |
enum | Type { C_NONE, C_TEXT, C_NUMBER, C_FORMULA, C_UNKNOWN } |
the different types of cell's field More... | |
Public Member Functions | |
MWAWCellContent () | |
constructor More... | |
~MWAWCellContent () | |
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 | double2String (double val, MWAWCell::Format const &format, std::string &str) |
conversion of the value in string knowing the cell format 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... | |
MWAWEntry | m_textEntry |
the cell string More... | |
std::vector< FormulaInstruction > | m_formula |
the formula list of instruction More... | |
Friends | |
std::ostream & | operator<< (std::ostream &o, MWAWCellContent 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
Referenced by RagTimeSpreadsheet::readFormulaV2(), and RagTimeSpreadsheet::readSpreadsheetCellV2().
|
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 MWAWSpreadsheetListener::openSheetCell().
|
static |
conversion of the value in string knowing the cell format
Referenced by ClarisWksDbaseContent::send().
|
static |
conversion beetween double: second since 0:00 and time
Referenced by MWAWSpreadsheetListener::openSheetCell().
|
inline |
returns true if the cell has no content
Referenced by BeagleWksDBParserInternal::Cell::empty(), MsWksDBParserInternal::FieldType::empty(), MsWksSSParserInternal::Cell::isEmpty(), GreatWksSSParserInternal::Cell::isEmpty(), GreatWksDBParserInternal::Cell::isEmpty(), and MsWksDBParserInternal::FieldType::updateWithContent().
|
inline |
returns true if the text is set
Referenced by operator<<().
|
inline |
returns true if the value has been setted
Referenced by empty(), MWAWSpreadsheetListener::openSheetCell(), operator<<(), MsWksSSParser::readCell(), ClarisWksDbaseContent::readRecordSSV1(), WingzParser::readSpreadsheetCellList(), RagTimeSpreadsheet::send(), ClarisWksDatabase::sendDatabase(), ClarisWksSpreadsheet::sendSpreadsheet(), GreatWksDBParserInternal::Field::updateCell(), BeagleWksDBParserInternal::Database::updateWithContent(), and MsWksDBParserInternal::FieldType::updateWithContent().
|
inline |
sets the double value
Referenced by GreatWksSSParser::readCell(), MsWksSSParser::readCell(), BeagleWksSSParser::readCellSheet(), MsWksDBParser::readDefaultValues(), GreatWksDBParser::readFieldRecords(), GreatWksDBParser::readFormulaResult(), ClarisWksDbaseContent::readRecordDB(), MsWksDBParser::readRecords(), ClarisWksDbaseContent::readRecordSS(), ClarisWksDbaseContent::readRecordSSV1(), BeagleWksDBParser::readRow(), GreatWksDBParser::readRowRecords(), RagTimeSpreadsheet::readSpreadsheetCellContent(), WingzParser::readSpreadsheetCellList(), RagTimeSpreadsheet::readSpreadsheetCellV2(), RagTimeSpreadsheet::send(), ClarisWksDatabase::sendDatabase(), ClarisWksSpreadsheet::sendSpreadsheet(), GreatWksDBParserInternal::Field::updateCell(), BeagleWksDBParserInternal::Database::updateWithContent(), and MsWksDBParserInternal::FieldType::updateWithContent().
|
friend |
operator<<
Type MWAWCellContent::m_contentType |
the content type ( by default unknown )
Referenced by BeagleWksDBParser::createZones(), empty(), operator<<(), GreatWksSSParser::readCell(), MsWksSSParser::readCell(), BeagleWksSSParser::readCellSheet(), MsWksDBParser::readDefaultValues(), GreatWksDBParser::readFieldRecords(), BeagleWksDBParser::readFields(), MsWksDBParser::readFieldTypes(), MsWksDBParser::readFieldTypesV2(), MsWksDBParser::readFormula(), GreatWksDBParser::readFormulaResult(), ClarisWksDbaseContent::readRecordDB(), MsWksDBParser::readRecords(), ClarisWksDbaseContent::readRecordSS(), ClarisWksDbaseContent::readRecordSSV1(), BeagleWksDBParser::readRow(), GreatWksDBParser::readRowRecords(), RagTimeSpreadsheet::readSpreadsheetCellContent(), WingzParser::readSpreadsheetCellList(), RagTimeSpreadsheet::readSpreadsheetCellV2(), RagTimeSpreadsheet::readSpreadsheetComplexStructure(), ClarisWksDbaseContent::send(), BeagleWksDBParser::sendDatabase(), MsWksDBParser::sendDatabase(), WingzParserInternal::Spreadsheet::update(), GreatWksDBParserInternal::Field::updateCell(), MsWksDBParserInternal::SerialFormula::updateContent(), ClarisWksDbaseContent::Record::updateFormulaCells(), BeagleWksDBParserInternal::Database::updateWithContent(), and MsWksDBParserInternal::FieldType::updateWithContent().
std::vector<FormulaInstruction> MWAWCellContent::m_formula |
the formula list of instruction
Referenced by BeagleWksDBParser::createZones(), empty(), MWAWSpreadsheetListener::openSheetCell(), operator<<(), GreatWksSSParser::readCell(), MsWksDocument::readFormula(), ClarisWksDbaseContent::readRecordSS(), ClarisWksDbaseContent::readRecordSSV1(), RagTimeSpreadsheet::readSpreadsheetCellV2(), RagTimeSpreadsheet::readSpreadsheetComplexStructure(), WingzParserInternal::Spreadsheet::update(), GreatWksDBParserInternal::Field::updateCell(), MsWksDBParserInternal::SerialFormula::updateContent(), ClarisWksDbaseContent::Record::updateFormulaCells(), BeagleWksDBParserInternal::Database::updateWithContent(), MsWksDBParserInternal::FieldType::updateWithContent(), and RagTimeSpreadsheetInternal::Cell::validateFormula().
MWAWEntry MWAWCellContent::m_textEntry |
the cell string
Referenced by empty(), hasText(), operator<<(), GreatWksSSParser::readCell(), MsWksSSParser::readCell(), BeagleWksSSParser::readCellSheet(), MsWksDBParser::readDefaultValues(), GreatWksDBParser::readFieldRecords(), GreatWksDBParser::readFormulaResult(), ClarisWksDbaseContent::readRecordDB(), MsWksDBParser::readRecords(), ClarisWksDbaseContent::readRecordSS(), ClarisWksDbaseContent::readRecordSSV1(), BeagleWksDBParser::readRow(), GreatWksDBParser::readRowRecords(), RagTimeSpreadsheet::readSpreadsheetCellContent(), WingzParser::readSpreadsheetCellList(), RagTimeSpreadsheet::readSpreadsheetCellV2(), ClarisWksDbaseContent::send(), RagTimeSpreadsheet::send(), GreatWksDBParser::sendDatabase(), BeagleWksDBParser::sendDatabase(), ClarisWksDatabase::sendDatabase(), MsWksDBParser::sendDatabase(), GreatWksSSParser::sendSpreadsheet(), WingzParser::sendSpreadsheet(), BeagleWksSSParser::sendSpreadsheet(), ClarisWksSpreadsheet::sendSpreadsheet(), MsWksSSParser::sendSpreadsheet(), BeagleWksDBParserInternal::Database::updateWithContent(), and MsWksDBParserInternal::FieldType::updateWithContent().
double MWAWCellContent::m_value |
the cell value
Referenced by MWAWSpreadsheetListener::openSheetCell(), operator<<(), MsWksSSParser::readCell(), ClarisWksDbaseContent::readRecordSS(), ClarisWksDbaseContent::readRecordSSV1(), WingzParser::readSpreadsheetCellList(), ClarisWksDbaseContent::send(), RagTimeSpreadsheet::send(), ClarisWksDatabase::sendDatabase(), ClarisWksSpreadsheet::sendSpreadsheet(), setValue(), GreatWksDBParserInternal::Field::updateCell(), BeagleWksDBParserInternal::Database::updateWithContent(), and MsWksDBParserInternal::FieldType::updateWithContent().
bool MWAWCellContent::m_valueSet |
true if the value has been set
Referenced by isValueSet(), and setValue().