LibreOffice Module lotuswordpro (master) 1
Public Member Functions | Static Public Member Functions | Private Types | Private Member Functions | Static Private Member Functions | Private Attributes | Static Private Attributes | List of all members
LwpNumericFormat Class Reference

#include <lwpnumericfmt.hxx>

Collaboration diagram for LwpNumericFormat:
[legend]

Public Member Functions

 LwpNumericFormat (LwpObjectStream *pStrm)
 
void Read ()
 Read number format from wordpro file. More...
 
sal_uInt16 GetDecimalPlaces ()
 
bool IsDecimalPlacesOverridden () const
 
bool IsNegativeOverridden () const
 
XFStyleConvert ()
 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

LwpObjectStreamm_pObjStrm
 
sal_uInt16 cFlags
 
sal_uInt16 cFormat
 
LwpNumericFormatSubset cAnyNumber
 
LwpNumericFormatSubset cZero
 
LwpNumericFormatSubset cNegative
 
sal_uInt16 cDecimalPlaces
 

Static Private Attributes

static LwpCurrencyPool m_aCurrencyInfo
 

Detailed Description

Definition at line 240 of file lwpnumericfmt.hxx.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
private
Enumerator
NF_OVER_ZERO 
NF_OVER_NEGATIVE 
NF_OVER_DECIMAL_PLACES 

Definition at line 255 of file lwpnumericfmt.hxx.

Constructor & Destructor Documentation

◆ LwpNumericFormat()

LwpNumericFormat::LwpNumericFormat ( LwpObjectStream pStrm)
explicit

Definition at line 122 of file lwpnumericfmt.cxx.

Member Function Documentation

◆ Convert()

XFStyle * LwpNumericFormat::Convert ( )

◆ GetCurrencyStr()

void LwpNumericFormat::GetCurrencyStr ( LwpNumericFormatSubset  aNumber,
OUString &  aPrefix,
OUString &  aSuffix,
bool  bNegative = false 
)
private

◆ GetDecimalPlaces()

sal_uInt16 LwpNumericFormat::GetDecimalPlaces ( )

Definition at line 206 of file lwpnumericfmt.cxx.

References cDecimalPlaces, cFormat, GetDefaultDecimalPlaces(), and IsDecimalPlacesOverridden().

Referenced by Convert().

◆ GetDefaultDecimalPlaces()

sal_uInt16 LwpNumericFormat::GetDefaultDecimalPlaces ( sal_uInt16  Format)
staticprivate

◆ IsCurrencyFormat()

bool LwpNumericFormat::IsCurrencyFormat ( sal_uInt16  Format)
static

◆ IsDecimalPlacesOverridden()

bool LwpNumericFormat::IsDecimalPlacesOverridden ( ) const
inline

Definition at line 279 of file lwpnumericfmt.hxx.

References cFlags, and NF_OVER_DECIMAL_PLACES.

Referenced by GetDecimalPlaces().

◆ IsNegativeOverridden()

bool LwpNumericFormat::IsNegativeOverridden ( ) const
inline

Definition at line 285 of file lwpnumericfmt.hxx.

References cFlags, and NF_OVER_NEGATIVE.

Referenced by Convert().

◆ Read()

void LwpNumericFormat::Read ( )

◆ reencode()

OUString LwpNumericFormat::reencode ( const OUString &  sCode)
staticprivate

@description for SODC_2754

Returns
fix wrong encoding of POUND symbol

Definition at line 370 of file lwpnumericfmt.cxx.

References i.

Referenced by Convert().

◆ SetNumberType()

void LwpNumericFormat::SetNumberType ( XFNumberStyle pStyle)
private

Member Data Documentation

◆ cAnyNumber

LwpNumericFormatSubset LwpNumericFormat::cAnyNumber
private

Definition at line 264 of file lwpnumericfmt.hxx.

Referenced by Convert(), and Read().

◆ cDecimalPlaces

sal_uInt16 LwpNumericFormat::cDecimalPlaces
private

Definition at line 268 of file lwpnumericfmt.hxx.

Referenced by GetDecimalPlaces(), and Read().

◆ cFlags

sal_uInt16 LwpNumericFormat::cFlags
private

Definition at line 254 of file lwpnumericfmt.hxx.

Referenced by IsDecimalPlacesOverridden(), IsNegativeOverridden(), and Read().

◆ cFormat

sal_uInt16 LwpNumericFormat::cFormat
private

Definition at line 262 of file lwpnumericfmt.hxx.

Referenced by Convert(), GetCurrencyStr(), GetDecimalPlaces(), Read(), and SetNumberType().

◆ cNegative

LwpNumericFormatSubset LwpNumericFormat::cNegative
private

Definition at line 266 of file lwpnumericfmt.hxx.

Referenced by Convert(), and Read().

◆ cZero

LwpNumericFormatSubset LwpNumericFormat::cZero
private

Definition at line 265 of file lwpnumericfmt.hxx.

Referenced by Read().

◆ m_aCurrencyInfo

LwpCurrencyPool LwpNumericFormat::m_aCurrencyInfo
staticprivate

Definition at line 271 of file lwpnumericfmt.hxx.

Referenced by GetCurrencyStr().

◆ m_pObjStrm

LwpObjectStream* LwpNumericFormat::m_pObjStrm
private

Definition at line 252 of file lwpnumericfmt.hxx.

Referenced by Read().


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