LibreOffice Module basic (master) 1
|
#include <sbxvar.hxx>
Public Member Functions | |
SBX_DECL_PERSIST_NODATA (SBXID_VALUE, 1) | |
SbxValue () | |
SbxValue (SbxDataType) | |
SbxValue (const SbxValue &) | |
SbxValue & | operator= (const SbxValue &) |
virtual void | Clear () override |
virtual bool | IsFixed () const override |
bool | IsInteger () const |
bool | IsLong () const |
bool | IsDouble () const |
bool | IsString () const |
bool | IsCurrency () const |
bool | IsObject () const |
bool | IsBool () const |
bool | IsErr () const |
bool | IsEmpty () const |
bool | IsNull () const |
bool | IsNumeric () const |
bool | IsNumericRTL () const |
bool | ImpIsNumeric (bool bOnlyIntntl) const |
virtual SbxDataType | GetType () const override |
SbxDataType | GetFullType () const |
bool | SetType (SbxDataType) |
bool | Get (SbxValues &) const |
const SbxValues & | GetValues_Impl () const |
bool | Put (const SbxValues &) |
SbxValues * | data () |
sal_Unicode | GetChar () const |
sal_Int16 | GetInteger () const |
sal_Int32 | GetLong () const |
sal_Int64 | GetInt64 () const |
sal_uInt64 | GetUInt64 () const |
sal_Int64 | GetCurrency () const |
SbxDecimal * | GetDecimal () const |
float | GetSingle () const |
double | GetDouble () const |
double | GetDate () const |
bool | GetBool () const |
const OUString & | GetCoreString () const |
OUString | GetOUString () const |
SbxBase * | GetObject () const |
sal_uInt8 | GetByte () const |
sal_uInt16 | GetUShort () const |
sal_uInt32 | GetULong () const |
bool | PutInteger (sal_Int16) |
bool | PutLong (sal_Int32) |
bool | PutSingle (float) |
bool | PutDouble (double) |
void | PutDate (double) |
bool | PutBool (bool) |
void | PutErr (sal_uInt16) |
void | PutStringExt (const OUString &) |
bool | PutInt64 (sal_Int64) |
bool | PutUInt64 (sal_uInt64) |
bool | PutString (const OUString &) |
bool | PutChar (sal_Unicode) |
bool | PutByte (sal_uInt8) |
bool | PutUShort (sal_uInt16) |
bool | PutULong (sal_uInt32) |
bool | PutEmpty () |
void | PutNull () |
void | PutDecimal (css::bridge::oleautomation::Decimal const &rAutomationDec) |
bool | PutDecimal (SbxDecimal *pDecimal) |
void | fillAutomationDecimal (css::bridge::oleautomation::Decimal &rAutomationDec) const |
bool | PutCurrency (sal_Int64) |
bool | PutObject (SbxBase *) |
bool | Convert (SbxDataType) |
bool | Compute (SbxOperator, const SbxValue &) |
bool | Compare (SbxOperator, const SbxValue &) const |
bool | Scan (const OUString &, sal_uInt16 *) |
void | Format (OUString &, const OUString *=nullptr) const |
bool | operator<= (const SbxValue &) const |
bool | operator>= (const SbxValue &) const |
SbxValue & | operator*= (const SbxValue &) |
SbxValue & | operator/= (const SbxValue &) |
SbxValue & | operator+= (const SbxValue &) |
SbxValue & | operator-= (const SbxValue &) |
Public Member Functions inherited from SbxBase | |
void | SetFlags (SbxFlagBits n) |
SbxFlagBits | GetFlags () const |
void | SetFlag (SbxFlagBits n) |
void | ResetFlag (SbxFlagBits n) |
bool | IsSet (SbxFlagBits n) const |
bool | IsReset (SbxFlagBits n) const |
bool | CanRead () const |
bool | CanWrite () const |
bool | IsModified () const |
bool | IsHidden () const |
bool | IsVisible () const |
virtual bool | IsFixed () const |
virtual void | SetModified (bool) |
virtual SbxDataType | GetType () const |
virtual void | Clear ()=0 |
std::pair< bool, sal_uInt32 > | Store (SvStream &) |
virtual bool | LoadCompleted () |
Public Member Functions inherited from SvRefBase | |
SvRefBase () | |
SvRefBase (const SvRefBase &) | |
SvRefBase & | operator= (const SvRefBase &) |
void | RestoreNoDelete () |
void | AddNextRef () |
void | AddFirstRef () |
void | ReleaseRef () |
unsigned int | GetRefCount () const |
Static Public Member Functions | |
static ErrCode | ScanNumIntnl (const OUString &rSrc, double &nVal, bool bSingle=false) |
Static Public Member Functions inherited from SbxBase | |
static SbxBaseRef | Load (SvStream &) |
static ErrCode const & | GetError () |
static OUString const & | GetErrorMsg () |
static void | SetError (ErrCode) |
static void | SetError (ErrCode, const OUString &) |
static bool | IsError () |
static void | ResetError () |
static void | AddFactory (SbxFactory *) |
static void | RemoveFactory (SbxFactory const *) |
static SbxBaseRef | Create (sal_uInt16, sal_uInt32) |
static SbxObjectRef | CreateObject (const OUString &) |
Protected Member Functions | |
virtual void | Broadcast (SfxHintId) |
virtual | ~SbxValue () override |
virtual bool | LoadData (SvStream &, sal_uInt16) override |
virtual std::pair< bool, sal_uInt32 > | StoreData (SvStream &) const override |
Protected Member Functions inherited from SbxBase | |
SbxBase () | |
SbxBase (const SbxBase &) | |
SbxBase & | operator= (const SbxBase &) |
virtual | ~SbxBase () override |
virtual sal_uInt16 | GetVersion () const =0 |
virtual sal_uInt16 | GetSbxId () const =0 |
Protected Member Functions inherited from SvRefBase | |
virtual | ~SvRefBase () COVERITY_NOEXCEPT_FALSE |
Protected Attributes | |
SbxValues | aData |
OUString | aPic |
OUString | aToolString |
Protected Attributes inherited from SbxBase | |
SbxFlagBits | nFlags |
Private Member Functions | |
BASIC_DLLPRIVATE SbxValue * | TheRealValue (bool bObjInObjError) const |
SbxValues | Get (SbxDataType t) const |
Definition at line 94 of file sbxvar.hxx.
|
overrideprotectedvirtual |
Definition at line 139 of file sbxvalue.cxx.
References Clear(), SbxBase::SetFlag(), suppress_fun_call_w_exception, and Write.
SbxValue::SbxValue | ( | ) |
Definition at line 40 of file sbxvalue.cxx.
References aData, SbxValues::eType, and SbxEMPTY.
SbxValue::SbxValue | ( | SbxDataType | t | ) |
Definition at line 45 of file sbxvalue.cxx.
References aData, SbxValues::clear(), Fixed, n, SbxEMPTY, SbxVARIANT, SbxBase::SetFlag(), and t.
SbxValue::SbxValue | ( | const SbxValue & | r | ) |
Definition at line 56 of file sbxvalue.cxx.
References aData, SvRefBase::AddFirstRef(), SbxDecimal::addRef(), Broadcast(), SbxBase::CanRead(), ERRCODE_BASIC_PROP_WRITEONLY, SbxValues::eType, IsFixed(), SbxValues::pDecimal, SbxValues::pObj, SbxValues::pOUString, SbxDECIMAL, SbxNULL, SbxOBJECT, SbxSTRING, and SbxBase::SetError().
|
protectedvirtual |
Reimplemented in SbMethod, and SbxVariable.
Definition at line 187 of file sbxvalue.cxx.
Referenced by ImpIsNumeric(), and SbxValue().
|
overridevirtual |
Implements SbxBase.
Reimplemented in BasicCollection, SbModule, StarBASIC, SbxCollection, SbxMethod, and SbxObject.
Definition at line 146 of file sbxvalue.cxx.
References aData, SbxValues::clear(), SbxValues::eType, GetType(), SbxVariable::GetUserData(), SbxValues::pData, SbxValues::pDecimal, SbxValues::pObj, SbxValues::pOUString, Put(), releaseDecimalPtr(), SvRefBase::ReleaseRef(), SAL_INFO, SbxDATAOBJECT, SbxDECIMAL, SbxEMPTY, SbxNULL, SbxOBJECT, SbxSTRING, and SbxVOID.
Referenced by SbxObject::Call(), LoadData(), PutDecimal(), and ~SbxValue().
bool SbxValue::Compare | ( | SbxOperator | eOp, |
const SbxValue & | rOp | ||
) | const |
Definition at line 1145 of file sbxvalue.cxx.
References SbxBase::CanRead(), compare(), SbxDecimal::EQ, ERRCODE_BASIC_BAD_ARGUMENT, ERRCODE_BASIC_CONVERSION, ERRCODE_BASIC_PROP_WRITEONLY, ERRCODE_NONE, SbxValues::eType, Get(), SbxBase::GetError(), GetType(), SbxDecimal::GT, IsFixed(), IsNumeric(), SbiRuntime::isVBAEnabled(), SbxDecimal::LT, SbxValues::nDouble, SbxValues::nSingle, SbxValues::pDecimal, SbxValues::pOUString, releaseDecimalPtr(), SbxBase::ResetError(), SbxDECIMAL, SbxDOUBLE, SbxEMPTY, SbxEQ, SbxGE, SbxGT, SbxLE, SbxLT, SbxNE, SbxNULL, SbxSINGLE, SbxSTRING, and SbxBase::SetError().
Referenced by operator<=(), and operator>=().
bool SbxValue::Compute | ( | SbxOperator | eOp, |
const SbxValue & | rOp | ||
) |
Definition at line 774 of file sbxvalue.cxx.
References SbxBase::CanRead(), SbxBase::CanWrite(), o3tl::convertsToAtLeast(), o3tl::convertsToAtMost(), CURRENCY_FACTOR, CURRENCY_FACTOR_SQUARE, ERRCODE_BASIC_BAD_ARGUMENT, ERRCODE_BASIC_CONVERSION, ERRCODE_BASIC_MATH_OVERFLOW, ERRCODE_BASIC_PROP_READONLY, ERRCODE_BASIC_PROP_WRITEONLY, ERRCODE_BASIC_ZERODIV, ERRCODE_NONE, SbxValues::eType, Get(), SbxBase::GetError(), GetType(), SbxBase::IsError(), IsFixed(), SbiRuntime::isVBAEnabled(), SbxDecimal::isZero(), SbxValues::nDouble, SbxDecimal::neg(), SbxValues::nInt64, SbxValues::nLong, SbxValues::nULong, SbxValues::pDecimal, SbxValues::pOUString, Put(), releaseDecimalPtr(), SbxBase::ResetError(), SAL_MAX_INT64, SAL_MIN_INT64, SbxAND, SbxCAT, SbxCURRENCY, SbxDATE, SbxDECIMAL, SbxDIV, SbxDOUBLE, SbxEMPTY, SbxEQV, SbxEXP, SbxIDIV, SbxIMP, SbxLONG, SbxMAXCURR, SbxMINCURR, SbxMINUS, SbxMOD, SbxMUL, SbxNEG, SbxNOT, SbxNULL, SbxOR, SbxPLUS, SbxSALINT64, SbxSALUINT64, SbxSTRING, SbxULONG, SbxXOR, SbxBase::SetError(), SetType(), and SbxValues::uInt64.
Referenced by operator*=(), operator+=(), operator-=(), operator/=(), and SbiRuntime::StepArith().
bool SbxValue::Convert | ( | SbxDataType | eTo | ) |
Definition at line 729 of file sbxvalue.cxx.
References aData, SbxBase::CanWrite(), ERRCODE_BASIC_CONVERSION, SbxValues::eType, Fixed, Get(), IsFixed(), Put(), SbxBase::ResetFlag(), SbxNULL, SbxVARIANT, SbxBase::SetError(), SbxBase::SetModified(), and SetType().
Referenced by SbiRuntime::StepARGTYP(), and SbiRuntime::StepPARAM().
|
inline |
Definition at line 138 of file sbxvar.hxx.
References aData.
void SbxValue::fillAutomationDecimal | ( | css::bridge::oleautomation::Decimal & | rAutomationDec | ) | const |
Definition at line 574 of file sbxvalue.cxx.
References SbxDecimal::fillAutomationDecimal(), and GetDecimal().
Referenced by sbxToUnoValue().
void SbxValue::Format | ( | OUString & | rRes, |
const OUString * | pFmt = nullptr |
||
) | const |
Definition at line 498 of file sbxscan.cxx.
References aBuf, aStr, SbxBasicFormater::BasicFormatNull(), BasResId(), d, SbxAppData::eBasicFormaterLangType, eType, SvtSysLocale::GetCharClass(), LocaleDataWrapper::getCurrSymbol(), GetDouble(), AllSettings::GetLanguageTag(), LanguageTag::getLanguageType(), SvtSysLocale::GetLocaleData(), SbiInstance::GetNumberFormatter(), LocaleDataWrapper::getNumDecimalSep(), LocaleDataWrapper::getNumThousandSep(), GetOUString(), GetSbData(), GetSbxData_Impl(), Application::GetSettings(), GetType(), ImpCvtNum(), implDateSerial(), implGetDateYear(), implGetMinute(), implGetWeekDay(), SbxBasicFormater::isBasicFormat(), IsNumericRTL(), LANGUAGE_ENGLISH_US, CharClass::lowercase(), n, NF_DATE_SYSTEM_SHORT, nIndex, None, nType, SbxAppData::pBasicFormater, SbiGlobals::pInst, SbiInstance::PrepareNumberFormatter(), printfmtstr(), SbxBYTE, SbxCHAR, SbxDOUBLE, SbxINT, SbxINTEGER, SbxLONG, SbxNULL, SbxSINGLE, SbxSTRING, SbxUINT, SbxULONG, SbxUSHORT, ScanNumIntnl(), and CharClass::uppercase().
|
private |
Definition at line 359 of file sbxvalue.cxx.
bool SbxValue::Get | ( | SbxValues & | rRes | ) | const |
Definition at line 270 of file sbxvalue.cxx.
References SbxBase::CanRead(), SbxValues::clear(), ERRCODE_BASIC_CONVERSION, ERRCODE_BASIC_NO_OBJECT, ERRCODE_BASIC_PROP_WRITEONLY, ERRCODE_NONE, SbxValues::eType, SbxBase::GetError(), ImpGetBool(), ImpGetByte(), ImpGetChar(), ImpGetCoreString(), ImpGetCurrency(), ImpGetDate(), ImpGetDecimal(), ImpGetDouble(), ImpGetInt64(), ImpGetInteger(), ImpGetLong(), ImpGetSingle(), ImpGetString(), ImpGetUInt64(), ImpGetULong(), ImpGetUShort(), SbxBase::IsError(), SbxValues::nByte, SbxValues::nChar, SbxValues::nDouble, SbxValues::nInt, SbxValues::nInt64, SbxValues::nInteger, SbxValues::nLong, SbxValues::nSingle, SbxValues::nUInt, SbxValues::nULong, SbxValues::nUShort, p, SbxValues::pDecimal, SbxValues::pObj, SbxValues::pOUString, SbxBase::ResetError(), SbxBYTE, SbxCHAR, SbxCoreSTRING, SbxCURRENCY, SbxDATE, SbxDECIMAL, SbxDOUBLE, SbxEMPTY, SbxINT, SbxINTEGER, SbxLONG, SbxLPSTR, SbxNULL, SbxOBJECT, SbxSALINT64, SbxSALUINT64, SbxSINGLE, SbxSTRING, SbxUINT, SbxULONG, SbxUSHORT, SbxVARIANT, SbxVOID, SbxBase::SetError(), TheRealValue(), and SbxValues::uInt64.
Referenced by SbMethod::Call(), Compare(), Compute(), Convert(), Get(), GetCoreString(), GetOUString(), SbModule::handleProcedureProperties(), SbModule::Notify(), operator=(), and SbUserFormModule::Unload().
|
inline |
Definition at line 153 of file sbxvar.hxx.
References Get().
Referenced by ImpGetBool(), SbStdFont::PropBold(), SbStdFont::PropItalic(), SbStdFont::PropStrikeThrough(), SbStdFont::PropUnderline(), and sbxToUnoValue().
|
inline |
Definition at line 158 of file sbxvar.hxx.
References Get(), and SbxBYTE.
Referenced by ByteArrayToString(), getUnoTypeForSbxValue(), and ImpGetByte().
|
inline |
Definition at line 140 of file sbxvar.hxx.
References Get(), and SbxCHAR.
Referenced by ImpGetChar(), and sbxToUnoValue().
const OUString & SbxValue::GetCoreString | ( | ) | const |
Definition at line 366 of file sbxvalue.cxx.
References aToolString, Get(), SbxValues::pOUString, and SbxCoreSTRING.
Referenced by StoreData().
|
inline |
Definition at line 146 of file sbxvar.hxx.
References Get(), and SbxCURRENCY.
Referenced by ImpGetCurrency().
|
inline |
Definition at line 151 of file sbxvar.hxx.
References Get(), and SbxDATE.
Referenced by ImpGetDate(), and sbxToUnoValue().
|
inline |
Definition at line 147 of file sbxvar.hxx.
References Get(), and SbxDECIMAL.
Referenced by fillAutomationDecimal(), and ImpGetDecimal().
|
inline |
Definition at line 150 of file sbxvar.hxx.
References Get(), and SbxDOUBLE.
Referenced by checkArithmeticOverflow(), Format(), ImpGetDouble(), sbxToUnoValue(), and sbxToUnoValueImpl().
|
inline |
Definition at line 131 of file sbxvar.hxx.
References aData.
Referenced by Impl_DumpMethods(), SbUnoStructRefObject::Impl_DumpProperties(), and Impl_DumpProperties().
|
inline |
Definition at line 143 of file sbxvar.hxx.
References Get(), and SbxSALINT64.
Referenced by ImpGetInt64(), and sbxToUnoValue().
|
inline |
Definition at line 141 of file sbxvar.hxx.
References Get(), and SbxINTEGER.
Referenced by SbiRuntime::CheckArray(), SbxCollection::CollRemove(), ImpGetInteger(), SbStdClipboard::MethGetData(), SbStdClipboard::MethGetFormat(), SbStdClipboard::MethSetData(), SbStdFont::PropSize(), sbxToUnoValue(), sbxToUnoValueImpl(), and TheRealValue().
|
inline |
Definition at line 142 of file sbxvar.hxx.
References Get(), and SbxLONG.
Referenced by SbiRuntime::CheckArray(), SbiRuntime::DimImpl(), ImpGetLong(), BasicCollection::implGetIndex(), SbRtl_Err(), SbRtl_InputBox(), sbxToUnoValue(), and sbxToUnoValueImpl().
|
inline |
Definition at line 157 of file sbxvar.hxx.
References Get(), and SbxOBJECT.
Referenced by SbiRuntime::CheckArray(), SbxCollection::CollAdd(), SbxCollection::Find(), getDefaultProp(), getUnoTypeForSbxValue(), SbModule::implClearIfVarDependsOnDeletedBasic(), operator=(), RTL_Impl_CreateUnoDialog(), RTL_Impl_CreateUnoValue(), RTL_Impl_HasInterfaces(), SbiImage::Save(), sbxToUnoValue(), and sbxToUnoValueImpl().
OUString SbxValue::GetOUString | ( | ) | const |
Definition at line 380 of file sbxvalue.cxx.
References Get(), SbxValues::pOUString, and SbxSTRING.
Referenced by BasicCollection::CollAdd(), Format(), ImpGetString(), BasicCollection::implGetIndex(), SbxObject::Notify(), operator=(), SbStdFont::PropName(), RTL_Impl_CreateUnoService(), RTL_Impl_CreateUnoServiceWithArguments(), RTL_Impl_CreateUnoStruct(), RTL_Impl_CreateUnoValue(), RTL_Impl_HasInterfaces(), SbRtl_CreateUnoListener(), SbRtl_InputBox(), and sbxToUnoValue().
|
inline |
Definition at line 149 of file sbxvar.hxx.
References Get(), and SbxSINGLE.
Referenced by ImpGetSingle(), and sbxToUnoValue().
|
overridevirtual |
Reimplemented from SbxBase.
Reimplemented in SbxObject, and SbxVariable.
Definition at line 668 of file sbxvalue.cxx.
References aData, and SbxValues::eType.
Referenced by Clear(), Compare(), Compute(), Format(), and ImpIsNumeric().
|
inline |
Definition at line 144 of file sbxvar.hxx.
References Get(), and SbxSALUINT64.
Referenced by ImpGetUInt64(), and sbxToUnoValue().
|
inline |
Definition at line 160 of file sbxvar.hxx.
References Get(), and SbxULONG.
Referenced by ImpGetULong(), and sbxToUnoValue().
|
inline |
Definition at line 159 of file sbxvar.hxx.
References Get(), and SbxUSHORT.
Referenced by ImpGetUShort(), and sbxToUnoValue().
|
inline |
Definition at line 135 of file sbxvar.hxx.
References aData.
Referenced by SbxObject::Dump(), and SbxVariable::Dump().
bool SbxValue::ImpIsNumeric | ( | bool | bOnlyIntntl | ) | const |
Definition at line 637 of file sbxvalue.cxx.
References aData, Broadcast(), SbxBase::CanRead(), ERRCODE_BASIC_PROP_WRITEONLY, ERRCODE_NONE, GetType(), ImpScan(), n, SbxValues::pOUString, SbxCHAR, SbxCURRENCY, SbxEMPTY, SbxINTEGER, SbxSTRING, SbxUINT, SbxBase::SetError(), and t.
Referenced by IsNumeric(), and IsNumericRTL().
|
inline |
Definition at line 122 of file sbxvar.hxx.
References SbxBase::GetType().
|
inline |
Definition at line 120 of file sbxvar.hxx.
References SbxBase::GetType(), and SbxCURRENCY.
|
inline |
Definition at line 118 of file sbxvar.hxx.
References SbxBase::GetType(), and SbxDOUBLE.
|
inline |
Definition at line 124 of file sbxvar.hxx.
References SbxBase::GetType(), and SbxEMPTY.
Referenced by sbxToUnoValue().
|
inline |
Definition at line 123 of file sbxvar.hxx.
References SbxBase::GetType(), and SbxERROR.
Referenced by BasicCollection::CollAdd(), and SbRtl_InputBox().
|
overridevirtual |
Reimplemented from SbxBase.
Definition at line 618 of file sbxvalue.cxx.
References aData, Fixed, and SbxBYREF.
Referenced by SbxMethod::Clear(), Compare(), Compute(), Convert(), operator=(), SbxValue(), Scan(), and SetType().
|
inline |
Definition at line 116 of file sbxvar.hxx.
References SbxBase::GetType(), and SbxINTEGER.
|
inline |
Definition at line 117 of file sbxvar.hxx.
References SbxBase::GetType(), and SbxLONG.
|
inline |
Definition at line 125 of file sbxvar.hxx.
References SbxBase::GetType(), and SbxNULL.
Referenced by sbxToUnoValue().
bool SbxValue::IsNumeric | ( | ) | const |
Definition at line 627 of file sbxvalue.cxx.
References ImpIsNumeric().
Referenced by Compare(), and PutStringExt().
bool SbxValue::IsNumericRTL | ( | ) | const |
|
inline |
Definition at line 121 of file sbxvar.hxx.
References SbxBase::GetType(), and SbxOBJECT.
|
inline |
Definition at line 119 of file sbxvar.hxx.
References SbxBase::GetType(), and SbxSTRING.
|
overrideprotectedvirtual |
Implements SbxBase.
Reimplemented in SbJScriptModule, SbMethod, SbModule, StarBASIC, SbxCollection, SbxStdCollection, SbxObject, and SbxVariable.
Definition at line 1308 of file sbxvalue.cxx.
References aData, SvRefBase::AddFirstRef(), Clear(), SbxValues::clear(), d, ERRCODE_NONE, SbxValues::eType, Fixed, ImpScan(), LibreOffice6FloatingPointMode(), SbxBase::Load(), n, SbxValues::nByte, SbxValues::nChar, SbxValues::nDouble, SbxValues::nInt, SbxValues::nInt64, SbxValues::nInteger, SbxValues::nLong, SbxValues::nSingle, nType, SbxValues::nUInt, SbxValues::nULong, SbxValues::nUShort, SbxValues::pObj, SbxValues::pOUString, read_uInt16_lenPrefixed_uInt8s_ToOUString(), SvStream::ReadChar(), SvStream::ReadInt16(), SvStream::ReadInt32(), SvStream::ReadInt64(), SvStream::ReadUChar(), SvStream::ReadUInt16(), SvStream::ReadUInt32(), SvStream::ReadUInt64(), SbxBase::ResetFlag(), SAL_WARN, SbxBYTE, SbxCHAR, SbxCURRENCY, SbxDATAOBJECT, SbxDATE, SbxDOUBLE, SbxEMPTY, SbxERROR, SbxINT, SbxINTEGER, SbxLONG, SbxNULL, SbxOBJECT, SbxSALINT64, SbxSALUINT64, SbxSINGLE, SbxSTRING, SbxUINT, SbxULONG, SbxUSHORT, SbxVOID, SbxWCHAR, SbxWSTRING, t, and SbxValues::uInt64.
Referenced by SbxVariable::LoadData().
Definition at line 218 of file sbxvar.hxx.
Definition at line 224 of file sbxvar.hxx.
Definition at line 227 of file sbxvar.hxx.
Definition at line 221 of file sbxvar.hxx.
|
inline |
Definition at line 212 of file sbxvar.hxx.
Definition at line 89 of file sbxvalue.cxx.
References aData, aStr, ByteArrayToString(), SbxBase::CanWrite(), ERRCODE_BASIC_PROP_READONLY, SbxValues::eType, Get(), GetObject(), GetOUString(), SbxBase::GetType(), IsFixed(), SbxValues::pObj, Put(), PutObject(), PutString(), SbxARRAY, SbxBYTE, SbxOBJECT, SbxSTRING, SbxVARIANT, SbxBase::SetError(), and StringToByteArray().
Referenced by SbxVariable::operator=().
|
inline |
Definition at line 215 of file sbxvar.hxx.
bool SbxValue::Put | ( | const SbxValues & | rVal | ) |
Definition at line 393 of file sbxvalue.cxx.
References SbxBase::CanWrite(), ERRCODE_BASIC_BAD_ARGUMENT, ERRCODE_BASIC_CONVERSION, ERRCODE_BASIC_PROP_READONLY, ERRCODE_NONE, SbxValues::eType, SbxBase::GetError(), SbxVariable::GetUserData(), ImpPutBool(), ImpPutByte(), ImpPutChar(), ImpPutCurrency(), ImpPutDate(), ImpPutDecimal(), ImpPutDouble(), ImpPutInt64(), ImpPutInteger(), ImpPutLong(), ImpPutSingle(), ImpPutString(), ImpPutUInt64(), ImpPutULong(), ImpPutUShort(), SbxBase::IsError(), SbxValues::nByte, SbxValues::nChar, SbxValues::nDouble, SbxValues::nInt, SbxValues::nInt64, SbxValues::nInteger, SbxValues::nLong, SbxValues::nSingle, SbxValues::nUInt, SbxValues::nULong, SbxValues::nUShort, p, SbxValues::pDecimal, SbxValues::pObj, SbxValues::pOUString, SbxBase::ResetError(), SAL_INFO, SbxBYTE, SbxCHAR, SbxCURRENCY, SbxDATE, SbxDECIMAL, SbxDOUBLE, SbxEMPTY, SbxINT, SbxINTEGER, SbxLONG, SbxLPSTR, SbxNULL, SbxOBJECT, SbxSALINT64, SbxSALUINT64, SbxSINGLE, SbxSTRING, SbxUINT, SbxULONG, SbxUSHORT, SbxVOID, SbxBase::SetError(), TheRealValue(), and SbxValues::uInt64.
Referenced by SbMethod::Broadcast(), SbMethod::Call(), Clear(), Compute(), Convert(), SbModule::handleProcedureProperties(), handleToStringForCOMObjects(), SbxVariable::LoadData(), SbModule::Notify(), operator=(), PutBool(), PutDate(), PutErr(), PutString(), and PutStringExt().
bool SbxValue::PutBool | ( | bool | b | ) |
Definition at line 543 of file sbxvalue.cxx.
References SbxValues::nUShort, Put(), SbxFALSE, and SbxTRUE.
Referenced by ImpPutBool(), SbStdClipboard::MethGetFormat(), SbStdFont::PropBold(), SbStdFont::PropItalic(), SbStdFont::PropStrikeThrough(), SbStdFont::PropUnderline(), SbRtl_False(), SbRtl_True(), SbiRuntime::StepCompare(), SbiRuntime::StepIS(), SbiRuntime::StepLIKE(), SbiRuntime::StepTESTCLASS(), and unoToSbxValue().
bool SbxValue::PutByte | ( | sal_uInt8 | ) |
Referenced by ImpPutByte(), and StringToByteArray().
bool SbxValue::PutChar | ( | sal_Unicode | ) |
Referenced by ImpPutChar(), and unoToSbxValue().
bool SbxValue::PutCurrency | ( | sal_Int64 | ) |
Referenced by ImpPutCurrency(), and unoToSbxValue().
void SbxValue::PutDate | ( | double | n | ) |
Definition at line 597 of file sbxvalue.cxx.
References n, SbxValues::nDouble, Put(), and SbxDATE.
Referenced by ImpPutDate(), and unoToSbxValue().
void SbxValue::PutDecimal | ( | css::bridge::oleautomation::Decimal const & | rAutomationDec | ) |
Definition at line 566 of file sbxvalue.cxx.
References aData, SbxDecimal::addRef(), Clear(), SbxValues::eType, SbxValues::pDecimal, and SbxDECIMAL.
Referenced by ImpPutDecimal(), and unoToSbxValue().
bool SbxValue::PutDecimal | ( | SbxDecimal * | pDecimal | ) |
bool SbxValue::PutDouble | ( | double | ) |
Referenced by ImpPutDouble(), SbRtl_PI(), Scan(), and unoToSbxValue().
bool SbxValue::PutEmpty | ( | ) |
Definition at line 550 of file sbxvalue.cxx.
References SbxEMPTY, SbxBase::SetModified(), and SetType().
Referenced by unoToSbxValue().
void SbxValue::PutErr | ( | sal_uInt16 | n | ) |
Definition at line 599 of file sbxvalue.cxx.
References n, SbxValues::nUShort, Put(), and SbxERROR.
Referenced by SbiRuntime::StepPARAM().
bool SbxValue::PutInt64 | ( | sal_Int64 | ) |
Referenced by ImpPutInt64(), and unoToSbxValue().
bool SbxValue::PutInteger | ( | sal_Int16 | ) |
Referenced by ImpPutInteger(), SbStdPicture::PropHeight(), SbStdFont::PropSize(), SbStdPicture::PropType(), SbStdPicture::PropWidth(), SbRtl_ATTR_ARCHIVE(), SbRtl_ATTR_DIRECTORY(), SbRtl_ATTR_HIDDEN(), SbRtl_ATTR_NORMAL(), SbRtl_ATTR_READONLY(), SbRtl_ATTR_SYSTEM(), SbRtl_ATTR_VOLUME(), SbRtl_CF_BITMAP(), SbRtl_CF_METAFILEPICT(), SbRtl_CF_TEXT(), SbRtl_CLEAR_ALLTABS(), SbRtl_CLEAR_TAB(), SbRtl_FRAMEANCHORCHAR(), SbRtl_FRAMEANCHORPAGE(), SbRtl_FRAMEANCHORPARA(), SbRtl_IDABORT(), SbRtl_IDCANCEL(), SbRtl_IDIGNORE(), SbRtl_IDNO(), SbRtl_IDOK(), SbRtl_IDRETRY(), SbRtl_IDYES(), SbRtl_MB_ABORTRETRYIGNORE(), SbRtl_MB_APPLMODAL(), SbRtl_MB_DEFBUTTON1(), SbRtl_MB_DEFBUTTON2(), SbRtl_MB_DEFBUTTON3(), SbRtl_MB_ICONEXCLAMATION(), SbRtl_MB_ICONINFORMATION(), SbRtl_MB_ICONQUESTION(), SbRtl_MB_ICONSTOP(), SbRtl_MB_OK(), SbRtl_MB_OKCANCEL(), SbRtl_MB_RETRYCANCEL(), SbRtl_MB_SYSTEMMODAL(), SbRtl_MB_YESNO(), SbRtl_MB_YESNOCANCEL(), SbRtl_SET_OFF(), SbRtl_SET_ON(), SbRtl_SET_TAB(), SbRtl_TOGGLE(), SbRtl_TYP_AUTHORFLD(), SbRtl_TYP_CHAPTERFLD(), SbRtl_TYP_CONDTXTFLD(), SbRtl_TYP_DATEFLD(), SbRtl_TYP_DBFLD(), SbRtl_TYP_DBNAMEFLD(), SbRtl_TYP_DBNEXTSETFLD(), SbRtl_TYP_DBNUMSETFLD(), SbRtl_TYP_DBSETNUMBERFLD(), SbRtl_TYP_DDEFLD(), SbRtl_TYP_DOCINFOFLD(), SbRtl_TYP_DOCSTATFLD(), SbRtl_TYP_EXTUSERFLD(), SbRtl_TYP_FILENAMEFLD(), SbRtl_TYP_FIXDATEFLD(), SbRtl_TYP_FIXTIMEFLD(), SbRtl_TYP_FORMELFLD(), SbRtl_TYP_GETFLD(), SbRtl_TYP_GETREFFLD(), SbRtl_TYP_GETREFPAGEFLD(), SbRtl_TYP_HIDDENPARAFLD(), SbRtl_TYP_HIDDENTXTFLD(), SbRtl_TYP_INPUTFLD(), SbRtl_TYP_INTERNETFLD(), SbRtl_TYP_JUMPEDITFLD(), SbRtl_TYP_MACROFLD(), SbRtl_TYP_NEXTPAGEFLD(), SbRtl_TYP_PAGENUMBERFLD(), SbRtl_TYP_POSTITFLD(), SbRtl_TYP_PREVPAGEFLD(), SbRtl_TYP_SEQFLD(), SbRtl_TYP_SETFLD(), SbRtl_TYP_SETINPFLD(), SbRtl_TYP_SETREFFLD(), SbRtl_TYP_SETREFPAGEFLD(), SbRtl_TYP_TEMPLNAMEFLD(), SbRtl_TYP_TIMEFLD(), SbRtl_TYP_USERFLD(), SbRtl_TYP_USRINPFLD(), SbRtl_V_CURRENCY(), SbRtl_V_DATE(), SbRtl_V_DOUBLE(), SbRtl_V_EMPTY(), SbRtl_V_INTEGER(), SbRtl_V_LONG(), SbRtl_V_NULL(), SbRtl_V_SINGLE(), SbRtl_V_STRING(), SbiRuntime::StepBASED(), and unoToSbxValue().
bool SbxValue::PutLong | ( | sal_Int32 | ) |
Referenced by SbiParser::DefEnum(), ImpPutLong(), BasicCollection::Notify(), SbxCollection::Notify(), SbRtl_Erl(), SbRtl_Err(), and unoToSbxValue().
void SbxValue::PutNull | ( | ) |
Definition at line 557 of file sbxvalue.cxx.
References SbxNULL, SbxBase::SetModified(), and SetType().
Referenced by SbRtl_Null().
bool SbxValue::PutObject | ( | SbxBase * | ) |
bool SbxValue::PutSingle | ( | float | ) |
Referenced by ImpPutSingle(), and unoToSbxValue().
bool SbxValue::PutString | ( | const OUString & | r | ) |
Definition at line 585 of file sbxvalue.cxx.
References SbxValues::pOUString, Put(), and SbxSTRING.
Referenced by SbiRuntime::FindElementExtern(), SbiRuntime::implHandleSbxFlags(), ImpPutString(), SbStdClipboard::MethGetText(), SbUnoStructRefObject::Notify(), SbUnoObject::Notify(), SbxObject::Notify(), operator=(), SbStdFont::PropName(), SbRtl_InputBox(), SbiRuntime::StepPARAM(), and unoToSbxValue().
void SbxValue::PutStringExt | ( | const OUString & | r | ) |
Definition at line 501 of file sbxvalue.cxx.
References aData, aStr, SbxValues::eType, Fixed, SbxBase::GetFlags(), ImpConvStringExt(), IsNumeric(), SbxValues::pOUString, Put(), SbxBase::ResetError(), SbxCHAR, SbxCURRENCY, SbxINTEGER, SbxSTRING, SbxUINT, SbxBase::SetFlag(), and SbxBase::SetFlags().
bool SbxValue::PutUInt64 | ( | sal_uInt64 | ) |
Referenced by ImpPutUInt64(), and unoToSbxValue().
bool SbxValue::PutULong | ( | sal_uInt32 | ) |
Referenced by ImpPutULong(), and unoToSbxValue().
bool SbxValue::PutUShort | ( | sal_uInt16 | ) |
Referenced by ImpPutUShort(), and unoToSbxValue().
SbxValue::SBX_DECL_PERSIST_NODATA | ( | SBXID_VALUE | , |
1 | |||
) |
bool SbxValue::Scan | ( | const OUString & | rSrc, |
sal_uInt16 * | pLen | ||
) |
Definition at line 395 of file sbxscan.cxx.
References SbxBase::CanWrite(), ERRCODE_BASIC_PROP_READONLY, ERRCODE_NONE, ImpScan(), IsFixed(), LibreOffice6FloatingPointMode(), n, PutDouble(), SbxBase::SetError(), SetType(), and t.
|
static |
Definition at line 266 of file sbxscan.cxx.
References ERRCODE_BASIC_CONVERSION, ERRCODE_NONE, ImpGetSingle(), ImpScan(), and t.
Referenced by Format().
bool SbxValue::SetType | ( | SbxDataType | t | ) |
Definition at line 674 of file sbxvalue.cxx.
References aData, SbxBase::CanWrite(), SbxValues::clear(), DBG_ASSERT, ERRCODE_BASIC_CONVERSION, SbxValues::eType, Fixed, SbxVariable::GetName(), SbxVariable::GetUserData(), IsFixed(), SbxValues::pObj, SbxValues::pOUString, SvRefBase::ReleaseRef(), SbxBase::ResetFlag(), SAL_WARN, SbxEMPTY, SbxOBJECT, SbxSTRING, SbxVARIANT, SbxVOID, SbxBase::SetError(), and t.
Referenced by Compute(), Convert(), SbiRuntime::FindElement(), SbModule::GetMethod(), BasicCollection::Initialize(), SbxCollection::Initialize(), PutEmpty(), PutNull(), and Scan().
|
overrideprotectedvirtual |
Implements SbxBase.
Reimplemented in SbJScriptModule, SbMethod, SbModule, StarBASIC, SbxStdCollection, SbxObject, and SbxVariable.
Definition at line 1470 of file sbxvalue.cxx.
References aData, B_IMG_VERSION_12, SbxValues::eType, GetCoreString(), SbxValues::nByte, SbxValues::nChar, SbxValues::nInt, SbxValues::nInt64, SbxValues::nInteger, SbxValues::nLong, nType, SbxValues::nUInt, SbxValues::nULong, SbxValues::nUShort, SbxValues::pObj, SbxValues::pOUString, SAL_WARN, SbxBYTE, SbxCHAR, SbxCURRENCY, SbxDATAOBJECT, SbxDATE, SbxDOUBLE, SbxEMPTY, SbxERROR, SbxINT, SbxINTEGER, SbxLONG, SbxNULL, SbxOBJECT, SbxSALINT64, SbxSALUINT64, SbxSINGLE, SbxSTRING, SbxUINT, SbxULONG, SbxUSHORT, SbxVOID, SbxWCHAR, SbxWSTRING, SbxBase::Store(), SbxValues::uInt64, write_uInt16_lenPrefixed_uInt8s_FromOUString(), SvStream::WriteChar(), SvStream::WriteInt16(), SvStream::WriteInt32(), SvStream::WriteUChar(), SvStream::WriteUInt16(), SvStream::WriteUInt32(), and SvStream::WriteUInt64().
Referenced by SbxVariable::StoreData().
|
private |
Definition at line 197 of file sbxvalue.cxx.
References aData, ERRCODE_BASIC_BAD_PROP_VALUE, SbxValues::eType, SbxArray::Get(), SbxDimArray::Get(), SbxObject::GetDfltProperty(), GetInteger(), SbxVariable::GetParameters(), handleToStringForCOMObjects(), p, SbxValues::pObj, SbxOBJECT, SbxBase::SetError(), and t.
|
protected |
Definition at line 99 of file sbxvar.hxx.
Referenced by SbxMethod::Clear(), Clear(), Convert(), GetType(), SbxVariable::GetType(), ImpIsNumeric(), SbxObject::LoadData(), LoadData(), SbxVariable::LoadData(), operator=(), PutDecimal(), PutStringExt(), SbxObject::SbxObject(), SbxValue(), SetType(), StoreData(), and TheRealValue().
|
protected |
Definition at line 100 of file sbxvar.hxx.
|
protected |
Definition at line 101 of file sbxvar.hxx.
Referenced by GetCoreString().