LibreOffice Module lotuswordpro (master) 1
|
#include <lwpnumericfmt.hxx>
Public Member Functions | |
LwpNumericFormat (LwpObjectStream *pStrm) | |
void | Read () |
Read number format from wordpro file. More... | |
sal_uInt16 | GetDecimalPlaces () |
bool | IsDecimalPlacesOverridden () const |
bool | IsNegativeOverridden () const |
XFStyle * | Convert () |
Make the xml content of number format. More... | |
Static Public Member Functions | |
static bool | IsCurrencyFormat (sal_uInt16 Format) |
Private Types | |
enum | { NF_OVER_ZERO = 0x0001 , NF_OVER_NEGATIVE = 0x0002 , NF_OVER_DECIMAL_PLACES = 0x0004 } |
Private Member Functions | |
void | GetCurrencyStr (LwpNumericFormatSubset aNumber, OUString &aPrefix, OUString &aSuffix, bool bNegative=false) |
void | SetNumberType (XFNumberStyle *pStyle) |
Static Private Member Functions | |
static sal_uInt16 | GetDefaultDecimalPlaces (sal_uInt16 Format) |
static OUString | reencode (const OUString &sCode) |
@description for SODC_2754 More... | |
Private Attributes | |
LwpObjectStream * | m_pObjStrm |
sal_uInt16 | cFlags |
sal_uInt16 | cFormat |
LwpNumericFormatSubset | cAnyNumber |
LwpNumericFormatSubset | cZero |
LwpNumericFormatSubset | cNegative |
sal_uInt16 | cDecimalPlaces |
Static Private Attributes | |
static LwpCurrencyPool | m_aCurrencyInfo |
Definition at line 240 of file lwpnumericfmt.hxx.
|
private |
Enumerator | |
---|---|
NF_OVER_ZERO | |
NF_OVER_NEGATIVE | |
NF_OVER_DECIMAL_PLACES |
Definition at line 255 of file lwpnumericfmt.hxx.
|
explicit |
Definition at line 122 of file lwpnumericfmt.cxx.
XFStyle * LwpNumericFormat::Convert | ( | ) |
Make the xml content of number format.
Definition at line 291 of file lwpnumericfmt.cxx.
References cAnyNumber, cFormat, cNegative, enuMXFNumberCurrency, FMT_COMMA, LwpColor::GetBlue(), LwpNumericFormatSubset::GetColor(), GetCurrencyStr(), GetDecimalPlaces(), LwpColor::GetGreen(), LwpNumericFormatSubset::GetPrefix(), LwpColor::GetRed(), LwpNumericFormatSubset::GetSuffix(), IsCurrencyFormat(), LwpNumericFormatSubset::IsDefaultPrefix(), LwpNumericFormatSubset::IsDefaultSuffix(), IsNegativeOverridden(), reencode(), XFNumberStyle::SetColor(), XFNumberStyle::SetDecimalDigits(), XFNumberStyle::SetGroup(), XFNumberStyle::SetNegativeStyle(), XFNumberStyle::SetNumberType(), SetNumberType(), XFNumberStyle::SetPrefix(), and XFNumberStyle::SetSurfix().
Referenced by LwpLayoutNumerics::Convert().
|
private |
Definition at line 212 of file lwpnumericfmt.cxx.
References cFormat, LwpCurrencyPool::GetCurrencySymbol(), LwpNumericFormatSubset::GetPrefix(), LwpNumericFormatSubset::GetSuffix(), LwpNumericFormatSubset::IsDefaultPrefix(), LwpNumericFormatSubset::IsDefaultSuffix(), LwpCurrencyPool::IsShowSpace(), LwpCurrencyPool::IsSymbolPost(), and m_aCurrencyInfo.
Referenced by Convert().
sal_uInt16 LwpNumericFormat::GetDecimalPlaces | ( | ) |
Definition at line 206 of file lwpnumericfmt.cxx.
References cDecimalPlaces, cFormat, GetDefaultDecimalPlaces(), and IsDecimalPlacesOverridden().
Referenced by Convert().
|
staticprivate |
Definition at line 402 of file lwpnumericfmt.cxx.
References FMT_ARGENTINEANPESO, FMT_AUSTRALIANDOLLAR, FMT_AUSTRIANSCHILLING, FMT_BELGIANFRANC, FMT_BRAZILIANCRUZEIRO, FMT_BRITISHPOUND, FMT_CANADIANDOLLAR, FMT_CHINESEYUAN, FMT_COMMA, FMT_CZECHKORUNA, FMT_DANISHKRONE, FMT_DEFAULT, FMT_ECU, FMT_EURO, FMT_FINNISHMARKKA, FMT_FIXED, FMT_FRENCHFRANC, FMT_GENERAL, FMT_GERMANMARK, FMT_GREEKDRACHMA, FMT_HONGKONGDOLLAR, FMT_HUNGARIANFORINT, FMT_INDIANRUPEE, FMT_INDONESIANRUPIAH, FMT_IRISHPUNT, FMT_ITALIANLIRA, FMT_JAPANESEYEN, FMT_LUXEMBOURGFRANC, FMT_MALAYSIANRINGGIT, FMT_MEXICANPESO, FMT_NETHERLANDSGUILDER, FMT_NEWZEALANDDOLLAR, FMT_NORWEGIANKRONE, FMT_OTHERCURRENCY, FMT_PERCENT, FMT_POLISHZLOTY, FMT_PORTUGUESEESCUDO, FMT_ROMANIANLEI, FMT_RUSSIANRUBLE, FMT_SCIENTIFIC, FMT_SINGAPOREDOLLAR, FMT_SLOVAKIANKORUNA, FMT_SLOVENIANTHOLAR, FMT_SOUTHAFRICANRAND, FMT_SOUTHKOREANWON, FMT_SPANISHPESETA, FMT_SWEDISHKRONA, FMT_SWISSFRANC, FMT_TAIWANDOLLAR, FMT_THAIBAHT, FMT_USDOLLAR, and Format.
Referenced by GetDecimalPlaces().
|
static |
Definition at line 150 of file lwpnumericfmt.cxx.
References FMT_ARGENTINEANPESO, FMT_AUSTRALIANDOLLAR, FMT_AUSTRIANSCHILLING, FMT_BELGIANFRANC, FMT_BRAZILIANCRUZEIRO, FMT_BRITISHPOUND, FMT_CANADIANDOLLAR, FMT_CHINESEYUAN, FMT_CZECHKORUNA, FMT_DANISHKRONE, FMT_ECU, FMT_EURO, FMT_FINNISHMARKKA, FMT_FRENCHFRANC, FMT_GERMANMARK, FMT_GREEKDRACHMA, FMT_HONGKONGDOLLAR, FMT_HUNGARIANFORINT, FMT_INDIANRUPEE, FMT_INDONESIANRUPIAH, FMT_IRISHPUNT, FMT_ITALIANLIRA, FMT_JAPANESEYEN, FMT_LUXEMBOURGFRANC, FMT_MALAYSIANRINGGIT, FMT_MEXICANPESO, FMT_NETHERLANDSGUILDER, FMT_NEWZEALANDDOLLAR, FMT_NORWEGIANKRONE, FMT_OTHERCURRENCY, FMT_POLISHZLOTY, FMT_PORTUGUESEESCUDO, FMT_ROMANIANLEI, FMT_RUSSIANRUBLE, FMT_SINGAPOREDOLLAR, FMT_SLOVAKIANKORUNA, FMT_SLOVENIANTHOLAR, FMT_SOUTHAFRICANRAND, FMT_SOUTHKOREANWON, FMT_SPANISHPESETA, FMT_SWEDISHKRONA, FMT_SWISSFRANC, FMT_TAIWANDOLLAR, FMT_THAIBAHT, FMT_USDOLLAR, and Format.
Referenced by Convert().
|
inline |
Definition at line 279 of file lwpnumericfmt.hxx.
References cFlags, and NF_OVER_DECIMAL_PLACES.
Referenced by GetDecimalPlaces().
|
inline |
Definition at line 285 of file lwpnumericfmt.hxx.
References cFlags, and NF_OVER_NEGATIVE.
Referenced by Convert().
void LwpNumericFormat::Read | ( | ) |
Read number format from wordpro file.
Definition at line 133 of file lwpnumericfmt.cxx.
References cAnyNumber, cDecimalPlaces, cFlags, cFormat, cNegative, cZero, LwpFileHeader::m_nFileRevision, m_pObjStrm, LwpNumericFormatSubset::QuickRead(), LwpObjectStream::QuickReaduInt16(), and LwpObjectStream::SkipExtra().
Referenced by LwpLayoutNumerics::Read().
|
staticprivate |
@description for SODC_2754
Definition at line 370 of file lwpnumericfmt.cxx.
References i.
Referenced by Convert().
|
private |
Definition at line 254 of file lwpnumericfmt.cxx.
References cFormat, enumXFNumberNumber, enumXFNumberPercent, enumXFNumberScientific, enumXFText, FMT_COMMA, FMT_FIXED, FMT_GENERAL, FMT_PERCENT, FMT_SCIENTIFIC, XFNumberStyle::SetGroup(), and XFNumberStyle::SetNumberType().
Referenced by Convert().
|
private |
Definition at line 264 of file lwpnumericfmt.hxx.
|
private |
Definition at line 268 of file lwpnumericfmt.hxx.
Referenced by GetDecimalPlaces(), and Read().
|
private |
Definition at line 254 of file lwpnumericfmt.hxx.
Referenced by IsDecimalPlacesOverridden(), IsNegativeOverridden(), and Read().
|
private |
Definition at line 262 of file lwpnumericfmt.hxx.
Referenced by Convert(), GetCurrencyStr(), GetDecimalPlaces(), Read(), and SetNumberType().
|
private |
Definition at line 266 of file lwpnumericfmt.hxx.
|
private |
Definition at line 265 of file lwpnumericfmt.hxx.
Referenced by Read().
|
staticprivate |
Definition at line 271 of file lwpnumericfmt.hxx.
Referenced by GetCurrencyStr().
|
private |
Definition at line 252 of file lwpnumericfmt.hxx.
Referenced by Read().