LibreOffice Module basic (master) 1
Public Types | Public Member Functions | Private Attributes | Friends | List of all members
SbxDecimal Class Reference

#include <sbxdec.hxx>

Public Types

enum class  CmpResult {
  LT ,
  EQ ,
  GT
}
 

Public Member Functions

 SbxDecimal ()
 
 SbxDecimal (const SbxDecimal &rDec)
 
 SbxDecimal (const css::bridge::oleautomation::Decimal &rAutomationDec)
 
void addRef ()
 
void fillAutomationDecimal (css::bridge::oleautomation::Decimal &rAutomationDec)
 
void setChar (sal_Unicode val)
 
void setByte (sal_uInt8 val)
 
void setShort (sal_Int16 val)
 
void setLong (sal_Int32 val)
 
void setUShort (sal_uInt16 val)
 
void setULong (sal_uInt32 val)
 
bool setSingle (float val)
 
bool setDouble (double val)
 
void setInt (int val)
 
void setUInt (unsigned int val)
 
bool setString (OUString *pOUString)
 
void setDecimal (SbxDecimal const *pDecimal)
 
bool getChar (sal_Unicode &rVal)
 
bool getShort (sal_Int16 &rVal)
 
bool getLong (sal_Int32 &rVal)
 
bool getUShort (sal_uInt16 &rVal)
 
bool getULong (sal_uInt32 &rVal)
 
bool getSingle (float &rVal)
 
bool getDouble (double &rVal)
 
void getString (OUString &rString)
 
bool operator-= (const SbxDecimal &r)
 
bool operator+= (const SbxDecimal &r)
 
bool operator/= (const SbxDecimal &r)
 
bool operator*= (const SbxDecimal &r)
 
bool neg ()
 
bool isZero () const
 

Private Attributes

sal_Int32 mnRefCount
 

Friends

void releaseDecimalPtr (SbxDecimal *&rpDecimal)
 
CmpResult compare (const SbxDecimal &rLeft, const SbxDecimal &rRight)
 

Detailed Description

Definition at line 35 of file sbxdec.hxx.

Member Enumeration Documentation

◆ CmpResult

enum class SbxDecimal::CmpResult
strong
Enumerator
LT 
EQ 
GT 

Definition at line 93 of file sbxdec.hxx.

Constructor & Destructor Documentation

◆ SbxDecimal() [1/3]

SbxDecimal::SbxDecimal ( )

Definition at line 32 of file sbxdec.cxx.

References setInt().

◆ SbxDecimal() [2/3]

SbxDecimal::SbxDecimal ( const SbxDecimal rDec)

Definition at line 38 of file sbxdec.cxx.

◆ SbxDecimal() [3/3]

SbxDecimal::SbxDecimal ( const css::bridge::oleautomation::Decimal &  rAutomationDec)
explicit

Definition at line 48 of file sbxdec.cxx.

Member Function Documentation

◆ addRef()

void SbxDecimal::addRef ( )
inline

◆ fillAutomationDecimal()

void SbxDecimal::fillAutomationDecimal ( css::bridge::oleautomation::Decimal &  rAutomationDec)

Definition at line 63 of file sbxdec.cxx.

Referenced by SbxValue::fillAutomationDecimal().

◆ getChar()

bool SbxDecimal::getChar ( sal_Unicode rVal)

Definition at line 330 of file sbxdec.cxx.

Referenced by ImpPutDecimal().

◆ getDouble()

bool SbxDecimal::getDouble ( double &  rVal)

Definition at line 336 of file sbxdec.cxx.

Referenced by ImpPutDecimal().

◆ getLong()

bool SbxDecimal::getLong ( sal_Int32 &  rVal)

Definition at line 332 of file sbxdec.cxx.

Referenced by ImpPutDecimal().

◆ getShort()

bool SbxDecimal::getShort ( sal_Int16 &  rVal)

Definition at line 331 of file sbxdec.cxx.

Referenced by ImpPutDecimal().

◆ getSingle()

bool SbxDecimal::getSingle ( float &  rVal)

Definition at line 335 of file sbxdec.cxx.

Referenced by ImpPutDecimal().

◆ getString()

void SbxDecimal::getString ( OUString &  rString)

Definition at line 340 of file sbxdec.cxx.

