LibreOffice Module basic (master) 1
|
#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) |
Definition at line 35 of file sbxdec.hxx.
|
strong |
Enumerator | |
---|---|
LT | |
EQ | |
GT |
Definition at line 93 of file sbxdec.hxx.
SbxDecimal::SbxDecimal | ( | ) |
Definition at line 32 of file sbxdec.cxx.
References setInt().
SbxDecimal::SbxDecimal | ( | const SbxDecimal & | rDec | ) |
Definition at line 38 of file sbxdec.cxx.
|
explicit |
Definition at line 48 of file sbxdec.cxx.
|
inline |
Definition at line 49 of file sbxdec.hxx.
References mnRefCount.
Referenced by ImpCreateDecimal(), ImpGetDecimal(), ImpPutDecimal(), SbxValue::PutDecimal(), and SbxValue::SbxValue().
void SbxDecimal::fillAutomationDecimal | ( | css::bridge::oleautomation::Decimal & | rAutomationDec | ) |
Definition at line 63 of file sbxdec.cxx.
Referenced by SbxValue::fillAutomationDecimal().
bool SbxDecimal::getChar | ( | sal_Unicode & | rVal | ) |
Definition at line 330 of file sbxdec.cxx.
Referenced by ImpPutDecimal().
bool SbxDecimal::getDouble | ( | double & | rVal | ) |
Definition at line 336 of file sbxdec.cxx.
Referenced by ImpPutDecimal().
bool SbxDecimal::getLong | ( | sal_Int32 & | rVal | ) |
Definition at line 332 of file sbxdec.cxx.
Referenced by ImpPutDecimal().
bool SbxDecimal::getShort | ( | sal_Int16 & | rVal | ) |
Definition at line 331 of file sbxdec.cxx.
Referenced by ImpPutDecimal().
bool SbxDecimal::getSingle | ( | float & | rVal | ) |
Definition at line 335 of file sbxdec.cxx.
Referenced by ImpPutDecimal().
void SbxDecimal::getString | ( | OUString & | rString | ) |
Definition at line 340 of file sbxdec.cxx.
References i, and ImpGetIntntlSep().
Referenced by ImpPutDecimal().
bool SbxDecimal::getULong | ( | sal_uInt32 & | rVal | ) |
Definition at line 334 of file sbxdec.cxx.
Referenced by ImpPutDecimal().
bool SbxDecimal::getUShort | ( | sal_uInt16 & | rVal | ) |
Definition at line 333 of file sbxdec.cxx.
Referenced by ImpPutDecimal().
bool SbxDecimal::isZero | ( | ) | const |
Definition at line 308 of file sbxdec.cxx.
Referenced by SbxValue::Compute().
bool SbxDecimal::neg | ( | ) |
Definition at line 303 of file sbxdec.cxx.
Referenced by SbxValue::Compute().
bool SbxDecimal::operator*= | ( | const SbxDecimal & | r | ) |
Definition at line 298 of file sbxdec.cxx.
bool SbxDecimal::operator+= | ( | const SbxDecimal & | r | ) |
Definition at line 288 of file sbxdec.cxx.
bool SbxDecimal::operator-= | ( | const SbxDecimal & | r | ) |
Definition at line 283 of file sbxdec.cxx.
bool SbxDecimal::operator/= | ( | const SbxDecimal & | r | ) |
Definition at line 293 of file sbxdec.cxx.
void SbxDecimal::setByte | ( | sal_uInt8 | val | ) |
Definition at line 319 of file sbxdec.cxx.
Referenced by ImpGetDecimal(), and ImpPutByte().
void SbxDecimal::setChar | ( | sal_Unicode | val | ) |
Definition at line 318 of file sbxdec.cxx.
Referenced by ImpGetDecimal(), and ImpPutChar().
|
inline |
Definition at line 65 of file sbxdec.hxx.
Referenced by ImpGetDecimal().
bool SbxDecimal::setDouble | ( | double | val | ) |
Definition at line 325 of file sbxdec.cxx.
Referenced by ImpGetDecimal(), ImpPutCurrency(), ImpPutDate(), and ImpPutDouble().
void SbxDecimal::setInt | ( | int | val | ) |
Definition at line 326 of file sbxdec.cxx.
Referenced by ImpGetDecimal(), ImpPutBool(), ImpPutInteger(), and SbxDecimal().
void SbxDecimal::setLong | ( | sal_Int32 | val | ) |
Definition at line 321 of file sbxdec.cxx.
Referenced by ImpGetDecimal(), and ImpPutLong().
void SbxDecimal::setShort | ( | sal_Int16 | val | ) |
Definition at line 320 of file sbxdec.cxx.
Referenced by ImpGetDecimal().
bool SbxDecimal::setSingle | ( | float | val | ) |
Definition at line 324 of file sbxdec.cxx.
Referenced by ImpGetDecimal(), and ImpPutSingle().
bool SbxDecimal::setString | ( | OUString * | pOUString | ) |
Definition at line 328 of file sbxdec.cxx.
Referenced by ImpGetDecimal().
void SbxDecimal::setUInt | ( | unsigned int | val | ) |
Definition at line 327 of file sbxdec.cxx.
Referenced by ImpPutUShort().
void SbxDecimal::setULong | ( | sal_uInt32 | val | ) |
Definition at line 323 of file sbxdec.cxx.
Referenced by ImpGetDecimal(), and ImpPutULong().
void SbxDecimal::setUShort | ( | sal_uInt16 | val | ) |
Definition at line 322 of file sbxdec.cxx.
Referenced by ImpGetDecimal().
|
friend |
|
friend |
Definition at line 77 of file sbxdec.cxx.
|
private |
Definition at line 42 of file sbxdec.hxx.
Referenced by addRef().