LibreOffice Module unotools (master) 1
Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | List of all members
utl::CloseableComponentImpl Class Reference
Inheritance diagram for utl::CloseableComponentImpl:
[legend]
Collaboration diagram for utl::CloseableComponentImpl:
[legend]

Public Member Functions

 CloseableComponentImpl (const Reference< XInterface > &_rxComponent)
 
void nf_closeComponent ()
 closes the component More...
 

Protected Member Functions

virtual ~CloseableComponentImpl () override
 
virtual void SAL_CALL queryClosing (const EventObject &Source, sal_Bool GetsOwnership) override
 
virtual void SAL_CALL notifyClosing (const EventObject &Source) override
 
virtual void SAL_CALL disposing (const css::lang::EventObject &Source) override
 

Private Member Functions

 CloseableComponentImpl (const CloseableComponentImpl &)=delete
 
CloseableComponentImploperator= (const CloseableComponentImpl &)=delete
 
void impl_nf_switchListening (bool _bListen)
 starts or stops being a CloseListener at the component More...
 

Private Attributes

Reference< XCloseable > m_xCloseable
 

Detailed Description

Definition at line 69 of file sharedunocomponent.cxx.

Constructor & Destructor Documentation

◆ CloseableComponentImpl() [1/2]

utl::CloseableComponentImpl::CloseableComponentImpl ( const CloseableComponentImpl )
privatedelete

◆ CloseableComponentImpl() [2/2]

utl::CloseableComponentImpl::CloseableComponentImpl ( const Reference< XInterface > &  _rxComponent)
explicit

Definition at line 107 of file sharedunocomponent.cxx.

References DBG_ASSERT, impl_nf_switchListening(), and m_xCloseable.

◆ ~CloseableComponentImpl()

utl::CloseableComponentImpl::~CloseableComponentImpl ( )
overrideprotectedvirtual

Definition at line 114 of file sharedunocomponent.cxx.

References nf_closeComponent().

Member Function Documentation

◆ disposing()

void SAL_CALL utl::CloseableComponentImpl::disposing ( const css::lang::EventObject &  Source)
overrideprotectedvirtual

Definition at line 179 of file sharedunocomponent.cxx.

References DBG_ASSERT, m_xCloseable, and Source.

◆ impl_nf_switchListening()

void utl::CloseableComponentImpl::impl_nf_switchListening ( bool  _bListen)
private

starts or stops being a CloseListener at the component

Only to be called upon construction of the instance, or when the component is to be closed.

@nofail

Definition at line 143 of file sharedunocomponent.cxx.

References Exception, m_xCloseable, and TOOLS_WARN_EXCEPTION.

Referenced by CloseableComponentImpl(), and nf_closeComponent().

◆ nf_closeComponent()

void utl::CloseableComponentImpl::nf_closeComponent ( )

closes the component

@nofail

Definition at line 119 of file sharedunocomponent.cxx.

References Exception, impl_nf_switchListening(), m_xCloseable, and TOOLS_WARN_EXCEPTION.

Referenced by ~CloseableComponentImpl().

◆ notifyClosing()

void SAL_CALL utl::CloseableComponentImpl::notifyClosing ( const EventObject &  Source)
overrideprotectedvirtual

Definition at line 169 of file sharedunocomponent.cxx.

References DBG_ASSERT, m_xCloseable, and Source.

◆ operator=()

CloseableComponentImpl & utl::CloseableComponentImpl::operator= ( const CloseableComponentImpl )
privatedelete

◆ queryClosing()

void SAL_CALL utl::CloseableComponentImpl::queryClosing ( const EventObject &  Source,
sal_Bool  GetsOwnership 
)
overrideprotectedvirtual

Definition at line 161 of file sharedunocomponent.cxx.

References DBG_ASSERT, m_xCloseable, and Source.

Member Data Documentation

◆ m_xCloseable

Reference< XCloseable > utl::CloseableComponentImpl::m_xCloseable
private

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