summaryrefslogtreecommitdiff
path: root/desktop
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2016-02-08 21:44:54 +0100
committerMichael Stahl <mstahl@redhat.com>2016-02-08 23:15:34 +0100
commite07ffae5046e9c91ef96026435cab84c3bcb4534 (patch)
tree23547c6e40a052c2a721dc9bb1bf585819d063e9 /desktop
parent01aa78cf08e58d8cb9c2f038915272f504db2205 (diff)
Revert "lok: Interaction handler for saveAs() too."
This reverts commit 809154904fe66441ada6985b153b4c1b20f3eb8f. Revert "lok: Take over the identity of the document when performing saveAs()." This reverts commit bcc940956c4689888297c7bbe8d3744becc2fe9e. The CppunitTest_desktop_lib crashes due to a null gImpl and i can't figure out how to call lok_init so it actually works.
Diffstat (limited to 'desktop')
-rw-r--r--desktop/source/lib/init.cxx9
1 files changed, 1 insertions, 8 deletions
diff --git a/desktop/source/lib/init.cxx b/desktop/source/lib/init.cxx
index 5d5fe77985cd..eaac9927d06f 100644
--- a/desktop/source/lib/init.cxx
+++ b/desktop/source/lib/init.cxx
@@ -663,15 +663,8 @@ 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());
+ xStorable->storeToURL(aURL, aSaveMediaDescriptor.getAsConstPropertyValueList());
return true;
}