LibreOffice Module unotools (master) 1
Public Member Functions | Private Attributes | List of all members
utl::CloseVeto Class Reference

will add a XCloseListener to a given component, and veto its closing as long as the CloseVeto instance is alive. More...

#include <closeveto.hxx>

Public Member Functions

 CloseVeto (const css::uno::Reference< css::uno::XInterface > &i_closeable, bool bHasOwnership=false)
 
 ~CloseVeto ()
 

Private Attributes

std::unique_ptr< CloseVeto_Datam_xData
 

Detailed Description

will add a XCloseListener to a given component, and veto its closing as long as the CloseVeto instance is alive.

If closing has been requested and vetoed while the CloseVeto instance is alive, and the ownership went to the CloseVeto instance, then it will close the component in its dtor.

Definition at line 40 of file closeveto.hxx.

Constructor & Destructor Documentation

◆ CloseVeto()

utl::CloseVeto::CloseVeto ( const css::uno::Reference< css::uno::XInterface > &  i_closeable,
bool  bHasOwnership = false 
)

Definition at line 133 of file closeveto.cxx.

References m_xData.

◆ ~CloseVeto()

utl::CloseVeto::~CloseVeto ( )

Definition at line 140 of file closeveto.cxx.

References m_xData.

Member Data Documentation

◆ m_xData

std::unique_ptr< CloseVeto_Data > utl::CloseVeto::m_xData
private

Definition at line 48 of file closeveto.hxx.

Referenced by CloseVeto(), and ~CloseVeto().


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