diff options
author | Tomaž Vajngerl <tomaz.vajngerl@collabora.com> | 2014-02-27 17:31:21 +0100 |
---|---|---|
committer | Tomaž Vajngerl <tomaz.vajngerl@collabora.com> | 2014-02-27 17:35:03 +0100 |
commit | cdd3fb6df0818d94303681392a1b2162097438cc (patch) | |
tree | 8d6026f479bd987c77c7453324c50e3f1be5c356 /writerfilter | |
parent | oox: add "styleSet" to token list (diff) | |
download | core-cdd3fb6df0818d94303681392a1b2162097438cc.tar.gz core-cdd3fb6df0818d94303681392a1b2162097438cc.zip |
writerfilter: put w14:stylisticSets & w14:cntxtAlts into GrabBag
Change-Id: Ic5b7bf51a073c4434cd09ae42fecdad25f904d26
Diffstat (limited to 'writerfilter')
-rw-r--r-- | writerfilter/source/dmapper/TextEffectsHandler.cxx | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/writerfilter/source/dmapper/TextEffectsHandler.cxx b/writerfilter/source/dmapper/TextEffectsHandler.cxx index 067502ed8524..d026de21dc60 100644 --- a/writerfilter/source/dmapper/TextEffectsHandler.cxx +++ b/writerfilter/source/dmapper/TextEffectsHandler.cxx @@ -150,6 +150,7 @@ OUString getNameForElementId(sal_uInt32 aId) aIdMap[NS_ooxml::LN_CT_Props3D_bevelB] = "bevelB"; aIdMap[NS_ooxml::LN_CT_Props3D_extrusionClr] = "extrusionClr"; aIdMap[NS_ooxml::LN_CT_Props3D_contourClr] = "contourClr"; + aIdMap[NS_ooxml::LN_CT_StylisticSets_styleSet] = "styleSet"; } return aIdMap[aId]; } @@ -542,8 +543,15 @@ void TextEffectsHandler::convertElementIdToPropertyId(sal_Int32 aElementId) case NS_ooxml::LN_numSpacing_numSpacing: maPropertyId = PROP_CHAR_NUMSPACING_TEXT_EFFECT; maElementName = "numSpacing"; + break; case NS_ooxml::LN_stylisticSets_stylisticSets: + maPropertyId = PROP_CHAR_STYLISTICSETS_TEXT_EFFECT; + maElementName = "stylisticSets"; + break; case NS_ooxml::LN_cntxtAlts_cntxtAlts: + maPropertyId = PROP_CHAR_CNTXTALTS_TEXT_EFFECT; + maElementName = "cntxtAlts"; + break; default: break; } @@ -775,6 +783,16 @@ void TextEffectsHandler::lcl_attribute(Id aName, Value& aValue) mpGrabBagStack->appendElement("val", aAny); } break; + case NS_ooxml::LN_CT_StyleSet_id: + mpGrabBagStack->addInt32("id", sal_Int32(aValue.getInt())); + break; + case NS_ooxml::LN_CT_StyleSet_val: + case NS_ooxml::LN_CT_OnOff_val: + { + uno::Any aAny = makeAny(getOnOffString(sal_Int32(aValue.getInt()))); + mpGrabBagStack->appendElement("val", aAny); + } + break; default: break; } |