summaryrefslogtreecommitdiff
path: root/writerfilter
diff options
context:
space:
mode:
authorRavindra_Vidhate <ravindra.vidhate@synerzip.com>2014-07-15 17:51:38 +0530
committerLuboš Luňák <l.lunak@collabora.com>2014-07-21 14:59:50 +0000
commit8ed122f34275f4b4afd1a84d3b5254e4a814ba43 (patch)
tree6106a67e4a87cf61798bf70f76c3873ccf35e1cf /writerfilter
parent6831ae4d0e0b69e4f06c2987c3be748c8f35c9d8 (diff)
fdo#81381 Objects:Icon is not editable after LO Export
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 <l.lunak@collabora.com> Tested-by: Luboš Luňák <l.lunak@collabora.com>
Diffstat (limited to 'writerfilter')
-rw-r--r--writerfilter/source/dmapper/OLEHandler.cxx8
1 files changed, 7 insertions, 1 deletions
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 )