a structure uses to define the format of a cell content More...
#include <MWAWCell.hxx>
Public Member Functions | |
| Format () | |
| constructor | |
| virtual | ~Format () |
| destructor | |
| bool | hasBasicFormat () const |
| returns true if this is a basic format style | |
| std::string | getValueType () const |
| returns a value type | |
| bool | getNumberingProperties (librevenge::RVNGPropertyList &propList) const |
| get the numbering style | |
| int | compare (Format const &format) const |
| a comparison function | |
Static Public Member Functions | |
| static bool | convertDTFormat (std::string const &dtFormat, librevenge::RVNGPropertyListVector &propListVector) |
| convert a DTFormat in a propertyList | |
Public Attributes | |
| FormatType | m_format |
| the cell format : by default unknown | |
| NumberType | m_numberFormat |
| the numeric format | |
| int | m_digits |
| the number of digits | |
| int | m_integerDigits |
| the number of main digits | |
| int | m_numeratorDigits |
| the number of numerator digits | |
| int | m_denominatorDigits |
| the number of denominator digits | |
| bool | m_thousandHasSeparator |
| true if we must separate the thousand | |
| bool | m_parenthesesForNegative |
| true if we use parenthese to print negative number | |
| std::string | m_currencySymbol |
| the currency symbol ( default '$') | |
| std::string | m_DTFormat |
| a date/time format ( using a subset of strftime format ) | |
Friends | |
| std::ostream & | operator<< (std::ostream &o, Format const &format) |
| operator<< | |
a structure uses to define the format of a cell content
| MWAWCell::Format::Format | ( | ) | [inline] |
constructor
| virtual MWAWCell::Format::~Format | ( | ) | [inline, virtual] |
destructor
| int MWAWCell::Format::compare | ( | MWAWCell::Format const & | cell | ) | const |
a comparison function
Referenced by MWAWCell::CompareFormat::operator()().
| bool MWAWCell::Format::convertDTFormat | ( | std::string const & | dtFormat, |
| librevenge::RVNGPropertyListVector & | propListVector | ||
| ) | [static] |
convert a DTFormat in a propertyList
| bool MWAWCell::Format::getNumberingProperties | ( | librevenge::RVNGPropertyList & | propList | ) | const |
get the numbering style
Referenced by MWAWSpreadsheetListener::openSheetCell().
| std::string MWAWCell::Format::getValueType | ( | ) | const |
returns a value type
Referenced by MWAWSpreadsheetListener::openSheetCell().
| bool MWAWCell::Format::hasBasicFormat | ( | ) | const [inline] |
returns true if this is a basic format style
Referenced by MWAWSpreadsheetListener::openSheetCell().
| std::ostream& operator<< | ( | std::ostream & | o, |
| MWAWCell::Format const & | format | ||
| ) | [friend] |
operator<<
| std::string MWAWCell::Format::m_currencySymbol |
the currency symbol ( default '$')
Referenced by compare(), and operator<<().
the number of denominator digits
Referenced by compare(), and operator<<().
the number of digits
Referenced by compare(), MWAWCellContent::double2String(), operator<<(), GreatWksSSParser::readCell(), MsWksSSParser::readCell(), BeagleWksSSParser::readCellSheet(), ClarisWksStyleManager::readCellStyles(), MsWksDBParser::readFieldTypes(), MsWksDBParser::readFieldTypesV2(), BeagleWksDBParser::readFormat(), RagTimeSpreadsheet::readNumericFormat(), ClarisWksDbaseContent::readRecordSSV1(), WingzParser::readSpreadsheetCellList(), and RagTimeSpreadsheet::readSpreadsheetCellV2().
| std::string MWAWCell::Format::m_DTFormat |
a date/time format ( using a subset of strftime format )
Referenced by compare(), MWAWCellContent::double2String(), operator<<(), GreatWksSSParser::readCell(), MsWksSSParser::readCell(), BeagleWksSSParser::readCellSheet(), MsWksDBParser::readFieldTypes(), MsWksDBParser::readFieldTypesV2(), BeagleWksDBParser::readFormat(), ClarisWksDbaseContent::readRecordSS(), ClarisWksDbaseContent::readRecordSSV1(), and RagTimeSpreadsheetInternal::CellFormat::update().
the cell format : by default unknown
Referenced by compare(), MWAWCellContent::double2String(), getValueType(), hasBasicFormat(), MWAWSpreadsheetListener::openSheetCell(), operator<<(), GreatWksSSParser::readCell(), MsWksSSParser::readCell(), BeagleWksSSParser::readCellSheet(), MsWksDBParser::readDefaultValues(), GreatWksDBParser::readField(), BeagleWksDBParser::readFields(), MsWksDBParser::readFieldTypes(), MsWksDBParser::readFieldTypesV2(), BeagleWksDBParser::readFormat(), GreatWksDBParser::readFormulaResult(), RagTimeSpreadsheet::readNumericFormat(), ClarisWksDbaseContent::readRecordSS(), ClarisWksDbaseContent::readRecordSSV1(), RagTimeSpreadsheet::readSpreadsheetCellContent(), RagTimeSpreadsheet::readSpreadsheetCellV2(), ClarisWksDbaseContent::send(), RagTimeSpreadsheet::send(), ClarisWksDatabase::sendDatabase(), ClarisWksSpreadsheet::sendSpreadsheet(), RagTimeSpreadsheetInternal::CellFormat::update(), BeagleWksDBParserInternal::Database::updateWithContent(), and MsWksDBParserInternal::FieldType::updateWithContent().
the number of main digits
Referenced by compare(), and operator<<().
the numeric format
Referenced by compare(), MWAWCellContent::double2String(), getValueType(), operator<<(), GreatWksSSParser::readCell(), MsWksSSParser::readCell(), BeagleWksSSParser::readCellSheet(), GreatWksDBParser::readField(), BeagleWksDBParser::readFields(), MsWksDBParser::readFieldTypes(), MsWksDBParser::readFieldTypesV2(), BeagleWksDBParser::readFormat(), RagTimeSpreadsheet::readNumericFormat(), ClarisWksDbaseContent::readRecordSS(), ClarisWksDbaseContent::readRecordSSV1(), RagTimeSpreadsheet::readSpreadsheetCellContent(), and RagTimeSpreadsheet::readSpreadsheetCellV2().
the number of numerator digits
Referenced by compare(), and operator<<().
true if we use parenthese to print negative number
Referenced by compare(), operator<<(), and ClarisWksStyleManager::readCellStyles().
true if we must separate the thousand
Referenced by compare(), operator<<(), MsWksSSParser::readCell(), BeagleWksSSParser::readCellSheet(), ClarisWksStyleManager::readCellStyles(), MsWksDBParser::readFieldTypes(), BeagleWksDBParser::readFormat(), and RagTimeSpreadsheet::readNumericFormat().