diff options
author | Michael Stahl <mstahl@redhat.com> | 2015-04-29 15:49:46 +0200 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-04-30 08:08:54 +0000 |
commit | e8777783db81279a6b0e9cc7b308f10719bd8a7b (patch) | |
tree | 406311c43502f1d4f46313abd1dbe1d4d24359ac /include | |
parent | 121a2c44c90004300b41bee1492c614dc0fe57aa (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.
(cherry picked from commit 7368b6ca3f61e750765f42e97d0a00e10fcac516)
Conflicts:
unotools/source/misc/closeveto.cxx
Change-Id: Ied427b67274d925c911e516c0a50a4c0b2b18db9
Reviewed-on: https://gerrit.libreoffice.org/15567
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/unotools/closeveto.hxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/unotools/closeveto.hxx b/include/unotools/closeveto.hxx index 9beb0b55361e..9ed27a754f76 100644 --- a/include/unotools/closeveto.hxx +++ b/include/unotools/closeveto.hxx @@ -41,7 +41,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: |