LibreOffice Module sot (master) 1
Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | List of all members
SotObject Class Reference

#include <object.hxx>

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

Public Member Functions

 SotObject ()
 
sal_uInt16 GetOwnerLockCount () const
 
void OwnerLock (bool bLock)
 When the OwnerLock is decremented to zero, the DoClose method is called. More...
 
bool DoClose ()
 
bool IsInClose () const
 
- 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 ~SotObject () override
 
virtual bool Close ()
 
- Protected Member Functions inherited from SvRefBase
virtual ~SvRefBase () COVERITY_NOEXCEPT_FALSE
 

Private Member Functions

SotObjectoperator= (const SotObject &)=delete
 
 SotObject (const SotObject &)=delete
 

Private Attributes

sal_uInt16 nOwnerLockCount
 
bool bInClose
 

Detailed Description

Definition at line 28 of file object.hxx.

Constructor & Destructor Documentation

◆ ~SotObject()

SotObject::~SotObject ( )
overrideprotectedvirtualdefault

References Close.

◆ SotObject() [1/2]

SotObject::SotObject ( )

Definition at line 22 of file object.cxx.

◆ SotObject() [2/2]

SotObject::SotObject ( const SotObject )
privatedelete

Member Function Documentation

◆ Close()

bool SotObject::Close ( )
protectedvirtual

Definition at line 64 of file object.cxx.

Referenced by DoClose().

◆ DoClose()

bool SotObject::DoClose ( )

Definition at line 51 of file object.cxx.

References bInClose, and Close().

Referenced by OwnerLock().

◆ GetOwnerLockCount()

sal_uInt16 SotObject::GetOwnerLockCount ( ) const
inline

Definition at line 40 of file object.hxx.

◆ IsInClose()

bool SotObject::IsInClose ( ) const
inline

Definition at line 44 of file object.hxx.

◆ operator=()

SotObject & SotObject::operator= ( const SotObject )
privatedelete

◆ OwnerLock()

void SotObject::OwnerLock ( bool  bLock)

When the OwnerLock is decremented to zero, the DoClose method is called.

This happens independently of the lock or RefCount. If the OwnerLock counter != zero, no DoClose is called by <SotObject::FuzzyLock>.

bLock - true, lock. false, unlock.

Definition at line 36 of file object.cxx.

References SvRefBase::AddFirstRef(), DoClose(), nOwnerLockCount, and SvRefBase::ReleaseRef().

Member Data Documentation

◆ bInClose

bool SotObject::bInClose
private

Definition at line 31 of file object.hxx.

Referenced by DoClose().

◆ nOwnerLockCount

sal_uInt16 SotObject::nOwnerLockCount
private

Definition at line 30 of file object.hxx.

Referenced by OwnerLock().


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