From 809154904fe66441ada6985b153b4c1b20f3eb8f Mon Sep 17 00:00:00 2001 From: Jan Holesovsky Date: Mon, 8 Feb 2016 20:09:37 +0100 Subject: lok: Interaction handler for saveAs() too. Change-Id: I3f0365e05685c21987da194e24a1165c7a3f8b5c --- desktop/source/lib/init.cxx | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/desktop/source/lib/init.cxx b/desktop/source/lib/init.cxx index ca9d3f37b301..5d5fe77985cd 100644 --- a/desktop/source/lib/init.cxx +++ b/desktop/source/lib/init.cxx @@ -663,6 +663,13 @@ static int doc_saveAs(LibreOfficeKitDocument* pThis, const char* sUrl, const cha aSaveMediaDescriptor["FilterName"] <<= aFilterName; aSaveMediaDescriptor[MediaDescriptor::PROP_FILTEROPTIONS()] <<= aFilterOptions; + // add interaction handler too + rtl::Reference const pInteraction( + new LOKInteractionHandler(::comphelper::getProcessComponentContext(), "saveas", gImpl, pDocument)); + uno::Reference const xInteraction(pInteraction.get()); + + aSaveMediaDescriptor[MediaDescriptor::PROP_INTERACTIONHANDLER()] <<= xInteraction; + uno::Reference xStorable(pDocument->mxComponent, uno::UNO_QUERY_THROW); xStorable->storeAsURL(aURL, aSaveMediaDescriptor.getAsConstPropertyValueList()); -- cgit