From 8ed122f34275f4b4afd1a84d3b5254e4a814ba43 Mon Sep 17 00:00:00 2001 From: Ravindra_Vidhate Date: Tue, 15 Jul 2014 17:51:38 +0530 Subject: fdo#81381 Objects:Icon is not editable after LO Export MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The Object's DrawAspect ="Icon" is not getting preserved. Open the exported file in MS-Office and double click on the object Icon. The object doesn't open the ppt associated with it. Because DrawAspect="Icon" property of the OLEObject is not getting prserved. The DrawAspect="Content" property is getting exported as "Content" is the hard code value. Change-Id: I2f1cbdbb4931657115f6a657b43a1cab3c5369a6 Reviewed-on: https://gerrit.libreoffice.org/10356 Reviewed-by: Luboš Luňák Tested-by: Luboš Luňák --- writerfilter/source/dmapper/OLEHandler.cxx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'writerfilter/source/dmapper') diff --git a/writerfilter/source/dmapper/OLEHandler.cxx b/writerfilter/source/dmapper/OLEHandler.cxx index a07b443d83d0..73b0c6dae8e5 100644 --- a/writerfilter/source/dmapper/OLEHandler.cxx +++ b/writerfilter/source/dmapper/OLEHandler.cxx @@ -198,11 +198,17 @@ void OLEHandler::saveInteropProperties( uno::Reference< text::XTextDocument > xT break; } + uno::Sequence< beans::PropertyValue > aGrabBagAttribute(2); + aGrabBagAttribute[0].Name = "ProgID"; + aGrabBagAttribute[0].Value = uno::Any( m_sProgId ); + aGrabBagAttribute[1].Name = "DrawAspect"; + aGrabBagAttribute[1].Value = uno::Any( m_sDrawAspect ); + // save ProgID of current object sal_Int32 length = objectsList.getLength(); objectsList.realloc( length + 1 ); objectsList[length].Name = sObjectName; - objectsList[length].Value = uno::Any( m_sProgId ); + objectsList[length].Value = uno::Any( aGrabBagAttribute ); // put objects list back into the grab bag if( i == nBagLength ) -- cgit v1.2.3