LibreOffice Module sw (master) 1
Public Member Functions | Private Attributes | List of all members
SwDeletionChecker Class Reference

helper class to check if a frame has been deleted during an operation WARNING! This should only be used as a last and desperate means to make the code robust. More...

#include <frmtool.hxx>

Collaboration diagram for SwDeletionChecker:
[legend]

Public Member Functions

 SwDeletionChecker (const SwFrame *pFrame)
 
bool HasBeenDeleted () const
 return true if mpFrame != 0 and mpFrame is not client of pRegIn false otherwise More...
 

Private Attributes

const SwFramempFrame
 
const sw::BroadcastingModify * mpRegIn
 

Detailed Description

helper class to check if a frame has been deleted during an operation WARNING! This should only be used as a last and desperate means to make the code robust.

Definition at line 607 of file frmtool.hxx.

Constructor & Destructor Documentation

◆ SwDeletionChecker()

SwDeletionChecker::SwDeletionChecker ( const SwFrame pFrame)

Definition at line 4023 of file frmtool.cxx.

Member Function Documentation

◆ HasBeenDeleted()

bool SwDeletionChecker::HasBeenDeleted ( ) const

return true if mpFrame != 0 and mpFrame is not client of pRegIn false otherwise

Can be used to check if a frame has been deleted.

Definition at line 4035 of file frmtool.cxx.

References SwIterator< TElementType, TSource, eMode >::First(), mpFrame, mpRegIn, and SwIterator< TElementType, TSource, eMode >::Next().

Referenced by GetTableSel(), and SwDoc::GetTabRows().

Member Data Documentation

◆ mpFrame

const SwFrame* SwDeletionChecker::mpFrame
private

Definition at line 610 of file frmtool.hxx.

Referenced by HasBeenDeleted().

◆ mpRegIn

const sw::BroadcastingModify* SwDeletionChecker::mpRegIn
private

Definition at line 611 of file frmtool.hxx.

Referenced by HasBeenDeleted().


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