11#include <com/sun/star/beans/XPropertySet.hpp>
22 uno::Any anotherAny = xPropSet->getPropertyValue(
"Extrusion");
24 if(anotherAny >>= bExtrusion)
28 uno::Any anotherAny = xPropSet->getPropertyValue(
"Brightness");
29 double aBrightness = double();
30 if(anotherAny >>= aBrightness)
34 uno::Any anotherAny = xPropSet->getPropertyValue(
"Depth");
35 drawing::EnhancedCustomShapeParameterPair aDepth;
36 if(anotherAny >>= aDepth)
40 uno::Any anotherAny = xPropSet->getPropertyValue(
"Diffusion");
41 double aDiffusion = double();
42 if(anotherAny >>= aDiffusion)
46 uno::Any anotherAny = xPropSet->getPropertyValue(
"NumberOfLineSegments");
47 sal_Int32 aNumberOfLineSegments = sal_Int32();
48 if(anotherAny >>= aNumberOfLineSegments)
52 uno::Any anotherAny = xPropSet->getPropertyValue(
"LightFace");
54 if(anotherAny >>= bLightFace)
58 uno::Any anotherAny = xPropSet->getPropertyValue(
"FirstLightHarsh");
59 bool bFirstLightHarsh;
60 if(anotherAny >>= bFirstLightHarsh)
64 uno::Any anotherAny = xPropSet->getPropertyValue(
"SecondLightHarsh");
65 bool bSecondLightHarsh;
66 if(anotherAny >>= bSecondLightHarsh)
70 uno::Any anotherAny = xPropSet->getPropertyValue(
"FirstLightLevel");
71 double aFirstLightLevel = double();
72 if(anotherAny >>= aFirstLightLevel)
76 uno::Any anotherAny = xPropSet->getPropertyValue(
"SecondLightLevel");
77 double aSecondLightLevel = double();
78 if(anotherAny >>= aSecondLightLevel)
82 uno::Any anotherAny = xPropSet->getPropertyValue(
"FirstLightDirection");
83 drawing::Direction3D aFirstLightDirection;
84 if(anotherAny >>= aFirstLightDirection)
88 uno::Any anotherAny = xPropSet->getPropertyValue(
"SecondLightDirection");
89 drawing::Direction3D aSecondLightDirection;
90 if(anotherAny >>= aSecondLightDirection)
94 uno::Any anotherAny = xPropSet->getPropertyValue(
"Metal");
96 if(anotherAny >>= bMetal)
100 uno::Any anotherAny = xPropSet->getPropertyValue(
"ShadeMode");
101 drawing::ShadeMode eShadeMode;
102 if(anotherAny >>= eShadeMode)
106 uno::Any anotherAny = xPropSet->getPropertyValue(
"RotateAngle");
107 drawing::EnhancedCustomShapeParameterPair aRotateAngle;
108 if(anotherAny >>= aRotateAngle)
112 uno::Any anotherAny = xPropSet->getPropertyValue(
"RotationCenter");
113 drawing::Direction3D aRotationCenter;
114 if(anotherAny >>= aRotationCenter)
118 uno::Any anotherAny = xPropSet->getPropertyValue(
"Shininess");
119 double aShininess = double();
120 if(anotherAny >>= aShininess)
124 uno::Any anotherAny = xPropSet->getPropertyValue(
"Skew");
125 drawing::EnhancedCustomShapeParameterPair aSkew;
126 if(anotherAny >>= aSkew)
130 uno::Any anotherAny = xPropSet->getPropertyValue(
"Specularity");
131 double aSpecularity = double();
132 if(anotherAny >>= aSpecularity)
136 uno::Any anotherAny = xPropSet->getPropertyValue(
"ProjectionMode");
137 drawing::ProjectionMode eProjectionMode;
138 if(anotherAny >>= eProjectionMode)
142 uno::Any anotherAny = xPropSet->getPropertyValue(
"ViewPoint");
143 drawing::Position3D aViewPoint;
144 if(anotherAny >>= aViewPoint)
148 uno::Any anotherAny = xPropSet->getPropertyValue(
"Origin");
149 drawing::EnhancedCustomShapeParameterPair aOrigin;
150 if(anotherAny >>= aOrigin)
154 uno::Any anotherAny = xPropSet->getPropertyValue(
"ExtrusionColor");
155 bool bExtrusionColor;
156 if(anotherAny >>= bExtrusionColor)
163 (void)xmlTextWriterWriteFormatAttribute(
xmlWriter, BAD_CAST(
"extrusion"),
"%s",
"true");
165 (
void)xmlTextWriterWriteFormatAttribute(
xmlWriter, BAD_CAST(
"extrusion"),
"%s",
"false");
170 (void)xmlTextWriterWriteFormatAttribute(
xmlWriter, BAD_CAST(
"brightness"),
"%f", aBrightness);
174 const drawing::EnhancedCustomShapeParameterPair& aParameterPair)
177 (void)xmlTextWriterStartElement(
xmlWriter, BAD_CAST(
"First" ));
179 (void)xmlTextWriterEndElement(
xmlWriter );
182 (void)xmlTextWriterStartElement(
xmlWriter, BAD_CAST(
"Second" ));
184 (void)xmlTextWriterEndElement(
xmlWriter );
190 (void)xmlTextWriterStartElement(
xmlWriter, BAD_CAST(
"Depth" ));
192 (void)xmlTextWriterEndElement(
xmlWriter );
197 (void)xmlTextWriterWriteFormatAttribute(
xmlWriter, BAD_CAST(
"diffusion"),
"%f", aDiffusion);
202 (void)xmlTextWriterWriteFormatAttribute(
xmlWriter, BAD_CAST(
"numberOfLineSegments"),
"%" SAL_PRIdINT32, aNumberOfLineSegments);
208 (void)xmlTextWriterWriteFormatAttribute(
xmlWriter, BAD_CAST(
"lightFace"),
"%s",
"true");
210 (
void)xmlTextWriterWriteFormatAttribute(
xmlWriter, BAD_CAST(
"lightFace"),
"%s",
"false");
216 (void)xmlTextWriterWriteFormatAttribute(
xmlWriter, BAD_CAST(
"firstLightHarsh"),
"%s",
"true");
218 (
void)xmlTextWriterWriteFormatAttribute(
xmlWriter, BAD_CAST(
"firstLightHarsh"),
"%s",
"false");
223 if(bSecondLightHarsh)
224 (void)xmlTextWriterWriteFormatAttribute(
xmlWriter, BAD_CAST(
"secondLightHarsh"),
"%s",
"true");
226 (
void)xmlTextWriterWriteFormatAttribute(
xmlWriter, BAD_CAST(
"secondLightHarsh"),
"%s",
"false");
231 (void)xmlTextWriterWriteFormatAttribute(
xmlWriter, BAD_CAST(
"firstLightLevel"),
"%f", aFirstLightLevel);
236 (void)xmlTextWriterWriteFormatAttribute(
xmlWriter, BAD_CAST(
"secondLightLevel"),
"%f", aSecondLightLevel);
241 (void)xmlTextWriterWriteFormatAttribute(
xmlWriter, BAD_CAST(
"directionX"),
"%f", aDirection3D.DirectionX);
242 (void)xmlTextWriterWriteFormatAttribute(
xmlWriter, BAD_CAST(
"directionY"),
"%f", aDirection3D.DirectionY);
243 (void)xmlTextWriterWriteFormatAttribute(
xmlWriter, BAD_CAST(
"directionZ"),
"%f", aDirection3D.DirectionZ);
248 (void)xmlTextWriterStartElement(
xmlWriter, BAD_CAST(
"FirstLightDirection" ));
250 (void)xmlTextWriterEndElement(
xmlWriter );
255 (void)xmlTextWriterStartElement(
xmlWriter, BAD_CAST(
"SecondLightDirection" ));
257 (void)xmlTextWriterEndElement(
xmlWriter );
263 (void)xmlTextWriterWriteFormatAttribute(
xmlWriter, BAD_CAST(
"metal"),
"%s",
"true");
265 (
void)xmlTextWriterWriteFormatAttribute(
xmlWriter, BAD_CAST(
"metal"),
"%s",
"false");
272 case drawing::ShadeMode_FLAT:
273 (void)xmlTextWriterWriteFormatAttribute(
xmlWriter, BAD_CAST(
"shadeMode"),
"%s",
"FLAT");
275 case drawing::ShadeMode_PHONG:
276 (void)xmlTextWriterWriteFormatAttribute(
xmlWriter, BAD_CAST(
"shadeMode"),
"%s",
"PHONG");
278 case drawing::ShadeMode_SMOOTH:
279 (void)xmlTextWriterWriteFormatAttribute(
xmlWriter, BAD_CAST(
"shadeMode"),
"%s",
"SMOOTH");
281 case drawing::ShadeMode_DRAFT:
282 (void)xmlTextWriterWriteFormatAttribute(
xmlWriter, BAD_CAST(
"shadeMode"),
"%s",
"DRAFT");
291 (void)xmlTextWriterStartElement(
xmlWriter, BAD_CAST(
"RotateAngle" ));
293 (void)xmlTextWriterEndElement(
xmlWriter );
298 (void)xmlTextWriterStartElement(
xmlWriter, BAD_CAST(
"RotationCenter" ));
300 (void)xmlTextWriterEndElement(
xmlWriter );
305 (void)xmlTextWriterWriteFormatAttribute(
xmlWriter, BAD_CAST(
"shininess"),
"%f", aShininess);
310 (void)xmlTextWriterStartElement(
xmlWriter, BAD_CAST(
"Skew" ));
312 (void)xmlTextWriterEndElement(
xmlWriter );
317 (void)xmlTextWriterWriteFormatAttribute(
xmlWriter, BAD_CAST(
"specularity"),
"%f", aSpecularity);
322 switch(eProjectionMode)
324 case drawing::ProjectionMode_PARALLEL:
325 (void)xmlTextWriterWriteFormatAttribute(
xmlWriter, BAD_CAST(
"projectionMode"),
"%s",
"PARALLEL");
327 case drawing::ProjectionMode_PERSPECTIVE:
328 (void)xmlTextWriterWriteFormatAttribute(
xmlWriter, BAD_CAST(
"projectionMode"),
"%s",
"PERSPECTIVE");
337 (void)xmlTextWriterStartElement(
xmlWriter, BAD_CAST(
"ViewPoint" ));
338 (void)xmlTextWriterWriteFormatAttribute(
xmlWriter, BAD_CAST(
"positionX"),
"%f", aViewPoint.PositionX);
339 (void)xmlTextWriterWriteFormatAttribute(
xmlWriter, BAD_CAST(
"positionY"),
"%f", aViewPoint.PositionY);
340 (void)xmlTextWriterWriteFormatAttribute(
xmlWriter, BAD_CAST(
"positionZ"),
"%f", aViewPoint.PositionZ);
341 (void)xmlTextWriterEndElement(
xmlWriter );
346 (void)xmlTextWriterStartElement(
xmlWriter, BAD_CAST(
"Origin" ));
348 (void)xmlTextWriterEndElement(
xmlWriter );
354 (void)xmlTextWriterWriteFormatAttribute(
xmlWriter, BAD_CAST(
"extrusionColor"),
"%s",
"true");
356 (
void)xmlTextWriterWriteFormatAttribute(
xmlWriter, BAD_CAST(
"extrusionColor"),
"%s",
"false");
366 uno::Any anotherAny = xPropSet->getPropertyValue(
"Type");
368 if(anotherAny >>=
sType)
372 uno::Any anotherAny = xPropSet->getPropertyValue(
"ViewBox");
373 awt::Rectangle aViewBox;
374 if(anotherAny >>= aViewBox)
378 uno::Any anotherAny = xPropSet->getPropertyValue(
"MirroredX");
380 if(anotherAny >>= bMirroredX)
384 uno::Any anotherAny = xPropSet->getPropertyValue(
"MirroredY");
386 if(anotherAny >>= bMirroredY)
390 uno::Any anotherAny = xPropSet->getPropertyValue(
"TextRotateAngle");
391 double aTextRotateAngle = double();
392 if(anotherAny >>= aTextRotateAngle)
396 uno::Any anotherAny = xPropSet->getPropertyValue(
"AdjustmentValues");
397 uno::Sequence< drawing::EnhancedCustomShapeAdjustmentValue> aAdjustmentValues;
398 if(anotherAny >>= aAdjustmentValues)
402 uno::Any anotherAny = xPropSet->getPropertyValue(
"Extrusion");
403 uno::Sequence< beans::PropertyValue > aExtrusion;
404 if(anotherAny >>= aExtrusion)
408 uno::Any anotherAny = xPropSet->getPropertyValue(
"Path");
409 uno::Sequence< beans::PropertyValue > aPath;
410 if(anotherAny >>= aPath)
414 uno::Any anotherAny = xPropSet->getPropertyValue(
"TextPath");
415 uno::Sequence< beans::PropertyValue > aTextPath;
416 if(anotherAny >>= aTextPath)
420 uno::Any anotherAny = xPropSet->getPropertyValue(
"Equations");
421 uno::Sequence< OUString > aEquations;
422 if(anotherAny >>= aEquations)
426 uno::Any anotherAny = xPropSet->getPropertyValue(
"Handles");
427 uno::Sequence< beans::PropertyValues > aHandles;
428 if(anotherAny >>= aHandles)
434 (void)xmlTextWriterWriteFormatAttribute(
xmlWriter, BAD_CAST(
"type"),
"%s",
440 (void)xmlTextWriterStartElement(
xmlWriter, BAD_CAST(
"ViewBox" ));
441 (void)xmlTextWriterWriteFormatAttribute(
xmlWriter, BAD_CAST(
"x"),
"%" SAL_PRIdINT32, aViewBox.X);
442 (void)xmlTextWriterWriteFormatAttribute(
xmlWriter, BAD_CAST(
"y"),
"%" SAL_PRIdINT32, aViewBox.Y);
443 (void)xmlTextWriterWriteFormatAttribute(
xmlWriter, BAD_CAST(
"width"),
"%" SAL_PRIdINT32, aViewBox.Width);
444 (void)xmlTextWriterWriteFormatAttribute(
xmlWriter, BAD_CAST(
"height"),
"%" SAL_PRIdINT32, aViewBox.Height);
445 (void)xmlTextWriterEndElement(
xmlWriter );
451 (void)xmlTextWriterWriteFormatAttribute(
xmlWriter, BAD_CAST(
"mirroredX"),
"%s",
"true");
453 (
void)xmlTextWriterWriteFormatAttribute(
xmlWriter, BAD_CAST(
"mirroredX"),
"%s",
"false");
459 (void)xmlTextWriterWriteFormatAttribute(
xmlWriter, BAD_CAST(
"mirroredY"),
"%s",
"true");
461 (
void)xmlTextWriterWriteFormatAttribute(
xmlWriter, BAD_CAST(
"mirroredY"),
"%s",
"false");
466 (void)xmlTextWriterWriteFormatAttribute(
xmlWriter, BAD_CAST(
"textRotateAngle"),
"%f", aTextRotateAngle);
471 (void)xmlTextWriterStartElement(
xmlWriter, BAD_CAST(
"AdjustmentValues" ));
472 for (
const auto&
i : aAdjustmentValues)
474 (void)xmlTextWriterStartElement(
xmlWriter, BAD_CAST(
"EnhancedCustomShapeAdjustmentValue" ));
482 (void)xmlTextWriterWriteFormatAttribute(
xmlWriter, BAD_CAST(
"value"),
"%s",
487 (void)xmlTextWriterWriteFormatAttribute(
xmlWriter, BAD_CAST(
"value"),
"%" SAL_PRIdINT32,
nValue);
489 else if(aAny >>= fValue)
491 (void)xmlTextWriterWriteFormatAttribute(
xmlWriter, BAD_CAST(
"value"),
"%f", fValue);
493 else if(aAny >>= bValue)
495 (void)xmlTextWriterWriteFormatAttribute(
xmlWriter, BAD_CAST(
"value"),
"%s", (bValue?
"true":
"false"));
500 case beans::PropertyState_DIRECT_VALUE:
501 (void)xmlTextWriterWriteFormatAttribute(
xmlWriter, BAD_CAST(
"propertyState"),
"%s",
"DIRECT_VALUE");
503 case beans::PropertyState_DEFAULT_VALUE:
504 (void)xmlTextWriterWriteFormatAttribute(
xmlWriter, BAD_CAST(
"propertyState"),
"%s",
"DEFAULT_VALUE");
506 case beans::PropertyState_AMBIGUOUS_VALUE:
507 (void)xmlTextWriterWriteFormatAttribute(
xmlWriter, BAD_CAST(
"propertyState"),
"%s",
"AMBIGUOUS_VALUE");
512 (void)xmlTextWriterEndElement(
xmlWriter );
514 (void)xmlTextWriterEndElement(
xmlWriter );
519 (void)xmlTextWriterStartElement(
xmlWriter, BAD_CAST(
"PropertyValue" ));
521 (void)xmlTextWriterWriteFormatAttribute(
xmlWriter, BAD_CAST(
"name"),
"%s",
523 (void)xmlTextWriterWriteFormatAttribute(
xmlWriter, BAD_CAST(
"handle"),
"%" SAL_PRIdINT32, aPropertyValue.Handle);
529 (void)xmlTextWriterWriteFormatAttribute(
xmlWriter, BAD_CAST(
"value"),
"%s",
532 switch(aPropertyValue.State)
534 case beans::PropertyState_DIRECT_VALUE:
535 (void)xmlTextWriterWriteFormatAttribute(
xmlWriter, BAD_CAST(
"propertyState"),
"%s",
"DIRECT_VALUE");
537 case beans::PropertyState_DEFAULT_VALUE:
538 (void)xmlTextWriterWriteFormatAttribute(
xmlWriter, BAD_CAST(
"propertyState"),
"%s",
"DEFAULT_VALUE");
540 case beans::PropertyState_AMBIGUOUS_VALUE:
541 (void)xmlTextWriterWriteFormatAttribute(
xmlWriter, BAD_CAST(
"propertyState"),
"%s",
"AMBIGUOUS_VALUE");
546 (void)xmlTextWriterEndElement(
xmlWriter );
551 (void)xmlTextWriterStartElement(
xmlWriter, BAD_CAST(
"Extrusion" ));
552 for (
const auto&
i : aExtrusion)
556 (void)xmlTextWriterEndElement(
xmlWriter );
561 (void)xmlTextWriterStartElement(
xmlWriter, BAD_CAST(
"Path" ));
562 for (
const auto&
i : aPath)
566 (void)xmlTextWriterEndElement(
xmlWriter );
571 (void)xmlTextWriterStartElement(
xmlWriter, BAD_CAST(
"TextPath" ));
572 for (
const auto&
i : aTextPath)
576 (void)xmlTextWriterEndElement(
xmlWriter );
581 (void)xmlTextWriterStartElement(
xmlWriter, BAD_CAST(
"Equations" ));
582 for (
const auto&
i : aEquations)
584 (void)xmlTextWriterWriteFormatAttribute(
xmlWriter, BAD_CAST(
"name"),
"%s",
587 (void)xmlTextWriterEndElement(
xmlWriter );
595 (void)xmlTextWriterStartElement(
xmlWriter, BAD_CAST(
"Handles" ));
596 for (
const auto&
i : aHandles)
598 (void)xmlTextWriterStartElement(
xmlWriter, BAD_CAST(
"PropertyValues" ));
599 uno::Sequence< beans::PropertyValue > propertyValueSequence =
i;
600 for (
const auto& j : propertyValueSequence)
604 (void)xmlTextWriterEndElement(
xmlWriter );
606 (void)xmlTextWriterEndElement(
xmlWriter );
616 uno::Any anotherAny = xPropSet->getPropertyValue(
"MirroredX");
618 if(anotherAny >>= bMirroredX)
622 uno::Any anotherAny = xPropSet->getPropertyValue(
"MirroredY");
624 if(anotherAny >>= bMirroredY)
628 uno::Any anotherAny = xPropSet->getPropertyValue(
"Switched");
630 if(anotherAny >>= bSwitched)
634 uno::Any anotherAny = xPropSet->getPropertyValue(
"Position");
635 drawing::EnhancedCustomShapeParameterPair aPosition;
636 if(anotherAny >>= aPosition)
640 uno::Any anotherAny = xPropSet->getPropertyValue(
"Polar");
641 drawing::EnhancedCustomShapeParameterPair aPolar;
642 if(anotherAny >>= aPolar)
646 uno::Any anotherAny = xPropSet->getPropertyValue(
"RefX");
647 sal_Int32 aRefX = sal_Int32();
648 if(anotherAny >>= aRefX)
652 uno::Any anotherAny = xPropSet->getPropertyValue(
"RefY");
653 sal_Int32 aRefY = sal_Int32();
654 if(anotherAny >>= aRefY)
658 uno::Any anotherAny = xPropSet->getPropertyValue(
"RefAngle");
659 sal_Int32 aRefAngle = sal_Int32();
660 if(anotherAny >>= aRefAngle)
664 uno::Any anotherAny = xPropSet->getPropertyValue(
"RefR");
665 sal_Int32 aRefR = sal_Int32();
666 if(anotherAny >>= aRefR)
670 uno::Any anotherAny = xPropSet->getPropertyValue(
"RangeXMinimum");
671 drawing::EnhancedCustomShapeParameter aRangeXMinimum;
672 if(anotherAny >>= aRangeXMinimum)
676 uno::Any anotherAny = xPropSet->getPropertyValue(
"RangeXMaximum");
677 drawing::EnhancedCustomShapeParameter aRangeXMaximum;
678 if(anotherAny >>= aRangeXMaximum)
682 uno::Any anotherAny = xPropSet->getPropertyValue(
"RangeYMinimum");
683 drawing::EnhancedCustomShapeParameter aRangeYMinimum;
684 if(anotherAny >>= aRangeYMinimum)
688 uno::Any anotherAny = xPropSet->getPropertyValue(
"RangeYMaximum");
689 drawing::EnhancedCustomShapeParameter aRangeYMaximum;
690 if(anotherAny >>= aRangeYMaximum)
694 uno::Any anotherAny = xPropSet->getPropertyValue(
"RadiusRangeMinimum");
695 drawing::EnhancedCustomShapeParameter aRadiusRangeMinimum;
696 if(anotherAny >>= aRadiusRangeMinimum)
700 uno::Any anotherAny = xPropSet->getPropertyValue(
"RadiusRangeMaximum");
701 drawing::EnhancedCustomShapeParameter aRadiusRangeMaximum;
702 if(anotherAny >>= aRadiusRangeMaximum)
710 (void)xmlTextWriterWriteFormatAttribute(
xmlWriter, BAD_CAST(
"switched"),
"%s",
"true");
712 (
void)xmlTextWriterWriteFormatAttribute(
xmlWriter, BAD_CAST(
"switched"),
"%s",
"false");
717 (void)xmlTextWriterStartElement(
xmlWriter, BAD_CAST(
"Position" ));
719 (void)xmlTextWriterEndElement(
xmlWriter );
724 (void)xmlTextWriterStartElement(
xmlWriter, BAD_CAST(
"Polar" ));
726 (void)xmlTextWriterEndElement(
xmlWriter );
731 (void)xmlTextWriterWriteFormatAttribute(
xmlWriter, BAD_CAST(
"refX"),
"%" SAL_PRIdINT32, aRefX);
736 (void)xmlTextWriterWriteFormatAttribute(
xmlWriter, BAD_CAST(
"refY"),
"%" SAL_PRIdINT32, aRefY);
741 (void)xmlTextWriterWriteFormatAttribute(
xmlWriter, BAD_CAST(
"refAngle"),
"%" SAL_PRIdINT32, aRefAngle);
746 (void)xmlTextWriterWriteFormatAttribute(
xmlWriter, BAD_CAST(
"refR"),
"%" SAL_PRIdINT32, aRefR);
750 const drawing::EnhancedCustomShapeParameter& aParameter)
759 (void)xmlTextWriterWriteFormatAttribute(
xmlWriter, BAD_CAST(
"value"),
"%s",
764 (void)xmlTextWriterWriteFormatAttribute(
xmlWriter, BAD_CAST(
"value"),
"%" SAL_PRIdINT32,
nValue);
766 else if(aAny >>= fValue)
768 (void)xmlTextWriterWriteFormatAttribute(
xmlWriter, BAD_CAST(
"value"),
"%f", fValue);
770 else if(aAny >>= bValue)
772 (void)xmlTextWriterWriteFormatAttribute(
xmlWriter, BAD_CAST(
"value"),
"%s", (bValue?
"true":
"false"));
774 sal_Int32 aType = aParameter.Type;
775 (void)xmlTextWriterWriteFormatAttribute(
xmlWriter, BAD_CAST(
"type"),
"%" SAL_PRIdINT32, aType);
780 (void)xmlTextWriterStartElement(
xmlWriter, BAD_CAST(
"RangeXMinimum" ));
782 (void)xmlTextWriterEndElement(
xmlWriter );
787 (void)xmlTextWriterStartElement(
xmlWriter, BAD_CAST(
"RangeXMaximum" ));
789 (void)xmlTextWriterEndElement(
xmlWriter );
794 (void)xmlTextWriterStartElement(
xmlWriter, BAD_CAST(
"RangeYMinimum" ));
796 (void)xmlTextWriterEndElement(
xmlWriter );
801 (void)xmlTextWriterStartElement(
xmlWriter, BAD_CAST(
"RangeYMaximum" ));
803 (void)xmlTextWriterEndElement(
xmlWriter );
808 (void)xmlTextWriterStartElement(
xmlWriter, BAD_CAST(
"RadiusRangeMinimum" ));
810 (void)xmlTextWriterEndElement(
xmlWriter );
815 (void)xmlTextWriterStartElement(
xmlWriter, BAD_CAST(
"RadiusRangeMaximum" ));
817 (void)xmlTextWriterEndElement(
xmlWriter );
827 uno::Any anotherAny = xPropSet->getPropertyValue(
"Coordinates");
828 uno::Sequence< drawing::EnhancedCustomShapeParameterPair > aCoordinates;
829 if(anotherAny >>= aCoordinates)
833 uno::Any anotherAny = xPropSet->getPropertyValue(
"Segments");
834 uno::Sequence< drawing::EnhancedCustomShapeSegment >
aSegments;
839 uno::Any anotherAny = xPropSet->getPropertyValue(
"StretchX");
840 sal_Int32 aStretchX = sal_Int32();
841 if(anotherAny >>= aStretchX)
845 uno::Any anotherAny = xPropSet->getPropertyValue(
"StretchY");
846 sal_Int32 aStretchY = sal_Int32();
847 if(anotherAny >>= aStretchY)
851 uno::Any anotherAny = xPropSet->getPropertyValue(
"TextFrames");
852 uno::Sequence< drawing::EnhancedCustomShapeTextFrame > aTextFrames;
853 if(anotherAny >>= aTextFrames)
857 uno::Any anotherAny = xPropSet->getPropertyValue(
"GluePoints");
858 uno::Sequence< drawing::EnhancedCustomShapeParameterPair > aGluePoints;
859 if(anotherAny >>= aGluePoints)
863 uno::Any anotherAny = xPropSet->getPropertyValue(
"GluePointLeavingDirections");
864 uno::Sequence< double > aGluePointLeavingDirections;
865 if(anotherAny >>= aGluePointLeavingDirections)
869 uno::Any anotherAny = xPropSet->getPropertyValue(
"GluePointType");
870 sal_Int32 aGluePointType = sal_Int32();
871 if(anotherAny >>= aGluePointType)
875 uno::Any anotherAny = xPropSet->getPropertyValue(
"ExtrusionAllowed");
876 bool bExtrusionAllowed;
877 if(anotherAny >>= bExtrusionAllowed)
881 uno::Any anotherAny = xPropSet->getPropertyValue(
"ConcentricGradientFillAllowed");
882 bool bConcentricGradientFillAllowed;
883 if(anotherAny >>= bConcentricGradientFillAllowed)
887 uno::Any anotherAny = xPropSet->getPropertyValue(
"TextPathAllowed");
888 bool bTextPathAllowed;
889 if(anotherAny >>= bTextPathAllowed)
893 uno::Any anotherAny = xPropSet->getPropertyValue(
"SubViewSize");
894 uno::Sequence< awt::Size > aSubViewSize;
895 if(anotherAny >>= aSubViewSize)
902 (void)xmlTextWriterStartElement(
xmlWriter, BAD_CAST(
"Coordinates" ));
903 for (
const auto&
i : aCoordinates)
905 (void)xmlTextWriterStartElement(
xmlWriter, BAD_CAST(
"EnhancedCustomShapeParameterPair" ));
907 (void)xmlTextWriterEndElement(
xmlWriter );
909 (void)xmlTextWriterEndElement(
xmlWriter );
914 (void)xmlTextWriterStartElement(
xmlWriter, BAD_CAST(
"Segments" ));
917 (void)xmlTextWriterStartElement(
xmlWriter, BAD_CAST(
"EnhancedCustomShapeSegment" ));
919 sal_Int32 aCount =
i.Count;
920 (void)xmlTextWriterWriteFormatAttribute(
xmlWriter, BAD_CAST(
"command"),
"%" SAL_PRIdINT32,
aCommand);
921 (void)xmlTextWriterWriteFormatAttribute(
xmlWriter, BAD_CAST(
"count"),
"%" SAL_PRIdINT32, aCount);
922 (void)xmlTextWriterEndElement(
xmlWriter );
924 (void)xmlTextWriterEndElement(
xmlWriter );
929 (void)xmlTextWriterWriteFormatAttribute(
xmlWriter, BAD_CAST(
"stretchX"),
"%" SAL_PRIdINT32, aStretchX);
934 (void)xmlTextWriterWriteFormatAttribute(
xmlWriter, BAD_CAST(
"stretchY"),
"%" SAL_PRIdINT32, aStretchY);
939 (void)xmlTextWriterStartElement(
xmlWriter, BAD_CAST(
"TextFrames" ));
940 for (
const auto&
i : aTextFrames)
942 (void)xmlTextWriterStartElement(
xmlWriter, BAD_CAST(
"EnhancedCustomShapeTextFrame" ));
944 (void)xmlTextWriterStartElement(
xmlWriter, BAD_CAST(
"TopLeft" ));
946 (void)xmlTextWriterEndElement(
xmlWriter );
948 (void)xmlTextWriterStartElement(
xmlWriter, BAD_CAST(
"BottomRight" ));
950 (void)xmlTextWriterEndElement(
xmlWriter );
952 (void)xmlTextWriterEndElement(
xmlWriter );
954 (void)xmlTextWriterEndElement(
xmlWriter );
959 (void)xmlTextWriterStartElement(
xmlWriter, BAD_CAST(
"GluePoints" ));
960 for (
const auto&
i : aGluePoints)
962 (void)xmlTextWriterStartElement(
xmlWriter, BAD_CAST(
"EnhancedCustomShapeParameterPair" ));
964 (void)xmlTextWriterEndElement(
xmlWriter );
966 (void)xmlTextWriterEndElement(
xmlWriter );
971 (void)xmlTextWriterStartElement(
xmlWriter, BAD_CAST(
"GluePointLeavingDirections" ));
972 for (
const auto&
i : aGluePointLeavingDirections)
974 (void)xmlTextWriterWriteFormatAttribute(
xmlWriter, BAD_CAST(
"value"),
"%f",
i);
976 (void)xmlTextWriterEndElement(
xmlWriter );
981 (void)xmlTextWriterWriteFormatAttribute(
xmlWriter, BAD_CAST(
"gluePointType"),
"%" SAL_PRIdINT32, aGluePointType);
986 if(bExtrusionAllowed)
987 (void)xmlTextWriterWriteFormatAttribute(
xmlWriter, BAD_CAST(
"extrusionAllowed"),
"%s",
"true");
989 (
void)xmlTextWriterWriteFormatAttribute(
xmlWriter, BAD_CAST(
"extrusionAllowed"),
"%s",
"false");
994 if(bConcentricGradientFillAllowed)
995 (void)xmlTextWriterWriteFormatAttribute(
xmlWriter, BAD_CAST(
"concentricGradientFillAllowed"),
"%s",
"true");
997 (
void)xmlTextWriterWriteFormatAttribute(
xmlWriter, BAD_CAST(
"concentricGradientFillAllowed"),
"%s",
"false");
1002 if(bTextPathAllowed)
1003 (void)xmlTextWriterWriteFormatAttribute(
xmlWriter, BAD_CAST(
"textPathAllowed"),
"%s",
"true");
1005 (
void)xmlTextWriterWriteFormatAttribute(
xmlWriter, BAD_CAST(
"textPathAllowed"),
"%s",
"false");
1010 (void)xmlTextWriterStartElement(
xmlWriter, BAD_CAST(
"SubViewSize" ));
1011 for (
const auto&
i : aSubViewSize)
1013 (void)xmlTextWriterStartElement(
xmlWriter, BAD_CAST(
"Size" ));
1014 (void)xmlTextWriterWriteFormatAttribute(
xmlWriter, BAD_CAST(
"width"),
"%" SAL_PRIdINT32,
i.Width);
1015 (void)xmlTextWriterWriteFormatAttribute(
xmlWriter, BAD_CAST(
"height"),
"%" SAL_PRIdINT32,
i.Height);
1016 (void)xmlTextWriterEndElement(
xmlWriter );
1018 (void)xmlTextWriterEndElement(
xmlWriter );
1028 uno::Any anotherAny = xPropSet->getPropertyValue(
"TextPath");
1030 if(anotherAny >>= bTextPath)
1034 uno::Any anotherAny = xPropSet->getPropertyValue(
"TextPathMode");
1035 drawing::EnhancedCustomShapeTextPathMode eTextPathMode;
1036 if(anotherAny >>= eTextPathMode)
1040 uno::Any anotherAny = xPropSet->getPropertyValue(
"ScaleX");
1042 if(anotherAny >>= bScaleX)
1050 (void)xmlTextWriterWriteFormatAttribute(
xmlWriter, BAD_CAST(
"textPath"),
"%s",
"true");
1052 (
void)xmlTextWriterWriteFormatAttribute(
xmlWriter, BAD_CAST(
"textPath"),
"%s",
"false");
1057 switch(eTextPathMode)
1059 case drawing::EnhancedCustomShapeTextPathMode_NORMAL:
1060 (void)xmlTextWriterWriteFormatAttribute(
xmlWriter, BAD_CAST(
"textPathMode"),
"%s",
"NORMAL");
1062 case drawing::EnhancedCustomShapeTextPathMode_PATH:
1063 (void)xmlTextWriterWriteFormatAttribute(
xmlWriter, BAD_CAST(
"textPathMode"),
"%s",
"PATH");
1065 case drawing::EnhancedCustomShapeTextPathMode_SHAPE:
1066 (void)xmlTextWriterWriteFormatAttribute(
xmlWriter, BAD_CAST(
"textPathMode"),
"%s",
"SHAPE");
1076 (void)xmlTextWriterWriteFormatAttribute(
xmlWriter, BAD_CAST(
"scaleX"),
"%s",
"true");
1078 (
void)xmlTextWriterWriteFormatAttribute(
xmlWriter, BAD_CAST(
"scaleX"),
"%s",
"false");
void dumpBrightnessAsAttribute(double aBrightness)
void dumpEnhancedCustomShapeHandleService(const css::uno::Reference< css::beans::XPropertySet > &xPropSet)
void dumpStretchXAsAttribute(sal_Int32 aStretchX)
void dumpEquationsAsElement(const css::uno::Sequence< OUString > &aEquations)
void dumpSubViewSizeAsElement(const css::uno::Sequence< css::awt::Size > &aSubViewSize)
void dumpFirstLightLevelAsAttribute(double aFirstLightLevel)
void dumpRefRAsAttribute(sal_Int32 aRefR)
void dumpGluePointsAsElement(const css::uno::Sequence< css::drawing::EnhancedCustomShapeParameterPair > &aGluePoints)
void dumpTextRotateAngleAsAttribute(double aTextRotateAngle)
void dumpTextPathAsElement(const css::uno::Sequence< css::beans::PropertyValue > &aTextPath)
void dumpPolarAsElement(const css::drawing::EnhancedCustomShapeParameterPair &aPolar)
void dumpExtrusionColorAsAttribute(bool bExtrusionColor)
void dumpRangeYMaximumAsElement(const css::drawing::EnhancedCustomShapeParameter &aRangeXMaximum)
void dumpAdjustmentValuesAsElement(const css::uno::Sequence< css::drawing::EnhancedCustomShapeAdjustmentValue > &aAdjustmentValues)
void dumpRangeXMaximumAsElement(const css::drawing::EnhancedCustomShapeParameter &aRangeXMaximum)
void dumpRotateAngleAsElement(const css::drawing::EnhancedCustomShapeParameterPair &aRotateAngle)
xmlTextWriterPtr xmlWriter
void dumpSkewAsElement(const css::drawing::EnhancedCustomShapeParameterPair &aSkew)
void dumpExtrusionAsAttribute(bool bExtrusion)
void dumpHandlesAsElement(const css::uno::Sequence< css::beans::PropertyValues > &aHandles)
void dumpRadiusRangeMaximumAsElement(const css::drawing::EnhancedCustomShapeParameter &aRadiusRangeMaximum)
void dumpLightFaceAsAttribute(bool bLightFace)
void dumpFirstLightDirectionAsElement(css::drawing::Direction3D aFirstLightDirection)
void dumpCoordinatesAsElement(const css::uno::Sequence< css::drawing::EnhancedCustomShapeParameterPair > &aCoordinates)
void dumpScaleXAsAttribute(bool bScaleX)
void dumpTextPathAsAttribute(bool bTextPath)
void dumpTypeAsAttribute(std::u16string_view sType)
void dumpOriginAsElement(const css::drawing::EnhancedCustomShapeParameterPair &aOrigin)
void dumpSecondLightLevelAsAttribute(double aSecondLightLevel)
void dumpExtrusionAsElement(const css::uno::Sequence< css::beans::PropertyValue > &aExtrusion)
void dumpSegmentsAsElement(const css::uno::Sequence< css::drawing::EnhancedCustomShapeSegment > &aSegments)
void dumpGluePointLeavingDirectionsAsElement(const css::uno::Sequence< double > &aGluePointLeavingDirections)
void dumpSwitchedAsAttribute(bool bSwitched)
void dumpShadeModeAsAttribute(css::drawing::ShadeMode eShadeMode)
void dumpSecondLightHarshAsAttribute(bool bSecondLightHarsh)
void dumpEnhancedCustomShapePathService(const css::uno::Reference< css::beans::XPropertySet > &xPropSet)
void dumpEnhancedCustomShapeGeometryService(const css::uno::Reference< css::beans::XPropertySet > &xPropSet)
void dumpTextPathModeAsAttribute(css::drawing::EnhancedCustomShapeTextPathMode eTextPathMode)
void dumpPropertyValueAsElement(const css::beans::PropertyValue &aPropertyValue)
void dumpStretchYAsAttribute(sal_Int32 aStretchY)
void dumpDepthAsElement(const css::drawing::EnhancedCustomShapeParameterPair &aDepth)
void dumpRangeXMinimumAsElement(const css::drawing::EnhancedCustomShapeParameter &aRangeXMinimum)
void dumpViewPointAsElement(css::drawing::Position3D aViewPoint)
void dumpMirroredYAsAttribute(bool bMirroredY)
void dumpDiffusionAsAttribute(double aDiffusion)
void dumpTextFramesAsElement(const css::uno::Sequence< css::drawing::EnhancedCustomShapeTextFrame > &aTextFrames)
void dumpExtrusionAllowedAsAttribute(bool bExtrusionAllowed)
void dumpGluePointTypeAsAttribute(sal_Int32 aGluePointType)
void dumpRefAngleAsAttribute(sal_Int32 aRefAngle)
void dumpProjectionModeAsAttribute(css::drawing::ProjectionMode eProjectionMode)
void dumpShininessAsAttribute(double aShininess)
void dumpRefYAsAttribute(sal_Int32 aRefY)
void dumpMetalAsAttribute(bool bMetal)
void dumpRefXAsAttribute(sal_Int32 aRefX)
void dumpFirstLightHarshAsAttribute(bool bFirstLightHarsh)
void dumpPositionAsElement(const css::drawing::EnhancedCustomShapeParameterPair &aPosition)
void dumpRotationCenterAsElement(css::drawing::Direction3D aRotationCenter)
void dumpConcentricGradientFillAllowedAsAttribute(bool bConcentricGradientFillAllowed)
void dumpViewBoxAsElement(css::awt::Rectangle aViewBox)
void dumpEnhancedCustomShapeTextPathService(const css::uno::Reference< css::beans::XPropertySet > &xPropSet)
void dumpNumberOfLineSegmentsAsAttribute(sal_Int32 aNumberOfLineSegments)
void dumpRangeYMinimumAsElement(const css::drawing::EnhancedCustomShapeParameter &aRangeYMinimum)
void dumpEnhancedCustomShapeExtrusionService(const css::uno::Reference< css::beans::XPropertySet > &xPropSet)
void dumpRadiusRangeMinimumAsElement(const css::drawing::EnhancedCustomShapeParameter &aRadiusRangeMinimum)
void dumpSpecularityAsAttribute(double aSpecularity)
void dumpEnhancedCustomShapeParameterPair(const css::drawing::EnhancedCustomShapeParameterPair &aParameterPair)
void dumpTextPathAllowedAsAttribute(bool bTextPathAllowed)
void dumpDirection3D(css::drawing::Direction3D aDirection3D)
void dumpEnhancedCustomShapeParameter(const css::drawing::EnhancedCustomShapeParameter &aParameter)
void dumpSecondLightDirectionAsElement(css::drawing::Direction3D aSecondLightDirection)
void dumpPathAsElement(const css::uno::Sequence< css::beans::PropertyValue > &aPath)
void dumpMirroredXAsAttribute(bool bMirroredX)
OString OUStringToOString(std::u16string_view str, ConnectionSettings const *settings)
std::vector< ISegmentProgressBarRef > aSegments