LibreOffice Module sfx2 (master) 1
Public Member Functions | Private Attributes | List of all members
sfx::intern::ViewCreationGuard Class Reference

a class which, in its dtor, cleans up various objects (well, at the moment only the frame) collected during the creation of a document view, unless the creation was successful. More...

Collaboration diagram for sfx::intern::ViewCreationGuard:
[legend]

Public Member Functions

 ViewCreationGuard ()
 
 ~ViewCreationGuard ()
 
void takeFrameOwnership (SfxFrame *i_pFrame)
 
void releaseAll ()
 

Private Attributes

bool m_bSuccess
 
SfxFrameWeakRef m_aWeakFrame
 

Detailed Description

a class which, in its dtor, cleans up various objects (well, at the moment only the frame) collected during the creation of a document view, unless the creation was successful.

Definition at line 4183 of file sfxbasemodel.cxx.

Constructor & Destructor Documentation

◆ ViewCreationGuard()

sfx::intern::ViewCreationGuard::ViewCreationGuard ( )
inline

Definition at line 4186 of file sfxbasemodel.cxx.

◆ ~ViewCreationGuard()

sfx::intern::ViewCreationGuard::~ViewCreationGuard ( )
inline

Definition at line 4191 of file sfxbasemodel.cxx.

References m_aWeakFrame, and m_bSuccess.

Member Function Documentation

◆ releaseAll()

void sfx::intern::ViewCreationGuard::releaseAll ( )
inline

Definition at line 4207 of file sfxbasemodel.cxx.

References m_bSuccess.

Referenced by SfxBaseModel::createViewController().

◆ takeFrameOwnership()

void sfx::intern::ViewCreationGuard::takeFrameOwnership ( SfxFrame i_pFrame)
inline

Definition at line 4200 of file sfxbasemodel.cxx.

References m_aWeakFrame.

Referenced by SfxBaseModel::FindOrCreateViewFrame_Impl().

Member Data Documentation

◆ m_aWeakFrame

SfxFrameWeakRef sfx::intern::ViewCreationGuard::m_aWeakFrame
private

Definition at line 4214 of file sfxbasemodel.cxx.

Referenced by takeFrameOwnership(), and ~ViewCreationGuard().

◆ m_bSuccess

bool sfx::intern::ViewCreationGuard::m_bSuccess
private

Definition at line 4213 of file sfxbasemodel.cxx.

Referenced by releaseAll(), and ~ViewCreationGuard().


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