LibreOffice Module basic (master) 1
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions | List of all members
SbxBase Class Referenceabstract

#include <sbxcore.hxx>

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

Public Member Functions

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
 

Static Public Member Functions

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

 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

SbxFlagBits nFlags
 

Private Member Functions

virtual bool LoadData (SvStream &, sal_uInt16)=0
 
virtual std::pair< bool, sal_uInt32 > StoreData (SvStream &) const =0
 

Detailed Description

Definition at line 48 of file sbxcore.hxx.

Constructor & Destructor Documentation

◆ SbxBase() [1/2]

SbxBase::SbxBase ( )
protected

Definition at line 55 of file sbxbase.cxx.

References nFlags, and ReadWrite.

◆ SbxBase() [2/2]

SbxBase::SbxBase ( const SbxBase r)
protected

Definition at line 60 of file sbxbase.cxx.

References nFlags.

◆ ~SbxBase()

SbxBase::~SbxBase ( )
overrideprotectedvirtual

Definition at line 66 of file sbxbase.cxx.

Member Function Documentation

◆ AddFactory()

void SbxBase::AddFactory ( SbxFactory pFac)
static

Definition at line 134 of file sbxbase.cxx.

References GetSbxData_Impl(), and SbxAppData::m_Factories.

Referenced by SbiStdObject::SbiStdObject(), and StarBASIC::StarBASIC().

◆ CanRead()

bool SbxBase::CanRead ( ) const
inline

◆ CanWrite()

bool SbxBase::CanWrite ( ) const
inline

◆ Clear()

virtual void SbxBase::Clear ( )
pure virtual

◆ Create()

SbxBaseRef SbxBase::Create ( sal_uInt16  nSbxId,
sal_uInt32  nCreator 
)
static

◆ CreateObject()

SbxObjectRef SbxBase::CreateObject ( const OUString &  rClass)
static

◆ GetError()

ErrCode const & SbxBase::GetError ( )
static

◆ GetErrorMsg()

OUString const & SbxBase::GetErrorMsg ( )
static

Definition at line 101 of file sbxbase.cxx.

References SbxAppData::aErrorMsg, and GetSbxData_Impl().

Referenced by StarBASIC::Call().

◆ GetFlags()

SbxFlagBits SbxBase::GetFlags ( ) const
inline

◆ GetSbxId()

virtual sal_uInt16 SbxBase::GetSbxId ( ) const
protectedpure virtual

References IsHidden(), and SetFlags().

Referenced by Store().

◆ GetType()

SbxDataType SbxBase::GetType ( ) const
virtual

◆ GetVersion()

virtual sal_uInt16 SbxBase::GetVersion ( ) const
protectedpure virtual

Referenced by Store().

◆ IsError()

bool SbxBase::IsError ( )
static

◆ IsFixed()

bool SbxBase::IsFixed ( ) const
virtual

Reimplemented in SbxValue.

Definition at line 81 of file sbxbase.cxx.

References Fixed, and IsSet().

◆ IsHidden()

bool SbxBase::IsHidden ( ) const
inline

Definition at line 129 of file sbxcore.hxx.

References Hidden, and IsSet().

◆ IsModified()

bool SbxBase::IsModified ( ) const
inline

Definition at line 126 of file sbxcore.hxx.

References IsSet(), and Modified.

Referenced by StarBASIC::Insert().

◆ IsReset()

bool SbxBase::IsReset ( SbxFlagBits  n) const
inline

Definition at line 117 of file sbxcore.hxx.

References n, nFlags, and NONE.

Referenced by IsVisible().

◆ IsSet()

bool SbxBase::IsSet ( SbxFlagBits  n) const
inline

◆ IsVisible()

bool SbxBase::IsVisible ( ) const
inline

Definition at line 132 of file sbxcore.hxx.

References Invisible, and IsReset().

Referenced by StarBASIC::Find().

◆ Load()

SbxBaseRef SbxBase::Load ( SvStream rStrm)
static

◆ LoadCompleted()

bool SbxBase::LoadCompleted ( )
virtual

Reimplemented in SbModule.

Definition at line 277 of file sbxbase.cxx.

◆ LoadData()

virtual bool SbxBase::LoadData ( SvStream ,
sal_uInt16   
)
privatepure virtual

◆ operator=()

SbxBase & SbxBase::operator= ( const SbxBase r)
protected

Definition at line 70 of file sbxbase.cxx.

References nFlags.

◆ RemoveFactory()

void SbxBase::RemoveFactory ( SbxFactory const *  pFac)
static

◆ ResetError()

void SbxBase::ResetError ( )
static

◆ ResetFlag()

void SbxBase::ResetFlag ( SbxFlagBits  n)
inline

◆ SetError() [1/2]

void SbxBase::SetError ( ErrCode  e)
static

◆ SetError() [2/2]

void SbxBase::SetError ( ErrCode  e,
const OUString &  rMsg 
)
static

◆ SetFlag()

void SbxBase::SetFlag ( SbxFlagBits  n)
inline

◆ SetFlags()

void SbxBase::SetFlags ( SbxFlagBits  n)
inline

◆ SetModified()

void SbxBase::SetModified ( bool  b)
virtual

◆ Store()

std::pair< bool, sal_uInt32 > SbxBase::Store ( SvStream rStrm)

◆ StoreData()

virtual std::pair< bool, sal_uInt32 > SbxBase::StoreData ( SvStream ) const
privatepure virtual

Member Data Documentation

◆ nFlags

SbxFlagBits SbxBase::nFlags
protected

Definition at line 53 of file sbxcore.hxx.

Referenced by GetFlags(), IsReset(), IsSet(), Load(), operator=(), ResetFlag(), SbxBase(), SetFlag(), SetFlags(), and Store().


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