summaryrefslogtreecommitdiff
path: root/oox/source
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2013-09-06 12:29:46 +0200
committerMiklos Vajna <vmiklos@collabora.co.uk>2013-09-06 18:39:00 +0200
commit870a2394a87c77740daf41e1aa81b130113f8e00 (patch)
treeba8bfc3c78d02aef4a618f90182af59966fd2ec2 /oox/source
parent3847de4b724f4f435bb68bceef9a5e187c3f363c (diff)
bnc#779642 VML import: handle drawinglayer rectangle inset
Change-Id: If8b064ca9a52bb02ff41f07e00142702a29df818
Diffstat (limited to 'oox/source')
-rw-r--r--oox/source/vml/vmlshape.cxx9
1 files changed, 9 insertions, 0 deletions
diff --git a/oox/source/vml/vmlshape.cxx b/oox/source/vml/vmlshape.cxx
index 186bd509f537..26cc704d37ef 100644
--- a/oox/source/vml/vmlshape.cxx
+++ b/oox/source/vml/vmlshape.cxx
@@ -594,7 +594,16 @@ Reference< XShape > SimpleShape::implConvertAndInsert( const Reference< XShapes
PropertySet(xShape).setAnyProperty(PROP_TextVerticalAdjust, makeAny(eTextVerticalAdjust));
if (getTextBox())
+ {
getTextBox()->convert(xShape);
+ if (getTextBox()->borderDistanceSet)
+ {
+ PropertySet(xShape).setAnyProperty(PROP_TextLeftDistance, makeAny(sal_Int32(getTextBox()->borderDistanceLeft)));
+ PropertySet(xShape).setAnyProperty(PROP_TextUpperDistance, makeAny(sal_Int32(getTextBox()->borderDistanceTop)));
+ PropertySet(xShape).setAnyProperty(PROP_TextRightDistance, makeAny(sal_Int32(getTextBox()->borderDistanceRight)));
+ PropertySet(xShape).setAnyProperty(PROP_TextLowerDistance, makeAny(sal_Int32(getTextBox()->borderDistanceBottom)));
+ }
+ }
}
// Import Legacy Fragments (if any)