13#include <oox/token/namespaces.hxx>
22OUString
const & lclGetNameForElementId(sal_uInt32 aId)
24 static std::map<sal_uInt32, OUString>
const aIdMap
26 { OOX_TOKEN(w14, srgbClr) ,
"srgbClr" },
27 { OOX_TOKEN(w14, schemeClr) ,
"schemeClr" },
28 { OOX_TOKEN(w14, tint) ,
"tint" },
29 { OOX_TOKEN(w14, shade) ,
"shade" },
30 { OOX_TOKEN(w14, alpha) ,
"alpha" },
31 { OOX_TOKEN(w14, hueMod) ,
"hueMod" },
32 { OOX_TOKEN(w14, sat) ,
"sat" },
33 { OOX_TOKEN(w14, satOff) ,
"satOff" },
34 { OOX_TOKEN(w14, satMod) ,
"satMod" },
35 { OOX_TOKEN(w14, lum) ,
"lum" },
36 { OOX_TOKEN(w14, lumOff) ,
"lumOff" },
37 { OOX_TOKEN(w14, lumMod) ,
"lumMod" },
38 { OOX_TOKEN(w14, noFill) ,
"noFill" },
39 { OOX_TOKEN(w14, solidFill) ,
"solidFill" },
40 { OOX_TOKEN(w14, gradFill) ,
"gradFill" },
41 { OOX_TOKEN(w14, gsLst) ,
"gsLst" },
42 { OOX_TOKEN(w14, gs) ,
"gs" },
43 { OOX_TOKEN(w14, pos) ,
"pos" },
44 { OOX_TOKEN(w14, lin) ,
"lin" },
45 { OOX_TOKEN(w14, path) ,
"path" },
46 { OOX_TOKEN(w14, fillToRect) ,
"fillToRect" },
47 { OOX_TOKEN(w14, prstDash) ,
"prstDash" },
48 { OOX_TOKEN(w14, round) ,
"round" },
49 { OOX_TOKEN(w14, bevel) ,
"bevel" },
50 { OOX_TOKEN(w14, miter) ,
"miter" },
51 { OOX_TOKEN(w14, camera) ,
"camera" },
52 { OOX_TOKEN(w14, lightRig) ,
"lightRig" },
53 { OOX_TOKEN(w14, rot) ,
"rot" },
54 { OOX_TOKEN(w14, bevelT) ,
"bevelT" },
55 { OOX_TOKEN(w14, bevelB) ,
"bevelB" },
56 { OOX_TOKEN(w14, extrusionClr) ,
"extrusionClr" },
57 { OOX_TOKEN(w14, contourClr) ,
"contourClr"} ,
58 { OOX_TOKEN(w14, styleSet) ,
"styleSet" },
60 { OOX_TOKEN(w14, glow) ,
"glow" },
61 { OOX_TOKEN(w14, shadow) ,
"shadow" },
62 { OOX_TOKEN(w14, reflection) ,
"reflection" },
63 { OOX_TOKEN(w14, textOutline) ,
"textOutline" },
64 { OOX_TOKEN(w14, textFill) ,
"textFill" },
65 { OOX_TOKEN(w14, scene3d) ,
"scene3d" },
66 { OOX_TOKEN(w14, props3d) ,
"props3d" },
67 { OOX_TOKEN(w14, ligatures) ,
"ligatures" },
68 { OOX_TOKEN(w14, numForm) ,
"numForm" },
69 { OOX_TOKEN(w14, numSpacing) ,
"numSpacing" },
70 { OOX_TOKEN(w14, stylisticSets),
"stylisticSets" },
71 { OOX_TOKEN(w14, cntxtAlts) ,
"cntxtAlts" },
74 return aIdMap.find(aId)->second;
77OUString
const & lclGetGrabBagName(sal_uInt32 aId)
79 static std::map<sal_uInt32, OUString>
const aGrabBagNameMap
81 { OOX_TOKEN(w14, glow) ,
"CharGlowTextEffect" },
82 { OOX_TOKEN(w14, shadow) ,
"CharShadowTextEffect" },
83 { OOX_TOKEN(w14, reflection) ,
"CharReflectionTextEffect" },
84 { OOX_TOKEN(w14, textOutline) ,
"CharTextOutlineTextEffect" },
85 { OOX_TOKEN(w14, textFill) ,
"CharTextFillTextEffect" },
86 { OOX_TOKEN(w14, scene3d) ,
"CharScene3DTextEffect" },
87 { OOX_TOKEN(w14, props3d) ,
"CharProps3DTextEffect" },
88 { OOX_TOKEN(w14, ligatures) ,
"CharLigaturesTextEffect" },
89 { OOX_TOKEN(w14, numForm) ,
"CharNumFormTextEffect" },
90 { OOX_TOKEN(w14, numSpacing) ,
"CharNumSpacingTextEffect" },
91 { OOX_TOKEN(w14, stylisticSets),
"CharStylisticSetsTextEffect" },
92 { OOX_TOKEN(w14, cntxtAlts) ,
"CharCntxtAltsTextEffect" },
95 return aGrabBagNameMap.find(aId)->second;
105 ContextHandler2Helper
const & rParent,
106 sal_Int32 aElementToken,
107 std::vector<PropertyValue>& rTextEffectsProperties)
109 , mrTextEffectsProperties(rTextEffectsProperties)
110 , mnCurrentElement(aElementToken)
131 case OOX_TOKEN(w14, glow):
136 case OOX_TOKEN(w14, srgbClr):
137 case OOX_TOKEN(w14, schemeClr):
138 case OOX_TOKEN(w14, tint):
139 case OOX_TOKEN(w14, shade):
140 case OOX_TOKEN(w14,
alpha):
141 case OOX_TOKEN(w14, hueMod):
142 case OOX_TOKEN(w14, sat):
143 case OOX_TOKEN(w14, satOff):
144 case OOX_TOKEN(w14, satMod):
145 case OOX_TOKEN(w14, lum):
146 case OOX_TOKEN(w14, lumOff):
147 case OOX_TOKEN(w14, lumMod):
152 case OOX_TOKEN(w14, shadow):
164 case OOX_TOKEN(w14, reflection):
181 case OOX_TOKEN(w14, textOutline):
189 case OOX_TOKEN(w14, prstDash):
194 case OOX_TOKEN(w14, gs):
199 case OOX_TOKEN(w14, lin):
205 case OOX_TOKEN(w14, path):
210 case OOX_TOKEN(w14, fillToRect):
218 case OOX_TOKEN(w14,
miter):
223 case OOX_TOKEN(w14, camera):
228 case OOX_TOKEN(w14, lightRig):
234 case OOX_TOKEN(w14, rot):
241 case OOX_TOKEN(w14, props3d):
248 case OOX_TOKEN(w14, bevelT):
249 case OOX_TOKEN(w14, bevelB):
256 case OOX_TOKEN(w14, ligatures):
257 case OOX_TOKEN(w14, numForm):
258 case OOX_TOKEN(w14, numSpacing):
263 case OOX_TOKEN(w14, styleSet):
269 case OOX_TOKEN(w14, cntxtAlts):
302 aPropertyValue.Value >>=
aSeq;
303 aPropertyValue.Value <<=
aSeq[0];
Provides access to attribute values of an element.
OUString getStringDefaulted(sal_Int32 nAttrToken) const
Returns the string value of the specified attribute, returns an empty string if attribute not present...
bool hasAttribute(sal_Int32 nAttrToken) const
Returns true, if the specified attribute is present.
Tool that is useful for construction of a nested Sequence/PropertyValue hierarchy.
virtual oox::core::ContextHandlerRef onCreateContext(sal_Int32 Element, const oox::AttributeList &rAttribs) override
std::vector< css::beans::PropertyValue > & mrTextEffectsProperties
TextEffectsContext(oox::core::ContextHandler2Helper const &rParent, sal_Int32 aElementToken, std::vector< css::beans::PropertyValue > &rTextEffectsProperties)
void pushAttributeToGrabBag(sal_Int32 aAttributeId, const OUString &rElementName, const AttributeList &rAttribs)
void processAttributes(const AttributeList &rAttribs)
virtual ~TextEffectsContext() override
sal_Int32 mnCurrentElement
virtual void onStartElement(const oox::AttributeList &rAttribs) override
virtual void onEndElement() override
std::unique_ptr< oox::GrabBagStack > mpGrabBagStack
Sequence< sal_Int8 > aSeq
constexpr double alpha[nDetails]