1 // this file was generated by: ./generatePresetsCXX.pl
4 #include "oox/drawingml/customshapeproperties.hxx"
5 #include "oox/token/tokenmap.hxx"
6 #include <com/sun/star/awt/Rectangle.hpp>
7 #include <com/sun/star/awt/Size.hpp>
8 #include <com/sun/star/drawing/EnhancedCustomShapeAdjustmentValue.hpp>
9 #include <com/sun/star/drawing/EnhancedCustomShapeSegment.hpp>
10 #include <com/sun/star/drawing/EnhancedCustomShapeParameterPair.hpp>
11 #include <com/sun/star/drawing/EnhancedCustomShapeParameterType.hpp>
13 using namespace ::com::sun::star
;
14 using namespace ::com::sun::star::beans
;
15 using namespace ::com::sun::star::drawing
;
16 using namespace ::com::sun::star::uno
;
18 namespace oox
{ namespace drawingml
{
22 class ShapeCleftRightArrowCallout
: public CustomShapeProvider
24 virtual PropertyMap
getProperties()
26 PropertyMap aPropertyMap
;
29 Sequence
< EnhancedCustomShapeAdjustmentValue
> aAdjSequence (4);
31 Any
aAny ((sal_Int32
) 25000);
32 aAdjSequence
[0].Value
= aAny
;
33 aAdjSequence
[0].Name
= "adj1";
36 Any
aAny ((sal_Int32
) 25000);
37 aAdjSequence
[1].Value
= aAny
;
38 aAdjSequence
[1].Name
= "adj2";
41 Any
aAny ((sal_Int32
) 25000);
42 aAdjSequence
[2].Value
= aAny
;
43 aAdjSequence
[2].Name
= "adj3";
46 Any
aAny ((sal_Int32
) 48123);
47 aAdjSequence
[3].Value
= aAny
;
48 aAdjSequence
[3].Name
= "adj4";
50 aPropertyMap
[PROP_AdjustmentValues
] <<= aAdjSequence
;
53 static const char *aStrings
[] = {
54 "min(logwidth,logheight)",
55 "50000*logheight/?0 ",
56 "if(0-$1 ,0,if(?1 -$1 ,$1 ,?1 ))",
58 "if(0-$0 ,0,if(?3 -$0 ,$0 ,?3 ))",
60 "if(0-$2 ,0,if(?5 -$2 ,$2 ,?5 ))",
64 "if(0-$3 ,0,if(?9 -$3 ,$3 ,?9 ))",
74 "logwidth*?10 /200000",
81 aPropertyMap
[PROP_Equations
] <<= createStringSequence( SAL_N_ELEMENTS( aStrings
), aStrings
);
84 Sequence
< Sequence
< PropertyValue
> > aPropSequenceSequence (4);
86 Sequence
< PropertyValue
> aPropSequence (4);
88 aPropSequence
[0].Name
= "Position";
89 static const CustomShapeProvider::ParameterPairData aData
=
91 EnhancedCustomShapeParameterType::EQUATION
,
92 EnhancedCustomShapeParameterType::EQUATION
,
95 aPropSequence
[0].Value
= makeAny (createParameterPair(&aData
));
98 aPropSequence
[1].Name
= "RangeYMaximum";
99 EnhancedCustomShapeParameter aParameter
;
100 Any
aAny ((sal_Int32
) 3);
101 aParameter
.Value
= aAny
;
102 aParameter
.Type
= EnhancedCustomShapeParameterType::EQUATION
;
103 aPropSequence
[1].Value
= makeAny (aParameter
);
106 aPropSequence
[2].Name
= "RangeYMinimum";
107 EnhancedCustomShapeParameter aParameter
;
108 Any
aAny ((sal_Int32
) 0);
109 aParameter
.Value
= aAny
;
110 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
111 aPropSequence
[2].Value
= makeAny (aParameter
);
114 aPropSequence
[3].Name
= "RefY";
115 Any
aAny ((sal_Int32
) 0);
116 aPropSequence
[3].Value
= makeAny (aAny
);
118 aPropSequenceSequence
[0] = aPropSequence
;
121 Sequence
< PropertyValue
> aPropSequence (4);
123 aPropSequence
[0].Name
= "Position";
124 static const CustomShapeProvider::ParameterPairData aData
=
126 EnhancedCustomShapeParameterType::NORMAL
,
127 EnhancedCustomShapeParameterType::EQUATION
,
130 aPropSequence
[0].Value
= makeAny (createParameterPair(&aData
));
133 aPropSequence
[1].Name
= "RangeYMaximum";
134 EnhancedCustomShapeParameter aParameter
;
135 Any
aAny ((sal_Int32
) 1);
136 aParameter
.Value
= aAny
;
137 aParameter
.Type
= EnhancedCustomShapeParameterType::EQUATION
;
138 aPropSequence
[1].Value
= makeAny (aParameter
);
141 aPropSequence
[2].Name
= "RangeYMinimum";
142 EnhancedCustomShapeParameter aParameter
;
143 Any
aAny ((sal_Int32
) 0);
144 aParameter
.Value
= aAny
;
145 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
146 aPropSequence
[2].Value
= makeAny (aParameter
);
149 aPropSequence
[3].Name
= "RefY";
150 Any
aAny ((sal_Int32
) 1);
151 aPropSequence
[3].Value
= makeAny (aAny
);
153 aPropSequenceSequence
[1] = aPropSequence
;
156 Sequence
< PropertyValue
> aPropSequence (4);
158 aPropSequence
[0].Name
= "Position";
159 static const CustomShapeProvider::ParameterPairData aData
=
161 EnhancedCustomShapeParameterType::EQUATION
,
162 EnhancedCustomShapeParameterType::NORMAL
,
165 aPropSequence
[0].Value
= makeAny (createParameterPair(&aData
));
168 aPropSequence
[1].Name
= "RangeXMaximum";
169 EnhancedCustomShapeParameter aParameter
;
170 Any
aAny ((sal_Int32
) 5);
171 aParameter
.Value
= aAny
;
172 aParameter
.Type
= EnhancedCustomShapeParameterType::EQUATION
;
173 aPropSequence
[1].Value
= makeAny (aParameter
);
176 aPropSequence
[2].Name
= "RangeXMinimum";
177 EnhancedCustomShapeParameter aParameter
;
178 Any
aAny ((sal_Int32
) 0);
179 aParameter
.Value
= aAny
;
180 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
181 aPropSequence
[2].Value
= makeAny (aParameter
);
184 aPropSequence
[3].Name
= "RefX";
185 Any
aAny ((sal_Int32
) 2);
186 aPropSequence
[3].Value
= makeAny (aAny
);
188 aPropSequenceSequence
[2] = aPropSequence
;
191 Sequence
< PropertyValue
> aPropSequence (4);
193 aPropSequence
[0].Name
= "Position";
194 static const CustomShapeProvider::ParameterPairData aData
=
196 EnhancedCustomShapeParameterType::EQUATION
,
197 EnhancedCustomShapeParameterType::EQUATION
,
200 aPropSequence
[0].Value
= makeAny (createParameterPair(&aData
));
203 aPropSequence
[1].Name
= "RangeXMaximum";
204 EnhancedCustomShapeParameter aParameter
;
205 Any
aAny ((sal_Int32
) 9);
206 aParameter
.Value
= aAny
;
207 aParameter
.Type
= EnhancedCustomShapeParameterType::EQUATION
;
208 aPropSequence
[1].Value
= makeAny (aParameter
);
211 aPropSequence
[2].Name
= "RangeXMinimum";
212 EnhancedCustomShapeParameter aParameter
;
213 Any
aAny ((sal_Int32
) 0);
214 aParameter
.Value
= aAny
;
215 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
216 aPropSequence
[2].Value
= makeAny (aParameter
);
219 aPropSequence
[3].Name
= "RefX";
220 Any
aAny ((sal_Int32
) 3);
221 aPropSequence
[3].Value
= makeAny (aAny
);
223 aPropSequenceSequence
[3] = aPropSequence
;
225 aPropertyMap
[PROP_Handles
] <<= aPropSequenceSequence
;
228 aPropertyMap
[PROP_MirroredX
] <<= Any ((sal_Bool
) sal_False
);
231 aPropertyMap
[PROP_MirroredY
] <<= Any ((sal_Bool
) sal_False
);
234 Sequence
< PropertyValue
> aPropSequence (3);
236 aPropSequence
[0].Name
= "Coordinates";
237 static const CustomShapeProvider::ParameterPairData aData
[] = {
239 EnhancedCustomShapeParameterType::NORMAL
,
240 EnhancedCustomShapeParameterType::EQUATION
,
244 EnhancedCustomShapeParameterType::EQUATION
,
245 EnhancedCustomShapeParameterType::EQUATION
,
249 EnhancedCustomShapeParameterType::EQUATION
,
250 EnhancedCustomShapeParameterType::EQUATION
,
254 EnhancedCustomShapeParameterType::EQUATION
,
255 EnhancedCustomShapeParameterType::EQUATION
,
259 EnhancedCustomShapeParameterType::EQUATION
,
260 EnhancedCustomShapeParameterType::NORMAL
,
264 EnhancedCustomShapeParameterType::EQUATION
,
265 EnhancedCustomShapeParameterType::NORMAL
,
269 EnhancedCustomShapeParameterType::EQUATION
,
270 EnhancedCustomShapeParameterType::EQUATION
,
274 EnhancedCustomShapeParameterType::EQUATION
,
275 EnhancedCustomShapeParameterType::EQUATION
,
279 EnhancedCustomShapeParameterType::EQUATION
,
280 EnhancedCustomShapeParameterType::EQUATION
,
284 EnhancedCustomShapeParameterType::EQUATION
,
285 EnhancedCustomShapeParameterType::EQUATION
,
289 EnhancedCustomShapeParameterType::EQUATION
,
290 EnhancedCustomShapeParameterType::EQUATION
,
294 EnhancedCustomShapeParameterType::EQUATION
,
295 EnhancedCustomShapeParameterType::EQUATION
,
299 EnhancedCustomShapeParameterType::EQUATION
,
300 EnhancedCustomShapeParameterType::EQUATION
,
304 EnhancedCustomShapeParameterType::EQUATION
,
305 EnhancedCustomShapeParameterType::EQUATION
,
309 EnhancedCustomShapeParameterType::EQUATION
,
310 EnhancedCustomShapeParameterType::EQUATION
,
314 EnhancedCustomShapeParameterType::EQUATION
,
315 EnhancedCustomShapeParameterType::EQUATION
,
319 EnhancedCustomShapeParameterType::EQUATION
,
320 EnhancedCustomShapeParameterType::EQUATION
,
324 EnhancedCustomShapeParameterType::EQUATION
,
325 EnhancedCustomShapeParameterType::EQUATION
,
329 aPropSequence
[0].Value
= makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData
), aData
));
332 aPropSequence
[1].Name
= "Segments";
333 static const sal_uInt16 nValues
[] = {
340 aPropSequence
[1].Value
= makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues
), nValues
));
343 aPropSequence
[2].Name
= "TextFrames";
344 Sequence
< EnhancedCustomShapeTextFrame
> aTextFrameSeq (1);
346 EnhancedCustomShapeTextFrame aTextFrame
;
348 static const CustomShapeProvider::ParameterPairData aData
=
350 EnhancedCustomShapeParameterType::EQUATION
,
351 EnhancedCustomShapeParameterType::NORMAL
,
354 aTextFrame
.TopLeft
= createParameterPair(&aData
);
357 static const CustomShapeProvider::ParameterPairData aData
=
359 EnhancedCustomShapeParameterType::EQUATION
,
360 EnhancedCustomShapeParameterType::EQUATION
,
363 aTextFrame
.BottomRight
= createParameterPair(&aData
);
365 aTextFrameSeq
[0] = aTextFrame
;
367 aPropSequence
[2].Value
= makeAny (aTextFrameSeq
);
369 aPropertyMap
[PROP_Path
] <<= aPropSequence
;
372 awt::Rectangle aRectangle
;
375 aRectangle
.Width
= 0;
376 aRectangle
.Height
= 0;
377 aPropertyMap
[PROP_ViewBox
] <<= aRectangle
;
379 aPropertyMap
[ PROP_Type
] <<= OUString("ooxml-leftRightArrowCallout");
384 class ShapeCflowChartManualOperation
: public CustomShapeProvider
386 virtual PropertyMap
getProperties()
388 PropertyMap aPropertyMap
;
391 aPropertyMap
[PROP_AdjustmentValues
] <<= Sequence
< OUString
>(0);
394 static const char *aStrings
[] = {
403 aPropertyMap
[PROP_Equations
] <<= createStringSequence( SAL_N_ELEMENTS( aStrings
), aStrings
);
406 aPropertyMap
[PROP_Handles
] <<= Sequence
< OUString
>(0);
409 aPropertyMap
[PROP_MirroredX
] <<= Any ((sal_Bool
) sal_False
);
412 aPropertyMap
[PROP_MirroredY
] <<= Any ((sal_Bool
) sal_False
);
415 Sequence
< PropertyValue
> aPropSequence (4);
417 aPropSequence
[0].Name
= "Coordinates";
418 static const CustomShapeProvider::ParameterPairData aData
[] = {
420 EnhancedCustomShapeParameterType::NORMAL
,
421 EnhancedCustomShapeParameterType::NORMAL
,
425 EnhancedCustomShapeParameterType::NORMAL
,
426 EnhancedCustomShapeParameterType::NORMAL
,
430 EnhancedCustomShapeParameterType::NORMAL
,
431 EnhancedCustomShapeParameterType::NORMAL
,
435 EnhancedCustomShapeParameterType::NORMAL
,
436 EnhancedCustomShapeParameterType::NORMAL
,
440 aPropSequence
[0].Value
= makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData
), aData
));
443 aPropSequence
[1].Name
= "Segments";
444 static const sal_uInt16 nValues
[] = {
451 aPropSequence
[1].Value
= makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues
), nValues
));
454 aPropSequence
[2].Name
= "SubViewSize";
455 Sequence
< awt::Size
> aSizeSequence (1);
460 aSizeSequence
[0] = aSize
;
462 aPropSequence
[2].Value
= makeAny (aSizeSequence
);
465 aPropSequence
[3].Name
= "TextFrames";
466 Sequence
< EnhancedCustomShapeTextFrame
> aTextFrameSeq (1);
468 EnhancedCustomShapeTextFrame aTextFrame
;
470 static const CustomShapeProvider::ParameterPairData aData
=
472 EnhancedCustomShapeParameterType::EQUATION
,
473 EnhancedCustomShapeParameterType::NORMAL
,
476 aTextFrame
.TopLeft
= createParameterPair(&aData
);
479 static const CustomShapeProvider::ParameterPairData aData
=
481 EnhancedCustomShapeParameterType::EQUATION
,
482 EnhancedCustomShapeParameterType::EQUATION
,
485 aTextFrame
.BottomRight
= createParameterPair(&aData
);
487 aTextFrameSeq
[0] = aTextFrame
;
489 aPropSequence
[3].Value
= makeAny (aTextFrameSeq
);
491 aPropertyMap
[PROP_Path
] <<= aPropSequence
;
494 awt::Rectangle aRectangle
;
497 aRectangle
.Width
= 0;
498 aRectangle
.Height
= 0;
499 aPropertyMap
[PROP_ViewBox
] <<= aRectangle
;
501 aPropertyMap
[ PROP_Type
] <<= OUString("ooxml-flowChartManualOperation");
506 class ShapeCsnipRoundRect
: public CustomShapeProvider
508 virtual PropertyMap
getProperties()
510 PropertyMap aPropertyMap
;
513 Sequence
< EnhancedCustomShapeAdjustmentValue
> aAdjSequence (2);
515 Any
aAny ((sal_Int32
) 16667);
516 aAdjSequence
[0].Value
= aAny
;
517 aAdjSequence
[0].Name
= "adj1";
520 Any
aAny ((sal_Int32
) 16667);
521 aAdjSequence
[1].Value
= aAny
;
522 aAdjSequence
[1].Name
= "adj2";
524 aPropertyMap
[PROP_AdjustmentValues
] <<= aAdjSequence
;
527 static const char *aStrings
[] = {
528 "if(0-$0 ,0,if(50000-$0 ,$0 ,50000))",
529 "if(0-$1 ,0,if(50000-$1 ,$1 ,50000))",
530 "min(logwidth,logheight)",
540 "(10800000)/60000.0",
543 aPropertyMap
[PROP_Equations
] <<= createStringSequence( SAL_N_ELEMENTS( aStrings
), aStrings
);
546 Sequence
< Sequence
< PropertyValue
> > aPropSequenceSequence (2);
548 Sequence
< PropertyValue
> aPropSequence (4);
550 aPropSequence
[0].Name
= "Position";
551 static const CustomShapeProvider::ParameterPairData aData
=
553 EnhancedCustomShapeParameterType::EQUATION
,
554 EnhancedCustomShapeParameterType::NORMAL
,
557 aPropSequence
[0].Value
= makeAny (createParameterPair(&aData
));
560 aPropSequence
[1].Name
= "RangeXMaximum";
561 EnhancedCustomShapeParameter aParameter
;
562 Any
aAny ((sal_Int32
) 50000);
563 aParameter
.Value
= aAny
;
564 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
565 aPropSequence
[1].Value
= makeAny (aParameter
);
568 aPropSequence
[2].Name
= "RangeXMinimum";
569 EnhancedCustomShapeParameter aParameter
;
570 Any
aAny ((sal_Int32
) 0);
571 aParameter
.Value
= aAny
;
572 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
573 aPropSequence
[2].Value
= makeAny (aParameter
);
576 aPropSequence
[3].Name
= "RefX";
577 Any
aAny ((sal_Int32
) 0);
578 aPropSequence
[3].Value
= makeAny (aAny
);
580 aPropSequenceSequence
[0] = aPropSequence
;
583 Sequence
< PropertyValue
> aPropSequence (4);
585 aPropSequence
[0].Name
= "Position";
586 static const CustomShapeProvider::ParameterPairData aData
=
588 EnhancedCustomShapeParameterType::EQUATION
,
589 EnhancedCustomShapeParameterType::NORMAL
,
592 aPropSequence
[0].Value
= makeAny (createParameterPair(&aData
));
595 aPropSequence
[1].Name
= "RangeXMaximum";
596 EnhancedCustomShapeParameter aParameter
;
597 Any
aAny ((sal_Int32
) 50000);
598 aParameter
.Value
= aAny
;
599 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
600 aPropSequence
[1].Value
= makeAny (aParameter
);
603 aPropSequence
[2].Name
= "RangeXMinimum";
604 EnhancedCustomShapeParameter aParameter
;
605 Any
aAny ((sal_Int32
) 0);
606 aParameter
.Value
= aAny
;
607 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
608 aPropSequence
[2].Value
= makeAny (aParameter
);
611 aPropSequence
[3].Name
= "RefX";
612 Any
aAny ((sal_Int32
) 1);
613 aPropSequence
[3].Value
= makeAny (aAny
);
615 aPropSequenceSequence
[1] = aPropSequence
;
617 aPropertyMap
[PROP_Handles
] <<= aPropSequenceSequence
;
620 aPropertyMap
[PROP_MirroredX
] <<= Any ((sal_Bool
) sal_False
);
623 aPropertyMap
[PROP_MirroredY
] <<= Any ((sal_Bool
) sal_False
);
626 Sequence
< PropertyValue
> aPropSequence (3);
628 aPropSequence
[0].Name
= "Coordinates";
629 static const CustomShapeProvider::ParameterPairData aData
[] = {
631 EnhancedCustomShapeParameterType::EQUATION
,
632 EnhancedCustomShapeParameterType::NORMAL
,
636 EnhancedCustomShapeParameterType::EQUATION
,
637 EnhancedCustomShapeParameterType::NORMAL
,
641 EnhancedCustomShapeParameterType::EQUATION
,
642 EnhancedCustomShapeParameterType::EQUATION
,
646 EnhancedCustomShapeParameterType::EQUATION
,
647 EnhancedCustomShapeParameterType::EQUATION
,
651 EnhancedCustomShapeParameterType::NORMAL
,
652 EnhancedCustomShapeParameterType::EQUATION
,
656 EnhancedCustomShapeParameterType::NORMAL
,
657 EnhancedCustomShapeParameterType::EQUATION
,
661 EnhancedCustomShapeParameterType::EQUATION
,
662 EnhancedCustomShapeParameterType::EQUATION
,
666 EnhancedCustomShapeParameterType::EQUATION
,
667 EnhancedCustomShapeParameterType::EQUATION
,
671 aPropSequence
[0].Value
= makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData
), aData
));
674 aPropSequence
[1].Name
= "Segments";
675 static const sal_uInt16 nValues
[] = {
683 aPropSequence
[1].Value
= makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues
), nValues
));
686 aPropSequence
[2].Name
= "TextFrames";
687 Sequence
< EnhancedCustomShapeTextFrame
> aTextFrameSeq (1);
689 EnhancedCustomShapeTextFrame aTextFrame
;
691 static const CustomShapeProvider::ParameterPairData aData
=
693 EnhancedCustomShapeParameterType::EQUATION
,
694 EnhancedCustomShapeParameterType::EQUATION
,
697 aTextFrame
.TopLeft
= createParameterPair(&aData
);
700 static const CustomShapeProvider::ParameterPairData aData
=
702 EnhancedCustomShapeParameterType::EQUATION
,
703 EnhancedCustomShapeParameterType::EQUATION
,
706 aTextFrame
.BottomRight
= createParameterPair(&aData
);
708 aTextFrameSeq
[0] = aTextFrame
;
710 aPropSequence
[2].Value
= makeAny (aTextFrameSeq
);
712 aPropertyMap
[PROP_Path
] <<= aPropSequence
;
715 awt::Rectangle aRectangle
;
718 aRectangle
.Width
= 0;
719 aRectangle
.Height
= 0;
720 aPropertyMap
[PROP_ViewBox
] <<= aRectangle
;
722 aPropertyMap
[ PROP_Type
] <<= OUString("ooxml-snipRoundRect");
727 class ShapeCmathPlus
: public CustomShapeProvider
729 virtual PropertyMap
getProperties()
731 PropertyMap aPropertyMap
;
734 Sequence
< EnhancedCustomShapeAdjustmentValue
> aAdjSequence (1);
736 Any
aAny ((sal_Int32
) 23520);
737 aAdjSequence
[0].Value
= aAny
;
738 aAdjSequence
[0].Name
= "adj1";
740 aPropertyMap
[PROP_AdjustmentValues
] <<= aAdjSequence
;
743 static const char *aStrings
[] = {
744 "if(0-$0 ,0,if(73490-$0 ,$0 ,73490))",
745 "logwidth*73490/200000",
746 "logheight*73490/200000",
747 "min(logwidth,logheight)",
760 aPropertyMap
[PROP_Equations
] <<= createStringSequence( SAL_N_ELEMENTS( aStrings
), aStrings
);
763 Sequence
< Sequence
< PropertyValue
> > aPropSequenceSequence (1);
765 Sequence
< PropertyValue
> aPropSequence (4);
767 aPropSequence
[0].Name
= "Position";
768 static const CustomShapeProvider::ParameterPairData aData
=
770 EnhancedCustomShapeParameterType::NORMAL
,
771 EnhancedCustomShapeParameterType::EQUATION
,
774 aPropSequence
[0].Value
= makeAny (createParameterPair(&aData
));
777 aPropSequence
[1].Name
= "RangeYMaximum";
778 EnhancedCustomShapeParameter aParameter
;
779 Any
aAny ((sal_Int32
) 73490);
780 aParameter
.Value
= aAny
;
781 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
782 aPropSequence
[1].Value
= makeAny (aParameter
);
785 aPropSequence
[2].Name
= "RangeYMinimum";
786 EnhancedCustomShapeParameter aParameter
;
787 Any
aAny ((sal_Int32
) 0);
788 aParameter
.Value
= aAny
;
789 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
790 aPropSequence
[2].Value
= makeAny (aParameter
);
793 aPropSequence
[3].Name
= "RefY";
794 Any
aAny ((sal_Int32
) 0);
795 aPropSequence
[3].Value
= makeAny (aAny
);
797 aPropSequenceSequence
[0] = aPropSequence
;
799 aPropertyMap
[PROP_Handles
] <<= aPropSequenceSequence
;
802 aPropertyMap
[PROP_MirroredX
] <<= Any ((sal_Bool
) sal_False
);
805 aPropertyMap
[PROP_MirroredY
] <<= Any ((sal_Bool
) sal_False
);
808 Sequence
< PropertyValue
> aPropSequence (3);
810 aPropSequence
[0].Name
= "Coordinates";
811 static const CustomShapeProvider::ParameterPairData aData
[] = {
813 EnhancedCustomShapeParameterType::EQUATION
,
814 EnhancedCustomShapeParameterType::EQUATION
,
818 EnhancedCustomShapeParameterType::EQUATION
,
819 EnhancedCustomShapeParameterType::EQUATION
,
823 EnhancedCustomShapeParameterType::EQUATION
,
824 EnhancedCustomShapeParameterType::EQUATION
,
828 EnhancedCustomShapeParameterType::EQUATION
,
829 EnhancedCustomShapeParameterType::EQUATION
,
833 EnhancedCustomShapeParameterType::EQUATION
,
834 EnhancedCustomShapeParameterType::EQUATION
,
838 EnhancedCustomShapeParameterType::EQUATION
,
839 EnhancedCustomShapeParameterType::EQUATION
,
843 EnhancedCustomShapeParameterType::EQUATION
,
844 EnhancedCustomShapeParameterType::EQUATION
,
848 EnhancedCustomShapeParameterType::EQUATION
,
849 EnhancedCustomShapeParameterType::EQUATION
,
853 EnhancedCustomShapeParameterType::EQUATION
,
854 EnhancedCustomShapeParameterType::EQUATION
,
858 EnhancedCustomShapeParameterType::EQUATION
,
859 EnhancedCustomShapeParameterType::EQUATION
,
863 EnhancedCustomShapeParameterType::EQUATION
,
864 EnhancedCustomShapeParameterType::EQUATION
,
868 EnhancedCustomShapeParameterType::EQUATION
,
869 EnhancedCustomShapeParameterType::EQUATION
,
873 aPropSequence
[0].Value
= makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData
), aData
));
876 aPropSequence
[1].Name
= "Segments";
877 static const sal_uInt16 nValues
[] = {
884 aPropSequence
[1].Value
= makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues
), nValues
));
887 aPropSequence
[2].Name
= "TextFrames";
888 Sequence
< EnhancedCustomShapeTextFrame
> aTextFrameSeq (1);
890 EnhancedCustomShapeTextFrame aTextFrame
;
892 static const CustomShapeProvider::ParameterPairData aData
=
894 EnhancedCustomShapeParameterType::EQUATION
,
895 EnhancedCustomShapeParameterType::EQUATION
,
898 aTextFrame
.TopLeft
= createParameterPair(&aData
);
901 static const CustomShapeProvider::ParameterPairData aData
=
903 EnhancedCustomShapeParameterType::EQUATION
,
904 EnhancedCustomShapeParameterType::EQUATION
,
907 aTextFrame
.BottomRight
= createParameterPair(&aData
);
909 aTextFrameSeq
[0] = aTextFrame
;
911 aPropSequence
[2].Value
= makeAny (aTextFrameSeq
);
913 aPropertyMap
[PROP_Path
] <<= aPropSequence
;
916 awt::Rectangle aRectangle
;
919 aRectangle
.Width
= 0;
920 aRectangle
.Height
= 0;
921 aPropertyMap
[PROP_ViewBox
] <<= aRectangle
;
923 aPropertyMap
[ PROP_Type
] <<= OUString("ooxml-mathPlus");
928 class ShapeCactionButtonForwardNext
: public CustomShapeProvider
930 virtual PropertyMap
getProperties()
932 PropertyMap aPropertyMap
;
935 aPropertyMap
[PROP_AdjustmentValues
] <<= Sequence
< OUString
>(0);
938 static const char *aStrings
[] = {
939 "min(logwidth,logheight)",
950 aPropertyMap
[PROP_Equations
] <<= createStringSequence( SAL_N_ELEMENTS( aStrings
), aStrings
);
953 aPropertyMap
[PROP_Handles
] <<= Sequence
< OUString
>(0);
956 aPropertyMap
[PROP_MirroredX
] <<= Any ((sal_Bool
) sal_False
);
959 aPropertyMap
[PROP_MirroredY
] <<= Any ((sal_Bool
) sal_False
);
962 Sequence
< PropertyValue
> aPropSequence (3);
964 aPropSequence
[0].Name
= "Coordinates";
965 static const CustomShapeProvider::ParameterPairData aData
[] = {
967 EnhancedCustomShapeParameterType::NORMAL
,
968 EnhancedCustomShapeParameterType::NORMAL
,
972 EnhancedCustomShapeParameterType::EQUATION
,
973 EnhancedCustomShapeParameterType::NORMAL
,
977 EnhancedCustomShapeParameterType::EQUATION
,
978 EnhancedCustomShapeParameterType::EQUATION
,
982 EnhancedCustomShapeParameterType::NORMAL
,
983 EnhancedCustomShapeParameterType::EQUATION
,
987 EnhancedCustomShapeParameterType::EQUATION
,
988 EnhancedCustomShapeParameterType::EQUATION
,
992 EnhancedCustomShapeParameterType::EQUATION
,
993 EnhancedCustomShapeParameterType::EQUATION
,
997 EnhancedCustomShapeParameterType::EQUATION
,
998 EnhancedCustomShapeParameterType::EQUATION
,
1002 EnhancedCustomShapeParameterType::EQUATION
,
1003 EnhancedCustomShapeParameterType::EQUATION
,
1007 EnhancedCustomShapeParameterType::EQUATION
,
1008 EnhancedCustomShapeParameterType::EQUATION
,
1012 EnhancedCustomShapeParameterType::EQUATION
,
1013 EnhancedCustomShapeParameterType::EQUATION
,
1017 EnhancedCustomShapeParameterType::EQUATION
,
1018 EnhancedCustomShapeParameterType::EQUATION
,
1022 EnhancedCustomShapeParameterType::EQUATION
,
1023 EnhancedCustomShapeParameterType::EQUATION
,
1027 EnhancedCustomShapeParameterType::EQUATION
,
1028 EnhancedCustomShapeParameterType::EQUATION
,
1032 EnhancedCustomShapeParameterType::NORMAL
,
1033 EnhancedCustomShapeParameterType::NORMAL
,
1037 EnhancedCustomShapeParameterType::EQUATION
,
1038 EnhancedCustomShapeParameterType::NORMAL
,
1042 EnhancedCustomShapeParameterType::EQUATION
,
1043 EnhancedCustomShapeParameterType::EQUATION
,
1047 EnhancedCustomShapeParameterType::NORMAL
,
1048 EnhancedCustomShapeParameterType::EQUATION
,
1052 aPropSequence
[0].Value
= makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData
), aData
));
1055 aPropSequence
[1].Name
= "Segments";
1056 static const sal_uInt16 nValues
[] = {
1083 aPropSequence
[1].Value
= makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues
), nValues
));
1086 aPropSequence
[2].Name
= "TextFrames";
1087 Sequence
< EnhancedCustomShapeTextFrame
> aTextFrameSeq (1);
1089 EnhancedCustomShapeTextFrame aTextFrame
;
1091 static const CustomShapeProvider::ParameterPairData aData
=
1093 EnhancedCustomShapeParameterType::NORMAL
,
1094 EnhancedCustomShapeParameterType::NORMAL
,
1097 aTextFrame
.TopLeft
= createParameterPair(&aData
);
1100 static const CustomShapeProvider::ParameterPairData aData
=
1102 EnhancedCustomShapeParameterType::EQUATION
,
1103 EnhancedCustomShapeParameterType::EQUATION
,
1106 aTextFrame
.BottomRight
= createParameterPair(&aData
);
1108 aTextFrameSeq
[0] = aTextFrame
;
1110 aPropSequence
[2].Value
= makeAny (aTextFrameSeq
);
1112 aPropertyMap
[PROP_Path
] <<= aPropSequence
;
1115 awt::Rectangle aRectangle
;
1118 aRectangle
.Width
= 0;
1119 aRectangle
.Height
= 0;
1120 aPropertyMap
[PROP_ViewBox
] <<= aRectangle
;
1122 aPropertyMap
[ PROP_Type
] <<= OUString("ooxml-actionButtonForwardNext");
1124 return aPropertyMap
;
1127 class ShapeCcan
: public CustomShapeProvider
1129 virtual PropertyMap
getProperties()
1131 PropertyMap aPropertyMap
;
1134 Sequence
< EnhancedCustomShapeAdjustmentValue
> aAdjSequence (1);
1136 Any
aAny ((sal_Int32
) 25000);
1137 aAdjSequence
[0].Value
= aAny
;
1138 aAdjSequence
[0].Name
= "adj";
1140 aPropertyMap
[PROP_AdjustmentValues
] <<= aAdjSequence
;
1143 static const char *aStrings
[] = {
1144 "min(logwidth,logheight)",
1145 "50000*logheight/?0 ",
1146 "if(0-$0 ,0,if(?1 -$0 ,$0 ,?1 ))",
1155 "(10800000)/60000.0",
1156 "(-10800000)/60000.0",
1158 "(10800000)/60000.0",
1159 "(10800000)/60000.0",
1160 "(10800000)/60000.0",
1162 "(10800000)/60000.0",
1164 "(10800000)/60000.0",
1165 "(10800000)/60000.0",
1166 "(10800000)/60000.0",
1168 "(10800000)/60000.0"
1170 aPropertyMap
[PROP_Equations
] <<= createStringSequence( SAL_N_ELEMENTS( aStrings
), aStrings
);
1173 Sequence
< Sequence
< PropertyValue
> > aPropSequenceSequence (1);
1175 Sequence
< PropertyValue
> aPropSequence (4);
1177 aPropSequence
[0].Name
= "Position";
1178 static const CustomShapeProvider::ParameterPairData aData
=
1180 EnhancedCustomShapeParameterType::EQUATION
,
1181 EnhancedCustomShapeParameterType::EQUATION
,
1184 aPropSequence
[0].Value
= makeAny (createParameterPair(&aData
));
1187 aPropSequence
[1].Name
= "RangeYMaximum";
1188 EnhancedCustomShapeParameter aParameter
;
1189 Any
aAny ((sal_Int32
) 1);
1190 aParameter
.Value
= aAny
;
1191 aParameter
.Type
= EnhancedCustomShapeParameterType::EQUATION
;
1192 aPropSequence
[1].Value
= makeAny (aParameter
);
1195 aPropSequence
[2].Name
= "RangeYMinimum";
1196 EnhancedCustomShapeParameter aParameter
;
1197 Any
aAny ((sal_Int32
) 0);
1198 aParameter
.Value
= aAny
;
1199 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
1200 aPropSequence
[2].Value
= makeAny (aParameter
);
1203 aPropSequence
[3].Name
= "RefY";
1204 Any
aAny ((sal_Int32
) 0);
1205 aPropSequence
[3].Value
= makeAny (aAny
);
1207 aPropSequenceSequence
[0] = aPropSequence
;
1209 aPropertyMap
[PROP_Handles
] <<= aPropSequenceSequence
;
1212 aPropertyMap
[PROP_MirroredX
] <<= Any ((sal_Bool
) sal_False
);
1215 aPropertyMap
[PROP_MirroredY
] <<= Any ((sal_Bool
) sal_False
);
1218 Sequence
< PropertyValue
> aPropSequence (3);
1220 aPropSequence
[0].Name
= "Coordinates";
1221 static const CustomShapeProvider::ParameterPairData aData
[] = {
1223 EnhancedCustomShapeParameterType::NORMAL
,
1224 EnhancedCustomShapeParameterType::EQUATION
,
1228 EnhancedCustomShapeParameterType::EQUATION
,
1229 EnhancedCustomShapeParameterType::EQUATION
,
1233 EnhancedCustomShapeParameterType::EQUATION
,
1234 EnhancedCustomShapeParameterType::EQUATION
,
1238 EnhancedCustomShapeParameterType::EQUATION
,
1239 EnhancedCustomShapeParameterType::EQUATION
,
1243 EnhancedCustomShapeParameterType::EQUATION
,
1244 EnhancedCustomShapeParameterType::EQUATION
,
1248 EnhancedCustomShapeParameterType::EQUATION
,
1249 EnhancedCustomShapeParameterType::EQUATION
,
1253 EnhancedCustomShapeParameterType::NORMAL
,
1254 EnhancedCustomShapeParameterType::EQUATION
,
1258 EnhancedCustomShapeParameterType::EQUATION
,
1259 EnhancedCustomShapeParameterType::EQUATION
,
1263 EnhancedCustomShapeParameterType::EQUATION
,
1264 EnhancedCustomShapeParameterType::EQUATION
,
1268 EnhancedCustomShapeParameterType::EQUATION
,
1269 EnhancedCustomShapeParameterType::EQUATION
,
1273 EnhancedCustomShapeParameterType::EQUATION
,
1274 EnhancedCustomShapeParameterType::EQUATION
,
1278 EnhancedCustomShapeParameterType::EQUATION
,
1279 EnhancedCustomShapeParameterType::EQUATION
,
1283 EnhancedCustomShapeParameterType::EQUATION
,
1284 EnhancedCustomShapeParameterType::EQUATION
,
1288 EnhancedCustomShapeParameterType::EQUATION
,
1289 EnhancedCustomShapeParameterType::EQUATION
,
1293 EnhancedCustomShapeParameterType::EQUATION
,
1294 EnhancedCustomShapeParameterType::EQUATION
,
1298 EnhancedCustomShapeParameterType::EQUATION
,
1299 EnhancedCustomShapeParameterType::EQUATION
,
1303 EnhancedCustomShapeParameterType::EQUATION
,
1304 EnhancedCustomShapeParameterType::EQUATION
,
1308 EnhancedCustomShapeParameterType::EQUATION
,
1309 EnhancedCustomShapeParameterType::EQUATION
,
1313 EnhancedCustomShapeParameterType::EQUATION
,
1314 EnhancedCustomShapeParameterType::EQUATION
,
1318 EnhancedCustomShapeParameterType::NORMAL
,
1319 EnhancedCustomShapeParameterType::EQUATION
,
1323 aPropSequence
[0].Value
= makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData
), aData
));
1326 aPropSequence
[1].Name
= "Segments";
1327 static const sal_uInt16 nValues
[] = {
1350 aPropSequence
[1].Value
= makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues
), nValues
));
1353 aPropSequence
[2].Name
= "TextFrames";
1354 Sequence
< EnhancedCustomShapeTextFrame
> aTextFrameSeq (1);
1356 EnhancedCustomShapeTextFrame aTextFrame
;
1358 static const CustomShapeProvider::ParameterPairData aData
=
1360 EnhancedCustomShapeParameterType::NORMAL
,
1361 EnhancedCustomShapeParameterType::EQUATION
,
1364 aTextFrame
.TopLeft
= createParameterPair(&aData
);
1367 static const CustomShapeProvider::ParameterPairData aData
=
1369 EnhancedCustomShapeParameterType::EQUATION
,
1370 EnhancedCustomShapeParameterType::EQUATION
,
1373 aTextFrame
.BottomRight
= createParameterPair(&aData
);
1375 aTextFrameSeq
[0] = aTextFrame
;
1377 aPropSequence
[2].Value
= makeAny (aTextFrameSeq
);
1379 aPropertyMap
[PROP_Path
] <<= aPropSequence
;
1382 awt::Rectangle aRectangle
;
1385 aRectangle
.Width
= 0;
1386 aRectangle
.Height
= 0;
1387 aPropertyMap
[PROP_ViewBox
] <<= aRectangle
;
1389 aPropertyMap
[ PROP_Type
] <<= OUString("ooxml-can");
1391 return aPropertyMap
;
1394 class ShapeCfoldedCorner
: public CustomShapeProvider
1396 virtual PropertyMap
getProperties()
1398 PropertyMap aPropertyMap
;
1401 Sequence
< EnhancedCustomShapeAdjustmentValue
> aAdjSequence (1);
1403 Any
aAny ((sal_Int32
) 16667);
1404 aAdjSequence
[0].Value
= aAny
;
1405 aAdjSequence
[0].Name
= "adj";
1407 aPropertyMap
[PROP_AdjustmentValues
] <<= aAdjSequence
;
1410 static const char *aStrings
[] = {
1411 "if(0-$0 ,0,if(50000-$0 ,$0 ,50000))",
1412 "min(logwidth,logheight)",
1424 aPropertyMap
[PROP_Equations
] <<= createStringSequence( SAL_N_ELEMENTS( aStrings
), aStrings
);
1427 Sequence
< Sequence
< PropertyValue
> > aPropSequenceSequence (1);
1429 Sequence
< PropertyValue
> aPropSequence (4);
1431 aPropSequence
[0].Name
= "Position";
1432 static const CustomShapeProvider::ParameterPairData aData
=
1434 EnhancedCustomShapeParameterType::EQUATION
,
1435 EnhancedCustomShapeParameterType::EQUATION
,
1438 aPropSequence
[0].Value
= makeAny (createParameterPair(&aData
));
1441 aPropSequence
[1].Name
= "RangeXMaximum";
1442 EnhancedCustomShapeParameter aParameter
;
1443 Any
aAny ((sal_Int32
) 50000);
1444 aParameter
.Value
= aAny
;
1445 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
1446 aPropSequence
[1].Value
= makeAny (aParameter
);
1449 aPropSequence
[2].Name
= "RangeXMinimum";
1450 EnhancedCustomShapeParameter aParameter
;
1451 Any
aAny ((sal_Int32
) 0);
1452 aParameter
.Value
= aAny
;
1453 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
1454 aPropSequence
[2].Value
= makeAny (aParameter
);
1457 aPropSequence
[3].Name
= "RefX";
1458 Any
aAny ((sal_Int32
) 0);
1459 aPropSequence
[3].Value
= makeAny (aAny
);
1461 aPropSequenceSequence
[0] = aPropSequence
;
1463 aPropertyMap
[PROP_Handles
] <<= aPropSequenceSequence
;
1466 aPropertyMap
[PROP_MirroredX
] <<= Any ((sal_Bool
) sal_False
);
1469 aPropertyMap
[PROP_MirroredY
] <<= Any ((sal_Bool
) sal_False
);
1472 Sequence
< PropertyValue
> aPropSequence (3);
1474 aPropSequence
[0].Name
= "Coordinates";
1475 static const CustomShapeProvider::ParameterPairData aData
[] = {
1477 EnhancedCustomShapeParameterType::NORMAL
,
1478 EnhancedCustomShapeParameterType::NORMAL
,
1482 EnhancedCustomShapeParameterType::EQUATION
,
1483 EnhancedCustomShapeParameterType::NORMAL
,
1487 EnhancedCustomShapeParameterType::EQUATION
,
1488 EnhancedCustomShapeParameterType::EQUATION
,
1492 EnhancedCustomShapeParameterType::EQUATION
,
1493 EnhancedCustomShapeParameterType::EQUATION
,
1497 EnhancedCustomShapeParameterType::NORMAL
,
1498 EnhancedCustomShapeParameterType::EQUATION
,
1502 EnhancedCustomShapeParameterType::EQUATION
,
1503 EnhancedCustomShapeParameterType::EQUATION
,
1507 EnhancedCustomShapeParameterType::EQUATION
,
1508 EnhancedCustomShapeParameterType::EQUATION
,
1512 EnhancedCustomShapeParameterType::EQUATION
,
1513 EnhancedCustomShapeParameterType::EQUATION
,
1517 EnhancedCustomShapeParameterType::EQUATION
,
1518 EnhancedCustomShapeParameterType::EQUATION
,
1522 EnhancedCustomShapeParameterType::EQUATION
,
1523 EnhancedCustomShapeParameterType::EQUATION
,
1527 EnhancedCustomShapeParameterType::EQUATION
,
1528 EnhancedCustomShapeParameterType::EQUATION
,
1532 EnhancedCustomShapeParameterType::EQUATION
,
1533 EnhancedCustomShapeParameterType::EQUATION
,
1537 EnhancedCustomShapeParameterType::NORMAL
,
1538 EnhancedCustomShapeParameterType::EQUATION
,
1542 EnhancedCustomShapeParameterType::NORMAL
,
1543 EnhancedCustomShapeParameterType::NORMAL
,
1547 EnhancedCustomShapeParameterType::EQUATION
,
1548 EnhancedCustomShapeParameterType::NORMAL
,
1552 EnhancedCustomShapeParameterType::EQUATION
,
1553 EnhancedCustomShapeParameterType::EQUATION
,
1557 aPropSequence
[0].Value
= makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData
), aData
));
1560 aPropSequence
[1].Name
= "Segments";
1561 static const sal_uInt16 nValues
[] = {
1579 aPropSequence
[1].Value
= makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues
), nValues
));
1582 aPropSequence
[2].Name
= "TextFrames";
1583 Sequence
< EnhancedCustomShapeTextFrame
> aTextFrameSeq (1);
1585 EnhancedCustomShapeTextFrame aTextFrame
;
1587 static const CustomShapeProvider::ParameterPairData aData
=
1589 EnhancedCustomShapeParameterType::NORMAL
,
1590 EnhancedCustomShapeParameterType::NORMAL
,
1593 aTextFrame
.TopLeft
= createParameterPair(&aData
);
1596 static const CustomShapeProvider::ParameterPairData aData
=
1598 EnhancedCustomShapeParameterType::EQUATION
,
1599 EnhancedCustomShapeParameterType::EQUATION
,
1602 aTextFrame
.BottomRight
= createParameterPair(&aData
);
1604 aTextFrameSeq
[0] = aTextFrame
;
1606 aPropSequence
[2].Value
= makeAny (aTextFrameSeq
);
1608 aPropertyMap
[PROP_Path
] <<= aPropSequence
;
1611 awt::Rectangle aRectangle
;
1614 aRectangle
.Width
= 0;
1615 aRectangle
.Height
= 0;
1616 aPropertyMap
[PROP_ViewBox
] <<= aRectangle
;
1618 aPropertyMap
[ PROP_Type
] <<= OUString("ooxml-foldedCorner");
1620 return aPropertyMap
;
1623 class ShapeCstar32
: public CustomShapeProvider
1625 virtual PropertyMap
getProperties()
1627 PropertyMap aPropertyMap
;
1630 Sequence
< EnhancedCustomShapeAdjustmentValue
> aAdjSequence (1);
1632 Any
aAny ((sal_Int32
) 37500);
1633 aAdjSequence
[0].Value
= aAny
;
1634 aAdjSequence
[0].Name
= "adj";
1636 aPropertyMap
[PROP_AdjustmentValues
] <<= aAdjSequence
;
1639 static const char *aStrings
[] = {
1640 "if(0-$0 ,0,if(50000-$0 ,$0 ,50000))",
1645 "?1 *cos(pi*(2700000)/10800000)",
1653 "?9 *sin(pi*(2700000)/10800000)",
1689 "?47 *99518/100000",
1690 "?47 *95694/100000",
1691 "?47 *88192/100000",
1692 "?47 *77301/100000",
1693 "?47 *63439/100000",
1694 "?47 *47140/100000",
1695 "?47 *29028/100000",
1697 "?48 *99518/100000",
1698 "?48 *95694/100000",
1699 "?48 *88192/100000",
1700 "?48 *77301/100000",
1701 "?48 *63439/100000",
1702 "?48 *47140/100000",
1703 "?48 *29028/100000",
1737 "?47 *cos(pi*(2700000)/10800000)",
1738 "?48 *sin(pi*(2700000)/10800000)",
1744 "min(logwidth,logheight)/2",
1748 aPropertyMap
[PROP_Equations
] <<= createStringSequence( SAL_N_ELEMENTS( aStrings
), aStrings
);
1751 Sequence
< Sequence
< PropertyValue
> > aPropSequenceSequence (1);
1753 Sequence
< PropertyValue
> aPropSequence (4);
1755 aPropSequence
[0].Name
= "Position";
1756 static const CustomShapeProvider::ParameterPairData aData
=
1758 EnhancedCustomShapeParameterType::EQUATION
,
1759 EnhancedCustomShapeParameterType::EQUATION
,
1762 aPropSequence
[0].Value
= makeAny (createParameterPair(&aData
));
1765 aPropSequence
[1].Name
= "RangeYMaximum";
1766 EnhancedCustomShapeParameter aParameter
;
1767 Any
aAny ((sal_Int32
) 104);
1768 aParameter
.Value
= aAny
;
1769 aParameter
.Type
= EnhancedCustomShapeParameterType::EQUATION
;
1770 aPropSequence
[1].Value
= makeAny (aParameter
);
1773 aPropSequence
[2].Name
= "RangeYMinimum";
1774 EnhancedCustomShapeParameter aParameter
;
1775 Any
aAny ((sal_Int32
) 0);
1776 aParameter
.Value
= aAny
;
1777 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
1778 aPropSequence
[2].Value
= makeAny (aParameter
);
1781 aPropSequence
[3].Name
= "RefY";
1782 Any
aAny ((sal_Int32
) 0);
1783 aPropSequence
[3].Value
= makeAny (aAny
);
1785 aPropSequenceSequence
[0] = aPropSequence
;
1787 aPropertyMap
[PROP_Handles
] <<= aPropSequenceSequence
;
1790 aPropertyMap
[PROP_MirroredX
] <<= Any ((sal_Bool
) sal_False
);
1793 aPropertyMap
[PROP_MirroredY
] <<= Any ((sal_Bool
) sal_False
);
1796 Sequence
< PropertyValue
> aPropSequence (3);
1798 aPropSequence
[0].Name
= "Coordinates";
1799 static const CustomShapeProvider::ParameterPairData aData
[] = {
1801 EnhancedCustomShapeParameterType::NORMAL
,
1802 EnhancedCustomShapeParameterType::EQUATION
,
1806 EnhancedCustomShapeParameterType::EQUATION
,
1807 EnhancedCustomShapeParameterType::EQUATION
,
1811 EnhancedCustomShapeParameterType::EQUATION
,
1812 EnhancedCustomShapeParameterType::EQUATION
,
1816 EnhancedCustomShapeParameterType::EQUATION
,
1817 EnhancedCustomShapeParameterType::EQUATION
,
1821 EnhancedCustomShapeParameterType::EQUATION
,
1822 EnhancedCustomShapeParameterType::EQUATION
,
1826 EnhancedCustomShapeParameterType::EQUATION
,
1827 EnhancedCustomShapeParameterType::EQUATION
,
1831 EnhancedCustomShapeParameterType::EQUATION
,
1832 EnhancedCustomShapeParameterType::EQUATION
,
1836 EnhancedCustomShapeParameterType::EQUATION
,
1837 EnhancedCustomShapeParameterType::EQUATION
,
1841 EnhancedCustomShapeParameterType::EQUATION
,
1842 EnhancedCustomShapeParameterType::EQUATION
,
1846 EnhancedCustomShapeParameterType::EQUATION
,
1847 EnhancedCustomShapeParameterType::EQUATION
,
1851 EnhancedCustomShapeParameterType::EQUATION
,
1852 EnhancedCustomShapeParameterType::EQUATION
,
1856 EnhancedCustomShapeParameterType::EQUATION
,
1857 EnhancedCustomShapeParameterType::EQUATION
,
1861 EnhancedCustomShapeParameterType::EQUATION
,
1862 EnhancedCustomShapeParameterType::EQUATION
,
1866 EnhancedCustomShapeParameterType::EQUATION
,
1867 EnhancedCustomShapeParameterType::EQUATION
,
1871 EnhancedCustomShapeParameterType::EQUATION
,
1872 EnhancedCustomShapeParameterType::EQUATION
,
1876 EnhancedCustomShapeParameterType::EQUATION
,
1877 EnhancedCustomShapeParameterType::EQUATION
,
1881 EnhancedCustomShapeParameterType::EQUATION
,
1882 EnhancedCustomShapeParameterType::NORMAL
,
1886 EnhancedCustomShapeParameterType::EQUATION
,
1887 EnhancedCustomShapeParameterType::EQUATION
,
1891 EnhancedCustomShapeParameterType::EQUATION
,
1892 EnhancedCustomShapeParameterType::EQUATION
,
1896 EnhancedCustomShapeParameterType::EQUATION
,
1897 EnhancedCustomShapeParameterType::EQUATION
,
1901 EnhancedCustomShapeParameterType::EQUATION
,
1902 EnhancedCustomShapeParameterType::EQUATION
,
1906 EnhancedCustomShapeParameterType::EQUATION
,
1907 EnhancedCustomShapeParameterType::EQUATION
,
1911 EnhancedCustomShapeParameterType::EQUATION
,
1912 EnhancedCustomShapeParameterType::EQUATION
,
1916 EnhancedCustomShapeParameterType::EQUATION
,
1917 EnhancedCustomShapeParameterType::EQUATION
,
1921 EnhancedCustomShapeParameterType::EQUATION
,
1922 EnhancedCustomShapeParameterType::EQUATION
,
1926 EnhancedCustomShapeParameterType::EQUATION
,
1927 EnhancedCustomShapeParameterType::EQUATION
,
1931 EnhancedCustomShapeParameterType::EQUATION
,
1932 EnhancedCustomShapeParameterType::EQUATION
,
1936 EnhancedCustomShapeParameterType::EQUATION
,
1937 EnhancedCustomShapeParameterType::EQUATION
,
1941 EnhancedCustomShapeParameterType::EQUATION
,
1942 EnhancedCustomShapeParameterType::EQUATION
,
1946 EnhancedCustomShapeParameterType::EQUATION
,
1947 EnhancedCustomShapeParameterType::EQUATION
,
1951 EnhancedCustomShapeParameterType::EQUATION
,
1952 EnhancedCustomShapeParameterType::EQUATION
,
1956 EnhancedCustomShapeParameterType::EQUATION
,
1957 EnhancedCustomShapeParameterType::EQUATION
,
1961 EnhancedCustomShapeParameterType::EQUATION
,
1962 EnhancedCustomShapeParameterType::EQUATION
,
1966 EnhancedCustomShapeParameterType::EQUATION
,
1967 EnhancedCustomShapeParameterType::EQUATION
,
1971 EnhancedCustomShapeParameterType::EQUATION
,
1972 EnhancedCustomShapeParameterType::EQUATION
,
1976 EnhancedCustomShapeParameterType::EQUATION
,
1977 EnhancedCustomShapeParameterType::EQUATION
,
1981 EnhancedCustomShapeParameterType::EQUATION
,
1982 EnhancedCustomShapeParameterType::EQUATION
,
1986 EnhancedCustomShapeParameterType::EQUATION
,
1987 EnhancedCustomShapeParameterType::EQUATION
,
1991 EnhancedCustomShapeParameterType::EQUATION
,
1992 EnhancedCustomShapeParameterType::EQUATION
,
1996 EnhancedCustomShapeParameterType::EQUATION
,
1997 EnhancedCustomShapeParameterType::EQUATION
,
2001 EnhancedCustomShapeParameterType::EQUATION
,
2002 EnhancedCustomShapeParameterType::EQUATION
,
2006 EnhancedCustomShapeParameterType::EQUATION
,
2007 EnhancedCustomShapeParameterType::EQUATION
,
2011 EnhancedCustomShapeParameterType::EQUATION
,
2012 EnhancedCustomShapeParameterType::EQUATION
,
2016 EnhancedCustomShapeParameterType::EQUATION
,
2017 EnhancedCustomShapeParameterType::EQUATION
,
2021 EnhancedCustomShapeParameterType::EQUATION
,
2022 EnhancedCustomShapeParameterType::EQUATION
,
2026 EnhancedCustomShapeParameterType::EQUATION
,
2027 EnhancedCustomShapeParameterType::EQUATION
,
2031 EnhancedCustomShapeParameterType::EQUATION
,
2032 EnhancedCustomShapeParameterType::EQUATION
,
2036 EnhancedCustomShapeParameterType::EQUATION
,
2037 EnhancedCustomShapeParameterType::EQUATION
,
2041 EnhancedCustomShapeParameterType::EQUATION
,
2042 EnhancedCustomShapeParameterType::EQUATION
,
2046 EnhancedCustomShapeParameterType::EQUATION
,
2047 EnhancedCustomShapeParameterType::EQUATION
,
2051 EnhancedCustomShapeParameterType::EQUATION
,
2052 EnhancedCustomShapeParameterType::EQUATION
,
2056 EnhancedCustomShapeParameterType::EQUATION
,
2057 EnhancedCustomShapeParameterType::EQUATION
,
2061 EnhancedCustomShapeParameterType::EQUATION
,
2062 EnhancedCustomShapeParameterType::EQUATION
,
2066 EnhancedCustomShapeParameterType::EQUATION
,
2067 EnhancedCustomShapeParameterType::EQUATION
,
2071 EnhancedCustomShapeParameterType::EQUATION
,
2072 EnhancedCustomShapeParameterType::EQUATION
,
2076 EnhancedCustomShapeParameterType::EQUATION
,
2077 EnhancedCustomShapeParameterType::EQUATION
,
2081 EnhancedCustomShapeParameterType::EQUATION
,
2082 EnhancedCustomShapeParameterType::EQUATION
,
2086 EnhancedCustomShapeParameterType::EQUATION
,
2087 EnhancedCustomShapeParameterType::EQUATION
,
2091 EnhancedCustomShapeParameterType::EQUATION
,
2092 EnhancedCustomShapeParameterType::EQUATION
,
2096 EnhancedCustomShapeParameterType::EQUATION
,
2097 EnhancedCustomShapeParameterType::EQUATION
,
2101 EnhancedCustomShapeParameterType::EQUATION
,
2102 EnhancedCustomShapeParameterType::EQUATION
,
2106 EnhancedCustomShapeParameterType::EQUATION
,
2107 EnhancedCustomShapeParameterType::EQUATION
,
2111 EnhancedCustomShapeParameterType::EQUATION
,
2112 EnhancedCustomShapeParameterType::EQUATION
,
2116 EnhancedCustomShapeParameterType::EQUATION
,
2117 EnhancedCustomShapeParameterType::EQUATION
,
2121 aPropSequence
[0].Value
= makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData
), aData
));
2124 aPropSequence
[1].Name
= "Segments";
2125 static const sal_uInt16 nValues
[] = {
2132 aPropSequence
[1].Value
= makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues
), nValues
));
2135 aPropSequence
[2].Name
= "TextFrames";
2136 Sequence
< EnhancedCustomShapeTextFrame
> aTextFrameSeq (1);
2138 EnhancedCustomShapeTextFrame aTextFrame
;
2140 static const CustomShapeProvider::ParameterPairData aData
=
2142 EnhancedCustomShapeParameterType::EQUATION
,
2143 EnhancedCustomShapeParameterType::EQUATION
,
2146 aTextFrame
.TopLeft
= createParameterPair(&aData
);
2149 static const CustomShapeProvider::ParameterPairData aData
=
2151 EnhancedCustomShapeParameterType::EQUATION
,
2152 EnhancedCustomShapeParameterType::EQUATION
,
2155 aTextFrame
.BottomRight
= createParameterPair(&aData
);
2157 aTextFrameSeq
[0] = aTextFrame
;
2159 aPropSequence
[2].Value
= makeAny (aTextFrameSeq
);
2161 aPropertyMap
[PROP_Path
] <<= aPropSequence
;
2164 awt::Rectangle aRectangle
;
2167 aRectangle
.Width
= 0;
2168 aRectangle
.Height
= 0;
2169 aPropertyMap
[PROP_ViewBox
] <<= aRectangle
;
2171 aPropertyMap
[ PROP_Type
] <<= OUString("ooxml-star32");
2173 return aPropertyMap
;
2176 class ShapeCflowChartInternalStorage
: public CustomShapeProvider
2178 virtual PropertyMap
getProperties()
2180 PropertyMap aPropertyMap
;
2183 aPropertyMap
[PROP_AdjustmentValues
] <<= Sequence
< OUString
>(0);
2186 static const char *aStrings
[] = {
2194 aPropertyMap
[PROP_Equations
] <<= createStringSequence( SAL_N_ELEMENTS( aStrings
), aStrings
);
2197 aPropertyMap
[PROP_Handles
] <<= Sequence
< OUString
>(0);
2200 aPropertyMap
[PROP_MirroredX
] <<= Any ((sal_Bool
) sal_False
);
2203 aPropertyMap
[PROP_MirroredY
] <<= Any ((sal_Bool
) sal_False
);
2206 Sequence
< PropertyValue
> aPropSequence (4);
2208 aPropSequence
[0].Name
= "Coordinates";
2209 static const CustomShapeProvider::ParameterPairData aData
[] = {
2211 EnhancedCustomShapeParameterType::NORMAL
,
2212 EnhancedCustomShapeParameterType::NORMAL
,
2216 EnhancedCustomShapeParameterType::NORMAL
,
2217 EnhancedCustomShapeParameterType::NORMAL
,
2221 EnhancedCustomShapeParameterType::NORMAL
,
2222 EnhancedCustomShapeParameterType::NORMAL
,
2226 EnhancedCustomShapeParameterType::NORMAL
,
2227 EnhancedCustomShapeParameterType::NORMAL
,
2231 EnhancedCustomShapeParameterType::NORMAL
,
2232 EnhancedCustomShapeParameterType::NORMAL
,
2236 EnhancedCustomShapeParameterType::NORMAL
,
2237 EnhancedCustomShapeParameterType::NORMAL
,
2241 EnhancedCustomShapeParameterType::NORMAL
,
2242 EnhancedCustomShapeParameterType::NORMAL
,
2246 EnhancedCustomShapeParameterType::NORMAL
,
2247 EnhancedCustomShapeParameterType::NORMAL
,
2251 EnhancedCustomShapeParameterType::NORMAL
,
2252 EnhancedCustomShapeParameterType::NORMAL
,
2256 EnhancedCustomShapeParameterType::NORMAL
,
2257 EnhancedCustomShapeParameterType::NORMAL
,
2261 EnhancedCustomShapeParameterType::NORMAL
,
2262 EnhancedCustomShapeParameterType::NORMAL
,
2266 EnhancedCustomShapeParameterType::NORMAL
,
2267 EnhancedCustomShapeParameterType::NORMAL
,
2271 aPropSequence
[0].Value
= makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData
), aData
));
2274 aPropSequence
[1].Name
= "Segments";
2275 static const sal_uInt16 nValues
[] = {
2294 aPropSequence
[1].Value
= makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues
), nValues
));
2297 aPropSequence
[2].Name
= "SubViewSize";
2298 Sequence
< awt::Size
> aSizeSequence (3);
2303 aSizeSequence
[0] = aSize
;
2309 aSizeSequence
[1] = aSize
;
2315 aSizeSequence
[2] = aSize
;
2317 aPropSequence
[2].Value
= makeAny (aSizeSequence
);
2320 aPropSequence
[3].Name
= "TextFrames";
2321 Sequence
< EnhancedCustomShapeTextFrame
> aTextFrameSeq (1);
2323 EnhancedCustomShapeTextFrame aTextFrame
;
2325 static const CustomShapeProvider::ParameterPairData aData
=
2327 EnhancedCustomShapeParameterType::EQUATION
,
2328 EnhancedCustomShapeParameterType::EQUATION
,
2331 aTextFrame
.TopLeft
= createParameterPair(&aData
);
2334 static const CustomShapeProvider::ParameterPairData aData
=
2336 EnhancedCustomShapeParameterType::EQUATION
,
2337 EnhancedCustomShapeParameterType::EQUATION
,
2340 aTextFrame
.BottomRight
= createParameterPair(&aData
);
2342 aTextFrameSeq
[0] = aTextFrame
;
2344 aPropSequence
[3].Value
= makeAny (aTextFrameSeq
);
2346 aPropertyMap
[PROP_Path
] <<= aPropSequence
;
2349 awt::Rectangle aRectangle
;
2352 aRectangle
.Width
= 0;
2353 aRectangle
.Height
= 0;
2354 aPropertyMap
[PROP_ViewBox
] <<= aRectangle
;
2356 aPropertyMap
[ PROP_Type
] <<= OUString("ooxml-flowChartInternalStorage");
2358 return aPropertyMap
;
2361 class ShapeCupDownArrow
: public CustomShapeProvider
2363 virtual PropertyMap
getProperties()
2365 PropertyMap aPropertyMap
;
2368 Sequence
< EnhancedCustomShapeAdjustmentValue
> aAdjSequence (2);
2370 Any
aAny ((sal_Int32
) 50000);
2371 aAdjSequence
[0].Value
= aAny
;
2372 aAdjSequence
[0].Name
= "adj1";
2375 Any
aAny ((sal_Int32
) 50000);
2376 aAdjSequence
[1].Value
= aAny
;
2377 aAdjSequence
[1].Name
= "adj2";
2379 aPropertyMap
[PROP_AdjustmentValues
] <<= aAdjSequence
;
2382 static const char *aStrings
[] = {
2383 "min(logwidth,logheight)",
2384 "50000*logheight/?0 ",
2385 "if(0-$0 ,0,if(100000-$0 ,$0 ,100000))",
2386 "if(0-$1 ,0,if(?1 -$1 ,$1 ,?1 ))",
2389 "logwidth*?2 /200000",
2401 aPropertyMap
[PROP_Equations
] <<= createStringSequence( SAL_N_ELEMENTS( aStrings
), aStrings
);
2404 Sequence
< Sequence
< PropertyValue
> > aPropSequenceSequence (2);
2406 Sequence
< PropertyValue
> aPropSequence (4);
2408 aPropSequence
[0].Name
= "Position";
2409 static const CustomShapeProvider::ParameterPairData aData
=
2411 EnhancedCustomShapeParameterType::EQUATION
,
2412 EnhancedCustomShapeParameterType::EQUATION
,
2415 aPropSequence
[0].Value
= makeAny (createParameterPair(&aData
));
2418 aPropSequence
[1].Name
= "RangeXMaximum";
2419 EnhancedCustomShapeParameter aParameter
;
2420 Any
aAny ((sal_Int32
) 100000);
2421 aParameter
.Value
= aAny
;
2422 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
2423 aPropSequence
[1].Value
= makeAny (aParameter
);
2426 aPropSequence
[2].Name
= "RangeXMinimum";
2427 EnhancedCustomShapeParameter aParameter
;
2428 Any
aAny ((sal_Int32
) 0);
2429 aParameter
.Value
= aAny
;
2430 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
2431 aPropSequence
[2].Value
= makeAny (aParameter
);
2434 aPropSequence
[3].Name
= "RefX";
2435 Any
aAny ((sal_Int32
) 0);
2436 aPropSequence
[3].Value
= makeAny (aAny
);
2438 aPropSequenceSequence
[0] = aPropSequence
;
2441 Sequence
< PropertyValue
> aPropSequence (4);
2443 aPropSequence
[0].Name
= "Position";
2444 static const CustomShapeProvider::ParameterPairData aData
=
2446 EnhancedCustomShapeParameterType::NORMAL
,
2447 EnhancedCustomShapeParameterType::EQUATION
,
2450 aPropSequence
[0].Value
= makeAny (createParameterPair(&aData
));
2453 aPropSequence
[1].Name
= "RangeYMaximum";
2454 EnhancedCustomShapeParameter aParameter
;
2455 Any
aAny ((sal_Int32
) 1);
2456 aParameter
.Value
= aAny
;
2457 aParameter
.Type
= EnhancedCustomShapeParameterType::EQUATION
;
2458 aPropSequence
[1].Value
= makeAny (aParameter
);
2461 aPropSequence
[2].Name
= "RangeYMinimum";
2462 EnhancedCustomShapeParameter aParameter
;
2463 Any
aAny ((sal_Int32
) 0);
2464 aParameter
.Value
= aAny
;
2465 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
2466 aPropSequence
[2].Value
= makeAny (aParameter
);
2469 aPropSequence
[3].Name
= "RefY";
2470 Any
aAny ((sal_Int32
) 1);
2471 aPropSequence
[3].Value
= makeAny (aAny
);
2473 aPropSequenceSequence
[1] = aPropSequence
;
2475 aPropertyMap
[PROP_Handles
] <<= aPropSequenceSequence
;
2478 aPropertyMap
[PROP_MirroredX
] <<= Any ((sal_Bool
) sal_False
);
2481 aPropertyMap
[PROP_MirroredY
] <<= Any ((sal_Bool
) sal_False
);
2484 Sequence
< PropertyValue
> aPropSequence (3);
2486 aPropSequence
[0].Name
= "Coordinates";
2487 static const CustomShapeProvider::ParameterPairData aData
[] = {
2489 EnhancedCustomShapeParameterType::NORMAL
,
2490 EnhancedCustomShapeParameterType::EQUATION
,
2494 EnhancedCustomShapeParameterType::EQUATION
,
2495 EnhancedCustomShapeParameterType::NORMAL
,
2499 EnhancedCustomShapeParameterType::EQUATION
,
2500 EnhancedCustomShapeParameterType::EQUATION
,
2504 EnhancedCustomShapeParameterType::EQUATION
,
2505 EnhancedCustomShapeParameterType::EQUATION
,
2509 EnhancedCustomShapeParameterType::EQUATION
,
2510 EnhancedCustomShapeParameterType::EQUATION
,
2514 EnhancedCustomShapeParameterType::EQUATION
,
2515 EnhancedCustomShapeParameterType::EQUATION
,
2519 EnhancedCustomShapeParameterType::EQUATION
,
2520 EnhancedCustomShapeParameterType::EQUATION
,
2524 EnhancedCustomShapeParameterType::NORMAL
,
2525 EnhancedCustomShapeParameterType::EQUATION
,
2529 EnhancedCustomShapeParameterType::EQUATION
,
2530 EnhancedCustomShapeParameterType::EQUATION
,
2534 EnhancedCustomShapeParameterType::EQUATION
,
2535 EnhancedCustomShapeParameterType::EQUATION
,
2539 aPropSequence
[0].Value
= makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData
), aData
));
2542 aPropSequence
[1].Name
= "Segments";
2543 static const sal_uInt16 nValues
[] = {
2550 aPropSequence
[1].Value
= makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues
), nValues
));
2553 aPropSequence
[2].Name
= "TextFrames";
2554 Sequence
< EnhancedCustomShapeTextFrame
> aTextFrameSeq (1);
2556 EnhancedCustomShapeTextFrame aTextFrame
;
2558 static const CustomShapeProvider::ParameterPairData aData
=
2560 EnhancedCustomShapeParameterType::EQUATION
,
2561 EnhancedCustomShapeParameterType::EQUATION
,
2564 aTextFrame
.TopLeft
= createParameterPair(&aData
);
2567 static const CustomShapeProvider::ParameterPairData aData
=
2569 EnhancedCustomShapeParameterType::EQUATION
,
2570 EnhancedCustomShapeParameterType::EQUATION
,
2573 aTextFrame
.BottomRight
= createParameterPair(&aData
);
2575 aTextFrameSeq
[0] = aTextFrame
;
2577 aPropSequence
[2].Value
= makeAny (aTextFrameSeq
);
2579 aPropertyMap
[PROP_Path
] <<= aPropSequence
;
2582 awt::Rectangle aRectangle
;
2585 aRectangle
.Width
= 0;
2586 aRectangle
.Height
= 0;
2587 aPropertyMap
[PROP_ViewBox
] <<= aRectangle
;
2589 aPropertyMap
[ PROP_Type
] <<= OUString("ooxml-upDownArrow");
2591 return aPropertyMap
;
2594 class ShapeCirregularSeal2
: public CustomShapeProvider
2596 virtual PropertyMap
getProperties()
2598 PropertyMap aPropertyMap
;
2601 aPropertyMap
[PROP_AdjustmentValues
] <<= Sequence
< OUString
>(0);
2604 static const char *aStrings
[] = {
2605 "logwidth*9722/21600",
2606 "logwidth*5372/21600",
2607 "logwidth*11612/21600",
2608 "logwidth*14640/21600",
2609 "logheight*1887/21600",
2610 "logheight*6382/21600",
2611 "logheight*12877/21600",
2612 "logheight*19712/21600",
2613 "logheight*18842/21600",
2614 "logheight*15935/21600",
2615 "logheight*6645/21600",
2618 aPropertyMap
[PROP_Equations
] <<= createStringSequence( SAL_N_ELEMENTS( aStrings
), aStrings
);
2621 aPropertyMap
[PROP_Handles
] <<= Sequence
< OUString
>(0);
2624 aPropertyMap
[PROP_MirroredX
] <<= Any ((sal_Bool
) sal_False
);
2627 aPropertyMap
[PROP_MirroredY
] <<= Any ((sal_Bool
) sal_False
);
2630 Sequence
< PropertyValue
> aPropSequence (4);
2632 aPropSequence
[0].Name
= "Coordinates";
2633 static const CustomShapeProvider::ParameterPairData aData
[] = {
2635 EnhancedCustomShapeParameterType::NORMAL
,
2636 EnhancedCustomShapeParameterType::NORMAL
,
2640 EnhancedCustomShapeParameterType::NORMAL
,
2641 EnhancedCustomShapeParameterType::NORMAL
,
2645 EnhancedCustomShapeParameterType::NORMAL
,
2646 EnhancedCustomShapeParameterType::NORMAL
,
2650 EnhancedCustomShapeParameterType::NORMAL
,
2651 EnhancedCustomShapeParameterType::NORMAL
,
2655 EnhancedCustomShapeParameterType::NORMAL
,
2656 EnhancedCustomShapeParameterType::NORMAL
,
2660 EnhancedCustomShapeParameterType::NORMAL
,
2661 EnhancedCustomShapeParameterType::NORMAL
,
2665 EnhancedCustomShapeParameterType::NORMAL
,
2666 EnhancedCustomShapeParameterType::NORMAL
,
2670 EnhancedCustomShapeParameterType::NORMAL
,
2671 EnhancedCustomShapeParameterType::NORMAL
,
2675 EnhancedCustomShapeParameterType::NORMAL
,
2676 EnhancedCustomShapeParameterType::NORMAL
,
2680 EnhancedCustomShapeParameterType::NORMAL
,
2681 EnhancedCustomShapeParameterType::NORMAL
,
2685 EnhancedCustomShapeParameterType::NORMAL
,
2686 EnhancedCustomShapeParameterType::NORMAL
,
2690 EnhancedCustomShapeParameterType::NORMAL
,
2691 EnhancedCustomShapeParameterType::NORMAL
,
2695 EnhancedCustomShapeParameterType::NORMAL
,
2696 EnhancedCustomShapeParameterType::NORMAL
,
2700 EnhancedCustomShapeParameterType::NORMAL
,
2701 EnhancedCustomShapeParameterType::NORMAL
,
2705 EnhancedCustomShapeParameterType::NORMAL
,
2706 EnhancedCustomShapeParameterType::NORMAL
,
2710 EnhancedCustomShapeParameterType::NORMAL
,
2711 EnhancedCustomShapeParameterType::NORMAL
,
2715 EnhancedCustomShapeParameterType::NORMAL
,
2716 EnhancedCustomShapeParameterType::NORMAL
,
2720 EnhancedCustomShapeParameterType::NORMAL
,
2721 EnhancedCustomShapeParameterType::NORMAL
,
2725 EnhancedCustomShapeParameterType::NORMAL
,
2726 EnhancedCustomShapeParameterType::NORMAL
,
2730 EnhancedCustomShapeParameterType::NORMAL
,
2731 EnhancedCustomShapeParameterType::NORMAL
,
2735 EnhancedCustomShapeParameterType::NORMAL
,
2736 EnhancedCustomShapeParameterType::NORMAL
,
2740 EnhancedCustomShapeParameterType::NORMAL
,
2741 EnhancedCustomShapeParameterType::NORMAL
,
2745 EnhancedCustomShapeParameterType::NORMAL
,
2746 EnhancedCustomShapeParameterType::NORMAL
,
2750 EnhancedCustomShapeParameterType::NORMAL
,
2751 EnhancedCustomShapeParameterType::NORMAL
,
2755 EnhancedCustomShapeParameterType::NORMAL
,
2756 EnhancedCustomShapeParameterType::NORMAL
,
2760 EnhancedCustomShapeParameterType::NORMAL
,
2761 EnhancedCustomShapeParameterType::NORMAL
,
2765 EnhancedCustomShapeParameterType::NORMAL
,
2766 EnhancedCustomShapeParameterType::NORMAL
,
2770 EnhancedCustomShapeParameterType::NORMAL
,
2771 EnhancedCustomShapeParameterType::NORMAL
,
2775 aPropSequence
[0].Value
= makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData
), aData
));
2778 aPropSequence
[1].Name
= "Segments";
2779 static const sal_uInt16 nValues
[] = {
2786 aPropSequence
[1].Value
= makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues
), nValues
));
2789 aPropSequence
[2].Name
= "SubViewSize";
2790 Sequence
< awt::Size
> aSizeSequence (1);
2793 aSize
.Width
= 21600;
2794 aSize
.Height
= 21600;
2795 aSizeSequence
[0] = aSize
;
2797 aPropSequence
[2].Value
= makeAny (aSizeSequence
);
2800 aPropSequence
[3].Name
= "TextFrames";
2801 Sequence
< EnhancedCustomShapeTextFrame
> aTextFrameSeq (1);
2803 EnhancedCustomShapeTextFrame aTextFrame
;
2805 static const CustomShapeProvider::ParameterPairData aData
=
2807 EnhancedCustomShapeParameterType::EQUATION
,
2808 EnhancedCustomShapeParameterType::EQUATION
,
2811 aTextFrame
.TopLeft
= createParameterPair(&aData
);
2814 static const CustomShapeProvider::ParameterPairData aData
=
2816 EnhancedCustomShapeParameterType::EQUATION
,
2817 EnhancedCustomShapeParameterType::EQUATION
,
2820 aTextFrame
.BottomRight
= createParameterPair(&aData
);
2822 aTextFrameSeq
[0] = aTextFrame
;
2824 aPropSequence
[3].Value
= makeAny (aTextFrameSeq
);
2826 aPropertyMap
[PROP_Path
] <<= aPropSequence
;
2829 awt::Rectangle aRectangle
;
2832 aRectangle
.Width
= 0;
2833 aRectangle
.Height
= 0;
2834 aPropertyMap
[PROP_ViewBox
] <<= aRectangle
;
2836 aPropertyMap
[ PROP_Type
] <<= OUString("ooxml-irregularSeal2");
2838 return aPropertyMap
;
2841 class ShapeCmathEqual
: public CustomShapeProvider
2843 virtual PropertyMap
getProperties()
2845 PropertyMap aPropertyMap
;
2848 Sequence
< EnhancedCustomShapeAdjustmentValue
> aAdjSequence (2);
2850 Any
aAny ((sal_Int32
) 23520);
2851 aAdjSequence
[0].Value
= aAny
;
2852 aAdjSequence
[0].Name
= "adj1";
2855 Any
aAny ((sal_Int32
) 11760);
2856 aAdjSequence
[1].Value
= aAny
;
2857 aAdjSequence
[1].Name
= "adj2";
2859 aPropertyMap
[PROP_AdjustmentValues
] <<= aAdjSequence
;
2862 static const char *aStrings
[] = {
2863 "if(0-$0 ,0,if(36745-$0 ,$0 ,36745))",
2866 "if(0-$1 ,0,if(?2 -$1 ,$1 ,?2 ))",
2867 "logheight*?0 /100000",
2868 "logheight*?3 /200000",
2869 "logwidth*73490/200000",
2882 aPropertyMap
[PROP_Equations
] <<= createStringSequence( SAL_N_ELEMENTS( aStrings
), aStrings
);
2885 Sequence
< Sequence
< PropertyValue
> > aPropSequenceSequence (2);
2887 Sequence
< PropertyValue
> aPropSequence (4);
2889 aPropSequence
[0].Name
= "Position";
2890 static const CustomShapeProvider::ParameterPairData aData
=
2892 EnhancedCustomShapeParameterType::NORMAL
,
2893 EnhancedCustomShapeParameterType::EQUATION
,
2896 aPropSequence
[0].Value
= makeAny (createParameterPair(&aData
));
2899 aPropSequence
[1].Name
= "RangeYMaximum";
2900 EnhancedCustomShapeParameter aParameter
;
2901 Any
aAny ((sal_Int32
) 36745);
2902 aParameter
.Value
= aAny
;
2903 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
2904 aPropSequence
[1].Value
= makeAny (aParameter
);
2907 aPropSequence
[2].Name
= "RangeYMinimum";
2908 EnhancedCustomShapeParameter aParameter
;
2909 Any
aAny ((sal_Int32
) 0);
2910 aParameter
.Value
= aAny
;
2911 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
2912 aPropSequence
[2].Value
= makeAny (aParameter
);
2915 aPropSequence
[3].Name
= "RefY";
2916 Any
aAny ((sal_Int32
) 0);
2917 aPropSequence
[3].Value
= makeAny (aAny
);
2919 aPropSequenceSequence
[0] = aPropSequence
;
2922 Sequence
< PropertyValue
> aPropSequence (4);
2924 aPropSequence
[0].Name
= "Position";
2925 static const CustomShapeProvider::ParameterPairData aData
=
2927 EnhancedCustomShapeParameterType::EQUATION
,
2928 EnhancedCustomShapeParameterType::EQUATION
,
2931 aPropSequence
[0].Value
= makeAny (createParameterPair(&aData
));
2934 aPropSequence
[1].Name
= "RangeYMaximum";
2935 EnhancedCustomShapeParameter aParameter
;
2936 Any
aAny ((sal_Int32
) 2);
2937 aParameter
.Value
= aAny
;
2938 aParameter
.Type
= EnhancedCustomShapeParameterType::EQUATION
;
2939 aPropSequence
[1].Value
= makeAny (aParameter
);
2942 aPropSequence
[2].Name
= "RangeYMinimum";
2943 EnhancedCustomShapeParameter aParameter
;
2944 Any
aAny ((sal_Int32
) 0);
2945 aParameter
.Value
= aAny
;
2946 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
2947 aPropSequence
[2].Value
= makeAny (aParameter
);
2950 aPropSequence
[3].Name
= "RefY";
2951 Any
aAny ((sal_Int32
) 1);
2952 aPropSequence
[3].Value
= makeAny (aAny
);
2954 aPropSequenceSequence
[1] = aPropSequence
;
2956 aPropertyMap
[PROP_Handles
] <<= aPropSequenceSequence
;
2959 aPropertyMap
[PROP_MirroredX
] <<= Any ((sal_Bool
) sal_False
);
2962 aPropertyMap
[PROP_MirroredY
] <<= Any ((sal_Bool
) sal_False
);
2965 Sequence
< PropertyValue
> aPropSequence (3);
2967 aPropSequence
[0].Name
= "Coordinates";
2968 static const CustomShapeProvider::ParameterPairData aData
[] = {
2970 EnhancedCustomShapeParameterType::EQUATION
,
2971 EnhancedCustomShapeParameterType::EQUATION
,
2975 EnhancedCustomShapeParameterType::EQUATION
,
2976 EnhancedCustomShapeParameterType::EQUATION
,
2980 EnhancedCustomShapeParameterType::EQUATION
,
2981 EnhancedCustomShapeParameterType::EQUATION
,
2985 EnhancedCustomShapeParameterType::EQUATION
,
2986 EnhancedCustomShapeParameterType::EQUATION
,
2990 EnhancedCustomShapeParameterType::EQUATION
,
2991 EnhancedCustomShapeParameterType::EQUATION
,
2995 EnhancedCustomShapeParameterType::EQUATION
,
2996 EnhancedCustomShapeParameterType::EQUATION
,
3000 EnhancedCustomShapeParameterType::EQUATION
,
3001 EnhancedCustomShapeParameterType::EQUATION
,
3005 EnhancedCustomShapeParameterType::EQUATION
,
3006 EnhancedCustomShapeParameterType::EQUATION
,
3010 aPropSequence
[0].Value
= makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData
), aData
));
3013 aPropSequence
[1].Name
= "Segments";
3014 static const sal_uInt16 nValues
[] = {
3024 aPropSequence
[1].Value
= makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues
), nValues
));
3027 aPropSequence
[2].Name
= "TextFrames";
3028 Sequence
< EnhancedCustomShapeTextFrame
> aTextFrameSeq (1);
3030 EnhancedCustomShapeTextFrame aTextFrame
;
3032 static const CustomShapeProvider::ParameterPairData aData
=
3034 EnhancedCustomShapeParameterType::EQUATION
,
3035 EnhancedCustomShapeParameterType::EQUATION
,
3038 aTextFrame
.TopLeft
= createParameterPair(&aData
);
3041 static const CustomShapeProvider::ParameterPairData aData
=
3043 EnhancedCustomShapeParameterType::EQUATION
,
3044 EnhancedCustomShapeParameterType::EQUATION
,
3047 aTextFrame
.BottomRight
= createParameterPair(&aData
);
3049 aTextFrameSeq
[0] = aTextFrame
;
3051 aPropSequence
[2].Value
= makeAny (aTextFrameSeq
);
3053 aPropertyMap
[PROP_Path
] <<= aPropSequence
;
3056 awt::Rectangle aRectangle
;
3059 aRectangle
.Width
= 0;
3060 aRectangle
.Height
= 0;
3061 aPropertyMap
[PROP_ViewBox
] <<= aRectangle
;
3063 aPropertyMap
[ PROP_Type
] <<= OUString("ooxml-mathEqual");
3065 return aPropertyMap
;
3068 class ShapeCstar12
: public CustomShapeProvider
3070 virtual PropertyMap
getProperties()
3072 PropertyMap aPropertyMap
;
3075 Sequence
< EnhancedCustomShapeAdjustmentValue
> aAdjSequence (1);
3077 Any
aAny ((sal_Int32
) 37500);
3078 aAdjSequence
[0].Value
= aAny
;
3079 aAdjSequence
[0].Name
= "adj";
3081 aPropertyMap
[PROP_AdjustmentValues
] <<= aAdjSequence
;
3084 static const char *aStrings
[] = {
3085 "if(0-$0 ,0,if(50000-$0 ,$0 ,50000))",
3087 "?1 *cos(pi*(1800000)/10800000)",
3089 "?3 *sin(pi*(3600000)/10800000)",
3100 "?13 *cos(pi*(900000)/10800000)",
3101 "?13 *cos(pi*(2700000)/10800000)",
3102 "?13 *cos(pi*(4500000)/10800000)",
3103 "?14 *sin(pi*(4500000)/10800000)",
3104 "?14 *sin(pi*(2700000)/10800000)",
3105 "?14 *sin(pi*(900000)/10800000)",
3124 aPropertyMap
[PROP_Equations
] <<= createStringSequence( SAL_N_ELEMENTS( aStrings
), aStrings
);
3127 Sequence
< Sequence
< PropertyValue
> > aPropSequenceSequence (1);
3129 Sequence
< PropertyValue
> aPropSequence (4);
3131 aPropSequence
[0].Name
= "Position";
3132 static const CustomShapeProvider::ParameterPairData aData
=
3134 EnhancedCustomShapeParameterType::EQUATION
,
3135 EnhancedCustomShapeParameterType::EQUATION
,
3138 aPropSequence
[0].Value
= makeAny (createParameterPair(&aData
));
3141 aPropSequence
[1].Name
= "RangeYMaximum";
3142 EnhancedCustomShapeParameter aParameter
;
3143 Any
aAny ((sal_Int32
) 50000);
3144 aParameter
.Value
= aAny
;
3145 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
3146 aPropSequence
[1].Value
= makeAny (aParameter
);
3149 aPropSequence
[2].Name
= "RangeYMinimum";
3150 EnhancedCustomShapeParameter aParameter
;
3151 Any
aAny ((sal_Int32
) 0);
3152 aParameter
.Value
= aAny
;
3153 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
3154 aPropSequence
[2].Value
= makeAny (aParameter
);
3157 aPropSequence
[3].Name
= "RefY";
3158 Any
aAny ((sal_Int32
) 0);
3159 aPropSequence
[3].Value
= makeAny (aAny
);
3161 aPropSequenceSequence
[0] = aPropSequence
;
3163 aPropertyMap
[PROP_Handles
] <<= aPropSequenceSequence
;
3166 aPropertyMap
[PROP_MirroredX
] <<= Any ((sal_Bool
) sal_False
);
3169 aPropertyMap
[PROP_MirroredY
] <<= Any ((sal_Bool
) sal_False
);
3172 Sequence
< PropertyValue
> aPropSequence (3);
3174 aPropSequence
[0].Name
= "Coordinates";
3175 static const CustomShapeProvider::ParameterPairData aData
[] = {
3177 EnhancedCustomShapeParameterType::NORMAL
,
3178 EnhancedCustomShapeParameterType::EQUATION
,
3182 EnhancedCustomShapeParameterType::EQUATION
,
3183 EnhancedCustomShapeParameterType::EQUATION
,
3187 EnhancedCustomShapeParameterType::EQUATION
,
3188 EnhancedCustomShapeParameterType::EQUATION
,
3192 EnhancedCustomShapeParameterType::EQUATION
,
3193 EnhancedCustomShapeParameterType::EQUATION
,
3197 EnhancedCustomShapeParameterType::EQUATION
,
3198 EnhancedCustomShapeParameterType::EQUATION
,
3202 EnhancedCustomShapeParameterType::EQUATION
,
3203 EnhancedCustomShapeParameterType::EQUATION
,
3207 EnhancedCustomShapeParameterType::EQUATION
,
3208 EnhancedCustomShapeParameterType::NORMAL
,
3212 EnhancedCustomShapeParameterType::EQUATION
,
3213 EnhancedCustomShapeParameterType::EQUATION
,
3217 EnhancedCustomShapeParameterType::EQUATION
,
3218 EnhancedCustomShapeParameterType::EQUATION
,
3222 EnhancedCustomShapeParameterType::EQUATION
,
3223 EnhancedCustomShapeParameterType::EQUATION
,
3227 EnhancedCustomShapeParameterType::EQUATION
,
3228 EnhancedCustomShapeParameterType::EQUATION
,
3232 EnhancedCustomShapeParameterType::EQUATION
,
3233 EnhancedCustomShapeParameterType::EQUATION
,
3237 EnhancedCustomShapeParameterType::EQUATION
,
3238 EnhancedCustomShapeParameterType::EQUATION
,
3242 EnhancedCustomShapeParameterType::EQUATION
,
3243 EnhancedCustomShapeParameterType::EQUATION
,
3247 EnhancedCustomShapeParameterType::EQUATION
,
3248 EnhancedCustomShapeParameterType::EQUATION
,
3252 EnhancedCustomShapeParameterType::EQUATION
,
3253 EnhancedCustomShapeParameterType::EQUATION
,
3257 EnhancedCustomShapeParameterType::EQUATION
,
3258 EnhancedCustomShapeParameterType::EQUATION
,
3262 EnhancedCustomShapeParameterType::EQUATION
,
3263 EnhancedCustomShapeParameterType::EQUATION
,
3267 EnhancedCustomShapeParameterType::EQUATION
,
3268 EnhancedCustomShapeParameterType::EQUATION
,
3272 EnhancedCustomShapeParameterType::EQUATION
,
3273 EnhancedCustomShapeParameterType::EQUATION
,
3277 EnhancedCustomShapeParameterType::EQUATION
,
3278 EnhancedCustomShapeParameterType::EQUATION
,
3282 EnhancedCustomShapeParameterType::EQUATION
,
3283 EnhancedCustomShapeParameterType::EQUATION
,
3287 EnhancedCustomShapeParameterType::EQUATION
,
3288 EnhancedCustomShapeParameterType::EQUATION
,
3292 EnhancedCustomShapeParameterType::EQUATION
,
3293 EnhancedCustomShapeParameterType::EQUATION
,
3297 aPropSequence
[0].Value
= makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData
), aData
));
3300 aPropSequence
[1].Name
= "Segments";
3301 static const sal_uInt16 nValues
[] = {
3308 aPropSequence
[1].Value
= makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues
), nValues
));
3311 aPropSequence
[2].Name
= "TextFrames";
3312 Sequence
< EnhancedCustomShapeTextFrame
> aTextFrameSeq (1);
3314 EnhancedCustomShapeTextFrame aTextFrame
;
3316 static const CustomShapeProvider::ParameterPairData aData
=
3318 EnhancedCustomShapeParameterType::EQUATION
,
3319 EnhancedCustomShapeParameterType::EQUATION
,
3322 aTextFrame
.TopLeft
= createParameterPair(&aData
);
3325 static const CustomShapeProvider::ParameterPairData aData
=
3327 EnhancedCustomShapeParameterType::EQUATION
,
3328 EnhancedCustomShapeParameterType::EQUATION
,
3331 aTextFrame
.BottomRight
= createParameterPair(&aData
);
3333 aTextFrameSeq
[0] = aTextFrame
;
3335 aPropSequence
[2].Value
= makeAny (aTextFrameSeq
);
3337 aPropertyMap
[PROP_Path
] <<= aPropSequence
;
3340 awt::Rectangle aRectangle
;
3343 aRectangle
.Width
= 0;
3344 aRectangle
.Height
= 0;
3345 aPropertyMap
[PROP_ViewBox
] <<= aRectangle
;
3347 aPropertyMap
[ PROP_Type
] <<= OUString("ooxml-star12");
3349 return aPropertyMap
;
3352 class ShapeCuturnArrow
: public CustomShapeProvider
3354 virtual PropertyMap
getProperties()
3356 PropertyMap aPropertyMap
;
3359 Sequence
< EnhancedCustomShapeAdjustmentValue
> aAdjSequence (5);
3361 Any
aAny ((sal_Int32
) 25000);
3362 aAdjSequence
[0].Value
= aAny
;
3363 aAdjSequence
[0].Name
= "adj1";
3366 Any
aAny ((sal_Int32
) 25000);
3367 aAdjSequence
[1].Value
= aAny
;
3368 aAdjSequence
[1].Name
= "adj2";
3371 Any
aAny ((sal_Int32
) 25000);
3372 aAdjSequence
[2].Value
= aAny
;
3373 aAdjSequence
[2].Name
= "adj3";
3376 Any
aAny ((sal_Int32
) 43750);
3377 aAdjSequence
[3].Value
= aAny
;
3378 aAdjSequence
[3].Name
= "adj4";
3381 Any
aAny ((sal_Int32
) 75000);
3382 aAdjSequence
[4].Value
= aAny
;
3383 aAdjSequence
[4].Name
= "adj5";
3385 aPropertyMap
[PROP_AdjustmentValues
] <<= aAdjSequence
;
3388 static const char *aStrings
[] = {
3389 "if(0-$1 ,0,if(25000-$1 ,$1 ,25000))",
3391 "if(0-$0 ,0,if(?1 -$0 ,$0 ,?1 ))",
3392 "min(logwidth,logheight)",
3393 "?2 *?3 /logheight",
3395 "?5 *logheight/?3 ",
3396 "if(0-$2 ,0,if(?6 -$2 ,$2 ,?6 ))",
3398 "?8 *?3 /logheight",
3399 "if(?9 -$4 ,?9 ,if(100000-$4 ,$4 ,100000))",
3404 "logheight*?10 /100000",
3411 "if(0-$3 ,0,if(?21 -$3 ,$3 ,?21 ))",
3424 "(10800000)/60000.0",
3425 "(5400000)/60000.0",
3426 "(16200000)/60000.0",
3427 "(5400000)/60000.0",
3429 "(-5400000)/60000.0",
3430 "(16200000)/60000.0",
3431 "(-5400000)/60000.0"
3433 aPropertyMap
[PROP_Equations
] <<= createStringSequence( SAL_N_ELEMENTS( aStrings
), aStrings
);
3436 Sequence
< Sequence
< PropertyValue
> > aPropSequenceSequence (5);
3438 Sequence
< PropertyValue
> aPropSequence (4);
3440 aPropSequence
[0].Name
= "Position";
3441 static const CustomShapeProvider::ParameterPairData aData
=
3443 EnhancedCustomShapeParameterType::EQUATION
,
3444 EnhancedCustomShapeParameterType::EQUATION
,
3447 aPropSequence
[0].Value
= makeAny (createParameterPair(&aData
));
3450 aPropSequence
[1].Name
= "RangeXMaximum";
3451 EnhancedCustomShapeParameter aParameter
;
3452 Any
aAny ((sal_Int32
) 1);
3453 aParameter
.Value
= aAny
;
3454 aParameter
.Type
= EnhancedCustomShapeParameterType::EQUATION
;
3455 aPropSequence
[1].Value
= makeAny (aParameter
);
3458 aPropSequence
[2].Name
= "RangeXMinimum";
3459 EnhancedCustomShapeParameter aParameter
;
3460 Any
aAny ((sal_Int32
) 0);
3461 aParameter
.Value
= aAny
;
3462 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
3463 aPropSequence
[2].Value
= makeAny (aParameter
);
3466 aPropSequence
[3].Name
= "RefX";
3467 Any
aAny ((sal_Int32
) 0);
3468 aPropSequence
[3].Value
= makeAny (aAny
);
3470 aPropSequenceSequence
[0] = aPropSequence
;
3473 Sequence
< PropertyValue
> aPropSequence (4);
3475 aPropSequence
[0].Name
= "Position";
3476 static const CustomShapeProvider::ParameterPairData aData
=
3478 EnhancedCustomShapeParameterType::EQUATION
,
3479 EnhancedCustomShapeParameterType::EQUATION
,
3482 aPropSequence
[0].Value
= makeAny (createParameterPair(&aData
));
3485 aPropSequence
[1].Name
= "RangeXMaximum";
3486 EnhancedCustomShapeParameter aParameter
;
3487 Any
aAny ((sal_Int32
) 25000);
3488 aParameter
.Value
= aAny
;
3489 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
3490 aPropSequence
[1].Value
= makeAny (aParameter
);
3493 aPropSequence
[2].Name
= "RangeXMinimum";
3494 EnhancedCustomShapeParameter aParameter
;
3495 Any
aAny ((sal_Int32
) 0);
3496 aParameter
.Value
= aAny
;
3497 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
3498 aPropSequence
[2].Value
= makeAny (aParameter
);
3501 aPropSequence
[3].Name
= "RefX";
3502 Any
aAny ((sal_Int32
) 1);
3503 aPropSequence
[3].Value
= makeAny (aAny
);
3505 aPropSequenceSequence
[1] = aPropSequence
;
3508 Sequence
< PropertyValue
> aPropSequence (4);
3510 aPropSequence
[0].Name
= "Position";
3511 static const CustomShapeProvider::ParameterPairData aData
=
3513 EnhancedCustomShapeParameterType::EQUATION
,
3514 EnhancedCustomShapeParameterType::EQUATION
,
3517 aPropSequence
[0].Value
= makeAny (createParameterPair(&aData
));
3520 aPropSequence
[1].Name
= "RangeYMaximum";
3521 EnhancedCustomShapeParameter aParameter
;
3522 Any
aAny ((sal_Int32
) 6);
3523 aParameter
.Value
= aAny
;
3524 aParameter
.Type
= EnhancedCustomShapeParameterType::EQUATION
;
3525 aPropSequence
[1].Value
= makeAny (aParameter
);
3528 aPropSequence
[2].Name
= "RangeYMinimum";
3529 EnhancedCustomShapeParameter aParameter
;
3530 Any
aAny ((sal_Int32
) 0);
3531 aParameter
.Value
= aAny
;
3532 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
3533 aPropSequence
[2].Value
= makeAny (aParameter
);
3536 aPropSequence
[3].Name
= "RefY";
3537 Any
aAny ((sal_Int32
) 2);
3538 aPropSequence
[3].Value
= makeAny (aAny
);
3540 aPropSequenceSequence
[2] = aPropSequence
;
3543 Sequence
< PropertyValue
> aPropSequence (4);
3545 aPropSequence
[0].Name
= "Position";
3546 static const CustomShapeProvider::ParameterPairData aData
=
3548 EnhancedCustomShapeParameterType::EQUATION
,
3549 EnhancedCustomShapeParameterType::NORMAL
,
3552 aPropSequence
[0].Value
= makeAny (createParameterPair(&aData
));
3555 aPropSequence
[1].Name
= "RangeXMaximum";
3556 EnhancedCustomShapeParameter aParameter
;
3557 Any
aAny ((sal_Int32
) 21);
3558 aParameter
.Value
= aAny
;
3559 aParameter
.Type
= EnhancedCustomShapeParameterType::EQUATION
;
3560 aPropSequence
[1].Value
= makeAny (aParameter
);
3563 aPropSequence
[2].Name
= "RangeXMinimum";
3564 EnhancedCustomShapeParameter aParameter
;
3565 Any
aAny ((sal_Int32
) 0);
3566 aParameter
.Value
= aAny
;
3567 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
3568 aPropSequence
[2].Value
= makeAny (aParameter
);
3571 aPropSequence
[3].Name
= "RefX";
3572 Any
aAny ((sal_Int32
) 3);
3573 aPropSequence
[3].Value
= makeAny (aAny
);
3575 aPropSequenceSequence
[3] = aPropSequence
;
3578 Sequence
< PropertyValue
> aPropSequence (4);
3580 aPropSequence
[0].Name
= "Position";
3581 static const CustomShapeProvider::ParameterPairData aData
=
3583 EnhancedCustomShapeParameterType::EQUATION
,
3584 EnhancedCustomShapeParameterType::EQUATION
,
3587 aPropSequence
[0].Value
= makeAny (createParameterPair(&aData
));
3590 aPropSequence
[1].Name
= "RangeYMaximum";
3591 EnhancedCustomShapeParameter aParameter
;
3592 Any
aAny ((sal_Int32
) 100000);
3593 aParameter
.Value
= aAny
;
3594 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
3595 aPropSequence
[1].Value
= makeAny (aParameter
);
3598 aPropSequence
[2].Name
= "RangeYMinimum";
3599 EnhancedCustomShapeParameter aParameter
;
3600 Any
aAny ((sal_Int32
) 9);
3601 aParameter
.Value
= aAny
;
3602 aParameter
.Type
= EnhancedCustomShapeParameterType::EQUATION
;
3603 aPropSequence
[2].Value
= makeAny (aParameter
);
3606 aPropSequence
[3].Name
= "RefY";
3607 Any
aAny ((sal_Int32
) 4);
3608 aPropSequence
[3].Value
= makeAny (aAny
);
3610 aPropSequenceSequence
[4] = aPropSequence
;
3612 aPropertyMap
[PROP_Handles
] <<= aPropSequenceSequence
;
3615 aPropertyMap
[PROP_MirroredX
] <<= Any ((sal_Bool
) sal_False
);
3618 aPropertyMap
[PROP_MirroredY
] <<= Any ((sal_Bool
) sal_False
);
3621 Sequence
< PropertyValue
> aPropSequence (3);
3623 aPropSequence
[0].Name
= "Coordinates";
3624 static const CustomShapeProvider::ParameterPairData aData
[] = {
3626 EnhancedCustomShapeParameterType::NORMAL
,
3627 EnhancedCustomShapeParameterType::EQUATION
,
3631 EnhancedCustomShapeParameterType::NORMAL
,
3632 EnhancedCustomShapeParameterType::EQUATION
,
3636 EnhancedCustomShapeParameterType::EQUATION
,
3637 EnhancedCustomShapeParameterType::EQUATION
,
3641 EnhancedCustomShapeParameterType::EQUATION
,
3642 EnhancedCustomShapeParameterType::EQUATION
,
3646 EnhancedCustomShapeParameterType::EQUATION
,
3647 EnhancedCustomShapeParameterType::NORMAL
,
3651 EnhancedCustomShapeParameterType::EQUATION
,
3652 EnhancedCustomShapeParameterType::EQUATION
,
3656 EnhancedCustomShapeParameterType::EQUATION
,
3657 EnhancedCustomShapeParameterType::EQUATION
,
3661 EnhancedCustomShapeParameterType::EQUATION
,
3662 EnhancedCustomShapeParameterType::EQUATION
,
3666 EnhancedCustomShapeParameterType::EQUATION
,
3667 EnhancedCustomShapeParameterType::EQUATION
,
3671 EnhancedCustomShapeParameterType::EQUATION
,
3672 EnhancedCustomShapeParameterType::EQUATION
,
3676 EnhancedCustomShapeParameterType::EQUATION
,
3677 EnhancedCustomShapeParameterType::EQUATION
,
3681 EnhancedCustomShapeParameterType::EQUATION
,
3682 EnhancedCustomShapeParameterType::EQUATION
,
3686 EnhancedCustomShapeParameterType::EQUATION
,
3687 EnhancedCustomShapeParameterType::EQUATION
,
3691 EnhancedCustomShapeParameterType::EQUATION
,
3692 EnhancedCustomShapeParameterType::EQUATION
,
3696 EnhancedCustomShapeParameterType::EQUATION
,
3697 EnhancedCustomShapeParameterType::EQUATION
,
3701 EnhancedCustomShapeParameterType::EQUATION
,
3702 EnhancedCustomShapeParameterType::EQUATION
,
3706 EnhancedCustomShapeParameterType::EQUATION
,
3707 EnhancedCustomShapeParameterType::EQUATION
,
3711 EnhancedCustomShapeParameterType::EQUATION
,
3712 EnhancedCustomShapeParameterType::EQUATION
,
3716 EnhancedCustomShapeParameterType::EQUATION
,
3717 EnhancedCustomShapeParameterType::EQUATION
,
3721 aPropSequence
[0].Value
= makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData
), aData
));
3724 aPropSequence
[1].Name
= "Segments";
3725 static const sal_uInt16 nValues
[] = {
3740 aPropSequence
[1].Value
= makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues
), nValues
));
3743 aPropSequence
[2].Name
= "TextFrames";
3744 Sequence
< EnhancedCustomShapeTextFrame
> aTextFrameSeq (1);
3746 EnhancedCustomShapeTextFrame aTextFrame
;
3748 static const CustomShapeProvider::ParameterPairData aData
=
3750 EnhancedCustomShapeParameterType::NORMAL
,
3751 EnhancedCustomShapeParameterType::NORMAL
,
3754 aTextFrame
.TopLeft
= createParameterPair(&aData
);
3757 static const CustomShapeProvider::ParameterPairData aData
=
3759 EnhancedCustomShapeParameterType::EQUATION
,
3760 EnhancedCustomShapeParameterType::EQUATION
,
3763 aTextFrame
.BottomRight
= createParameterPair(&aData
);
3765 aTextFrameSeq
[0] = aTextFrame
;
3767 aPropSequence
[2].Value
= makeAny (aTextFrameSeq
);
3769 aPropertyMap
[PROP_Path
] <<= aPropSequence
;
3772 awt::Rectangle aRectangle
;
3775 aRectangle
.Width
= 0;
3776 aRectangle
.Height
= 0;
3777 aPropertyMap
[PROP_ViewBox
] <<= aRectangle
;
3779 aPropertyMap
[ PROP_Type
] <<= OUString("ooxml-uturnArrow");
3781 return aPropertyMap
;
3784 class ShapeCsquareTabs
: public CustomShapeProvider
3786 virtual PropertyMap
getProperties()
3788 PropertyMap aPropertyMap
;
3791 aPropertyMap
[PROP_AdjustmentValues
] <<= Sequence
< OUString
>(0);
3794 static const char *aStrings
[] = {
3795 "sqrt(logwidth*logwidth+logheight*logheight+0*0)",
3802 aPropertyMap
[PROP_Equations
] <<= createStringSequence( SAL_N_ELEMENTS( aStrings
), aStrings
);
3805 aPropertyMap
[PROP_Handles
] <<= Sequence
< OUString
>(0);
3808 aPropertyMap
[PROP_MirroredX
] <<= Any ((sal_Bool
) sal_False
);
3811 aPropertyMap
[PROP_MirroredY
] <<= Any ((sal_Bool
) sal_False
);
3814 Sequence
< PropertyValue
> aPropSequence (3);
3816 aPropSequence
[0].Name
= "Coordinates";
3817 static const CustomShapeProvider::ParameterPairData aData
[] = {
3819 EnhancedCustomShapeParameterType::NORMAL
,
3820 EnhancedCustomShapeParameterType::NORMAL
,
3824 EnhancedCustomShapeParameterType::EQUATION
,
3825 EnhancedCustomShapeParameterType::NORMAL
,
3829 EnhancedCustomShapeParameterType::EQUATION
,
3830 EnhancedCustomShapeParameterType::EQUATION
,
3834 EnhancedCustomShapeParameterType::NORMAL
,
3835 EnhancedCustomShapeParameterType::EQUATION
,
3839 EnhancedCustomShapeParameterType::NORMAL
,
3840 EnhancedCustomShapeParameterType::EQUATION
,
3844 EnhancedCustomShapeParameterType::EQUATION
,
3845 EnhancedCustomShapeParameterType::EQUATION
,
3849 EnhancedCustomShapeParameterType::EQUATION
,
3850 EnhancedCustomShapeParameterType::EQUATION
,
3854 EnhancedCustomShapeParameterType::NORMAL
,
3855 EnhancedCustomShapeParameterType::EQUATION
,
3859 EnhancedCustomShapeParameterType::EQUATION
,
3860 EnhancedCustomShapeParameterType::NORMAL
,
3864 EnhancedCustomShapeParameterType::EQUATION
,
3865 EnhancedCustomShapeParameterType::NORMAL
,
3869 EnhancedCustomShapeParameterType::EQUATION
,
3870 EnhancedCustomShapeParameterType::EQUATION
,
3874 EnhancedCustomShapeParameterType::EQUATION
,
3875 EnhancedCustomShapeParameterType::EQUATION
,
3879 EnhancedCustomShapeParameterType::EQUATION
,
3880 EnhancedCustomShapeParameterType::EQUATION
,
3884 EnhancedCustomShapeParameterType::EQUATION
,
3885 EnhancedCustomShapeParameterType::EQUATION
,
3889 EnhancedCustomShapeParameterType::EQUATION
,
3890 EnhancedCustomShapeParameterType::EQUATION
,
3894 EnhancedCustomShapeParameterType::EQUATION
,
3895 EnhancedCustomShapeParameterType::EQUATION
,
3899 aPropSequence
[0].Value
= makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData
), aData
));
3902 aPropSequence
[1].Name
= "Segments";
3903 static const sal_uInt16 nValues
[] = {
3922 aPropSequence
[1].Value
= makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues
), nValues
));
3925 aPropSequence
[2].Name
= "TextFrames";
3926 Sequence
< EnhancedCustomShapeTextFrame
> aTextFrameSeq (1);
3928 EnhancedCustomShapeTextFrame aTextFrame
;
3930 static const CustomShapeProvider::ParameterPairData aData
=
3932 EnhancedCustomShapeParameterType::EQUATION
,
3933 EnhancedCustomShapeParameterType::EQUATION
,
3936 aTextFrame
.TopLeft
= createParameterPair(&aData
);
3939 static const CustomShapeProvider::ParameterPairData aData
=
3941 EnhancedCustomShapeParameterType::EQUATION
,
3942 EnhancedCustomShapeParameterType::EQUATION
,
3945 aTextFrame
.BottomRight
= createParameterPair(&aData
);
3947 aTextFrameSeq
[0] = aTextFrame
;
3949 aPropSequence
[2].Value
= makeAny (aTextFrameSeq
);
3951 aPropertyMap
[PROP_Path
] <<= aPropSequence
;
3954 awt::Rectangle aRectangle
;
3957 aRectangle
.Width
= 0;
3958 aRectangle
.Height
= 0;
3959 aPropertyMap
[PROP_ViewBox
] <<= aRectangle
;
3961 aPropertyMap
[ PROP_Type
] <<= OUString("ooxml-squareTabs");
3963 return aPropertyMap
;
3966 class ShapeCleftRightUpArrow
: public CustomShapeProvider
3968 virtual PropertyMap
getProperties()
3970 PropertyMap aPropertyMap
;
3973 Sequence
< EnhancedCustomShapeAdjustmentValue
> aAdjSequence (3);
3975 Any
aAny ((sal_Int32
) 25000);
3976 aAdjSequence
[0].Value
= aAny
;
3977 aAdjSequence
[0].Name
= "adj1";
3980 Any
aAny ((sal_Int32
) 25000);
3981 aAdjSequence
[1].Value
= aAny
;
3982 aAdjSequence
[1].Name
= "adj2";
3985 Any
aAny ((sal_Int32
) 25000);
3986 aAdjSequence
[2].Value
= aAny
;
3987 aAdjSequence
[2].Name
= "adj3";
3989 aPropertyMap
[PROP_AdjustmentValues
] <<= aAdjSequence
;
3992 static const char *aStrings
[] = {
3993 "if(0-$1 ,0,if(50000-$1 ,$1 ,50000))",
3995 "if(0-$0 ,0,if(?1 -$0 ,$0 ,?1 ))",
3998 "if(0-$2 ,0,if(?4 -$2 ,$2 ,?4 ))",
3999 "min(logwidth,logheight)",
4019 aPropertyMap
[PROP_Equations
] <<= createStringSequence( SAL_N_ELEMENTS( aStrings
), aStrings
);
4022 Sequence
< Sequence
< PropertyValue
> > aPropSequenceSequence (3);
4024 Sequence
< PropertyValue
> aPropSequence (4);
4026 aPropSequence
[0].Name
= "Position";
4027 static const CustomShapeProvider::ParameterPairData aData
=
4029 EnhancedCustomShapeParameterType::EQUATION
,
4030 EnhancedCustomShapeParameterType::EQUATION
,
4033 aPropSequence
[0].Value
= makeAny (createParameterPair(&aData
));
4036 aPropSequence
[1].Name
= "RangeXMaximum";
4037 EnhancedCustomShapeParameter aParameter
;
4038 Any
aAny ((sal_Int32
) 1);
4039 aParameter
.Value
= aAny
;
4040 aParameter
.Type
= EnhancedCustomShapeParameterType::EQUATION
;
4041 aPropSequence
[1].Value
= makeAny (aParameter
);
4044 aPropSequence
[2].Name
= "RangeXMinimum";
4045 EnhancedCustomShapeParameter aParameter
;
4046 Any
aAny ((sal_Int32
) 0);
4047 aParameter
.Value
= aAny
;
4048 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
4049 aPropSequence
[2].Value
= makeAny (aParameter
);
4052 aPropSequence
[3].Name
= "RefX";
4053 Any
aAny ((sal_Int32
) 0);
4054 aPropSequence
[3].Value
= makeAny (aAny
);
4056 aPropSequenceSequence
[0] = aPropSequence
;
4059 Sequence
< PropertyValue
> aPropSequence (4);
4061 aPropSequence
[0].Name
= "Position";
4062 static const CustomShapeProvider::ParameterPairData aData
=
4064 EnhancedCustomShapeParameterType::EQUATION
,
4065 EnhancedCustomShapeParameterType::NORMAL
,
4068 aPropSequence
[0].Value
= makeAny (createParameterPair(&aData
));
4071 aPropSequence
[1].Name
= "RangeXMaximum";
4072 EnhancedCustomShapeParameter aParameter
;
4073 Any
aAny ((sal_Int32
) 50000);
4074 aParameter
.Value
= aAny
;
4075 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
4076 aPropSequence
[1].Value
= makeAny (aParameter
);
4079 aPropSequence
[2].Name
= "RangeXMinimum";
4080 EnhancedCustomShapeParameter aParameter
;
4081 Any
aAny ((sal_Int32
) 0);
4082 aParameter
.Value
= aAny
;
4083 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
4084 aPropSequence
[2].Value
= makeAny (aParameter
);
4087 aPropSequence
[3].Name
= "RefX";
4088 Any
aAny ((sal_Int32
) 1);
4089 aPropSequence
[3].Value
= makeAny (aAny
);
4091 aPropSequenceSequence
[1] = aPropSequence
;
4094 Sequence
< PropertyValue
> aPropSequence (4);
4096 aPropSequence
[0].Name
= "Position";
4097 static const CustomShapeProvider::ParameterPairData aData
=
4099 EnhancedCustomShapeParameterType::EQUATION
,
4100 EnhancedCustomShapeParameterType::EQUATION
,
4103 aPropSequence
[0].Value
= makeAny (createParameterPair(&aData
));
4106 aPropSequence
[1].Name
= "RangeYMaximum";
4107 EnhancedCustomShapeParameter aParameter
;
4108 Any
aAny ((sal_Int32
) 4);
4109 aParameter
.Value
= aAny
;
4110 aParameter
.Type
= EnhancedCustomShapeParameterType::EQUATION
;
4111 aPropSequence
[1].Value
= makeAny (aParameter
);
4114 aPropSequence
[2].Name
= "RangeYMinimum";
4115 EnhancedCustomShapeParameter aParameter
;
4116 Any
aAny ((sal_Int32
) 0);
4117 aParameter
.Value
= aAny
;
4118 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
4119 aPropSequence
[2].Value
= makeAny (aParameter
);
4122 aPropSequence
[3].Name
= "RefY";
4123 Any
aAny ((sal_Int32
) 2);
4124 aPropSequence
[3].Value
= makeAny (aAny
);
4126 aPropSequenceSequence
[2] = aPropSequence
;
4128 aPropertyMap
[PROP_Handles
] <<= aPropSequenceSequence
;
4131 aPropertyMap
[PROP_MirroredX
] <<= Any ((sal_Bool
) sal_False
);
4134 aPropertyMap
[PROP_MirroredY
] <<= Any ((sal_Bool
) sal_False
);
4137 Sequence
< PropertyValue
> aPropSequence (3);
4139 aPropSequence
[0].Name
= "Coordinates";
4140 static const CustomShapeProvider::ParameterPairData aData
[] = {
4142 EnhancedCustomShapeParameterType::NORMAL
,
4143 EnhancedCustomShapeParameterType::EQUATION
,
4147 EnhancedCustomShapeParameterType::EQUATION
,
4148 EnhancedCustomShapeParameterType::EQUATION
,
4152 EnhancedCustomShapeParameterType::EQUATION
,
4153 EnhancedCustomShapeParameterType::EQUATION
,
4157 EnhancedCustomShapeParameterType::EQUATION
,
4158 EnhancedCustomShapeParameterType::EQUATION
,
4162 EnhancedCustomShapeParameterType::EQUATION
,
4163 EnhancedCustomShapeParameterType::EQUATION
,
4167 EnhancedCustomShapeParameterType::EQUATION
,
4168 EnhancedCustomShapeParameterType::EQUATION
,
4172 EnhancedCustomShapeParameterType::EQUATION
,
4173 EnhancedCustomShapeParameterType::NORMAL
,
4177 EnhancedCustomShapeParameterType::EQUATION
,
4178 EnhancedCustomShapeParameterType::EQUATION
,
4182 EnhancedCustomShapeParameterType::EQUATION
,
4183 EnhancedCustomShapeParameterType::EQUATION
,
4187 EnhancedCustomShapeParameterType::EQUATION
,
4188 EnhancedCustomShapeParameterType::EQUATION
,
4192 EnhancedCustomShapeParameterType::EQUATION
,
4193 EnhancedCustomShapeParameterType::EQUATION
,
4197 EnhancedCustomShapeParameterType::EQUATION
,
4198 EnhancedCustomShapeParameterType::EQUATION
,
4202 EnhancedCustomShapeParameterType::EQUATION
,
4203 EnhancedCustomShapeParameterType::EQUATION
,
4207 EnhancedCustomShapeParameterType::EQUATION
,
4208 EnhancedCustomShapeParameterType::EQUATION
,
4212 EnhancedCustomShapeParameterType::EQUATION
,
4213 EnhancedCustomShapeParameterType::EQUATION
,
4217 EnhancedCustomShapeParameterType::EQUATION
,
4218 EnhancedCustomShapeParameterType::EQUATION
,
4222 EnhancedCustomShapeParameterType::EQUATION
,
4223 EnhancedCustomShapeParameterType::EQUATION
,
4227 aPropSequence
[0].Value
= makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData
), aData
));
4230 aPropSequence
[1].Name
= "Segments";
4231 static const sal_uInt16 nValues
[] = {
4238 aPropSequence
[1].Value
= makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues
), nValues
));
4241 aPropSequence
[2].Name
= "TextFrames";
4242 Sequence
< EnhancedCustomShapeTextFrame
> aTextFrameSeq (1);
4244 EnhancedCustomShapeTextFrame aTextFrame
;
4246 static const CustomShapeProvider::ParameterPairData aData
=
4248 EnhancedCustomShapeParameterType::EQUATION
,
4249 EnhancedCustomShapeParameterType::EQUATION
,
4252 aTextFrame
.TopLeft
= createParameterPair(&aData
);
4255 static const CustomShapeProvider::ParameterPairData aData
=
4257 EnhancedCustomShapeParameterType::EQUATION
,
4258 EnhancedCustomShapeParameterType::EQUATION
,
4261 aTextFrame
.BottomRight
= createParameterPair(&aData
);
4263 aTextFrameSeq
[0] = aTextFrame
;
4265 aPropSequence
[2].Value
= makeAny (aTextFrameSeq
);
4267 aPropertyMap
[PROP_Path
] <<= aPropSequence
;
4270 awt::Rectangle aRectangle
;
4273 aRectangle
.Width
= 0;
4274 aRectangle
.Height
= 0;
4275 aPropertyMap
[PROP_ViewBox
] <<= aRectangle
;
4277 aPropertyMap
[ PROP_Type
] <<= OUString("ooxml-leftRightUpArrow");
4279 return aPropertyMap
;
4282 class ShapeChomePlate
: public CustomShapeProvider
4284 virtual PropertyMap
getProperties()
4286 PropertyMap aPropertyMap
;
4289 Sequence
< EnhancedCustomShapeAdjustmentValue
> aAdjSequence (1);
4291 Any
aAny ((sal_Int32
) 50000);
4292 aAdjSequence
[0].Value
= aAny
;
4293 aAdjSequence
[0].Name
= "adj";
4295 aPropertyMap
[PROP_AdjustmentValues
] <<= aAdjSequence
;
4298 static const char *aStrings
[] = {
4299 "min(logwidth,logheight)",
4300 "100000*logwidth/?0 ",
4301 "if(0-$0 ,0,if(?1 -$0 ,$0 ,?1 ))",
4310 aPropertyMap
[PROP_Equations
] <<= createStringSequence( SAL_N_ELEMENTS( aStrings
), aStrings
);
4313 Sequence
< Sequence
< PropertyValue
> > aPropSequenceSequence (1);
4315 Sequence
< PropertyValue
> aPropSequence (4);
4317 aPropSequence
[0].Name
= "Position";
4318 static const CustomShapeProvider::ParameterPairData aData
=
4320 EnhancedCustomShapeParameterType::EQUATION
,
4321 EnhancedCustomShapeParameterType::NORMAL
,
4324 aPropSequence
[0].Value
= makeAny (createParameterPair(&aData
));
4327 aPropSequence
[1].Name
= "RangeXMaximum";
4328 EnhancedCustomShapeParameter aParameter
;
4329 Any
aAny ((sal_Int32
) 1);
4330 aParameter
.Value
= aAny
;
4331 aParameter
.Type
= EnhancedCustomShapeParameterType::EQUATION
;
4332 aPropSequence
[1].Value
= makeAny (aParameter
);
4335 aPropSequence
[2].Name
= "RangeXMinimum";
4336 EnhancedCustomShapeParameter aParameter
;
4337 Any
aAny ((sal_Int32
) 0);
4338 aParameter
.Value
= aAny
;
4339 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
4340 aPropSequence
[2].Value
= makeAny (aParameter
);
4343 aPropSequence
[3].Name
= "RefX";
4344 Any
aAny ((sal_Int32
) 0);
4345 aPropSequence
[3].Value
= makeAny (aAny
);
4347 aPropSequenceSequence
[0] = aPropSequence
;
4349 aPropertyMap
[PROP_Handles
] <<= aPropSequenceSequence
;
4352 aPropertyMap
[PROP_MirroredX
] <<= Any ((sal_Bool
) sal_False
);
4355 aPropertyMap
[PROP_MirroredY
] <<= Any ((sal_Bool
) sal_False
);
4358 Sequence
< PropertyValue
> aPropSequence (3);
4360 aPropSequence
[0].Name
= "Coordinates";
4361 static const CustomShapeProvider::ParameterPairData aData
[] = {
4363 EnhancedCustomShapeParameterType::NORMAL
,
4364 EnhancedCustomShapeParameterType::NORMAL
,
4368 EnhancedCustomShapeParameterType::EQUATION
,
4369 EnhancedCustomShapeParameterType::NORMAL
,
4373 EnhancedCustomShapeParameterType::EQUATION
,
4374 EnhancedCustomShapeParameterType::EQUATION
,
4378 EnhancedCustomShapeParameterType::EQUATION
,
4379 EnhancedCustomShapeParameterType::EQUATION
,
4383 EnhancedCustomShapeParameterType::NORMAL
,
4384 EnhancedCustomShapeParameterType::EQUATION
,
4388 aPropSequence
[0].Value
= makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData
), aData
));
4391 aPropSequence
[1].Name
= "Segments";
4392 static const sal_uInt16 nValues
[] = {
4399 aPropSequence
[1].Value
= makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues
), nValues
));
4402 aPropSequence
[2].Name
= "TextFrames";
4403 Sequence
< EnhancedCustomShapeTextFrame
> aTextFrameSeq (1);
4405 EnhancedCustomShapeTextFrame aTextFrame
;
4407 static const CustomShapeProvider::ParameterPairData aData
=
4409 EnhancedCustomShapeParameterType::NORMAL
,
4410 EnhancedCustomShapeParameterType::NORMAL
,
4413 aTextFrame
.TopLeft
= createParameterPair(&aData
);
4416 static const CustomShapeProvider::ParameterPairData aData
=
4418 EnhancedCustomShapeParameterType::EQUATION
,
4419 EnhancedCustomShapeParameterType::EQUATION
,
4422 aTextFrame
.BottomRight
= createParameterPair(&aData
);
4424 aTextFrameSeq
[0] = aTextFrame
;
4426 aPropSequence
[2].Value
= makeAny (aTextFrameSeq
);
4428 aPropertyMap
[PROP_Path
] <<= aPropSequence
;
4431 awt::Rectangle aRectangle
;
4434 aRectangle
.Width
= 0;
4435 aRectangle
.Height
= 0;
4436 aPropertyMap
[PROP_ViewBox
] <<= aRectangle
;
4438 aPropertyMap
[ PROP_Type
] <<= OUString("ooxml-homePlate");
4440 return aPropertyMap
;
4443 class ShapeCdodecagon
: public CustomShapeProvider
4445 virtual PropertyMap
getProperties()
4447 PropertyMap aPropertyMap
;
4450 aPropertyMap
[PROP_AdjustmentValues
] <<= Sequence
< OUString
>(0);
4453 static const char *aStrings
[] = {
4454 "logwidth*2894/21600",
4455 "logwidth*7906/21600",
4456 "logwidth*13694/21600",
4457 "logwidth*18706/21600",
4458 "logheight*2894/21600",
4459 "logheight*7906/21600",
4460 "logheight*13694/21600",
4461 "logheight*18706/21600",
4465 aPropertyMap
[PROP_Equations
] <<= createStringSequence( SAL_N_ELEMENTS( aStrings
), aStrings
);
4468 aPropertyMap
[PROP_Handles
] <<= Sequence
< OUString
>(0);
4471 aPropertyMap
[PROP_MirroredX
] <<= Any ((sal_Bool
) sal_False
);
4474 aPropertyMap
[PROP_MirroredY
] <<= Any ((sal_Bool
) sal_False
);
4477 Sequence
< PropertyValue
> aPropSequence (3);
4479 aPropSequence
[0].Name
= "Coordinates";
4480 static const CustomShapeProvider::ParameterPairData aData
[] = {
4482 EnhancedCustomShapeParameterType::NORMAL
,
4483 EnhancedCustomShapeParameterType::EQUATION
,
4487 EnhancedCustomShapeParameterType::EQUATION
,
4488 EnhancedCustomShapeParameterType::EQUATION
,
4492 EnhancedCustomShapeParameterType::EQUATION
,
4493 EnhancedCustomShapeParameterType::NORMAL
,
4497 EnhancedCustomShapeParameterType::EQUATION
,
4498 EnhancedCustomShapeParameterType::NORMAL
,
4502 EnhancedCustomShapeParameterType::EQUATION
,
4503 EnhancedCustomShapeParameterType::EQUATION
,
4507 EnhancedCustomShapeParameterType::EQUATION
,
4508 EnhancedCustomShapeParameterType::EQUATION
,
4512 EnhancedCustomShapeParameterType::EQUATION
,
4513 EnhancedCustomShapeParameterType::EQUATION
,
4517 EnhancedCustomShapeParameterType::EQUATION
,
4518 EnhancedCustomShapeParameterType::EQUATION
,
4522 EnhancedCustomShapeParameterType::EQUATION
,
4523 EnhancedCustomShapeParameterType::EQUATION
,
4527 EnhancedCustomShapeParameterType::EQUATION
,
4528 EnhancedCustomShapeParameterType::EQUATION
,
4532 EnhancedCustomShapeParameterType::EQUATION
,
4533 EnhancedCustomShapeParameterType::EQUATION
,
4537 EnhancedCustomShapeParameterType::NORMAL
,
4538 EnhancedCustomShapeParameterType::EQUATION
,
4542 aPropSequence
[0].Value
= makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData
), aData
));
4545 aPropSequence
[1].Name
= "Segments";
4546 static const sal_uInt16 nValues
[] = {
4553 aPropSequence
[1].Value
= makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues
), nValues
));
4556 aPropSequence
[2].Name
= "TextFrames";
4557 Sequence
< EnhancedCustomShapeTextFrame
> aTextFrameSeq (1);
4559 EnhancedCustomShapeTextFrame aTextFrame
;
4561 static const CustomShapeProvider::ParameterPairData aData
=
4563 EnhancedCustomShapeParameterType::EQUATION
,
4564 EnhancedCustomShapeParameterType::EQUATION
,
4567 aTextFrame
.TopLeft
= createParameterPair(&aData
);
4570 static const CustomShapeProvider::ParameterPairData aData
=
4572 EnhancedCustomShapeParameterType::EQUATION
,
4573 EnhancedCustomShapeParameterType::EQUATION
,
4576 aTextFrame
.BottomRight
= createParameterPair(&aData
);
4578 aTextFrameSeq
[0] = aTextFrame
;
4580 aPropSequence
[2].Value
= makeAny (aTextFrameSeq
);
4582 aPropertyMap
[PROP_Path
] <<= aPropSequence
;
4585 awt::Rectangle aRectangle
;
4588 aRectangle
.Width
= 0;
4589 aRectangle
.Height
= 0;
4590 aPropertyMap
[PROP_ViewBox
] <<= aRectangle
;
4592 aPropertyMap
[ PROP_Type
] <<= OUString("ooxml-dodecagon");
4594 return aPropertyMap
;
4597 class ShapeCleftArrowCallout
: public CustomShapeProvider
4599 virtual PropertyMap
getProperties()
4601 PropertyMap aPropertyMap
;
4604 Sequence
< EnhancedCustomShapeAdjustmentValue
> aAdjSequence (4);
4606 Any
aAny ((sal_Int32
) 25000);
4607 aAdjSequence
[0].Value
= aAny
;
4608 aAdjSequence
[0].Name
= "adj1";
4611 Any
aAny ((sal_Int32
) 25000);
4612 aAdjSequence
[1].Value
= aAny
;
4613 aAdjSequence
[1].Name
= "adj2";
4616 Any
aAny ((sal_Int32
) 25000);
4617 aAdjSequence
[2].Value
= aAny
;
4618 aAdjSequence
[2].Name
= "adj3";
4621 Any
aAny ((sal_Int32
) 64977);
4622 aAdjSequence
[3].Value
= aAny
;
4623 aAdjSequence
[3].Name
= "adj4";
4625 aPropertyMap
[PROP_AdjustmentValues
] <<= aAdjSequence
;
4628 static const char *aStrings
[] = {
4629 "min(logwidth,logheight)",
4630 "50000*logheight/?0 ",
4631 "if(0-$1 ,0,if(?1 -$1 ,$1 ,?1 ))",
4633 "if(0-$0 ,0,if(?3 -$0 ,$0 ,?3 ))",
4634 "100000*logwidth/?0 ",
4635 "if(0-$2 ,0,if(?5 -$2 ,$2 ,?5 ))",
4638 "if(0-$3 ,0,if(?8 -$3 ,$3 ,?8 ))",
4647 "logwidth*?9 /100000",
4649 "(?19 +logwidth)/2",
4653 aPropertyMap
[PROP_Equations
] <<= createStringSequence( SAL_N_ELEMENTS( aStrings
), aStrings
);
4656 Sequence
< Sequence
< PropertyValue
> > aPropSequenceSequence (4);
4658 Sequence
< PropertyValue
> aPropSequence (4);
4660 aPropSequence
[0].Name
= "Position";
4661 static const CustomShapeProvider::ParameterPairData aData
=
4663 EnhancedCustomShapeParameterType::EQUATION
,
4664 EnhancedCustomShapeParameterType::EQUATION
,
4667 aPropSequence
[0].Value
= makeAny (createParameterPair(&aData
));
4670 aPropSequence
[1].Name
= "RangeYMaximum";
4671 EnhancedCustomShapeParameter aParameter
;
4672 Any
aAny ((sal_Int32
) 3);
4673 aParameter
.Value
= aAny
;
4674 aParameter
.Type
= EnhancedCustomShapeParameterType::EQUATION
;
4675 aPropSequence
[1].Value
= makeAny (aParameter
);
4678 aPropSequence
[2].Name
= "RangeYMinimum";
4679 EnhancedCustomShapeParameter aParameter
;
4680 Any
aAny ((sal_Int32
) 0);
4681 aParameter
.Value
= aAny
;
4682 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
4683 aPropSequence
[2].Value
= makeAny (aParameter
);
4686 aPropSequence
[3].Name
= "RefY";
4687 Any
aAny ((sal_Int32
) 0);
4688 aPropSequence
[3].Value
= makeAny (aAny
);
4690 aPropSequenceSequence
[0] = aPropSequence
;
4693 Sequence
< PropertyValue
> aPropSequence (4);
4695 aPropSequence
[0].Name
= "Position";
4696 static const CustomShapeProvider::ParameterPairData aData
=
4698 EnhancedCustomShapeParameterType::NORMAL
,
4699 EnhancedCustomShapeParameterType::EQUATION
,
4702 aPropSequence
[0].Value
= makeAny (createParameterPair(&aData
));
4705 aPropSequence
[1].Name
= "RangeYMaximum";
4706 EnhancedCustomShapeParameter aParameter
;
4707 Any
aAny ((sal_Int32
) 1);
4708 aParameter
.Value
= aAny
;
4709 aParameter
.Type
= EnhancedCustomShapeParameterType::EQUATION
;
4710 aPropSequence
[1].Value
= makeAny (aParameter
);
4713 aPropSequence
[2].Name
= "RangeYMinimum";
4714 EnhancedCustomShapeParameter aParameter
;
4715 Any
aAny ((sal_Int32
) 0);
4716 aParameter
.Value
= aAny
;
4717 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
4718 aPropSequence
[2].Value
= makeAny (aParameter
);
4721 aPropSequence
[3].Name
= "RefY";
4722 Any
aAny ((sal_Int32
) 1);
4723 aPropSequence
[3].Value
= makeAny (aAny
);
4725 aPropSequenceSequence
[1] = aPropSequence
;
4728 Sequence
< PropertyValue
> aPropSequence (4);
4730 aPropSequence
[0].Name
= "Position";
4731 static const CustomShapeProvider::ParameterPairData aData
=
4733 EnhancedCustomShapeParameterType::EQUATION
,
4734 EnhancedCustomShapeParameterType::NORMAL
,
4737 aPropSequence
[0].Value
= makeAny (createParameterPair(&aData
));
4740 aPropSequence
[1].Name
= "RangeXMaximum";
4741 EnhancedCustomShapeParameter aParameter
;
4742 Any
aAny ((sal_Int32
) 5);
4743 aParameter
.Value
= aAny
;
4744 aParameter
.Type
= EnhancedCustomShapeParameterType::EQUATION
;
4745 aPropSequence
[1].Value
= makeAny (aParameter
);
4748 aPropSequence
[2].Name
= "RangeXMinimum";
4749 EnhancedCustomShapeParameter aParameter
;
4750 Any
aAny ((sal_Int32
) 0);
4751 aParameter
.Value
= aAny
;
4752 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
4753 aPropSequence
[2].Value
= makeAny (aParameter
);
4756 aPropSequence
[3].Name
= "RefX";
4757 Any
aAny ((sal_Int32
) 2);
4758 aPropSequence
[3].Value
= makeAny (aAny
);
4760 aPropSequenceSequence
[2] = aPropSequence
;
4763 Sequence
< PropertyValue
> aPropSequence (4);
4765 aPropSequence
[0].Name
= "Position";
4766 static const CustomShapeProvider::ParameterPairData aData
=
4768 EnhancedCustomShapeParameterType::EQUATION
,
4769 EnhancedCustomShapeParameterType::EQUATION
,
4772 aPropSequence
[0].Value
= makeAny (createParameterPair(&aData
));
4775 aPropSequence
[1].Name
= "RangeXMaximum";
4776 EnhancedCustomShapeParameter aParameter
;
4777 Any
aAny ((sal_Int32
) 8);
4778 aParameter
.Value
= aAny
;
4779 aParameter
.Type
= EnhancedCustomShapeParameterType::EQUATION
;
4780 aPropSequence
[1].Value
= makeAny (aParameter
);
4783 aPropSequence
[2].Name
= "RangeXMinimum";
4784 EnhancedCustomShapeParameter aParameter
;
4785 Any
aAny ((sal_Int32
) 0);
4786 aParameter
.Value
= aAny
;
4787 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
4788 aPropSequence
[2].Value
= makeAny (aParameter
);
4791 aPropSequence
[3].Name
= "RefX";
4792 Any
aAny ((sal_Int32
) 3);
4793 aPropSequence
[3].Value
= makeAny (aAny
);
4795 aPropSequenceSequence
[3] = aPropSequence
;
4797 aPropertyMap
[PROP_Handles
] <<= aPropSequenceSequence
;
4800 aPropertyMap
[PROP_MirroredX
] <<= Any ((sal_Bool
) sal_False
);
4803 aPropertyMap
[PROP_MirroredY
] <<= Any ((sal_Bool
) sal_False
);
4806 Sequence
< PropertyValue
> aPropSequence (3);
4808 aPropSequence
[0].Name
= "Coordinates";
4809 static const CustomShapeProvider::ParameterPairData aData
[] = {
4811 EnhancedCustomShapeParameterType::NORMAL
,
4812 EnhancedCustomShapeParameterType::EQUATION
,
4816 EnhancedCustomShapeParameterType::EQUATION
,
4817 EnhancedCustomShapeParameterType::EQUATION
,
4821 EnhancedCustomShapeParameterType::EQUATION
,
4822 EnhancedCustomShapeParameterType::EQUATION
,
4826 EnhancedCustomShapeParameterType::EQUATION
,
4827 EnhancedCustomShapeParameterType::EQUATION
,
4831 EnhancedCustomShapeParameterType::EQUATION
,
4832 EnhancedCustomShapeParameterType::NORMAL
,
4836 EnhancedCustomShapeParameterType::EQUATION
,
4837 EnhancedCustomShapeParameterType::NORMAL
,
4841 EnhancedCustomShapeParameterType::EQUATION
,
4842 EnhancedCustomShapeParameterType::EQUATION
,
4846 EnhancedCustomShapeParameterType::EQUATION
,
4847 EnhancedCustomShapeParameterType::EQUATION
,
4851 EnhancedCustomShapeParameterType::EQUATION
,
4852 EnhancedCustomShapeParameterType::EQUATION
,
4856 EnhancedCustomShapeParameterType::EQUATION
,
4857 EnhancedCustomShapeParameterType::EQUATION
,
4861 EnhancedCustomShapeParameterType::EQUATION
,
4862 EnhancedCustomShapeParameterType::EQUATION
,
4866 aPropSequence
[0].Value
= makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData
), aData
));
4869 aPropSequence
[1].Name
= "Segments";
4870 static const sal_uInt16 nValues
[] = {
4877 aPropSequence
[1].Value
= makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues
), nValues
));
4880 aPropSequence
[2].Name
= "TextFrames";
4881 Sequence
< EnhancedCustomShapeTextFrame
> aTextFrameSeq (1);
4883 EnhancedCustomShapeTextFrame aTextFrame
;
4885 static const CustomShapeProvider::ParameterPairData aData
=
4887 EnhancedCustomShapeParameterType::EQUATION
,
4888 EnhancedCustomShapeParameterType::NORMAL
,
4891 aTextFrame
.TopLeft
= createParameterPair(&aData
);
4894 static const CustomShapeProvider::ParameterPairData aData
=
4896 EnhancedCustomShapeParameterType::EQUATION
,
4897 EnhancedCustomShapeParameterType::EQUATION
,
4900 aTextFrame
.BottomRight
= createParameterPair(&aData
);
4902 aTextFrameSeq
[0] = aTextFrame
;
4904 aPropSequence
[2].Value
= makeAny (aTextFrameSeq
);
4906 aPropertyMap
[PROP_Path
] <<= aPropSequence
;
4909 awt::Rectangle aRectangle
;
4912 aRectangle
.Width
= 0;
4913 aRectangle
.Height
= 0;
4914 aPropertyMap
[PROP_ViewBox
] <<= aRectangle
;
4916 aPropertyMap
[ PROP_Type
] <<= OUString("ooxml-leftArrowCallout");
4918 return aPropertyMap
;
4921 class ShapeCchord
: public CustomShapeProvider
4923 virtual PropertyMap
getProperties()
4925 PropertyMap aPropertyMap
;
4928 Sequence
< EnhancedCustomShapeAdjustmentValue
> aAdjSequence (2);
4930 Any
aAny ((sal_Int32
) 2700000);
4931 aAdjSequence
[0].Value
= aAny
;
4932 aAdjSequence
[0].Name
= "adj1";
4935 Any
aAny ((sal_Int32
) 16200000);
4936 aAdjSequence
[1].Value
= aAny
;
4937 aAdjSequence
[1].Name
= "adj2";
4939 aPropertyMap
[PROP_AdjustmentValues
] <<= aAdjSequence
;
4942 static const char *aStrings
[] = {
4943 "if(0-$0 ,0,if(21599999-$0 ,$0 ,21599999))",
4944 "if(0-$1 ,0,if(21599999-$1 ,$1 ,21599999))",
4949 "?5 *sin(pi*(?0 )/10800000)",
4951 "?7 *cos(pi*(?0 )/10800000)",
4952 "?5 *(cos(atan2(?6 ,?8 )))",
4953 "?7 *(sin(atan2(?6 ,?8 )))",
4954 "?5 *sin(pi*(?1 )/10800000)",
4955 "?7 *cos(pi*(?1 )/10800000)",
4956 "?5 *(cos(atan2(?11 ,?12 )))",
4957 "?7 *(sin(atan2(?11 ,?12 )))",
4967 "?0 +?23 -10800000",
4968 "?5 *cos(pi*(2700000)/10800000)",
4969 "?7 *sin(pi*(2700000)/10800000)",
4977 aPropertyMap
[PROP_Equations
] <<= createStringSequence( SAL_N_ELEMENTS( aStrings
), aStrings
);
4980 Sequence
< Sequence
< PropertyValue
> > aPropSequenceSequence (2);
4982 Sequence
< PropertyValue
> aPropSequence (1);
4984 aPropSequence
[0].Name
= "Position";
4985 static const CustomShapeProvider::ParameterPairData aData
=
4987 EnhancedCustomShapeParameterType::EQUATION
,
4988 EnhancedCustomShapeParameterType::EQUATION
,
4991 aPropSequence
[0].Value
= makeAny (createParameterPair(&aData
));
4993 aPropSequenceSequence
[0] = aPropSequence
;
4996 Sequence
< PropertyValue
> aPropSequence (1);
4998 aPropSequence
[0].Name
= "Position";
4999 static const CustomShapeProvider::ParameterPairData aData
=
5001 EnhancedCustomShapeParameterType::EQUATION
,
5002 EnhancedCustomShapeParameterType::EQUATION
,
5005 aPropSequence
[0].Value
= makeAny (createParameterPair(&aData
));
5007 aPropSequenceSequence
[1] = aPropSequence
;
5009 aPropertyMap
[PROP_Handles
] <<= aPropSequenceSequence
;
5012 aPropertyMap
[PROP_MirroredX
] <<= Any ((sal_Bool
) sal_False
);
5015 aPropertyMap
[PROP_MirroredY
] <<= Any ((sal_Bool
) sal_False
);
5018 Sequence
< PropertyValue
> aPropSequence (3);
5020 aPropSequence
[0].Name
= "Coordinates";
5021 static const CustomShapeProvider::ParameterPairData aData
[] = {
5023 EnhancedCustomShapeParameterType::EQUATION
,
5024 EnhancedCustomShapeParameterType::EQUATION
,
5028 EnhancedCustomShapeParameterType::EQUATION
,
5029 EnhancedCustomShapeParameterType::EQUATION
,
5033 EnhancedCustomShapeParameterType::EQUATION
,
5034 EnhancedCustomShapeParameterType::EQUATION
,
5038 aPropSequence
[0].Value
= makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData
), aData
));
5041 aPropSequence
[1].Name
= "Segments";
5042 static const sal_uInt16 nValues
[] = {
5049 aPropSequence
[1].Value
= makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues
), nValues
));
5052 aPropSequence
[2].Name
= "TextFrames";
5053 Sequence
< EnhancedCustomShapeTextFrame
> aTextFrameSeq (1);
5055 EnhancedCustomShapeTextFrame aTextFrame
;
5057 static const CustomShapeProvider::ParameterPairData aData
=
5059 EnhancedCustomShapeParameterType::EQUATION
,
5060 EnhancedCustomShapeParameterType::EQUATION
,
5063 aTextFrame
.TopLeft
= createParameterPair(&aData
);
5066 static const CustomShapeProvider::ParameterPairData aData
=
5068 EnhancedCustomShapeParameterType::EQUATION
,
5069 EnhancedCustomShapeParameterType::EQUATION
,
5072 aTextFrame
.BottomRight
= createParameterPair(&aData
);
5074 aTextFrameSeq
[0] = aTextFrame
;
5076 aPropSequence
[2].Value
= makeAny (aTextFrameSeq
);
5078 aPropertyMap
[PROP_Path
] <<= aPropSequence
;
5081 awt::Rectangle aRectangle
;
5084 aRectangle
.Width
= 0;
5085 aRectangle
.Height
= 0;
5086 aPropertyMap
[PROP_ViewBox
] <<= aRectangle
;
5088 aPropertyMap
[ PROP_Type
] <<= OUString("ooxml-chord");
5090 return aPropertyMap
;
5093 class ShapeCquadArrowCallout
: public CustomShapeProvider
5095 virtual PropertyMap
getProperties()
5097 PropertyMap aPropertyMap
;
5100 Sequence
< EnhancedCustomShapeAdjustmentValue
> aAdjSequence (4);
5102 Any
aAny ((sal_Int32
) 18515);
5103 aAdjSequence
[0].Value
= aAny
;
5104 aAdjSequence
[0].Name
= "adj1";
5107 Any
aAny ((sal_Int32
) 18515);
5108 aAdjSequence
[1].Value
= aAny
;
5109 aAdjSequence
[1].Name
= "adj2";
5112 Any
aAny ((sal_Int32
) 18515);
5113 aAdjSequence
[2].Value
= aAny
;
5114 aAdjSequence
[2].Name
= "adj3";
5117 Any
aAny ((sal_Int32
) 48123);
5118 aAdjSequence
[3].Value
= aAny
;
5119 aAdjSequence
[3].Name
= "adj4";
5121 aPropertyMap
[PROP_AdjustmentValues
] <<= aAdjSequence
;
5124 static const char *aStrings
[] = {
5125 "if(0-$1 ,0,if(50000-$1 ,$1 ,50000))",
5127 "if(0-$0 ,0,if(?1 -$0 ,$0 ,?1 ))",
5129 "if(0-$2 ,0,if(?3 -$2 ,$2 ,?3 ))",
5132 "if(?2 -$3 ,?2 ,if(?6 -$3 ,$3 ,?6 ))",
5133 "min(logwidth,logheight)",
5137 "logwidth*?7 /200000",
5138 "logheight*?7 /200000",
5158 aPropertyMap
[PROP_Equations
] <<= createStringSequence( SAL_N_ELEMENTS( aStrings
), aStrings
);
5161 Sequence
< Sequence
< PropertyValue
> > aPropSequenceSequence (4);
5163 Sequence
< PropertyValue
> aPropSequence (4);
5165 aPropSequence
[0].Name
= "Position";
5166 static const CustomShapeProvider::ParameterPairData aData
=
5168 EnhancedCustomShapeParameterType::EQUATION
,
5169 EnhancedCustomShapeParameterType::EQUATION
,
5172 aPropSequence
[0].Value
= makeAny (createParameterPair(&aData
));
5175 aPropSequence
[1].Name
= "RangeXMaximum";
5176 EnhancedCustomShapeParameter aParameter
;
5177 Any
aAny ((sal_Int32
) 1);
5178 aParameter
.Value
= aAny
;
5179 aParameter
.Type
= EnhancedCustomShapeParameterType::EQUATION
;
5180 aPropSequence
[1].Value
= makeAny (aParameter
);
5183 aPropSequence
[2].Name
= "RangeXMinimum";
5184 EnhancedCustomShapeParameter aParameter
;
5185 Any
aAny ((sal_Int32
) 0);
5186 aParameter
.Value
= aAny
;
5187 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
5188 aPropSequence
[2].Value
= makeAny (aParameter
);
5191 aPropSequence
[3].Name
= "RefX";
5192 Any
aAny ((sal_Int32
) 0);
5193 aPropSequence
[3].Value
= makeAny (aAny
);
5195 aPropSequenceSequence
[0] = aPropSequence
;
5198 Sequence
< PropertyValue
> aPropSequence (4);
5200 aPropSequence
[0].Name
= "Position";
5201 static const CustomShapeProvider::ParameterPairData aData
=
5203 EnhancedCustomShapeParameterType::EQUATION
,
5204 EnhancedCustomShapeParameterType::NORMAL
,
5207 aPropSequence
[0].Value
= makeAny (createParameterPair(&aData
));
5210 aPropSequence
[1].Name
= "RangeXMaximum";
5211 EnhancedCustomShapeParameter aParameter
;
5212 Any
aAny ((sal_Int32
) 50000);
5213 aParameter
.Value
= aAny
;
5214 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
5215 aPropSequence
[1].Value
= makeAny (aParameter
);
5218 aPropSequence
[2].Name
= "RangeXMinimum";
5219 EnhancedCustomShapeParameter aParameter
;
5220 Any
aAny ((sal_Int32
) 0);
5221 aParameter
.Value
= aAny
;
5222 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
5223 aPropSequence
[2].Value
= makeAny (aParameter
);
5226 aPropSequence
[3].Name
= "RefX";
5227 Any
aAny ((sal_Int32
) 1);
5228 aPropSequence
[3].Value
= makeAny (aAny
);
5230 aPropSequenceSequence
[1] = aPropSequence
;
5233 Sequence
< PropertyValue
> aPropSequence (4);
5235 aPropSequence
[0].Name
= "Position";
5236 static const CustomShapeProvider::ParameterPairData aData
=
5238 EnhancedCustomShapeParameterType::EQUATION
,
5239 EnhancedCustomShapeParameterType::EQUATION
,
5242 aPropSequence
[0].Value
= makeAny (createParameterPair(&aData
));
5245 aPropSequence
[1].Name
= "RangeYMaximum";
5246 EnhancedCustomShapeParameter aParameter
;
5247 Any
aAny ((sal_Int32
) 3);
5248 aParameter
.Value
= aAny
;
5249 aParameter
.Type
= EnhancedCustomShapeParameterType::EQUATION
;
5250 aPropSequence
[1].Value
= makeAny (aParameter
);
5253 aPropSequence
[2].Name
= "RangeYMinimum";
5254 EnhancedCustomShapeParameter aParameter
;
5255 Any
aAny ((sal_Int32
) 0);
5256 aParameter
.Value
= aAny
;
5257 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
5258 aPropSequence
[2].Value
= makeAny (aParameter
);
5261 aPropSequence
[3].Name
= "RefY";
5262 Any
aAny ((sal_Int32
) 2);
5263 aPropSequence
[3].Value
= makeAny (aAny
);
5265 aPropSequenceSequence
[2] = aPropSequence
;
5268 Sequence
< PropertyValue
> aPropSequence (4);
5270 aPropSequence
[0].Name
= "Position";
5271 static const CustomShapeProvider::ParameterPairData aData
=
5273 EnhancedCustomShapeParameterType::NORMAL
,
5274 EnhancedCustomShapeParameterType::EQUATION
,
5277 aPropSequence
[0].Value
= makeAny (createParameterPair(&aData
));
5280 aPropSequence
[1].Name
= "RangeYMaximum";
5281 EnhancedCustomShapeParameter aParameter
;
5282 Any
aAny ((sal_Int32
) 6);
5283 aParameter
.Value
= aAny
;
5284 aParameter
.Type
= EnhancedCustomShapeParameterType::EQUATION
;
5285 aPropSequence
[1].Value
= makeAny (aParameter
);
5288 aPropSequence
[2].Name
= "RangeYMinimum";
5289 EnhancedCustomShapeParameter aParameter
;
5290 Any
aAny ((sal_Int32
) 2);
5291 aParameter
.Value
= aAny
;
5292 aParameter
.Type
= EnhancedCustomShapeParameterType::EQUATION
;
5293 aPropSequence
[2].Value
= makeAny (aParameter
);
5296 aPropSequence
[3].Name
= "RefY";
5297 Any
aAny ((sal_Int32
) 3);
5298 aPropSequence
[3].Value
= makeAny (aAny
);
5300 aPropSequenceSequence
[3] = aPropSequence
;
5302 aPropertyMap
[PROP_Handles
] <<= aPropSequenceSequence
;
5305 aPropertyMap
[PROP_MirroredX
] <<= Any ((sal_Bool
) sal_False
);
5308 aPropertyMap
[PROP_MirroredY
] <<= Any ((sal_Bool
) sal_False
);
5311 Sequence
< PropertyValue
> aPropSequence (3);
5313 aPropSequence
[0].Name
= "Coordinates";
5314 static const CustomShapeProvider::ParameterPairData aData
[] = {
5316 EnhancedCustomShapeParameterType::NORMAL
,
5317 EnhancedCustomShapeParameterType::EQUATION
,
5321 EnhancedCustomShapeParameterType::EQUATION
,
5322 EnhancedCustomShapeParameterType::EQUATION
,
5326 EnhancedCustomShapeParameterType::EQUATION
,
5327 EnhancedCustomShapeParameterType::EQUATION
,
5331 EnhancedCustomShapeParameterType::EQUATION
,
5332 EnhancedCustomShapeParameterType::EQUATION
,
5336 EnhancedCustomShapeParameterType::EQUATION
,
5337 EnhancedCustomShapeParameterType::EQUATION
,
5341 EnhancedCustomShapeParameterType::EQUATION
,
5342 EnhancedCustomShapeParameterType::EQUATION
,
5346 EnhancedCustomShapeParameterType::EQUATION
,
5347 EnhancedCustomShapeParameterType::EQUATION
,
5351 EnhancedCustomShapeParameterType::EQUATION
,
5352 EnhancedCustomShapeParameterType::EQUATION
,
5356 EnhancedCustomShapeParameterType::EQUATION
,
5357 EnhancedCustomShapeParameterType::NORMAL
,
5361 EnhancedCustomShapeParameterType::EQUATION
,
5362 EnhancedCustomShapeParameterType::EQUATION
,
5366 EnhancedCustomShapeParameterType::EQUATION
,
5367 EnhancedCustomShapeParameterType::EQUATION
,
5371 EnhancedCustomShapeParameterType::EQUATION
,
5372 EnhancedCustomShapeParameterType::EQUATION
,
5376 EnhancedCustomShapeParameterType::EQUATION
,
5377 EnhancedCustomShapeParameterType::EQUATION
,
5381 EnhancedCustomShapeParameterType::EQUATION
,
5382 EnhancedCustomShapeParameterType::EQUATION
,
5386 EnhancedCustomShapeParameterType::EQUATION
,
5387 EnhancedCustomShapeParameterType::EQUATION
,
5391 EnhancedCustomShapeParameterType::EQUATION
,
5392 EnhancedCustomShapeParameterType::EQUATION
,
5396 EnhancedCustomShapeParameterType::EQUATION
,
5397 EnhancedCustomShapeParameterType::EQUATION
,
5401 EnhancedCustomShapeParameterType::EQUATION
,
5402 EnhancedCustomShapeParameterType::EQUATION
,
5406 EnhancedCustomShapeParameterType::EQUATION
,
5407 EnhancedCustomShapeParameterType::EQUATION
,
5411 EnhancedCustomShapeParameterType::EQUATION
,
5412 EnhancedCustomShapeParameterType::EQUATION
,
5416 EnhancedCustomShapeParameterType::EQUATION
,
5417 EnhancedCustomShapeParameterType::EQUATION
,
5421 EnhancedCustomShapeParameterType::EQUATION
,
5422 EnhancedCustomShapeParameterType::EQUATION
,
5426 EnhancedCustomShapeParameterType::EQUATION
,
5427 EnhancedCustomShapeParameterType::EQUATION
,
5431 EnhancedCustomShapeParameterType::EQUATION
,
5432 EnhancedCustomShapeParameterType::EQUATION
,
5436 EnhancedCustomShapeParameterType::EQUATION
,
5437 EnhancedCustomShapeParameterType::EQUATION
,
5441 EnhancedCustomShapeParameterType::EQUATION
,
5442 EnhancedCustomShapeParameterType::EQUATION
,
5446 EnhancedCustomShapeParameterType::EQUATION
,
5447 EnhancedCustomShapeParameterType::EQUATION
,
5451 EnhancedCustomShapeParameterType::EQUATION
,
5452 EnhancedCustomShapeParameterType::EQUATION
,
5456 EnhancedCustomShapeParameterType::EQUATION
,
5457 EnhancedCustomShapeParameterType::EQUATION
,
5461 EnhancedCustomShapeParameterType::EQUATION
,
5462 EnhancedCustomShapeParameterType::EQUATION
,
5466 EnhancedCustomShapeParameterType::EQUATION
,
5467 EnhancedCustomShapeParameterType::EQUATION
,
5471 EnhancedCustomShapeParameterType::EQUATION
,
5472 EnhancedCustomShapeParameterType::EQUATION
,
5476 aPropSequence
[0].Value
= makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData
), aData
));
5479 aPropSequence
[1].Name
= "Segments";
5480 static const sal_uInt16 nValues
[] = {
5487 aPropSequence
[1].Value
= makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues
), nValues
));
5490 aPropSequence
[2].Name
= "TextFrames";
5491 Sequence
< EnhancedCustomShapeTextFrame
> aTextFrameSeq (1);
5493 EnhancedCustomShapeTextFrame aTextFrame
;
5495 static const CustomShapeProvider::ParameterPairData aData
=
5497 EnhancedCustomShapeParameterType::EQUATION
,
5498 EnhancedCustomShapeParameterType::EQUATION
,
5501 aTextFrame
.TopLeft
= createParameterPair(&aData
);
5504 static const CustomShapeProvider::ParameterPairData aData
=
5506 EnhancedCustomShapeParameterType::EQUATION
,
5507 EnhancedCustomShapeParameterType::EQUATION
,
5510 aTextFrame
.BottomRight
= createParameterPair(&aData
);
5512 aTextFrameSeq
[0] = aTextFrame
;
5514 aPropSequence
[2].Value
= makeAny (aTextFrameSeq
);
5516 aPropertyMap
[PROP_Path
] <<= aPropSequence
;
5519 awt::Rectangle aRectangle
;
5522 aRectangle
.Width
= 0;
5523 aRectangle
.Height
= 0;
5524 aPropertyMap
[PROP_ViewBox
] <<= aRectangle
;
5526 aPropertyMap
[ PROP_Type
] <<= OUString("ooxml-quadArrowCallout");
5528 return aPropertyMap
;
5531 class ShapeCactionButtonBeginning
: public CustomShapeProvider
5533 virtual PropertyMap
getProperties()
5535 PropertyMap aPropertyMap
;
5538 aPropertyMap
[PROP_AdjustmentValues
] <<= Sequence
< OUString
>(0);
5541 static const char *aStrings
[] = {
5542 "min(logwidth,logheight)",
5558 aPropertyMap
[PROP_Equations
] <<= createStringSequence( SAL_N_ELEMENTS( aStrings
), aStrings
);
5561 aPropertyMap
[PROP_Handles
] <<= Sequence
< OUString
>(0);
5564 aPropertyMap
[PROP_MirroredX
] <<= Any ((sal_Bool
) sal_False
);
5567 aPropertyMap
[PROP_MirroredY
] <<= Any ((sal_Bool
) sal_False
);
5570 Sequence
< PropertyValue
> aPropSequence (3);
5572 aPropSequence
[0].Name
= "Coordinates";
5573 static const CustomShapeProvider::ParameterPairData aData
[] = {
5575 EnhancedCustomShapeParameterType::NORMAL
,
5576 EnhancedCustomShapeParameterType::NORMAL
,
5580 EnhancedCustomShapeParameterType::EQUATION
,
5581 EnhancedCustomShapeParameterType::NORMAL
,
5585 EnhancedCustomShapeParameterType::EQUATION
,
5586 EnhancedCustomShapeParameterType::EQUATION
,
5590 EnhancedCustomShapeParameterType::NORMAL
,
5591 EnhancedCustomShapeParameterType::EQUATION
,
5595 EnhancedCustomShapeParameterType::EQUATION
,
5596 EnhancedCustomShapeParameterType::EQUATION
,
5600 EnhancedCustomShapeParameterType::EQUATION
,
5601 EnhancedCustomShapeParameterType::EQUATION
,
5605 EnhancedCustomShapeParameterType::EQUATION
,
5606 EnhancedCustomShapeParameterType::EQUATION
,
5610 EnhancedCustomShapeParameterType::EQUATION
,
5611 EnhancedCustomShapeParameterType::EQUATION
,
5615 EnhancedCustomShapeParameterType::EQUATION
,
5616 EnhancedCustomShapeParameterType::EQUATION
,
5620 EnhancedCustomShapeParameterType::EQUATION
,
5621 EnhancedCustomShapeParameterType::EQUATION
,
5625 EnhancedCustomShapeParameterType::EQUATION
,
5626 EnhancedCustomShapeParameterType::EQUATION
,
5630 EnhancedCustomShapeParameterType::EQUATION
,
5631 EnhancedCustomShapeParameterType::EQUATION
,
5635 EnhancedCustomShapeParameterType::EQUATION
,
5636 EnhancedCustomShapeParameterType::EQUATION
,
5640 EnhancedCustomShapeParameterType::EQUATION
,
5641 EnhancedCustomShapeParameterType::EQUATION
,
5645 EnhancedCustomShapeParameterType::EQUATION
,
5646 EnhancedCustomShapeParameterType::EQUATION
,
5650 EnhancedCustomShapeParameterType::EQUATION
,
5651 EnhancedCustomShapeParameterType::EQUATION
,
5655 EnhancedCustomShapeParameterType::EQUATION
,
5656 EnhancedCustomShapeParameterType::EQUATION
,
5660 EnhancedCustomShapeParameterType::EQUATION
,
5661 EnhancedCustomShapeParameterType::EQUATION
,
5665 EnhancedCustomShapeParameterType::EQUATION
,
5666 EnhancedCustomShapeParameterType::EQUATION
,
5670 EnhancedCustomShapeParameterType::EQUATION
,
5671 EnhancedCustomShapeParameterType::EQUATION
,
5675 EnhancedCustomShapeParameterType::EQUATION
,
5676 EnhancedCustomShapeParameterType::EQUATION
,
5680 EnhancedCustomShapeParameterType::EQUATION
,
5681 EnhancedCustomShapeParameterType::EQUATION
,
5685 EnhancedCustomShapeParameterType::EQUATION
,
5686 EnhancedCustomShapeParameterType::EQUATION
,
5690 EnhancedCustomShapeParameterType::EQUATION
,
5691 EnhancedCustomShapeParameterType::EQUATION
,
5695 EnhancedCustomShapeParameterType::EQUATION
,
5696 EnhancedCustomShapeParameterType::EQUATION
,
5700 EnhancedCustomShapeParameterType::NORMAL
,
5701 EnhancedCustomShapeParameterType::NORMAL
,
5705 EnhancedCustomShapeParameterType::EQUATION
,
5706 EnhancedCustomShapeParameterType::NORMAL
,
5710 EnhancedCustomShapeParameterType::EQUATION
,
5711 EnhancedCustomShapeParameterType::EQUATION
,
5715 EnhancedCustomShapeParameterType::NORMAL
,
5716 EnhancedCustomShapeParameterType::EQUATION
,
5720 aPropSequence
[0].Value
= makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData
), aData
));
5723 aPropSequence
[1].Name
= "Segments";
5724 static const sal_uInt16 nValues
[] = {
5760 aPropSequence
[1].Value
= makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues
), nValues
));
5763 aPropSequence
[2].Name
= "TextFrames";
5764 Sequence
< EnhancedCustomShapeTextFrame
> aTextFrameSeq (1);
5766 EnhancedCustomShapeTextFrame aTextFrame
;
5768 static const CustomShapeProvider::ParameterPairData aData
=
5770 EnhancedCustomShapeParameterType::NORMAL
,
5771 EnhancedCustomShapeParameterType::NORMAL
,
5774 aTextFrame
.TopLeft
= createParameterPair(&aData
);
5777 static const CustomShapeProvider::ParameterPairData aData
=
5779 EnhancedCustomShapeParameterType::EQUATION
,
5780 EnhancedCustomShapeParameterType::EQUATION
,
5783 aTextFrame
.BottomRight
= createParameterPair(&aData
);
5785 aTextFrameSeq
[0] = aTextFrame
;
5787 aPropSequence
[2].Value
= makeAny (aTextFrameSeq
);
5789 aPropertyMap
[PROP_Path
] <<= aPropSequence
;
5792 awt::Rectangle aRectangle
;
5795 aRectangle
.Width
= 0;
5796 aRectangle
.Height
= 0;
5797 aPropertyMap
[PROP_ViewBox
] <<= aRectangle
;
5799 aPropertyMap
[ PROP_Type
] <<= OUString("ooxml-actionButtonBeginning");
5801 return aPropertyMap
;
5804 class ShapeCellipse
: public CustomShapeProvider
5806 virtual PropertyMap
getProperties()
5808 PropertyMap aPropertyMap
;
5811 aPropertyMap
[PROP_AdjustmentValues
] <<= Sequence
< OUString
>(0);
5814 static const char *aStrings
[] = {
5816 "?0 *cos(pi*(2700000)/10800000)",
5818 "?2 *sin(pi*(2700000)/10800000)",
5827 "(10800000)/60000.0",
5828 "(5400000)/60000.0",
5829 "(16200000)/60000.0",
5830 "(5400000)/60000.0",
5832 "(5400000)/60000.0",
5833 "(5400000)/60000.0",
5836 aPropertyMap
[PROP_Equations
] <<= createStringSequence( SAL_N_ELEMENTS( aStrings
), aStrings
);
5839 aPropertyMap
[PROP_Handles
] <<= Sequence
< OUString
>(0);
5842 aPropertyMap
[PROP_MirroredX
] <<= Any ((sal_Bool
) sal_False
);
5845 aPropertyMap
[PROP_MirroredY
] <<= Any ((sal_Bool
) sal_False
);
5848 Sequence
< PropertyValue
> aPropSequence (3);
5850 aPropSequence
[0].Name
= "Coordinates";
5851 static const CustomShapeProvider::ParameterPairData aData
[] = {
5853 EnhancedCustomShapeParameterType::NORMAL
,
5854 EnhancedCustomShapeParameterType::EQUATION
,
5858 EnhancedCustomShapeParameterType::EQUATION
,
5859 EnhancedCustomShapeParameterType::EQUATION
,
5863 EnhancedCustomShapeParameterType::EQUATION
,
5864 EnhancedCustomShapeParameterType::EQUATION
,
5868 EnhancedCustomShapeParameterType::EQUATION
,
5869 EnhancedCustomShapeParameterType::EQUATION
,
5873 EnhancedCustomShapeParameterType::EQUATION
,
5874 EnhancedCustomShapeParameterType::EQUATION
,
5878 EnhancedCustomShapeParameterType::EQUATION
,
5879 EnhancedCustomShapeParameterType::EQUATION
,
5883 EnhancedCustomShapeParameterType::EQUATION
,
5884 EnhancedCustomShapeParameterType::EQUATION
,
5888 EnhancedCustomShapeParameterType::EQUATION
,
5889 EnhancedCustomShapeParameterType::EQUATION
,
5893 EnhancedCustomShapeParameterType::EQUATION
,
5894 EnhancedCustomShapeParameterType::EQUATION
,
5898 aPropSequence
[0].Value
= makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData
), aData
));
5901 aPropSequence
[1].Name
= "Segments";
5902 static const sal_uInt16 nValues
[] = {
5909 aPropSequence
[1].Value
= makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues
), nValues
));
5912 aPropSequence
[2].Name
= "TextFrames";
5913 Sequence
< EnhancedCustomShapeTextFrame
> aTextFrameSeq (1);
5915 EnhancedCustomShapeTextFrame aTextFrame
;
5917 static const CustomShapeProvider::ParameterPairData aData
=
5919 EnhancedCustomShapeParameterType::EQUATION
,
5920 EnhancedCustomShapeParameterType::EQUATION
,
5923 aTextFrame
.TopLeft
= createParameterPair(&aData
);
5926 static const CustomShapeProvider::ParameterPairData aData
=
5928 EnhancedCustomShapeParameterType::EQUATION
,
5929 EnhancedCustomShapeParameterType::EQUATION
,
5932 aTextFrame
.BottomRight
= createParameterPair(&aData
);
5934 aTextFrameSeq
[0] = aTextFrame
;
5936 aPropSequence
[2].Value
= makeAny (aTextFrameSeq
);
5938 aPropertyMap
[PROP_Path
] <<= aPropSequence
;
5941 awt::Rectangle aRectangle
;
5944 aRectangle
.Width
= 0;
5945 aRectangle
.Height
= 0;
5946 aPropertyMap
[PROP_ViewBox
] <<= aRectangle
;
5948 aPropertyMap
[ PROP_Type
] <<= OUString("ooxml-ellipse");
5950 return aPropertyMap
;
5953 class ShapeCactionButtonEnd
: public CustomShapeProvider
5955 virtual PropertyMap
getProperties()
5957 PropertyMap aPropertyMap
;
5960 aPropertyMap
[PROP_AdjustmentValues
] <<= Sequence
< OUString
>(0);
5963 static const char *aStrings
[] = {
5964 "min(logwidth,logheight)",
5980 aPropertyMap
[PROP_Equations
] <<= createStringSequence( SAL_N_ELEMENTS( aStrings
), aStrings
);
5983 aPropertyMap
[PROP_Handles
] <<= Sequence
< OUString
>(0);
5986 aPropertyMap
[PROP_MirroredX
] <<= Any ((sal_Bool
) sal_False
);
5989 aPropertyMap
[PROP_MirroredY
] <<= Any ((sal_Bool
) sal_False
);
5992 Sequence
< PropertyValue
> aPropSequence (3);
5994 aPropSequence
[0].Name
= "Coordinates";
5995 static const CustomShapeProvider::ParameterPairData aData
[] = {
5997 EnhancedCustomShapeParameterType::NORMAL
,
5998 EnhancedCustomShapeParameterType::NORMAL
,
6002 EnhancedCustomShapeParameterType::EQUATION
,
6003 EnhancedCustomShapeParameterType::NORMAL
,
6007 EnhancedCustomShapeParameterType::EQUATION
,
6008 EnhancedCustomShapeParameterType::EQUATION
,
6012 EnhancedCustomShapeParameterType::NORMAL
,
6013 EnhancedCustomShapeParameterType::EQUATION
,
6017 EnhancedCustomShapeParameterType::EQUATION
,
6018 EnhancedCustomShapeParameterType::EQUATION
,
6022 EnhancedCustomShapeParameterType::EQUATION
,
6023 EnhancedCustomShapeParameterType::EQUATION
,
6027 EnhancedCustomShapeParameterType::EQUATION
,
6028 EnhancedCustomShapeParameterType::EQUATION
,
6032 EnhancedCustomShapeParameterType::EQUATION
,
6033 EnhancedCustomShapeParameterType::EQUATION
,
6037 EnhancedCustomShapeParameterType::EQUATION
,
6038 EnhancedCustomShapeParameterType::EQUATION
,
6042 EnhancedCustomShapeParameterType::EQUATION
,
6043 EnhancedCustomShapeParameterType::EQUATION
,
6047 EnhancedCustomShapeParameterType::EQUATION
,
6048 EnhancedCustomShapeParameterType::EQUATION
,
6052 EnhancedCustomShapeParameterType::EQUATION
,
6053 EnhancedCustomShapeParameterType::EQUATION
,
6057 EnhancedCustomShapeParameterType::EQUATION
,
6058 EnhancedCustomShapeParameterType::EQUATION
,
6062 EnhancedCustomShapeParameterType::EQUATION
,
6063 EnhancedCustomShapeParameterType::EQUATION
,
6067 EnhancedCustomShapeParameterType::EQUATION
,
6068 EnhancedCustomShapeParameterType::EQUATION
,
6072 EnhancedCustomShapeParameterType::EQUATION
,
6073 EnhancedCustomShapeParameterType::EQUATION
,
6077 EnhancedCustomShapeParameterType::EQUATION
,
6078 EnhancedCustomShapeParameterType::EQUATION
,
6082 EnhancedCustomShapeParameterType::EQUATION
,
6083 EnhancedCustomShapeParameterType::EQUATION
,
6087 EnhancedCustomShapeParameterType::EQUATION
,
6088 EnhancedCustomShapeParameterType::EQUATION
,
6092 EnhancedCustomShapeParameterType::EQUATION
,
6093 EnhancedCustomShapeParameterType::EQUATION
,
6097 EnhancedCustomShapeParameterType::EQUATION
,
6098 EnhancedCustomShapeParameterType::EQUATION
,
6102 EnhancedCustomShapeParameterType::EQUATION
,
6103 EnhancedCustomShapeParameterType::EQUATION
,
6107 EnhancedCustomShapeParameterType::EQUATION
,
6108 EnhancedCustomShapeParameterType::EQUATION
,
6112 EnhancedCustomShapeParameterType::EQUATION
,
6113 EnhancedCustomShapeParameterType::EQUATION
,
6117 EnhancedCustomShapeParameterType::EQUATION
,
6118 EnhancedCustomShapeParameterType::EQUATION
,
6122 EnhancedCustomShapeParameterType::NORMAL
,
6123 EnhancedCustomShapeParameterType::NORMAL
,
6127 EnhancedCustomShapeParameterType::EQUATION
,
6128 EnhancedCustomShapeParameterType::NORMAL
,
6132 EnhancedCustomShapeParameterType::EQUATION
,
6133 EnhancedCustomShapeParameterType::EQUATION
,
6137 EnhancedCustomShapeParameterType::NORMAL
,
6138 EnhancedCustomShapeParameterType::EQUATION
,
6142 aPropSequence
[0].Value
= makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData
), aData
));
6145 aPropSequence
[1].Name
= "Segments";
6146 static const sal_uInt16 nValues
[] = {
6182 aPropSequence
[1].Value
= makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues
), nValues
));
6185 aPropSequence
[2].Name
= "TextFrames";
6186 Sequence
< EnhancedCustomShapeTextFrame
> aTextFrameSeq (1);
6188 EnhancedCustomShapeTextFrame aTextFrame
;
6190 static const CustomShapeProvider::ParameterPairData aData
=
6192 EnhancedCustomShapeParameterType::NORMAL
,
6193 EnhancedCustomShapeParameterType::NORMAL
,
6196 aTextFrame
.TopLeft
= createParameterPair(&aData
);
6199 static const CustomShapeProvider::ParameterPairData aData
=
6201 EnhancedCustomShapeParameterType::EQUATION
,
6202 EnhancedCustomShapeParameterType::EQUATION
,
6205 aTextFrame
.BottomRight
= createParameterPair(&aData
);
6207 aTextFrameSeq
[0] = aTextFrame
;
6209 aPropSequence
[2].Value
= makeAny (aTextFrameSeq
);
6211 aPropertyMap
[PROP_Path
] <<= aPropSequence
;
6214 awt::Rectangle aRectangle
;
6217 aRectangle
.Width
= 0;
6218 aRectangle
.Height
= 0;
6219 aPropertyMap
[PROP_ViewBox
] <<= aRectangle
;
6221 aPropertyMap
[ PROP_Type
] <<= OUString("ooxml-actionButtonEnd");
6223 return aPropertyMap
;
6226 class ShapeCarc
: public CustomShapeProvider
6228 virtual PropertyMap
getProperties()
6230 PropertyMap aPropertyMap
;
6233 Sequence
< EnhancedCustomShapeAdjustmentValue
> aAdjSequence (2);
6235 Any
aAny ((sal_Int32
) 16200000);
6236 aAdjSequence
[0].Value
= aAny
;
6237 aAdjSequence
[0].Name
= "adj1";
6240 Any
aAny ((sal_Int32
) 0);
6241 aAdjSequence
[1].Value
= aAny
;
6242 aAdjSequence
[1].Name
= "adj2";
6244 aPropertyMap
[PROP_AdjustmentValues
] <<= aAdjSequence
;
6247 static const char *aStrings
[] = {
6248 "if(0-$0 ,0,if(21599999-$0 ,$0 ,21599999))",
6249 "if(0-$1 ,0,if(21599999-$1 ,$1 ,21599999))",
6254 "?5 *sin(pi*(?0 )/10800000)",
6256 "?7 *cos(pi*(?0 )/10800000)",
6257 "?5 *(cos(atan2(?6 ,?8 )))",
6258 "?7 *(sin(atan2(?6 ,?8 )))",
6259 "?5 *sin(pi*(?1 )/10800000)",
6260 "?7 *cos(pi*(?1 )/10800000)",
6261 "?5 *(cos(atan2(?11 ,?12 )))",
6262 "?7 *(sin(atan2(?11 ,?12 )))",
6272 "if(?22 ,logwidth,?23 )",
6275 "if(?25 ,?25 ,?26 )",
6278 "if(?28 ,logheight,?29 )",
6281 "if(?31 ,?31 ,?32 )",
6287 "if(?37 ,?37 ,?38 )",
6299 aPropertyMap
[PROP_Equations
] <<= createStringSequence( SAL_N_ELEMENTS( aStrings
), aStrings
);
6302 Sequence
< Sequence
< PropertyValue
> > aPropSequenceSequence (2);
6304 Sequence
< PropertyValue
> aPropSequence (1);
6306 aPropSequence
[0].Name
= "Position";
6307 static const CustomShapeProvider::ParameterPairData aData
=
6309 EnhancedCustomShapeParameterType::EQUATION
,
6310 EnhancedCustomShapeParameterType::EQUATION
,
6313 aPropSequence
[0].Value
= makeAny (createParameterPair(&aData
));
6315 aPropSequenceSequence
[0] = aPropSequence
;
6318 Sequence
< PropertyValue
> aPropSequence (1);
6320 aPropSequence
[0].Name
= "Position";
6321 static const CustomShapeProvider::ParameterPairData aData
=
6323 EnhancedCustomShapeParameterType::EQUATION
,
6324 EnhancedCustomShapeParameterType::EQUATION
,
6327 aPropSequence
[0].Value
= makeAny (createParameterPair(&aData
));
6329 aPropSequenceSequence
[1] = aPropSequence
;
6331 aPropertyMap
[PROP_Handles
] <<= aPropSequenceSequence
;
6334 aPropertyMap
[PROP_MirroredX
] <<= Any ((sal_Bool
) sal_False
);
6337 aPropertyMap
[PROP_MirroredY
] <<= Any ((sal_Bool
) sal_False
);
6340 Sequence
< PropertyValue
> aPropSequence (3);
6342 aPropSequence
[0].Name
= "Coordinates";
6343 static const CustomShapeProvider::ParameterPairData aData
[] = {
6345 EnhancedCustomShapeParameterType::EQUATION
,
6346 EnhancedCustomShapeParameterType::EQUATION
,
6350 EnhancedCustomShapeParameterType::EQUATION
,
6351 EnhancedCustomShapeParameterType::EQUATION
,
6355 EnhancedCustomShapeParameterType::EQUATION
,
6356 EnhancedCustomShapeParameterType::EQUATION
,
6360 EnhancedCustomShapeParameterType::EQUATION
,
6361 EnhancedCustomShapeParameterType::EQUATION
,
6365 EnhancedCustomShapeParameterType::EQUATION
,
6366 EnhancedCustomShapeParameterType::EQUATION
,
6370 EnhancedCustomShapeParameterType::EQUATION
,
6371 EnhancedCustomShapeParameterType::EQUATION
,
6375 EnhancedCustomShapeParameterType::EQUATION
,
6376 EnhancedCustomShapeParameterType::EQUATION
,
6380 aPropSequence
[0].Value
= makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData
), aData
));
6383 aPropSequence
[1].Name
= "Segments";
6384 static const sal_uInt16 nValues
[] = {
6397 aPropSequence
[1].Value
= makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues
), nValues
));
6400 aPropSequence
[2].Name
= "TextFrames";
6401 Sequence
< EnhancedCustomShapeTextFrame
> aTextFrameSeq (1);
6403 EnhancedCustomShapeTextFrame aTextFrame
;
6405 static const CustomShapeProvider::ParameterPairData aData
=
6407 EnhancedCustomShapeParameterType::EQUATION
,
6408 EnhancedCustomShapeParameterType::EQUATION
,
6411 aTextFrame
.TopLeft
= createParameterPair(&aData
);
6414 static const CustomShapeProvider::ParameterPairData aData
=
6416 EnhancedCustomShapeParameterType::EQUATION
,
6417 EnhancedCustomShapeParameterType::EQUATION
,
6420 aTextFrame
.BottomRight
= createParameterPair(&aData
);
6422 aTextFrameSeq
[0] = aTextFrame
;
6424 aPropSequence
[2].Value
= makeAny (aTextFrameSeq
);
6426 aPropertyMap
[PROP_Path
] <<= aPropSequence
;
6429 awt::Rectangle aRectangle
;
6432 aRectangle
.Width
= 0;
6433 aRectangle
.Height
= 0;
6434 aPropertyMap
[PROP_ViewBox
] <<= aRectangle
;
6436 aPropertyMap
[ PROP_Type
] <<= OUString("ooxml-arc");
6438 return aPropertyMap
;
6441 class ShapeCstar16
: public CustomShapeProvider
6443 virtual PropertyMap
getProperties()
6445 PropertyMap aPropertyMap
;
6448 Sequence
< EnhancedCustomShapeAdjustmentValue
> aAdjSequence (1);
6450 Any
aAny ((sal_Int32
) 37500);
6451 aAdjSequence
[0].Value
= aAny
;
6452 aAdjSequence
[0].Name
= "adj";
6454 aPropertyMap
[PROP_AdjustmentValues
] <<= aAdjSequence
;
6457 static const char *aStrings
[] = {
6458 "if(0-$0 ,0,if(50000-$0 ,$0 ,50000))",
6483 "?23 *98079/100000",
6484 "?23 *83147/100000",
6485 "?23 *55557/100000",
6486 "?23 *19509/100000",
6487 "?24 *98079/100000",
6488 "?24 *83147/100000",
6489 "?24 *55557/100000",
6490 "?24 *19509/100000",
6507 "?23 *cos(pi*(2700000)/10800000)",
6508 "?24 *sin(pi*(2700000)/10800000)",
6517 aPropertyMap
[PROP_Equations
] <<= createStringSequence( SAL_N_ELEMENTS( aStrings
), aStrings
);
6520 Sequence
< Sequence
< PropertyValue
> > aPropSequenceSequence (1);
6522 Sequence
< PropertyValue
> aPropSequence (4);
6524 aPropSequence
[0].Name
= "Position";
6525 static const CustomShapeProvider::ParameterPairData aData
=
6527 EnhancedCustomShapeParameterType::EQUATION
,
6528 EnhancedCustomShapeParameterType::EQUATION
,
6531 aPropSequence
[0].Value
= makeAny (createParameterPair(&aData
));
6534 aPropSequence
[1].Name
= "RangeYMaximum";
6535 EnhancedCustomShapeParameter aParameter
;
6536 Any
aAny ((sal_Int32
) 50000);
6537 aParameter
.Value
= aAny
;
6538 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
6539 aPropSequence
[1].Value
= makeAny (aParameter
);
6542 aPropSequence
[2].Name
= "RangeYMinimum";
6543 EnhancedCustomShapeParameter aParameter
;
6544 Any
aAny ((sal_Int32
) 0);
6545 aParameter
.Value
= aAny
;
6546 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
6547 aPropSequence
[2].Value
= makeAny (aParameter
);
6550 aPropSequence
[3].Name
= "RefY";
6551 Any
aAny ((sal_Int32
) 0);
6552 aPropSequence
[3].Value
= makeAny (aAny
);
6554 aPropSequenceSequence
[0] = aPropSequence
;
6556 aPropertyMap
[PROP_Handles
] <<= aPropSequenceSequence
;
6559 aPropertyMap
[PROP_MirroredX
] <<= Any ((sal_Bool
) sal_False
);
6562 aPropertyMap
[PROP_MirroredY
] <<= Any ((sal_Bool
) sal_False
);
6565 Sequence
< PropertyValue
> aPropSequence (3);
6567 aPropSequence
[0].Name
= "Coordinates";
6568 static const CustomShapeProvider::ParameterPairData aData
[] = {
6570 EnhancedCustomShapeParameterType::NORMAL
,
6571 EnhancedCustomShapeParameterType::EQUATION
,
6575 EnhancedCustomShapeParameterType::EQUATION
,
6576 EnhancedCustomShapeParameterType::EQUATION
,
6580 EnhancedCustomShapeParameterType::EQUATION
,
6581 EnhancedCustomShapeParameterType::EQUATION
,
6585 EnhancedCustomShapeParameterType::EQUATION
,
6586 EnhancedCustomShapeParameterType::EQUATION
,
6590 EnhancedCustomShapeParameterType::EQUATION
,
6591 EnhancedCustomShapeParameterType::EQUATION
,
6595 EnhancedCustomShapeParameterType::EQUATION
,
6596 EnhancedCustomShapeParameterType::EQUATION
,
6600 EnhancedCustomShapeParameterType::EQUATION
,
6601 EnhancedCustomShapeParameterType::EQUATION
,
6605 EnhancedCustomShapeParameterType::EQUATION
,
6606 EnhancedCustomShapeParameterType::EQUATION
,
6610 EnhancedCustomShapeParameterType::EQUATION
,
6611 EnhancedCustomShapeParameterType::NORMAL
,
6615 EnhancedCustomShapeParameterType::EQUATION
,
6616 EnhancedCustomShapeParameterType::EQUATION
,
6620 EnhancedCustomShapeParameterType::EQUATION
,
6621 EnhancedCustomShapeParameterType::EQUATION
,
6625 EnhancedCustomShapeParameterType::EQUATION
,
6626 EnhancedCustomShapeParameterType::EQUATION
,
6630 EnhancedCustomShapeParameterType::EQUATION
,
6631 EnhancedCustomShapeParameterType::EQUATION
,
6635 EnhancedCustomShapeParameterType::EQUATION
,
6636 EnhancedCustomShapeParameterType::EQUATION
,
6640 EnhancedCustomShapeParameterType::EQUATION
,
6641 EnhancedCustomShapeParameterType::EQUATION
,
6645 EnhancedCustomShapeParameterType::EQUATION
,
6646 EnhancedCustomShapeParameterType::EQUATION
,
6650 EnhancedCustomShapeParameterType::EQUATION
,
6651 EnhancedCustomShapeParameterType::EQUATION
,
6655 EnhancedCustomShapeParameterType::EQUATION
,
6656 EnhancedCustomShapeParameterType::EQUATION
,
6660 EnhancedCustomShapeParameterType::EQUATION
,
6661 EnhancedCustomShapeParameterType::EQUATION
,
6665 EnhancedCustomShapeParameterType::EQUATION
,
6666 EnhancedCustomShapeParameterType::EQUATION
,
6670 EnhancedCustomShapeParameterType::EQUATION
,
6671 EnhancedCustomShapeParameterType::EQUATION
,
6675 EnhancedCustomShapeParameterType::EQUATION
,
6676 EnhancedCustomShapeParameterType::EQUATION
,
6680 EnhancedCustomShapeParameterType::EQUATION
,
6681 EnhancedCustomShapeParameterType::EQUATION
,
6685 EnhancedCustomShapeParameterType::EQUATION
,
6686 EnhancedCustomShapeParameterType::EQUATION
,
6690 EnhancedCustomShapeParameterType::EQUATION
,
6691 EnhancedCustomShapeParameterType::EQUATION
,
6695 EnhancedCustomShapeParameterType::EQUATION
,
6696 EnhancedCustomShapeParameterType::EQUATION
,
6700 EnhancedCustomShapeParameterType::EQUATION
,
6701 EnhancedCustomShapeParameterType::EQUATION
,
6705 EnhancedCustomShapeParameterType::EQUATION
,
6706 EnhancedCustomShapeParameterType::EQUATION
,
6710 EnhancedCustomShapeParameterType::EQUATION
,
6711 EnhancedCustomShapeParameterType::EQUATION
,
6715 EnhancedCustomShapeParameterType::EQUATION
,
6716 EnhancedCustomShapeParameterType::EQUATION
,
6720 EnhancedCustomShapeParameterType::EQUATION
,
6721 EnhancedCustomShapeParameterType::EQUATION
,
6725 EnhancedCustomShapeParameterType::EQUATION
,
6726 EnhancedCustomShapeParameterType::EQUATION
,
6730 aPropSequence
[0].Value
= makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData
), aData
));
6733 aPropSequence
[1].Name
= "Segments";
6734 static const sal_uInt16 nValues
[] = {
6741 aPropSequence
[1].Value
= makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues
), nValues
));
6744 aPropSequence
[2].Name
= "TextFrames";
6745 Sequence
< EnhancedCustomShapeTextFrame
> aTextFrameSeq (1);
6747 EnhancedCustomShapeTextFrame aTextFrame
;
6749 static const CustomShapeProvider::ParameterPairData aData
=
6751 EnhancedCustomShapeParameterType::EQUATION
,
6752 EnhancedCustomShapeParameterType::EQUATION
,
6755 aTextFrame
.TopLeft
= createParameterPair(&aData
);
6758 static const CustomShapeProvider::ParameterPairData aData
=
6760 EnhancedCustomShapeParameterType::EQUATION
,
6761 EnhancedCustomShapeParameterType::EQUATION
,
6764 aTextFrame
.BottomRight
= createParameterPair(&aData
);
6766 aTextFrameSeq
[0] = aTextFrame
;
6768 aPropSequence
[2].Value
= makeAny (aTextFrameSeq
);
6770 aPropertyMap
[PROP_Path
] <<= aPropSequence
;
6773 awt::Rectangle aRectangle
;
6776 aRectangle
.Width
= 0;
6777 aRectangle
.Height
= 0;
6778 aPropertyMap
[PROP_ViewBox
] <<= aRectangle
;
6780 aPropertyMap
[ PROP_Type
] <<= OUString("ooxml-star16");
6782 return aPropertyMap
;
6785 class ShapeCparallelogram
: public CustomShapeProvider
6787 virtual PropertyMap
getProperties()
6789 PropertyMap aPropertyMap
;
6792 Sequence
< EnhancedCustomShapeAdjustmentValue
> aAdjSequence (1);
6794 Any
aAny ((sal_Int32
) 25000);
6795 aAdjSequence
[0].Value
= aAny
;
6796 aAdjSequence
[0].Name
= "adj";
6798 aPropertyMap
[PROP_AdjustmentValues
] <<= aAdjSequence
;
6801 static const char *aStrings
[] = {
6802 "min(logwidth,logheight)",
6803 "100000*logwidth/?0 ",
6804 "if(0-$0 ,0,if(?1 -$0 ,$0 ,?1 ))",
6820 "logheight*?17 /?4 ",
6821 "if(0-?18 ,0,if(logheight-?18 ,?18 ,logheight))",
6827 aPropertyMap
[PROP_Equations
] <<= createStringSequence( SAL_N_ELEMENTS( aStrings
), aStrings
);
6830 Sequence
< Sequence
< PropertyValue
> > aPropSequenceSequence (1);
6832 Sequence
< PropertyValue
> aPropSequence (4);
6834 aPropSequence
[0].Name
= "Position";
6835 static const CustomShapeProvider::ParameterPairData aData
=
6837 EnhancedCustomShapeParameterType::EQUATION
,
6838 EnhancedCustomShapeParameterType::NORMAL
,
6841 aPropSequence
[0].Value
= makeAny (createParameterPair(&aData
));
6844 aPropSequence
[1].Name
= "RangeXMaximum";
6845 EnhancedCustomShapeParameter aParameter
;
6846 Any
aAny ((sal_Int32
) 1);
6847 aParameter
.Value
= aAny
;
6848 aParameter
.Type
= EnhancedCustomShapeParameterType::EQUATION
;
6849 aPropSequence
[1].Value
= makeAny (aParameter
);
6852 aPropSequence
[2].Name
= "RangeXMinimum";
6853 EnhancedCustomShapeParameter aParameter
;
6854 Any
aAny ((sal_Int32
) 0);
6855 aParameter
.Value
= aAny
;
6856 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
6857 aPropSequence
[2].Value
= makeAny (aParameter
);
6860 aPropSequence
[3].Name
= "RefX";
6861 Any
aAny ((sal_Int32
) 0);
6862 aPropSequence
[3].Value
= makeAny (aAny
);
6864 aPropSequenceSequence
[0] = aPropSequence
;
6866 aPropertyMap
[PROP_Handles
] <<= aPropSequenceSequence
;
6869 aPropertyMap
[PROP_MirroredX
] <<= Any ((sal_Bool
) sal_False
);
6872 aPropertyMap
[PROP_MirroredY
] <<= Any ((sal_Bool
) sal_False
);
6875 Sequence
< PropertyValue
> aPropSequence (3);
6877 aPropSequence
[0].Name
= "Coordinates";
6878 static const CustomShapeProvider::ParameterPairData aData
[] = {
6880 EnhancedCustomShapeParameterType::NORMAL
,
6881 EnhancedCustomShapeParameterType::EQUATION
,
6885 EnhancedCustomShapeParameterType::EQUATION
,
6886 EnhancedCustomShapeParameterType::NORMAL
,
6890 EnhancedCustomShapeParameterType::EQUATION
,
6891 EnhancedCustomShapeParameterType::NORMAL
,
6895 EnhancedCustomShapeParameterType::EQUATION
,
6896 EnhancedCustomShapeParameterType::EQUATION
,
6900 aPropSequence
[0].Value
= makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData
), aData
));
6903 aPropSequence
[1].Name
= "Segments";
6904 static const sal_uInt16 nValues
[] = {
6911 aPropSequence
[1].Value
= makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues
), nValues
));
6914 aPropSequence
[2].Name
= "TextFrames";
6915 Sequence
< EnhancedCustomShapeTextFrame
> aTextFrameSeq (1);
6917 EnhancedCustomShapeTextFrame aTextFrame
;
6919 static const CustomShapeProvider::ParameterPairData aData
=
6921 EnhancedCustomShapeParameterType::EQUATION
,
6922 EnhancedCustomShapeParameterType::EQUATION
,
6925 aTextFrame
.TopLeft
= createParameterPair(&aData
);
6928 static const CustomShapeProvider::ParameterPairData aData
=
6930 EnhancedCustomShapeParameterType::EQUATION
,
6931 EnhancedCustomShapeParameterType::EQUATION
,
6934 aTextFrame
.BottomRight
= createParameterPair(&aData
);
6936 aTextFrameSeq
[0] = aTextFrame
;
6938 aPropSequence
[2].Value
= makeAny (aTextFrameSeq
);
6940 aPropertyMap
[PROP_Path
] <<= aPropSequence
;
6943 awt::Rectangle aRectangle
;
6946 aRectangle
.Width
= 0;
6947 aRectangle
.Height
= 0;
6948 aPropertyMap
[PROP_ViewBox
] <<= aRectangle
;
6950 aPropertyMap
[ PROP_Type
] <<= OUString("ooxml-parallelogram");
6952 return aPropertyMap
;
6955 class ShapeCbevel
: public CustomShapeProvider
6957 virtual PropertyMap
getProperties()
6959 PropertyMap aPropertyMap
;
6962 Sequence
< EnhancedCustomShapeAdjustmentValue
> aAdjSequence (1);
6964 Any
aAny ((sal_Int32
) 12500);
6965 aAdjSequence
[0].Value
= aAny
;
6966 aAdjSequence
[0].Name
= "adj";
6968 aPropertyMap
[PROP_AdjustmentValues
] <<= aAdjSequence
;
6971 static const char *aStrings
[] = {
6972 "if(0-$0 ,0,if(50000-$0 ,$0 ,50000))",
6973 "min(logwidth,logheight)",
6982 aPropertyMap
[PROP_Equations
] <<= createStringSequence( SAL_N_ELEMENTS( aStrings
), aStrings
);
6985 Sequence
< Sequence
< PropertyValue
> > aPropSequenceSequence (1);
6987 Sequence
< PropertyValue
> aPropSequence (4);
6989 aPropSequence
[0].Name
= "Position";
6990 static const CustomShapeProvider::ParameterPairData aData
=
6992 EnhancedCustomShapeParameterType::EQUATION
,
6993 EnhancedCustomShapeParameterType::NORMAL
,
6996 aPropSequence
[0].Value
= makeAny (createParameterPair(&aData
));
6999 aPropSequence
[1].Name
= "RangeXMaximum";
7000 EnhancedCustomShapeParameter aParameter
;
7001 Any
aAny ((sal_Int32
) 50000);
7002 aParameter
.Value
= aAny
;
7003 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
7004 aPropSequence
[1].Value
= makeAny (aParameter
);
7007 aPropSequence
[2].Name
= "RangeXMinimum";
7008 EnhancedCustomShapeParameter aParameter
;
7009 Any
aAny ((sal_Int32
) 0);
7010 aParameter
.Value
= aAny
;
7011 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
7012 aPropSequence
[2].Value
= makeAny (aParameter
);
7015 aPropSequence
[3].Name
= "RefX";
7016 Any
aAny ((sal_Int32
) 0);
7017 aPropSequence
[3].Value
= makeAny (aAny
);
7019 aPropSequenceSequence
[0] = aPropSequence
;
7021 aPropertyMap
[PROP_Handles
] <<= aPropSequenceSequence
;
7024 aPropertyMap
[PROP_MirroredX
] <<= Any ((sal_Bool
) sal_False
);
7027 aPropertyMap
[PROP_MirroredY
] <<= Any ((sal_Bool
) sal_False
);
7030 Sequence
< PropertyValue
> aPropSequence (3);
7032 aPropSequence
[0].Name
= "Coordinates";
7033 static const CustomShapeProvider::ParameterPairData aData
[] = {
7035 EnhancedCustomShapeParameterType::EQUATION
,
7036 EnhancedCustomShapeParameterType::EQUATION
,
7040 EnhancedCustomShapeParameterType::EQUATION
,
7041 EnhancedCustomShapeParameterType::EQUATION
,
7045 EnhancedCustomShapeParameterType::EQUATION
,
7046 EnhancedCustomShapeParameterType::EQUATION
,
7050 EnhancedCustomShapeParameterType::EQUATION
,
7051 EnhancedCustomShapeParameterType::EQUATION
,
7055 EnhancedCustomShapeParameterType::NORMAL
,
7056 EnhancedCustomShapeParameterType::NORMAL
,
7060 EnhancedCustomShapeParameterType::EQUATION
,
7061 EnhancedCustomShapeParameterType::NORMAL
,
7065 EnhancedCustomShapeParameterType::EQUATION
,
7066 EnhancedCustomShapeParameterType::EQUATION
,
7070 EnhancedCustomShapeParameterType::EQUATION
,
7071 EnhancedCustomShapeParameterType::EQUATION
,
7075 EnhancedCustomShapeParameterType::NORMAL
,
7076 EnhancedCustomShapeParameterType::EQUATION
,
7080 EnhancedCustomShapeParameterType::EQUATION
,
7081 EnhancedCustomShapeParameterType::EQUATION
,
7085 EnhancedCustomShapeParameterType::EQUATION
,
7086 EnhancedCustomShapeParameterType::EQUATION
,
7090 EnhancedCustomShapeParameterType::EQUATION
,
7091 EnhancedCustomShapeParameterType::EQUATION
,
7095 EnhancedCustomShapeParameterType::NORMAL
,
7096 EnhancedCustomShapeParameterType::NORMAL
,
7100 EnhancedCustomShapeParameterType::EQUATION
,
7101 EnhancedCustomShapeParameterType::EQUATION
,
7105 EnhancedCustomShapeParameterType::EQUATION
,
7106 EnhancedCustomShapeParameterType::EQUATION
,
7110 EnhancedCustomShapeParameterType::NORMAL
,
7111 EnhancedCustomShapeParameterType::EQUATION
,
7115 EnhancedCustomShapeParameterType::EQUATION
,
7116 EnhancedCustomShapeParameterType::NORMAL
,
7120 EnhancedCustomShapeParameterType::EQUATION
,
7121 EnhancedCustomShapeParameterType::EQUATION
,
7125 EnhancedCustomShapeParameterType::EQUATION
,
7126 EnhancedCustomShapeParameterType::EQUATION
,
7130 EnhancedCustomShapeParameterType::EQUATION
,
7131 EnhancedCustomShapeParameterType::EQUATION
,
7135 EnhancedCustomShapeParameterType::NORMAL
,
7136 EnhancedCustomShapeParameterType::NORMAL
,
7140 EnhancedCustomShapeParameterType::EQUATION
,
7141 EnhancedCustomShapeParameterType::NORMAL
,
7145 EnhancedCustomShapeParameterType::EQUATION
,
7146 EnhancedCustomShapeParameterType::EQUATION
,
7150 EnhancedCustomShapeParameterType::NORMAL
,
7151 EnhancedCustomShapeParameterType::EQUATION
,
7155 EnhancedCustomShapeParameterType::EQUATION
,
7156 EnhancedCustomShapeParameterType::EQUATION
,
7160 EnhancedCustomShapeParameterType::EQUATION
,
7161 EnhancedCustomShapeParameterType::EQUATION
,
7165 EnhancedCustomShapeParameterType::EQUATION
,
7166 EnhancedCustomShapeParameterType::EQUATION
,
7170 EnhancedCustomShapeParameterType::EQUATION
,
7171 EnhancedCustomShapeParameterType::EQUATION
,
7175 EnhancedCustomShapeParameterType::NORMAL
,
7176 EnhancedCustomShapeParameterType::NORMAL
,
7180 EnhancedCustomShapeParameterType::EQUATION
,
7181 EnhancedCustomShapeParameterType::EQUATION
,
7185 EnhancedCustomShapeParameterType::NORMAL
,
7186 EnhancedCustomShapeParameterType::EQUATION
,
7190 EnhancedCustomShapeParameterType::EQUATION
,
7191 EnhancedCustomShapeParameterType::EQUATION
,
7195 EnhancedCustomShapeParameterType::EQUATION
,
7196 EnhancedCustomShapeParameterType::NORMAL
,
7200 EnhancedCustomShapeParameterType::EQUATION
,
7201 EnhancedCustomShapeParameterType::EQUATION
,
7205 EnhancedCustomShapeParameterType::EQUATION
,
7206 EnhancedCustomShapeParameterType::EQUATION
,
7210 EnhancedCustomShapeParameterType::EQUATION
,
7211 EnhancedCustomShapeParameterType::EQUATION
,
7215 aPropSequence
[0].Value
= makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData
), aData
));
7218 aPropSequence
[1].Name
= "Segments";
7219 static const sal_uInt16 nValues
[] = {
7267 aPropSequence
[1].Value
= makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues
), nValues
));
7270 aPropSequence
[2].Name
= "TextFrames";
7271 Sequence
< EnhancedCustomShapeTextFrame
> aTextFrameSeq (1);
7273 EnhancedCustomShapeTextFrame aTextFrame
;
7275 static const CustomShapeProvider::ParameterPairData aData
=
7277 EnhancedCustomShapeParameterType::EQUATION
,
7278 EnhancedCustomShapeParameterType::EQUATION
,
7281 aTextFrame
.TopLeft
= createParameterPair(&aData
);
7284 static const CustomShapeProvider::ParameterPairData aData
=
7286 EnhancedCustomShapeParameterType::EQUATION
,
7287 EnhancedCustomShapeParameterType::EQUATION
,
7290 aTextFrame
.BottomRight
= createParameterPair(&aData
);
7292 aTextFrameSeq
[0] = aTextFrame
;
7294 aPropSequence
[2].Value
= makeAny (aTextFrameSeq
);
7296 aPropertyMap
[PROP_Path
] <<= aPropSequence
;
7299 awt::Rectangle aRectangle
;
7302 aRectangle
.Width
= 0;
7303 aRectangle
.Height
= 0;
7304 aPropertyMap
[PROP_ViewBox
] <<= aRectangle
;
7306 aPropertyMap
[ PROP_Type
] <<= OUString("ooxml-bevel");
7308 return aPropertyMap
;
7311 class ShapeCroundRect
: public CustomShapeProvider
7313 virtual PropertyMap
getProperties()
7315 PropertyMap aPropertyMap
;
7318 Sequence
< EnhancedCustomShapeAdjustmentValue
> aAdjSequence (1);
7320 Any
aAny ((sal_Int32
) 16667);
7321 aAdjSequence
[0].Value
= aAny
;
7322 aAdjSequence
[0].Name
= "adj";
7324 aPropertyMap
[PROP_AdjustmentValues
] <<= aAdjSequence
;
7327 static const char *aStrings
[] = {
7328 "if(0-$0 ,0,if(50000-$0 ,$0 ,50000))",
7329 "min(logwidth,logheight)",
7340 "(10800000)/60000.0",
7341 "(5400000)/60000.0",
7342 "(16200000)/60000.0",
7343 "(5400000)/60000.0",
7345 "(5400000)/60000.0",
7346 "(5400000)/60000.0",
7349 aPropertyMap
[PROP_Equations
] <<= createStringSequence( SAL_N_ELEMENTS( aStrings
), aStrings
);
7352 Sequence
< Sequence
< PropertyValue
> > aPropSequenceSequence (1);
7354 Sequence
< PropertyValue
> aPropSequence (4);
7356 aPropSequence
[0].Name
= "Position";
7357 static const CustomShapeProvider::ParameterPairData aData
=
7359 EnhancedCustomShapeParameterType::EQUATION
,
7360 EnhancedCustomShapeParameterType::NORMAL
,
7363 aPropSequence
[0].Value
= makeAny (createParameterPair(&aData
));
7366 aPropSequence
[1].Name
= "RangeXMaximum";
7367 EnhancedCustomShapeParameter aParameter
;
7368 Any
aAny ((sal_Int32
) 50000);
7369 aParameter
.Value
= aAny
;
7370 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
7371 aPropSequence
[1].Value
= makeAny (aParameter
);
7374 aPropSequence
[2].Name
= "RangeXMinimum";
7375 EnhancedCustomShapeParameter aParameter
;
7376 Any
aAny ((sal_Int32
) 0);
7377 aParameter
.Value
= aAny
;
7378 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
7379 aPropSequence
[2].Value
= makeAny (aParameter
);
7382 aPropSequence
[3].Name
= "RefX";
7383 Any
aAny ((sal_Int32
) 0);
7384 aPropSequence
[3].Value
= makeAny (aAny
);
7386 aPropSequenceSequence
[0] = aPropSequence
;
7388 aPropertyMap
[PROP_Handles
] <<= aPropSequenceSequence
;
7391 aPropertyMap
[PROP_MirroredX
] <<= Any ((sal_Bool
) sal_False
);
7394 aPropertyMap
[PROP_MirroredY
] <<= Any ((sal_Bool
) sal_False
);
7397 Sequence
< PropertyValue
> aPropSequence (3);
7399 aPropSequence
[0].Name
= "Coordinates";
7400 static const CustomShapeProvider::ParameterPairData aData
[] = {
7402 EnhancedCustomShapeParameterType::NORMAL
,
7403 EnhancedCustomShapeParameterType::EQUATION
,
7407 EnhancedCustomShapeParameterType::EQUATION
,
7408 EnhancedCustomShapeParameterType::EQUATION
,
7412 EnhancedCustomShapeParameterType::EQUATION
,
7413 EnhancedCustomShapeParameterType::EQUATION
,
7417 EnhancedCustomShapeParameterType::EQUATION
,
7418 EnhancedCustomShapeParameterType::NORMAL
,
7422 EnhancedCustomShapeParameterType::EQUATION
,
7423 EnhancedCustomShapeParameterType::EQUATION
,
7427 EnhancedCustomShapeParameterType::EQUATION
,
7428 EnhancedCustomShapeParameterType::EQUATION
,
7432 EnhancedCustomShapeParameterType::EQUATION
,
7433 EnhancedCustomShapeParameterType::EQUATION
,
7437 EnhancedCustomShapeParameterType::EQUATION
,
7438 EnhancedCustomShapeParameterType::EQUATION
,
7442 EnhancedCustomShapeParameterType::EQUATION
,
7443 EnhancedCustomShapeParameterType::EQUATION
,
7447 EnhancedCustomShapeParameterType::EQUATION
,
7448 EnhancedCustomShapeParameterType::EQUATION
,
7452 EnhancedCustomShapeParameterType::EQUATION
,
7453 EnhancedCustomShapeParameterType::EQUATION
,
7457 EnhancedCustomShapeParameterType::EQUATION
,
7458 EnhancedCustomShapeParameterType::EQUATION
,
7462 aPropSequence
[0].Value
= makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData
), aData
));
7465 aPropSequence
[1].Name
= "Segments";
7466 static const sal_uInt16 nValues
[] = {
7479 aPropSequence
[1].Value
= makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues
), nValues
));
7482 aPropSequence
[2].Name
= "TextFrames";
7483 Sequence
< EnhancedCustomShapeTextFrame
> aTextFrameSeq (1);
7485 EnhancedCustomShapeTextFrame aTextFrame
;
7487 static const CustomShapeProvider::ParameterPairData aData
=
7489 EnhancedCustomShapeParameterType::EQUATION
,
7490 EnhancedCustomShapeParameterType::EQUATION
,
7493 aTextFrame
.TopLeft
= createParameterPair(&aData
);
7496 static const CustomShapeProvider::ParameterPairData aData
=
7498 EnhancedCustomShapeParameterType::EQUATION
,
7499 EnhancedCustomShapeParameterType::EQUATION
,
7502 aTextFrame
.BottomRight
= createParameterPair(&aData
);
7504 aTextFrameSeq
[0] = aTextFrame
;
7506 aPropSequence
[2].Value
= makeAny (aTextFrameSeq
);
7508 aPropertyMap
[PROP_Path
] <<= aPropSequence
;
7511 awt::Rectangle aRectangle
;
7514 aRectangle
.Width
= 0;
7515 aRectangle
.Height
= 0;
7516 aPropertyMap
[PROP_ViewBox
] <<= aRectangle
;
7518 aPropertyMap
[ PROP_Type
] <<= OUString("ooxml-roundRect");
7520 return aPropertyMap
;
7523 class ShapeCaccentCallout1
: public CustomShapeProvider
7525 virtual PropertyMap
getProperties()
7527 PropertyMap aPropertyMap
;
7530 Sequence
< EnhancedCustomShapeAdjustmentValue
> aAdjSequence (4);
7532 Any
aAny ((sal_Int32
) 18750);
7533 aAdjSequence
[0].Value
= aAny
;
7534 aAdjSequence
[0].Name
= "adj1";
7537 Any
aAny ((sal_Int32
) -8333);
7538 aAdjSequence
[1].Value
= aAny
;
7539 aAdjSequence
[1].Name
= "adj2";
7542 Any
aAny ((sal_Int32
) 112500);
7543 aAdjSequence
[2].Value
= aAny
;
7544 aAdjSequence
[2].Name
= "adj3";
7547 Any
aAny ((sal_Int32
) -38333);
7548 aAdjSequence
[3].Value
= aAny
;
7549 aAdjSequence
[3].Name
= "adj4";
7551 aPropertyMap
[PROP_AdjustmentValues
] <<= aAdjSequence
;
7554 static const char *aStrings
[] = {
7555 "logheight*$0 /100000",
7556 "logwidth*$1 /100000",
7557 "logheight*$2 /100000",
7558 "logwidth*$3 /100000",
7564 aPropertyMap
[PROP_Equations
] <<= createStringSequence( SAL_N_ELEMENTS( aStrings
), aStrings
);
7567 Sequence
< Sequence
< PropertyValue
> > aPropSequenceSequence (2);
7569 Sequence
< PropertyValue
> aPropSequence (7);
7571 aPropSequence
[0].Name
= "Position";
7572 static const CustomShapeProvider::ParameterPairData aData
=
7574 EnhancedCustomShapeParameterType::EQUATION
,
7575 EnhancedCustomShapeParameterType::EQUATION
,
7578 aPropSequence
[0].Value
= makeAny (createParameterPair(&aData
));
7581 aPropSequence
[1].Name
= "RangeXMaximum";
7582 EnhancedCustomShapeParameter aParameter
;
7583 Any
aAny ((sal_Int32
) 2147483647);
7584 aParameter
.Value
= aAny
;
7585 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
7586 aPropSequence
[1].Value
= makeAny (aParameter
);
7589 aPropSequence
[2].Name
= "RangeXMinimum";
7590 EnhancedCustomShapeParameter aParameter
;
7591 Any
aAny ((sal_Int32
) -2147483647);
7592 aParameter
.Value
= aAny
;
7593 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
7594 aPropSequence
[2].Value
= makeAny (aParameter
);
7597 aPropSequence
[3].Name
= "RangeYMaximum";
7598 EnhancedCustomShapeParameter aParameter
;
7599 Any
aAny ((sal_Int32
) 2147483647);
7600 aParameter
.Value
= aAny
;
7601 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
7602 aPropSequence
[3].Value
= makeAny (aParameter
);
7605 aPropSequence
[4].Name
= "RangeYMinimum";
7606 EnhancedCustomShapeParameter aParameter
;
7607 Any
aAny ((sal_Int32
) -2147483647);
7608 aParameter
.Value
= aAny
;
7609 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
7610 aPropSequence
[4].Value
= makeAny (aParameter
);
7613 aPropSequence
[5].Name
= "RefX";
7614 Any
aAny ((sal_Int32
) 1);
7615 aPropSequence
[5].Value
= makeAny (aAny
);
7618 aPropSequence
[6].Name
= "RefY";
7619 Any
aAny ((sal_Int32
) 0);
7620 aPropSequence
[6].Value
= makeAny (aAny
);
7622 aPropSequenceSequence
[0] = aPropSequence
;
7625 Sequence
< PropertyValue
> aPropSequence (7);
7627 aPropSequence
[0].Name
= "Position";
7628 static const CustomShapeProvider::ParameterPairData aData
=
7630 EnhancedCustomShapeParameterType::EQUATION
,
7631 EnhancedCustomShapeParameterType::EQUATION
,
7634 aPropSequence
[0].Value
= makeAny (createParameterPair(&aData
));
7637 aPropSequence
[1].Name
= "RangeXMaximum";
7638 EnhancedCustomShapeParameter aParameter
;
7639 Any
aAny ((sal_Int32
) 2147483647);
7640 aParameter
.Value
= aAny
;
7641 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
7642 aPropSequence
[1].Value
= makeAny (aParameter
);
7645 aPropSequence
[2].Name
= "RangeXMinimum";
7646 EnhancedCustomShapeParameter aParameter
;
7647 Any
aAny ((sal_Int32
) -2147483647);
7648 aParameter
.Value
= aAny
;
7649 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
7650 aPropSequence
[2].Value
= makeAny (aParameter
);
7653 aPropSequence
[3].Name
= "RangeYMaximum";
7654 EnhancedCustomShapeParameter aParameter
;
7655 Any
aAny ((sal_Int32
) 2147483647);
7656 aParameter
.Value
= aAny
;
7657 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
7658 aPropSequence
[3].Value
= makeAny (aParameter
);
7661 aPropSequence
[4].Name
= "RangeYMinimum";
7662 EnhancedCustomShapeParameter aParameter
;
7663 Any
aAny ((sal_Int32
) -2147483647);
7664 aParameter
.Value
= aAny
;
7665 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
7666 aPropSequence
[4].Value
= makeAny (aParameter
);
7669 aPropSequence
[5].Name
= "RefX";
7670 Any
aAny ((sal_Int32
) 3);
7671 aPropSequence
[5].Value
= makeAny (aAny
);
7674 aPropSequence
[6].Name
= "RefY";
7675 Any
aAny ((sal_Int32
) 2);
7676 aPropSequence
[6].Value
= makeAny (aAny
);
7678 aPropSequenceSequence
[1] = aPropSequence
;
7680 aPropertyMap
[PROP_Handles
] <<= aPropSequenceSequence
;
7683 aPropertyMap
[PROP_MirroredX
] <<= Any ((sal_Bool
) sal_False
);
7686 aPropertyMap
[PROP_MirroredY
] <<= Any ((sal_Bool
) sal_False
);
7689 Sequence
< PropertyValue
> aPropSequence (3);
7691 aPropSequence
[0].Name
= "Coordinates";
7692 static const CustomShapeProvider::ParameterPairData aData
[] = {
7694 EnhancedCustomShapeParameterType::NORMAL
,
7695 EnhancedCustomShapeParameterType::NORMAL
,
7699 EnhancedCustomShapeParameterType::EQUATION
,
7700 EnhancedCustomShapeParameterType::NORMAL
,
7704 EnhancedCustomShapeParameterType::EQUATION
,
7705 EnhancedCustomShapeParameterType::EQUATION
,
7709 EnhancedCustomShapeParameterType::NORMAL
,
7710 EnhancedCustomShapeParameterType::EQUATION
,
7714 EnhancedCustomShapeParameterType::EQUATION
,
7715 EnhancedCustomShapeParameterType::NORMAL
,
7719 EnhancedCustomShapeParameterType::EQUATION
,
7720 EnhancedCustomShapeParameterType::EQUATION
,
7724 EnhancedCustomShapeParameterType::EQUATION
,
7725 EnhancedCustomShapeParameterType::EQUATION
,
7729 EnhancedCustomShapeParameterType::EQUATION
,
7730 EnhancedCustomShapeParameterType::EQUATION
,
7734 aPropSequence
[0].Value
= makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData
), aData
));
7737 aPropSequence
[1].Name
= "Segments";
7738 static const sal_uInt16 nValues
[] = {
7754 aPropSequence
[1].Value
= makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues
), nValues
));
7757 aPropSequence
[2].Name
= "TextFrames";
7758 Sequence
< EnhancedCustomShapeTextFrame
> aTextFrameSeq (1);
7760 EnhancedCustomShapeTextFrame aTextFrame
;
7762 static const CustomShapeProvider::ParameterPairData aData
=
7764 EnhancedCustomShapeParameterType::NORMAL
,
7765 EnhancedCustomShapeParameterType::NORMAL
,
7768 aTextFrame
.TopLeft
= createParameterPair(&aData
);
7771 static const CustomShapeProvider::ParameterPairData aData
=
7773 EnhancedCustomShapeParameterType::EQUATION
,
7774 EnhancedCustomShapeParameterType::EQUATION
,
7777 aTextFrame
.BottomRight
= createParameterPair(&aData
);
7779 aTextFrameSeq
[0] = aTextFrame
;
7781 aPropSequence
[2].Value
= makeAny (aTextFrameSeq
);
7783 aPropertyMap
[PROP_Path
] <<= aPropSequence
;
7786 awt::Rectangle aRectangle
;
7789 aRectangle
.Width
= 0;
7790 aRectangle
.Height
= 0;
7791 aPropertyMap
[PROP_ViewBox
] <<= aRectangle
;
7793 aPropertyMap
[ PROP_Type
] <<= OUString("ooxml-accentCallout1");
7795 return aPropertyMap
;
7798 class ShapeCflowChartSort
: public CustomShapeProvider
7800 virtual PropertyMap
getProperties()
7802 PropertyMap aPropertyMap
;
7805 aPropertyMap
[PROP_AdjustmentValues
] <<= Sequence
< OUString
>(0);
7808 static const char *aStrings
[] = {
7818 aPropertyMap
[PROP_Equations
] <<= createStringSequence( SAL_N_ELEMENTS( aStrings
), aStrings
);
7821 aPropertyMap
[PROP_Handles
] <<= Sequence
< OUString
>(0);
7824 aPropertyMap
[PROP_MirroredX
] <<= Any ((sal_Bool
) sal_False
);
7827 aPropertyMap
[PROP_MirroredY
] <<= Any ((sal_Bool
) sal_False
);
7830 Sequence
< PropertyValue
> aPropSequence (4);
7832 aPropSequence
[0].Name
= "Coordinates";
7833 static const CustomShapeProvider::ParameterPairData aData
[] = {
7835 EnhancedCustomShapeParameterType::NORMAL
,
7836 EnhancedCustomShapeParameterType::NORMAL
,
7840 EnhancedCustomShapeParameterType::NORMAL
,
7841 EnhancedCustomShapeParameterType::NORMAL
,
7845 EnhancedCustomShapeParameterType::NORMAL
,
7846 EnhancedCustomShapeParameterType::NORMAL
,
7850 EnhancedCustomShapeParameterType::NORMAL
,
7851 EnhancedCustomShapeParameterType::NORMAL
,
7855 EnhancedCustomShapeParameterType::NORMAL
,
7856 EnhancedCustomShapeParameterType::NORMAL
,
7860 EnhancedCustomShapeParameterType::NORMAL
,
7861 EnhancedCustomShapeParameterType::NORMAL
,
7865 EnhancedCustomShapeParameterType::NORMAL
,
7866 EnhancedCustomShapeParameterType::NORMAL
,
7870 EnhancedCustomShapeParameterType::NORMAL
,
7871 EnhancedCustomShapeParameterType::NORMAL
,
7875 EnhancedCustomShapeParameterType::NORMAL
,
7876 EnhancedCustomShapeParameterType::NORMAL
,
7880 EnhancedCustomShapeParameterType::NORMAL
,
7881 EnhancedCustomShapeParameterType::NORMAL
,
7885 aPropSequence
[0].Value
= makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData
), aData
));
7888 aPropSequence
[1].Name
= "Segments";
7889 static const sal_uInt16 nValues
[] = {
7906 aPropSequence
[1].Value
= makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues
), nValues
));
7909 aPropSequence
[2].Name
= "SubViewSize";
7910 Sequence
< awt::Size
> aSizeSequence (3);
7915 aSizeSequence
[0] = aSize
;
7921 aSizeSequence
[1] = aSize
;
7927 aSizeSequence
[2] = aSize
;
7929 aPropSequence
[2].Value
= makeAny (aSizeSequence
);
7932 aPropSequence
[3].Name
= "TextFrames";
7933 Sequence
< EnhancedCustomShapeTextFrame
> aTextFrameSeq (1);
7935 EnhancedCustomShapeTextFrame aTextFrame
;
7937 static const CustomShapeProvider::ParameterPairData aData
=
7939 EnhancedCustomShapeParameterType::EQUATION
,
7940 EnhancedCustomShapeParameterType::EQUATION
,
7943 aTextFrame
.TopLeft
= createParameterPair(&aData
);
7946 static const CustomShapeProvider::ParameterPairData aData
=
7948 EnhancedCustomShapeParameterType::EQUATION
,
7949 EnhancedCustomShapeParameterType::EQUATION
,
7952 aTextFrame
.BottomRight
= createParameterPair(&aData
);
7954 aTextFrameSeq
[0] = aTextFrame
;
7956 aPropSequence
[3].Value
= makeAny (aTextFrameSeq
);
7958 aPropertyMap
[PROP_Path
] <<= aPropSequence
;
7961 awt::Rectangle aRectangle
;
7964 aRectangle
.Width
= 0;
7965 aRectangle
.Height
= 0;
7966 aPropertyMap
[PROP_ViewBox
] <<= aRectangle
;
7968 aPropertyMap
[ PROP_Type
] <<= OUString("ooxml-flowChartSort");
7970 return aPropertyMap
;
7973 class ShapeCstar8
: public CustomShapeProvider
7975 virtual PropertyMap
getProperties()
7977 PropertyMap aPropertyMap
;
7980 Sequence
< EnhancedCustomShapeAdjustmentValue
> aAdjSequence (1);
7982 Any
aAny ((sal_Int32
) 37500);
7983 aAdjSequence
[0].Value
= aAny
;
7984 aAdjSequence
[0].Name
= "adj";
7986 aPropertyMap
[PROP_AdjustmentValues
] <<= aAdjSequence
;
7989 static const char *aStrings
[] = {
7990 "if(0-$0 ,0,if(50000-$0 ,$0 ,50000))",
7992 "?1 *cos(pi*(2700000)/10800000)",
7997 "?6 *sin(pi*(2700000)/10800000)",
8003 "?11 *92388/100000",
8004 "?11 *38268/100000",
8005 "?12 *92388/100000",
8006 "?12 *38268/100000",
8019 aPropertyMap
[PROP_Equations
] <<= createStringSequence( SAL_N_ELEMENTS( aStrings
), aStrings
);
8022 Sequence
< Sequence
< PropertyValue
> > aPropSequenceSequence (1);
8024 Sequence
< PropertyValue
> aPropSequence (4);
8026 aPropSequence
[0].Name
= "Position";
8027 static const CustomShapeProvider::ParameterPairData aData
=
8029 EnhancedCustomShapeParameterType::EQUATION
,
8030 EnhancedCustomShapeParameterType::EQUATION
,
8033 aPropSequence
[0].Value
= makeAny (createParameterPair(&aData
));
8036 aPropSequence
[1].Name
= "RangeYMaximum";
8037 EnhancedCustomShapeParameter aParameter
;
8038 Any
aAny ((sal_Int32
) 50000);
8039 aParameter
.Value
= aAny
;
8040 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
8041 aPropSequence
[1].Value
= makeAny (aParameter
);
8044 aPropSequence
[2].Name
= "RangeYMinimum";
8045 EnhancedCustomShapeParameter aParameter
;
8046 Any
aAny ((sal_Int32
) 0);
8047 aParameter
.Value
= aAny
;
8048 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
8049 aPropSequence
[2].Value
= makeAny (aParameter
);
8052 aPropSequence
[3].Name
= "RefY";
8053 Any
aAny ((sal_Int32
) 0);
8054 aPropSequence
[3].Value
= makeAny (aAny
);
8056 aPropSequenceSequence
[0] = aPropSequence
;
8058 aPropertyMap
[PROP_Handles
] <<= aPropSequenceSequence
;
8061 aPropertyMap
[PROP_MirroredX
] <<= Any ((sal_Bool
) sal_False
);
8064 aPropertyMap
[PROP_MirroredY
] <<= Any ((sal_Bool
) sal_False
);
8067 Sequence
< PropertyValue
> aPropSequence (3);
8069 aPropSequence
[0].Name
= "Coordinates";
8070 static const CustomShapeProvider::ParameterPairData aData
[] = {
8072 EnhancedCustomShapeParameterType::NORMAL
,
8073 EnhancedCustomShapeParameterType::EQUATION
,
8077 EnhancedCustomShapeParameterType::EQUATION
,
8078 EnhancedCustomShapeParameterType::EQUATION
,
8082 EnhancedCustomShapeParameterType::EQUATION
,
8083 EnhancedCustomShapeParameterType::EQUATION
,
8087 EnhancedCustomShapeParameterType::EQUATION
,
8088 EnhancedCustomShapeParameterType::EQUATION
,
8092 EnhancedCustomShapeParameterType::EQUATION
,
8093 EnhancedCustomShapeParameterType::NORMAL
,
8097 EnhancedCustomShapeParameterType::EQUATION
,
8098 EnhancedCustomShapeParameterType::EQUATION
,
8102 EnhancedCustomShapeParameterType::EQUATION
,
8103 EnhancedCustomShapeParameterType::EQUATION
,
8107 EnhancedCustomShapeParameterType::EQUATION
,
8108 EnhancedCustomShapeParameterType::EQUATION
,
8112 EnhancedCustomShapeParameterType::EQUATION
,
8113 EnhancedCustomShapeParameterType::EQUATION
,
8117 EnhancedCustomShapeParameterType::EQUATION
,
8118 EnhancedCustomShapeParameterType::EQUATION
,
8122 EnhancedCustomShapeParameterType::EQUATION
,
8123 EnhancedCustomShapeParameterType::EQUATION
,
8127 EnhancedCustomShapeParameterType::EQUATION
,
8128 EnhancedCustomShapeParameterType::EQUATION
,
8132 EnhancedCustomShapeParameterType::EQUATION
,
8133 EnhancedCustomShapeParameterType::EQUATION
,
8137 EnhancedCustomShapeParameterType::EQUATION
,
8138 EnhancedCustomShapeParameterType::EQUATION
,
8142 EnhancedCustomShapeParameterType::EQUATION
,
8143 EnhancedCustomShapeParameterType::EQUATION
,
8147 EnhancedCustomShapeParameterType::EQUATION
,
8148 EnhancedCustomShapeParameterType::EQUATION
,
8152 aPropSequence
[0].Value
= makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData
), aData
));
8155 aPropSequence
[1].Name
= "Segments";
8156 static const sal_uInt16 nValues
[] = {
8163 aPropSequence
[1].Value
= makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues
), nValues
));
8166 aPropSequence
[2].Name
= "TextFrames";
8167 Sequence
< EnhancedCustomShapeTextFrame
> aTextFrameSeq (1);
8169 EnhancedCustomShapeTextFrame aTextFrame
;
8171 static const CustomShapeProvider::ParameterPairData aData
=
8173 EnhancedCustomShapeParameterType::EQUATION
,
8174 EnhancedCustomShapeParameterType::EQUATION
,
8177 aTextFrame
.TopLeft
= createParameterPair(&aData
);
8180 static const CustomShapeProvider::ParameterPairData aData
=
8182 EnhancedCustomShapeParameterType::EQUATION
,
8183 EnhancedCustomShapeParameterType::EQUATION
,
8186 aTextFrame
.BottomRight
= createParameterPair(&aData
);
8188 aTextFrameSeq
[0] = aTextFrame
;
8190 aPropSequence
[2].Value
= makeAny (aTextFrameSeq
);
8192 aPropertyMap
[PROP_Path
] <<= aPropSequence
;
8195 awt::Rectangle aRectangle
;
8198 aRectangle
.Width
= 0;
8199 aRectangle
.Height
= 0;
8200 aPropertyMap
[PROP_ViewBox
] <<= aRectangle
;
8202 aPropertyMap
[ PROP_Type
] <<= OUString("ooxml-star8");
8204 return aPropertyMap
;
8207 class ShapeCflowChartAlternateProcess
: public CustomShapeProvider
8209 virtual PropertyMap
getProperties()
8211 PropertyMap aPropertyMap
;
8214 aPropertyMap
[PROP_AdjustmentValues
] <<= Sequence
< OUString
>(0);
8217 static const char *aStrings
[] = {
8218 "min(logwidth,logheight)/6",
8228 "(10800000)/60000.0",
8229 "(5400000)/60000.0",
8230 "(16200000)/60000.0",
8231 "(5400000)/60000.0",
8233 "(5400000)/60000.0",
8234 "(5400000)/60000.0",
8237 aPropertyMap
[PROP_Equations
] <<= createStringSequence( SAL_N_ELEMENTS( aStrings
), aStrings
);
8240 aPropertyMap
[PROP_Handles
] <<= Sequence
< OUString
>(0);
8243 aPropertyMap
[PROP_MirroredX
] <<= Any ((sal_Bool
) sal_False
);
8246 aPropertyMap
[PROP_MirroredY
] <<= Any ((sal_Bool
) sal_False
);
8249 Sequence
< PropertyValue
> aPropSequence (3);
8251 aPropSequence
[0].Name
= "Coordinates";
8252 static const CustomShapeProvider::ParameterPairData aData
[] = {
8254 EnhancedCustomShapeParameterType::NORMAL
,
8255 EnhancedCustomShapeParameterType::EQUATION
,
8259 EnhancedCustomShapeParameterType::EQUATION
,
8260 EnhancedCustomShapeParameterType::EQUATION
,
8264 EnhancedCustomShapeParameterType::EQUATION
,
8265 EnhancedCustomShapeParameterType::EQUATION
,
8269 EnhancedCustomShapeParameterType::EQUATION
,
8270 EnhancedCustomShapeParameterType::NORMAL
,
8274 EnhancedCustomShapeParameterType::EQUATION
,
8275 EnhancedCustomShapeParameterType::EQUATION
,
8279 EnhancedCustomShapeParameterType::EQUATION
,
8280 EnhancedCustomShapeParameterType::EQUATION
,
8284 EnhancedCustomShapeParameterType::EQUATION
,
8285 EnhancedCustomShapeParameterType::EQUATION
,
8289 EnhancedCustomShapeParameterType::EQUATION
,
8290 EnhancedCustomShapeParameterType::EQUATION
,
8294 EnhancedCustomShapeParameterType::EQUATION
,
8295 EnhancedCustomShapeParameterType::EQUATION
,
8299 EnhancedCustomShapeParameterType::EQUATION
,
8300 EnhancedCustomShapeParameterType::EQUATION
,
8304 EnhancedCustomShapeParameterType::EQUATION
,
8305 EnhancedCustomShapeParameterType::EQUATION
,
8309 EnhancedCustomShapeParameterType::EQUATION
,
8310 EnhancedCustomShapeParameterType::EQUATION
,
8314 aPropSequence
[0].Value
= makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData
), aData
));
8317 aPropSequence
[1].Name
= "Segments";
8318 static const sal_uInt16 nValues
[] = {
8331 aPropSequence
[1].Value
= makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues
), nValues
));
8334 aPropSequence
[2].Name
= "TextFrames";
8335 Sequence
< EnhancedCustomShapeTextFrame
> aTextFrameSeq (1);
8337 EnhancedCustomShapeTextFrame aTextFrame
;
8339 static const CustomShapeProvider::ParameterPairData aData
=
8341 EnhancedCustomShapeParameterType::EQUATION
,
8342 EnhancedCustomShapeParameterType::EQUATION
,
8345 aTextFrame
.TopLeft
= createParameterPair(&aData
);
8348 static const CustomShapeProvider::ParameterPairData aData
=
8350 EnhancedCustomShapeParameterType::EQUATION
,
8351 EnhancedCustomShapeParameterType::EQUATION
,
8354 aTextFrame
.BottomRight
= createParameterPair(&aData
);
8356 aTextFrameSeq
[0] = aTextFrame
;
8358 aPropSequence
[2].Value
= makeAny (aTextFrameSeq
);
8360 aPropertyMap
[PROP_Path
] <<= aPropSequence
;
8363 awt::Rectangle aRectangle
;
8366 aRectangle
.Width
= 0;
8367 aRectangle
.Height
= 0;
8368 aPropertyMap
[PROP_ViewBox
] <<= aRectangle
;
8370 aPropertyMap
[ PROP_Type
] <<= OUString("ooxml-flowChartAlternateProcess");
8372 return aPropertyMap
;
8375 class ShapeCmoon
: public CustomShapeProvider
8377 virtual PropertyMap
getProperties()
8379 PropertyMap aPropertyMap
;
8382 Sequence
< EnhancedCustomShapeAdjustmentValue
> aAdjSequence (1);
8384 Any
aAny ((sal_Int32
) 50000);
8385 aAdjSequence
[0].Value
= aAny
;
8386 aAdjSequence
[0].Name
= "adj";
8388 aPropertyMap
[PROP_AdjustmentValues
] <<= aAdjSequence
;
8391 static const char *aStrings
[] = {
8392 "if(0-$0 ,0,if(87500-$0 ,$0 ,87500))",
8393 "min(logwidth,logheight)",
8411 "?18 *logwidth/?1 ",
8422 "?3 +?29 -logwidth",
8425 "(10800000*atan2(?32 ,?31 ))/pi",
8426 "(10800000*atan2(?13 ,?31 ))/pi",
8432 "(5400000)/60000.0",
8433 "(10800000)/60000.0",
8437 aPropertyMap
[PROP_Equations
] <<= createStringSequence( SAL_N_ELEMENTS( aStrings
), aStrings
);
8440 Sequence
< Sequence
< PropertyValue
> > aPropSequenceSequence (1);
8442 Sequence
< PropertyValue
> aPropSequence (4);
8444 aPropSequence
[0].Name
= "Position";
8445 static const CustomShapeProvider::ParameterPairData aData
=
8447 EnhancedCustomShapeParameterType::EQUATION
,
8448 EnhancedCustomShapeParameterType::EQUATION
,
8451 aPropSequence
[0].Value
= makeAny (createParameterPair(&aData
));
8454 aPropSequence
[1].Name
= "RangeXMaximum";
8455 EnhancedCustomShapeParameter aParameter
;
8456 Any
aAny ((sal_Int32
) 87500);
8457 aParameter
.Value
= aAny
;
8458 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
8459 aPropSequence
[1].Value
= makeAny (aParameter
);
8462 aPropSequence
[2].Name
= "RangeXMinimum";
8463 EnhancedCustomShapeParameter aParameter
;
8464 Any
aAny ((sal_Int32
) 0);
8465 aParameter
.Value
= aAny
;
8466 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
8467 aPropSequence
[2].Value
= makeAny (aParameter
);
8470 aPropSequence
[3].Name
= "RefX";
8471 Any
aAny ((sal_Int32
) 0);
8472 aPropSequence
[3].Value
= makeAny (aAny
);
8474 aPropSequenceSequence
[0] = aPropSequence
;
8476 aPropertyMap
[PROP_Handles
] <<= aPropSequenceSequence
;
8479 aPropertyMap
[PROP_MirroredX
] <<= Any ((sal_Bool
) sal_False
);
8482 aPropertyMap
[PROP_MirroredY
] <<= Any ((sal_Bool
) sal_False
);
8485 Sequence
< PropertyValue
> aPropSequence (3);
8487 aPropSequence
[0].Name
= "Coordinates";
8488 static const CustomShapeProvider::ParameterPairData aData
[] = {
8490 EnhancedCustomShapeParameterType::EQUATION
,
8491 EnhancedCustomShapeParameterType::EQUATION
,
8495 EnhancedCustomShapeParameterType::EQUATION
,
8496 EnhancedCustomShapeParameterType::EQUATION
,
8500 EnhancedCustomShapeParameterType::EQUATION
,
8501 EnhancedCustomShapeParameterType::EQUATION
,
8505 EnhancedCustomShapeParameterType::EQUATION
,
8506 EnhancedCustomShapeParameterType::EQUATION
,
8510 EnhancedCustomShapeParameterType::EQUATION
,
8511 EnhancedCustomShapeParameterType::EQUATION
,
8515 aPropSequence
[0].Value
= makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData
), aData
));
8518 aPropSequence
[1].Name
= "Segments";
8519 static const sal_uInt16 nValues
[] = {
8526 aPropSequence
[1].Value
= makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues
), nValues
));
8529 aPropSequence
[2].Name
= "TextFrames";
8530 Sequence
< EnhancedCustomShapeTextFrame
> aTextFrameSeq (1);
8532 EnhancedCustomShapeTextFrame aTextFrame
;
8534 static const CustomShapeProvider::ParameterPairData aData
=
8536 EnhancedCustomShapeParameterType::EQUATION
,
8537 EnhancedCustomShapeParameterType::EQUATION
,
8540 aTextFrame
.TopLeft
= createParameterPair(&aData
);
8543 static const CustomShapeProvider::ParameterPairData aData
=
8545 EnhancedCustomShapeParameterType::EQUATION
,
8546 EnhancedCustomShapeParameterType::EQUATION
,
8549 aTextFrame
.BottomRight
= createParameterPair(&aData
);
8551 aTextFrameSeq
[0] = aTextFrame
;
8553 aPropSequence
[2].Value
= makeAny (aTextFrameSeq
);
8555 aPropertyMap
[PROP_Path
] <<= aPropSequence
;
8558 awt::Rectangle aRectangle
;
8561 aRectangle
.Width
= 0;
8562 aRectangle
.Height
= 0;
8563 aPropertyMap
[PROP_ViewBox
] <<= aRectangle
;
8565 aPropertyMap
[ PROP_Type
] <<= OUString("ooxml-moon");
8567 return aPropertyMap
;
8570 class ShapeCstar6
: public CustomShapeProvider
8572 virtual PropertyMap
getProperties()
8574 PropertyMap aPropertyMap
;
8577 Sequence
< EnhancedCustomShapeAdjustmentValue
> aAdjSequence (2);
8579 Any
aAny ((sal_Int32
) 28868);
8580 aAdjSequence
[0].Value
= aAny
;
8581 aAdjSequence
[0].Name
= "adj";
8584 Any
aAny ((sal_Int32
) 115470);
8585 aAdjSequence
[1].Value
= aAny
;
8586 aAdjSequence
[1].Name
= "hf";
8588 aPropertyMap
[PROP_AdjustmentValues
] <<= aAdjSequence
;
8591 static const char *aStrings
[] = {
8592 "if(0-$0 ,0,if(50000-$0 ,$0 ,50000))",
8595 "?2 *cos(pi*(1800000)/10800000)",
8610 "?12 *sin(pi*(3600000)/10800000)",
8616 aPropertyMap
[PROP_Equations
] <<= createStringSequence( SAL_N_ELEMENTS( aStrings
), aStrings
);
8619 Sequence
< Sequence
< PropertyValue
> > aPropSequenceSequence (1);
8621 Sequence
< PropertyValue
> aPropSequence (4);
8623 aPropSequence
[0].Name
= "Position";
8624 static const CustomShapeProvider::ParameterPairData aData
=
8626 EnhancedCustomShapeParameterType::EQUATION
,
8627 EnhancedCustomShapeParameterType::EQUATION
,
8630 aPropSequence
[0].Value
= makeAny (createParameterPair(&aData
));
8633 aPropSequence
[1].Name
= "RangeYMaximum";
8634 EnhancedCustomShapeParameter aParameter
;
8635 Any
aAny ((sal_Int32
) 50000);
8636 aParameter
.Value
= aAny
;
8637 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
8638 aPropSequence
[1].Value
= makeAny (aParameter
);
8641 aPropSequence
[2].Name
= "RangeYMinimum";
8642 EnhancedCustomShapeParameter aParameter
;
8643 Any
aAny ((sal_Int32
) 0);
8644 aParameter
.Value
= aAny
;
8645 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
8646 aPropSequence
[2].Value
= makeAny (aParameter
);
8649 aPropSequence
[3].Name
= "RefY";
8650 Any
aAny ((sal_Int32
) 0);
8651 aPropSequence
[3].Value
= makeAny (aAny
);
8653 aPropSequenceSequence
[0] = aPropSequence
;
8655 aPropertyMap
[PROP_Handles
] <<= aPropSequenceSequence
;
8658 aPropertyMap
[PROP_MirroredX
] <<= Any ((sal_Bool
) sal_False
);
8661 aPropertyMap
[PROP_MirroredY
] <<= Any ((sal_Bool
) sal_False
);
8664 Sequence
< PropertyValue
> aPropSequence (3);
8666 aPropSequence
[0].Name
= "Coordinates";
8667 static const CustomShapeProvider::ParameterPairData aData
[] = {
8669 EnhancedCustomShapeParameterType::EQUATION
,
8670 EnhancedCustomShapeParameterType::EQUATION
,
8674 EnhancedCustomShapeParameterType::EQUATION
,
8675 EnhancedCustomShapeParameterType::EQUATION
,
8679 EnhancedCustomShapeParameterType::EQUATION
,
8680 EnhancedCustomShapeParameterType::NORMAL
,
8684 EnhancedCustomShapeParameterType::EQUATION
,
8685 EnhancedCustomShapeParameterType::EQUATION
,
8689 EnhancedCustomShapeParameterType::EQUATION
,
8690 EnhancedCustomShapeParameterType::EQUATION
,
8694 EnhancedCustomShapeParameterType::EQUATION
,
8695 EnhancedCustomShapeParameterType::EQUATION
,
8699 EnhancedCustomShapeParameterType::EQUATION
,
8700 EnhancedCustomShapeParameterType::EQUATION
,
8704 EnhancedCustomShapeParameterType::EQUATION
,
8705 EnhancedCustomShapeParameterType::EQUATION
,
8709 EnhancedCustomShapeParameterType::EQUATION
,
8710 EnhancedCustomShapeParameterType::EQUATION
,
8714 EnhancedCustomShapeParameterType::EQUATION
,
8715 EnhancedCustomShapeParameterType::EQUATION
,
8719 EnhancedCustomShapeParameterType::EQUATION
,
8720 EnhancedCustomShapeParameterType::EQUATION
,
8724 EnhancedCustomShapeParameterType::EQUATION
,
8725 EnhancedCustomShapeParameterType::EQUATION
,
8729 aPropSequence
[0].Value
= makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData
), aData
));
8732 aPropSequence
[1].Name
= "Segments";
8733 static const sal_uInt16 nValues
[] = {
8740 aPropSequence
[1].Value
= makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues
), nValues
));
8743 aPropSequence
[2].Name
= "TextFrames";
8744 Sequence
< EnhancedCustomShapeTextFrame
> aTextFrameSeq (1);
8746 EnhancedCustomShapeTextFrame aTextFrame
;
8748 static const CustomShapeProvider::ParameterPairData aData
=
8750 EnhancedCustomShapeParameterType::EQUATION
,
8751 EnhancedCustomShapeParameterType::EQUATION
,
8754 aTextFrame
.TopLeft
= createParameterPair(&aData
);
8757 static const CustomShapeProvider::ParameterPairData aData
=
8759 EnhancedCustomShapeParameterType::EQUATION
,
8760 EnhancedCustomShapeParameterType::EQUATION
,
8763 aTextFrame
.BottomRight
= createParameterPair(&aData
);
8765 aTextFrameSeq
[0] = aTextFrame
;
8767 aPropSequence
[2].Value
= makeAny (aTextFrameSeq
);
8769 aPropertyMap
[PROP_Path
] <<= aPropSequence
;
8772 awt::Rectangle aRectangle
;
8775 aRectangle
.Width
= 0;
8776 aRectangle
.Height
= 0;
8777 aPropertyMap
[PROP_ViewBox
] <<= aRectangle
;
8779 aPropertyMap
[ PROP_Type
] <<= OUString("ooxml-star6");
8781 return aPropertyMap
;
8784 } // anonymous namespace
8785 void CustomShapeProperties::initializePresetsMap2()
8787 maPresetsMap
[ StaticTokenMap::get().getTokenFromUnicode( "leftRightArrowCallout" ) ] = new ShapeCleftRightArrowCallout();
8788 maPresetsMap
[ StaticTokenMap::get().getTokenFromUnicode( "flowChartManualOperation" ) ] = new ShapeCflowChartManualOperation();
8789 maPresetsMap
[ StaticTokenMap::get().getTokenFromUnicode( "snipRoundRect" ) ] = new ShapeCsnipRoundRect();
8790 maPresetsMap
[ StaticTokenMap::get().getTokenFromUnicode( "mathPlus" ) ] = new ShapeCmathPlus();
8791 maPresetsMap
[ StaticTokenMap::get().getTokenFromUnicode( "actionButtonForwardNext" ) ] = new ShapeCactionButtonForwardNext();
8792 maPresetsMap
[ StaticTokenMap::get().getTokenFromUnicode( "can" ) ] = new ShapeCcan();
8793 maPresetsMap
[ StaticTokenMap::get().getTokenFromUnicode( "foldedCorner" ) ] = new ShapeCfoldedCorner();
8794 maPresetsMap
[ StaticTokenMap::get().getTokenFromUnicode( "star32" ) ] = new ShapeCstar32();
8795 maPresetsMap
[ StaticTokenMap::get().getTokenFromUnicode( "flowChartInternalStorage" ) ] = new ShapeCflowChartInternalStorage();
8796 maPresetsMap
[ StaticTokenMap::get().getTokenFromUnicode( "upDownArrow" ) ] = new ShapeCupDownArrow();
8797 maPresetsMap
[ StaticTokenMap::get().getTokenFromUnicode( "irregularSeal2" ) ] = new ShapeCirregularSeal2();
8798 maPresetsMap
[ StaticTokenMap::get().getTokenFromUnicode( "mathEqual" ) ] = new ShapeCmathEqual();
8799 maPresetsMap
[ StaticTokenMap::get().getTokenFromUnicode( "star12" ) ] = new ShapeCstar12();
8800 maPresetsMap
[ StaticTokenMap::get().getTokenFromUnicode( "uturnArrow" ) ] = new ShapeCuturnArrow();
8801 maPresetsMap
[ StaticTokenMap::get().getTokenFromUnicode( "squareTabs" ) ] = new ShapeCsquareTabs();
8802 maPresetsMap
[ StaticTokenMap::get().getTokenFromUnicode( "leftRightUpArrow" ) ] = new ShapeCleftRightUpArrow();
8803 maPresetsMap
[ StaticTokenMap::get().getTokenFromUnicode( "homePlate" ) ] = new ShapeChomePlate();
8804 maPresetsMap
[ StaticTokenMap::get().getTokenFromUnicode( "dodecagon" ) ] = new ShapeCdodecagon();
8805 maPresetsMap
[ StaticTokenMap::get().getTokenFromUnicode( "leftArrowCallout" ) ] = new ShapeCleftArrowCallout();
8806 maPresetsMap
[ StaticTokenMap::get().getTokenFromUnicode( "chord" ) ] = new ShapeCchord();
8807 maPresetsMap
[ StaticTokenMap::get().getTokenFromUnicode( "quadArrowCallout" ) ] = new ShapeCquadArrowCallout();
8808 maPresetsMap
[ StaticTokenMap::get().getTokenFromUnicode( "actionButtonBeginning" ) ] = new ShapeCactionButtonBeginning();
8809 maPresetsMap
[ StaticTokenMap::get().getTokenFromUnicode( "ellipse" ) ] = new ShapeCellipse();
8810 maPresetsMap
[ StaticTokenMap::get().getTokenFromUnicode( "actionButtonEnd" ) ] = new ShapeCactionButtonEnd();
8811 maPresetsMap
[ StaticTokenMap::get().getTokenFromUnicode( "arc" ) ] = new ShapeCarc();
8812 maPresetsMap
[ StaticTokenMap::get().getTokenFromUnicode( "star16" ) ] = new ShapeCstar16();
8813 maPresetsMap
[ StaticTokenMap::get().getTokenFromUnicode( "parallelogram" ) ] = new ShapeCparallelogram();
8814 maPresetsMap
[ StaticTokenMap::get().getTokenFromUnicode( "bevel" ) ] = new ShapeCbevel();
8815 maPresetsMap
[ StaticTokenMap::get().getTokenFromUnicode( "roundRect" ) ] = new ShapeCroundRect();
8816 maPresetsMap
[ StaticTokenMap::get().getTokenFromUnicode( "accentCallout1" ) ] = new ShapeCaccentCallout1();
8817 maPresetsMap
[ StaticTokenMap::get().getTokenFromUnicode( "flowChartSort" ) ] = new ShapeCflowChartSort();
8818 maPresetsMap
[ StaticTokenMap::get().getTokenFromUnicode( "star8" ) ] = new ShapeCstar8();
8819 maPresetsMap
[ StaticTokenMap::get().getTokenFromUnicode( "flowChartAlternateProcess" ) ] = new ShapeCflowChartAlternateProcess();
8820 maPresetsMap
[ StaticTokenMap::get().getTokenFromUnicode( "moon" ) ] = new ShapeCmoon();
8821 maPresetsMap
[ StaticTokenMap::get().getTokenFromUnicode( "star6" ) ] = new ShapeCstar6();
8824 } } // oox // drawingml