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

#include <sbx.hxx>

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

Public Member Functions

 SBX_DECL_PERSIST_NODATA (SBXID_ARRAY, 1)
 
 SbxArray (SbxDataType=SbxVARIANT)
 
 SbxArray (const SbxArray &)=delete
 
SbxArrayoperator= (const SbxArray &)
 
virtual void Clear () override
 
sal_uInt32 Count () const
 
virtual SbxDataType GetType () const override
 
SbxVariableRefGetRef (sal_uInt32)
 
SbxVariableGet (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)
 
SbxVariableFind (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 &)
 
SvRefBaseoperator= (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 &)
 
SbxBaseoperator= (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< SbxVarEntrymVarEntries
 
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
 

Detailed Description

Definition at line 94 of file sbx.hxx.

Constructor & Destructor Documentation

◆ ~SbxArray()

SbxArray::~SbxArray ( )
overrideprotectedvirtual

Definition at line 73 of file sbxarray.cxx.

◆ SbxArray() [1/2]

SbxArray::SbxArray ( SbxDataType  t = SbxVARIANT)

Definition at line 40 of file sbxarray.cxx.

References eType, Fixed, SbxVARIANT, SbxBase::SetFlag(), and t.

◆ SbxArray() [2/2]

SbxArray::SbxArray ( const SbxArray )
delete

References Clear(), Count, Get(), GetRef, Insert(), Merge, Put, and Remove.

Member Function Documentation

◆ Clear()

void SbxArray::Clear ( )
overridevirtual

Implements SbxBase.

Reimplemented in SbxDimArray.

Definition at line 82 of file sbxarray.cxx.

References mVarEntries.

Referenced by lcl_eraseImpl(), and operator=().

◆ Count()

sal_uInt32 SbxArray::Count ( ) const

◆ Find()

SbxVariable * SbxArray::Find ( const OUString &  rName,
SbxClassType  t 
)

◆ Get()

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().

◆ GetAlias()

OUString SbxArray::GetAlias ( sal_uInt32  nIdx)

Definition at line 147 of file sbxarray.cxx.

◆ GetRef()

SbxVariableRef & SbxArray::GetRef ( sal_uInt32  nIdx)

Definition at line 92 of file sbxarray.cxx.

References DBG_ASSERT, and SBX_MAXINDEX32.

Referenced by SbxObject::FindVar().

◆ GetType()

SbxDataType SbxArray::GetType ( ) const
overridevirtual

Reimplemented from SbxBase.

Definition at line 77 of file sbxarray.cxx.

References eType, and SbxARRAY.

◆ Insert()

void SbxArray::Insert ( SbxVariable pVar,
sal_uInt32  nIdx 
)

◆ LoadData()

bool SbxArray::LoadData ( SvStream rStrm,
sal_uInt16   
)
overrideprotectedvirtual

Implements SbxBase.

Reimplemented in SbxDimArray.

Definition at line 332 of file sbxarray.cxx.

◆ Merge()

void SbxArray::Merge ( SbxArray p)

Definition at line 230 of file sbxarray.cxx.

Referenced by LoadArray().

◆ operator=()

SbxArray & SbxArray::operator= ( const SbxArray rArray)

◆ Put()

void SbxArray::Put ( SbxVariable pVar,
sal_uInt32  nIdx 
)

◆ PutAlias()

void SbxArray::PutAlias ( const OUString &  rAlias,
sal_uInt32  nIdx 
)

Definition at line 162 of file sbxarray.cxx.

◆ PutDirect()

void SbxArray::PutDirect ( SbxVariable pVar,
sal_uInt32  nIdx 
)
private

Definition at line 392 of file sbxarray.cxx.

◆ Remove() [1/2]

void SbxArray::Remove ( sal_uInt32  nIdx)

Definition at line 204 of file sbxarray.cxx.

Referenced by SbxObject::Remove().

◆ Remove() [2/2]

void SbxArray::Remove ( SbxVariable const *  pVar)

Definition at line 213 of file sbxarray.cxx.

◆ SBX_DECL_PERSIST_NODATA()

SbxArray::SBX_DECL_PERSIST_NODATA ( SBXID_ARRAY  ,
 
)

◆ StoreData()

std::pair< bool, sal_uInt32 > SbxArray::StoreData ( SvStream rStrm) const
overrideprotectedvirtual

Implements SbxBase.

Reimplemented in SbxDimArray.

Definition at line 361 of file sbxarray.cxx.

Friends And Related Function Documentation

◆ cloneTypeObjectImpl

SbxObjectRef cloneTypeObjectImpl ( const SbxObject rTypeObj)
friend

Definition at line 520 of file sb.cxx.

◆ SbClassModuleObject

friend class SbClassModuleObject
friend

Definition at line 98 of file sbx.hxx.

◆ SbMethod

friend class SbMethod
friend

Definition at line 97 of file sbx.hxx.

Member Data Documentation

◆ eType

SbxDataType SbxArray::eType
private

Definition at line 103 of file sbx.hxx.

Referenced by GetType(), operator=(), and SbxArray().

◆ mVarEntries

std::vector<SbxVarEntry> SbxArray::mVarEntries
private

Definition at line 102 of file sbx.hxx.

Referenced by Clear(), Count(), and operator=().


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