LibreOffice Module basic (master) 1
|
#include <sbx.hxx>
Public Member Functions | |
SBX_DECL_PERSIST_NODATA (SBXID_ARRAY, 1) | |
SbxArray (SbxDataType=SbxVARIANT) | |
SbxArray (const SbxArray &)=delete | |
SbxArray & | operator= (const SbxArray &) |
virtual void | Clear () override |
sal_uInt32 | Count () const |
virtual SbxDataType | GetType () const override |
SbxVariableRef & | GetRef (sal_uInt32) |
SbxVariable * | Get (sal_uInt32) |
void | Put (SbxVariable *, sal_uInt32) |
void | Insert (SbxVariable *, sal_uInt32) |
void | Remove (sal_uInt32) |
void | Remove (SbxVariable const *) |
void | Merge (SbxArray *) |
OUString | GetAlias (sal_uInt32) |
void | PutAlias (const OUString &, sal_uInt32) |
SbxVariable * | Find (const OUString &, SbxClassType) |
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 |
Protected Member Functions | |
virtual | ~SbxArray () 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 |
Private Member Functions | |
BASIC_DLLPRIVATE void | PutDirect (SbxVariable *pVar, sal_uInt32 nIdx) |
Private Attributes | |
std::vector< SbxVarEntry > | mVarEntries |
SbxDataType | eType |
Friends | |
class | SbMethod |
class | SbClassModuleObject |
SbxObjectRef | cloneTypeObjectImpl (const SbxObject &rTypeObj) |
Additional Inherited Members | |
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 Attributes inherited from SbxBase | |
SbxFlagBits | nFlags |
|
overrideprotectedvirtual |
Definition at line 73 of file sbxarray.cxx.
SbxArray::SbxArray | ( | SbxDataType | t = SbxVARIANT | ) |
Definition at line 40 of file sbxarray.cxx.
References eType, Fixed, SbxVARIANT, SbxBase::SetFlag(), and t.
|
delete |
|
overridevirtual |
Implements SbxBase.
Reimplemented in SbxDimArray.
Definition at line 82 of file sbxarray.cxx.
References mVarEntries.
Referenced by lcl_eraseImpl(), and operator=().
sal_uInt32 SbxArray::Count | ( | ) | const |
Definition at line 87 of file sbxarray.cxx.
References mVarEntries.
Referenced by ByteArrayToString(), SbiRuntime::CheckArray(), SbModule::ClearPrivateVars(), ClearUnoObjectsInRTL_Impl_Rek(), SbModule::ClearVarsDependingOnDeletedBasic(), SbxCollection::CollAdd(), BasicCollection::CollAdd(), SbxCollection::CollItem(), BasicCollection::CollItem(), SbxCollection::CollRemove(), BasicCollection::CollRemove(), SbModule::createCOMWrapperForIface(), SbiParser::DefEnum(), SbiParser::DefType(), SbiRuntime::DimImpl(), disposeComVariablesForBasic(), SbxObject::FindVar(), SbModule::handleProcedureProperties(), Impl_DumpMethods(), Impl_DumpProperties(), SbxObject::Insert(), SbiImage::Load(), SbxObject::Make(), SbStdClipboard::MethClear(), SbStdClipboard::MethGetData(), SbStdClipboard::MethGetFormat(), SbStdClipboard::MethGetText(), SbStdClipboard::MethSetData(), SbStdClipboard::MethSetText(), SbUnoObject::Notify(), SbUnoService::Notify(), SbUnoSingleton::Notify(), SbModule::Notify(), SbxObject::QuickInsert(), registerComListenerVariableForBasic(), RTL_Impl_CreatePropertySet(), RTL_Impl_CreateUnoDialog(), RTL_Impl_CreateUnoService(), RTL_Impl_CreateUnoServiceWithArguments(), RTL_Impl_CreateUnoStruct(), RTL_Impl_CreateUnoValue(), RTL_Impl_EqualUnoObjects(), RTL_Impl_HasInterfaces(), RTL_Impl_IsUnoStruct(), SbiCodeGen::Save(), SbiImage::Save(), SbRtl_CreateUnoListener(), SbRtl_InputBox(), SendHint_(), SbiRuntime::SetParameters(), SbxVariable::SetParent(), and SbiRuntime::StepSTATIC_Impl().
SbxVariable * SbxArray::Find | ( | const OUString & | rName, |
SbxClassType | t | ||
) |
Definition at line 275 of file sbxarray.cxx.
Referenced by SbiParser::DefType(), SbxObject::Find(), SbiRuntime::FindElement(), SbxObject::FindVar(), SbxObject::Make(), and SbiRuntime::StepSTATIC_Impl().
SbxVariable * SbxArray::Get | ( | sal_uInt32 | nIdx | ) |
Definition at line 108 of file sbxarray.cxx.
Referenced by ByteArrayToString(), SbiRuntime::CheckArray(), SbModule::ClearPrivateVars(), ClearUnoObjectsInRTL_Impl_Rek(), SbModule::ClearVarsDependingOnDeletedBasic(), SbxCollection::CollAdd(), BasicCollection::CollAdd(), SbxCollection::CollItem(), BasicCollection::CollItem(), SbxCollection::CollRemove(), BasicCollection::CollRemove(), SbModule::createCOMWrapperForIface(), SbiRuntime::DimImpl(), disposeComVariablesForBasic(), SbModule::handleProcedureProperties(), Impl_DumpMethods(), Impl_DumpProperties(), SbxObject::Insert(), invokeAutomationMethod(), SbStdClipboard::MethGetData(), SbStdClipboard::MethGetFormat(), SbStdClipboard::MethSetData(), SbUnoObject::Notify(), SbUnoService::Notify(), SbUnoSingleton::Notify(), SbModule::Notify(), processAutomationParams(), SbxObject::Remove(), RTL_Impl_CreatePropertySet(), RTL_Impl_CreateUnoDialog(), RTL_Impl_CreateUnoService(), RTL_Impl_CreateUnoServiceWithArguments(), RTL_Impl_CreateUnoStruct(), RTL_Impl_CreateUnoValue(), RTL_Impl_EqualUnoObjects(), RTL_Impl_GetDefaultContext(), RTL_Impl_GetProcessServiceManager(), RTL_Impl_HasInterfaces(), RTL_Impl_IsUnoStruct(), SbiImage::Save(), 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_CreateUnoListener(), SbRtl_Erl(), SbRtl_Err(), SbRtl_False(), SbRtl_FRAMEANCHORCHAR(), SbRtl_FRAMEANCHORPAGE(), SbRtl_FRAMEANCHORPARA(), SbRtl_IDABORT(), SbRtl_IDCANCEL(), SbRtl_IDIGNORE(), SbRtl_IDNO(), SbRtl_IDOK(), SbRtl_IDRETRY(), SbRtl_IDYES(), SbRtl_InputBox(), 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_Nothing(), SbRtl_Null(), SbRtl_PI(), SbRtl_SET_OFF(), SbRtl_SET_ON(), SbRtl_SET_TAB(), SbRtl_TOGGLE(), SbRtl_True(), 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(), SendHint_(), SbiRuntime::SetParameters(), SbxVariable::SetParent(), and SbxValue::TheRealValue().
OUString SbxArray::GetAlias | ( | sal_uInt32 | nIdx | ) |
Definition at line 147 of file sbxarray.cxx.
SbxVariableRef & SbxArray::GetRef | ( | sal_uInt32 | nIdx | ) |
Definition at line 92 of file sbxarray.cxx.
References DBG_ASSERT, and SBX_MAXINDEX32.
Referenced by SbxObject::FindVar().
|
overridevirtual |
Reimplemented from SbxBase.
Definition at line 77 of file sbxarray.cxx.
void SbxArray::Insert | ( | SbxVariable * | pVar, |
sal_uInt32 | nIdx | ||
) |
Definition at line 175 of file sbxarray.cxx.
Referenced by SbiParser::DefEnum(), SbiParser::DefType(), SbiImage::Load(), and SbiCodeGen::Save().
|
overrideprotectedvirtual |
void SbxArray::Merge | ( | SbxArray * | p | ) |
Definition at line 230 of file sbxarray.cxx.
Referenced by LoadArray().
Definition at line 47 of file sbxarray.cxx.
References Clear(), eType, tools::SvRef< typename T >::is(), mVarEntries, Object, SbxOBJECT, and SbxVARIANT.
void SbxArray::Put | ( | SbxVariable * | pVar, |
sal_uInt32 | nIdx | ||
) |
Definition at line 123 of file sbxarray.cxx.
Referenced by SbiRuntime::CheckArray(), SbxObject::Insert(), SbxObject::Make(), SbiStdObject::Notify(), SbxObject::QuickInsert(), registerComListenerVariableForBasic(), SbiRuntime::SetupArgs(), and SbiRuntime::StepSTATIC_Impl().
void SbxArray::PutAlias | ( | const OUString & | rAlias, |
sal_uInt32 | nIdx | ||
) |
Definition at line 162 of file sbxarray.cxx.
|
private |
Definition at line 392 of file sbxarray.cxx.
void SbxArray::Remove | ( | sal_uInt32 | nIdx | ) |
Definition at line 204 of file sbxarray.cxx.
Referenced by SbxObject::Remove().
void SbxArray::Remove | ( | SbxVariable const * | pVar | ) |
Definition at line 213 of file sbxarray.cxx.
SbxArray::SBX_DECL_PERSIST_NODATA | ( | SBXID_ARRAY | , |
1 | |||
) |
|
overrideprotectedvirtual |
|
friend |
|
private |
Definition at line 103 of file sbx.hxx.
Referenced by GetType(), operator=(), and SbxArray().
|
private |
Definition at line 102 of file sbx.hxx.
Referenced by Clear(), Count(), and operator=().