summaryrefslogtreecommitdiff
path: root/include/unotools/closeveto.hxx
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2015-04-29 15:49:46 +0200
committerMichael Stahl <mstahl@redhat.com>2015-04-29 16:13:10 +0200
commit7368b6ca3f61e750765f42e97d0a00e10fcac516 (patch)
treeae6b24d1f38df9bab905289b557321e16c7e45a3 /include/unotools/closeveto.hxx
parent7259901b25974c00c8f0ce8acb91096858cfff53 (diff)
rhbz#1213173: connectivity: Calc driver: prevent document being disposed
... by adding a XCloseListener that vetoes any attempt to close it. The Calc document can be opened by the user in the UI and closed again. Change-Id: Ied427b67274d925c911e516c0a50a4c0b2b18db9
Diffstat (limited to 'include/unotools/closeveto.hxx')
-rw-r--r--include/unotools/closeveto.hxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/unotools/closeveto.hxx b/include/unotools/closeveto.hxx
index 1079c3597341..fe5521618a71 100644
--- a/include/unotools/closeveto.hxx
+++ b/include/unotools/closeveto.hxx
@@ -38,7 +38,8 @@ namespace utl
class UNOTOOLS_DLLPUBLIC CloseVeto
{
public:
- CloseVeto( const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& i_closeable );
+ CloseVeto( const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& i_closeable,
+ bool bHasOwnership = false);
~CloseVeto();
private: