summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/doc/guisaveas.cxx7
-rw-r--r--sfx2/source/doc/sfxbasemodel.cxx6
2 files changed, 13 insertions, 0 deletions
diff --git a/sfx2/source/doc/guisaveas.cxx b/sfx2/source/doc/guisaveas.cxx
index dc32d10c103b..cdda49e10b72 100644
--- a/sfx2/source/doc/guisaveas.cxx
+++ b/sfx2/source/doc/guisaveas.cxx
@@ -674,12 +674,19 @@ IMPL_LINK( ModelData_Impl, OptionsDialogClosedHdl, css::ui::dialogs::DialogClose
{
if (pEvt->DialogResult == RET_OK && m_xFilterProperties)
{
+ if ( comphelper::LibreOfficeKit::isActive() && SfxViewShell::Current() )
+ SfxViewShell::Current()->libreOfficeKitViewCallback( LOK_CALLBACK_EXPORT_FILE, "PENDING" );
+
const uno::Sequence< beans::PropertyValue > aPropsFromDialog = m_xFilterProperties->getPropertyValues();
for ( const auto& rProp : aPropsFromDialog )
GetMediaDescr()[rProp.Name] = rProp.Value;
m_pOwner->CallFinishGUIStoreModel();
}
+ else if ( comphelper::LibreOfficeKit::isActive() && SfxViewShell::Current() )
+ {
+ SfxViewShell::Current()->libreOfficeKitViewCallback( LOK_CALLBACK_EXPORT_FILE, "ABORT" );
+ }
}
sal_Int8 ModelData_Impl::CheckSaveAcceptable( sal_Int8 nCurStatus )
diff --git a/sfx2/source/doc/sfxbasemodel.cxx b/sfx2/source/doc/sfxbasemodel.cxx
index bcdc9f1be845..dcc559fc4f87 100644
--- a/sfx2/source/doc/sfxbasemodel.cxx
+++ b/sfx2/source/doc/sfxbasemodel.cxx
@@ -63,6 +63,7 @@
#include <comphelper/string.hxx>
#include <cppuhelper/implbase.hxx>
+#include <comphelper/lok.hxx>
#include <comphelper/multicontainer2.hxx>
#include <cppuhelper/exc_hlp.hxx>
#include <comphelper/processfactory.hxx>
@@ -132,6 +133,8 @@
#include <vcl/threadex.hxx>
#include <unotools/mediadescriptor.hxx>
+#include <LibreOfficeKit/LibreOfficeKitEnums.h>
+
// namespaces
@@ -3208,6 +3211,9 @@ void SfxBaseModel::impl_store( const OUString& sURL
SfxGetpApp()->NotifyEvent( SfxEventHint( bSaveTo ? SfxEventHintId::SaveToDocFailed : SfxEventHintId::SaveAsDocFailed, GlobalEventConfig::GetEventName( bSaveTo ? GlobalEventId::SAVETODOCFAILED : GlobalEventId::SAVEASDOCFAILED),
m_pData->m_pObjectShell.get() ) );
+ if ( comphelper::LibreOfficeKit::isActive() && SfxViewShell::Current() )
+ SfxViewShell::Current()->libreOfficeKitViewCallback( LOK_CALLBACK_EXPORT_FILE, "ERROR" );
+
std::stringstream aErrCode;
aErrCode << nErrCode;
throw task::ErrorCodeIOException(