LibreOffice Module vcl (master)  1
Public Member Functions | Protected Member Functions | List of all members
CurrencyFormatter Class Reference

#include <field.hxx>

Inheritance diagram for CurrencyFormatter:
Collaboration diagram for CurrencyFormatter:

Public Member Functions

virtual ~CurrencyFormatter () override
virtual void Reformat () override
virtual void SetValue (sal_Int64 nNewValue) override
virtual OUString CreateFieldText (sal_Int64 nValue) const override
- Public Member Functions inherited from NumericFormatter
virtual ~NumericFormatter () override
void SetMin (sal_Int64 nNewMin)
sal_Int64 GetMin () const
void SetMax (sal_Int64 nNewMax)
sal_Int64 GetMax () const
sal_Int64 ClipAgainstMinMax (sal_Int64 nValue) const
void SetFirst (sal_Int64 nNewFirst)
sal_Int64 GetFirst () const
void SetLast (sal_Int64 nNewLast)
sal_Int64 GetLast () const
void SetSpinSize (sal_Int64 nNewSize)
sal_Int64 GetSpinSize () const
void SetDecimalDigits (sal_uInt16 nDigits)
sal_uInt16 GetDecimalDigits () const
void SetUseThousandSep (bool b)
bool IsUseThousandSep () const
void SetShowTrailingZeros (bool bShowTrailingZeros)
bool IsShowTrailingZeros () const
void SetUserValue (sal_Int64 nNewValue)
sal_Int64 GetValue () const
sal_Int64 Normalize (sal_Int64 nValue) const
sal_Int64 Denormalize (sal_Int64 nValue) const
- Public Member Functions inherited from FormatterBase
 FormatterBase (Edit *pField)
virtual ~FormatterBase ()
const LocaleDataWrapperGetLocaleDataWrapper () const
bool MustBeReformatted () const
void MarkToBeReformatted (bool b)
void SetStrictFormat (bool bStrict)
bool IsStrictFormat () const
virtual void ReformatAll ()
const css::lang::Locale & GetLocale () const
const LanguageTagGetLanguageTag () const
void SetEmptyFieldValue ()
bool IsEmptyFieldValue () const
void EnableEmptyFieldValue (bool bEnable)
bool IsEmptyFieldValueEnabled () const

Protected Member Functions

 CurrencyFormatter (Edit *pEdit)
SAL_DLLPRIVATE void ImplCurrencyReformat (const OUString &rStr, OUString &rOutStr)
virtual sal_Int64 GetValueFromString (const OUString &rStr) const override
- Protected Member Functions inherited from NumericFormatter
 NumericFormatter (Edit *pEdit)
void FieldUp ()
void FieldDown ()
void FieldFirst ()
void FieldLast ()
void FormatValue (Selection const *pNewSelection=nullptr)
SAL_DLLPRIVATE void ImplNumericReformat ()
SAL_DLLPRIVATE void ImplNewFieldValue (sal_Int64 nNewValue)
SAL_DLLPRIVATE void ImplSetUserValue (sal_Int64 nNewValue, Selection const *pNewSelection=nullptr)
- Protected Member Functions inherited from FormatterBase
SAL_DLLPRIVATE void ImplSetText (const OUString &rText, Selection const *pNewSel=nullptr)
SAL_DLLPRIVATE bool ImplGetEmptyFieldValue () const
void SetEmptyFieldValueData (bool bValue)
SAL_DLLPRIVATE LocaleDataWrapperImplGetLocaleDataWrapper () const
EditGetField () const
void ClearField ()

Additional Inherited Members

- Protected Attributes inherited from NumericFormatter
sal_Int64 mnLastValue
sal_Int64 mnMin
sal_Int64 mnMax
bool mbWrapOnLimits
bool mbFormatting
sal_Int64 mnSpinSize
sal_Int64 mnFirst
sal_Int64 mnLast

Detailed Description

Definition at line 240 of file field.hxx.

Constructor & Destructor Documentation

CurrencyFormatter::CurrencyFormatter ( Edit pEdit)

Definition at line 1843 of file field.cxx.

CurrencyFormatter::~CurrencyFormatter ( )

Definition at line 1848 of file field.cxx.

Member Function Documentation

OUString CurrencyFormatter::CreateFieldText ( sal_Int64  nValue) const
sal_Int64 CurrencyFormatter::GetValueFromString ( const OUString &  rStr) const
void CurrencyFormatter::ImplCurrencyReformat ( const OUString &  rStr,
OUString &  rOutStr 
void CurrencyFormatter::Reformat ( )
void CurrencyFormatter::SetValue ( sal_Int64  nNewValue)

Reimplemented from NumericFormatter.

Definition at line 1852 of file field.cxx.

References FormatterBase::SetEmptyFieldValueData(), and NumericFormatter::SetUserValue().

Referenced by Reformat().

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