MWAWCell::Format Struct Reference

a structure uses to define the format of a cell content More...

#include <MWAWCell.hxx>

Inheritance diagram for MWAWCell::Format:
ClarisWksStyleManager::CellFormat

Public Member Functions

 Format ()
 constructor More...
 
virtual ~Format ()
 destructor More...
 
bool hasBasicFormat () const
 returns true if this is a basic format style More...
 
std::string getValueType () const
 returns a value type More...
 
bool getNumberingProperties (librevenge::RVNGPropertyList &propList) const
 get the numbering style More...
 
int compare (Format const &format) const
 a comparison function More...
 

Static Public Member Functions

static bool convertDTFormat (std::string const &dtFormat, librevenge::RVNGPropertyListVector &propListVector)
 convert a DTFormat in a propertyList More...
 

Public Attributes

FormatType m_format
 the cell format : by default unknown More...
 
NumberType m_numberFormat
 the numeric format More...
 
int m_digits
 the number of digits More...
 
int m_integerDigits
 the number of main digits More...
 
int m_numeratorDigits
 the number of numerator digits More...
 
int m_denominatorDigits
 the number of denominator digits More...
 
bool m_thousandHasSeparator
 true if we must separate the thousand More...
 
bool m_parenthesesForNegative
 true if we use parenthese to print negative number More...
 
std::string m_currencySymbol
 the currency symbol ( default '$') More...
 
std::string m_DTFormat
 a date/time format ( using a subset of strftime format ) More...
 

Friends

std::ostream & operator<< (std::ostream &o, Format const &format)
 operator<< More...
 

Detailed Description

a structure uses to define the format of a cell content

Constructor & Destructor Documentation

MWAWCell::Format::Format ( )
inline

constructor

virtual MWAWCell::Format::~Format ( )
inlinevirtual

destructor

Member Function Documentation

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().

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  o,
MWAWCell::Format const &  format 
)
friend

operator<<

Member Data Documentation

std::string MWAWCell::Format::m_currencySymbol

the currency symbol ( default '$')

Referenced by compare(), and operator<<().

int MWAWCell::Format::m_denominatorDigits

the number of denominator digits

Referenced by compare(), and operator<<().

int MWAWCell::Format::m_integerDigits

the number of main digits

Referenced by compare(), and operator<<().

int MWAWCell::Format::m_numeratorDigits

the number of numerator digits

Referenced by compare(), and operator<<().

bool MWAWCell::Format::m_parenthesesForNegative

true if we use parenthese to print negative number

Referenced by compare(), operator<<(), and ClarisWksStyleManager::readCellStyles().


The documentation for this struct was generated from the following files:

Generated on Thu Jul 9 2015 20:26:38 for libmwaw by doxygen 1.8.8