diff options
author | Jan Holesovsky <kendy@collabora.com> | 2016-02-08 20:09:37 +0100 |
---|---|---|
committer | Jan Holesovsky <kendy@collabora.com> | 2016-02-08 20:11:03 +0100 |
commit | 809154904fe66441ada6985b153b4c1b20f3eb8f (patch) | |
tree | 143a5a05d9414990e9af25b354555450741d82f0 | |
parent | bcc940956c4689888297c7bbe8d3744becc2fe9e (diff) |
lok: Interaction handler for saveAs() too.
Change-Id: I3f0365e05685c21987da194e24a1165c7a3f8b5c
-rw-r--r-- | desktop/source/lib/init.cxx | 7 |
1 files changed, 7 insertions, 0 deletions
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<LOKInteractionHandler> const pInteraction( + new LOKInteractionHandler(::comphelper::getProcessComponentContext(), "saveas", gImpl, pDocument)); + uno::Reference<task::XInteractionHandler2> const xInteraction(pInteraction.get()); + + aSaveMediaDescriptor[MediaDescriptor::PROP_INTERACTIONHANDLER()] <<= xInteraction; + uno::Reference<frame::XStorable> xStorable(pDocument->mxComponent, uno::UNO_QUERY_THROW); xStorable->storeAsURL(aURL, aSaveMediaDescriptor.getAsConstPropertyValueList()); |