diff options
author | Rohit Deshmukh <rohit.deshmukh@synerzip.com> | 2014-07-18 12:27:25 +0530 |
---|---|---|
committer | Luboš Luňák <l.lunak@collabora.com> | 2014-07-21 16:29:06 +0200 |
commit | acd2c90978052723475a41144dd5d92090fbf6b4 (patch) | |
tree | 7fb411d4a0f8d3f230f7fff9b010971cca79d5f8 /oox/source/shape | |
parent | c73cb50cdd7dffe809d3e66e5acdfab2bd521f62 (diff) |
fdo#80897: Preservation of text warp properties.
- Generic fix for all warp properties
Change-Id: I77c37759aa49706fc3cd1a80770a85face53f0a2
Diffstat (limited to 'oox/source/shape')
-rw-r--r-- | oox/source/shape/WpsContext.cxx | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/oox/source/shape/WpsContext.cxx b/oox/source/shape/WpsContext.cxx index d79d1c208709..89ed32059b4a 100644 --- a/oox/source/shape/WpsContext.cxx +++ b/oox/source/shape/WpsContext.cxx @@ -127,6 +127,17 @@ oox::core::ContextHandlerRef WpsContext::onCreateContext(sal_Int32 nElementToken } } break; + case XML_prstTxWarp: + if( rAttribs.hasAttribute( XML_prst ) ) + { + uno::Reference<beans::XPropertySet> xPropertySet(mxShape, uno::UNO_QUERY); + oox::OptValue<OUString> presetShapeName = rAttribs.getString( XML_prst ); + OUString preset = presetShapeName.get(); + comphelper::SequenceAsHashMap aCustomShapeGeometry(xPropertySet->getPropertyValue("CustomShapeGeometry")); + aCustomShapeGeometry["PresetTextWarp"] = uno::makeAny(preset); + xPropertySet->setPropertyValue("CustomShapeGeometry", uno::makeAny(aCustomShapeGeometry.getAsConstPropertyValueList())); + } + break; case XML_txbx: { mpShape->getCustomShapeProperties()->setShapeTypeOverride(true); |