References i, and ImpGetIntntlSep().

Referenced by ImpPutDecimal().

◆ getULong()

bool SbxDecimal::getULong ( sal_uInt32 &  rVal)

Definition at line 334 of file sbxdec.cxx.

Referenced by ImpPutDecimal().

◆ getUShort()

bool SbxDecimal::getUShort ( sal_uInt16 &  rVal)

Definition at line 333 of file sbxdec.cxx.

Referenced by ImpPutDecimal().

◆ isZero()

bool SbxDecimal::isZero ( ) const

Definition at line 308 of file sbxdec.cxx.

Referenced by SbxValue::Compute().

◆ neg()

bool SbxDecimal::neg ( )

Definition at line 303 of file sbxdec.cxx.

Referenced by SbxValue::Compute().

◆ operator*=()

bool SbxDecimal::operator*= ( const SbxDecimal r)

Definition at line 298 of file sbxdec.cxx.

◆ operator+=()

bool SbxDecimal::operator+= ( const SbxDecimal r)

Definition at line 288 of file sbxdec.cxx.

◆ operator-=()

bool SbxDecimal::operator-= ( const SbxDecimal r)

Definition at line 283 of file sbxdec.cxx.

◆ operator/=()

bool SbxDecimal::operator/= ( const SbxDecimal r)

Definition at line 293 of file sbxdec.cxx.

◆ setByte()

void SbxDecimal::setByte ( sal_uInt8  val)

Definition at line 319 of file sbxdec.cxx.

Referenced by ImpGetDecimal(), and ImpPutByte().

◆ setChar()

void SbxDecimal::setChar ( sal_Unicode  val)

Definition at line 318 of file sbxdec.cxx.

Referenced by ImpGetDecimal(), and ImpPutChar().

◆ setDecimal()

void SbxDecimal::setDecimal ( SbxDecimal const *  pDecimal)
inline

Definition at line 65 of file sbxdec.hxx.

Referenced by ImpGetDecimal().

◆ setDouble()

bool SbxDecimal::setDouble ( double  val)

Definition at line 325 of file sbxdec.cxx.

Referenced by ImpGetDecimal(), ImpPutCurrency(), ImpPutDate(), and ImpPutDouble().

◆ setInt()

void SbxDecimal::setInt ( int  val)

Definition at line 326 of file sbxdec.cxx.

Referenced by ImpGetDecimal(), ImpPutBool(), ImpPutInteger(), and SbxDecimal().

◆ setLong()

void SbxDecimal::setLong ( sal_Int32  val)

Definition at line 321 of file sbxdec.cxx.

Referenced by ImpGetDecimal(), and ImpPutLong().

◆ setShort()

void SbxDecimal::setShort ( sal_Int16  val)

Definition at line 320 of file sbxdec.cxx.

Referenced by ImpGetDecimal().

◆ setSingle()

bool SbxDecimal::setSingle ( float  val)

Definition at line 324 of file sbxdec.cxx.

Referenced by ImpGetDecimal(), and ImpPutSingle().

◆ setString()

bool SbxDecimal::setString ( OUString *  pOUString)

Definition at line 328 of file sbxdec.cxx.

Referenced by ImpGetDecimal().

◆ setUInt()

void SbxDecimal::setUInt ( unsigned int  val)

Definition at line 327 of file sbxdec.cxx.

Referenced by ImpPutUShort().

◆ setULong()

void SbxDecimal::setULong ( sal_uInt32  val)

Definition at line 323 of file sbxdec.cxx.

Referenced by ImpGetDecimal(), and ImpPutULong().

◆ setUShort()

void SbxDecimal::setUShort ( sal_uInt16  val)

Definition at line 322 of file sbxdec.cxx.

Referenced by ImpGetDecimal().

Friends And Related Function Documentation

◆ compare

CmpResult compare ( const SbxDecimal rLeft,
const SbxDecimal rRight 
)
friend

◆ releaseDecimalPtr

void releaseDecimalPtr ( SbxDecimal *&  rpDecimal)
friend

Definition at line 77 of file sbxdec.cxx.

Member Data Documentation

◆ mnRefCount

sal_Int32 SbxDecimal::mnRefCount
private

Definition at line 42 of file sbxdec.hxx.

Referenced by addRef().


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