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:10:17 +0100 |
commit | 0bacc1213e51adf2aa5f37cba82176ec34ac4985 (patch) | |
tree | 88dcf8b71a506de64701100818c3a707956bf6ee | |
parent | 949664deadc04829087af1f6cf4d88b9a2d34114 (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 15df86a0aa14..bd60e205aa9b 100644 --- a/desktop/source/lib/init.cxx +++ b/desktop/source/lib/init.cxx @@ -679,6 +679,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()); |