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

base class for sub components of an SfxBaseModel, which share their ref count and lifetime with the SfxBaseModel More...

#include <docundomanager.hxx>

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

Public Member Functions

void MethodEntryCheck ()
 checks whether the instance is alive, i.e. More...
 

Protected Member Functions

 SfxModelSubComponent (SfxBaseModel &i_model)
 
virtual ~SfxModelSubComponent ()
 
void acquireModel ()
 
void releaseModel ()
 
const SfxBaseModelgetBaseModel () const
 
SfxBaseModelgetBaseModel ()
 

Private Attributes

SfxBaseModelm_rModel
 

Detailed Description

base class for sub components of an SfxBaseModel, which share their ref count and lifetime with the SfxBaseModel

Definition at line 34 of file docundomanager.hxx.

Constructor & Destructor Documentation

◆ SfxModelSubComponent()

SfxModelSubComponent::SfxModelSubComponent ( SfxBaseModel i_model)
inlineprotected

Definition at line 45 of file docundomanager.hxx.

◆ ~SfxModelSubComponent()

SfxModelSubComponent::~SfxModelSubComponent ( )
protectedvirtual

Definition at line 4607 of file sfxbasemodel.cxx.

Member Function Documentation

◆ acquireModel()

void SfxModelSubComponent::acquireModel ( )
inlineprotected

Definition at line 51 of file docundomanager.hxx.

References SfxBaseModel::acquire(), and m_rModel.

Referenced by sfx2::DocumentUndoManager::acquire().

◆ getBaseModel() [1/2]

SfxBaseModel & SfxModelSubComponent::getBaseModel ( )
inlineprotected

Definition at line 56 of file docundomanager.hxx.

References m_rModel.

◆ getBaseModel() [2/2]

const SfxBaseModel & SfxModelSubComponent::getBaseModel ( ) const
inlineprotected

◆ MethodEntryCheck()

void SfxModelSubComponent::MethodEntryCheck ( )
inline

checks whether the instance is alive, i.e.

properly initialized, and not yet disposed

Definition at line 39 of file docundomanager.hxx.

References m_rModel, and SfxBaseModel::MethodEntryCheck().

Referenced by SfxModelGuard::SfxModelGuard().

◆ releaseModel()

void SfxModelSubComponent::releaseModel ( )
inlineprotected

Definition at line 52 of file docundomanager.hxx.

References m_rModel, and SfxBaseModel::release().

Referenced by sfx2::DocumentUndoManager::release().

Member Data Documentation

◆ m_rModel

SfxBaseModel& SfxModelSubComponent::m_rModel
private

Definition at line 59 of file docundomanager.hxx.

Referenced by acquireModel(), getBaseModel(), MethodEntryCheck(), and releaseModel().


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