LibreOffice Module vcl (master)  1
Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions | Private Attributes | Friends | List of all members
LongCurrencyFormatter Class Reference

#include <longcurr.hxx>

Inheritance diagram for LongCurrencyFormatter:
[legend]
Collaboration diagram for LongCurrencyFormatter:
[legend]

Public Member Functions

virtual ~LongCurrencyFormatter () override
 
virtual void Reformat () override
 
virtual void ReformatAll () override
 
void SetUseThousandSep (bool b)
 
bool IsUseThousandSep () const
 
void SetCurrencySymbol (const OUString &rStr)
 
OUString const & GetCurrencySymbol () const
 
void SetMin (const BigInt &rNewMin)
 
const BigIntGetMin () const
 
void SetMax (const BigInt &rNewMax)
 
const BigIntGetMax () const
 
void SetDecimalDigits (sal_uInt16 nDigits)
 
sal_uInt16 GetDecimalDigits () const
 
void SetValue (const BigInt &rNewValue)
 
void SetUserValue (BigInt nNewValue)
 
BigInt GetValue () 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
 
const css::lang::Locale & GetLocale () const
 
const LanguageTagGetLanguageTag () const
 
void SetEmptyFieldValue ()
 
bool IsEmptyFieldValue () const
 
void EnableEmptyFieldValue (bool bEnable)
 
bool IsEmptyFieldValueEnabled () const
 

Protected Member Functions

 LongCurrencyFormatter (Edit *pEdit)
 
- 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 ()
 

Protected Attributes

BigInt mnLastValue
 
BigInt mnMin
 
BigInt mnMax
 

Private Member Functions

SAL_DLLPRIVATE void ImpInit ()
 

Private Attributes

OUString maCurrencySymbol
 
sal_uInt16 mnDecimalDigits
 
bool mbThousandSep
 

Friends

bool ImplLongCurrencyReformat (const OUString &, BigInt const &, BigInt const &, sal_uInt16, const LocaleDataWrapper &, OUString &, LongCurrencyFormatter const &)
 

Detailed Description

Definition at line 30 of file longcurr.hxx.

Constructor & Destructor Documentation

LongCurrencyFormatter::~LongCurrencyFormatter ( )
overridevirtual

Definition at line 260 of file longcurr.cxx.

LongCurrencyFormatter::LongCurrencyFormatter ( Edit pEdit)
protected

Definition at line 254 of file longcurr.cxx.

References ImpInit().

Member Function Documentation

OUString const & LongCurrencyFormatter::GetCurrencySymbol ( ) const
sal_uInt16 LongCurrencyFormatter::GetDecimalDigits ( ) const
inline

Definition at line 50 of file longcurr.hxx.

Referenced by GetValue(), Reformat(), LongCurrencyBox::ReformatAll(), and SetUserValue().

const BigInt& LongCurrencyFormatter::GetMax ( ) const
inline

Definition at line 47 of file longcurr.hxx.

const BigInt& LongCurrencyFormatter::GetMin ( ) const
inline

Definition at line 45 of file longcurr.hxx.

BigInt LongCurrencyFormatter::GetValue ( ) const
void LongCurrencyFormatter::ImpInit ( )
private

Definition at line 243 of file longcurr.cxx.

References mbThousandSep, mnDecimalDigits, mnLastValue, mnMax, mnMin, and SetDecimalDigits().

Referenced by LongCurrencyFormatter().

bool LongCurrencyFormatter::IsUseThousandSep ( ) const
inline

Definition at line 39 of file longcurr.hxx.

Referenced by ImplLongCurrencyReformat(), and SetUserValue().

void LongCurrencyFormatter::Reformat ( )
overridevirtual
void LongCurrencyFormatter::ReformatAll ( )
overridevirtual

Reimplemented from FormatterBase.

Reimplemented in LongCurrencyBox.

Definition at line 346 of file longcurr.cxx.

References Reformat().

Referenced by SetCurrencySymbol(), SetDecimalDigits(), SetMax(), SetMin(), and SetUseThousandSep().

void LongCurrencyFormatter::SetCurrencySymbol ( const OUString &  rStr)

Definition at line 264 of file longcurr.cxx.

References maCurrencySymbol, and ReformatAll().

void LongCurrencyFormatter::SetDecimalDigits ( sal_uInt16  nDigits)

Definition at line 369 of file longcurr.cxx.

References mnDecimalDigits, and ReformatAll().

Referenced by ImpInit().

void LongCurrencyFormatter::SetMax ( const BigInt rNewMax)

Definition at line 357 of file longcurr.cxx.

References mnMax, and ReformatAll().

void LongCurrencyFormatter::SetMin ( const BigInt rNewMin)

Definition at line 351 of file longcurr.cxx.

References mnMin, and ReformatAll().

void LongCurrencyFormatter::SetUserValue ( BigInt  nNewValue)
void LongCurrencyFormatter::SetUseThousandSep ( bool  b)

Definition at line 363 of file longcurr.cxx.

References mbThousandSep, and ReformatAll().

void LongCurrencyFormatter::SetValue ( const BigInt rNewValue)

Definition at line 275 of file longcurr.cxx.

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

Referenced by Reformat().

Friends And Related Function Documentation

bool ImplLongCurrencyReformat ( const OUString &  rStr,
BigInt const &  nMin,
BigInt const &  nMax,
sal_uInt16  nDecDigits,
const LocaleDataWrapper rLocaleDataWrapper,
OUString &  rOutStr,
LongCurrencyFormatter const &  rFormatter 
)
friend

Definition at line 222 of file longcurr.cxx.

Referenced by Reformat(), and LongCurrencyBox::ReformatAll().

Member Data Documentation

OUString LongCurrencyFormatter::maCurrencySymbol
private

Definition at line 65 of file longcurr.hxx.

Referenced by GetCurrencySymbol(), and SetCurrencySymbol().

bool LongCurrencyFormatter::mbThousandSep
private

Definition at line 67 of file longcurr.hxx.

Referenced by ImpInit(), and SetUseThousandSep().

sal_uInt16 LongCurrencyFormatter::mnDecimalDigits
private

Definition at line 66 of file longcurr.hxx.

Referenced by ImpInit(), and SetDecimalDigits().

BigInt LongCurrencyFormatter::mnLastValue
protected

Definition at line 56 of file longcurr.hxx.

Referenced by GetValue(), ImpInit(), ImplNewLongCurrencyFieldValue(), Reformat(), and SetUserValue().

BigInt LongCurrencyFormatter::mnMax
protected
BigInt LongCurrencyFormatter::mnMin
protected

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