LibreOffice Module basic (master) 1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
SbxDimArray Class Referencefinal

#include <sbx.hxx>

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

Public Member Functions

 SBX_DECL_PERSIST_NODATA (SBXID_DIMARRAY, 1)
 
 SbxDimArray (SbxDataType=SbxVARIANT)
 
 SbxDimArray (const SbxDimArray &)=delete
 
SbxDimArrayoperator= (const SbxDimArray &)
 
virtual void Clear () override
 
SbxVariableGet (SbxArray *)
 
SbxVariableGet (const sal_Int32 *)
 
void Put (SbxVariable *, const sal_Int32 *)
 
sal_Int32 GetDims () const
 
void AddDim (sal_Int32, sal_Int32)
 
void unoAddDim (sal_Int32, sal_Int32)
 
bool GetDim (sal_Int32, sal_Int32 &, sal_Int32 &) const
 
bool hasFixedSize () const
 
void setHasFixedSize (bool bHasFixedSize)
 
SbxVariableRefGetRef (sal_uInt32)
 
SbxVariableGet (sal_uInt32)
 
void Put (SbxVariable *, sal_uInt32)
 
- Public Member Functions inherited from SbxArray
 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
 

Private Member Functions

BASIC_DLLPRIVATE void AddDimImpl (sal_Int32, sal_Int32, bool bAllowSize0)
 
sal_uInt32 Offset (const sal_Int32 *)
 
sal_uInt32 Offset (SbxArray *)
 
virtual bool LoadData (SvStream &, sal_uInt16) override
 
virtual std::pair< bool, sal_uInt32 > StoreData (SvStream &) const override
 
virtual ~SbxDimArray () override
 

Private Attributes

std::vector< SbxDimm_vDimensions
 
bool mbHasFixedSize
 

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 Member Functions inherited from SbxArray
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
 
- Protected Attributes inherited from SbxBase
SbxFlagBits nFlags
 

Detailed Description

Definition at line 136 of file sbx.hxx.

Constructor & Destructor Documentation

◆ ~SbxDimArray()

SbxDimArray::~SbxDimArray ( )
overrideprivatevirtual

Definition at line 416 of file sbxarray.cxx.

◆ SbxDimArray() [1/2]

SbxDimArray::SbxDimArray ( SbxDataType  t = SbxVARIANT)

Definition at line 401 of file sbxarray.cxx.

◆ SbxDimArray() [2/2]

SbxDimArray::SbxDimArray ( const SbxDimArray )
delete

References Clear(), Get(), and Put.

Member Function Documentation

◆ AddDim()

void SbxDimArray::AddDim ( sal_Int32  lb,
sal_Int32  ub 
)

Definition at line 445 of file sbxarray.cxx.

Referenced by SbiParser::DefType(), SbiRuntime::DimImpl(), and StringToByteArray().

◆ AddDimImpl()

void SbxDimArray::AddDimImpl ( sal_Int32  lb,
sal_Int32  ub,
bool  bAllowSize0 
)
private

Definition at line 428 of file sbxarray.cxx.

◆ Clear()

void SbxDimArray::Clear ( )
overridevirtual

Reimplemented from SbxArray.

Definition at line 420 of file sbxarray.cxx.

Referenced by lcl_eraseImpl().

◆ Get() [1/3]

SbxVariable * SbxDimArray::Get ( const sal_Int32 *  pIdx)

Definition at line 494 of file sbxarray.cxx.

◆ Get() [2/3]

SbxVariable * SbxArray::Get ( sal_uInt32  nIdx)

Definition at line 119 of file sbxarray.cxx.

◆ Get() [3/3]

SbxVariable * SbxDimArray::Get ( SbxArray pPar)

◆ GetDim()

bool SbxDimArray::GetDim ( sal_Int32  n,
sal_Int32 &  rlb,
sal_Int32 &  rub 
) const

◆ GetDims()

sal_Int32 SbxDimArray::GetDims ( ) const
inline

◆ GetRef()

SbxVariableRef & SbxArray::GetRef ( sal_uInt32  nIdx)

Definition at line 118 of file sbxarray.cxx.

◆ hasFixedSize()

bool SbxDimArray::hasFixedSize ( ) const
inline

Definition at line 164 of file sbx.hxx.

Referenced by lcl_eraseImpl(), and SbiImage::Save().

◆ LoadData()

bool SbxDimArray::LoadData ( SvStream rStrm,
sal_uInt16  nVer 
)
overrideprivatevirtual

Reimplemented from SbxArray.

Definition at line 543 of file sbxarray.cxx.

◆ Offset() [1/2]

sal_uInt32 SbxDimArray::Offset ( const sal_Int32 *  pIdx)
private

Definition at line 474 of file sbxarray.cxx.

◆ Offset() [2/2]

sal_uInt32 SbxDimArray::Offset ( SbxArray pPar)
private

Definition at line 505 of file sbxarray.cxx.

◆ operator=()

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

Definition at line 405 of file sbxarray.cxx.

◆ Put() [1/2]

void SbxDimArray::Put ( SbxVariable p,
const sal_Int32 *  pIdx 
)

◆ Put() [2/2]

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

Definition at line 120 of file sbxarray.cxx.

◆ SBX_DECL_PERSIST_NODATA()

SbxDimArray::SBX_DECL_PERSIST_NODATA ( SBXID_DIMARRAY  ,
 
)

◆ setHasFixedSize()

void SbxDimArray::setHasFixedSize ( bool  bHasFixedSize)
inline

Definition at line 165 of file sbx.hxx.

Referenced by SbiParser::DefType(), SbiRuntime::DimImpl(), and SbiImage::Load().

◆ StoreData()

std::pair< bool, sal_uInt32 > SbxDimArray::StoreData ( SvStream rStrm) const
overrideprivatevirtual

Reimplemented from SbxArray.

Definition at line 570 of file sbxarray.cxx.

◆ unoAddDim()

void SbxDimArray::unoAddDim ( sal_Int32  lb,
sal_Int32  ub 
)

Member Data Documentation

◆ m_vDimensions

std::vector<SbxDim> SbxDimArray::m_vDimensions
private

Definition at line 138 of file sbx.hxx.

◆ mbHasFixedSize

bool SbxDimArray::mbHasFixedSize
private

Definition at line 140 of file sbx.hxx.


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