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 ShapeCstar5
: public CustomShapeProvider
24 virtual PropertyMap
getProperties()
26 PropertyMap aPropertyMap
;
29 Sequence
< EnhancedCustomShapeAdjustmentValue
> aAdjSequence (3);
31 Any
aAny ((sal_Int32
) 19098);
32 aAdjSequence
[0].Value
= aAny
;
33 aAdjSequence
[0].Name
= "adj";
36 Any
aAny ((sal_Int32
) 105146);
37 aAdjSequence
[1].Value
= aAny
;
38 aAdjSequence
[1].Name
= "hf";
41 Any
aAny ((sal_Int32
) 110557);
42 aAdjSequence
[2].Value
= aAny
;
43 aAdjSequence
[2].Name
= "vf";
45 aPropertyMap
[PROP_AdjustmentValues
] <<= aAdjSequence
;
48 static const char *aStrings
[] = {
49 "if(0-$0 ,0,if(50000-$0 ,$0 ,50000))",
56 "?2 *cos(pi*(1080000)/10800000)",
57 "?2 *cos(pi*(18360000)/10800000)",
58 "?4 *sin(pi*(1080000)/10800000)",
59 "?4 *sin(pi*(18360000)/10800000)",
69 "?18 *cos(pi*(20520000)/10800000)",
70 "?18 *cos(pi*(3240000)/10800000)",
71 "?19 *sin(pi*(3240000)/10800000)",
72 "?19 *sin(pi*(20520000)/10800000)",
82 aPropertyMap
[PROP_Equations
] <<= createStringSequence( SAL_N_ELEMENTS( aStrings
), aStrings
);
85 Sequence
< Sequence
< PropertyValue
> > aPropSequenceSequence (1);
87 Sequence
< PropertyValue
> aPropSequence (4);
89 aPropSequence
[0].Name
= "Position";
90 static const CustomShapeProvider::ParameterPairData aData
=
92 EnhancedCustomShapeParameterType::EQUATION
,
93 EnhancedCustomShapeParameterType::EQUATION
,
96 aPropSequence
[0].Value
= makeAny (createParameterPair(&aData
));
99 aPropSequence
[1].Name
= "RangeYMaximum";
100 EnhancedCustomShapeParameter aParameter
;
101 Any
aAny ((sal_Int32
) 50000);
102 aParameter
.Value
= aAny
;
103 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
104 aPropSequence
[1].Value
= makeAny (aParameter
);
107 aPropSequence
[2].Name
= "RangeYMinimum";
108 EnhancedCustomShapeParameter aParameter
;
109 Any
aAny ((sal_Int32
) 0);
110 aParameter
.Value
= aAny
;
111 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
112 aPropSequence
[2].Value
= makeAny (aParameter
);
115 aPropSequence
[3].Name
= "RefY";
116 Any
aAny ((sal_Int32
) 0);
117 aPropSequence
[3].Value
= makeAny (aAny
);
119 aPropSequenceSequence
[0] = aPropSequence
;
121 aPropertyMap
[PROP_Handles
] <<= aPropSequenceSequence
;
124 aPropertyMap
[PROP_MirroredX
] <<= Any ((sal_Bool
) sal_False
);
127 aPropertyMap
[PROP_MirroredY
] <<= Any ((sal_Bool
) sal_False
);
130 Sequence
< PropertyValue
> aPropSequence (3);
132 aPropSequence
[0].Name
= "Coordinates";
133 static const CustomShapeProvider::ParameterPairData aData
[] = {
135 EnhancedCustomShapeParameterType::EQUATION
,
136 EnhancedCustomShapeParameterType::EQUATION
,
140 EnhancedCustomShapeParameterType::EQUATION
,
141 EnhancedCustomShapeParameterType::EQUATION
,
145 EnhancedCustomShapeParameterType::EQUATION
,
146 EnhancedCustomShapeParameterType::NORMAL
,
150 EnhancedCustomShapeParameterType::EQUATION
,
151 EnhancedCustomShapeParameterType::EQUATION
,
155 EnhancedCustomShapeParameterType::EQUATION
,
156 EnhancedCustomShapeParameterType::EQUATION
,
160 EnhancedCustomShapeParameterType::EQUATION
,
161 EnhancedCustomShapeParameterType::EQUATION
,
165 EnhancedCustomShapeParameterType::EQUATION
,
166 EnhancedCustomShapeParameterType::EQUATION
,
170 EnhancedCustomShapeParameterType::EQUATION
,
171 EnhancedCustomShapeParameterType::EQUATION
,
175 EnhancedCustomShapeParameterType::EQUATION
,
176 EnhancedCustomShapeParameterType::EQUATION
,
180 EnhancedCustomShapeParameterType::EQUATION
,
181 EnhancedCustomShapeParameterType::EQUATION
,
185 aPropSequence
[0].Value
= makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData
), aData
));
188 aPropSequence
[1].Name
= "Segments";
189 static const sal_uInt16 nValues
[] = {
196 aPropSequence
[1].Value
= makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues
), nValues
));
199 aPropSequence
[2].Name
= "TextFrames";
200 Sequence
< EnhancedCustomShapeTextFrame
> aTextFrameSeq (1);
202 EnhancedCustomShapeTextFrame aTextFrame
;
204 static const CustomShapeProvider::ParameterPairData aData
=
206 EnhancedCustomShapeParameterType::EQUATION
,
207 EnhancedCustomShapeParameterType::EQUATION
,
210 aTextFrame
.TopLeft
= createParameterPair(&aData
);
213 static const CustomShapeProvider::ParameterPairData aData
=
215 EnhancedCustomShapeParameterType::EQUATION
,
216 EnhancedCustomShapeParameterType::EQUATION
,
219 aTextFrame
.BottomRight
= createParameterPair(&aData
);
221 aTextFrameSeq
[0] = aTextFrame
;
223 aPropSequence
[2].Value
= makeAny (aTextFrameSeq
);
225 aPropertyMap
[PROP_Path
] <<= aPropSequence
;
228 awt::Rectangle aRectangle
;
231 aRectangle
.Width
= 0;
232 aRectangle
.Height
= 0;
233 aPropertyMap
[PROP_ViewBox
] <<= aRectangle
;
235 aPropertyMap
[ PROP_Type
] <<= OUString("ooxml-star5");
240 class ShapeClineInv
: public CustomShapeProvider
242 virtual PropertyMap
getProperties()
244 PropertyMap aPropertyMap
;
247 aPropertyMap
[PROP_AdjustmentValues
] <<= Sequence
< OUString
>(0);
250 static const char *aStrings
[] = {
254 aPropertyMap
[PROP_Equations
] <<= createStringSequence( SAL_N_ELEMENTS( aStrings
), aStrings
);
257 aPropertyMap
[PROP_Handles
] <<= Sequence
< OUString
>(0);
260 aPropertyMap
[PROP_MirroredX
] <<= Any ((sal_Bool
) sal_False
);
263 aPropertyMap
[PROP_MirroredY
] <<= Any ((sal_Bool
) sal_False
);
266 Sequence
< PropertyValue
> aPropSequence (2);
268 aPropSequence
[0].Name
= "Coordinates";
269 static const CustomShapeProvider::ParameterPairData aData
[] = {
271 EnhancedCustomShapeParameterType::NORMAL
,
272 EnhancedCustomShapeParameterType::EQUATION
,
276 EnhancedCustomShapeParameterType::EQUATION
,
277 EnhancedCustomShapeParameterType::NORMAL
,
281 aPropSequence
[0].Value
= makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData
), aData
));
284 aPropSequence
[1].Name
= "Segments";
285 static const sal_uInt16 nValues
[] = {
291 aPropSequence
[1].Value
= makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues
), nValues
));
293 aPropertyMap
[PROP_Path
] <<= aPropSequence
;
296 awt::Rectangle aRectangle
;
299 aRectangle
.Width
= 0;
300 aRectangle
.Height
= 0;
301 aPropertyMap
[PROP_ViewBox
] <<= aRectangle
;
303 aPropertyMap
[ PROP_Type
] <<= OUString("ooxml-lineInv");
308 class ShapeCstraightConnector1
: public CustomShapeProvider
310 virtual PropertyMap
getProperties()
312 PropertyMap aPropertyMap
;
315 aPropertyMap
[PROP_AdjustmentValues
] <<= Sequence
< OUString
>(0);
318 static const char *aStrings
[] = {
322 aPropertyMap
[PROP_Equations
] <<= createStringSequence( SAL_N_ELEMENTS( aStrings
), aStrings
);
325 aPropertyMap
[PROP_Handles
] <<= Sequence
< OUString
>(0);
328 aPropertyMap
[PROP_MirroredX
] <<= Any ((sal_Bool
) sal_False
);
331 aPropertyMap
[PROP_MirroredY
] <<= Any ((sal_Bool
) sal_False
);
334 Sequence
< PropertyValue
> aPropSequence (3);
336 aPropSequence
[0].Name
= "Coordinates";
337 static const CustomShapeProvider::ParameterPairData aData
[] = {
339 EnhancedCustomShapeParameterType::NORMAL
,
340 EnhancedCustomShapeParameterType::NORMAL
,
344 EnhancedCustomShapeParameterType::EQUATION
,
345 EnhancedCustomShapeParameterType::EQUATION
,
349 aPropSequence
[0].Value
= makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData
), aData
));
352 aPropSequence
[1].Name
= "Segments";
353 static const sal_uInt16 nValues
[] = {
360 aPropSequence
[1].Value
= makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues
), nValues
));
363 aPropSequence
[2].Name
= "TextFrames";
364 Sequence
< EnhancedCustomShapeTextFrame
> aTextFrameSeq (1);
366 EnhancedCustomShapeTextFrame aTextFrame
;
368 static const CustomShapeProvider::ParameterPairData aData
=
370 EnhancedCustomShapeParameterType::NORMAL
,
371 EnhancedCustomShapeParameterType::NORMAL
,
374 aTextFrame
.TopLeft
= createParameterPair(&aData
);
377 static const CustomShapeProvider::ParameterPairData aData
=
379 EnhancedCustomShapeParameterType::EQUATION
,
380 EnhancedCustomShapeParameterType::EQUATION
,
383 aTextFrame
.BottomRight
= createParameterPair(&aData
);
385 aTextFrameSeq
[0] = aTextFrame
;
387 aPropSequence
[2].Value
= makeAny (aTextFrameSeq
);
389 aPropertyMap
[PROP_Path
] <<= aPropSequence
;
392 awt::Rectangle aRectangle
;
395 aRectangle
.Width
= 0;
396 aRectangle
.Height
= 0;
397 aPropertyMap
[PROP_ViewBox
] <<= aRectangle
;
399 aPropertyMap
[ PROP_Type
] <<= OUString("ooxml-straightConnector1");
404 class ShapeCstripedRightArrow
: public CustomShapeProvider
406 virtual PropertyMap
getProperties()
408 PropertyMap aPropertyMap
;
411 Sequence
< EnhancedCustomShapeAdjustmentValue
> aAdjSequence (2);
413 Any
aAny ((sal_Int32
) 50000);
414 aAdjSequence
[0].Value
= aAny
;
415 aAdjSequence
[0].Name
= "adj1";
418 Any
aAny ((sal_Int32
) 50000);
419 aAdjSequence
[1].Value
= aAny
;
420 aAdjSequence
[1].Name
= "adj2";
422 aPropertyMap
[PROP_AdjustmentValues
] <<= aAdjSequence
;
425 static const char *aStrings
[] = {
426 "min(logwidth,logheight)",
427 "84375*logwidth/?0 ",
428 "if(0-$0 ,0,if(100000-$0 ,$0 ,100000))",
429 "if(0-$1 ,0,if(?1 -$1 ,$1 ,?1 ))",
433 "logheight*?2 /200000",
442 "min(logwidth,logheight)/32",
443 "min(logwidth,logheight)/16",
444 "min(logwidth,logheight)/8"
446 aPropertyMap
[PROP_Equations
] <<= createStringSequence( SAL_N_ELEMENTS( aStrings
), aStrings
);
449 Sequence
< Sequence
< PropertyValue
> > aPropSequenceSequence (2);
451 Sequence
< PropertyValue
> aPropSequence (4);
453 aPropSequence
[0].Name
= "Position";
454 static const CustomShapeProvider::ParameterPairData aData
=
456 EnhancedCustomShapeParameterType::NORMAL
,
457 EnhancedCustomShapeParameterType::EQUATION
,
460 aPropSequence
[0].Value
= makeAny (createParameterPair(&aData
));
463 aPropSequence
[1].Name
= "RangeYMaximum";
464 EnhancedCustomShapeParameter aParameter
;
465 Any
aAny ((sal_Int32
) 100000);
466 aParameter
.Value
= aAny
;
467 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
468 aPropSequence
[1].Value
= makeAny (aParameter
);
471 aPropSequence
[2].Name
= "RangeYMinimum";
472 EnhancedCustomShapeParameter aParameter
;
473 Any
aAny ((sal_Int32
) 0);
474 aParameter
.Value
= aAny
;
475 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
476 aPropSequence
[2].Value
= makeAny (aParameter
);
479 aPropSequence
[3].Name
= "RefY";
480 Any
aAny ((sal_Int32
) 0);
481 aPropSequence
[3].Value
= makeAny (aAny
);
483 aPropSequenceSequence
[0] = aPropSequence
;
486 Sequence
< PropertyValue
> aPropSequence (4);
488 aPropSequence
[0].Name
= "Position";
489 static const CustomShapeProvider::ParameterPairData aData
=
491 EnhancedCustomShapeParameterType::EQUATION
,
492 EnhancedCustomShapeParameterType::NORMAL
,
495 aPropSequence
[0].Value
= makeAny (createParameterPair(&aData
));
498 aPropSequence
[1].Name
= "RangeXMaximum";
499 EnhancedCustomShapeParameter aParameter
;
500 Any
aAny ((sal_Int32
) 1);
501 aParameter
.Value
= aAny
;
502 aParameter
.Type
= EnhancedCustomShapeParameterType::EQUATION
;
503 aPropSequence
[1].Value
= makeAny (aParameter
);
506 aPropSequence
[2].Name
= "RangeXMinimum";
507 EnhancedCustomShapeParameter aParameter
;
508 Any
aAny ((sal_Int32
) 0);
509 aParameter
.Value
= aAny
;
510 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
511 aPropSequence
[2].Value
= makeAny (aParameter
);
514 aPropSequence
[3].Name
= "RefX";
515 Any
aAny ((sal_Int32
) 1);
516 aPropSequence
[3].Value
= makeAny (aAny
);
518 aPropSequenceSequence
[1] = aPropSequence
;
520 aPropertyMap
[PROP_Handles
] <<= aPropSequenceSequence
;
523 aPropertyMap
[PROP_MirroredX
] <<= Any ((sal_Bool
) sal_False
);
526 aPropertyMap
[PROP_MirroredY
] <<= Any ((sal_Bool
) sal_False
);
529 Sequence
< PropertyValue
> aPropSequence (3);
531 aPropSequence
[0].Name
= "Coordinates";
532 static const CustomShapeProvider::ParameterPairData aData
[] = {
534 EnhancedCustomShapeParameterType::NORMAL
,
535 EnhancedCustomShapeParameterType::EQUATION
,
539 EnhancedCustomShapeParameterType::EQUATION
,
540 EnhancedCustomShapeParameterType::EQUATION
,
544 EnhancedCustomShapeParameterType::EQUATION
,
545 EnhancedCustomShapeParameterType::EQUATION
,
549 EnhancedCustomShapeParameterType::NORMAL
,
550 EnhancedCustomShapeParameterType::EQUATION
,
554 EnhancedCustomShapeParameterType::EQUATION
,
555 EnhancedCustomShapeParameterType::EQUATION
,
559 EnhancedCustomShapeParameterType::EQUATION
,
560 EnhancedCustomShapeParameterType::EQUATION
,
564 EnhancedCustomShapeParameterType::EQUATION
,
565 EnhancedCustomShapeParameterType::EQUATION
,
569 EnhancedCustomShapeParameterType::EQUATION
,
570 EnhancedCustomShapeParameterType::EQUATION
,
574 EnhancedCustomShapeParameterType::EQUATION
,
575 EnhancedCustomShapeParameterType::EQUATION
,
579 EnhancedCustomShapeParameterType::EQUATION
,
580 EnhancedCustomShapeParameterType::EQUATION
,
584 EnhancedCustomShapeParameterType::EQUATION
,
585 EnhancedCustomShapeParameterType::NORMAL
,
589 EnhancedCustomShapeParameterType::EQUATION
,
590 EnhancedCustomShapeParameterType::EQUATION
,
594 EnhancedCustomShapeParameterType::EQUATION
,
595 EnhancedCustomShapeParameterType::EQUATION
,
599 EnhancedCustomShapeParameterType::EQUATION
,
600 EnhancedCustomShapeParameterType::EQUATION
,
604 EnhancedCustomShapeParameterType::EQUATION
,
605 EnhancedCustomShapeParameterType::EQUATION
,
609 aPropSequence
[0].Value
= makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData
), aData
));
612 aPropSequence
[1].Name
= "Segments";
613 static const sal_uInt16 nValues
[] = {
626 aPropSequence
[1].Value
= makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues
), nValues
));
629 aPropSequence
[2].Name
= "TextFrames";
630 Sequence
< EnhancedCustomShapeTextFrame
> aTextFrameSeq (1);
632 EnhancedCustomShapeTextFrame aTextFrame
;
634 static const CustomShapeProvider::ParameterPairData aData
=
636 EnhancedCustomShapeParameterType::EQUATION
,
637 EnhancedCustomShapeParameterType::EQUATION
,
640 aTextFrame
.TopLeft
= createParameterPair(&aData
);
643 static const CustomShapeProvider::ParameterPairData aData
=
645 EnhancedCustomShapeParameterType::EQUATION
,
646 EnhancedCustomShapeParameterType::EQUATION
,
649 aTextFrame
.BottomRight
= createParameterPair(&aData
);
651 aTextFrameSeq
[0] = aTextFrame
;
653 aPropSequence
[2].Value
= makeAny (aTextFrameSeq
);
655 aPropertyMap
[PROP_Path
] <<= aPropSequence
;
658 awt::Rectangle aRectangle
;
661 aRectangle
.Width
= 0;
662 aRectangle
.Height
= 0;
663 aPropertyMap
[PROP_ViewBox
] <<= aRectangle
;
665 aPropertyMap
[ PROP_Type
] <<= OUString("ooxml-stripedRightArrow");
670 class ShapeCcallout3
: public CustomShapeProvider
672 virtual PropertyMap
getProperties()
674 PropertyMap aPropertyMap
;
677 Sequence
< EnhancedCustomShapeAdjustmentValue
> aAdjSequence (8);
679 Any
aAny ((sal_Int32
) 18750);
680 aAdjSequence
[0].Value
= aAny
;
681 aAdjSequence
[0].Name
= "adj1";
684 Any
aAny ((sal_Int32
) -8333);
685 aAdjSequence
[1].Value
= aAny
;
686 aAdjSequence
[1].Name
= "adj2";
689 Any
aAny ((sal_Int32
) 18750);
690 aAdjSequence
[2].Value
= aAny
;
691 aAdjSequence
[2].Name
= "adj3";
694 Any
aAny ((sal_Int32
) -16667);
695 aAdjSequence
[3].Value
= aAny
;
696 aAdjSequence
[3].Name
= "adj4";
699 Any
aAny ((sal_Int32
) 100000);
700 aAdjSequence
[4].Value
= aAny
;
701 aAdjSequence
[4].Name
= "adj5";
704 Any
aAny ((sal_Int32
) -16667);
705 aAdjSequence
[5].Value
= aAny
;
706 aAdjSequence
[5].Name
= "adj6";
709 Any
aAny ((sal_Int32
) 112963);
710 aAdjSequence
[6].Value
= aAny
;
711 aAdjSequence
[6].Name
= "adj7";
714 Any
aAny ((sal_Int32
) -8333);
715 aAdjSequence
[7].Value
= aAny
;
716 aAdjSequence
[7].Name
= "adj8";
718 aPropertyMap
[PROP_AdjustmentValues
] <<= aAdjSequence
;
721 static const char *aStrings
[] = {
722 "logheight*$0 /100000",
723 "logwidth*$1 /100000",
724 "logheight*$2 /100000",
725 "logwidth*$3 /100000",
726 "logheight*$4 /100000",
727 "logwidth*$5 /100000",
728 "logheight*$6 /100000",
729 "logwidth*$7 /100000",
735 aPropertyMap
[PROP_Equations
] <<= createStringSequence( SAL_N_ELEMENTS( aStrings
), aStrings
);
738 Sequence
< Sequence
< PropertyValue
> > aPropSequenceSequence (4);
740 Sequence
< PropertyValue
> aPropSequence (7);
742 aPropSequence
[0].Name
= "Position";
743 static const CustomShapeProvider::ParameterPairData aData
=
745 EnhancedCustomShapeParameterType::EQUATION
,
746 EnhancedCustomShapeParameterType::EQUATION
,
749 aPropSequence
[0].Value
= makeAny (createParameterPair(&aData
));
752 aPropSequence
[1].Name
= "RangeXMaximum";
753 EnhancedCustomShapeParameter aParameter
;
754 Any
aAny ((sal_Int32
) 2147483647);
755 aParameter
.Value
= aAny
;
756 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
757 aPropSequence
[1].Value
= makeAny (aParameter
);
760 aPropSequence
[2].Name
= "RangeXMinimum";
761 EnhancedCustomShapeParameter aParameter
;
762 Any
aAny ((sal_Int32
) -2147483647);
763 aParameter
.Value
= aAny
;
764 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
765 aPropSequence
[2].Value
= makeAny (aParameter
);
768 aPropSequence
[3].Name
= "RangeYMaximum";
769 EnhancedCustomShapeParameter aParameter
;
770 Any
aAny ((sal_Int32
) 2147483647);
771 aParameter
.Value
= aAny
;
772 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
773 aPropSequence
[3].Value
= makeAny (aParameter
);
776 aPropSequence
[4].Name
= "RangeYMinimum";
777 EnhancedCustomShapeParameter aParameter
;
778 Any
aAny ((sal_Int32
) -2147483647);
779 aParameter
.Value
= aAny
;
780 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
781 aPropSequence
[4].Value
= makeAny (aParameter
);
784 aPropSequence
[5].Name
= "RefX";
785 Any
aAny ((sal_Int32
) 1);
786 aPropSequence
[5].Value
= makeAny (aAny
);
789 aPropSequence
[6].Name
= "RefY";
790 Any
aAny ((sal_Int32
) 0);
791 aPropSequence
[6].Value
= makeAny (aAny
);
793 aPropSequenceSequence
[0] = aPropSequence
;
796 Sequence
< PropertyValue
> aPropSequence (7);
798 aPropSequence
[0].Name
= "Position";
799 static const CustomShapeProvider::ParameterPairData aData
=
801 EnhancedCustomShapeParameterType::EQUATION
,
802 EnhancedCustomShapeParameterType::EQUATION
,
805 aPropSequence
[0].Value
= makeAny (createParameterPair(&aData
));
808 aPropSequence
[1].Name
= "RangeXMaximum";
809 EnhancedCustomShapeParameter aParameter
;
810 Any
aAny ((sal_Int32
) 2147483647);
811 aParameter
.Value
= aAny
;
812 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
813 aPropSequence
[1].Value
= makeAny (aParameter
);
816 aPropSequence
[2].Name
= "RangeXMinimum";
817 EnhancedCustomShapeParameter aParameter
;
818 Any
aAny ((sal_Int32
) -2147483647);
819 aParameter
.Value
= aAny
;
820 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
821 aPropSequence
[2].Value
= makeAny (aParameter
);
824 aPropSequence
[3].Name
= "RangeYMaximum";
825 EnhancedCustomShapeParameter aParameter
;
826 Any
aAny ((sal_Int32
) 2147483647);
827 aParameter
.Value
= aAny
;
828 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
829 aPropSequence
[3].Value
= makeAny (aParameter
);
832 aPropSequence
[4].Name
= "RangeYMinimum";
833 EnhancedCustomShapeParameter aParameter
;
834 Any
aAny ((sal_Int32
) -2147483647);
835 aParameter
.Value
= aAny
;
836 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
837 aPropSequence
[4].Value
= makeAny (aParameter
);
840 aPropSequence
[5].Name
= "RefX";
841 Any
aAny ((sal_Int32
) 3);
842 aPropSequence
[5].Value
= makeAny (aAny
);
845 aPropSequence
[6].Name
= "RefY";
846 Any
aAny ((sal_Int32
) 2);
847 aPropSequence
[6].Value
= makeAny (aAny
);
849 aPropSequenceSequence
[1] = aPropSequence
;
852 Sequence
< PropertyValue
> aPropSequence (7);
854 aPropSequence
[0].Name
= "Position";
855 static const CustomShapeProvider::ParameterPairData aData
=
857 EnhancedCustomShapeParameterType::EQUATION
,
858 EnhancedCustomShapeParameterType::EQUATION
,
861 aPropSequence
[0].Value
= makeAny (createParameterPair(&aData
));
864 aPropSequence
[1].Name
= "RangeXMaximum";
865 EnhancedCustomShapeParameter aParameter
;
866 Any
aAny ((sal_Int32
) 2147483647);
867 aParameter
.Value
= aAny
;
868 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
869 aPropSequence
[1].Value
= makeAny (aParameter
);
872 aPropSequence
[2].Name
= "RangeXMinimum";
873 EnhancedCustomShapeParameter aParameter
;
874 Any
aAny ((sal_Int32
) -2147483647);
875 aParameter
.Value
= aAny
;
876 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
877 aPropSequence
[2].Value
= makeAny (aParameter
);
880 aPropSequence
[3].Name
= "RangeYMaximum";
881 EnhancedCustomShapeParameter aParameter
;
882 Any
aAny ((sal_Int32
) 2147483647);
883 aParameter
.Value
= aAny
;
884 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
885 aPropSequence
[3].Value
= makeAny (aParameter
);
888 aPropSequence
[4].Name
= "RangeYMinimum";
889 EnhancedCustomShapeParameter aParameter
;
890 Any
aAny ((sal_Int32
) -2147483647);
891 aParameter
.Value
= aAny
;
892 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
893 aPropSequence
[4].Value
= makeAny (aParameter
);
896 aPropSequence
[5].Name
= "RefX";
897 Any
aAny ((sal_Int32
) 5);
898 aPropSequence
[5].Value
= makeAny (aAny
);
901 aPropSequence
[6].Name
= "RefY";
902 Any
aAny ((sal_Int32
) 4);
903 aPropSequence
[6].Value
= makeAny (aAny
);
905 aPropSequenceSequence
[2] = aPropSequence
;
908 Sequence
< PropertyValue
> aPropSequence (7);
910 aPropSequence
[0].Name
= "Position";
911 static const CustomShapeProvider::ParameterPairData aData
=
913 EnhancedCustomShapeParameterType::EQUATION
,
914 EnhancedCustomShapeParameterType::EQUATION
,
917 aPropSequence
[0].Value
= makeAny (createParameterPair(&aData
));
920 aPropSequence
[1].Name
= "RangeXMaximum";
921 EnhancedCustomShapeParameter aParameter
;
922 Any
aAny ((sal_Int32
) 2147483647);
923 aParameter
.Value
= aAny
;
924 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
925 aPropSequence
[1].Value
= makeAny (aParameter
);
928 aPropSequence
[2].Name
= "RangeXMinimum";
929 EnhancedCustomShapeParameter aParameter
;
930 Any
aAny ((sal_Int32
) -2147483647);
931 aParameter
.Value
= aAny
;
932 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
933 aPropSequence
[2].Value
= makeAny (aParameter
);
936 aPropSequence
[3].Name
= "RangeYMaximum";
937 EnhancedCustomShapeParameter aParameter
;
938 Any
aAny ((sal_Int32
) 2147483647);
939 aParameter
.Value
= aAny
;
940 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
941 aPropSequence
[3].Value
= makeAny (aParameter
);
944 aPropSequence
[4].Name
= "RangeYMinimum";
945 EnhancedCustomShapeParameter aParameter
;
946 Any
aAny ((sal_Int32
) -2147483647);
947 aParameter
.Value
= aAny
;
948 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
949 aPropSequence
[4].Value
= makeAny (aParameter
);
952 aPropSequence
[5].Name
= "RefX";
953 Any
aAny ((sal_Int32
) 7);
954 aPropSequence
[5].Value
= makeAny (aAny
);
957 aPropSequence
[6].Name
= "RefY";
958 Any
aAny ((sal_Int32
) 6);
959 aPropSequence
[6].Value
= makeAny (aAny
);
961 aPropSequenceSequence
[3] = aPropSequence
;
963 aPropertyMap
[PROP_Handles
] <<= aPropSequenceSequence
;
966 aPropertyMap
[PROP_MirroredX
] <<= Any ((sal_Bool
) sal_False
);
969 aPropertyMap
[PROP_MirroredY
] <<= Any ((sal_Bool
) sal_False
);
972 Sequence
< PropertyValue
> aPropSequence (3);
974 aPropSequence
[0].Name
= "Coordinates";
975 static const CustomShapeProvider::ParameterPairData aData
[] = {
977 EnhancedCustomShapeParameterType::NORMAL
,
978 EnhancedCustomShapeParameterType::NORMAL
,
982 EnhancedCustomShapeParameterType::EQUATION
,
983 EnhancedCustomShapeParameterType::NORMAL
,
987 EnhancedCustomShapeParameterType::EQUATION
,
988 EnhancedCustomShapeParameterType::EQUATION
,
992 EnhancedCustomShapeParameterType::NORMAL
,
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 aPropSequence
[0].Value
= makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData
), aData
));
1020 aPropSequence
[1].Name
= "Segments";
1021 static const sal_uInt16 nValues
[] = {
1033 aPropSequence
[1].Value
= makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues
), nValues
));
1036 aPropSequence
[2].Name
= "TextFrames";
1037 Sequence
< EnhancedCustomShapeTextFrame
> aTextFrameSeq (1);
1039 EnhancedCustomShapeTextFrame aTextFrame
;
1041 static const CustomShapeProvider::ParameterPairData aData
=
1043 EnhancedCustomShapeParameterType::NORMAL
,
1044 EnhancedCustomShapeParameterType::NORMAL
,
1047 aTextFrame
.TopLeft
= createParameterPair(&aData
);
1050 static const CustomShapeProvider::ParameterPairData aData
=
1052 EnhancedCustomShapeParameterType::EQUATION
,
1053 EnhancedCustomShapeParameterType::EQUATION
,
1056 aTextFrame
.BottomRight
= createParameterPair(&aData
);
1058 aTextFrameSeq
[0] = aTextFrame
;
1060 aPropSequence
[2].Value
= makeAny (aTextFrameSeq
);
1062 aPropertyMap
[PROP_Path
] <<= aPropSequence
;
1065 awt::Rectangle aRectangle
;
1068 aRectangle
.Width
= 0;
1069 aRectangle
.Height
= 0;
1070 aPropertyMap
[PROP_ViewBox
] <<= aRectangle
;
1072 aPropertyMap
[ PROP_Type
] <<= OUString("ooxml-callout3");
1074 return aPropertyMap
;
1077 class ShapeCbentUpArrow
: public CustomShapeProvider
1079 virtual PropertyMap
getProperties()
1081 PropertyMap aPropertyMap
;
1084 Sequence
< EnhancedCustomShapeAdjustmentValue
> aAdjSequence (3);
1086 Any
aAny ((sal_Int32
) 25000);
1087 aAdjSequence
[0].Value
= aAny
;
1088 aAdjSequence
[0].Name
= "adj1";
1091 Any
aAny ((sal_Int32
) 25000);
1092 aAdjSequence
[1].Value
= aAny
;
1093 aAdjSequence
[1].Name
= "adj2";
1096 Any
aAny ((sal_Int32
) 25000);
1097 aAdjSequence
[2].Value
= aAny
;
1098 aAdjSequence
[2].Name
= "adj3";
1100 aPropertyMap
[PROP_AdjustmentValues
] <<= aAdjSequence
;
1103 static const char *aStrings
[] = {
1104 "if(0-$0 ,0,if(50000-$0 ,$0 ,50000))",
1105 "if(0-$1 ,0,if(50000-$1 ,$1 ,50000))",
1106 "if(0-$2 ,0,if(50000-$2 ,$2 ,50000))",
1107 "min(logwidth,logheight)",
1119 "(?13 +logheight)/2",
1120 "(?4 +logheight)/2",
1124 aPropertyMap
[PROP_Equations
] <<= createStringSequence( SAL_N_ELEMENTS( aStrings
), aStrings
);
1127 Sequence
< Sequence
< PropertyValue
> > aPropSequenceSequence (3);
1129 Sequence
< PropertyValue
> aPropSequence (4);
1131 aPropSequence
[0].Name
= "Position";
1132 static const CustomShapeProvider::ParameterPairData aData
=
1134 EnhancedCustomShapeParameterType::NORMAL
,
1135 EnhancedCustomShapeParameterType::EQUATION
,
1138 aPropSequence
[0].Value
= makeAny (createParameterPair(&aData
));
1141 aPropSequence
[1].Name
= "RangeYMaximum";
1142 EnhancedCustomShapeParameter aParameter
;
1143 Any
aAny ((sal_Int32
) 50000);
1144 aParameter
.Value
= aAny
;
1145 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
1146 aPropSequence
[1].Value
= makeAny (aParameter
);
1149 aPropSequence
[2].Name
= "RangeYMinimum";
1150 EnhancedCustomShapeParameter aParameter
;
1151 Any
aAny ((sal_Int32
) 0);
1152 aParameter
.Value
= aAny
;
1153 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
1154 aPropSequence
[2].Value
= makeAny (aParameter
);
1157 aPropSequence
[3].Name
= "RefY";
1158 Any
aAny ((sal_Int32
) 0);
1159 aPropSequence
[3].Value
= makeAny (aAny
);
1161 aPropSequenceSequence
[0] = aPropSequence
;
1164 Sequence
< PropertyValue
> aPropSequence (4);
1166 aPropSequence
[0].Name
= "Position";
1167 static const CustomShapeProvider::ParameterPairData aData
=
1169 EnhancedCustomShapeParameterType::EQUATION
,
1170 EnhancedCustomShapeParameterType::NORMAL
,
1173 aPropSequence
[0].Value
= makeAny (createParameterPair(&aData
));
1176 aPropSequence
[1].Name
= "RangeXMaximum";
1177 EnhancedCustomShapeParameter aParameter
;
1178 Any
aAny ((sal_Int32
) 50000);
1179 aParameter
.Value
= aAny
;
1180 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
1181 aPropSequence
[1].Value
= makeAny (aParameter
);
1184 aPropSequence
[2].Name
= "RangeXMinimum";
1185 EnhancedCustomShapeParameter aParameter
;
1186 Any
aAny ((sal_Int32
) 0);
1187 aParameter
.Value
= aAny
;
1188 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
1189 aPropSequence
[2].Value
= makeAny (aParameter
);
1192 aPropSequence
[3].Name
= "RefX";
1193 Any
aAny ((sal_Int32
) 1);
1194 aPropSequence
[3].Value
= makeAny (aAny
);
1196 aPropSequenceSequence
[1] = aPropSequence
;
1199 Sequence
< PropertyValue
> aPropSequence (4);
1201 aPropSequence
[0].Name
= "Position";
1202 static const CustomShapeProvider::ParameterPairData aData
=
1204 EnhancedCustomShapeParameterType::EQUATION
,
1205 EnhancedCustomShapeParameterType::EQUATION
,
1208 aPropSequence
[0].Value
= makeAny (createParameterPair(&aData
));
1211 aPropSequence
[1].Name
= "RangeYMaximum";
1212 EnhancedCustomShapeParameter aParameter
;
1213 Any
aAny ((sal_Int32
) 50000);
1214 aParameter
.Value
= aAny
;
1215 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
1216 aPropSequence
[1].Value
= makeAny (aParameter
);
1219 aPropSequence
[2].Name
= "RangeYMinimum";
1220 EnhancedCustomShapeParameter aParameter
;
1221 Any
aAny ((sal_Int32
) 0);
1222 aParameter
.Value
= aAny
;
1223 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
1224 aPropSequence
[2].Value
= makeAny (aParameter
);
1227 aPropSequence
[3].Name
= "RefY";
1228 Any
aAny ((sal_Int32
) 2);
1229 aPropSequence
[3].Value
= makeAny (aAny
);
1231 aPropSequenceSequence
[2] = aPropSequence
;
1233 aPropertyMap
[PROP_Handles
] <<= aPropSequenceSequence
;
1236 aPropertyMap
[PROP_MirroredX
] <<= Any ((sal_Bool
) sal_False
);
1239 aPropertyMap
[PROP_MirroredY
] <<= Any ((sal_Bool
) sal_False
);
1242 Sequence
< PropertyValue
> aPropSequence (3);
1244 aPropSequence
[0].Name
= "Coordinates";
1245 static const CustomShapeProvider::ParameterPairData aData
[] = {
1247 EnhancedCustomShapeParameterType::NORMAL
,
1248 EnhancedCustomShapeParameterType::EQUATION
,
1252 EnhancedCustomShapeParameterType::EQUATION
,
1253 EnhancedCustomShapeParameterType::EQUATION
,
1257 EnhancedCustomShapeParameterType::EQUATION
,
1258 EnhancedCustomShapeParameterType::EQUATION
,
1262 EnhancedCustomShapeParameterType::EQUATION
,
1263 EnhancedCustomShapeParameterType::EQUATION
,
1267 EnhancedCustomShapeParameterType::EQUATION
,
1268 EnhancedCustomShapeParameterType::NORMAL
,
1272 EnhancedCustomShapeParameterType::EQUATION
,
1273 EnhancedCustomShapeParameterType::EQUATION
,
1277 EnhancedCustomShapeParameterType::EQUATION
,
1278 EnhancedCustomShapeParameterType::EQUATION
,
1282 EnhancedCustomShapeParameterType::EQUATION
,
1283 EnhancedCustomShapeParameterType::EQUATION
,
1287 EnhancedCustomShapeParameterType::NORMAL
,
1288 EnhancedCustomShapeParameterType::EQUATION
,
1292 aPropSequence
[0].Value
= makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData
), aData
));
1295 aPropSequence
[1].Name
= "Segments";
1296 static const sal_uInt16 nValues
[] = {
1303 aPropSequence
[1].Value
= makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues
), nValues
));
1306 aPropSequence
[2].Name
= "TextFrames";
1307 Sequence
< EnhancedCustomShapeTextFrame
> aTextFrameSeq (1);
1309 EnhancedCustomShapeTextFrame aTextFrame
;
1311 static const CustomShapeProvider::ParameterPairData aData
=
1313 EnhancedCustomShapeParameterType::NORMAL
,
1314 EnhancedCustomShapeParameterType::EQUATION
,
1317 aTextFrame
.TopLeft
= createParameterPair(&aData
);
1320 static const CustomShapeProvider::ParameterPairData aData
=
1322 EnhancedCustomShapeParameterType::EQUATION
,
1323 EnhancedCustomShapeParameterType::EQUATION
,
1326 aTextFrame
.BottomRight
= createParameterPair(&aData
);
1328 aTextFrameSeq
[0] = aTextFrame
;
1330 aPropSequence
[2].Value
= makeAny (aTextFrameSeq
);
1332 aPropertyMap
[PROP_Path
] <<= aPropSequence
;
1335 awt::Rectangle aRectangle
;
1338 aRectangle
.Width
= 0;
1339 aRectangle
.Height
= 0;
1340 aPropertyMap
[PROP_ViewBox
] <<= aRectangle
;
1342 aPropertyMap
[ PROP_Type
] <<= OUString("ooxml-bentUpArrow");
1344 return aPropertyMap
;
1347 class ShapeCnoSmoking
: public CustomShapeProvider
1349 virtual PropertyMap
getProperties()
1351 PropertyMap aPropertyMap
;
1354 Sequence
< EnhancedCustomShapeAdjustmentValue
> aAdjSequence (1);
1356 Any
aAny ((sal_Int32
) 18750);
1357 aAdjSequence
[0].Value
= aAny
;
1358 aAdjSequence
[0].Name
= "adj";
1360 aPropertyMap
[PROP_AdjustmentValues
] <<= aAdjSequence
;
1363 static const char *aStrings
[] = {
1364 "if(0-$0 ,0,if(50000-$0 ,$0 ,50000))",
1365 "min(logwidth,logheight)",
1371 "(10800000*atan2(logheight,logwidth))/pi",
1372 "?6 *cos(pi*(?7 )/10800000)",
1373 "?4 *sin(pi*(?7 )/10800000)",
1374 "sqrt(?8 *?8 +?9 *?9 +0*0)",
1377 "(10800000*atan2(?12 ,?11 ))/pi",
1380 "(10800000*atan2(logheight,logwidth))/pi",
1383 "?6 *cos(pi*(?17 )/10800000)",
1384 "?4 *sin(pi*(?17 )/10800000)",
1385 "sqrt(?19 *?19 +?20 *?20 +0*0)",
1387 "?22 *cos(pi*(?17 )/10800000)",
1388 "?22 *sin(pi*(?17 )/10800000)",
1395 "?3 *cos(pi*(2700000)/10800000)",
1396 "?5 *sin(pi*(2700000)/10800000)",
1403 "(10800000)/60000.0",
1404 "(5400000)/60000.0",
1405 "(16200000)/60000.0",
1406 "(5400000)/60000.0",
1408 "(5400000)/60000.0",
1409 "(5400000)/60000.0",
1410 "(5400000)/60000.0",
1416 aPropertyMap
[PROP_Equations
] <<= createStringSequence( SAL_N_ELEMENTS( aStrings
), aStrings
);
1419 Sequence
< Sequence
< PropertyValue
> > aPropSequenceSequence (1);
1421 Sequence
< PropertyValue
> aPropSequence (3);
1423 aPropSequence
[0].Name
= "Position";
1424 static const CustomShapeProvider::ParameterPairData aData
=
1426 EnhancedCustomShapeParameterType::EQUATION
,
1427 EnhancedCustomShapeParameterType::EQUATION
,
1430 aPropSequence
[0].Value
= makeAny (createParameterPair(&aData
));
1433 aPropSequence
[1].Name
= "RadiusRangeMaximum";
1434 EnhancedCustomShapeParameter aParameter
;
1435 Any
aAny ((sal_Int32
) 50000);
1436 aParameter
.Value
= aAny
;
1437 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
1438 aPropSequence
[1].Value
= makeAny (aParameter
);
1441 aPropSequence
[2].Name
= "RadiusRangeMinimum";
1442 EnhancedCustomShapeParameter aParameter
;
1443 Any
aAny ((sal_Int32
) 0);
1444 aParameter
.Value
= aAny
;
1445 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
1446 aPropSequence
[2].Value
= makeAny (aParameter
);
1448 aPropSequenceSequence
[0] = aPropSequence
;
1450 aPropertyMap
[PROP_Handles
] <<= aPropSequenceSequence
;
1453 aPropertyMap
[PROP_MirroredX
] <<= Any ((sal_Bool
) sal_False
);
1456 aPropertyMap
[PROP_MirroredY
] <<= Any ((sal_Bool
) sal_False
);
1459 Sequence
< PropertyValue
> aPropSequence (3);
1461 aPropSequence
[0].Name
= "Coordinates";
1462 static const CustomShapeProvider::ParameterPairData aData
[] = {
1464 EnhancedCustomShapeParameterType::NORMAL
,
1465 EnhancedCustomShapeParameterType::EQUATION
,
1469 EnhancedCustomShapeParameterType::EQUATION
,
1470 EnhancedCustomShapeParameterType::EQUATION
,
1474 EnhancedCustomShapeParameterType::EQUATION
,
1475 EnhancedCustomShapeParameterType::EQUATION
,
1479 EnhancedCustomShapeParameterType::EQUATION
,
1480 EnhancedCustomShapeParameterType::EQUATION
,
1484 EnhancedCustomShapeParameterType::EQUATION
,
1485 EnhancedCustomShapeParameterType::EQUATION
,
1489 EnhancedCustomShapeParameterType::EQUATION
,
1490 EnhancedCustomShapeParameterType::EQUATION
,
1494 EnhancedCustomShapeParameterType::EQUATION
,
1495 EnhancedCustomShapeParameterType::EQUATION
,
1499 EnhancedCustomShapeParameterType::EQUATION
,
1500 EnhancedCustomShapeParameterType::EQUATION
,
1504 EnhancedCustomShapeParameterType::EQUATION
,
1505 EnhancedCustomShapeParameterType::EQUATION
,
1509 EnhancedCustomShapeParameterType::EQUATION
,
1510 EnhancedCustomShapeParameterType::EQUATION
,
1514 EnhancedCustomShapeParameterType::EQUATION
,
1515 EnhancedCustomShapeParameterType::EQUATION
,
1519 EnhancedCustomShapeParameterType::EQUATION
,
1520 EnhancedCustomShapeParameterType::EQUATION
,
1524 EnhancedCustomShapeParameterType::EQUATION
,
1525 EnhancedCustomShapeParameterType::EQUATION
,
1529 EnhancedCustomShapeParameterType::EQUATION
,
1530 EnhancedCustomShapeParameterType::EQUATION
,
1534 EnhancedCustomShapeParameterType::EQUATION
,
1535 EnhancedCustomShapeParameterType::EQUATION
,
1539 aPropSequence
[0].Value
= makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData
), aData
));
1542 aPropSequence
[1].Name
= "Segments";
1543 static const sal_uInt16 nValues
[] = {
1556 aPropSequence
[1].Value
= makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues
), nValues
));
1559 aPropSequence
[2].Name
= "TextFrames";
1560 Sequence
< EnhancedCustomShapeTextFrame
> aTextFrameSeq (1);
1562 EnhancedCustomShapeTextFrame aTextFrame
;
1564 static const CustomShapeProvider::ParameterPairData aData
=
1566 EnhancedCustomShapeParameterType::EQUATION
,
1567 EnhancedCustomShapeParameterType::EQUATION
,
1570 aTextFrame
.TopLeft
= createParameterPair(&aData
);
1573 static const CustomShapeProvider::ParameterPairData aData
=
1575 EnhancedCustomShapeParameterType::EQUATION
,
1576 EnhancedCustomShapeParameterType::EQUATION
,
1579 aTextFrame
.BottomRight
= createParameterPair(&aData
);
1581 aTextFrameSeq
[0] = aTextFrame
;
1583 aPropSequence
[2].Value
= makeAny (aTextFrameSeq
);
1585 aPropertyMap
[PROP_Path
] <<= aPropSequence
;
1588 awt::Rectangle aRectangle
;
1591 aRectangle
.Width
= 0;
1592 aRectangle
.Height
= 0;
1593 aPropertyMap
[PROP_ViewBox
] <<= aRectangle
;
1595 aPropertyMap
[ PROP_Type
] <<= OUString("ooxml-noSmoking");
1597 return aPropertyMap
;
1600 class ShapeCtrapezoid
: public CustomShapeProvider
1602 virtual PropertyMap
getProperties()
1604 PropertyMap aPropertyMap
;
1607 Sequence
< EnhancedCustomShapeAdjustmentValue
> aAdjSequence (1);
1609 Any
aAny ((sal_Int32
) 25000);
1610 aAdjSequence
[0].Value
= aAny
;
1611 aAdjSequence
[0].Name
= "adj";
1613 aPropertyMap
[PROP_AdjustmentValues
] <<= aAdjSequence
;
1616 static const char *aStrings
[] = {
1617 "min(logwidth,logheight)",
1618 "50000*logwidth/?0 ",
1619 "if(0-$0 ,0,if(?1 -$0 ,$0 ,?1 ))",
1634 aPropertyMap
[PROP_Equations
] <<= createStringSequence( SAL_N_ELEMENTS( aStrings
), aStrings
);
1637 Sequence
< Sequence
< PropertyValue
> > aPropSequenceSequence (1);
1639 Sequence
< PropertyValue
> aPropSequence (4);
1641 aPropSequence
[0].Name
= "Position";
1642 static const CustomShapeProvider::ParameterPairData aData
=
1644 EnhancedCustomShapeParameterType::EQUATION
,
1645 EnhancedCustomShapeParameterType::NORMAL
,
1648 aPropSequence
[0].Value
= makeAny (createParameterPair(&aData
));
1651 aPropSequence
[1].Name
= "RangeXMaximum";
1652 EnhancedCustomShapeParameter aParameter
;
1653 Any
aAny ((sal_Int32
) 1);
1654 aParameter
.Value
= aAny
;
1655 aParameter
.Type
= EnhancedCustomShapeParameterType::EQUATION
;
1656 aPropSequence
[1].Value
= makeAny (aParameter
);
1659 aPropSequence
[2].Name
= "RangeXMinimum";
1660 EnhancedCustomShapeParameter aParameter
;
1661 Any
aAny ((sal_Int32
) 0);
1662 aParameter
.Value
= aAny
;
1663 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
1664 aPropSequence
[2].Value
= makeAny (aParameter
);
1667 aPropSequence
[3].Name
= "RefX";
1668 Any
aAny ((sal_Int32
) 0);
1669 aPropSequence
[3].Value
= makeAny (aAny
);
1671 aPropSequenceSequence
[0] = aPropSequence
;
1673 aPropertyMap
[PROP_Handles
] <<= aPropSequenceSequence
;
1676 aPropertyMap
[PROP_MirroredX
] <<= Any ((sal_Bool
) sal_False
);
1679 aPropertyMap
[PROP_MirroredY
] <<= Any ((sal_Bool
) sal_False
);
1682 Sequence
< PropertyValue
> aPropSequence (3);
1684 aPropSequence
[0].Name
= "Coordinates";
1685 static const CustomShapeProvider::ParameterPairData aData
[] = {
1687 EnhancedCustomShapeParameterType::NORMAL
,
1688 EnhancedCustomShapeParameterType::EQUATION
,
1692 EnhancedCustomShapeParameterType::EQUATION
,
1693 EnhancedCustomShapeParameterType::NORMAL
,
1697 EnhancedCustomShapeParameterType::EQUATION
,
1698 EnhancedCustomShapeParameterType::NORMAL
,
1702 EnhancedCustomShapeParameterType::EQUATION
,
1703 EnhancedCustomShapeParameterType::EQUATION
,
1707 aPropSequence
[0].Value
= makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData
), aData
));
1710 aPropSequence
[1].Name
= "Segments";
1711 static const sal_uInt16 nValues
[] = {
1718 aPropSequence
[1].Value
= makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues
), nValues
));
1721 aPropSequence
[2].Name
= "TextFrames";
1722 Sequence
< EnhancedCustomShapeTextFrame
> aTextFrameSeq (1);
1724 EnhancedCustomShapeTextFrame aTextFrame
;
1726 static const CustomShapeProvider::ParameterPairData aData
=
1728 EnhancedCustomShapeParameterType::EQUATION
,
1729 EnhancedCustomShapeParameterType::EQUATION
,
1732 aTextFrame
.TopLeft
= createParameterPair(&aData
);
1735 static const CustomShapeProvider::ParameterPairData aData
=
1737 EnhancedCustomShapeParameterType::EQUATION
,
1738 EnhancedCustomShapeParameterType::EQUATION
,
1741 aTextFrame
.BottomRight
= createParameterPair(&aData
);
1743 aTextFrameSeq
[0] = aTextFrame
;
1745 aPropSequence
[2].Value
= makeAny (aTextFrameSeq
);
1747 aPropertyMap
[PROP_Path
] <<= aPropSequence
;
1750 awt::Rectangle aRectangle
;
1753 aRectangle
.Width
= 0;
1754 aRectangle
.Height
= 0;
1755 aPropertyMap
[PROP_ViewBox
] <<= aRectangle
;
1757 aPropertyMap
[ PROP_Type
] <<= OUString("ooxml-trapezoid");
1759 return aPropertyMap
;
1762 class ShapeCcloudCallout
: public CustomShapeProvider
1764 virtual PropertyMap
getProperties()
1766 PropertyMap aPropertyMap
;
1769 Sequence
< EnhancedCustomShapeAdjustmentValue
> aAdjSequence (2);
1771 Any
aAny ((sal_Int32
) -20833);
1772 aAdjSequence
[0].Value
= aAny
;
1773 aAdjSequence
[0].Name
= "adj1";
1776 Any
aAny ((sal_Int32
) 62500);
1777 aAdjSequence
[1].Value
= aAny
;
1778 aAdjSequence
[1].Name
= "adj2";
1780 aPropertyMap
[PROP_AdjustmentValues
] <<= aAdjSequence
;
1783 static const char *aStrings
[] = {
1784 "logwidth*$0 /100000",
1785 "logheight*$1 /100000",
1791 "?6 *(cos(atan2(?1 ,?0 )))",
1793 "?8 *(sin(atan2(?1 ,?0 )))",
1794 "?8 *(cos(atan2(?9 ,?7 )))",
1795 "?6 *(sin(atan2(?9 ,?7 )))",
1800 "sqrt(?14 *?14 +?15 *?15 +0*0)",
1801 "min(logwidth,logheight)",
1823 "logwidth*2977/21600",
1824 "logheight*3262/21600",
1825 "logwidth*17087/21600",
1826 "logheight*17337/21600",
1827 "logwidth*67/21600",
1828 "logheight*21577/21600",
1829 "logwidth*21582/21600",
1830 "logheight*1235/21600",
1831 "(10800000*atan2(?1 ,?0 ))/pi",
1832 "(-11429249)/60000.0",
1833 "(7426832)/60000.0",
1834 "(-8646143)/60000.0",
1835 "(5396714)/60000.0",
1836 "(-8748475)/60000.0",
1837 "(5983381)/60000.0",
1838 "(-7859164)/60000.0",
1839 "(7034504)/60000.0",
1840 "(-4722533)/60000.0",
1841 "(6541615)/60000.0",
1842 "(-2776035)/60000.0",
1843 "(7816140)/60000.0",
1845 "(6842000)/60000.0",
1846 "(1347096)/60000.0",
1847 "(6910353)/60000.0",
1848 "(3974558)/60000.0",
1849 "(4542661)/60000.0",
1850 "(-16496525)/60000.0",
1851 "(8804134)/60000.0",
1852 "(-14809710)/60000.0",
1853 "(9151131)/60000.0",
1855 "(21600000)/60000.0",
1857 "(21600000)/60000.0",
1859 "(21600000)/60000.0",
1860 "(5204520)/60000.0",
1861 "(1585770)/60000.0",
1862 "(4416628)/60000.0",
1864 "(8257449)/60000.0",
1868 "(-4217541)/60000.0",
1869 "(4255042)/60000.0",
1870 "(1819082)/60000.0",
1871 "(1665090)/60000.0",
1872 "(-824660)/60000.0",
1874 "(-8950887)/60000.0",
1875 "(1091722)/60000.0",
1876 "(-9809656)/60000.0",
1877 "(1061181)/60000.0",
1878 "(-4002417)/60000.0",
1880 "(9459261)/60000.0",
1883 aPropertyMap
[PROP_Equations
] <<= createStringSequence( SAL_N_ELEMENTS( aStrings
), aStrings
);
1886 Sequence
< Sequence
< PropertyValue
> > aPropSequenceSequence (1);
1888 Sequence
< PropertyValue
> aPropSequence (7);
1890 aPropSequence
[0].Name
= "Position";
1891 static const CustomShapeProvider::ParameterPairData aData
=
1893 EnhancedCustomShapeParameterType::EQUATION
,
1894 EnhancedCustomShapeParameterType::EQUATION
,
1897 aPropSequence
[0].Value
= makeAny (createParameterPair(&aData
));
1900 aPropSequence
[1].Name
= "RangeXMaximum";
1901 EnhancedCustomShapeParameter aParameter
;
1902 Any
aAny ((sal_Int32
) 2147483647);
1903 aParameter
.Value
= aAny
;
1904 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
1905 aPropSequence
[1].Value
= makeAny (aParameter
);
1908 aPropSequence
[2].Name
= "RangeXMinimum";
1909 EnhancedCustomShapeParameter aParameter
;
1910 Any
aAny ((sal_Int32
) -2147483647);
1911 aParameter
.Value
= aAny
;
1912 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
1913 aPropSequence
[2].Value
= makeAny (aParameter
);
1916 aPropSequence
[3].Name
= "RangeYMaximum";
1917 EnhancedCustomShapeParameter aParameter
;
1918 Any
aAny ((sal_Int32
) 2147483647);
1919 aParameter
.Value
= aAny
;
1920 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
1921 aPropSequence
[3].Value
= makeAny (aParameter
);
1924 aPropSequence
[4].Name
= "RangeYMinimum";
1925 EnhancedCustomShapeParameter aParameter
;
1926 Any
aAny ((sal_Int32
) -2147483647);
1927 aParameter
.Value
= aAny
;
1928 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
1929 aPropSequence
[4].Value
= makeAny (aParameter
);
1932 aPropSequence
[5].Name
= "RefX";
1933 Any
aAny ((sal_Int32
) 0);
1934 aPropSequence
[5].Value
= makeAny (aAny
);
1937 aPropSequence
[6].Name
= "RefY";
1938 Any
aAny ((sal_Int32
) 1);
1939 aPropSequence
[6].Value
= makeAny (aAny
);
1941 aPropSequenceSequence
[0] = aPropSequence
;
1943 aPropertyMap
[PROP_Handles
] <<= aPropSequenceSequence
;
1946 aPropertyMap
[PROP_MirroredX
] <<= Any ((sal_Bool
) sal_False
);
1949 aPropertyMap
[PROP_MirroredY
] <<= Any ((sal_Bool
) sal_False
);
1952 Sequence
< PropertyValue
> aPropSequence (4);
1954 aPropSequence
[0].Name
= "Coordinates";
1955 static const CustomShapeProvider::ParameterPairData aData
[] = {
1957 EnhancedCustomShapeParameterType::NORMAL
,
1958 EnhancedCustomShapeParameterType::NORMAL
,
1962 EnhancedCustomShapeParameterType::NORMAL
,
1963 EnhancedCustomShapeParameterType::NORMAL
,
1967 EnhancedCustomShapeParameterType::EQUATION
,
1968 EnhancedCustomShapeParameterType::EQUATION
,
1972 EnhancedCustomShapeParameterType::NORMAL
,
1973 EnhancedCustomShapeParameterType::NORMAL
,
1977 EnhancedCustomShapeParameterType::EQUATION
,
1978 EnhancedCustomShapeParameterType::EQUATION
,
1982 EnhancedCustomShapeParameterType::NORMAL
,
1983 EnhancedCustomShapeParameterType::NORMAL
,
1987 EnhancedCustomShapeParameterType::EQUATION
,
1988 EnhancedCustomShapeParameterType::EQUATION
,
1992 EnhancedCustomShapeParameterType::NORMAL
,
1993 EnhancedCustomShapeParameterType::NORMAL
,
1997 EnhancedCustomShapeParameterType::EQUATION
,
1998 EnhancedCustomShapeParameterType::EQUATION
,
2002 EnhancedCustomShapeParameterType::NORMAL
,
2003 EnhancedCustomShapeParameterType::NORMAL
,
2007 EnhancedCustomShapeParameterType::EQUATION
,
2008 EnhancedCustomShapeParameterType::EQUATION
,
2012 EnhancedCustomShapeParameterType::NORMAL
,
2013 EnhancedCustomShapeParameterType::NORMAL
,
2017 EnhancedCustomShapeParameterType::EQUATION
,
2018 EnhancedCustomShapeParameterType::EQUATION
,
2022 EnhancedCustomShapeParameterType::NORMAL
,
2023 EnhancedCustomShapeParameterType::NORMAL
,
2027 EnhancedCustomShapeParameterType::EQUATION
,
2028 EnhancedCustomShapeParameterType::EQUATION
,
2032 EnhancedCustomShapeParameterType::NORMAL
,
2033 EnhancedCustomShapeParameterType::NORMAL
,
2037 EnhancedCustomShapeParameterType::EQUATION
,
2038 EnhancedCustomShapeParameterType::EQUATION
,
2042 EnhancedCustomShapeParameterType::NORMAL
,
2043 EnhancedCustomShapeParameterType::NORMAL
,
2047 EnhancedCustomShapeParameterType::EQUATION
,
2048 EnhancedCustomShapeParameterType::EQUATION
,
2052 EnhancedCustomShapeParameterType::NORMAL
,
2053 EnhancedCustomShapeParameterType::NORMAL
,
2057 EnhancedCustomShapeParameterType::EQUATION
,
2058 EnhancedCustomShapeParameterType::EQUATION
,
2062 EnhancedCustomShapeParameterType::NORMAL
,
2063 EnhancedCustomShapeParameterType::NORMAL
,
2067 EnhancedCustomShapeParameterType::EQUATION
,
2068 EnhancedCustomShapeParameterType::EQUATION
,
2072 EnhancedCustomShapeParameterType::EQUATION
,
2073 EnhancedCustomShapeParameterType::EQUATION
,
2077 EnhancedCustomShapeParameterType::EQUATION
,
2078 EnhancedCustomShapeParameterType::EQUATION
,
2082 EnhancedCustomShapeParameterType::EQUATION
,
2083 EnhancedCustomShapeParameterType::EQUATION
,
2087 EnhancedCustomShapeParameterType::EQUATION
,
2088 EnhancedCustomShapeParameterType::EQUATION
,
2092 EnhancedCustomShapeParameterType::EQUATION
,
2093 EnhancedCustomShapeParameterType::EQUATION
,
2097 EnhancedCustomShapeParameterType::EQUATION
,
2098 EnhancedCustomShapeParameterType::EQUATION
,
2102 EnhancedCustomShapeParameterType::EQUATION
,
2103 EnhancedCustomShapeParameterType::EQUATION
,
2107 EnhancedCustomShapeParameterType::EQUATION
,
2108 EnhancedCustomShapeParameterType::EQUATION
,
2112 EnhancedCustomShapeParameterType::EQUATION
,
2113 EnhancedCustomShapeParameterType::EQUATION
,
2117 EnhancedCustomShapeParameterType::NORMAL
,
2118 EnhancedCustomShapeParameterType::NORMAL
,
2122 EnhancedCustomShapeParameterType::NORMAL
,
2123 EnhancedCustomShapeParameterType::NORMAL
,
2127 EnhancedCustomShapeParameterType::EQUATION
,
2128 EnhancedCustomShapeParameterType::EQUATION
,
2132 EnhancedCustomShapeParameterType::NORMAL
,
2133 EnhancedCustomShapeParameterType::NORMAL
,
2137 EnhancedCustomShapeParameterType::NORMAL
,
2138 EnhancedCustomShapeParameterType::NORMAL
,
2142 EnhancedCustomShapeParameterType::EQUATION
,
2143 EnhancedCustomShapeParameterType::EQUATION
,
2147 EnhancedCustomShapeParameterType::NORMAL
,
2148 EnhancedCustomShapeParameterType::NORMAL
,
2152 EnhancedCustomShapeParameterType::NORMAL
,
2153 EnhancedCustomShapeParameterType::NORMAL
,
2157 EnhancedCustomShapeParameterType::EQUATION
,
2158 EnhancedCustomShapeParameterType::EQUATION
,
2162 EnhancedCustomShapeParameterType::NORMAL
,
2163 EnhancedCustomShapeParameterType::NORMAL
,
2167 EnhancedCustomShapeParameterType::NORMAL
,
2168 EnhancedCustomShapeParameterType::NORMAL
,
2172 EnhancedCustomShapeParameterType::EQUATION
,
2173 EnhancedCustomShapeParameterType::EQUATION
,
2177 EnhancedCustomShapeParameterType::NORMAL
,
2178 EnhancedCustomShapeParameterType::NORMAL
,
2182 EnhancedCustomShapeParameterType::NORMAL
,
2183 EnhancedCustomShapeParameterType::NORMAL
,
2187 EnhancedCustomShapeParameterType::EQUATION
,
2188 EnhancedCustomShapeParameterType::EQUATION
,
2192 EnhancedCustomShapeParameterType::NORMAL
,
2193 EnhancedCustomShapeParameterType::NORMAL
,
2197 EnhancedCustomShapeParameterType::NORMAL
,
2198 EnhancedCustomShapeParameterType::NORMAL
,
2202 EnhancedCustomShapeParameterType::EQUATION
,
2203 EnhancedCustomShapeParameterType::EQUATION
,
2207 EnhancedCustomShapeParameterType::NORMAL
,
2208 EnhancedCustomShapeParameterType::NORMAL
,
2212 EnhancedCustomShapeParameterType::NORMAL
,
2213 EnhancedCustomShapeParameterType::NORMAL
,
2217 EnhancedCustomShapeParameterType::EQUATION
,
2218 EnhancedCustomShapeParameterType::EQUATION
,
2222 EnhancedCustomShapeParameterType::NORMAL
,
2223 EnhancedCustomShapeParameterType::NORMAL
,
2227 EnhancedCustomShapeParameterType::NORMAL
,
2228 EnhancedCustomShapeParameterType::NORMAL
,
2232 EnhancedCustomShapeParameterType::EQUATION
,
2233 EnhancedCustomShapeParameterType::EQUATION
,
2237 EnhancedCustomShapeParameterType::NORMAL
,
2238 EnhancedCustomShapeParameterType::NORMAL
,
2242 EnhancedCustomShapeParameterType::NORMAL
,
2243 EnhancedCustomShapeParameterType::NORMAL
,
2247 EnhancedCustomShapeParameterType::EQUATION
,
2248 EnhancedCustomShapeParameterType::EQUATION
,
2252 EnhancedCustomShapeParameterType::NORMAL
,
2253 EnhancedCustomShapeParameterType::NORMAL
,
2257 EnhancedCustomShapeParameterType::NORMAL
,
2258 EnhancedCustomShapeParameterType::NORMAL
,
2262 EnhancedCustomShapeParameterType::EQUATION
,
2263 EnhancedCustomShapeParameterType::EQUATION
,
2267 EnhancedCustomShapeParameterType::NORMAL
,
2268 EnhancedCustomShapeParameterType::NORMAL
,
2272 EnhancedCustomShapeParameterType::NORMAL
,
2273 EnhancedCustomShapeParameterType::NORMAL
,
2277 EnhancedCustomShapeParameterType::EQUATION
,
2278 EnhancedCustomShapeParameterType::EQUATION
,
2282 aPropSequence
[0].Value
= makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData
), aData
));
2285 aPropSequence
[1].Name
= "Segments";
2286 static const sal_uInt16 nValues
[] = {
2329 aPropSequence
[1].Value
= makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues
), nValues
));
2332 aPropSequence
[2].Name
= "SubViewSize";
2333 Sequence
< awt::Size
> aSizeSequence (5);
2336 aSize
.Width
= 43200;
2337 aSize
.Height
= 43200;
2338 aSizeSequence
[0] = aSize
;
2344 aSizeSequence
[1] = aSize
;
2350 aSizeSequence
[2] = aSize
;
2356 aSizeSequence
[3] = aSize
;
2360 aSize
.Width
= 43200;
2361 aSize
.Height
= 43200;
2362 aSizeSequence
[4] = aSize
;
2364 aPropSequence
[2].Value
= makeAny (aSizeSequence
);
2367 aPropSequence
[3].Name
= "TextFrames";
2368 Sequence
< EnhancedCustomShapeTextFrame
> aTextFrameSeq (1);
2370 EnhancedCustomShapeTextFrame aTextFrame
;
2372 static const CustomShapeProvider::ParameterPairData aData
=
2374 EnhancedCustomShapeParameterType::EQUATION
,
2375 EnhancedCustomShapeParameterType::EQUATION
,
2378 aTextFrame
.TopLeft
= createParameterPair(&aData
);
2381 static const CustomShapeProvider::ParameterPairData aData
=
2383 EnhancedCustomShapeParameterType::EQUATION
,
2384 EnhancedCustomShapeParameterType::EQUATION
,
2387 aTextFrame
.BottomRight
= createParameterPair(&aData
);
2389 aTextFrameSeq
[0] = aTextFrame
;
2391 aPropSequence
[3].Value
= makeAny (aTextFrameSeq
);
2393 aPropertyMap
[PROP_Path
] <<= aPropSequence
;
2396 awt::Rectangle aRectangle
;
2399 aRectangle
.Width
= 0;
2400 aRectangle
.Height
= 0;
2401 aPropertyMap
[PROP_ViewBox
] <<= aRectangle
;
2403 aPropertyMap
[ PROP_Type
] <<= OUString("ooxml-cloudCallout");
2405 return aPropertyMap
;
2408 class ShapeCcallout1
: public CustomShapeProvider
2410 virtual PropertyMap
getProperties()
2412 PropertyMap aPropertyMap
;
2415 Sequence
< EnhancedCustomShapeAdjustmentValue
> aAdjSequence (4);
2417 Any
aAny ((sal_Int32
) 18750);
2418 aAdjSequence
[0].Value
= aAny
;
2419 aAdjSequence
[0].Name
= "adj1";
2422 Any
aAny ((sal_Int32
) -8333);
2423 aAdjSequence
[1].Value
= aAny
;
2424 aAdjSequence
[1].Name
= "adj2";
2427 Any
aAny ((sal_Int32
) 112500);
2428 aAdjSequence
[2].Value
= aAny
;
2429 aAdjSequence
[2].Name
= "adj3";
2432 Any
aAny ((sal_Int32
) -38333);
2433 aAdjSequence
[3].Value
= aAny
;
2434 aAdjSequence
[3].Name
= "adj4";
2436 aPropertyMap
[PROP_AdjustmentValues
] <<= aAdjSequence
;
2439 static const char *aStrings
[] = {
2440 "logheight*$0 /100000",
2441 "logwidth*$1 /100000",
2442 "logheight*$2 /100000",
2443 "logwidth*$3 /100000",
2449 aPropertyMap
[PROP_Equations
] <<= createStringSequence( SAL_N_ELEMENTS( aStrings
), aStrings
);
2452 Sequence
< Sequence
< PropertyValue
> > aPropSequenceSequence (2);
2454 Sequence
< PropertyValue
> aPropSequence (7);
2456 aPropSequence
[0].Name
= "Position";
2457 static const CustomShapeProvider::ParameterPairData aData
=
2459 EnhancedCustomShapeParameterType::EQUATION
,
2460 EnhancedCustomShapeParameterType::EQUATION
,
2463 aPropSequence
[0].Value
= makeAny (createParameterPair(&aData
));
2466 aPropSequence
[1].Name
= "RangeXMaximum";
2467 EnhancedCustomShapeParameter aParameter
;
2468 Any
aAny ((sal_Int32
) 2147483647);
2469 aParameter
.Value
= aAny
;
2470 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
2471 aPropSequence
[1].Value
= makeAny (aParameter
);
2474 aPropSequence
[2].Name
= "RangeXMinimum";
2475 EnhancedCustomShapeParameter aParameter
;
2476 Any
aAny ((sal_Int32
) -2147483647);
2477 aParameter
.Value
= aAny
;
2478 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
2479 aPropSequence
[2].Value
= makeAny (aParameter
);
2482 aPropSequence
[3].Name
= "RangeYMaximum";
2483 EnhancedCustomShapeParameter aParameter
;
2484 Any
aAny ((sal_Int32
) 2147483647);
2485 aParameter
.Value
= aAny
;
2486 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
2487 aPropSequence
[3].Value
= makeAny (aParameter
);
2490 aPropSequence
[4].Name
= "RangeYMinimum";
2491 EnhancedCustomShapeParameter aParameter
;
2492 Any
aAny ((sal_Int32
) -2147483647);
2493 aParameter
.Value
= aAny
;
2494 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
2495 aPropSequence
[4].Value
= makeAny (aParameter
);
2498 aPropSequence
[5].Name
= "RefX";
2499 Any
aAny ((sal_Int32
) 1);
2500 aPropSequence
[5].Value
= makeAny (aAny
);
2503 aPropSequence
[6].Name
= "RefY";
2504 Any
aAny ((sal_Int32
) 0);
2505 aPropSequence
[6].Value
= makeAny (aAny
);
2507 aPropSequenceSequence
[0] = aPropSequence
;
2510 Sequence
< PropertyValue
> aPropSequence (7);
2512 aPropSequence
[0].Name
= "Position";
2513 static const CustomShapeProvider::ParameterPairData aData
=
2515 EnhancedCustomShapeParameterType::EQUATION
,
2516 EnhancedCustomShapeParameterType::EQUATION
,
2519 aPropSequence
[0].Value
= makeAny (createParameterPair(&aData
));
2522 aPropSequence
[1].Name
= "RangeXMaximum";
2523 EnhancedCustomShapeParameter aParameter
;
2524 Any
aAny ((sal_Int32
) 2147483647);
2525 aParameter
.Value
= aAny
;
2526 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
2527 aPropSequence
[1].Value
= makeAny (aParameter
);
2530 aPropSequence
[2].Name
= "RangeXMinimum";
2531 EnhancedCustomShapeParameter aParameter
;
2532 Any
aAny ((sal_Int32
) -2147483647);
2533 aParameter
.Value
= aAny
;
2534 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
2535 aPropSequence
[2].Value
= makeAny (aParameter
);
2538 aPropSequence
[3].Name
= "RangeYMaximum";
2539 EnhancedCustomShapeParameter aParameter
;
2540 Any
aAny ((sal_Int32
) 2147483647);
2541 aParameter
.Value
= aAny
;
2542 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
2543 aPropSequence
[3].Value
= makeAny (aParameter
);
2546 aPropSequence
[4].Name
= "RangeYMinimum";
2547 EnhancedCustomShapeParameter aParameter
;
2548 Any
aAny ((sal_Int32
) -2147483647);
2549 aParameter
.Value
= aAny
;
2550 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
2551 aPropSequence
[4].Value
= makeAny (aParameter
);
2554 aPropSequence
[5].Name
= "RefX";
2555 Any
aAny ((sal_Int32
) 3);
2556 aPropSequence
[5].Value
= makeAny (aAny
);
2559 aPropSequence
[6].Name
= "RefY";
2560 Any
aAny ((sal_Int32
) 2);
2561 aPropSequence
[6].Value
= makeAny (aAny
);
2563 aPropSequenceSequence
[1] = aPropSequence
;
2565 aPropertyMap
[PROP_Handles
] <<= aPropSequenceSequence
;
2568 aPropertyMap
[PROP_MirroredX
] <<= Any ((sal_Bool
) sal_False
);
2571 aPropertyMap
[PROP_MirroredY
] <<= Any ((sal_Bool
) sal_False
);
2574 Sequence
< PropertyValue
> aPropSequence (3);
2576 aPropSequence
[0].Name
= "Coordinates";
2577 static const CustomShapeProvider::ParameterPairData aData
[] = {
2579 EnhancedCustomShapeParameterType::NORMAL
,
2580 EnhancedCustomShapeParameterType::NORMAL
,
2584 EnhancedCustomShapeParameterType::EQUATION
,
2585 EnhancedCustomShapeParameterType::NORMAL
,
2589 EnhancedCustomShapeParameterType::EQUATION
,
2590 EnhancedCustomShapeParameterType::EQUATION
,
2594 EnhancedCustomShapeParameterType::NORMAL
,
2595 EnhancedCustomShapeParameterType::EQUATION
,
2599 EnhancedCustomShapeParameterType::EQUATION
,
2600 EnhancedCustomShapeParameterType::EQUATION
,
2604 EnhancedCustomShapeParameterType::EQUATION
,
2605 EnhancedCustomShapeParameterType::EQUATION
,
2609 aPropSequence
[0].Value
= makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData
), aData
));
2612 aPropSequence
[1].Name
= "Segments";
2613 static const sal_uInt16 nValues
[] = {
2625 aPropSequence
[1].Value
= makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues
), nValues
));
2628 aPropSequence
[2].Name
= "TextFrames";
2629 Sequence
< EnhancedCustomShapeTextFrame
> aTextFrameSeq (1);
2631 EnhancedCustomShapeTextFrame aTextFrame
;
2633 static const CustomShapeProvider::ParameterPairData aData
=
2635 EnhancedCustomShapeParameterType::NORMAL
,
2636 EnhancedCustomShapeParameterType::NORMAL
,
2639 aTextFrame
.TopLeft
= createParameterPair(&aData
);
2642 static const CustomShapeProvider::ParameterPairData aData
=
2644 EnhancedCustomShapeParameterType::EQUATION
,
2645 EnhancedCustomShapeParameterType::EQUATION
,
2648 aTextFrame
.BottomRight
= createParameterPair(&aData
);
2650 aTextFrameSeq
[0] = aTextFrame
;
2652 aPropSequence
[2].Value
= makeAny (aTextFrameSeq
);
2654 aPropertyMap
[PROP_Path
] <<= aPropSequence
;
2657 awt::Rectangle aRectangle
;
2660 aRectangle
.Width
= 0;
2661 aRectangle
.Height
= 0;
2662 aPropertyMap
[PROP_ViewBox
] <<= aRectangle
;
2664 aPropertyMap
[ PROP_Type
] <<= OUString("ooxml-callout1");
2666 return aPropertyMap
;
2669 class ShapeCribbon
: public CustomShapeProvider
2671 virtual PropertyMap
getProperties()
2673 PropertyMap aPropertyMap
;
2676 Sequence
< EnhancedCustomShapeAdjustmentValue
> aAdjSequence (2);
2678 Any
aAny ((sal_Int32
) 16667);
2679 aAdjSequence
[0].Value
= aAny
;
2680 aAdjSequence
[0].Name
= "adj1";
2683 Any
aAny ((sal_Int32
) 50000);
2684 aAdjSequence
[1].Value
= aAny
;
2685 aAdjSequence
[1].Name
= "adj2";
2687 aPropertyMap
[PROP_AdjustmentValues
] <<= aAdjSequence
;
2690 static const char *aStrings
[] = {
2691 "if(0-$0 ,0,if(33333-$0 ,$0 ,33333))",
2692 "if(25000-$1 ,25000,if(75000-$1 ,$1 ,75000))",
2695 "logwidth*?1 /200000",
2706 "logheight*?0 /200000",
2707 "logheight*?0 /100000",
2710 "logheight*?0 /400000",
2714 "(16200000)/60000.0",
2715 "(10800000)/60000.0",
2716 "(16200000)/60000.0",
2717 "(-10800000)/60000.0",
2718 "(5400000)/60000.0",
2719 "(-10800000)/60000.0",
2720 "(5400000)/60000.0",
2721 "(10800000)/60000.0",
2724 "(5400000)/60000.0",
2725 "(5400000)/60000.0",
2726 "(5400000)/60000.0",
2728 "(5400000)/60000.0",
2729 "(16200000)/60000.0",
2730 "(-10800000)/60000.0",
2731 "(10800000)/60000.0",
2732 "(-5400000)/60000.0",
2733 "(16200000)/60000.0",
2734 "(10800000)/60000.0",
2735 "(16200000)/60000.0",
2736 "(10800000)/60000.0",
2737 "(16200000)/60000.0",
2738 "(-10800000)/60000.0",
2739 "(5400000)/60000.0",
2740 "(-10800000)/60000.0",
2741 "(5400000)/60000.0",
2742 "(10800000)/60000.0",
2744 "(5400000)/60000.0",
2745 "(5400000)/60000.0",
2748 aPropertyMap
[PROP_Equations
] <<= createStringSequence( SAL_N_ELEMENTS( aStrings
), aStrings
);
2751 Sequence
< Sequence
< PropertyValue
> > aPropSequenceSequence (2);
2753 Sequence
< PropertyValue
> aPropSequence (4);
2755 aPropSequence
[0].Name
= "Position";
2756 static const CustomShapeProvider::ParameterPairData aData
=
2758 EnhancedCustomShapeParameterType::EQUATION
,
2759 EnhancedCustomShapeParameterType::EQUATION
,
2762 aPropSequence
[0].Value
= makeAny (createParameterPair(&aData
));
2765 aPropSequence
[1].Name
= "RangeYMaximum";
2766 EnhancedCustomShapeParameter aParameter
;
2767 Any
aAny ((sal_Int32
) 33333);
2768 aParameter
.Value
= aAny
;
2769 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
2770 aPropSequence
[1].Value
= makeAny (aParameter
);
2773 aPropSequence
[2].Name
= "RangeYMinimum";
2774 EnhancedCustomShapeParameter aParameter
;
2775 Any
aAny ((sal_Int32
) 0);
2776 aParameter
.Value
= aAny
;
2777 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
2778 aPropSequence
[2].Value
= makeAny (aParameter
);
2781 aPropSequence
[3].Name
= "RefY";
2782 Any
aAny ((sal_Int32
) 0);
2783 aPropSequence
[3].Value
= makeAny (aAny
);
2785 aPropSequenceSequence
[0] = aPropSequence
;
2788 Sequence
< PropertyValue
> aPropSequence (4);
2790 aPropSequence
[0].Name
= "Position";
2791 static const CustomShapeProvider::ParameterPairData aData
=
2793 EnhancedCustomShapeParameterType::EQUATION
,
2794 EnhancedCustomShapeParameterType::NORMAL
,
2797 aPropSequence
[0].Value
= makeAny (createParameterPair(&aData
));
2800 aPropSequence
[1].Name
= "RangeXMaximum";
2801 EnhancedCustomShapeParameter aParameter
;
2802 Any
aAny ((sal_Int32
) 75000);
2803 aParameter
.Value
= aAny
;
2804 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
2805 aPropSequence
[1].Value
= makeAny (aParameter
);
2808 aPropSequence
[2].Name
= "RangeXMinimum";
2809 EnhancedCustomShapeParameter aParameter
;
2810 Any
aAny ((sal_Int32
) 25000);
2811 aParameter
.Value
= aAny
;
2812 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
2813 aPropSequence
[2].Value
= makeAny (aParameter
);
2816 aPropSequence
[3].Name
= "RefX";
2817 Any
aAny ((sal_Int32
) 1);
2818 aPropSequence
[3].Value
= makeAny (aAny
);
2820 aPropSequenceSequence
[1] = aPropSequence
;
2822 aPropertyMap
[PROP_Handles
] <<= aPropSequenceSequence
;
2825 aPropertyMap
[PROP_MirroredX
] <<= Any ((sal_Bool
) sal_False
);
2828 aPropertyMap
[PROP_MirroredY
] <<= Any ((sal_Bool
) sal_False
);
2831 Sequence
< PropertyValue
> aPropSequence (3);
2833 aPropSequence
[0].Name
= "Coordinates";
2834 static const CustomShapeProvider::ParameterPairData aData
[] = {
2836 EnhancedCustomShapeParameterType::NORMAL
,
2837 EnhancedCustomShapeParameterType::NORMAL
,
2841 EnhancedCustomShapeParameterType::EQUATION
,
2842 EnhancedCustomShapeParameterType::NORMAL
,
2846 EnhancedCustomShapeParameterType::EQUATION
,
2847 EnhancedCustomShapeParameterType::EQUATION
,
2851 EnhancedCustomShapeParameterType::EQUATION
,
2852 EnhancedCustomShapeParameterType::EQUATION
,
2856 EnhancedCustomShapeParameterType::EQUATION
,
2857 EnhancedCustomShapeParameterType::EQUATION
,
2861 EnhancedCustomShapeParameterType::EQUATION
,
2862 EnhancedCustomShapeParameterType::EQUATION
,
2866 EnhancedCustomShapeParameterType::EQUATION
,
2867 EnhancedCustomShapeParameterType::EQUATION
,
2871 EnhancedCustomShapeParameterType::EQUATION
,
2872 EnhancedCustomShapeParameterType::EQUATION
,
2876 EnhancedCustomShapeParameterType::EQUATION
,
2877 EnhancedCustomShapeParameterType::EQUATION
,
2881 EnhancedCustomShapeParameterType::EQUATION
,
2882 EnhancedCustomShapeParameterType::EQUATION
,
2886 EnhancedCustomShapeParameterType::EQUATION
,
2887 EnhancedCustomShapeParameterType::EQUATION
,
2891 EnhancedCustomShapeParameterType::EQUATION
,
2892 EnhancedCustomShapeParameterType::EQUATION
,
2896 EnhancedCustomShapeParameterType::EQUATION
,
2897 EnhancedCustomShapeParameterType::EQUATION
,
2901 EnhancedCustomShapeParameterType::EQUATION
,
2902 EnhancedCustomShapeParameterType::NORMAL
,
2906 EnhancedCustomShapeParameterType::EQUATION
,
2907 EnhancedCustomShapeParameterType::EQUATION
,
2911 EnhancedCustomShapeParameterType::EQUATION
,
2912 EnhancedCustomShapeParameterType::EQUATION
,
2916 EnhancedCustomShapeParameterType::EQUATION
,
2917 EnhancedCustomShapeParameterType::EQUATION
,
2921 EnhancedCustomShapeParameterType::EQUATION
,
2922 EnhancedCustomShapeParameterType::EQUATION
,
2926 EnhancedCustomShapeParameterType::EQUATION
,
2927 EnhancedCustomShapeParameterType::EQUATION
,
2931 EnhancedCustomShapeParameterType::EQUATION
,
2932 EnhancedCustomShapeParameterType::EQUATION
,
2936 EnhancedCustomShapeParameterType::EQUATION
,
2937 EnhancedCustomShapeParameterType::EQUATION
,
2941 EnhancedCustomShapeParameterType::EQUATION
,
2942 EnhancedCustomShapeParameterType::EQUATION
,
2946 EnhancedCustomShapeParameterType::EQUATION
,
2947 EnhancedCustomShapeParameterType::EQUATION
,
2951 EnhancedCustomShapeParameterType::EQUATION
,
2952 EnhancedCustomShapeParameterType::EQUATION
,
2956 EnhancedCustomShapeParameterType::NORMAL
,
2957 EnhancedCustomShapeParameterType::EQUATION
,
2961 EnhancedCustomShapeParameterType::EQUATION
,
2962 EnhancedCustomShapeParameterType::EQUATION
,
2966 EnhancedCustomShapeParameterType::EQUATION
,
2967 EnhancedCustomShapeParameterType::EQUATION
,
2971 EnhancedCustomShapeParameterType::EQUATION
,
2972 EnhancedCustomShapeParameterType::EQUATION
,
2976 EnhancedCustomShapeParameterType::EQUATION
,
2977 EnhancedCustomShapeParameterType::EQUATION
,
2981 EnhancedCustomShapeParameterType::EQUATION
,
2982 EnhancedCustomShapeParameterType::EQUATION
,
2986 EnhancedCustomShapeParameterType::EQUATION
,
2987 EnhancedCustomShapeParameterType::EQUATION
,
2991 EnhancedCustomShapeParameterType::EQUATION
,
2992 EnhancedCustomShapeParameterType::EQUATION
,
2996 EnhancedCustomShapeParameterType::EQUATION
,
2997 EnhancedCustomShapeParameterType::EQUATION
,
3001 EnhancedCustomShapeParameterType::EQUATION
,
3002 EnhancedCustomShapeParameterType::EQUATION
,
3006 EnhancedCustomShapeParameterType::EQUATION
,
3007 EnhancedCustomShapeParameterType::EQUATION
,
3011 EnhancedCustomShapeParameterType::EQUATION
,
3012 EnhancedCustomShapeParameterType::EQUATION
,
3016 EnhancedCustomShapeParameterType::EQUATION
,
3017 EnhancedCustomShapeParameterType::EQUATION
,
3021 EnhancedCustomShapeParameterType::EQUATION
,
3022 EnhancedCustomShapeParameterType::EQUATION
,
3026 EnhancedCustomShapeParameterType::EQUATION
,
3027 EnhancedCustomShapeParameterType::EQUATION
,
3031 EnhancedCustomShapeParameterType::EQUATION
,
3032 EnhancedCustomShapeParameterType::EQUATION
,
3036 EnhancedCustomShapeParameterType::NORMAL
,
3037 EnhancedCustomShapeParameterType::NORMAL
,
3041 EnhancedCustomShapeParameterType::EQUATION
,
3042 EnhancedCustomShapeParameterType::NORMAL
,
3046 EnhancedCustomShapeParameterType::EQUATION
,
3047 EnhancedCustomShapeParameterType::EQUATION
,
3051 EnhancedCustomShapeParameterType::EQUATION
,
3052 EnhancedCustomShapeParameterType::EQUATION
,
3056 EnhancedCustomShapeParameterType::EQUATION
,
3057 EnhancedCustomShapeParameterType::EQUATION
,
3061 EnhancedCustomShapeParameterType::EQUATION
,
3062 EnhancedCustomShapeParameterType::EQUATION
,
3066 EnhancedCustomShapeParameterType::EQUATION
,
3067 EnhancedCustomShapeParameterType::EQUATION
,
3071 EnhancedCustomShapeParameterType::EQUATION
,
3072 EnhancedCustomShapeParameterType::EQUATION
,
3076 EnhancedCustomShapeParameterType::EQUATION
,
3077 EnhancedCustomShapeParameterType::EQUATION
,
3081 EnhancedCustomShapeParameterType::EQUATION
,
3082 EnhancedCustomShapeParameterType::EQUATION
,
3086 EnhancedCustomShapeParameterType::EQUATION
,
3087 EnhancedCustomShapeParameterType::EQUATION
,
3091 EnhancedCustomShapeParameterType::EQUATION
,
3092 EnhancedCustomShapeParameterType::EQUATION
,
3096 EnhancedCustomShapeParameterType::EQUATION
,
3097 EnhancedCustomShapeParameterType::EQUATION
,
3101 EnhancedCustomShapeParameterType::EQUATION
,
3102 EnhancedCustomShapeParameterType::NORMAL
,
3106 EnhancedCustomShapeParameterType::EQUATION
,
3107 EnhancedCustomShapeParameterType::EQUATION
,
3111 EnhancedCustomShapeParameterType::EQUATION
,
3112 EnhancedCustomShapeParameterType::EQUATION
,
3116 EnhancedCustomShapeParameterType::EQUATION
,
3117 EnhancedCustomShapeParameterType::EQUATION
,
3121 EnhancedCustomShapeParameterType::EQUATION
,
3122 EnhancedCustomShapeParameterType::EQUATION
,
3126 EnhancedCustomShapeParameterType::EQUATION
,
3127 EnhancedCustomShapeParameterType::EQUATION
,
3131 EnhancedCustomShapeParameterType::EQUATION
,
3132 EnhancedCustomShapeParameterType::EQUATION
,
3136 EnhancedCustomShapeParameterType::EQUATION
,
3137 EnhancedCustomShapeParameterType::EQUATION
,
3141 EnhancedCustomShapeParameterType::EQUATION
,
3142 EnhancedCustomShapeParameterType::EQUATION
,
3146 EnhancedCustomShapeParameterType::EQUATION
,
3147 EnhancedCustomShapeParameterType::EQUATION
,
3151 EnhancedCustomShapeParameterType::EQUATION
,
3152 EnhancedCustomShapeParameterType::EQUATION
,
3156 EnhancedCustomShapeParameterType::NORMAL
,
3157 EnhancedCustomShapeParameterType::EQUATION
,
3161 EnhancedCustomShapeParameterType::EQUATION
,
3162 EnhancedCustomShapeParameterType::EQUATION
,
3166 EnhancedCustomShapeParameterType::EQUATION
,
3167 EnhancedCustomShapeParameterType::EQUATION
,
3171 EnhancedCustomShapeParameterType::EQUATION
,
3172 EnhancedCustomShapeParameterType::EQUATION
,
3176 EnhancedCustomShapeParameterType::EQUATION
,
3177 EnhancedCustomShapeParameterType::EQUATION
,
3181 EnhancedCustomShapeParameterType::EQUATION
,
3182 EnhancedCustomShapeParameterType::EQUATION
,
3186 EnhancedCustomShapeParameterType::EQUATION
,
3187 EnhancedCustomShapeParameterType::EQUATION
,
3191 EnhancedCustomShapeParameterType::EQUATION
,
3192 EnhancedCustomShapeParameterType::EQUATION
,
3196 EnhancedCustomShapeParameterType::EQUATION
,
3197 EnhancedCustomShapeParameterType::EQUATION
,
3201 EnhancedCustomShapeParameterType::EQUATION
,
3202 EnhancedCustomShapeParameterType::EQUATION
,
3206 aPropSequence
[0].Value
= makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData
), aData
));
3209 aPropSequence
[1].Name
= "Segments";
3210 static const sal_uInt16 nValues
[] = {
3270 aPropSequence
[1].Value
= makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues
), nValues
));
3273 aPropSequence
[2].Name
= "TextFrames";
3274 Sequence
< EnhancedCustomShapeTextFrame
> aTextFrameSeq (1);
3276 EnhancedCustomShapeTextFrame aTextFrame
;
3278 static const CustomShapeProvider::ParameterPairData aData
=
3280 EnhancedCustomShapeParameterType::EQUATION
,
3281 EnhancedCustomShapeParameterType::EQUATION
,
3284 aTextFrame
.TopLeft
= createParameterPair(&aData
);
3287 static const CustomShapeProvider::ParameterPairData aData
=
3289 EnhancedCustomShapeParameterType::EQUATION
,
3290 EnhancedCustomShapeParameterType::EQUATION
,
3293 aTextFrame
.BottomRight
= createParameterPair(&aData
);
3295 aTextFrameSeq
[0] = aTextFrame
;
3297 aPropSequence
[2].Value
= makeAny (aTextFrameSeq
);
3299 aPropertyMap
[PROP_Path
] <<= aPropSequence
;
3302 awt::Rectangle aRectangle
;
3305 aRectangle
.Width
= 0;
3306 aRectangle
.Height
= 0;
3307 aPropertyMap
[PROP_ViewBox
] <<= aRectangle
;
3309 aPropertyMap
[ PROP_Type
] <<= OUString("ooxml-ribbon");
3311 return aPropertyMap
;
3314 } // anonymous namespace
3315 void CustomShapeProperties::initializePresetsMap6()
3317 maPresetsMap
[ StaticTokenMap::get().getTokenFromUnicode( "star5" ) ] = new ShapeCstar5();
3318 maPresetsMap
[ StaticTokenMap::get().getTokenFromUnicode( "lineInv" ) ] = new ShapeClineInv();
3319 maPresetsMap
[ StaticTokenMap::get().getTokenFromUnicode( "straightConnector1" ) ] = new ShapeCstraightConnector1();
3320 maPresetsMap
[ StaticTokenMap::get().getTokenFromUnicode( "stripedRightArrow" ) ] = new ShapeCstripedRightArrow();
3321 maPresetsMap
[ StaticTokenMap::get().getTokenFromUnicode( "callout3" ) ] = new ShapeCcallout3();
3322 maPresetsMap
[ StaticTokenMap::get().getTokenFromUnicode( "bentUpArrow" ) ] = new ShapeCbentUpArrow();
3323 maPresetsMap
[ StaticTokenMap::get().getTokenFromUnicode( "noSmoking" ) ] = new ShapeCnoSmoking();
3324 maPresetsMap
[ StaticTokenMap::get().getTokenFromUnicode( "trapezoid" ) ] = new ShapeCtrapezoid();
3325 maPresetsMap
[ StaticTokenMap::get().getTokenFromUnicode( "cloudCallout" ) ] = new ShapeCcloudCallout();
3326 maPresetsMap
[ StaticTokenMap::get().getTokenFromUnicode( "callout1" ) ] = new ShapeCcallout1();
3327 maPresetsMap
[ StaticTokenMap::get().getTokenFromUnicode( "ribbon" ) ] = new ShapeCribbon();
3330 } } // oox // drawingml
3333 void ::oox::drawingml::CustomShapeProperties::initializePresetsMap()
3335 initializePresetsMap1();
3336 initializePresetsMap2();
3337 initializePresetsMap3();
3338 initializePresetsMap4();
3339 initializePresetsMap5();
3340 initializePresetsMap6();