From 74844277cc2194c9e43f5bd7a6f78a9603da32f3 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Tue, 13 Sep 2016 15:26:41 +0100 Subject: disable generation of ole previews in ODF format until after load MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit so the user update links dialog can control their generation SdrEmbedObjectLink becomes exposed to calc so it can detect if the link dialog needs to be used to update ole links. Change-Id: Id1dd7ea17342140eab9307d546528747e3a98090 Reviewed-on: https://gerrit.libreoffice.org/28879 Reviewed-by: Caolán McNamara Tested-by: Caolán McNamara --- sd/source/ui/docshell/docshel4.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'sd/source/ui/docshell/docshel4.cxx') diff --git a/sd/source/ui/docshell/docshel4.cxx b/sd/source/ui/docshell/docshel4.cxx index 71746fdaf002..3668a9588d0e 100644 --- a/sd/source/ui/docshell/docshel4.cxx +++ b/sd/source/ui/docshell/docshel4.cxx @@ -293,8 +293,10 @@ bool DrawDocShell::Load( SfxMedium& rMedium ) } bRet = SfxObjectShell::Load( rMedium ); - if( bRet ) + if (bRet) { + comphelper::EmbeddedObjectContainer& rEmbeddedObjectContainer = getEmbeddedObjectContainer(); + rEmbeddedObjectContainer.setUserAllowsLinkUpdate(false); bRet = SdXMLFilter( rMedium, *this, SDXMLMODE_Normal, SotStorage::GetVersion( rMedium.GetStorage() ) ).Import( nError ); } -- cgit v1.2.3