valueformatter.h
For every cell in the spread sheet there is a Cell object.
Definition kspread_cell.h:138
The ValueConverter class can convert Value between various different formats.
Definition valueconverter.h:36
TQString createNumberFormat(double value, int precision, FormatType fmt, bool alwaysSigned, const TQString ¤cySymbol)
create a number format
Definition valueformatter.cpp:236
void removeTrailingZeros(TQString &str, TQChar decimal_point)
Remove trailing zeros and the decimal point if necessary unless the number has no decimal point.
Definition valueformatter.cpp:202
TQString timeFormat(const TQDateTime &_time, FormatType fmtType)
create a time format
Definition valueformatter.cpp:419
TQString fractionFormat(double value, FormatType fmtType)
create a fraction format
Definition valueformatter.cpp:298
TQString dateFormat(const TQDate &_date, FormatType fmtType)
create a date format
Definition valueformatter.cpp:493
TQString formatText(Cell *cell, FormatType fmtType)
create a text representation of data in this cell
Definition valueformatter.cpp:41
FormatType determineFormatting(const Value &value, FormatType fmtType)
determine the formatting type that should be used to format this value in a cell with a given format ...
Definition valueformatter.cpp:133
