LibreOffice Module unotools (master) 1
|
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_Data > | m_xData |
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.
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.
utl::CloseVeto::~CloseVeto | ( | ) |
Definition at line 140 of file closeveto.cxx.
References m_xData.
|
private |
Definition at line 48 of file closeveto.hxx.
Referenced by CloseVeto(), and ~CloseVeto().