LibreOffice Module vcl (master) 1
|
Similar to DeleteOnDeinit, the DeleteUnoReferenceOnDeinit template class makes sure that a static UNO object is disposed and released at the right time. More...
#include <lazydelete.hxx>
Public Member Functions | |
DeleteUnoReferenceOnDeinit (css::uno::Reference< I > _xI) | |
css::uno::Reference< I > | get () |
void | set (const css::uno::Reference< I > &r_xNew) |
Public Member Functions inherited from vcl::DeleteOnDeinitBase | |
virtual | ~DeleteOnDeinitBase () |
Private Member Functions | |
virtual void | doCleanup () override |
Private Attributes | |
css::uno::Reference< I > | m_xI |
Additional Inherited Members | |
Static Public Member Functions inherited from vcl::DeleteOnDeinitBase | |
static void SAL_DLLPRIVATE | ImplDeleteOnDeInit () |
virtual void | doCleanup ()=0 |
Static Protected Member Functions inherited from vcl::DeleteOnDeinitBase | |
static void | addDeinitContainer (DeleteOnDeinitBase *i_pContainer) |
Similar to DeleteOnDeinit, the DeleteUnoReferenceOnDeinit template class makes sure that a static UNO object is disposed and released at the right time.
Use like static DeleteUnoReferenceOnDeinit<lang::XMultiServiceFactory> xStaticFactory (<create factory object>); Reference<lang::XMultiServiceFactory> xFactory (xStaticFactory.get()); if (xFactory.is()) <do something with xFactory>
Definition at line 113 of file lazydelete.hxx.
|
inline |
Definition at line 118 of file lazydelete.hxx.
References vcl::DeleteOnDeinitBase::addDeinitContainer().
|
inlineoverrideprivatevirtual |
Implements vcl::DeleteOnDeinitBase.
Definition at line 116 of file lazydelete.hxx.
References vcl::DeleteUnoReferenceOnDeinit< I >::set().
|
inline |
Definition at line 121 of file lazydelete.hxx.
References vcl::DeleteUnoReferenceOnDeinit< I >::m_xI.
Referenced by OutputDevice::ImplGetCanvas(), and vcl::WindowOutputDevice::ImplGetCanvas().
|
inline |
Definition at line 123 of file lazydelete.hxx.
References vcl::DeleteUnoReferenceOnDeinit< I >::m_xI.
Referenced by vcl::DeleteUnoReferenceOnDeinit< I >::doCleanup().
|
private |
Definition at line 115 of file lazydelete.hxx.
Referenced by vcl::DeleteUnoReferenceOnDeinit< I >::get(), and vcl::DeleteUnoReferenceOnDeinit< I >::set().