17#include <rtl/ustrbuf.hxx>
19#include <ooxml/resourceids.hxx>
31OUString lclGetNameForElementId(sal_uInt32 aId)
33 static std::map<sal_uInt32, OUString> aIdMap;
36 aIdMap[NS_ooxml::LN_EG_ColorChoice_srgbClr] =
"srgbClr";
37 aIdMap[NS_ooxml::LN_EG_ColorChoice_schemeClr] =
"schemeClr";
38 aIdMap[NS_ooxml::LN_EG_ColorTransform_tint] =
"tint";
39 aIdMap[NS_ooxml::LN_EG_ColorTransform_shade] =
"shade";
40 aIdMap[NS_ooxml::LN_EG_ColorTransform_alpha] =
"alpha";
41 aIdMap[NS_ooxml::LN_EG_ColorTransform_hueMod] =
"hueMod";
42 aIdMap[NS_ooxml::LN_EG_ColorTransform_sat] =
"sat";
43 aIdMap[NS_ooxml::LN_EG_ColorTransform_satOff] =
"satOff";
44 aIdMap[NS_ooxml::LN_EG_ColorTransform_satMod] =
"satMod";
45 aIdMap[NS_ooxml::LN_EG_ColorTransform_lum] =
"lum";
46 aIdMap[NS_ooxml::LN_EG_ColorTransform_lumOff] =
"lumOff";
47 aIdMap[NS_ooxml::LN_EG_ColorTransform_lumMod] =
"lumMod";
48 aIdMap[NS_ooxml::LN_EG_FillProperties_noFill] =
"noFill";
49 aIdMap[NS_ooxml::LN_EG_FillProperties_solidFill] =
"solidFill";
50 aIdMap[NS_ooxml::LN_EG_FillProperties_gradFill] =
"gradFill";
51 aIdMap[NS_ooxml::LN_CT_GradientFillProperties_gsLst] =
"gsLst";
52 aIdMap[NS_ooxml::LN_CT_GradientStopList_gs] =
"gs";
53 aIdMap[NS_ooxml::LN_CT_GradientStop_pos] =
"pos";
54 aIdMap[NS_ooxml::LN_EG_ShadeProperties_lin] =
"lin";
55 aIdMap[NS_ooxml::LN_EG_ShadeProperties_path] =
"path";
56 aIdMap[NS_ooxml::LN_CT_PathShadeProperties_fillToRect] =
"fillToRect";
57 aIdMap[NS_ooxml::LN_EG_LineDashProperties_prstDash] =
"prstDash";
58 aIdMap[NS_ooxml::LN_EG_LineJoinProperties_round] =
"round";
59 aIdMap[NS_ooxml::LN_EG_LineJoinProperties_bevel] =
"bevel";
60 aIdMap[NS_ooxml::LN_EG_LineJoinProperties_miter] =
"miter";
61 aIdMap[NS_ooxml::LN_CT_Scene3D_camera] =
"camera";
62 aIdMap[NS_ooxml::LN_CT_Scene3D_lightRig] =
"lightRig";
63 aIdMap[NS_ooxml::LN_CT_LightRig_rot] =
"rot";
64 aIdMap[NS_ooxml::LN_CT_Props3D_bevelT] =
"bevelT";
65 aIdMap[NS_ooxml::LN_CT_Props3D_bevelB] =
"bevelB";
66 aIdMap[NS_ooxml::LN_CT_Props3D_extrusionClr] =
"extrusionClr";
67 aIdMap[NS_ooxml::LN_CT_Props3D_contourClr] =
"contourClr";
68 aIdMap[NS_ooxml::LN_CT_StylisticSets_styleSet] =
"styleSet";
69 aIdMap[NS_ooxml::LN_cntxtAlts_cntxtAlts] =
"cntxtAlts";
74constexpr OUStringLiteral constAttributesSequenceName =
u"attributes";
82 case NS_ooxml::LN_ST_SchemeColorVal_bg1:
return "bg1";
83 case NS_ooxml::LN_ST_SchemeColorVal_tx1:
return "tx1";
84 case NS_ooxml::LN_ST_SchemeColorVal_bg2:
return "bg2";
85 case NS_ooxml::LN_ST_SchemeColorVal_tx2:
return "tx2";
86 case NS_ooxml::LN_ST_SchemeColorVal_accent1:
return "accent1";
87 case NS_ooxml::LN_ST_SchemeColorVal_accent2:
return "accent2";
88 case NS_ooxml::LN_ST_SchemeColorVal_accent3:
return "accent3";
89 case NS_ooxml::LN_ST_SchemeColorVal_accent4:
return "accent4";
90 case NS_ooxml::LN_ST_SchemeColorVal_accent5:
return "accent5";
91 case NS_ooxml::LN_ST_SchemeColorVal_accent6:
return "accent6";
92 case NS_ooxml::LN_ST_SchemeColorVal_hlink:
return "hlink";
93 case NS_ooxml::LN_ST_SchemeColorVal_folHlink:
return "folHlink";
94 case NS_ooxml::LN_ST_SchemeColorVal_dk1:
return "dk1";
95 case NS_ooxml::LN_ST_SchemeColorVal_lt1:
return "lt1";
96 case NS_ooxml::LN_ST_SchemeColorVal_dk2:
return "dk2";
97 case NS_ooxml::LN_ST_SchemeColorVal_lt2:
return "lt2";
98 case NS_ooxml::LN_ST_SchemeColorVal_phClr:
return "phClr";
108 case NS_ooxml::LN_ST_RectAlignment_none:
return "none";
109 case NS_ooxml::LN_ST_RectAlignment_tl:
return "tl";
110 case NS_ooxml::LN_ST_RectAlignment_t:
return "t";
111 case NS_ooxml::LN_ST_RectAlignment_tr:
return "tr";
112 case NS_ooxml::LN_ST_RectAlignment_l:
return "l";
113 case NS_ooxml::LN_ST_RectAlignment_ctr:
return "ctr";
114 case NS_ooxml::LN_ST_RectAlignment_r:
return "r";
115 case NS_ooxml::LN_ST_RectAlignment_bl:
return "bl";
116 case NS_ooxml::LN_ST_RectAlignment_b:
return "b";
117 case NS_ooxml::LN_ST_RectAlignment_br:
return "br";
128 case NS_ooxml::LN_ST_LineCap_rnd:
return "rnd";
129 case NS_ooxml::LN_ST_LineCap_sq:
return "sq";
130 case NS_ooxml::LN_ST_LineCap_flat:
return "flat";
140 case NS_ooxml::LN_ST_CompoundLine_sng:
return "sng";
141 case NS_ooxml::LN_ST_CompoundLine_dbl:
return "dbl";
142 case NS_ooxml::LN_ST_CompoundLine_thickThin:
return "thickThin";
143 case NS_ooxml::LN_ST_CompoundLine_thinThick:
return "thinThick";
144 case NS_ooxml::LN_ST_CompoundLine_tri:
return "tri";
154 case NS_ooxml::LN_ST_PenAlignment_ctr:
return "ctr";
155 case NS_ooxml::LN_ST_PenAlignment_in:
return "in";
165 case NS_ooxml::LN_ST_OnOff_true:
return "true";
166 case NS_ooxml::LN_ST_OnOff_false:
return "false";
167 case NS_ooxml::LN_ST_OnOff_1:
return "1";
168 case NS_ooxml::LN_ST_OnOff_0:
return "0";
178 case NS_ooxml::LN_ST_PathShadeType_shape:
return "shape";
179 case NS_ooxml::LN_ST_PathShadeType_circle:
return "circle";
180 case NS_ooxml::LN_ST_PathShadeType_rect:
return "rect";
190 case NS_ooxml::LN_ST_PresetLineDashVal_solid:
return "solid";
191 case NS_ooxml::LN_ST_PresetLineDashVal_dot:
return "dot";
192 case NS_ooxml::LN_ST_PresetLineDashVal_sysDot:
return "sysDot";
193 case NS_ooxml::LN_ST_PresetLineDashVal_dash:
return "dash";
194 case NS_ooxml::LN_ST_PresetLineDashVal_sysDash:
return "sysDash";
195 case NS_ooxml::LN_ST_PresetLineDashVal_lgDash:
return "lgDash";
196 case NS_ooxml::LN_ST_PresetLineDashVal_dashDot:
return "dashDot";
197 case NS_ooxml::LN_ST_PresetLineDashVal_sysDashDot:
return "sysDashDot";
198 case NS_ooxml::LN_ST_PresetLineDashVal_lgDashDot:
return "lgDashDot";
199 case NS_ooxml::LN_ST_PresetLineDashVal_lgDashDotDot:
return "lgDashDotDot";
200 case NS_ooxml::LN_ST_PresetLineDashVal_sysDashDotDot:
return "sysDashDotDot";
210 case NS_ooxml::LN_ST_PresetCameraType_legacyObliqueTopLeft:
return "legacyObliqueTopLeft";
211 case NS_ooxml::LN_ST_PresetCameraType_legacyObliqueTop:
return "legacyObliqueTop";
212 case NS_ooxml::LN_ST_PresetCameraType_legacyObliqueTopRight:
return "legacyObliqueTopRight";
213 case NS_ooxml::LN_ST_PresetCameraType_legacyObliqueLeft:
return "legacyObliqueLeft";
214 case NS_ooxml::LN_ST_PresetCameraType_legacyObliqueFront:
return "legacyObliqueFront";
215 case NS_ooxml::LN_ST_PresetCameraType_legacyObliqueRight:
return "legacyObliqueRight";
216 case NS_ooxml::LN_ST_PresetCameraType_legacyObliqueBottomLeft:
return "legacyObliqueBottomLeft";
217 case NS_ooxml::LN_ST_PresetCameraType_legacyObliqueBottom:
return "legacyObliqueBottom";
218 case NS_ooxml::LN_ST_PresetCameraType_legacyObliqueBottomRight:
return "legacyObliqueBottomRight";
219 case NS_ooxml::LN_ST_PresetCameraType_legacyPerspectiveTopLeft:
return "legacyPerspectiveTopLeft";
220 case NS_ooxml::LN_ST_PresetCameraType_legacyPerspectiveTop:
return "legacyPerspectiveTop";
221 case NS_ooxml::LN_ST_PresetCameraType_legacyPerspectiveTopRight:
return "legacyPerspectiveTopRight";
222 case NS_ooxml::LN_ST_PresetCameraType_legacyPerspectiveLeft:
return "legacyPerspectiveLeft";
223 case NS_ooxml::LN_ST_PresetCameraType_legacyPerspectiveFront:
return "legacyPerspectiveFront";
224 case NS_ooxml::LN_ST_PresetCameraType_legacyPerspectiveRight:
return "legacyPerspectiveRight";
225 case NS_ooxml::LN_ST_PresetCameraType_legacyPerspectiveBottomLeft:
return "legacyPerspectiveBottomLeft";
226 case NS_ooxml::LN_ST_PresetCameraType_legacyPerspectiveBottom:
return "legacyPerspectiveBottom";
227 case NS_ooxml::LN_ST_PresetCameraType_legacyPerspectiveBottomRight:
return "legacyPerspectiveBottomRight";
228 case NS_ooxml::LN_ST_PresetCameraType_orthographicFront:
return "orthographicFront";
229 case NS_ooxml::LN_ST_PresetCameraType_isometricTopUp:
return "isometricTopUp";
230 case NS_ooxml::LN_ST_PresetCameraType_isometricTopDown:
return "isometricTopDown";
231 case NS_ooxml::LN_ST_PresetCameraType_isometricBottomUp:
return "isometricBottomUp";
232 case NS_ooxml::LN_ST_PresetCameraType_isometricBottomDown:
return "isometricBottomDown";
233 case NS_ooxml::LN_ST_PresetCameraType_isometricLeftUp:
return "isometricLeftUp";
234 case NS_ooxml::LN_ST_PresetCameraType_isometricLeftDown:
return "isometricLeftDown";
235 case NS_ooxml::LN_ST_PresetCameraType_isometricRightUp:
return "isometricRightUp";
236 case NS_ooxml::LN_ST_PresetCameraType_isometricRightDown:
return "isometricRightDown";
237 case NS_ooxml::LN_ST_PresetCameraType_isometricOffAxis1Left:
return "isometricOffAxis1Left";
238 case NS_ooxml::LN_ST_PresetCameraType_isometricOffAxis1Right:
return "isometricOffAxis1Right";
239 case NS_ooxml::LN_ST_PresetCameraType_isometricOffAxis1Top:
return "isometricOffAxis1Top";
240 case NS_ooxml::LN_ST_PresetCameraType_isometricOffAxis2Left:
return "isometricOffAxis2Left";
241 case NS_ooxml::LN_ST_PresetCameraType_isometricOffAxis2Right:
return "isometricOffAxis2Right";
242 case NS_ooxml::LN_ST_PresetCameraType_isometricOffAxis2Top:
return "isometricOffAxis2Top";
243 case NS_ooxml::LN_ST_PresetCameraType_isometricOffAxis3Left:
return "isometricOffAxis3Left";
244 case NS_ooxml::LN_ST_PresetCameraType_isometricOffAxis3Right:
return "isometricOffAxis3Right";
245 case NS_ooxml::LN_ST_PresetCameraType_isometricOffAxis3Bottom:
return "isometricOffAxis3Bottom";
246 case NS_ooxml::LN_ST_PresetCameraType_isometricOffAxis4Left:
return "isometricOffAxis4Left";
247 case NS_ooxml::LN_ST_PresetCameraType_isometricOffAxis4Right:
return "isometricOffAxis4Right";
248 case NS_ooxml::LN_ST_PresetCameraType_isometricOffAxis4Bottom:
return "isometricOffAxis4Bottom";
249 case NS_ooxml::LN_ST_PresetCameraType_obliqueTopLeft:
return "obliqueTopLeft";
250 case NS_ooxml::LN_ST_PresetCameraType_obliqueTop:
return "obliqueTop";
251 case NS_ooxml::LN_ST_PresetCameraType_obliqueTopRight:
return "obliqueTopRight";
252 case NS_ooxml::LN_ST_PresetCameraType_obliqueLeft:
return "obliqueLeft";
253 case NS_ooxml::LN_ST_PresetCameraType_obliqueRight:
return "obliqueRight";
254 case NS_ooxml::LN_ST_PresetCameraType_obliqueBottomLeft:
return "obliqueBottomLeft";
255 case NS_ooxml::LN_ST_PresetCameraType_obliqueBottom:
return "obliqueBottom";
256 case NS_ooxml::LN_ST_PresetCameraType_obliqueBottomRight:
return "obliqueBottomRight";
257 case NS_ooxml::LN_ST_PresetCameraType_perspectiveFront:
return "perspectiveFront";
258 case NS_ooxml::LN_ST_PresetCameraType_perspectiveLeft:
return "perspectiveLeft";
259 case NS_ooxml::LN_ST_PresetCameraType_perspectiveRight:
return "perspectiveRight";
260 case NS_ooxml::LN_ST_PresetCameraType_perspectiveAbove:
return "perspectiveAbove";
261 case NS_ooxml::LN_ST_PresetCameraType_perspectiveBelow:
return "perspectiveBelow";
262 case NS_ooxml::LN_ST_PresetCameraType_perspectiveAboveLeftFacing:
return "perspectiveAboveLeftFacing";
263 case NS_ooxml::LN_ST_PresetCameraType_perspectiveAboveRightFacing:
return "perspectiveAboveRightFacing";
264 case NS_ooxml::LN_ST_PresetCameraType_perspectiveContrastingLeftFacing:
return "perspectiveContrastingLeftFacing";
265 case NS_ooxml::LN_ST_PresetCameraType_perspectiveContrastingRightFacing:
return "perspectiveContrastingRightFacing";
266 case NS_ooxml::LN_ST_PresetCameraType_perspectiveHeroicLeftFacing:
return "perspectiveHeroicLeftFacing";
267 case NS_ooxml::LN_ST_PresetCameraType_perspectiveHeroicRightFacing:
return "perspectiveHeroicRightFacing";
268 case NS_ooxml::LN_ST_PresetCameraType_perspectiveHeroicExtremeLeftFacing:
return "perspectiveHeroicExtremeLeftFacing";
269 case NS_ooxml::LN_ST_PresetCameraType_perspectiveHeroicExtremeRightFacing:
return "perspectiveHeroicExtremeRightFacing";
270 case NS_ooxml::LN_ST_PresetCameraType_perspectiveRelaxed:
return "perspectiveRelaxed";
271 case NS_ooxml::LN_ST_PresetCameraType_perspectiveRelaxedModerately:
return "perspectiveRelaxedModerately";
282 case NS_ooxml::LN_ST_LightRigType_legacyFlat1:
return "legacyFlat1";
283 case NS_ooxml::LN_ST_LightRigType_legacyFlat2:
return "legacyFlat2";
284 case NS_ooxml::LN_ST_LightRigType_legacyFlat3:
return "legacyFlat3";
285 case NS_ooxml::LN_ST_LightRigType_legacyFlat4:
return "legacyFlat4";
286 case NS_ooxml::LN_ST_LightRigType_legacyNormal1:
return "legacyNormal1";
287 case NS_ooxml::LN_ST_LightRigType_legacyNormal2:
return "legacyNormal2";
288 case NS_ooxml::LN_ST_LightRigType_legacyNormal3:
return "legacyNormal3";
289 case NS_ooxml::LN_ST_LightRigType_legacyNormal4:
return "legacyNormal4";
290 case NS_ooxml::LN_ST_LightRigType_legacyHarsh1:
return "legacyHarsh1";
291 case NS_ooxml::LN_ST_LightRigType_legacyHarsh2:
return "legacyHarsh2";
292 case NS_ooxml::LN_ST_LightRigType_legacyHarsh3:
return "legacyHarsh3";
293 case NS_ooxml::LN_ST_LightRigType_legacyHarsh4:
return "legacyHarsh4";
294 case NS_ooxml::LN_ST_LightRigType_threePt:
return "threePt";
295 case NS_ooxml::LN_ST_LightRigType_balanced:
return "balanced";
296 case NS_ooxml::LN_ST_LightRigType_soft:
return "soft";
297 case NS_ooxml::LN_ST_LightRigType_harsh:
return "harsh";
298 case NS_ooxml::LN_ST_LightRigType_flood:
return "flood";
299 case NS_ooxml::LN_ST_LightRigType_contrasting:
return "contrasting";
300 case NS_ooxml::LN_ST_LightRigType_morning:
return "morning";
301 case NS_ooxml::LN_ST_LightRigType_sunrise:
return "sunrise";
302 case NS_ooxml::LN_ST_LightRigType_sunset:
return "sunset";
303 case NS_ooxml::LN_ST_LightRigType_chilly:
return "chilly";
304 case NS_ooxml::LN_ST_LightRigType_freezing:
return "freezing";
305 case NS_ooxml::LN_ST_LightRigType_flat:
return "flat";
306 case NS_ooxml::LN_ST_LightRigType_twoPt:
return "twoPt";
307 case NS_ooxml::LN_ST_LightRigType_glow:
return "glow";
308 case NS_ooxml::LN_ST_LightRigType_brightRoom:
return "brightRoom";
318 case NS_ooxml::LN_ST_LightRigDirection_tl:
return "tl";
319 case NS_ooxml::LN_ST_LightRigDirection_t:
return "t";
320 case NS_ooxml::LN_ST_LightRigDirection_tr:
return "tr";
321 case NS_ooxml::LN_ST_LightRigDirection_l:
return "l";
322 case NS_ooxml::LN_ST_LightRigDirection_r:
return "r";
323 case NS_ooxml::LN_ST_LightRigDirection_bl:
return "bl";
324 case NS_ooxml::LN_ST_LightRigDirection_b:
return "b";
325 case NS_ooxml::LN_ST_LightRigDirection_br:
return "br";
336 case NS_ooxml::LN_ST_BevelPresetType_relaxedInset:
return "relaxedInset";
337 case NS_ooxml::LN_ST_BevelPresetType_circle:
return "circle";
338 case NS_ooxml::LN_ST_BevelPresetType_slope:
return "slope";
339 case NS_ooxml::LN_ST_BevelPresetType_cross:
return "cross";
340 case NS_ooxml::LN_ST_BevelPresetType_angle:
return "angle";
341 case NS_ooxml::LN_ST_BevelPresetType_softRound:
return "softRound";
342 case NS_ooxml::LN_ST_BevelPresetType_convex:
return "convex";
343 case NS_ooxml::LN_ST_BevelPresetType_coolSlant:
return "coolSlant";
344 case NS_ooxml::LN_ST_BevelPresetType_divot:
return "divot";
345 case NS_ooxml::LN_ST_BevelPresetType_riblet:
return "riblet";
346 case NS_ooxml::LN_ST_BevelPresetType_hardEdge:
return "hardEdge";
347 case NS_ooxml::LN_ST_BevelPresetType_artDeco:
return "artDeco";
357 case NS_ooxml::LN_ST_PresetMaterialType_legacyMatte:
return "legacyMatte";
358 case NS_ooxml::LN_ST_PresetMaterialType_legacyPlastic:
return "legacyPlastic";
359 case NS_ooxml::LN_ST_PresetMaterialType_legacyMetal:
return "legacyMetal";
360 case NS_ooxml::LN_ST_PresetMaterialType_legacyWireframe:
return "legacyWireframe";
361 case NS_ooxml::LN_ST_PresetMaterialType_matte:
return "matte";
362 case NS_ooxml::LN_ST_PresetMaterialType_plastic:
return "plastic";
363 case NS_ooxml::LN_ST_PresetMaterialType_metal:
return "metal";
364 case NS_ooxml::LN_ST_PresetMaterialType_warmMatte:
return "warmMatte";
365 case NS_ooxml::LN_ST_PresetMaterialType_translucentPowder:
return "translucentPowder";
366 case NS_ooxml::LN_ST_PresetMaterialType_powder:
return "powder";
367 case NS_ooxml::LN_ST_PresetMaterialType_dkEdge:
return "dkEdge";
368 case NS_ooxml::LN_ST_PresetMaterialType_softEdge:
return "softEdge";
369 case NS_ooxml::LN_ST_PresetMaterialType_clear:
return "clear";
370 case NS_ooxml::LN_ST_PresetMaterialType_flat:
return "flat";
371 case NS_ooxml::LN_ST_PresetMaterialType_softmetal:
return "softmetal";
372 case NS_ooxml::LN_ST_PresetMaterialType_none:
return "none";
382 case NS_ooxml::LN_ST_Ligatures_none:
return "none";
383 case NS_ooxml::LN_ST_Ligatures_standard:
return "standard";
384 case NS_ooxml::LN_ST_Ligatures_contextual:
return "contextual";
385 case NS_ooxml::LN_ST_Ligatures_historical:
return "historical";
386 case NS_ooxml::LN_ST_Ligatures_discretional:
return "discretional";
387 case NS_ooxml::LN_ST_Ligatures_standardContextual:
return "standardContextual";
388 case NS_ooxml::LN_ST_Ligatures_standardHistorical:
return "standardHistorical";
389 case NS_ooxml::LN_ST_Ligatures_contextualHistorical:
return "contextualHistorical";
390 case NS_ooxml::LN_ST_Ligatures_standardDiscretional:
return "standardDiscretional";
391 case NS_ooxml::LN_ST_Ligatures_contextualDiscretional:
return "contextualDiscretional";
392 case NS_ooxml::LN_ST_Ligatures_historicalDiscretional:
return "historicalDiscretional";
393 case NS_ooxml::LN_ST_Ligatures_standardContextualHistorical:
return "standardContextualHistorical";
394 case NS_ooxml::LN_ST_Ligatures_standardContextualDiscretional:
return "standardContextualDiscretional";
395 case NS_ooxml::LN_ST_Ligatures_standardHistoricalDiscretional:
return "standardHistoricalDiscretional";
396 case NS_ooxml::LN_ST_Ligatures_contextualHistoricalDiscretional:
return "contextualHistoricalDiscretional";
397 case NS_ooxml::LN_ST_Ligatures_all:
return "all";
407 case NS_ooxml::LN_ST_NumForm_default:
return "default";
408 case NS_ooxml::LN_ST_NumForm_lining:
return "lining";
409 case NS_ooxml::LN_ST_NumForm_oldStyle:
return "oldStyle";
419 case NS_ooxml::LN_ST_NumSpacing_default:
return "default";
420 case NS_ooxml::LN_ST_NumSpacing_proportional:
return "proportional";
421 case NS_ooxml::LN_ST_NumSpacing_tabular:
return "tabular";
431 case NS_ooxml::LN_glow_glow:
435 case NS_ooxml::LN_shadow_shadow:
439 case NS_ooxml::LN_reflection_reflection:
443 case NS_ooxml::LN_textOutline_textOutline:
447 case NS_ooxml::LN_textFill_textFill:
451 case NS_ooxml::LN_scene3d_scene3d:
455 case NS_ooxml::LN_props3d_props3d:
459 case NS_ooxml::LN_ligatures_ligatures:
463 case NS_ooxml::LN_numForm_numForm:
467 case NS_ooxml::LN_numSpacing_numSpacing:
471 case NS_ooxml::LN_stylisticSets_stylisticSets:
475 case NS_ooxml::LN_cntxtAlts_cntxtAlts:
498 if (
mpGrabBagStack->getCurrentName() != constAttributesSequenceName)
503 case NS_ooxml::LN_CT_Percentage_val:
504 case NS_ooxml::LN_CT_PositiveFixedPercentage_val:
505 case NS_ooxml::LN_CT_PositivePercentage_val:
508 case NS_ooxml::LN_CT_Glow_rad:
511 case NS_ooxml::LN_CT_SchemeColor_val:
517 case NS_ooxml::LN_CT_SRgbColor_val:
520 OUStringBuffer aString;
522 aString.append(
aBuffer.getStr());
523 mpGrabBagStack->addString(
"val", aString.makeStringAndClear().toAsciiUpperCase());
526 case NS_ooxml::LN_CT_Shadow_blurRad:
527 case NS_ooxml::LN_CT_Reflection_blurRad:
530 case NS_ooxml::LN_CT_Reflection_stA:
533 case NS_ooxml::LN_CT_Reflection_stPos:
536 case NS_ooxml::LN_CT_Reflection_endA:
539 case NS_ooxml::LN_CT_Reflection_endPos:
542 case NS_ooxml::LN_CT_Shadow_dist:
543 case NS_ooxml::LN_CT_Reflection_dist:
546 case NS_ooxml::LN_CT_Shadow_dir:
547 case NS_ooxml::LN_CT_Reflection_dir:
550 case NS_ooxml::LN_CT_Reflection_fadeDir:
553 case NS_ooxml::LN_CT_Shadow_sx:
554 case NS_ooxml::LN_CT_Reflection_sx:
557 case NS_ooxml::LN_CT_Shadow_sy:
558 case NS_ooxml::LN_CT_Reflection_sy:
561 case NS_ooxml::LN_CT_Shadow_kx:
562 case NS_ooxml::LN_CT_Reflection_kx:
565 case NS_ooxml::LN_CT_Shadow_ky:
566 case NS_ooxml::LN_CT_Reflection_ky:
569 case NS_ooxml::LN_CT_Shadow_algn:
570 case NS_ooxml::LN_CT_Reflection_algn:
576 case NS_ooxml::LN_CT_TextOutlineEffect_w:
579 case NS_ooxml::LN_CT_TextOutlineEffect_cap:
585 case NS_ooxml::LN_CT_TextOutlineEffect_cmpd:
591 case NS_ooxml::LN_CT_TextOutlineEffect_algn:
597 case NS_ooxml::LN_CT_GradientStop_pos:
600 case NS_ooxml::LN_CT_LinearShadeProperties_ang:
603 case NS_ooxml::LN_CT_LinearShadeProperties_scaled:
609 case NS_ooxml::LN_CT_PathShadeProperties_path:
615 case NS_ooxml::LN_CT_RelativeRect_l:
618 case NS_ooxml::LN_CT_RelativeRect_t:
621 case NS_ooxml::LN_CT_RelativeRect_r:
624 case NS_ooxml::LN_CT_RelativeRect_b:
627 case NS_ooxml::LN_CT_PresetLineDashProperties_val:
633 case NS_ooxml::LN_CT_LineJoinMiterProperties_lim:
636 case NS_ooxml::LN_CT_Camera_prst:
642 case NS_ooxml::LN_CT_LightRig_rig:
648 case NS_ooxml::LN_CT_LightRig_dir:
654 case NS_ooxml::LN_CT_SphereCoords_lat:
657 case NS_ooxml::LN_CT_SphereCoords_lon:
660 case NS_ooxml::LN_CT_SphereCoords_rev:
663 case NS_ooxml::LN_CT_Props3D_extrusionH:
666 case NS_ooxml::LN_CT_Props3D_contourW:
669 case NS_ooxml::LN_CT_Props3D_prstMaterial:
675 case NS_ooxml::LN_CT_Bevel_w:
678 case NS_ooxml::LN_CT_Bevel_h:
681 case NS_ooxml::LN_CT_Bevel_prst:
687 case NS_ooxml::LN_CT_Ligatures_val:
693 case NS_ooxml::LN_CT_NumForm_val:
699 case NS_ooxml::LN_CT_NumSpacing_val:
705 case NS_ooxml::LN_CT_StyleSet_id:
708 case NS_ooxml::LN_CT_StyleSet_val:
709 case NS_ooxml::LN_CT_OnOff_val:
722 if (
mpGrabBagStack->getCurrentName() == constAttributesSequenceName)
725 sal_uInt32 nSprmId = rSprm.
getId();
726 OUString aElementName = lclGetNameForElementId(nSprmId);
727 if(aElementName.isEmpty())
739 pProperties->resolve( *
this );
741 if (
mpGrabBagStack->getCurrentName() == constAttributesSequenceName)
756 if (rValue.Name !=
"textFill")
764 auto it =
aMap.find(
"solidFill");
765 if (it ==
aMap.end())
771 it = aSolidFillMap.
find(
"srgbClr");
772 if (it == aSolidFillMap.
end())
774 it = aSolidFillMap.
find(
"schemeClr");
775 if (it == aSolidFillMap.
end())
780 it = aSrgbClrMap.
find(
"alpha");
781 if (it == aSrgbClrMap.
end())
787 it = aAlphaMap.
find(
"attributes");
788 if (it == aAlphaMap.
end())
794 it = aAttributesMap.
find(
"val");
795 if (it == aAttributesMap.
end())
PropertyValueVector_t aPropertyValues
iterator find(const OUString &rKey)
An SPRM: Section, Paragraph and Run Modifier.
virtual sal_uInt32 getId() const =0
Returns id of the SPRM.
virtual writerfilter::Reference< Properties >::Pointer_t getProps()=0
Returns reference to properties contained in the SPRM.
virtual int getInt() const =0
Returns integer representation of the value.
void convertElementIdToPropertyId(sal_Int32 aElementId)
virtual void lcl_sprm(Sprm &sprm) override
TextEffectsHandler(sal_uInt32 aElementId)
std::optional< PropertyIds > maPropertyId
static OUString getSchemeColorValTypeString(sal_Int32 nType)
static OUString getPresetLineDashValString(sal_Int32 nType)
static OUString getPresetMaterialTypeString(sal_Int32 nType)
static OUString getNumSpacingString(sal_Int32 nType)
std::unique_ptr< oox::GrabBagStack > mpGrabBagStack
static OUString getPresetCameraTypeString(sal_Int32 nType)
static OUString getPenAlignmentString(sal_Int32 nType)
static OUString getBevelPresetTypeString(sal_Int32 nType)
static OUString getLightRigDirectionString(sal_Int32 nType)
static OUString getOnOffString(sal_Int32 nType)
static OUString getCompoundLineString(sal_Int32 nType)
static OUString getPathShadeTypeString(sal_Int32 nType)
virtual ~TextEffectsHandler() override
static OUString getNumFormString(sal_Int32 nType)
static OUString getRectAlignmentString(sal_Int32 nType)
css::beans::PropertyValue getInteropGrabBag()
static sal_uInt8 GetTextFillSolidFillAlpha(const css::beans::PropertyValue &rValue)
static OUString getLigaturesString(sal_Int32 nType)
virtual void lcl_attribute(Id aName, Value &aValue) override
static OUString getLightRigTypeString(sal_Int32 nType)
static OUString getLineCapString(sal_Int32 nType)
OStringBuffer & padToLength(OStringBuffer &rBuffer, sal_Int32 nLength, char cFill='\0')
const sal_Int32 PER_PERCENT
@ PROP_CHAR_TEXTOUTLINE_TEXT_EFFECT
@ PROP_CHAR_STYLISTICSETS_TEXT_EFFECT
@ PROP_CHAR_REFLECTION_TEXT_EFFECT
@ PROP_CHAR_LIGATURES_TEXT_EFFECT
@ PROP_CHAR_CNTXTALTS_TEXT_EFFECT
@ PROP_CHAR_GLOW_TEXT_EFFECT
@ PROP_CHAR_SHADOW_TEXT_EFFECT
@ PROP_CHAR_TEXTFILL_TEXT_EFFECT
@ PROP_CHAR_SCENE3D_TEXT_EFFECT
@ PROP_CHAR_NUMFORM_TEXT_EFFECT
@ PROP_CHAR_NUMSPACING_TEXT_EFFECT
@ PROP_CHAR_PROPS3D_TEXT_EFFECT
HashMap_OWString_Interface aMap
std::unique_ptr< char[]> aBuffer