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 ShapeCactionButtonSound
: public CustomShapeProvider
24 virtual PropertyMap
getProperties()
26 PropertyMap aPropertyMap
;
29 aPropertyMap
[PROP_AdjustmentValues
] <<= Sequence
< OUString
>(0);
32 static const char *aStrings
[] = {
33 "min(logwidth,logheight)",
58 aPropertyMap
[PROP_Equations
] <<= createStringSequence( SAL_N_ELEMENTS( aStrings
), aStrings
);
61 aPropertyMap
[PROP_Handles
] <<= Sequence
< OUString
>(0);
64 aPropertyMap
[PROP_MirroredX
] <<= Any ((sal_Bool
) sal_False
);
67 aPropertyMap
[PROP_MirroredY
] <<= Any ((sal_Bool
) sal_False
);
70 Sequence
< PropertyValue
> aPropSequence (3);
72 aPropSequence
[0].Name
= "Coordinates";
73 static const CustomShapeProvider::ParameterPairData aData
[] = {
75 EnhancedCustomShapeParameterType::NORMAL
,
76 EnhancedCustomShapeParameterType::NORMAL
,
80 EnhancedCustomShapeParameterType::EQUATION
,
81 EnhancedCustomShapeParameterType::NORMAL
,
85 EnhancedCustomShapeParameterType::EQUATION
,
86 EnhancedCustomShapeParameterType::EQUATION
,
90 EnhancedCustomShapeParameterType::NORMAL
,
91 EnhancedCustomShapeParameterType::EQUATION
,
95 EnhancedCustomShapeParameterType::EQUATION
,
96 EnhancedCustomShapeParameterType::EQUATION
,
100 EnhancedCustomShapeParameterType::EQUATION
,
101 EnhancedCustomShapeParameterType::EQUATION
,
105 EnhancedCustomShapeParameterType::EQUATION
,
106 EnhancedCustomShapeParameterType::EQUATION
,
110 EnhancedCustomShapeParameterType::EQUATION
,
111 EnhancedCustomShapeParameterType::EQUATION
,
115 EnhancedCustomShapeParameterType::EQUATION
,
116 EnhancedCustomShapeParameterType::EQUATION
,
120 EnhancedCustomShapeParameterType::EQUATION
,
121 EnhancedCustomShapeParameterType::EQUATION
,
125 EnhancedCustomShapeParameterType::EQUATION
,
126 EnhancedCustomShapeParameterType::EQUATION
,
130 EnhancedCustomShapeParameterType::EQUATION
,
131 EnhancedCustomShapeParameterType::EQUATION
,
135 EnhancedCustomShapeParameterType::EQUATION
,
136 EnhancedCustomShapeParameterType::EQUATION
,
140 EnhancedCustomShapeParameterType::EQUATION
,
141 EnhancedCustomShapeParameterType::EQUATION
,
145 EnhancedCustomShapeParameterType::EQUATION
,
146 EnhancedCustomShapeParameterType::EQUATION
,
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 EnhancedCustomShapeParameterType::EQUATION
,
186 EnhancedCustomShapeParameterType::EQUATION
,
190 EnhancedCustomShapeParameterType::EQUATION
,
191 EnhancedCustomShapeParameterType::EQUATION
,
195 EnhancedCustomShapeParameterType::EQUATION
,
196 EnhancedCustomShapeParameterType::EQUATION
,
200 EnhancedCustomShapeParameterType::EQUATION
,
201 EnhancedCustomShapeParameterType::EQUATION
,
205 EnhancedCustomShapeParameterType::EQUATION
,
206 EnhancedCustomShapeParameterType::EQUATION
,
210 EnhancedCustomShapeParameterType::EQUATION
,
211 EnhancedCustomShapeParameterType::EQUATION
,
215 EnhancedCustomShapeParameterType::NORMAL
,
216 EnhancedCustomShapeParameterType::NORMAL
,
220 EnhancedCustomShapeParameterType::EQUATION
,
221 EnhancedCustomShapeParameterType::NORMAL
,
225 EnhancedCustomShapeParameterType::EQUATION
,
226 EnhancedCustomShapeParameterType::EQUATION
,
230 EnhancedCustomShapeParameterType::NORMAL
,
231 EnhancedCustomShapeParameterType::EQUATION
,
235 aPropSequence
[0].Value
= makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData
), aData
));
238 aPropSequence
[1].Name
= "Segments";
239 static const sal_uInt16 nValues
[] = {
272 aPropSequence
[1].Value
= makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues
), nValues
));
275 aPropSequence
[2].Name
= "TextFrames";
276 Sequence
< EnhancedCustomShapeTextFrame
> aTextFrameSeq (1);
278 EnhancedCustomShapeTextFrame aTextFrame
;
280 static const CustomShapeProvider::ParameterPairData aData
=
282 EnhancedCustomShapeParameterType::NORMAL
,
283 EnhancedCustomShapeParameterType::NORMAL
,
286 aTextFrame
.TopLeft
= createParameterPair(&aData
);
289 static const CustomShapeProvider::ParameterPairData aData
=
291 EnhancedCustomShapeParameterType::EQUATION
,
292 EnhancedCustomShapeParameterType::EQUATION
,
295 aTextFrame
.BottomRight
= createParameterPair(&aData
);
297 aTextFrameSeq
[0] = aTextFrame
;
299 aPropSequence
[2].Value
= makeAny (aTextFrameSeq
);
301 aPropertyMap
[PROP_Path
] <<= aPropSequence
;
304 awt::Rectangle aRectangle
;
307 aRectangle
.Width
= 0;
308 aRectangle
.Height
= 0;
309 aPropertyMap
[PROP_ViewBox
] <<= aRectangle
;
311 aPropertyMap
[ PROP_Type
] <<= OUString("ooxml-actionButtonSound");
316 class ShapeCborderCallout1
: public CustomShapeProvider
318 virtual PropertyMap
getProperties()
320 PropertyMap aPropertyMap
;
323 Sequence
< EnhancedCustomShapeAdjustmentValue
> aAdjSequence (4);
325 Any
aAny ((sal_Int32
) 18750);
326 aAdjSequence
[0].Value
= aAny
;
327 aAdjSequence
[0].Name
= "adj1";
330 Any
aAny ((sal_Int32
) -8333);
331 aAdjSequence
[1].Value
= aAny
;
332 aAdjSequence
[1].Name
= "adj2";
335 Any
aAny ((sal_Int32
) 112500);
336 aAdjSequence
[2].Value
= aAny
;
337 aAdjSequence
[2].Name
= "adj3";
340 Any
aAny ((sal_Int32
) -38333);
341 aAdjSequence
[3].Value
= aAny
;
342 aAdjSequence
[3].Name
= "adj4";
344 aPropertyMap
[PROP_AdjustmentValues
] <<= aAdjSequence
;
347 static const char *aStrings
[] = {
348 "logheight*$0 /100000",
349 "logwidth*$1 /100000",
350 "logheight*$2 /100000",
351 "logwidth*$3 /100000",
357 aPropertyMap
[PROP_Equations
] <<= createStringSequence( SAL_N_ELEMENTS( aStrings
), aStrings
);
360 Sequence
< Sequence
< PropertyValue
> > aPropSequenceSequence (2);
362 Sequence
< PropertyValue
> aPropSequence (7);
364 aPropSequence
[0].Name
= "Position";
365 static const CustomShapeProvider::ParameterPairData aData
=
367 EnhancedCustomShapeParameterType::EQUATION
,
368 EnhancedCustomShapeParameterType::EQUATION
,
371 aPropSequence
[0].Value
= makeAny (createParameterPair(&aData
));
374 aPropSequence
[1].Name
= "RangeXMaximum";
375 EnhancedCustomShapeParameter aParameter
;
376 Any
aAny ((sal_Int32
) 2147483647);
377 aParameter
.Value
= aAny
;
378 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
379 aPropSequence
[1].Value
= makeAny (aParameter
);
382 aPropSequence
[2].Name
= "RangeXMinimum";
383 EnhancedCustomShapeParameter aParameter
;
384 Any
aAny ((sal_Int32
) -2147483647);
385 aParameter
.Value
= aAny
;
386 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
387 aPropSequence
[2].Value
= makeAny (aParameter
);
390 aPropSequence
[3].Name
= "RangeYMaximum";
391 EnhancedCustomShapeParameter aParameter
;
392 Any
aAny ((sal_Int32
) 2147483647);
393 aParameter
.Value
= aAny
;
394 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
395 aPropSequence
[3].Value
= makeAny (aParameter
);
398 aPropSequence
[4].Name
= "RangeYMinimum";
399 EnhancedCustomShapeParameter aParameter
;
400 Any
aAny ((sal_Int32
) -2147483647);
401 aParameter
.Value
= aAny
;
402 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
403 aPropSequence
[4].Value
= makeAny (aParameter
);
406 aPropSequence
[5].Name
= "RefX";
407 Any
aAny ((sal_Int32
) 1);
408 aPropSequence
[5].Value
= makeAny (aAny
);
411 aPropSequence
[6].Name
= "RefY";
412 Any
aAny ((sal_Int32
) 0);
413 aPropSequence
[6].Value
= makeAny (aAny
);
415 aPropSequenceSequence
[0] = aPropSequence
;
418 Sequence
< PropertyValue
> aPropSequence (7);
420 aPropSequence
[0].Name
= "Position";
421 static const CustomShapeProvider::ParameterPairData aData
=
423 EnhancedCustomShapeParameterType::EQUATION
,
424 EnhancedCustomShapeParameterType::EQUATION
,
427 aPropSequence
[0].Value
= makeAny (createParameterPair(&aData
));
430 aPropSequence
[1].Name
= "RangeXMaximum";
431 EnhancedCustomShapeParameter aParameter
;
432 Any
aAny ((sal_Int32
) 2147483647);
433 aParameter
.Value
= aAny
;
434 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
435 aPropSequence
[1].Value
= makeAny (aParameter
);
438 aPropSequence
[2].Name
= "RangeXMinimum";
439 EnhancedCustomShapeParameter aParameter
;
440 Any
aAny ((sal_Int32
) -2147483647);
441 aParameter
.Value
= aAny
;
442 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
443 aPropSequence
[2].Value
= makeAny (aParameter
);
446 aPropSequence
[3].Name
= "RangeYMaximum";
447 EnhancedCustomShapeParameter aParameter
;
448 Any
aAny ((sal_Int32
) 2147483647);
449 aParameter
.Value
= aAny
;
450 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
451 aPropSequence
[3].Value
= makeAny (aParameter
);
454 aPropSequence
[4].Name
= "RangeYMinimum";
455 EnhancedCustomShapeParameter aParameter
;
456 Any
aAny ((sal_Int32
) -2147483647);
457 aParameter
.Value
= aAny
;
458 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
459 aPropSequence
[4].Value
= makeAny (aParameter
);
462 aPropSequence
[5].Name
= "RefX";
463 Any
aAny ((sal_Int32
) 3);
464 aPropSequence
[5].Value
= makeAny (aAny
);
467 aPropSequence
[6].Name
= "RefY";
468 Any
aAny ((sal_Int32
) 2);
469 aPropSequence
[6].Value
= makeAny (aAny
);
471 aPropSequenceSequence
[1] = aPropSequence
;
473 aPropertyMap
[PROP_Handles
] <<= aPropSequenceSequence
;
476 aPropertyMap
[PROP_MirroredX
] <<= Any ((sal_Bool
) sal_False
);
479 aPropertyMap
[PROP_MirroredY
] <<= Any ((sal_Bool
) sal_False
);
482 Sequence
< PropertyValue
> aPropSequence (3);
484 aPropSequence
[0].Name
= "Coordinates";
485 static const CustomShapeProvider::ParameterPairData aData
[] = {
487 EnhancedCustomShapeParameterType::NORMAL
,
488 EnhancedCustomShapeParameterType::NORMAL
,
492 EnhancedCustomShapeParameterType::EQUATION
,
493 EnhancedCustomShapeParameterType::NORMAL
,
497 EnhancedCustomShapeParameterType::EQUATION
,
498 EnhancedCustomShapeParameterType::EQUATION
,
502 EnhancedCustomShapeParameterType::NORMAL
,
503 EnhancedCustomShapeParameterType::EQUATION
,
507 EnhancedCustomShapeParameterType::EQUATION
,
508 EnhancedCustomShapeParameterType::EQUATION
,
512 EnhancedCustomShapeParameterType::EQUATION
,
513 EnhancedCustomShapeParameterType::EQUATION
,
517 aPropSequence
[0].Value
= makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData
), aData
));
520 aPropSequence
[1].Name
= "Segments";
521 static const sal_uInt16 nValues
[] = {
532 aPropSequence
[1].Value
= makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues
), nValues
));
535 aPropSequence
[2].Name
= "TextFrames";
536 Sequence
< EnhancedCustomShapeTextFrame
> aTextFrameSeq (1);
538 EnhancedCustomShapeTextFrame aTextFrame
;
540 static const CustomShapeProvider::ParameterPairData aData
=
542 EnhancedCustomShapeParameterType::NORMAL
,
543 EnhancedCustomShapeParameterType::NORMAL
,
546 aTextFrame
.TopLeft
= createParameterPair(&aData
);
549 static const CustomShapeProvider::ParameterPairData aData
=
551 EnhancedCustomShapeParameterType::EQUATION
,
552 EnhancedCustomShapeParameterType::EQUATION
,
555 aTextFrame
.BottomRight
= createParameterPair(&aData
);
557 aTextFrameSeq
[0] = aTextFrame
;
559 aPropSequence
[2].Value
= makeAny (aTextFrameSeq
);
561 aPropertyMap
[PROP_Path
] <<= aPropSequence
;
564 awt::Rectangle aRectangle
;
567 aRectangle
.Width
= 0;
568 aRectangle
.Height
= 0;
569 aPropertyMap
[PROP_ViewBox
] <<= aRectangle
;
571 aPropertyMap
[ PROP_Type
] <<= OUString("ooxml-borderCallout1");
576 class ShapeCplaqueTabs
: public CustomShapeProvider
578 virtual PropertyMap
getProperties()
580 PropertyMap aPropertyMap
;
583 aPropertyMap
[PROP_AdjustmentValues
] <<= Sequence
< OUString
>(0);
586 static const char *aStrings
[] = {
587 "sqrt(logwidth*logwidth+logheight*logheight+0*0)",
595 "(16200000)/60000.0",
599 "(10800000)/60000.0",
602 aPropertyMap
[PROP_Equations
] <<= createStringSequence( SAL_N_ELEMENTS( aStrings
), aStrings
);
605 aPropertyMap
[PROP_Handles
] <<= Sequence
< OUString
>(0);
608 aPropertyMap
[PROP_MirroredX
] <<= Any ((sal_Bool
) sal_False
);
611 aPropertyMap
[PROP_MirroredY
] <<= Any ((sal_Bool
) sal_False
);
614 Sequence
< PropertyValue
> aPropSequence (3);
616 aPropSequence
[0].Name
= "Coordinates";
617 static const CustomShapeProvider::ParameterPairData aData
[] = {
619 EnhancedCustomShapeParameterType::NORMAL
,
620 EnhancedCustomShapeParameterType::NORMAL
,
624 EnhancedCustomShapeParameterType::EQUATION
,
625 EnhancedCustomShapeParameterType::NORMAL
,
629 EnhancedCustomShapeParameterType::EQUATION
,
630 EnhancedCustomShapeParameterType::EQUATION
,
634 EnhancedCustomShapeParameterType::EQUATION
,
635 EnhancedCustomShapeParameterType::EQUATION
,
639 EnhancedCustomShapeParameterType::NORMAL
,
640 EnhancedCustomShapeParameterType::EQUATION
,
644 EnhancedCustomShapeParameterType::EQUATION
,
645 EnhancedCustomShapeParameterType::EQUATION
,
649 EnhancedCustomShapeParameterType::EQUATION
,
650 EnhancedCustomShapeParameterType::EQUATION
,
654 EnhancedCustomShapeParameterType::NORMAL
,
655 EnhancedCustomShapeParameterType::EQUATION
,
659 EnhancedCustomShapeParameterType::EQUATION
,
660 EnhancedCustomShapeParameterType::NORMAL
,
664 EnhancedCustomShapeParameterType::EQUATION
,
665 EnhancedCustomShapeParameterType::EQUATION
,
669 EnhancedCustomShapeParameterType::EQUATION
,
670 EnhancedCustomShapeParameterType::EQUATION
,
674 EnhancedCustomShapeParameterType::EQUATION
,
675 EnhancedCustomShapeParameterType::EQUATION
,
679 EnhancedCustomShapeParameterType::EQUATION
,
680 EnhancedCustomShapeParameterType::EQUATION
,
684 EnhancedCustomShapeParameterType::EQUATION
,
685 EnhancedCustomShapeParameterType::EQUATION
,
689 EnhancedCustomShapeParameterType::EQUATION
,
690 EnhancedCustomShapeParameterType::EQUATION
,
694 EnhancedCustomShapeParameterType::EQUATION
,
695 EnhancedCustomShapeParameterType::EQUATION
,
699 aPropSequence
[0].Value
= makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData
), aData
));
702 aPropSequence
[1].Name
= "Segments";
703 static const sal_uInt16 nValues
[] = {
726 aPropSequence
[1].Value
= makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues
), nValues
));
729 aPropSequence
[2].Name
= "TextFrames";
730 Sequence
< EnhancedCustomShapeTextFrame
> aTextFrameSeq (1);
732 EnhancedCustomShapeTextFrame aTextFrame
;
734 static const CustomShapeProvider::ParameterPairData aData
=
736 EnhancedCustomShapeParameterType::EQUATION
,
737 EnhancedCustomShapeParameterType::EQUATION
,
740 aTextFrame
.TopLeft
= createParameterPair(&aData
);
743 static const CustomShapeProvider::ParameterPairData aData
=
745 EnhancedCustomShapeParameterType::EQUATION
,
746 EnhancedCustomShapeParameterType::EQUATION
,
749 aTextFrame
.BottomRight
= createParameterPair(&aData
);
751 aTextFrameSeq
[0] = aTextFrame
;
753 aPropSequence
[2].Value
= makeAny (aTextFrameSeq
);
755 aPropertyMap
[PROP_Path
] <<= aPropSequence
;
758 awt::Rectangle aRectangle
;
761 aRectangle
.Width
= 0;
762 aRectangle
.Height
= 0;
763 aPropertyMap
[PROP_ViewBox
] <<= aRectangle
;
765 aPropertyMap
[ PROP_Type
] <<= OUString("ooxml-plaqueTabs");
770 class ShapeCcurvedLeftArrow
: public CustomShapeProvider
772 virtual PropertyMap
getProperties()
774 PropertyMap aPropertyMap
;
777 Sequence
< EnhancedCustomShapeAdjustmentValue
> aAdjSequence (3);
779 Any
aAny ((sal_Int32
) 25000);
780 aAdjSequence
[0].Value
= aAny
;
781 aAdjSequence
[0].Name
= "adj1";
784 Any
aAny ((sal_Int32
) 50000);
785 aAdjSequence
[1].Value
= aAny
;
786 aAdjSequence
[1].Name
= "adj2";
789 Any
aAny ((sal_Int32
) 25000);
790 aAdjSequence
[2].Value
= aAny
;
791 aAdjSequence
[2].Name
= "adj3";
793 aPropertyMap
[PROP_AdjustmentValues
] <<= aAdjSequence
;
796 static const char *aStrings
[] = {
797 "min(logwidth,logheight)",
798 "50000*logheight/?0 ",
799 "if(0-$1 ,0,if(?1 -$1 ,$1 ,?1 ))",
800 "if(0-$0 ,0,if(?2 -$0 ,$0 ,?2 ))",
813 "if(0-$2 ,0,if(?15 -$2 ,$2 ,?15 ))",
816 "logwidth*logwidth/1",
830 "(10800000*atan2(?23 ,?17 ))/pi",
835 "(10800000*atan2(?37 ,?14 ))/pi",
847 "(-5400000)/60000.0",
848 "(16200000)/60000.0",
851 "(-5400000)/60000.0",
852 "(16200000)/60000.0",
859 aPropertyMap
[PROP_Equations
] <<= createStringSequence( SAL_N_ELEMENTS( aStrings
), aStrings
);
862 Sequence
< Sequence
< PropertyValue
> > aPropSequenceSequence (3);
864 Sequence
< PropertyValue
> aPropSequence (4);
866 aPropSequence
[0].Name
= "Position";
867 static const CustomShapeProvider::ParameterPairData aData
=
869 EnhancedCustomShapeParameterType::EQUATION
,
870 EnhancedCustomShapeParameterType::EQUATION
,
873 aPropSequence
[0].Value
= makeAny (createParameterPair(&aData
));
876 aPropSequence
[1].Name
= "RangeYMaximum";
877 EnhancedCustomShapeParameter aParameter
;
878 Any
aAny ((sal_Int32
) 2);
879 aParameter
.Value
= aAny
;
880 aParameter
.Type
= EnhancedCustomShapeParameterType::EQUATION
;
881 aPropSequence
[1].Value
= makeAny (aParameter
);
884 aPropSequence
[2].Name
= "RangeYMinimum";
885 EnhancedCustomShapeParameter aParameter
;
886 Any
aAny ((sal_Int32
) 0);
887 aParameter
.Value
= aAny
;
888 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
889 aPropSequence
[2].Value
= makeAny (aParameter
);
892 aPropSequence
[3].Name
= "RefY";
893 Any
aAny ((sal_Int32
) 0);
894 aPropSequence
[3].Value
= makeAny (aAny
);
896 aPropSequenceSequence
[0] = aPropSequence
;
899 Sequence
< PropertyValue
> aPropSequence (4);
901 aPropSequence
[0].Name
= "Position";
902 static const CustomShapeProvider::ParameterPairData aData
=
904 EnhancedCustomShapeParameterType::EQUATION
,
905 EnhancedCustomShapeParameterType::EQUATION
,
908 aPropSequence
[0].Value
= makeAny (createParameterPair(&aData
));
911 aPropSequence
[1].Name
= "RangeYMaximum";
912 EnhancedCustomShapeParameter aParameter
;
913 Any
aAny ((sal_Int32
) 1);
914 aParameter
.Value
= aAny
;
915 aParameter
.Type
= EnhancedCustomShapeParameterType::EQUATION
;
916 aPropSequence
[1].Value
= makeAny (aParameter
);
919 aPropSequence
[2].Name
= "RangeYMinimum";
920 EnhancedCustomShapeParameter aParameter
;
921 Any
aAny ((sal_Int32
) 0);
922 aParameter
.Value
= aAny
;
923 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
924 aPropSequence
[2].Value
= makeAny (aParameter
);
927 aPropSequence
[3].Name
= "RefY";
928 Any
aAny ((sal_Int32
) 1);
929 aPropSequence
[3].Value
= makeAny (aAny
);
931 aPropSequenceSequence
[1] = aPropSequence
;
934 Sequence
< PropertyValue
> aPropSequence (4);
936 aPropSequence
[0].Name
= "Position";
937 static const CustomShapeProvider::ParameterPairData aData
=
939 EnhancedCustomShapeParameterType::EQUATION
,
940 EnhancedCustomShapeParameterType::EQUATION
,
943 aPropSequence
[0].Value
= makeAny (createParameterPair(&aData
));
946 aPropSequence
[1].Name
= "RangeXMaximum";
947 EnhancedCustomShapeParameter aParameter
;
948 Any
aAny ((sal_Int32
) 15);
949 aParameter
.Value
= aAny
;
950 aParameter
.Type
= EnhancedCustomShapeParameterType::EQUATION
;
951 aPropSequence
[1].Value
= makeAny (aParameter
);
954 aPropSequence
[2].Name
= "RangeXMinimum";
955 EnhancedCustomShapeParameter aParameter
;
956 Any
aAny ((sal_Int32
) 0);
957 aParameter
.Value
= aAny
;
958 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
959 aPropSequence
[2].Value
= makeAny (aParameter
);
962 aPropSequence
[3].Name
= "RefX";
963 Any
aAny ((sal_Int32
) 2);
964 aPropSequence
[3].Value
= makeAny (aAny
);
966 aPropSequenceSequence
[2] = aPropSequence
;
968 aPropertyMap
[PROP_Handles
] <<= aPropSequenceSequence
;
971 aPropertyMap
[PROP_MirroredX
] <<= Any ((sal_Bool
) sal_False
);
974 aPropertyMap
[PROP_MirroredY
] <<= Any ((sal_Bool
) sal_False
);
977 Sequence
< PropertyValue
> aPropSequence (3);
979 aPropSequence
[0].Name
= "Coordinates";
980 static const CustomShapeProvider::ParameterPairData aData
[] = {
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::EQUATION
,
1033 EnhancedCustomShapeParameterType::EQUATION
,
1037 EnhancedCustomShapeParameterType::NORMAL
,
1038 EnhancedCustomShapeParameterType::NORMAL
,
1042 EnhancedCustomShapeParameterType::EQUATION
,
1043 EnhancedCustomShapeParameterType::EQUATION
,
1047 EnhancedCustomShapeParameterType::EQUATION
,
1048 EnhancedCustomShapeParameterType::EQUATION
,
1052 EnhancedCustomShapeParameterType::EQUATION
,
1053 EnhancedCustomShapeParameterType::EQUATION
,
1057 EnhancedCustomShapeParameterType::EQUATION
,
1058 EnhancedCustomShapeParameterType::EQUATION
,
1062 EnhancedCustomShapeParameterType::EQUATION
,
1063 EnhancedCustomShapeParameterType::EQUATION
,
1067 EnhancedCustomShapeParameterType::NORMAL
,
1068 EnhancedCustomShapeParameterType::NORMAL
,
1072 EnhancedCustomShapeParameterType::EQUATION
,
1073 EnhancedCustomShapeParameterType::EQUATION
,
1077 EnhancedCustomShapeParameterType::EQUATION
,
1078 EnhancedCustomShapeParameterType::EQUATION
,
1082 EnhancedCustomShapeParameterType::EQUATION
,
1083 EnhancedCustomShapeParameterType::EQUATION
,
1087 EnhancedCustomShapeParameterType::EQUATION
,
1088 EnhancedCustomShapeParameterType::EQUATION
,
1092 EnhancedCustomShapeParameterType::EQUATION
,
1093 EnhancedCustomShapeParameterType::EQUATION
,
1097 EnhancedCustomShapeParameterType::EQUATION
,
1098 EnhancedCustomShapeParameterType::EQUATION
,
1102 EnhancedCustomShapeParameterType::NORMAL
,
1103 EnhancedCustomShapeParameterType::EQUATION
,
1107 EnhancedCustomShapeParameterType::EQUATION
,
1108 EnhancedCustomShapeParameterType::EQUATION
,
1112 EnhancedCustomShapeParameterType::EQUATION
,
1113 EnhancedCustomShapeParameterType::EQUATION
,
1117 EnhancedCustomShapeParameterType::EQUATION
,
1118 EnhancedCustomShapeParameterType::EQUATION
,
1122 EnhancedCustomShapeParameterType::EQUATION
,
1123 EnhancedCustomShapeParameterType::EQUATION
,
1127 aPropSequence
[0].Value
= makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData
), aData
));
1130 aPropSequence
[1].Name
= "Segments";
1131 static const sal_uInt16 nValues
[] = {
1159 aPropSequence
[1].Value
= makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues
), nValues
));
1162 aPropSequence
[2].Name
= "TextFrames";
1163 Sequence
< EnhancedCustomShapeTextFrame
> aTextFrameSeq (1);
1165 EnhancedCustomShapeTextFrame aTextFrame
;
1167 static const CustomShapeProvider::ParameterPairData aData
=
1169 EnhancedCustomShapeParameterType::NORMAL
,
1170 EnhancedCustomShapeParameterType::NORMAL
,
1173 aTextFrame
.TopLeft
= createParameterPair(&aData
);
1176 static const CustomShapeProvider::ParameterPairData aData
=
1178 EnhancedCustomShapeParameterType::EQUATION
,
1179 EnhancedCustomShapeParameterType::EQUATION
,
1182 aTextFrame
.BottomRight
= createParameterPair(&aData
);
1184 aTextFrameSeq
[0] = aTextFrame
;
1186 aPropSequence
[2].Value
= makeAny (aTextFrameSeq
);
1188 aPropertyMap
[PROP_Path
] <<= aPropSequence
;
1191 awt::Rectangle aRectangle
;
1194 aRectangle
.Width
= 0;
1195 aRectangle
.Height
= 0;
1196 aPropertyMap
[PROP_ViewBox
] <<= aRectangle
;
1198 aPropertyMap
[ PROP_Type
] <<= OUString("ooxml-curvedLeftArrow");
1200 return aPropertyMap
;
1203 class ShapeCoctagon
: public CustomShapeProvider
1205 virtual PropertyMap
getProperties()
1207 PropertyMap aPropertyMap
;
1210 Sequence
< EnhancedCustomShapeAdjustmentValue
> aAdjSequence (1);
1212 Any
aAny ((sal_Int32
) 29289);
1213 aAdjSequence
[0].Value
= aAny
;
1214 aAdjSequence
[0].Name
= "adj";
1216 aPropertyMap
[PROP_AdjustmentValues
] <<= aAdjSequence
;
1219 static const char *aStrings
[] = {
1220 "if(0-$0 ,0,if(50000-$0 ,$0 ,50000))",
1221 "min(logwidth,logheight)",
1231 aPropertyMap
[PROP_Equations
] <<= createStringSequence( SAL_N_ELEMENTS( aStrings
), aStrings
);
1234 Sequence
< Sequence
< PropertyValue
> > aPropSequenceSequence (1);
1236 Sequence
< PropertyValue
> aPropSequence (4);
1238 aPropSequence
[0].Name
= "Position";
1239 static const CustomShapeProvider::ParameterPairData aData
=
1241 EnhancedCustomShapeParameterType::EQUATION
,
1242 EnhancedCustomShapeParameterType::NORMAL
,
1245 aPropSequence
[0].Value
= makeAny (createParameterPair(&aData
));
1248 aPropSequence
[1].Name
= "RangeXMaximum";
1249 EnhancedCustomShapeParameter aParameter
;
1250 Any
aAny ((sal_Int32
) 50000);
1251 aParameter
.Value
= aAny
;
1252 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
1253 aPropSequence
[1].Value
= makeAny (aParameter
);
1256 aPropSequence
[2].Name
= "RangeXMinimum";
1257 EnhancedCustomShapeParameter aParameter
;
1258 Any
aAny ((sal_Int32
) 0);
1259 aParameter
.Value
= aAny
;
1260 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
1261 aPropSequence
[2].Value
= makeAny (aParameter
);
1264 aPropSequence
[3].Name
= "RefX";
1265 Any
aAny ((sal_Int32
) 0);
1266 aPropSequence
[3].Value
= makeAny (aAny
);
1268 aPropSequenceSequence
[0] = aPropSequence
;
1270 aPropertyMap
[PROP_Handles
] <<= aPropSequenceSequence
;
1273 aPropertyMap
[PROP_MirroredX
] <<= Any ((sal_Bool
) sal_False
);
1276 aPropertyMap
[PROP_MirroredY
] <<= Any ((sal_Bool
) sal_False
);
1279 Sequence
< PropertyValue
> aPropSequence (3);
1281 aPropSequence
[0].Name
= "Coordinates";
1282 static const CustomShapeProvider::ParameterPairData aData
[] = {
1284 EnhancedCustomShapeParameterType::NORMAL
,
1285 EnhancedCustomShapeParameterType::EQUATION
,
1289 EnhancedCustomShapeParameterType::EQUATION
,
1290 EnhancedCustomShapeParameterType::NORMAL
,
1294 EnhancedCustomShapeParameterType::EQUATION
,
1295 EnhancedCustomShapeParameterType::NORMAL
,
1299 EnhancedCustomShapeParameterType::EQUATION
,
1300 EnhancedCustomShapeParameterType::EQUATION
,
1304 EnhancedCustomShapeParameterType::EQUATION
,
1305 EnhancedCustomShapeParameterType::EQUATION
,
1309 EnhancedCustomShapeParameterType::EQUATION
,
1310 EnhancedCustomShapeParameterType::EQUATION
,
1314 EnhancedCustomShapeParameterType::EQUATION
,
1315 EnhancedCustomShapeParameterType::EQUATION
,
1319 EnhancedCustomShapeParameterType::NORMAL
,
1320 EnhancedCustomShapeParameterType::EQUATION
,
1324 aPropSequence
[0].Value
= makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData
), aData
));
1327 aPropSequence
[1].Name
= "Segments";
1328 static const sal_uInt16 nValues
[] = {
1335 aPropSequence
[1].Value
= makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues
), nValues
));
1338 aPropSequence
[2].Name
= "TextFrames";
1339 Sequence
< EnhancedCustomShapeTextFrame
> aTextFrameSeq (1);
1341 EnhancedCustomShapeTextFrame aTextFrame
;
1343 static const CustomShapeProvider::ParameterPairData aData
=
1345 EnhancedCustomShapeParameterType::EQUATION
,
1346 EnhancedCustomShapeParameterType::EQUATION
,
1349 aTextFrame
.TopLeft
= createParameterPair(&aData
);
1352 static const CustomShapeProvider::ParameterPairData aData
=
1354 EnhancedCustomShapeParameterType::EQUATION
,
1355 EnhancedCustomShapeParameterType::EQUATION
,
1358 aTextFrame
.BottomRight
= createParameterPair(&aData
);
1360 aTextFrameSeq
[0] = aTextFrame
;
1362 aPropSequence
[2].Value
= makeAny (aTextFrameSeq
);
1364 aPropertyMap
[PROP_Path
] <<= aPropSequence
;
1367 awt::Rectangle aRectangle
;
1370 aRectangle
.Width
= 0;
1371 aRectangle
.Height
= 0;
1372 aPropertyMap
[PROP_ViewBox
] <<= aRectangle
;
1374 aPropertyMap
[ PROP_Type
] <<= OUString("ooxml-octagon");
1376 return aPropertyMap
;
1379 class ShapeCleftRightRibbon
: public CustomShapeProvider
1381 virtual PropertyMap
getProperties()
1383 PropertyMap aPropertyMap
;
1386 Sequence
< EnhancedCustomShapeAdjustmentValue
> aAdjSequence (3);
1388 Any
aAny ((sal_Int32
) 50000);
1389 aAdjSequence
[0].Value
= aAny
;
1390 aAdjSequence
[0].Name
= "adj1";
1393 Any
aAny ((sal_Int32
) 50000);
1394 aAdjSequence
[1].Value
= aAny
;
1395 aAdjSequence
[1].Name
= "adj2";
1398 Any
aAny ((sal_Int32
) 16667);
1399 aAdjSequence
[2].Value
= aAny
;
1400 aAdjSequence
[2].Name
= "adj3";
1402 aPropertyMap
[PROP_AdjustmentValues
] <<= aAdjSequence
;
1405 static const char *aStrings
[] = {
1406 "if(0-$2 ,0,if(33333-$2 ,$2 ,33333))",
1408 "if(0-$0 ,0,if(?1 -$0 ,$0 ,?1 ))",
1412 "min(logwidth,logheight)",
1414 "if(0-$1 ,0,if(?7 -$1 ,$1 ,?7 ))",
1417 "logheight*?2 /200000",
1418 "logheight*?0 /-200000",
1436 "(16200000)/60000.0",
1437 "(10800000)/60000.0",
1438 "(16200000)/60000.0",
1439 "(-10800000)/60000.0",
1440 "(5400000)/60000.0",
1441 "(5400000)/60000.0",
1443 "(5400000)/60000.0",
1444 "(16200000)/60000.0",
1445 "(-10800000)/60000.0",
1446 "(16200000)/60000.0",
1447 "(10800000)/60000.0",
1448 "(16200000)/60000.0",
1449 "(-10800000)/60000.0",
1450 "(5400000)/60000.0",
1453 aPropertyMap
[PROP_Equations
] <<= createStringSequence( SAL_N_ELEMENTS( aStrings
), aStrings
);
1456 Sequence
< Sequence
< PropertyValue
> > aPropSequenceSequence (3);
1458 Sequence
< PropertyValue
> aPropSequence (4);
1460 aPropSequence
[0].Name
= "Position";
1461 static const CustomShapeProvider::ParameterPairData aData
=
1463 EnhancedCustomShapeParameterType::EQUATION
,
1464 EnhancedCustomShapeParameterType::EQUATION
,
1467 aPropSequence
[0].Value
= makeAny (createParameterPair(&aData
));
1470 aPropSequence
[1].Name
= "RangeYMaximum";
1471 EnhancedCustomShapeParameter aParameter
;
1472 Any
aAny ((sal_Int32
) 1);
1473 aParameter
.Value
= aAny
;
1474 aParameter
.Type
= EnhancedCustomShapeParameterType::EQUATION
;
1475 aPropSequence
[1].Value
= makeAny (aParameter
);
1478 aPropSequence
[2].Name
= "RangeYMinimum";
1479 EnhancedCustomShapeParameter aParameter
;
1480 Any
aAny ((sal_Int32
) 0);
1481 aParameter
.Value
= aAny
;
1482 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
1483 aPropSequence
[2].Value
= makeAny (aParameter
);
1486 aPropSequence
[3].Name
= "RefY";
1487 Any
aAny ((sal_Int32
) 0);
1488 aPropSequence
[3].Value
= makeAny (aAny
);
1490 aPropSequenceSequence
[0] = aPropSequence
;
1493 Sequence
< PropertyValue
> aPropSequence (4);
1495 aPropSequence
[0].Name
= "Position";
1496 static const CustomShapeProvider::ParameterPairData aData
=
1498 EnhancedCustomShapeParameterType::EQUATION
,
1499 EnhancedCustomShapeParameterType::NORMAL
,
1502 aPropSequence
[0].Value
= makeAny (createParameterPair(&aData
));
1505 aPropSequence
[1].Name
= "RangeXMaximum";
1506 EnhancedCustomShapeParameter aParameter
;
1507 Any
aAny ((sal_Int32
) 7);
1508 aParameter
.Value
= aAny
;
1509 aParameter
.Type
= EnhancedCustomShapeParameterType::EQUATION
;
1510 aPropSequence
[1].Value
= makeAny (aParameter
);
1513 aPropSequence
[2].Name
= "RangeXMinimum";
1514 EnhancedCustomShapeParameter aParameter
;
1515 Any
aAny ((sal_Int32
) 0);
1516 aParameter
.Value
= aAny
;
1517 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
1518 aPropSequence
[2].Value
= makeAny (aParameter
);
1521 aPropSequence
[3].Name
= "RefX";
1522 Any
aAny ((sal_Int32
) 1);
1523 aPropSequence
[3].Value
= makeAny (aAny
);
1525 aPropSequenceSequence
[1] = aPropSequence
;
1528 Sequence
< PropertyValue
> aPropSequence (4);
1530 aPropSequence
[0].Name
= "Position";
1531 static const CustomShapeProvider::ParameterPairData aData
=
1533 EnhancedCustomShapeParameterType::EQUATION
,
1534 EnhancedCustomShapeParameterType::EQUATION
,
1537 aPropSequence
[0].Value
= makeAny (createParameterPair(&aData
));
1540 aPropSequence
[1].Name
= "RangeYMaximum";
1541 EnhancedCustomShapeParameter aParameter
;
1542 Any
aAny ((sal_Int32
) 33333);
1543 aParameter
.Value
= aAny
;
1544 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
1545 aPropSequence
[1].Value
= makeAny (aParameter
);
1548 aPropSequence
[2].Name
= "RangeYMinimum";
1549 EnhancedCustomShapeParameter aParameter
;
1550 Any
aAny ((sal_Int32
) 0);
1551 aParameter
.Value
= aAny
;
1552 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
1553 aPropSequence
[2].Value
= makeAny (aParameter
);
1556 aPropSequence
[3].Name
= "RefY";
1557 Any
aAny ((sal_Int32
) 2);
1558 aPropSequence
[3].Value
= makeAny (aAny
);
1560 aPropSequenceSequence
[2] = aPropSequence
;
1562 aPropertyMap
[PROP_Handles
] <<= aPropSequenceSequence
;
1565 aPropertyMap
[PROP_MirroredX
] <<= Any ((sal_Bool
) sal_False
);
1568 aPropertyMap
[PROP_MirroredY
] <<= Any ((sal_Bool
) sal_False
);
1571 Sequence
< PropertyValue
> aPropSequence (3);
1573 aPropSequence
[0].Name
= "Coordinates";
1574 static const CustomShapeProvider::ParameterPairData aData
[] = {
1576 EnhancedCustomShapeParameterType::NORMAL
,
1577 EnhancedCustomShapeParameterType::EQUATION
,
1581 EnhancedCustomShapeParameterType::EQUATION
,
1582 EnhancedCustomShapeParameterType::NORMAL
,
1586 EnhancedCustomShapeParameterType::EQUATION
,
1587 EnhancedCustomShapeParameterType::EQUATION
,
1591 EnhancedCustomShapeParameterType::EQUATION
,
1592 EnhancedCustomShapeParameterType::EQUATION
,
1596 EnhancedCustomShapeParameterType::EQUATION
,
1597 EnhancedCustomShapeParameterType::EQUATION
,
1601 EnhancedCustomShapeParameterType::EQUATION
,
1602 EnhancedCustomShapeParameterType::EQUATION
,
1606 EnhancedCustomShapeParameterType::EQUATION
,
1607 EnhancedCustomShapeParameterType::EQUATION
,
1611 EnhancedCustomShapeParameterType::EQUATION
,
1612 EnhancedCustomShapeParameterType::EQUATION
,
1616 EnhancedCustomShapeParameterType::EQUATION
,
1617 EnhancedCustomShapeParameterType::EQUATION
,
1621 EnhancedCustomShapeParameterType::EQUATION
,
1622 EnhancedCustomShapeParameterType::EQUATION
,
1626 EnhancedCustomShapeParameterType::EQUATION
,
1627 EnhancedCustomShapeParameterType::EQUATION
,
1631 EnhancedCustomShapeParameterType::EQUATION
,
1632 EnhancedCustomShapeParameterType::EQUATION
,
1636 EnhancedCustomShapeParameterType::EQUATION
,
1637 EnhancedCustomShapeParameterType::EQUATION
,
1641 EnhancedCustomShapeParameterType::EQUATION
,
1642 EnhancedCustomShapeParameterType::EQUATION
,
1646 EnhancedCustomShapeParameterType::EQUATION
,
1647 EnhancedCustomShapeParameterType::EQUATION
,
1651 EnhancedCustomShapeParameterType::EQUATION
,
1652 EnhancedCustomShapeParameterType::EQUATION
,
1656 EnhancedCustomShapeParameterType::EQUATION
,
1657 EnhancedCustomShapeParameterType::EQUATION
,
1661 EnhancedCustomShapeParameterType::EQUATION
,
1662 EnhancedCustomShapeParameterType::EQUATION
,
1666 EnhancedCustomShapeParameterType::EQUATION
,
1667 EnhancedCustomShapeParameterType::EQUATION
,
1671 EnhancedCustomShapeParameterType::EQUATION
,
1672 EnhancedCustomShapeParameterType::EQUATION
,
1676 EnhancedCustomShapeParameterType::EQUATION
,
1677 EnhancedCustomShapeParameterType::EQUATION
,
1681 EnhancedCustomShapeParameterType::EQUATION
,
1682 EnhancedCustomShapeParameterType::EQUATION
,
1686 EnhancedCustomShapeParameterType::EQUATION
,
1687 EnhancedCustomShapeParameterType::EQUATION
,
1691 EnhancedCustomShapeParameterType::EQUATION
,
1692 EnhancedCustomShapeParameterType::EQUATION
,
1696 EnhancedCustomShapeParameterType::EQUATION
,
1697 EnhancedCustomShapeParameterType::EQUATION
,
1701 EnhancedCustomShapeParameterType::NORMAL
,
1702 EnhancedCustomShapeParameterType::EQUATION
,
1706 EnhancedCustomShapeParameterType::EQUATION
,
1707 EnhancedCustomShapeParameterType::NORMAL
,
1711 EnhancedCustomShapeParameterType::EQUATION
,
1712 EnhancedCustomShapeParameterType::EQUATION
,
1716 EnhancedCustomShapeParameterType::EQUATION
,
1717 EnhancedCustomShapeParameterType::EQUATION
,
1721 EnhancedCustomShapeParameterType::EQUATION
,
1722 EnhancedCustomShapeParameterType::EQUATION
,
1726 EnhancedCustomShapeParameterType::EQUATION
,
1727 EnhancedCustomShapeParameterType::EQUATION
,
1731 EnhancedCustomShapeParameterType::EQUATION
,
1732 EnhancedCustomShapeParameterType::EQUATION
,
1736 EnhancedCustomShapeParameterType::EQUATION
,
1737 EnhancedCustomShapeParameterType::EQUATION
,
1741 EnhancedCustomShapeParameterType::EQUATION
,
1742 EnhancedCustomShapeParameterType::EQUATION
,
1746 EnhancedCustomShapeParameterType::EQUATION
,
1747 EnhancedCustomShapeParameterType::EQUATION
,
1751 EnhancedCustomShapeParameterType::EQUATION
,
1752 EnhancedCustomShapeParameterType::EQUATION
,
1756 EnhancedCustomShapeParameterType::EQUATION
,
1757 EnhancedCustomShapeParameterType::EQUATION
,
1761 EnhancedCustomShapeParameterType::EQUATION
,
1762 EnhancedCustomShapeParameterType::EQUATION
,
1766 EnhancedCustomShapeParameterType::EQUATION
,
1767 EnhancedCustomShapeParameterType::EQUATION
,
1771 EnhancedCustomShapeParameterType::EQUATION
,
1772 EnhancedCustomShapeParameterType::EQUATION
,
1776 EnhancedCustomShapeParameterType::EQUATION
,
1777 EnhancedCustomShapeParameterType::EQUATION
,
1781 EnhancedCustomShapeParameterType::EQUATION
,
1782 EnhancedCustomShapeParameterType::EQUATION
,
1786 EnhancedCustomShapeParameterType::EQUATION
,
1787 EnhancedCustomShapeParameterType::EQUATION
,
1791 EnhancedCustomShapeParameterType::EQUATION
,
1792 EnhancedCustomShapeParameterType::EQUATION
,
1796 EnhancedCustomShapeParameterType::EQUATION
,
1797 EnhancedCustomShapeParameterType::EQUATION
,
1801 EnhancedCustomShapeParameterType::EQUATION
,
1802 EnhancedCustomShapeParameterType::EQUATION
,
1806 EnhancedCustomShapeParameterType::EQUATION
,
1807 EnhancedCustomShapeParameterType::EQUATION
,
1811 EnhancedCustomShapeParameterType::EQUATION
,
1812 EnhancedCustomShapeParameterType::EQUATION
,
1816 aPropSequence
[0].Value
= makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData
), aData
));
1819 aPropSequence
[1].Name
= "Segments";
1820 static const sal_uInt16 nValues
[] = {
1852 aPropSequence
[1].Value
= makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues
), nValues
));
1855 aPropSequence
[2].Name
= "TextFrames";
1856 Sequence
< EnhancedCustomShapeTextFrame
> aTextFrameSeq (1);
1858 EnhancedCustomShapeTextFrame aTextFrame
;
1860 static const CustomShapeProvider::ParameterPairData aData
=
1862 EnhancedCustomShapeParameterType::EQUATION
,
1863 EnhancedCustomShapeParameterType::EQUATION
,
1866 aTextFrame
.TopLeft
= createParameterPair(&aData
);
1869 static const CustomShapeProvider::ParameterPairData aData
=
1871 EnhancedCustomShapeParameterType::EQUATION
,
1872 EnhancedCustomShapeParameterType::EQUATION
,
1875 aTextFrame
.BottomRight
= createParameterPair(&aData
);
1877 aTextFrameSeq
[0] = aTextFrame
;
1879 aPropSequence
[2].Value
= makeAny (aTextFrameSeq
);
1881 aPropertyMap
[PROP_Path
] <<= aPropSequence
;
1884 awt::Rectangle aRectangle
;
1887 aRectangle
.Width
= 0;
1888 aRectangle
.Height
= 0;
1889 aPropertyMap
[PROP_ViewBox
] <<= aRectangle
;
1891 aPropertyMap
[ PROP_Type
] <<= OUString("ooxml-leftRightRibbon");
1893 return aPropertyMap
;
1896 class ShapeCactionButtonInformation
: public CustomShapeProvider
1898 virtual PropertyMap
getProperties()
1900 PropertyMap aPropertyMap
;
1903 aPropertyMap
[PROP_AdjustmentValues
] <<= Sequence
< OUString
>(0);
1906 static const char *aStrings
[] = {
1907 "min(logwidth,logheight)",
1934 "(16200000)/60000.0",
1935 "(21600000)/60000.0",
1936 "(16200000)/60000.0",
1937 "(21600000)/60000.0",
1938 "(16200000)/60000.0",
1939 "(21600000)/60000.0",
1940 "(16200000)/60000.0",
1941 "(21600000)/60000.0",
1942 "(16200000)/60000.0",
1943 "(21600000)/60000.0",
1944 "(16200000)/60000.0",
1945 "(21600000)/60000.0"
1947 aPropertyMap
[PROP_Equations
] <<= createStringSequence( SAL_N_ELEMENTS( aStrings
), aStrings
);
1950 aPropertyMap
[PROP_Handles
] <<= Sequence
< OUString
>(0);
1953 aPropertyMap
[PROP_MirroredX
] <<= Any ((sal_Bool
) sal_False
);
1956 aPropertyMap
[PROP_MirroredY
] <<= Any ((sal_Bool
) sal_False
);
1959 Sequence
< PropertyValue
> aPropSequence (3);
1961 aPropSequence
[0].Name
= "Coordinates";
1962 static const CustomShapeProvider::ParameterPairData aData
[] = {
1964 EnhancedCustomShapeParameterType::NORMAL
,
1965 EnhancedCustomShapeParameterType::NORMAL
,
1969 EnhancedCustomShapeParameterType::EQUATION
,
1970 EnhancedCustomShapeParameterType::NORMAL
,
1974 EnhancedCustomShapeParameterType::EQUATION
,
1975 EnhancedCustomShapeParameterType::EQUATION
,
1979 EnhancedCustomShapeParameterType::NORMAL
,
1980 EnhancedCustomShapeParameterType::EQUATION
,
1984 EnhancedCustomShapeParameterType::EQUATION
,
1985 EnhancedCustomShapeParameterType::EQUATION
,
1989 EnhancedCustomShapeParameterType::EQUATION
,
1990 EnhancedCustomShapeParameterType::EQUATION
,
1994 EnhancedCustomShapeParameterType::EQUATION
,
1995 EnhancedCustomShapeParameterType::EQUATION
,
1999 EnhancedCustomShapeParameterType::EQUATION
,
2000 EnhancedCustomShapeParameterType::EQUATION
,
2004 EnhancedCustomShapeParameterType::EQUATION
,
2005 EnhancedCustomShapeParameterType::EQUATION
,
2009 EnhancedCustomShapeParameterType::EQUATION
,
2010 EnhancedCustomShapeParameterType::EQUATION
,
2014 EnhancedCustomShapeParameterType::EQUATION
,
2015 EnhancedCustomShapeParameterType::EQUATION
,
2019 EnhancedCustomShapeParameterType::EQUATION
,
2020 EnhancedCustomShapeParameterType::EQUATION
,
2024 EnhancedCustomShapeParameterType::EQUATION
,
2025 EnhancedCustomShapeParameterType::EQUATION
,
2029 EnhancedCustomShapeParameterType::EQUATION
,
2030 EnhancedCustomShapeParameterType::EQUATION
,
2034 EnhancedCustomShapeParameterType::EQUATION
,
2035 EnhancedCustomShapeParameterType::EQUATION
,
2039 EnhancedCustomShapeParameterType::EQUATION
,
2040 EnhancedCustomShapeParameterType::EQUATION
,
2044 EnhancedCustomShapeParameterType::EQUATION
,
2045 EnhancedCustomShapeParameterType::EQUATION
,
2049 EnhancedCustomShapeParameterType::EQUATION
,
2050 EnhancedCustomShapeParameterType::EQUATION
,
2054 EnhancedCustomShapeParameterType::EQUATION
,
2055 EnhancedCustomShapeParameterType::EQUATION
,
2059 EnhancedCustomShapeParameterType::EQUATION
,
2060 EnhancedCustomShapeParameterType::EQUATION
,
2064 EnhancedCustomShapeParameterType::EQUATION
,
2065 EnhancedCustomShapeParameterType::EQUATION
,
2069 EnhancedCustomShapeParameterType::EQUATION
,
2070 EnhancedCustomShapeParameterType::EQUATION
,
2074 EnhancedCustomShapeParameterType::EQUATION
,
2075 EnhancedCustomShapeParameterType::EQUATION
,
2079 EnhancedCustomShapeParameterType::EQUATION
,
2080 EnhancedCustomShapeParameterType::EQUATION
,
2084 EnhancedCustomShapeParameterType::EQUATION
,
2085 EnhancedCustomShapeParameterType::EQUATION
,
2089 EnhancedCustomShapeParameterType::EQUATION
,
2090 EnhancedCustomShapeParameterType::EQUATION
,
2094 EnhancedCustomShapeParameterType::EQUATION
,
2095 EnhancedCustomShapeParameterType::EQUATION
,
2099 EnhancedCustomShapeParameterType::EQUATION
,
2100 EnhancedCustomShapeParameterType::EQUATION
,
2104 EnhancedCustomShapeParameterType::EQUATION
,
2105 EnhancedCustomShapeParameterType::EQUATION
,
2109 EnhancedCustomShapeParameterType::EQUATION
,
2110 EnhancedCustomShapeParameterType::EQUATION
,
2114 EnhancedCustomShapeParameterType::EQUATION
,
2115 EnhancedCustomShapeParameterType::EQUATION
,
2119 EnhancedCustomShapeParameterType::EQUATION
,
2120 EnhancedCustomShapeParameterType::EQUATION
,
2124 EnhancedCustomShapeParameterType::EQUATION
,
2125 EnhancedCustomShapeParameterType::EQUATION
,
2129 EnhancedCustomShapeParameterType::EQUATION
,
2130 EnhancedCustomShapeParameterType::EQUATION
,
2134 EnhancedCustomShapeParameterType::EQUATION
,
2135 EnhancedCustomShapeParameterType::EQUATION
,
2139 EnhancedCustomShapeParameterType::EQUATION
,
2140 EnhancedCustomShapeParameterType::EQUATION
,
2144 EnhancedCustomShapeParameterType::EQUATION
,
2145 EnhancedCustomShapeParameterType::EQUATION
,
2149 EnhancedCustomShapeParameterType::EQUATION
,
2150 EnhancedCustomShapeParameterType::EQUATION
,
2154 EnhancedCustomShapeParameterType::EQUATION
,
2155 EnhancedCustomShapeParameterType::EQUATION
,
2159 EnhancedCustomShapeParameterType::EQUATION
,
2160 EnhancedCustomShapeParameterType::EQUATION
,
2164 EnhancedCustomShapeParameterType::EQUATION
,
2165 EnhancedCustomShapeParameterType::EQUATION
,
2169 EnhancedCustomShapeParameterType::EQUATION
,
2170 EnhancedCustomShapeParameterType::EQUATION
,
2174 EnhancedCustomShapeParameterType::EQUATION
,
2175 EnhancedCustomShapeParameterType::EQUATION
,
2179 EnhancedCustomShapeParameterType::EQUATION
,
2180 EnhancedCustomShapeParameterType::EQUATION
,
2184 EnhancedCustomShapeParameterType::EQUATION
,
2185 EnhancedCustomShapeParameterType::EQUATION
,
2189 EnhancedCustomShapeParameterType::EQUATION
,
2190 EnhancedCustomShapeParameterType::EQUATION
,
2194 EnhancedCustomShapeParameterType::EQUATION
,
2195 EnhancedCustomShapeParameterType::EQUATION
,
2199 EnhancedCustomShapeParameterType::EQUATION
,
2200 EnhancedCustomShapeParameterType::EQUATION
,
2204 EnhancedCustomShapeParameterType::EQUATION
,
2205 EnhancedCustomShapeParameterType::EQUATION
,
2209 EnhancedCustomShapeParameterType::EQUATION
,
2210 EnhancedCustomShapeParameterType::EQUATION
,
2214 EnhancedCustomShapeParameterType::EQUATION
,
2215 EnhancedCustomShapeParameterType::EQUATION
,
2219 EnhancedCustomShapeParameterType::EQUATION
,
2220 EnhancedCustomShapeParameterType::EQUATION
,
2224 EnhancedCustomShapeParameterType::NORMAL
,
2225 EnhancedCustomShapeParameterType::NORMAL
,
2229 EnhancedCustomShapeParameterType::EQUATION
,
2230 EnhancedCustomShapeParameterType::NORMAL
,
2234 EnhancedCustomShapeParameterType::EQUATION
,
2235 EnhancedCustomShapeParameterType::EQUATION
,
2239 EnhancedCustomShapeParameterType::NORMAL
,
2240 EnhancedCustomShapeParameterType::EQUATION
,
2244 aPropSequence
[0].Value
= makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData
), aData
));
2247 aPropSequence
[1].Name
= "Segments";
2248 static const sal_uInt16 nValues
[] = {
2293 aPropSequence
[1].Value
= makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues
), nValues
));
2296 aPropSequence
[2].Name
= "TextFrames";
2297 Sequence
< EnhancedCustomShapeTextFrame
> aTextFrameSeq (1);
2299 EnhancedCustomShapeTextFrame aTextFrame
;
2301 static const CustomShapeProvider::ParameterPairData aData
=
2303 EnhancedCustomShapeParameterType::NORMAL
,
2304 EnhancedCustomShapeParameterType::NORMAL
,
2307 aTextFrame
.TopLeft
= createParameterPair(&aData
);
2310 static const CustomShapeProvider::ParameterPairData aData
=
2312 EnhancedCustomShapeParameterType::EQUATION
,
2313 EnhancedCustomShapeParameterType::EQUATION
,
2316 aTextFrame
.BottomRight
= createParameterPair(&aData
);
2318 aTextFrameSeq
[0] = aTextFrame
;
2320 aPropSequence
[2].Value
= makeAny (aTextFrameSeq
);
2322 aPropertyMap
[PROP_Path
] <<= aPropSequence
;
2325 awt::Rectangle aRectangle
;
2328 aRectangle
.Width
= 0;
2329 aRectangle
.Height
= 0;
2330 aPropertyMap
[PROP_ViewBox
] <<= aRectangle
;
2332 aPropertyMap
[ PROP_Type
] <<= OUString("ooxml-actionButtonInformation");
2334 return aPropertyMap
;
2337 class ShapeCbentConnector5
: public CustomShapeProvider
2339 virtual PropertyMap
getProperties()
2341 PropertyMap aPropertyMap
;
2344 Sequence
< EnhancedCustomShapeAdjustmentValue
> aAdjSequence (3);
2346 Any
aAny ((sal_Int32
) 50000);
2347 aAdjSequence
[0].Value
= aAny
;
2348 aAdjSequence
[0].Name
= "adj1";
2351 Any
aAny ((sal_Int32
) 50000);
2352 aAdjSequence
[1].Value
= aAny
;
2353 aAdjSequence
[1].Name
= "adj2";
2356 Any
aAny ((sal_Int32
) 50000);
2357 aAdjSequence
[2].Value
= aAny
;
2358 aAdjSequence
[2].Name
= "adj3";
2360 aPropertyMap
[PROP_AdjustmentValues
] <<= aAdjSequence
;
2363 static const char *aStrings
[] = {
2364 "logwidth*$0 /100000",
2365 "logwidth*$2 /100000",
2367 "logheight*$1 /100000",
2369 "(logheight+?3 )/2",
2373 aPropertyMap
[PROP_Equations
] <<= createStringSequence( SAL_N_ELEMENTS( aStrings
), aStrings
);
2376 Sequence
< Sequence
< PropertyValue
> > aPropSequenceSequence (3);
2378 Sequence
< PropertyValue
> aPropSequence (4);
2380 aPropSequence
[0].Name
= "Position";
2381 static const CustomShapeProvider::ParameterPairData aData
=
2383 EnhancedCustomShapeParameterType::EQUATION
,
2384 EnhancedCustomShapeParameterType::EQUATION
,
2387 aPropSequence
[0].Value
= makeAny (createParameterPair(&aData
));
2390 aPropSequence
[1].Name
= "RangeXMaximum";
2391 EnhancedCustomShapeParameter aParameter
;
2392 Any
aAny ((sal_Int32
) 2147483647);
2393 aParameter
.Value
= aAny
;
2394 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
2395 aPropSequence
[1].Value
= makeAny (aParameter
);
2398 aPropSequence
[2].Name
= "RangeXMinimum";
2399 EnhancedCustomShapeParameter aParameter
;
2400 Any
aAny ((sal_Int32
) -2147483647);
2401 aParameter
.Value
= aAny
;
2402 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
2403 aPropSequence
[2].Value
= makeAny (aParameter
);
2406 aPropSequence
[3].Name
= "RefX";
2407 Any
aAny ((sal_Int32
) 0);
2408 aPropSequence
[3].Value
= makeAny (aAny
);
2410 aPropSequenceSequence
[0] = aPropSequence
;
2413 Sequence
< PropertyValue
> aPropSequence (4);
2415 aPropSequence
[0].Name
= "Position";
2416 static const CustomShapeProvider::ParameterPairData aData
=
2418 EnhancedCustomShapeParameterType::EQUATION
,
2419 EnhancedCustomShapeParameterType::EQUATION
,
2422 aPropSequence
[0].Value
= makeAny (createParameterPair(&aData
));
2425 aPropSequence
[1].Name
= "RangeYMaximum";
2426 EnhancedCustomShapeParameter aParameter
;
2427 Any
aAny ((sal_Int32
) 2147483647);
2428 aParameter
.Value
= aAny
;
2429 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
2430 aPropSequence
[1].Value
= makeAny (aParameter
);
2433 aPropSequence
[2].Name
= "RangeYMinimum";
2434 EnhancedCustomShapeParameter aParameter
;
2435 Any
aAny ((sal_Int32
) -2147483647);
2436 aParameter
.Value
= aAny
;
2437 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
2438 aPropSequence
[2].Value
= makeAny (aParameter
);
2441 aPropSequence
[3].Name
= "RefY";
2442 Any
aAny ((sal_Int32
) 1);
2443 aPropSequence
[3].Value
= makeAny (aAny
);
2445 aPropSequenceSequence
[1] = aPropSequence
;
2448 Sequence
< PropertyValue
> aPropSequence (4);
2450 aPropSequence
[0].Name
= "Position";
2451 static const CustomShapeProvider::ParameterPairData aData
=
2453 EnhancedCustomShapeParameterType::EQUATION
,
2454 EnhancedCustomShapeParameterType::EQUATION
,
2457 aPropSequence
[0].Value
= makeAny (createParameterPair(&aData
));
2460 aPropSequence
[1].Name
= "RangeXMaximum";
2461 EnhancedCustomShapeParameter aParameter
;
2462 Any
aAny ((sal_Int32
) 2147483647);
2463 aParameter
.Value
= aAny
;
2464 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
2465 aPropSequence
[1].Value
= makeAny (aParameter
);
2468 aPropSequence
[2].Name
= "RangeXMinimum";
2469 EnhancedCustomShapeParameter aParameter
;
2470 Any
aAny ((sal_Int32
) -2147483647);
2471 aParameter
.Value
= aAny
;
2472 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
2473 aPropSequence
[2].Value
= makeAny (aParameter
);
2476 aPropSequence
[3].Name
= "RefX";
2477 Any
aAny ((sal_Int32
) 2);
2478 aPropSequence
[3].Value
= makeAny (aAny
);
2480 aPropSequenceSequence
[2] = aPropSequence
;
2482 aPropertyMap
[PROP_Handles
] <<= aPropSequenceSequence
;
2485 aPropertyMap
[PROP_MirroredX
] <<= Any ((sal_Bool
) sal_False
);
2488 aPropertyMap
[PROP_MirroredY
] <<= Any ((sal_Bool
) sal_False
);
2491 Sequence
< PropertyValue
> aPropSequence (3);
2493 aPropSequence
[0].Name
= "Coordinates";
2494 static const CustomShapeProvider::ParameterPairData aData
[] = {
2496 EnhancedCustomShapeParameterType::NORMAL
,
2497 EnhancedCustomShapeParameterType::NORMAL
,
2501 EnhancedCustomShapeParameterType::EQUATION
,
2502 EnhancedCustomShapeParameterType::NORMAL
,
2506 EnhancedCustomShapeParameterType::EQUATION
,
2507 EnhancedCustomShapeParameterType::EQUATION
,
2511 EnhancedCustomShapeParameterType::EQUATION
,
2512 EnhancedCustomShapeParameterType::EQUATION
,
2516 EnhancedCustomShapeParameterType::EQUATION
,
2517 EnhancedCustomShapeParameterType::EQUATION
,
2521 EnhancedCustomShapeParameterType::EQUATION
,
2522 EnhancedCustomShapeParameterType::EQUATION
,
2526 aPropSequence
[0].Value
= makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData
), aData
));
2529 aPropSequence
[1].Name
= "Segments";
2530 static const sal_uInt16 nValues
[] = {
2537 aPropSequence
[1].Value
= makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues
), nValues
));
2540 aPropSequence
[2].Name
= "TextFrames";
2541 Sequence
< EnhancedCustomShapeTextFrame
> aTextFrameSeq (1);
2543 EnhancedCustomShapeTextFrame aTextFrame
;
2545 static const CustomShapeProvider::ParameterPairData aData
=
2547 EnhancedCustomShapeParameterType::NORMAL
,
2548 EnhancedCustomShapeParameterType::NORMAL
,
2551 aTextFrame
.TopLeft
= createParameterPair(&aData
);
2554 static const CustomShapeProvider::ParameterPairData aData
=
2556 EnhancedCustomShapeParameterType::EQUATION
,
2557 EnhancedCustomShapeParameterType::EQUATION
,
2560 aTextFrame
.BottomRight
= createParameterPair(&aData
);
2562 aTextFrameSeq
[0] = aTextFrame
;
2564 aPropSequence
[2].Value
= makeAny (aTextFrameSeq
);
2566 aPropertyMap
[PROP_Path
] <<= aPropSequence
;
2569 awt::Rectangle aRectangle
;
2572 aRectangle
.Width
= 0;
2573 aRectangle
.Height
= 0;
2574 aPropertyMap
[PROP_ViewBox
] <<= aRectangle
;
2576 aPropertyMap
[ PROP_Type
] <<= OUString("ooxml-bentConnector5");
2578 return aPropertyMap
;
2581 class ShapeCcircularArrow
: public CustomShapeProvider
2583 virtual PropertyMap
getProperties()
2585 PropertyMap aPropertyMap
;
2588 Sequence
< EnhancedCustomShapeAdjustmentValue
> aAdjSequence (5);
2590 Any
aAny ((sal_Int32
) 12500);
2591 aAdjSequence
[0].Value
= aAny
;
2592 aAdjSequence
[0].Name
= "adj1";
2595 Any
aAny ((sal_Int32
) 1142319);
2596 aAdjSequence
[1].Value
= aAny
;
2597 aAdjSequence
[1].Name
= "adj2";
2600 Any
aAny ((sal_Int32
) 20457681);
2601 aAdjSequence
[2].Value
= aAny
;
2602 aAdjSequence
[2].Name
= "adj3";
2605 Any
aAny ((sal_Int32
) 10800000);
2606 aAdjSequence
[3].Value
= aAny
;
2607 aAdjSequence
[3].Name
= "adj4";
2610 Any
aAny ((sal_Int32
) 12500);
2611 aAdjSequence
[4].Value
= aAny
;
2612 aAdjSequence
[4].Name
= "adj5";
2614 aPropertyMap
[PROP_AdjustmentValues
] <<= aAdjSequence
;
2617 static const char *aStrings
[] = {
2618 "if(0-$4 ,0,if(25000-$4 ,$4 ,25000))",
2620 "if(0-$0 ,0,if(?1 -$0 ,$0 ,?1 ))",
2621 "if(1-$2 ,1,if(21599999-$2 ,$2 ,21599999))",
2622 "if(0-$3 ,0,if(21599999-$3 ,$3 ,21599999))",
2623 "min(logwidth,logheight)",
2635 "?15 *sin(pi*(?3 )/10800000)",
2636 "?16 *cos(pi*(?3 )/10800000)",
2637 "?15 *(cos(atan2(?17 ,?18 )))",
2638 "?16 *(sin(atan2(?17 ,?18 )))",
2656 "(10800000*atan2(?37 ,1))/pi",
2658 "if(?38 ,?38 ,?39 )",
2661 "if(?41 ,?41 ,?42 )",
2664 "if(?44 ,?45 ,?43 )",
2666 "if(0-$1 ,0,if(?47 -$1 ,$1 ,?47 ))",
2668 "?15 *sin(pi*(?49 )/10800000)",
2669 "?16 *cos(pi*(?49 )/10800000)",
2670 "?15 *(cos(atan2(?50 ,?51 )))",
2671 "?16 *(sin(atan2(?50 ,?51 )))",
2674 "?10 *sin(pi*(?4 )/10800000)",
2675 "?12 *cos(pi*(?4 )/10800000)",
2676 "?10 *(cos(atan2(?56 ,?57 )))",
2677 "?12 *(sin(atan2(?56 ,?57 )))",
2680 "?7 *cos(pi*(?49 )/10800000)",
2681 "?7 *sin(pi*(?49 )/10800000)",
2684 "?7 *cos(pi*(?49 )/10800000)",
2685 "?7 *sin(pi*(?49 )/10800000)",
2699 "sqrt(?79 *?79 +?80 *?80 +0*0)",
2721 "(?102 +?101 )/?86 ",
2728 "sqrt(?106 *?106 +?108 *?108 +0*0)",
2729 "sqrt(?107 *?107 +?109 *?109 +0*0)",
2731 "if(?112 ,?97 ,?99 )",
2732 "if(?112 ,?103 ,?105 )",
2743 "sqrt(?123 *?123 +?124 *?124 +0*0)",
2757 "(?138 +?137 )/?130 ",
2763 "(?144 +?143 )/?130 ",
2770 "sqrt(?148 *?148 +?150 *?150 +0*0)",
2771 "sqrt(?149 *?149 +?151 *?151 +0*0)",
2773 "if(?154 ,?139 ,?141 )",
2774 "if(?154 ,?145 ,?147 )",
2779 "(10800000*atan2(?158 ,?157 ))/pi",
2781 "if(?161 ,?161 ,?162 )",
2784 "if(?164 ,?165 ,?164 )",
2787 "sqrt(?167 *?167 +?168 *?168 +0*0)",
2790 "if(?171 ,?117 ,?64 )",
2791 "if(?171 ,?118 ,?65 )",
2792 "if(?171 ,?159 ,?68 )",
2793 "if(?171 ,?160 ,?69 )",
2794 "(10800000*atan2(?116 ,?115 ))/pi",
2796 "if(?176 ,?176 ,?177 )",
2799 "if(?179 ,?179 ,?180 )",
2800 "?15 *sin(pi*(?4 )/10800000)",
2801 "?16 *cos(pi*(?4 )/10800000)",
2802 "?15 *(cos(atan2(?182 ,?183 )))",
2803 "?16 *(sin(atan2(?182 ,?183 )))",
2809 "?10 *cos(pi*(2700000)/10800000)",
2810 "?12 *sin(pi*(2700000)/10800000)",
2820 aPropertyMap
[PROP_Equations
] <<= createStringSequence( SAL_N_ELEMENTS( aStrings
), aStrings
);
2823 Sequence
< Sequence
< PropertyValue
> > aPropSequenceSequence (4);
2825 Sequence
< PropertyValue
> aPropSequence (1);
2827 aPropSequence
[0].Name
= "Position";
2828 static const CustomShapeProvider::ParameterPairData aData
=
2830 EnhancedCustomShapeParameterType::EQUATION
,
2831 EnhancedCustomShapeParameterType::EQUATION
,
2834 aPropSequence
[0].Value
= makeAny (createParameterPair(&aData
));
2836 aPropSequenceSequence
[0] = aPropSequence
;
2839 Sequence
< PropertyValue
> aPropSequence (1);
2841 aPropSequence
[0].Name
= "Position";
2842 static const CustomShapeProvider::ParameterPairData aData
=
2844 EnhancedCustomShapeParameterType::EQUATION
,
2845 EnhancedCustomShapeParameterType::EQUATION
,
2848 aPropSequence
[0].Value
= makeAny (createParameterPair(&aData
));
2850 aPropSequenceSequence
[1] = aPropSequence
;
2853 Sequence
< PropertyValue
> aPropSequence (3);
2855 aPropSequence
[0].Name
= "Position";
2856 static const CustomShapeProvider::ParameterPairData aData
=
2858 EnhancedCustomShapeParameterType::EQUATION
,
2859 EnhancedCustomShapeParameterType::EQUATION
,
2862 aPropSequence
[0].Value
= makeAny (createParameterPair(&aData
));
2865 aPropSequence
[1].Name
= "RadiusRangeMaximum";
2866 EnhancedCustomShapeParameter aParameter
;
2867 Any
aAny ((sal_Int32
) 1);
2868 aParameter
.Value
= aAny
;
2869 aParameter
.Type
= EnhancedCustomShapeParameterType::EQUATION
;
2870 aPropSequence
[1].Value
= makeAny (aParameter
);
2873 aPropSequence
[2].Name
= "RadiusRangeMinimum";
2874 EnhancedCustomShapeParameter aParameter
;
2875 Any
aAny ((sal_Int32
) 0);
2876 aParameter
.Value
= aAny
;
2877 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
2878 aPropSequence
[2].Value
= makeAny (aParameter
);
2880 aPropSequenceSequence
[2] = aPropSequence
;
2883 Sequence
< PropertyValue
> aPropSequence (3);
2885 aPropSequence
[0].Name
= "Position";
2886 static const CustomShapeProvider::ParameterPairData aData
=
2888 EnhancedCustomShapeParameterType::EQUATION
,
2889 EnhancedCustomShapeParameterType::EQUATION
,
2892 aPropSequence
[0].Value
= makeAny (createParameterPair(&aData
));
2895 aPropSequence
[1].Name
= "RadiusRangeMaximum";
2896 EnhancedCustomShapeParameter aParameter
;
2897 Any
aAny ((sal_Int32
) 25000);
2898 aParameter
.Value
= aAny
;
2899 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
2900 aPropSequence
[1].Value
= makeAny (aParameter
);
2903 aPropSequence
[2].Name
= "RadiusRangeMinimum";
2904 EnhancedCustomShapeParameter aParameter
;
2905 Any
aAny ((sal_Int32
) 0);
2906 aParameter
.Value
= aAny
;
2907 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
2908 aPropSequence
[2].Value
= makeAny (aParameter
);
2910 aPropSequenceSequence
[3] = aPropSequence
;
2912 aPropertyMap
[PROP_Handles
] <<= aPropSequenceSequence
;
2915 aPropertyMap
[PROP_MirroredX
] <<= Any ((sal_Bool
) sal_False
);
2918 aPropertyMap
[PROP_MirroredY
] <<= Any ((sal_Bool
) sal_False
);
2921 Sequence
< PropertyValue
> aPropSequence (3);
2923 aPropSequence
[0].Name
= "Coordinates";
2924 static const CustomShapeProvider::ParameterPairData aData
[] = {
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::EQUATION
,
2957 EnhancedCustomShapeParameterType::EQUATION
,
2961 EnhancedCustomShapeParameterType::EQUATION
,
2962 EnhancedCustomShapeParameterType::EQUATION
,
2966 EnhancedCustomShapeParameterType::EQUATION
,
2967 EnhancedCustomShapeParameterType::EQUATION
,
2971 aPropSequence
[0].Value
= makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData
), aData
));
2974 aPropSequence
[1].Name
= "Segments";
2975 static const sal_uInt16 nValues
[] = {
2984 aPropSequence
[1].Value
= makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues
), nValues
));
2987 aPropSequence
[2].Name
= "TextFrames";
2988 Sequence
< EnhancedCustomShapeTextFrame
> aTextFrameSeq (1);
2990 EnhancedCustomShapeTextFrame aTextFrame
;
2992 static const CustomShapeProvider::ParameterPairData aData
=
2994 EnhancedCustomShapeParameterType::EQUATION
,
2995 EnhancedCustomShapeParameterType::EQUATION
,
2998 aTextFrame
.TopLeft
= createParameterPair(&aData
);
3001 static const CustomShapeProvider::ParameterPairData aData
=
3003 EnhancedCustomShapeParameterType::EQUATION
,
3004 EnhancedCustomShapeParameterType::EQUATION
,
3007 aTextFrame
.BottomRight
= createParameterPair(&aData
);
3009 aTextFrameSeq
[0] = aTextFrame
;
3011 aPropSequence
[2].Value
= makeAny (aTextFrameSeq
);
3013 aPropertyMap
[PROP_Path
] <<= aPropSequence
;
3016 awt::Rectangle aRectangle
;
3019 aRectangle
.Width
= 0;
3020 aRectangle
.Height
= 0;
3021 aPropertyMap
[PROP_ViewBox
] <<= aRectangle
;
3023 aPropertyMap
[ PROP_Type
] <<= OUString("ooxml-circularArrow");
3025 return aPropertyMap
;
3028 class ShapeCdownArrowCallout
: public CustomShapeProvider
3030 virtual PropertyMap
getProperties()
3032 PropertyMap aPropertyMap
;
3035 Sequence
< EnhancedCustomShapeAdjustmentValue
> aAdjSequence (4);
3037 Any
aAny ((sal_Int32
) 25000);
3038 aAdjSequence
[0].Value
= aAny
;
3039 aAdjSequence
[0].Name
= "adj1";
3042 Any
aAny ((sal_Int32
) 25000);
3043 aAdjSequence
[1].Value
= aAny
;
3044 aAdjSequence
[1].Name
= "adj2";
3047 Any
aAny ((sal_Int32
) 25000);
3048 aAdjSequence
[2].Value
= aAny
;
3049 aAdjSequence
[2].Name
= "adj3";
3052 Any
aAny ((sal_Int32
) 64977);
3053 aAdjSequence
[3].Value
= aAny
;
3054 aAdjSequence
[3].Name
= "adj4";
3056 aPropertyMap
[PROP_AdjustmentValues
] <<= aAdjSequence
;
3059 static const char *aStrings
[] = {
3060 "min(logwidth,logheight)",
3061 "50000*logwidth/?0 ",
3062 "if(0-$1 ,0,if(?1 -$1 ,$1 ,?1 ))",
3064 "if(0-$0 ,0,if(?3 -$0 ,$0 ,?3 ))",
3065 "100000*logheight/?0 ",
3066 "if(0-$2 ,0,if(?5 -$2 ,$2 ,?5 ))",
3067 "?6 *?0 /logheight",
3069 "if(0-$3 ,0,if(?8 -$3 ,$3 ,?8 ))",
3079 "logheight*?9 /100000",
3084 aPropertyMap
[PROP_Equations
] <<= createStringSequence( SAL_N_ELEMENTS( aStrings
), aStrings
);
3087 Sequence
< Sequence
< PropertyValue
> > aPropSequenceSequence (4);
3089 Sequence
< PropertyValue
> aPropSequence (4);
3091 aPropSequence
[0].Name
= "Position";
3092 static const CustomShapeProvider::ParameterPairData aData
=
3094 EnhancedCustomShapeParameterType::EQUATION
,
3095 EnhancedCustomShapeParameterType::EQUATION
,
3098 aPropSequence
[0].Value
= makeAny (createParameterPair(&aData
));
3101 aPropSequence
[1].Name
= "RangeXMaximum";
3102 EnhancedCustomShapeParameter aParameter
;
3103 Any
aAny ((sal_Int32
) 3);
3104 aParameter
.Value
= aAny
;
3105 aParameter
.Type
= EnhancedCustomShapeParameterType::EQUATION
;
3106 aPropSequence
[1].Value
= makeAny (aParameter
);
3109 aPropSequence
[2].Name
= "RangeXMinimum";
3110 EnhancedCustomShapeParameter aParameter
;
3111 Any
aAny ((sal_Int32
) 0);
3112 aParameter
.Value
= aAny
;
3113 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
3114 aPropSequence
[2].Value
= makeAny (aParameter
);
3117 aPropSequence
[3].Name
= "RefX";
3118 Any
aAny ((sal_Int32
) 0);
3119 aPropSequence
[3].Value
= makeAny (aAny
);
3121 aPropSequenceSequence
[0] = aPropSequence
;
3124 Sequence
< PropertyValue
> aPropSequence (4);
3126 aPropSequence
[0].Name
= "Position";
3127 static const CustomShapeProvider::ParameterPairData aData
=
3129 EnhancedCustomShapeParameterType::EQUATION
,
3130 EnhancedCustomShapeParameterType::EQUATION
,
3133 aPropSequence
[0].Value
= makeAny (createParameterPair(&aData
));
3136 aPropSequence
[1].Name
= "RangeXMaximum";
3137 EnhancedCustomShapeParameter aParameter
;
3138 Any
aAny ((sal_Int32
) 1);
3139 aParameter
.Value
= aAny
;
3140 aParameter
.Type
= EnhancedCustomShapeParameterType::EQUATION
;
3141 aPropSequence
[1].Value
= makeAny (aParameter
);
3144 aPropSequence
[2].Name
= "RangeXMinimum";
3145 EnhancedCustomShapeParameter aParameter
;
3146 Any
aAny ((sal_Int32
) 0);
3147 aParameter
.Value
= aAny
;
3148 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
3149 aPropSequence
[2].Value
= makeAny (aParameter
);
3152 aPropSequence
[3].Name
= "RefX";
3153 Any
aAny ((sal_Int32
) 1);
3154 aPropSequence
[3].Value
= makeAny (aAny
);
3156 aPropSequenceSequence
[1] = aPropSequence
;
3159 Sequence
< PropertyValue
> aPropSequence (4);
3161 aPropSequence
[0].Name
= "Position";
3162 static const CustomShapeProvider::ParameterPairData aData
=
3164 EnhancedCustomShapeParameterType::EQUATION
,
3165 EnhancedCustomShapeParameterType::EQUATION
,
3168 aPropSequence
[0].Value
= makeAny (createParameterPair(&aData
));
3171 aPropSequence
[1].Name
= "RangeYMaximum";
3172 EnhancedCustomShapeParameter aParameter
;
3173 Any
aAny ((sal_Int32
) 5);
3174 aParameter
.Value
= aAny
;
3175 aParameter
.Type
= EnhancedCustomShapeParameterType::EQUATION
;
3176 aPropSequence
[1].Value
= makeAny (aParameter
);
3179 aPropSequence
[2].Name
= "RangeYMinimum";
3180 EnhancedCustomShapeParameter aParameter
;
3181 Any
aAny ((sal_Int32
) 0);
3182 aParameter
.Value
= aAny
;
3183 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
3184 aPropSequence
[2].Value
= makeAny (aParameter
);
3187 aPropSequence
[3].Name
= "RefY";
3188 Any
aAny ((sal_Int32
) 2);
3189 aPropSequence
[3].Value
= makeAny (aAny
);
3191 aPropSequenceSequence
[2] = aPropSequence
;
3194 Sequence
< PropertyValue
> aPropSequence (4);
3196 aPropSequence
[0].Name
= "Position";
3197 static const CustomShapeProvider::ParameterPairData aData
=
3199 EnhancedCustomShapeParameterType::NORMAL
,
3200 EnhancedCustomShapeParameterType::EQUATION
,
3203 aPropSequence
[0].Value
= makeAny (createParameterPair(&aData
));
3206 aPropSequence
[1].Name
= "RangeYMaximum";
3207 EnhancedCustomShapeParameter aParameter
;
3208 Any
aAny ((sal_Int32
) 8);
3209 aParameter
.Value
= aAny
;
3210 aParameter
.Type
= EnhancedCustomShapeParameterType::EQUATION
;
3211 aPropSequence
[1].Value
= makeAny (aParameter
);
3214 aPropSequence
[2].Name
= "RangeYMinimum";
3215 EnhancedCustomShapeParameter aParameter
;
3216 Any
aAny ((sal_Int32
) 0);
3217 aParameter
.Value
= aAny
;
3218 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
3219 aPropSequence
[2].Value
= makeAny (aParameter
);
3222 aPropSequence
[3].Name
= "RefY";
3223 Any
aAny ((sal_Int32
) 3);
3224 aPropSequence
[3].Value
= makeAny (aAny
);
3226 aPropSequenceSequence
[3] = aPropSequence
;
3228 aPropertyMap
[PROP_Handles
] <<= aPropSequenceSequence
;
3231 aPropertyMap
[PROP_MirroredX
] <<= Any ((sal_Bool
) sal_False
);
3234 aPropertyMap
[PROP_MirroredY
] <<= Any ((sal_Bool
) sal_False
);
3237 Sequence
< PropertyValue
> aPropSequence (3);
3239 aPropSequence
[0].Name
= "Coordinates";
3240 static const CustomShapeProvider::ParameterPairData aData
[] = {
3242 EnhancedCustomShapeParameterType::NORMAL
,
3243 EnhancedCustomShapeParameterType::NORMAL
,
3247 EnhancedCustomShapeParameterType::EQUATION
,
3248 EnhancedCustomShapeParameterType::NORMAL
,
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::NORMAL
,
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::NORMAL
,
3319 EnhancedCustomShapeParameterType::NORMAL
,
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-downArrowCallout");
3349 return aPropertyMap
;
3352 class ShapeCmathMinus
: public CustomShapeProvider
3354 virtual PropertyMap
getProperties()
3356 PropertyMap aPropertyMap
;
3359 Sequence
< EnhancedCustomShapeAdjustmentValue
> aAdjSequence (1);
3361 Any
aAny ((sal_Int32
) 23520);
3362 aAdjSequence
[0].Value
= aAny
;
3363 aAdjSequence
[0].Name
= "adj1";
3365 aPropertyMap
[PROP_AdjustmentValues
] <<= aAdjSequence
;
3368 static const char *aStrings
[] = {
3369 "if(0-$0 ,0,if(100000-$0 ,$0 ,100000))",
3370 "logheight*?0 /200000",
3371 "logwidth*73490/200000",
3379 aPropertyMap
[PROP_Equations
] <<= createStringSequence( SAL_N_ELEMENTS( aStrings
), aStrings
);
3382 Sequence
< Sequence
< PropertyValue
> > aPropSequenceSequence (1);
3384 Sequence
< PropertyValue
> aPropSequence (4);
3386 aPropSequence
[0].Name
= "Position";
3387 static const CustomShapeProvider::ParameterPairData aData
=
3389 EnhancedCustomShapeParameterType::NORMAL
,
3390 EnhancedCustomShapeParameterType::EQUATION
,
3393 aPropSequence
[0].Value
= makeAny (createParameterPair(&aData
));
3396 aPropSequence
[1].Name
= "RangeYMaximum";
3397 EnhancedCustomShapeParameter aParameter
;
3398 Any
aAny ((sal_Int32
) 100000);
3399 aParameter
.Value
= aAny
;
3400 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
3401 aPropSequence
[1].Value
= makeAny (aParameter
);
3404 aPropSequence
[2].Name
= "RangeYMinimum";
3405 EnhancedCustomShapeParameter aParameter
;
3406 Any
aAny ((sal_Int32
) 0);
3407 aParameter
.Value
= aAny
;
3408 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
3409 aPropSequence
[2].Value
= makeAny (aParameter
);
3412 aPropSequence
[3].Name
= "RefY";
3413 Any
aAny ((sal_Int32
) 0);
3414 aPropSequence
[3].Value
= makeAny (aAny
);
3416 aPropSequenceSequence
[0] = aPropSequence
;
3418 aPropertyMap
[PROP_Handles
] <<= aPropSequenceSequence
;
3421 aPropertyMap
[PROP_MirroredX
] <<= Any ((sal_Bool
) sal_False
);
3424 aPropertyMap
[PROP_MirroredY
] <<= Any ((sal_Bool
) sal_False
);
3427 Sequence
< PropertyValue
> aPropSequence (3);
3429 aPropSequence
[0].Name
= "Coordinates";
3430 static const CustomShapeProvider::ParameterPairData aData
[] = {
3432 EnhancedCustomShapeParameterType::EQUATION
,
3433 EnhancedCustomShapeParameterType::EQUATION
,
3437 EnhancedCustomShapeParameterType::EQUATION
,
3438 EnhancedCustomShapeParameterType::EQUATION
,
3442 EnhancedCustomShapeParameterType::EQUATION
,
3443 EnhancedCustomShapeParameterType::EQUATION
,
3447 EnhancedCustomShapeParameterType::EQUATION
,
3448 EnhancedCustomShapeParameterType::EQUATION
,
3452 aPropSequence
[0].Value
= makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData
), aData
));
3455 aPropSequence
[1].Name
= "Segments";
3456 static const sal_uInt16 nValues
[] = {
3463 aPropSequence
[1].Value
= makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues
), nValues
));
3466 aPropSequence
[2].Name
= "TextFrames";
3467 Sequence
< EnhancedCustomShapeTextFrame
> aTextFrameSeq (1);
3469 EnhancedCustomShapeTextFrame aTextFrame
;
3471 static const CustomShapeProvider::ParameterPairData aData
=
3473 EnhancedCustomShapeParameterType::EQUATION
,
3474 EnhancedCustomShapeParameterType::EQUATION
,
3477 aTextFrame
.TopLeft
= createParameterPair(&aData
);
3480 static const CustomShapeProvider::ParameterPairData aData
=
3482 EnhancedCustomShapeParameterType::EQUATION
,
3483 EnhancedCustomShapeParameterType::EQUATION
,
3486 aTextFrame
.BottomRight
= createParameterPair(&aData
);
3488 aTextFrameSeq
[0] = aTextFrame
;
3490 aPropSequence
[2].Value
= makeAny (aTextFrameSeq
);
3492 aPropertyMap
[PROP_Path
] <<= aPropSequence
;
3495 awt::Rectangle aRectangle
;
3498 aRectangle
.Width
= 0;
3499 aRectangle
.Height
= 0;
3500 aPropertyMap
[PROP_ViewBox
] <<= aRectangle
;
3502 aPropertyMap
[ PROP_Type
] <<= OUString("ooxml-mathMinus");
3504 return aPropertyMap
;
3507 class ShapeCgear9
: public CustomShapeProvider
3509 virtual PropertyMap
getProperties()
3511 PropertyMap aPropertyMap
;
3514 Sequence
< EnhancedCustomShapeAdjustmentValue
> aAdjSequence (2);
3516 Any
aAny ((sal_Int32
) 10000);
3517 aAdjSequence
[0].Value
= aAny
;
3518 aAdjSequence
[0].Name
= "adj1";
3521 Any
aAny ((sal_Int32
) 1763);
3522 aAdjSequence
[1].Value
= aAny
;
3523 aAdjSequence
[1].Name
= "adj2";
3525 aPropertyMap
[PROP_AdjustmentValues
] <<= aAdjSequence
;
3528 static const char *aStrings
[] = {
3529 "if(0-$0 ,0,if(20000-$0 ,$0 ,20000))",
3530 "if(0-$1 ,0,if(2679-$1 ,$1 ,2679))",
3531 "min(logwidth,logheight)",
3542 "if(?12 ,?9 ,?11 )",
3543 "(10800000*atan2(?7 ,?13 ))/pi",
3546 "?11 *cos(pi*(?15 )/10800000)",
3547 "?9 *sin(pi*(?15 )/10800000)",
3548 "(10800000*atan2(?18 ,?17 ))/pi",
3549 "?9 *cos(pi*(?19 )/10800000)",
3550 "?11 *sin(pi*(?19 )/10800000)",
3551 "sqrt(?20 *?20 +?21 *?21 +0*0)",
3553 "?23 *cos(pi*(?19 )/10800000)",
3554 "?23 *sin(pi*(?19 )/10800000)",
3559 "?11 *cos(pi*(?16 )/10800000)",
3560 "?9 *sin(pi*(?16 )/10800000)",
3561 "(10800000*atan2(?31 ,?30 ))/pi",
3562 "?9 *cos(pi*(?32 )/10800000)",
3563 "?11 *sin(pi*(?32 )/10800000)",
3564 "sqrt(?33 *?33 +?34 *?34 +0*0)",
3566 "?36 *cos(pi*(?32 )/10800000)",
3567 "?36 *sin(pi*(?32 )/10800000)",
3572 "sqrt(?41 *?41 +?42 *?42 +0*0)",
3573 "(10800000*atan2(?41 ,?42 ))/pi",
3574 "?4 *sin(pi*(?44 )/10800000)",
3575 "?4 *cos(pi*(?44 )/10800000)",
3580 "?3 *sin(pi*(?44 )/10800000)",
3581 "?3 *cos(pi*(?44 )/10800000)",
3588 "?11 *cos(pi*(?57 )/10800000)",
3589 "?9 *sin(pi*(?57 )/10800000)",
3590 "(10800000*atan2(?60 ,?59 ))/pi",
3591 "?9 *cos(pi*(?61 )/10800000)",
3592 "?11 *sin(pi*(?61 )/10800000)",
3593 "sqrt(?62 *?62 +?63 *?63 +0*0)",
3595 "?65 *cos(pi*(?61 )/10800000)",
3596 "?65 *sin(pi*(?61 )/10800000)",
3599 "?11 *cos(pi*(?58 )/10800000)",
3600 "?9 *sin(pi*(?58 )/10800000)",
3601 "(10800000*atan2(?71 ,?70 ))/pi",
3602 "?9 *cos(pi*(?72 )/10800000)",
3603 "?11 *sin(pi*(?72 )/10800000)",
3604 "sqrt(?73 *?73 +?74 *?74 +0*0)",
3606 "?76 *cos(pi*(?72 )/10800000)",
3607 "?76 *sin(pi*(?72 )/10800000)",
3612 "sqrt(?81 *?81 +?82 *?82 +0*0)",
3613 "(10800000*atan2(?81 ,?82 ))/pi",
3614 "?4 *sin(pi*(?84 )/10800000)",
3615 "?4 *cos(pi*(?84 )/10800000)",
3620 "?3 *sin(pi*(?84 )/10800000)",
3621 "?3 *cos(pi*(?84 )/10800000)",
3629 "?11 *cos(pi*(?98 )/10800000)",
3630 "?9 *sin(pi*(?98 )/10800000)",
3631 "(10800000*atan2(?101 ,?100 ))/pi",
3632 "?9 *cos(pi*(?102 )/10800000)",
3633 "?11 *sin(pi*(?102 )/10800000)",
3634 "sqrt(?103 *?103 +?104 *?104 +0*0)",
3636 "?106 *cos(pi*(?102 )/10800000)",
3637 "?106 *sin(pi*(?102 )/10800000)",
3640 "?11 *cos(pi*(?99 )/10800000)",
3641 "?9 *sin(pi*(?99 )/10800000)",
3642 "(10800000*atan2(?112 ,?111 ))/pi",
3643 "?9 *cos(pi*(?113 )/10800000)",
3644 "?11 *sin(pi*(?113 )/10800000)",
3645 "sqrt(?114 *?114 +?115 *?115 +0*0)",
3647 "?117 *cos(pi*(?113 )/10800000)",
3648 "?117 *sin(pi*(?113 )/10800000)",
3653 "sqrt(?122 *?122 +?123 *?123 +0*0)",
3654 "(10800000*atan2(?122 ,?123 ))/pi",
3655 "?4 *sin(pi*(?125 )/10800000)",
3656 "?4 *cos(pi*(?125 )/10800000)",
3661 "?3 *sin(pi*(?125 )/10800000)",
3662 "?3 *cos(pi*(?125 )/10800000)",
3670 "?11 *cos(pi*(?139 )/10800000)",
3671 "?9 *sin(pi*(?139 )/10800000)",
3672 "(10800000*atan2(?142 ,?141 ))/pi",
3673 "?9 *cos(pi*(?143 )/10800000)",
3674 "?11 *sin(pi*(?143 )/10800000)",
3675 "sqrt(?144 *?144 +?145 *?145 +0*0)",
3677 "?147 *cos(pi*(?143 )/10800000)",
3678 "?147 *sin(pi*(?143 )/10800000)",
3681 "?11 *cos(pi*(?140 )/10800000)",
3682 "?9 *sin(pi*(?140 )/10800000)",
3683 "(10800000*atan2(?153 ,?152 ))/pi",
3684 "?9 *cos(pi*(?154 )/10800000)",
3685 "?11 *sin(pi*(?154 )/10800000)",
3686 "sqrt(?155 *?155 +?156 *?156 +0*0)",
3688 "?158 *cos(pi*(?154 )/10800000)",
3689 "?158 *sin(pi*(?154 )/10800000)",
3694 "sqrt(?163 *?163 +?164 *?164 +0*0)",
3695 "(10800000*atan2(?163 ,?164 ))/pi",
3696 "?4 *sin(pi*(?166 )/10800000)",
3697 "?4 *cos(pi*(?166 )/10800000)",
3702 "?3 *sin(pi*(?166 )/10800000)",
3703 "?3 *cos(pi*(?166 )/10800000)",
3711 "?11 *cos(pi*(?180 )/10800000)",
3712 "?9 *sin(pi*(?180 )/10800000)",
3713 "(10800000*atan2(?183 ,?182 ))/pi",
3714 "?11 *cos(pi*(?181 )/10800000)",
3715 "?9 *sin(pi*(?181 )/10800000)",
3716 "(10800000*atan2(?186 ,?185 ))/pi",
3722 "?11 *cos(pi*(?192 )/10800000)",
3723 "?9 *sin(pi*(?192 )/10800000)",
3724 "(10800000*atan2(?194 ,?193 ))/pi",
3729 "?11 *cos(pi*(?199 )/10800000)",
3730 "?9 *sin(pi*(?199 )/10800000)",
3731 "(10800000*atan2(?201 ,?200 ))/pi",
3736 "?11 *cos(pi*(?206 )/10800000)",
3737 "?9 *sin(pi*(?206 )/10800000)",
3738 "(10800000*atan2(?208 ,?207 ))/pi",
3745 "?11 *cos(pi*(?215 )/10800000)",
3746 "?9 *sin(pi*(?215 )/10800000)",
3747 "(10800000*atan2(?217 ,?216 ))/pi",
3748 "?9 *cos(pi*(?218 )/10800000)",
3749 "?11 *sin(pi*(?218 )/10800000)",
3750 "sqrt(?219 *?219 +?220 *?220 +0*0)",
3752 "?222 *cos(pi*(?218 )/10800000)",
3753 "?222 *sin(pi*(?218 )/10800000)",
3756 "?11 *cos(pi*(?214 )/10800000)",
3757 "?9 *sin(pi*(?214 )/10800000)",
3758 "(10800000*atan2(?228 ,?227 ))/pi",
3772 "(logwidth+0)/?241 ",
3773 "(logwidth+0)/?239 ",
3774 "(logwidth+0)/?237 ",
3775 "(logwidth+0)/?235 ",
3795 aPropertyMap
[PROP_Equations
] <<= createStringSequence( SAL_N_ELEMENTS( aStrings
), aStrings
);
3798 Sequence
< Sequence
< PropertyValue
> > aPropSequenceSequence (2);
3800 Sequence
< PropertyValue
> aPropSequence (4);
3802 aPropSequence
[0].Name
= "Position";
3803 static const CustomShapeProvider::ParameterPairData aData
=
3805 EnhancedCustomShapeParameterType::EQUATION
,
3806 EnhancedCustomShapeParameterType::EQUATION
,
3809 aPropSequence
[0].Value
= makeAny (createParameterPair(&aData
));
3812 aPropSequence
[1].Name
= "RangeYMaximum";
3813 EnhancedCustomShapeParameter aParameter
;
3814 Any
aAny ((sal_Int32
) 20000);
3815 aParameter
.Value
= aAny
;
3816 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
3817 aPropSequence
[1].Value
= makeAny (aParameter
);
3820 aPropSequence
[2].Name
= "RangeYMinimum";
3821 EnhancedCustomShapeParameter aParameter
;
3822 Any
aAny ((sal_Int32
) 0);
3823 aParameter
.Value
= aAny
;
3824 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
3825 aPropSequence
[2].Value
= makeAny (aParameter
);
3828 aPropSequence
[3].Name
= "RefY";
3829 Any
aAny ((sal_Int32
) 0);
3830 aPropSequence
[3].Value
= makeAny (aAny
);
3832 aPropSequenceSequence
[0] = aPropSequence
;
3835 Sequence
< PropertyValue
> aPropSequence (4);
3837 aPropSequence
[0].Name
= "Position";
3838 static const CustomShapeProvider::ParameterPairData aData
=
3840 EnhancedCustomShapeParameterType::EQUATION
,
3841 EnhancedCustomShapeParameterType::EQUATION
,
3844 aPropSequence
[0].Value
= makeAny (createParameterPair(&aData
));
3847 aPropSequence
[1].Name
= "RangeXMaximum";
3848 EnhancedCustomShapeParameter aParameter
;
3849 Any
aAny ((sal_Int32
) 2679);
3850 aParameter
.Value
= aAny
;
3851 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
3852 aPropSequence
[1].Value
= makeAny (aParameter
);
3855 aPropSequence
[2].Name
= "RangeXMinimum";
3856 EnhancedCustomShapeParameter aParameter
;
3857 Any
aAny ((sal_Int32
) 0);
3858 aParameter
.Value
= aAny
;
3859 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
3860 aPropSequence
[2].Value
= makeAny (aParameter
);
3863 aPropSequence
[3].Name
= "RefX";
3864 Any
aAny ((sal_Int32
) 1);
3865 aPropSequence
[3].Value
= makeAny (aAny
);
3867 aPropSequenceSequence
[1] = aPropSequence
;
3869 aPropertyMap
[PROP_Handles
] <<= aPropSequenceSequence
;
3872 aPropertyMap
[PROP_MirroredX
] <<= Any ((sal_Bool
) sal_False
);
3875 aPropertyMap
[PROP_MirroredY
] <<= Any ((sal_Bool
) sal_False
);
3878 Sequence
< PropertyValue
> aPropSequence (3);
3880 aPropSequence
[0].Name
= "Coordinates";
3881 static const CustomShapeProvider::ParameterPairData aData
[] = {
3883 EnhancedCustomShapeParameterType::EQUATION
,
3884 EnhancedCustomShapeParameterType::EQUATION
,
3888 EnhancedCustomShapeParameterType::EQUATION
,
3889 EnhancedCustomShapeParameterType::EQUATION
,
3893 EnhancedCustomShapeParameterType::EQUATION
,
3894 EnhancedCustomShapeParameterType::EQUATION
,
3898 EnhancedCustomShapeParameterType::EQUATION
,
3899 EnhancedCustomShapeParameterType::EQUATION
,
3903 EnhancedCustomShapeParameterType::EQUATION
,
3904 EnhancedCustomShapeParameterType::EQUATION
,
3908 EnhancedCustomShapeParameterType::EQUATION
,
3909 EnhancedCustomShapeParameterType::EQUATION
,
3913 EnhancedCustomShapeParameterType::EQUATION
,
3914 EnhancedCustomShapeParameterType::EQUATION
,
3918 EnhancedCustomShapeParameterType::EQUATION
,
3919 EnhancedCustomShapeParameterType::EQUATION
,
3923 EnhancedCustomShapeParameterType::EQUATION
,
3924 EnhancedCustomShapeParameterType::EQUATION
,
3928 EnhancedCustomShapeParameterType::EQUATION
,
3929 EnhancedCustomShapeParameterType::EQUATION
,
3933 EnhancedCustomShapeParameterType::EQUATION
,
3934 EnhancedCustomShapeParameterType::EQUATION
,
3938 EnhancedCustomShapeParameterType::EQUATION
,
3939 EnhancedCustomShapeParameterType::EQUATION
,
3943 EnhancedCustomShapeParameterType::EQUATION
,
3944 EnhancedCustomShapeParameterType::EQUATION
,
3948 EnhancedCustomShapeParameterType::EQUATION
,
3949 EnhancedCustomShapeParameterType::EQUATION
,
3953 EnhancedCustomShapeParameterType::EQUATION
,
3954 EnhancedCustomShapeParameterType::EQUATION
,
3958 EnhancedCustomShapeParameterType::EQUATION
,
3959 EnhancedCustomShapeParameterType::EQUATION
,
3963 EnhancedCustomShapeParameterType::EQUATION
,
3964 EnhancedCustomShapeParameterType::EQUATION
,
3968 EnhancedCustomShapeParameterType::EQUATION
,
3969 EnhancedCustomShapeParameterType::EQUATION
,
3973 EnhancedCustomShapeParameterType::EQUATION
,
3974 EnhancedCustomShapeParameterType::EQUATION
,
3978 EnhancedCustomShapeParameterType::EQUATION
,
3979 EnhancedCustomShapeParameterType::EQUATION
,
3983 EnhancedCustomShapeParameterType::EQUATION
,
3984 EnhancedCustomShapeParameterType::EQUATION
,
3988 EnhancedCustomShapeParameterType::EQUATION
,
3989 EnhancedCustomShapeParameterType::EQUATION
,
3993 EnhancedCustomShapeParameterType::EQUATION
,
3994 EnhancedCustomShapeParameterType::EQUATION
,
3998 EnhancedCustomShapeParameterType::EQUATION
,
3999 EnhancedCustomShapeParameterType::EQUATION
,
4003 EnhancedCustomShapeParameterType::EQUATION
,
4004 EnhancedCustomShapeParameterType::EQUATION
,
4008 EnhancedCustomShapeParameterType::EQUATION
,
4009 EnhancedCustomShapeParameterType::EQUATION
,
4013 EnhancedCustomShapeParameterType::EQUATION
,
4014 EnhancedCustomShapeParameterType::EQUATION
,
4018 EnhancedCustomShapeParameterType::EQUATION
,
4019 EnhancedCustomShapeParameterType::EQUATION
,
4023 EnhancedCustomShapeParameterType::EQUATION
,
4024 EnhancedCustomShapeParameterType::EQUATION
,
4028 EnhancedCustomShapeParameterType::EQUATION
,
4029 EnhancedCustomShapeParameterType::EQUATION
,
4033 EnhancedCustomShapeParameterType::EQUATION
,
4034 EnhancedCustomShapeParameterType::EQUATION
,
4038 EnhancedCustomShapeParameterType::EQUATION
,
4039 EnhancedCustomShapeParameterType::EQUATION
,
4043 EnhancedCustomShapeParameterType::EQUATION
,
4044 EnhancedCustomShapeParameterType::EQUATION
,
4048 EnhancedCustomShapeParameterType::EQUATION
,
4049 EnhancedCustomShapeParameterType::EQUATION
,
4053 EnhancedCustomShapeParameterType::EQUATION
,
4054 EnhancedCustomShapeParameterType::EQUATION
,
4058 EnhancedCustomShapeParameterType::EQUATION
,
4059 EnhancedCustomShapeParameterType::EQUATION
,
4063 EnhancedCustomShapeParameterType::EQUATION
,
4064 EnhancedCustomShapeParameterType::EQUATION
,
4068 EnhancedCustomShapeParameterType::EQUATION
,
4069 EnhancedCustomShapeParameterType::EQUATION
,
4073 EnhancedCustomShapeParameterType::EQUATION
,
4074 EnhancedCustomShapeParameterType::EQUATION
,
4078 EnhancedCustomShapeParameterType::EQUATION
,
4079 EnhancedCustomShapeParameterType::EQUATION
,
4083 EnhancedCustomShapeParameterType::EQUATION
,
4084 EnhancedCustomShapeParameterType::EQUATION
,
4088 EnhancedCustomShapeParameterType::EQUATION
,
4089 EnhancedCustomShapeParameterType::EQUATION
,
4093 EnhancedCustomShapeParameterType::EQUATION
,
4094 EnhancedCustomShapeParameterType::EQUATION
,
4098 EnhancedCustomShapeParameterType::EQUATION
,
4099 EnhancedCustomShapeParameterType::EQUATION
,
4103 EnhancedCustomShapeParameterType::EQUATION
,
4104 EnhancedCustomShapeParameterType::EQUATION
,
4108 EnhancedCustomShapeParameterType::EQUATION
,
4109 EnhancedCustomShapeParameterType::EQUATION
,
4113 aPropSequence
[0].Value
= makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData
), aData
));
4116 aPropSequence
[1].Name
= "Segments";
4117 static const sal_uInt16 nValues
[] = {
4141 aPropSequence
[1].Value
= makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues
), nValues
));
4144 aPropSequence
[2].Name
= "TextFrames";
4145 Sequence
< EnhancedCustomShapeTextFrame
> aTextFrameSeq (1);
4147 EnhancedCustomShapeTextFrame aTextFrame
;
4149 static const CustomShapeProvider::ParameterPairData aData
=
4151 EnhancedCustomShapeParameterType::EQUATION
,
4152 EnhancedCustomShapeParameterType::EQUATION
,
4155 aTextFrame
.TopLeft
= createParameterPair(&aData
);
4158 static const CustomShapeProvider::ParameterPairData aData
=
4160 EnhancedCustomShapeParameterType::EQUATION
,
4161 EnhancedCustomShapeParameterType::EQUATION
,
4164 aTextFrame
.BottomRight
= createParameterPair(&aData
);
4166 aTextFrameSeq
[0] = aTextFrame
;
4168 aPropSequence
[2].Value
= makeAny (aTextFrameSeq
);
4170 aPropertyMap
[PROP_Path
] <<= aPropSequence
;
4173 awt::Rectangle aRectangle
;
4176 aRectangle
.Width
= 0;
4177 aRectangle
.Height
= 0;
4178 aPropertyMap
[PROP_ViewBox
] <<= aRectangle
;
4180 aPropertyMap
[ PROP_Type
] <<= OUString("ooxml-gear9");
4182 return aPropertyMap
;
4185 class ShapeCround1Rect
: public CustomShapeProvider
4187 virtual PropertyMap
getProperties()
4189 PropertyMap aPropertyMap
;
4192 Sequence
< EnhancedCustomShapeAdjustmentValue
> aAdjSequence (1);
4194 Any
aAny ((sal_Int32
) 16667);
4195 aAdjSequence
[0].Value
= aAny
;
4196 aAdjSequence
[0].Name
= "adj";
4198 aPropertyMap
[PROP_AdjustmentValues
] <<= aAdjSequence
;
4201 static const char *aStrings
[] = {
4202 "if(0-$0 ,0,if(50000-$0 ,$0 ,50000))",
4203 "min(logwidth,logheight)",
4212 "(16200000)/60000.0",
4215 aPropertyMap
[PROP_Equations
] <<= createStringSequence( SAL_N_ELEMENTS( aStrings
), aStrings
);
4218 Sequence
< Sequence
< PropertyValue
> > aPropSequenceSequence (1);
4220 Sequence
< PropertyValue
> aPropSequence (4);
4222 aPropSequence
[0].Name
= "Position";
4223 static const CustomShapeProvider::ParameterPairData aData
=
4225 EnhancedCustomShapeParameterType::EQUATION
,
4226 EnhancedCustomShapeParameterType::NORMAL
,
4229 aPropSequence
[0].Value
= makeAny (createParameterPair(&aData
));
4232 aPropSequence
[1].Name
= "RangeXMaximum";
4233 EnhancedCustomShapeParameter aParameter
;
4234 Any
aAny ((sal_Int32
) 50000);
4235 aParameter
.Value
= aAny
;
4236 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
4237 aPropSequence
[1].Value
= makeAny (aParameter
);
4240 aPropSequence
[2].Name
= "RangeXMinimum";
4241 EnhancedCustomShapeParameter aParameter
;
4242 Any
aAny ((sal_Int32
) 0);
4243 aParameter
.Value
= aAny
;
4244 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
4245 aPropSequence
[2].Value
= makeAny (aParameter
);
4248 aPropSequence
[3].Name
= "RefX";
4249 Any
aAny ((sal_Int32
) 0);
4250 aPropSequence
[3].Value
= makeAny (aAny
);
4252 aPropSequenceSequence
[0] = aPropSequence
;
4254 aPropertyMap
[PROP_Handles
] <<= aPropSequenceSequence
;
4257 aPropertyMap
[PROP_MirroredX
] <<= Any ((sal_Bool
) sal_False
);
4260 aPropertyMap
[PROP_MirroredY
] <<= Any ((sal_Bool
) sal_False
);
4263 Sequence
< PropertyValue
> aPropSequence (3);
4265 aPropSequence
[0].Name
= "Coordinates";
4266 static const CustomShapeProvider::ParameterPairData aData
[] = {
4268 EnhancedCustomShapeParameterType::NORMAL
,
4269 EnhancedCustomShapeParameterType::NORMAL
,
4273 EnhancedCustomShapeParameterType::EQUATION
,
4274 EnhancedCustomShapeParameterType::NORMAL
,
4278 EnhancedCustomShapeParameterType::EQUATION
,
4279 EnhancedCustomShapeParameterType::EQUATION
,
4283 EnhancedCustomShapeParameterType::EQUATION
,
4284 EnhancedCustomShapeParameterType::EQUATION
,
4288 EnhancedCustomShapeParameterType::EQUATION
,
4289 EnhancedCustomShapeParameterType::EQUATION
,
4293 EnhancedCustomShapeParameterType::NORMAL
,
4294 EnhancedCustomShapeParameterType::EQUATION
,
4298 aPropSequence
[0].Value
= makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData
), aData
));
4301 aPropSequence
[1].Name
= "Segments";
4302 static const sal_uInt16 nValues
[] = {
4311 aPropSequence
[1].Value
= makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues
), nValues
));
4314 aPropSequence
[2].Name
= "TextFrames";
4315 Sequence
< EnhancedCustomShapeTextFrame
> aTextFrameSeq (1);
4317 EnhancedCustomShapeTextFrame aTextFrame
;
4319 static const CustomShapeProvider::ParameterPairData aData
=
4321 EnhancedCustomShapeParameterType::NORMAL
,
4322 EnhancedCustomShapeParameterType::NORMAL
,
4325 aTextFrame
.TopLeft
= createParameterPair(&aData
);
4328 static const CustomShapeProvider::ParameterPairData aData
=
4330 EnhancedCustomShapeParameterType::EQUATION
,
4331 EnhancedCustomShapeParameterType::EQUATION
,
4334 aTextFrame
.BottomRight
= createParameterPair(&aData
);
4336 aTextFrameSeq
[0] = aTextFrame
;
4338 aPropSequence
[2].Value
= makeAny (aTextFrameSeq
);
4340 aPropertyMap
[PROP_Path
] <<= aPropSequence
;
4343 awt::Rectangle aRectangle
;
4346 aRectangle
.Width
= 0;
4347 aRectangle
.Height
= 0;
4348 aPropertyMap
[PROP_ViewBox
] <<= aRectangle
;
4350 aPropertyMap
[ PROP_Type
] <<= OUString("ooxml-round1Rect");
4352 return aPropertyMap
;
4355 class ShapeCsun
: public CustomShapeProvider
4357 virtual PropertyMap
getProperties()
4359 PropertyMap aPropertyMap
;
4362 Sequence
< EnhancedCustomShapeAdjustmentValue
> aAdjSequence (1);
4364 Any
aAny ((sal_Int32
) 25000);
4365 aAdjSequence
[0].Value
= aAny
;
4366 aAdjSequence
[0].Name
= "adj";
4368 aPropertyMap
[PROP_AdjustmentValues
] <<= aAdjSequence
;
4371 static const char *aStrings
[] = {
4372 "if(12500-$0 ,12500,if(46875-$0 ,$0 ,46875))",
4392 "logwidth*18436/21600",
4393 "logheight*3163/21600",
4394 "logwidth*3163/21600",
4395 "logheight*18436/21600",
4396 "logwidth*?9 /100000",
4397 "logwidth*?10 /100000",
4398 "logwidth*?11 /100000",
4399 "logwidth*?13 /100000",
4400 "logwidth*?14 /100000",
4401 "logwidth*?15 /100000",
4402 "logwidth*?16 /100000",
4403 "logwidth*?17 /100000",
4404 "logwidth*?18 /100000",
4405 "logwidth*?19 /100000",
4406 "logwidth*?0 /100000",
4407 "logwidth*?1 /100000",
4408 "logheight*?1 /100000",
4409 "logheight*?9 /100000",
4410 "logheight*?10 /100000",
4411 "logheight*?11 /100000",
4412 "logheight*?13 /100000",
4413 "logheight*?14 /100000",
4414 "logheight*?15 /100000",
4415 "logheight*?16 /100000",
4416 "logheight*?17 /100000",
4417 "logheight*?18 /100000",
4418 "logheight*?19 /100000",
4423 "(10800000)/60000.0",
4424 "(21600000)/60000.0"
4426 aPropertyMap
[PROP_Equations
] <<= createStringSequence( SAL_N_ELEMENTS( aStrings
), aStrings
);
4429 Sequence
< Sequence
< PropertyValue
> > aPropSequenceSequence (1);
4431 Sequence
< PropertyValue
> aPropSequence (4);
4433 aPropSequence
[0].Name
= "Position";
4434 static const CustomShapeProvider::ParameterPairData aData
=
4436 EnhancedCustomShapeParameterType::EQUATION
,
4437 EnhancedCustomShapeParameterType::EQUATION
,
4440 aPropSequence
[0].Value
= makeAny (createParameterPair(&aData
));
4443 aPropSequence
[1].Name
= "RangeXMaximum";
4444 EnhancedCustomShapeParameter aParameter
;
4445 Any
aAny ((sal_Int32
) 46875);
4446 aParameter
.Value
= aAny
;
4447 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
4448 aPropSequence
[1].Value
= makeAny (aParameter
);
4451 aPropSequence
[2].Name
= "RangeXMinimum";
4452 EnhancedCustomShapeParameter aParameter
;
4453 Any
aAny ((sal_Int32
) 12500);
4454 aParameter
.Value
= aAny
;
4455 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
4456 aPropSequence
[2].Value
= makeAny (aParameter
);
4459 aPropSequence
[3].Name
= "RefX";
4460 Any
aAny ((sal_Int32
) 0);
4461 aPropSequence
[3].Value
= makeAny (aAny
);
4463 aPropSequenceSequence
[0] = aPropSequence
;
4465 aPropertyMap
[PROP_Handles
] <<= aPropSequenceSequence
;
4468 aPropertyMap
[PROP_MirroredX
] <<= Any ((sal_Bool
) sal_False
);
4471 aPropertyMap
[PROP_MirroredY
] <<= Any ((sal_Bool
) sal_False
);
4474 Sequence
< PropertyValue
> aPropSequence (3);
4476 aPropSequence
[0].Name
= "Coordinates";
4477 static const CustomShapeProvider::ParameterPairData aData
[] = {
4479 EnhancedCustomShapeParameterType::EQUATION
,
4480 EnhancedCustomShapeParameterType::EQUATION
,
4484 EnhancedCustomShapeParameterType::EQUATION
,
4485 EnhancedCustomShapeParameterType::EQUATION
,
4489 EnhancedCustomShapeParameterType::EQUATION
,
4490 EnhancedCustomShapeParameterType::EQUATION
,
4494 EnhancedCustomShapeParameterType::EQUATION
,
4495 EnhancedCustomShapeParameterType::EQUATION
,
4499 EnhancedCustomShapeParameterType::EQUATION
,
4500 EnhancedCustomShapeParameterType::EQUATION
,
4504 EnhancedCustomShapeParameterType::EQUATION
,
4505 EnhancedCustomShapeParameterType::EQUATION
,
4509 EnhancedCustomShapeParameterType::EQUATION
,
4510 EnhancedCustomShapeParameterType::NORMAL
,
4514 EnhancedCustomShapeParameterType::EQUATION
,
4515 EnhancedCustomShapeParameterType::EQUATION
,
4519 EnhancedCustomShapeParameterType::EQUATION
,
4520 EnhancedCustomShapeParameterType::EQUATION
,
4524 EnhancedCustomShapeParameterType::EQUATION
,
4525 EnhancedCustomShapeParameterType::EQUATION
,
4529 EnhancedCustomShapeParameterType::EQUATION
,
4530 EnhancedCustomShapeParameterType::EQUATION
,
4534 EnhancedCustomShapeParameterType::EQUATION
,
4535 EnhancedCustomShapeParameterType::EQUATION
,
4539 EnhancedCustomShapeParameterType::NORMAL
,
4540 EnhancedCustomShapeParameterType::EQUATION
,
4544 EnhancedCustomShapeParameterType::EQUATION
,
4545 EnhancedCustomShapeParameterType::EQUATION
,
4549 EnhancedCustomShapeParameterType::EQUATION
,
4550 EnhancedCustomShapeParameterType::EQUATION
,
4554 EnhancedCustomShapeParameterType::EQUATION
,
4555 EnhancedCustomShapeParameterType::EQUATION
,
4559 EnhancedCustomShapeParameterType::EQUATION
,
4560 EnhancedCustomShapeParameterType::EQUATION
,
4564 EnhancedCustomShapeParameterType::EQUATION
,
4565 EnhancedCustomShapeParameterType::EQUATION
,
4569 EnhancedCustomShapeParameterType::EQUATION
,
4570 EnhancedCustomShapeParameterType::EQUATION
,
4574 EnhancedCustomShapeParameterType::EQUATION
,
4575 EnhancedCustomShapeParameterType::EQUATION
,
4579 EnhancedCustomShapeParameterType::EQUATION
,
4580 EnhancedCustomShapeParameterType::EQUATION
,
4584 EnhancedCustomShapeParameterType::EQUATION
,
4585 EnhancedCustomShapeParameterType::EQUATION
,
4589 EnhancedCustomShapeParameterType::EQUATION
,
4590 EnhancedCustomShapeParameterType::EQUATION
,
4594 EnhancedCustomShapeParameterType::EQUATION
,
4595 EnhancedCustomShapeParameterType::EQUATION
,
4599 EnhancedCustomShapeParameterType::EQUATION
,
4600 EnhancedCustomShapeParameterType::EQUATION
,
4604 EnhancedCustomShapeParameterType::EQUATION
,
4605 EnhancedCustomShapeParameterType::EQUATION
,
4609 EnhancedCustomShapeParameterType::EQUATION
,
4610 EnhancedCustomShapeParameterType::EQUATION
,
4614 aPropSequence
[0].Value
= makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData
), aData
));
4617 aPropSequence
[1].Name
= "Segments";
4618 static const sal_uInt16 nValues
[] = {
4649 aPropSequence
[1].Value
= makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues
), nValues
));
4652 aPropSequence
[2].Name
= "TextFrames";
4653 Sequence
< EnhancedCustomShapeTextFrame
> aTextFrameSeq (1);
4655 EnhancedCustomShapeTextFrame aTextFrame
;
4657 static const CustomShapeProvider::ParameterPairData aData
=
4659 EnhancedCustomShapeParameterType::EQUATION
,
4660 EnhancedCustomShapeParameterType::EQUATION
,
4663 aTextFrame
.TopLeft
= createParameterPair(&aData
);
4666 static const CustomShapeProvider::ParameterPairData aData
=
4668 EnhancedCustomShapeParameterType::EQUATION
,
4669 EnhancedCustomShapeParameterType::EQUATION
,
4672 aTextFrame
.BottomRight
= createParameterPair(&aData
);
4674 aTextFrameSeq
[0] = aTextFrame
;
4676 aPropSequence
[2].Value
= makeAny (aTextFrameSeq
);
4678 aPropertyMap
[PROP_Path
] <<= aPropSequence
;
4681 awt::Rectangle aRectangle
;
4684 aRectangle
.Width
= 0;
4685 aRectangle
.Height
= 0;
4686 aPropertyMap
[PROP_ViewBox
] <<= aRectangle
;
4688 aPropertyMap
[ PROP_Type
] <<= OUString("ooxml-sun");
4690 return aPropertyMap
;
4693 class ShapeCplaque
: public CustomShapeProvider
4695 virtual PropertyMap
getProperties()
4697 PropertyMap aPropertyMap
;
4700 Sequence
< EnhancedCustomShapeAdjustmentValue
> aAdjSequence (1);
4702 Any
aAny ((sal_Int32
) 16667);
4703 aAdjSequence
[0].Value
= aAny
;
4704 aAdjSequence
[0].Name
= "adj";
4706 aPropertyMap
[PROP_AdjustmentValues
] <<= aAdjSequence
;
4709 static const char *aStrings
[] = {
4710 "if(0-$0 ,0,if(50000-$0 ,$0 ,50000))",
4711 "min(logwidth,logheight)",
4722 "(5400000)/60000.0",
4723 "(-5400000)/60000.0",
4724 "(10800000)/60000.0",
4725 "(-5400000)/60000.0",
4726 "(16200000)/60000.0",
4727 "(-5400000)/60000.0",
4729 "(-5400000)/60000.0"
4731 aPropertyMap
[PROP_Equations
] <<= createStringSequence( SAL_N_ELEMENTS( aStrings
), aStrings
);
4734 Sequence
< Sequence
< PropertyValue
> > aPropSequenceSequence (1);
4736 Sequence
< PropertyValue
> aPropSequence (4);
4738 aPropSequence
[0].Name
= "Position";
4739 static const CustomShapeProvider::ParameterPairData aData
=
4741 EnhancedCustomShapeParameterType::EQUATION
,
4742 EnhancedCustomShapeParameterType::NORMAL
,
4745 aPropSequence
[0].Value
= makeAny (createParameterPair(&aData
));
4748 aPropSequence
[1].Name
= "RangeXMaximum";
4749 EnhancedCustomShapeParameter aParameter
;
4750 Any
aAny ((sal_Int32
) 50000);
4751 aParameter
.Value
= aAny
;
4752 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
4753 aPropSequence
[1].Value
= makeAny (aParameter
);
4756 aPropSequence
[2].Name
= "RangeXMinimum";
4757 EnhancedCustomShapeParameter aParameter
;
4758 Any
aAny ((sal_Int32
) 0);
4759 aParameter
.Value
= aAny
;
4760 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
4761 aPropSequence
[2].Value
= makeAny (aParameter
);
4764 aPropSequence
[3].Name
= "RefX";
4765 Any
aAny ((sal_Int32
) 0);
4766 aPropSequence
[3].Value
= makeAny (aAny
);
4768 aPropSequenceSequence
[0] = aPropSequence
;
4770 aPropertyMap
[PROP_Handles
] <<= aPropSequenceSequence
;
4773 aPropertyMap
[PROP_MirroredX
] <<= Any ((sal_Bool
) sal_False
);
4776 aPropertyMap
[PROP_MirroredY
] <<= Any ((sal_Bool
) sal_False
);
4779 Sequence
< PropertyValue
> aPropSequence (3);
4781 aPropSequence
[0].Name
= "Coordinates";
4782 static const CustomShapeProvider::ParameterPairData aData
[] = {
4784 EnhancedCustomShapeParameterType::NORMAL
,
4785 EnhancedCustomShapeParameterType::EQUATION
,
4789 EnhancedCustomShapeParameterType::EQUATION
,
4790 EnhancedCustomShapeParameterType::EQUATION
,
4794 EnhancedCustomShapeParameterType::EQUATION
,
4795 EnhancedCustomShapeParameterType::EQUATION
,
4799 EnhancedCustomShapeParameterType::EQUATION
,
4800 EnhancedCustomShapeParameterType::NORMAL
,
4804 EnhancedCustomShapeParameterType::EQUATION
,
4805 EnhancedCustomShapeParameterType::EQUATION
,
4809 EnhancedCustomShapeParameterType::EQUATION
,
4810 EnhancedCustomShapeParameterType::EQUATION
,
4814 EnhancedCustomShapeParameterType::EQUATION
,
4815 EnhancedCustomShapeParameterType::EQUATION
,
4819 EnhancedCustomShapeParameterType::EQUATION
,
4820 EnhancedCustomShapeParameterType::EQUATION
,
4824 EnhancedCustomShapeParameterType::EQUATION
,
4825 EnhancedCustomShapeParameterType::EQUATION
,
4829 EnhancedCustomShapeParameterType::EQUATION
,
4830 EnhancedCustomShapeParameterType::EQUATION
,
4834 EnhancedCustomShapeParameterType::EQUATION
,
4835 EnhancedCustomShapeParameterType::EQUATION
,
4839 EnhancedCustomShapeParameterType::EQUATION
,
4840 EnhancedCustomShapeParameterType::EQUATION
,
4844 aPropSequence
[0].Value
= makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData
), aData
));
4847 aPropSequence
[1].Name
= "Segments";
4848 static const sal_uInt16 nValues
[] = {
4861 aPropSequence
[1].Value
= makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues
), nValues
));
4864 aPropSequence
[2].Name
= "TextFrames";
4865 Sequence
< EnhancedCustomShapeTextFrame
> aTextFrameSeq (1);
4867 EnhancedCustomShapeTextFrame aTextFrame
;
4869 static const CustomShapeProvider::ParameterPairData aData
=
4871 EnhancedCustomShapeParameterType::EQUATION
,
4872 EnhancedCustomShapeParameterType::EQUATION
,
4875 aTextFrame
.TopLeft
= createParameterPair(&aData
);
4878 static const CustomShapeProvider::ParameterPairData aData
=
4880 EnhancedCustomShapeParameterType::EQUATION
,
4881 EnhancedCustomShapeParameterType::EQUATION
,
4884 aTextFrame
.BottomRight
= createParameterPair(&aData
);
4886 aTextFrameSeq
[0] = aTextFrame
;
4888 aPropSequence
[2].Value
= makeAny (aTextFrameSeq
);
4890 aPropertyMap
[PROP_Path
] <<= aPropSequence
;
4893 awt::Rectangle aRectangle
;
4896 aRectangle
.Width
= 0;
4897 aRectangle
.Height
= 0;
4898 aPropertyMap
[PROP_ViewBox
] <<= aRectangle
;
4900 aPropertyMap
[ PROP_Type
] <<= OUString("ooxml-plaque");
4902 return aPropertyMap
;
4905 class ShapeCchevron
: public CustomShapeProvider
4907 virtual PropertyMap
getProperties()
4909 PropertyMap aPropertyMap
;
4912 Sequence
< EnhancedCustomShapeAdjustmentValue
> aAdjSequence (1);
4914 Any
aAny ((sal_Int32
) 50000);
4915 aAdjSequence
[0].Value
= aAny
;
4916 aAdjSequence
[0].Name
= "adj";
4918 aPropertyMap
[PROP_AdjustmentValues
] <<= aAdjSequence
;
4921 static const char *aStrings
[] = {
4922 "min(logwidth,logheight)",
4923 "100000*logwidth/?0 ",
4924 "if(0-$0 ,0,if(?1 -$0 ,$0 ,?1 ))",
4930 "if(?6 ,?4 ,logwidth)",
4935 aPropertyMap
[PROP_Equations
] <<= createStringSequence( SAL_N_ELEMENTS( aStrings
), aStrings
);
4938 Sequence
< Sequence
< PropertyValue
> > aPropSequenceSequence (1);
4940 Sequence
< PropertyValue
> aPropSequence (4);
4942 aPropSequence
[0].Name
= "Position";
4943 static const CustomShapeProvider::ParameterPairData aData
=
4945 EnhancedCustomShapeParameterType::EQUATION
,
4946 EnhancedCustomShapeParameterType::NORMAL
,
4949 aPropSequence
[0].Value
= makeAny (createParameterPair(&aData
));
4952 aPropSequence
[1].Name
= "RangeXMaximum";
4953 EnhancedCustomShapeParameter aParameter
;
4954 Any
aAny ((sal_Int32
) 1);
4955 aParameter
.Value
= aAny
;
4956 aParameter
.Type
= EnhancedCustomShapeParameterType::EQUATION
;
4957 aPropSequence
[1].Value
= makeAny (aParameter
);
4960 aPropSequence
[2].Name
= "RangeXMinimum";
4961 EnhancedCustomShapeParameter aParameter
;
4962 Any
aAny ((sal_Int32
) 0);
4963 aParameter
.Value
= aAny
;
4964 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
4965 aPropSequence
[2].Value
= makeAny (aParameter
);
4968 aPropSequence
[3].Name
= "RefX";
4969 Any
aAny ((sal_Int32
) 0);
4970 aPropSequence
[3].Value
= makeAny (aAny
);
4972 aPropSequenceSequence
[0] = aPropSequence
;
4974 aPropertyMap
[PROP_Handles
] <<= aPropSequenceSequence
;
4977 aPropertyMap
[PROP_MirroredX
] <<= Any ((sal_Bool
) sal_False
);
4980 aPropertyMap
[PROP_MirroredY
] <<= Any ((sal_Bool
) sal_False
);
4983 Sequence
< PropertyValue
> aPropSequence (3);
4985 aPropSequence
[0].Name
= "Coordinates";
4986 static const CustomShapeProvider::ParameterPairData aData
[] = {
4988 EnhancedCustomShapeParameterType::NORMAL
,
4989 EnhancedCustomShapeParameterType::NORMAL
,
4993 EnhancedCustomShapeParameterType::EQUATION
,
4994 EnhancedCustomShapeParameterType::NORMAL
,
4998 EnhancedCustomShapeParameterType::EQUATION
,
4999 EnhancedCustomShapeParameterType::EQUATION
,
5003 EnhancedCustomShapeParameterType::EQUATION
,
5004 EnhancedCustomShapeParameterType::EQUATION
,
5008 EnhancedCustomShapeParameterType::NORMAL
,
5009 EnhancedCustomShapeParameterType::EQUATION
,
5013 EnhancedCustomShapeParameterType::EQUATION
,
5014 EnhancedCustomShapeParameterType::EQUATION
,
5018 aPropSequence
[0].Value
= makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData
), aData
));
5021 aPropSequence
[1].Name
= "Segments";
5022 static const sal_uInt16 nValues
[] = {
5029 aPropSequence
[1].Value
= makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues
), nValues
));
5032 aPropSequence
[2].Name
= "TextFrames";
5033 Sequence
< EnhancedCustomShapeTextFrame
> aTextFrameSeq (1);
5035 EnhancedCustomShapeTextFrame aTextFrame
;
5037 static const CustomShapeProvider::ParameterPairData aData
=
5039 EnhancedCustomShapeParameterType::EQUATION
,
5040 EnhancedCustomShapeParameterType::NORMAL
,
5043 aTextFrame
.TopLeft
= createParameterPair(&aData
);
5046 static const CustomShapeProvider::ParameterPairData aData
=
5048 EnhancedCustomShapeParameterType::EQUATION
,
5049 EnhancedCustomShapeParameterType::EQUATION
,
5052 aTextFrame
.BottomRight
= createParameterPair(&aData
);
5054 aTextFrameSeq
[0] = aTextFrame
;
5056 aPropSequence
[2].Value
= makeAny (aTextFrameSeq
);
5058 aPropertyMap
[PROP_Path
] <<= aPropSequence
;
5061 awt::Rectangle aRectangle
;
5064 aRectangle
.Width
= 0;
5065 aRectangle
.Height
= 0;
5066 aPropertyMap
[PROP_ViewBox
] <<= aRectangle
;
5068 aPropertyMap
[ PROP_Type
] <<= OUString("ooxml-chevron");
5070 return aPropertyMap
;
5073 class ShapeCflowChartPreparation
: public CustomShapeProvider
5075 virtual PropertyMap
getProperties()
5077 PropertyMap aPropertyMap
;
5080 aPropertyMap
[PROP_AdjustmentValues
] <<= Sequence
< OUString
>(0);
5083 static const char *aStrings
[] = {
5091 aPropertyMap
[PROP_Equations
] <<= createStringSequence( SAL_N_ELEMENTS( aStrings
), aStrings
);
5094 aPropertyMap
[PROP_Handles
] <<= Sequence
< OUString
>(0);
5097 aPropertyMap
[PROP_MirroredX
] <<= Any ((sal_Bool
) sal_False
);
5100 aPropertyMap
[PROP_MirroredY
] <<= Any ((sal_Bool
) sal_False
);
5103 Sequence
< PropertyValue
> aPropSequence (4);
5105 aPropSequence
[0].Name
= "Coordinates";
5106 static const CustomShapeProvider::ParameterPairData aData
[] = {
5108 EnhancedCustomShapeParameterType::NORMAL
,
5109 EnhancedCustomShapeParameterType::NORMAL
,
5113 EnhancedCustomShapeParameterType::NORMAL
,
5114 EnhancedCustomShapeParameterType::NORMAL
,
5118 EnhancedCustomShapeParameterType::NORMAL
,
5119 EnhancedCustomShapeParameterType::NORMAL
,
5123 EnhancedCustomShapeParameterType::NORMAL
,
5124 EnhancedCustomShapeParameterType::NORMAL
,
5128 EnhancedCustomShapeParameterType::NORMAL
,
5129 EnhancedCustomShapeParameterType::NORMAL
,
5133 EnhancedCustomShapeParameterType::NORMAL
,
5134 EnhancedCustomShapeParameterType::NORMAL
,
5138 aPropSequence
[0].Value
= makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData
), aData
));
5141 aPropSequence
[1].Name
= "Segments";
5142 static const sal_uInt16 nValues
[] = {
5149 aPropSequence
[1].Value
= makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues
), nValues
));
5152 aPropSequence
[2].Name
= "SubViewSize";
5153 Sequence
< awt::Size
> aSizeSequence (1);
5158 aSizeSequence
[0] = aSize
;
5160 aPropSequence
[2].Value
= makeAny (aSizeSequence
);
5163 aPropSequence
[3].Name
= "TextFrames";
5164 Sequence
< EnhancedCustomShapeTextFrame
> aTextFrameSeq (1);
5166 EnhancedCustomShapeTextFrame aTextFrame
;
5168 static const CustomShapeProvider::ParameterPairData aData
=
5170 EnhancedCustomShapeParameterType::EQUATION
,
5171 EnhancedCustomShapeParameterType::NORMAL
,
5174 aTextFrame
.TopLeft
= createParameterPair(&aData
);
5177 static const CustomShapeProvider::ParameterPairData aData
=
5179 EnhancedCustomShapeParameterType::EQUATION
,
5180 EnhancedCustomShapeParameterType::EQUATION
,
5183 aTextFrame
.BottomRight
= createParameterPair(&aData
);
5185 aTextFrameSeq
[0] = aTextFrame
;
5187 aPropSequence
[3].Value
= makeAny (aTextFrameSeq
);
5189 aPropertyMap
[PROP_Path
] <<= aPropSequence
;
5192 awt::Rectangle aRectangle
;
5195 aRectangle
.Width
= 0;
5196 aRectangle
.Height
= 0;
5197 aPropertyMap
[PROP_ViewBox
] <<= aRectangle
;
5199 aPropertyMap
[ PROP_Type
] <<= OUString("ooxml-flowChartPreparation");
5201 return aPropertyMap
;
5204 class ShapeCdiagStripe
: public CustomShapeProvider
5206 virtual PropertyMap
getProperties()
5208 PropertyMap aPropertyMap
;
5211 Sequence
< EnhancedCustomShapeAdjustmentValue
> aAdjSequence (1);
5213 Any
aAny ((sal_Int32
) 50000);
5214 aAdjSequence
[0].Value
= aAny
;
5215 aAdjSequence
[0].Name
= "adj";
5217 aPropertyMap
[PROP_AdjustmentValues
] <<= aAdjSequence
;
5220 static const char *aStrings
[] = {
5221 "if(0-$0 ,0,if(100000-$0 ,$0 ,100000))",
5222 "logwidth*?0 /100000",
5225 "logheight*?0 /100000",
5227 "(?4 +logheight)/2",
5233 aPropertyMap
[PROP_Equations
] <<= createStringSequence( SAL_N_ELEMENTS( aStrings
), aStrings
);
5236 Sequence
< Sequence
< PropertyValue
> > aPropSequenceSequence (1);
5238 Sequence
< PropertyValue
> aPropSequence (4);
5240 aPropSequence
[0].Name
= "Position";
5241 static const CustomShapeProvider::ParameterPairData aData
=
5243 EnhancedCustomShapeParameterType::NORMAL
,
5244 EnhancedCustomShapeParameterType::EQUATION
,
5247 aPropSequence
[0].Value
= makeAny (createParameterPair(&aData
));
5250 aPropSequence
[1].Name
= "RangeYMaximum";
5251 EnhancedCustomShapeParameter aParameter
;
5252 Any
aAny ((sal_Int32
) 100000);
5253 aParameter
.Value
= aAny
;
5254 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
5255 aPropSequence
[1].Value
= makeAny (aParameter
);
5258 aPropSequence
[2].Name
= "RangeYMinimum";
5259 EnhancedCustomShapeParameter aParameter
;
5260 Any
aAny ((sal_Int32
) 0);
5261 aParameter
.Value
= aAny
;
5262 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
5263 aPropSequence
[2].Value
= makeAny (aParameter
);
5266 aPropSequence
[3].Name
= "RefY";
5267 Any
aAny ((sal_Int32
) 0);
5268 aPropSequence
[3].Value
= makeAny (aAny
);
5270 aPropSequenceSequence
[0] = aPropSequence
;
5272 aPropertyMap
[PROP_Handles
] <<= aPropSequenceSequence
;
5275 aPropertyMap
[PROP_MirroredX
] <<= Any ((sal_Bool
) sal_False
);
5278 aPropertyMap
[PROP_MirroredY
] <<= Any ((sal_Bool
) sal_False
);
5281 Sequence
< PropertyValue
> aPropSequence (3);
5283 aPropSequence
[0].Name
= "Coordinates";
5284 static const CustomShapeProvider::ParameterPairData aData
[] = {
5286 EnhancedCustomShapeParameterType::NORMAL
,
5287 EnhancedCustomShapeParameterType::EQUATION
,
5291 EnhancedCustomShapeParameterType::EQUATION
,
5292 EnhancedCustomShapeParameterType::NORMAL
,
5296 EnhancedCustomShapeParameterType::EQUATION
,
5297 EnhancedCustomShapeParameterType::NORMAL
,
5301 EnhancedCustomShapeParameterType::NORMAL
,
5302 EnhancedCustomShapeParameterType::EQUATION
,
5306 aPropSequence
[0].Value
= makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData
), aData
));
5309 aPropSequence
[1].Name
= "Segments";
5310 static const sal_uInt16 nValues
[] = {
5317 aPropSequence
[1].Value
= makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues
), nValues
));
5320 aPropSequence
[2].Name
= "TextFrames";
5321 Sequence
< EnhancedCustomShapeTextFrame
> aTextFrameSeq (1);
5323 EnhancedCustomShapeTextFrame aTextFrame
;
5325 static const CustomShapeProvider::ParameterPairData aData
=
5327 EnhancedCustomShapeParameterType::NORMAL
,
5328 EnhancedCustomShapeParameterType::NORMAL
,
5331 aTextFrame
.TopLeft
= createParameterPair(&aData
);
5334 static const CustomShapeProvider::ParameterPairData aData
=
5336 EnhancedCustomShapeParameterType::EQUATION
,
5337 EnhancedCustomShapeParameterType::EQUATION
,
5340 aTextFrame
.BottomRight
= createParameterPair(&aData
);
5342 aTextFrameSeq
[0] = aTextFrame
;
5344 aPropSequence
[2].Value
= makeAny (aTextFrameSeq
);
5346 aPropertyMap
[PROP_Path
] <<= aPropSequence
;
5349 awt::Rectangle aRectangle
;
5352 aRectangle
.Width
= 0;
5353 aRectangle
.Height
= 0;
5354 aPropertyMap
[PROP_ViewBox
] <<= aRectangle
;
5356 aPropertyMap
[ PROP_Type
] <<= OUString("ooxml-diagStripe");
5358 return aPropertyMap
;
5361 class ShapeCpentagon
: public CustomShapeProvider
5363 virtual PropertyMap
getProperties()
5365 PropertyMap aPropertyMap
;
5368 Sequence
< EnhancedCustomShapeAdjustmentValue
> aAdjSequence (2);
5370 Any
aAny ((sal_Int32
) 105146);
5371 aAdjSequence
[0].Value
= aAny
;
5372 aAdjSequence
[0].Name
= "hf";
5375 Any
aAny ((sal_Int32
) 110557);
5376 aAdjSequence
[1].Value
= aAny
;
5377 aAdjSequence
[1].Name
= "vf";
5379 aPropertyMap
[PROP_AdjustmentValues
] <<= aAdjSequence
;
5382 static const char *aStrings
[] = {
5389 "?1 *cos(pi*(1080000)/10800000)",
5390 "?1 *cos(pi*(18360000)/10800000)",
5391 "?3 *sin(pi*(1080000)/10800000)",
5392 "?3 *sin(pi*(18360000)/10800000)",
5403 aPropertyMap
[PROP_Equations
] <<= createStringSequence( SAL_N_ELEMENTS( aStrings
), aStrings
);
5406 aPropertyMap
[PROP_Handles
] <<= Sequence
< OUString
>(0);
5409 aPropertyMap
[PROP_MirroredX
] <<= Any ((sal_Bool
) sal_False
);
5412 aPropertyMap
[PROP_MirroredY
] <<= Any ((sal_Bool
) sal_False
);
5415 Sequence
< PropertyValue
> aPropSequence (3);
5417 aPropSequence
[0].Name
= "Coordinates";
5418 static const CustomShapeProvider::ParameterPairData aData
[] = {
5420 EnhancedCustomShapeParameterType::EQUATION
,
5421 EnhancedCustomShapeParameterType::EQUATION
,
5425 EnhancedCustomShapeParameterType::EQUATION
,
5426 EnhancedCustomShapeParameterType::NORMAL
,
5430 EnhancedCustomShapeParameterType::EQUATION
,
5431 EnhancedCustomShapeParameterType::EQUATION
,
5435 EnhancedCustomShapeParameterType::EQUATION
,
5436 EnhancedCustomShapeParameterType::EQUATION
,
5440 EnhancedCustomShapeParameterType::EQUATION
,
5441 EnhancedCustomShapeParameterType::EQUATION
,
5445 aPropSequence
[0].Value
= makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData
), aData
));
5448 aPropSequence
[1].Name
= "Segments";
5449 static const sal_uInt16 nValues
[] = {
5456 aPropSequence
[1].Value
= makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues
), nValues
));
5459 aPropSequence
[2].Name
= "TextFrames";
5460 Sequence
< EnhancedCustomShapeTextFrame
> aTextFrameSeq (1);
5462 EnhancedCustomShapeTextFrame aTextFrame
;
5464 static const CustomShapeProvider::ParameterPairData aData
=
5466 EnhancedCustomShapeParameterType::EQUATION
,
5467 EnhancedCustomShapeParameterType::EQUATION
,
5470 aTextFrame
.TopLeft
= createParameterPair(&aData
);
5473 static const CustomShapeProvider::ParameterPairData aData
=
5475 EnhancedCustomShapeParameterType::EQUATION
,
5476 EnhancedCustomShapeParameterType::EQUATION
,
5479 aTextFrame
.BottomRight
= createParameterPair(&aData
);
5481 aTextFrameSeq
[0] = aTextFrame
;
5483 aPropSequence
[2].Value
= makeAny (aTextFrameSeq
);
5485 aPropertyMap
[PROP_Path
] <<= aPropSequence
;
5488 awt::Rectangle aRectangle
;
5491 aRectangle
.Width
= 0;
5492 aRectangle
.Height
= 0;
5493 aPropertyMap
[PROP_ViewBox
] <<= aRectangle
;
5495 aPropertyMap
[ PROP_Type
] <<= OUString("ooxml-pentagon");
5497 return aPropertyMap
;
5500 class ShapeCfunnel
: public CustomShapeProvider
5502 virtual PropertyMap
getProperties()
5504 PropertyMap aPropertyMap
;
5507 aPropertyMap
[PROP_AdjustmentValues
] <<= Sequence
< OUString
>(0);
5510 static const char *aStrings
[] = {
5511 "min(logwidth,logheight)",
5517 "?2 *cos(pi*(480000)/10800000)",
5518 "?4 *sin(pi*(480000)/10800000)",
5519 "(10800000*atan2(?7 ,?6 ))/pi",
5526 "?4 *cos(pi*(?10 )/10800000)",
5527 "?2 *sin(pi*(?10 )/10800000)",
5528 "sqrt(?15 *?15 +?16 *?16 +0*0)",
5530 "?18 *cos(pi*(?10 )/10800000)",
5531 "?18 *sin(pi*(?10 )/10800000)",
5535 "?14 *cos(pi*(?8 )/10800000)",
5536 "?13 *sin(pi*(?8 )/10800000)",
5537 "sqrt(?24 *?24 +?25 *?25 +0*0)",
5539 "?27 *cos(pi*(?8 )/10800000)",
5540 "?27 *sin(pi*(?8 )/10800000)",
5552 "(10800000)/60000.0",
5553 "(-21600000)/60000.0"
5555 aPropertyMap
[PROP_Equations
] <<= createStringSequence( SAL_N_ELEMENTS( aStrings
), aStrings
);
5558 aPropertyMap
[PROP_Handles
] <<= Sequence
< OUString
>(0);
5561 aPropertyMap
[PROP_MirroredX
] <<= Any ((sal_Bool
) sal_False
);
5564 aPropertyMap
[PROP_MirroredY
] <<= Any ((sal_Bool
) sal_False
);
5567 Sequence
< PropertyValue
> aPropSequence (3);
5569 aPropSequence
[0].Name
= "Coordinates";
5570 static const CustomShapeProvider::ParameterPairData aData
[] = {
5572 EnhancedCustomShapeParameterType::EQUATION
,
5573 EnhancedCustomShapeParameterType::EQUATION
,
5577 EnhancedCustomShapeParameterType::EQUATION
,
5578 EnhancedCustomShapeParameterType::EQUATION
,
5582 EnhancedCustomShapeParameterType::EQUATION
,
5583 EnhancedCustomShapeParameterType::EQUATION
,
5587 EnhancedCustomShapeParameterType::EQUATION
,
5588 EnhancedCustomShapeParameterType::EQUATION
,
5592 EnhancedCustomShapeParameterType::EQUATION
,
5593 EnhancedCustomShapeParameterType::EQUATION
,
5597 EnhancedCustomShapeParameterType::EQUATION
,
5598 EnhancedCustomShapeParameterType::EQUATION
,
5602 EnhancedCustomShapeParameterType::EQUATION
,
5603 EnhancedCustomShapeParameterType::EQUATION
,
5607 EnhancedCustomShapeParameterType::EQUATION
,
5608 EnhancedCustomShapeParameterType::EQUATION
,
5612 EnhancedCustomShapeParameterType::EQUATION
,
5613 EnhancedCustomShapeParameterType::EQUATION
,
5617 aPropSequence
[0].Value
= makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData
), aData
));
5620 aPropSequence
[1].Name
= "Segments";
5621 static const sal_uInt16 nValues
[] = {
5633 aPropSequence
[1].Value
= makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues
), nValues
));
5636 aPropSequence
[2].Name
= "TextFrames";
5637 Sequence
< EnhancedCustomShapeTextFrame
> aTextFrameSeq (1);
5639 EnhancedCustomShapeTextFrame aTextFrame
;
5641 static const CustomShapeProvider::ParameterPairData aData
=
5643 EnhancedCustomShapeParameterType::NORMAL
,
5644 EnhancedCustomShapeParameterType::NORMAL
,
5647 aTextFrame
.TopLeft
= createParameterPair(&aData
);
5650 static const CustomShapeProvider::ParameterPairData aData
=
5652 EnhancedCustomShapeParameterType::EQUATION
,
5653 EnhancedCustomShapeParameterType::EQUATION
,
5656 aTextFrame
.BottomRight
= createParameterPair(&aData
);
5658 aTextFrameSeq
[0] = aTextFrame
;
5660 aPropSequence
[2].Value
= makeAny (aTextFrameSeq
);
5662 aPropertyMap
[PROP_Path
] <<= aPropSequence
;
5665 awt::Rectangle aRectangle
;
5668 aRectangle
.Width
= 0;
5669 aRectangle
.Height
= 0;
5670 aPropertyMap
[PROP_ViewBox
] <<= aRectangle
;
5672 aPropertyMap
[ PROP_Type
] <<= OUString("ooxml-funnel");
5674 return aPropertyMap
;
5677 class ShapeCchartStar
: public CustomShapeProvider
5679 virtual PropertyMap
getProperties()
5681 PropertyMap aPropertyMap
;
5684 aPropertyMap
[PROP_AdjustmentValues
] <<= Sequence
< OUString
>(0);
5687 aPropertyMap
[PROP_Equations
] <<= Sequence
< OUString
>(0);
5690 aPropertyMap
[PROP_Handles
] <<= Sequence
< OUString
>(0);
5693 aPropertyMap
[PROP_MirroredX
] <<= Any ((sal_Bool
) sal_False
);
5696 aPropertyMap
[PROP_MirroredY
] <<= Any ((sal_Bool
) sal_False
);
5699 Sequence
< PropertyValue
> aPropSequence (3);
5701 aPropSequence
[0].Name
= "Coordinates";
5702 static const CustomShapeProvider::ParameterPairData aData
[] = {
5704 EnhancedCustomShapeParameterType::NORMAL
,
5705 EnhancedCustomShapeParameterType::NORMAL
,
5709 EnhancedCustomShapeParameterType::NORMAL
,
5710 EnhancedCustomShapeParameterType::NORMAL
,
5714 EnhancedCustomShapeParameterType::NORMAL
,
5715 EnhancedCustomShapeParameterType::NORMAL
,
5719 EnhancedCustomShapeParameterType::NORMAL
,
5720 EnhancedCustomShapeParameterType::NORMAL
,
5724 EnhancedCustomShapeParameterType::NORMAL
,
5725 EnhancedCustomShapeParameterType::NORMAL
,
5729 EnhancedCustomShapeParameterType::NORMAL
,
5730 EnhancedCustomShapeParameterType::NORMAL
,
5734 EnhancedCustomShapeParameterType::NORMAL
,
5735 EnhancedCustomShapeParameterType::NORMAL
,
5739 EnhancedCustomShapeParameterType::NORMAL
,
5740 EnhancedCustomShapeParameterType::NORMAL
,
5744 EnhancedCustomShapeParameterType::NORMAL
,
5745 EnhancedCustomShapeParameterType::NORMAL
,
5749 EnhancedCustomShapeParameterType::NORMAL
,
5750 EnhancedCustomShapeParameterType::NORMAL
,
5754 aPropSequence
[0].Value
= makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData
), aData
));
5757 aPropSequence
[1].Name
= "Segments";
5758 static const sal_uInt16 nValues
[] = {
5774 aPropSequence
[1].Value
= makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues
), nValues
));
5777 aPropSequence
[2].Name
= "SubViewSize";
5778 Sequence
< awt::Size
> aSizeSequence (2);
5783 aSizeSequence
[0] = aSize
;
5789 aSizeSequence
[1] = aSize
;
5791 aPropSequence
[2].Value
= makeAny (aSizeSequence
);
5793 aPropertyMap
[PROP_Path
] <<= aPropSequence
;
5796 awt::Rectangle aRectangle
;
5799 aRectangle
.Width
= 0;
5800 aRectangle
.Height
= 0;
5801 aPropertyMap
[PROP_ViewBox
] <<= aRectangle
;
5803 aPropertyMap
[ PROP_Type
] <<= OUString("ooxml-chartStar");
5805 return aPropertyMap
;
5808 class ShapeCaccentBorderCallout1
: public CustomShapeProvider
5810 virtual PropertyMap
getProperties()
5812 PropertyMap aPropertyMap
;
5815 Sequence
< EnhancedCustomShapeAdjustmentValue
> aAdjSequence (4);
5817 Any
aAny ((sal_Int32
) 18750);
5818 aAdjSequence
[0].Value
= aAny
;
5819 aAdjSequence
[0].Name
= "adj1";
5822 Any
aAny ((sal_Int32
) -8333);
5823 aAdjSequence
[1].Value
= aAny
;
5824 aAdjSequence
[1].Name
= "adj2";
5827 Any
aAny ((sal_Int32
) 112500);
5828 aAdjSequence
[2].Value
= aAny
;
5829 aAdjSequence
[2].Name
= "adj3";
5832 Any
aAny ((sal_Int32
) -38333);
5833 aAdjSequence
[3].Value
= aAny
;
5834 aAdjSequence
[3].Name
= "adj4";
5836 aPropertyMap
[PROP_AdjustmentValues
] <<= aAdjSequence
;
5839 static const char *aStrings
[] = {
5840 "logheight*$0 /100000",
5841 "logwidth*$1 /100000",
5842 "logheight*$2 /100000",
5843 "logwidth*$3 /100000",
5849 aPropertyMap
[PROP_Equations
] <<= createStringSequence( SAL_N_ELEMENTS( aStrings
), aStrings
);
5852 Sequence
< Sequence
< PropertyValue
> > aPropSequenceSequence (2);
5854 Sequence
< PropertyValue
> aPropSequence (7);
5856 aPropSequence
[0].Name
= "Position";
5857 static const CustomShapeProvider::ParameterPairData aData
=
5859 EnhancedCustomShapeParameterType::EQUATION
,
5860 EnhancedCustomShapeParameterType::EQUATION
,
5863 aPropSequence
[0].Value
= makeAny (createParameterPair(&aData
));
5866 aPropSequence
[1].Name
= "RangeXMaximum";
5867 EnhancedCustomShapeParameter aParameter
;
5868 Any
aAny ((sal_Int32
) 2147483647);
5869 aParameter
.Value
= aAny
;
5870 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
5871 aPropSequence
[1].Value
= makeAny (aParameter
);
5874 aPropSequence
[2].Name
= "RangeXMinimum";
5875 EnhancedCustomShapeParameter aParameter
;
5876 Any
aAny ((sal_Int32
) -2147483647);
5877 aParameter
.Value
= aAny
;
5878 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
5879 aPropSequence
[2].Value
= makeAny (aParameter
);
5882 aPropSequence
[3].Name
= "RangeYMaximum";
5883 EnhancedCustomShapeParameter aParameter
;
5884 Any
aAny ((sal_Int32
) 2147483647);
5885 aParameter
.Value
= aAny
;
5886 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
5887 aPropSequence
[3].Value
= makeAny (aParameter
);
5890 aPropSequence
[4].Name
= "RangeYMinimum";
5891 EnhancedCustomShapeParameter aParameter
;
5892 Any
aAny ((sal_Int32
) -2147483647);
5893 aParameter
.Value
= aAny
;
5894 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
5895 aPropSequence
[4].Value
= makeAny (aParameter
);
5898 aPropSequence
[5].Name
= "RefX";
5899 Any
aAny ((sal_Int32
) 1);
5900 aPropSequence
[5].Value
= makeAny (aAny
);
5903 aPropSequence
[6].Name
= "RefY";
5904 Any
aAny ((sal_Int32
) 0);
5905 aPropSequence
[6].Value
= makeAny (aAny
);
5907 aPropSequenceSequence
[0] = aPropSequence
;
5910 Sequence
< PropertyValue
> aPropSequence (7);
5912 aPropSequence
[0].Name
= "Position";
5913 static const CustomShapeProvider::ParameterPairData aData
=
5915 EnhancedCustomShapeParameterType::EQUATION
,
5916 EnhancedCustomShapeParameterType::EQUATION
,
5919 aPropSequence
[0].Value
= makeAny (createParameterPair(&aData
));
5922 aPropSequence
[1].Name
= "RangeXMaximum";
5923 EnhancedCustomShapeParameter aParameter
;
5924 Any
aAny ((sal_Int32
) 2147483647);
5925 aParameter
.Value
= aAny
;
5926 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
5927 aPropSequence
[1].Value
= makeAny (aParameter
);
5930 aPropSequence
[2].Name
= "RangeXMinimum";
5931 EnhancedCustomShapeParameter aParameter
;
5932 Any
aAny ((sal_Int32
) -2147483647);
5933 aParameter
.Value
= aAny
;
5934 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
5935 aPropSequence
[2].Value
= makeAny (aParameter
);
5938 aPropSequence
[3].Name
= "RangeYMaximum";
5939 EnhancedCustomShapeParameter aParameter
;
5940 Any
aAny ((sal_Int32
) 2147483647);
5941 aParameter
.Value
= aAny
;
5942 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
5943 aPropSequence
[3].Value
= makeAny (aParameter
);
5946 aPropSequence
[4].Name
= "RangeYMinimum";
5947 EnhancedCustomShapeParameter aParameter
;
5948 Any
aAny ((sal_Int32
) -2147483647);
5949 aParameter
.Value
= aAny
;
5950 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
5951 aPropSequence
[4].Value
= makeAny (aParameter
);
5954 aPropSequence
[5].Name
= "RefX";
5955 Any
aAny ((sal_Int32
) 3);
5956 aPropSequence
[5].Value
= makeAny (aAny
);
5959 aPropSequence
[6].Name
= "RefY";
5960 Any
aAny ((sal_Int32
) 2);
5961 aPropSequence
[6].Value
= makeAny (aAny
);
5963 aPropSequenceSequence
[1] = aPropSequence
;
5965 aPropertyMap
[PROP_Handles
] <<= aPropSequenceSequence
;
5968 aPropertyMap
[PROP_MirroredX
] <<= Any ((sal_Bool
) sal_False
);
5971 aPropertyMap
[PROP_MirroredY
] <<= Any ((sal_Bool
) sal_False
);
5974 Sequence
< PropertyValue
> aPropSequence (3);
5976 aPropSequence
[0].Name
= "Coordinates";
5977 static const CustomShapeProvider::ParameterPairData aData
[] = {
5979 EnhancedCustomShapeParameterType::NORMAL
,
5980 EnhancedCustomShapeParameterType::NORMAL
,
5984 EnhancedCustomShapeParameterType::EQUATION
,
5985 EnhancedCustomShapeParameterType::NORMAL
,
5989 EnhancedCustomShapeParameterType::EQUATION
,
5990 EnhancedCustomShapeParameterType::EQUATION
,
5994 EnhancedCustomShapeParameterType::NORMAL
,
5995 EnhancedCustomShapeParameterType::EQUATION
,
5999 EnhancedCustomShapeParameterType::EQUATION
,
6000 EnhancedCustomShapeParameterType::NORMAL
,
6004 EnhancedCustomShapeParameterType::EQUATION
,
6005 EnhancedCustomShapeParameterType::EQUATION
,
6009 EnhancedCustomShapeParameterType::EQUATION
,
6010 EnhancedCustomShapeParameterType::EQUATION
,
6014 EnhancedCustomShapeParameterType::EQUATION
,
6015 EnhancedCustomShapeParameterType::EQUATION
,
6019 aPropSequence
[0].Value
= makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData
), aData
));
6022 aPropSequence
[1].Name
= "Segments";
6023 static const sal_uInt16 nValues
[] = {
6038 aPropSequence
[1].Value
= makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues
), nValues
));
6041 aPropSequence
[2].Name
= "TextFrames";
6042 Sequence
< EnhancedCustomShapeTextFrame
> aTextFrameSeq (1);
6044 EnhancedCustomShapeTextFrame aTextFrame
;
6046 static const CustomShapeProvider::ParameterPairData aData
=
6048 EnhancedCustomShapeParameterType::NORMAL
,
6049 EnhancedCustomShapeParameterType::NORMAL
,
6052 aTextFrame
.TopLeft
= createParameterPair(&aData
);
6055 static const CustomShapeProvider::ParameterPairData aData
=
6057 EnhancedCustomShapeParameterType::EQUATION
,
6058 EnhancedCustomShapeParameterType::EQUATION
,
6061 aTextFrame
.BottomRight
= createParameterPair(&aData
);
6063 aTextFrameSeq
[0] = aTextFrame
;
6065 aPropSequence
[2].Value
= makeAny (aTextFrameSeq
);
6067 aPropertyMap
[PROP_Path
] <<= aPropSequence
;
6070 awt::Rectangle aRectangle
;
6073 aRectangle
.Width
= 0;
6074 aRectangle
.Height
= 0;
6075 aPropertyMap
[PROP_ViewBox
] <<= aRectangle
;
6077 aPropertyMap
[ PROP_Type
] <<= OUString("ooxml-accentBorderCallout1");
6079 return aPropertyMap
;
6082 class ShapeCnotchedRightArrow
: public CustomShapeProvider
6084 virtual PropertyMap
getProperties()
6086 PropertyMap aPropertyMap
;
6089 Sequence
< EnhancedCustomShapeAdjustmentValue
> aAdjSequence (2);
6091 Any
aAny ((sal_Int32
) 50000);
6092 aAdjSequence
[0].Value
= aAny
;
6093 aAdjSequence
[0].Name
= "adj1";
6096 Any
aAny ((sal_Int32
) 50000);
6097 aAdjSequence
[1].Value
= aAny
;
6098 aAdjSequence
[1].Name
= "adj2";
6100 aPropertyMap
[PROP_AdjustmentValues
] <<= aAdjSequence
;
6103 static const char *aStrings
[] = {
6104 "min(logwidth,logheight)",
6105 "100000*logwidth/?0 ",
6106 "if(0-$0 ,0,if(100000-$0 ,$0 ,100000))",
6107 "if(0-$1 ,0,if(?1 -$1 ,$1 ,?1 ))",
6110 "logheight*?2 /200000",
6120 aPropertyMap
[PROP_Equations
] <<= createStringSequence( SAL_N_ELEMENTS( aStrings
), aStrings
);
6123 Sequence
< Sequence
< PropertyValue
> > aPropSequenceSequence (2);
6125 Sequence
< PropertyValue
> aPropSequence (4);
6127 aPropSequence
[0].Name
= "Position";
6128 static const CustomShapeProvider::ParameterPairData aData
=
6130 EnhancedCustomShapeParameterType::EQUATION
,
6131 EnhancedCustomShapeParameterType::EQUATION
,
6134 aPropSequence
[0].Value
= makeAny (createParameterPair(&aData
));
6137 aPropSequence
[1].Name
= "RangeYMaximum";
6138 EnhancedCustomShapeParameter aParameter
;
6139 Any
aAny ((sal_Int32
) 100000);
6140 aParameter
.Value
= aAny
;
6141 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
6142 aPropSequence
[1].Value
= makeAny (aParameter
);
6145 aPropSequence
[2].Name
= "RangeYMinimum";
6146 EnhancedCustomShapeParameter aParameter
;
6147 Any
aAny ((sal_Int32
) 0);
6148 aParameter
.Value
= aAny
;
6149 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
6150 aPropSequence
[2].Value
= makeAny (aParameter
);
6153 aPropSequence
[3].Name
= "RefY";
6154 Any
aAny ((sal_Int32
) 0);
6155 aPropSequence
[3].Value
= makeAny (aAny
);
6157 aPropSequenceSequence
[0] = aPropSequence
;
6160 Sequence
< PropertyValue
> aPropSequence (4);
6162 aPropSequence
[0].Name
= "Position";
6163 static const CustomShapeProvider::ParameterPairData aData
=
6165 EnhancedCustomShapeParameterType::EQUATION
,
6166 EnhancedCustomShapeParameterType::NORMAL
,
6169 aPropSequence
[0].Value
= makeAny (createParameterPair(&aData
));
6172 aPropSequence
[1].Name
= "RangeXMaximum";
6173 EnhancedCustomShapeParameter aParameter
;
6174 Any
aAny ((sal_Int32
) 1);
6175 aParameter
.Value
= aAny
;
6176 aParameter
.Type
= EnhancedCustomShapeParameterType::EQUATION
;
6177 aPropSequence
[1].Value
= makeAny (aParameter
);
6180 aPropSequence
[2].Name
= "RangeXMinimum";
6181 EnhancedCustomShapeParameter aParameter
;
6182 Any
aAny ((sal_Int32
) 0);
6183 aParameter
.Value
= aAny
;
6184 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
6185 aPropSequence
[2].Value
= makeAny (aParameter
);
6188 aPropSequence
[3].Name
= "RefX";
6189 Any
aAny ((sal_Int32
) 1);
6190 aPropSequence
[3].Value
= makeAny (aAny
);
6192 aPropSequenceSequence
[1] = aPropSequence
;
6194 aPropertyMap
[PROP_Handles
] <<= aPropSequenceSequence
;
6197 aPropertyMap
[PROP_MirroredX
] <<= Any ((sal_Bool
) sal_False
);
6200 aPropertyMap
[PROP_MirroredY
] <<= Any ((sal_Bool
) sal_False
);
6203 Sequence
< PropertyValue
> aPropSequence (3);
6205 aPropSequence
[0].Name
= "Coordinates";
6206 static const CustomShapeProvider::ParameterPairData aData
[] = {
6208 EnhancedCustomShapeParameterType::NORMAL
,
6209 EnhancedCustomShapeParameterType::EQUATION
,
6213 EnhancedCustomShapeParameterType::EQUATION
,
6214 EnhancedCustomShapeParameterType::EQUATION
,
6218 EnhancedCustomShapeParameterType::EQUATION
,
6219 EnhancedCustomShapeParameterType::NORMAL
,
6223 EnhancedCustomShapeParameterType::EQUATION
,
6224 EnhancedCustomShapeParameterType::EQUATION
,
6228 EnhancedCustomShapeParameterType::EQUATION
,
6229 EnhancedCustomShapeParameterType::EQUATION
,
6233 EnhancedCustomShapeParameterType::EQUATION
,
6234 EnhancedCustomShapeParameterType::EQUATION
,
6238 EnhancedCustomShapeParameterType::NORMAL
,
6239 EnhancedCustomShapeParameterType::EQUATION
,
6243 EnhancedCustomShapeParameterType::EQUATION
,
6244 EnhancedCustomShapeParameterType::EQUATION
,
6248 aPropSequence
[0].Value
= makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData
), aData
));
6251 aPropSequence
[1].Name
= "Segments";
6252 static const sal_uInt16 nValues
[] = {
6259 aPropSequence
[1].Value
= makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues
), nValues
));
6262 aPropSequence
[2].Name
= "TextFrames";
6263 Sequence
< EnhancedCustomShapeTextFrame
> aTextFrameSeq (1);
6265 EnhancedCustomShapeTextFrame aTextFrame
;
6267 static const CustomShapeProvider::ParameterPairData aData
=
6269 EnhancedCustomShapeParameterType::EQUATION
,
6270 EnhancedCustomShapeParameterType::EQUATION
,
6273 aTextFrame
.TopLeft
= createParameterPair(&aData
);
6276 static const CustomShapeProvider::ParameterPairData aData
=
6278 EnhancedCustomShapeParameterType::EQUATION
,
6279 EnhancedCustomShapeParameterType::EQUATION
,
6282 aTextFrame
.BottomRight
= createParameterPair(&aData
);
6284 aTextFrameSeq
[0] = aTextFrame
;
6286 aPropSequence
[2].Value
= makeAny (aTextFrameSeq
);
6288 aPropertyMap
[PROP_Path
] <<= aPropSequence
;
6291 awt::Rectangle aRectangle
;
6294 aRectangle
.Width
= 0;
6295 aRectangle
.Height
= 0;
6296 aPropertyMap
[PROP_ViewBox
] <<= aRectangle
;
6298 aPropertyMap
[ PROP_Type
] <<= OUString("ooxml-notchedRightArrow");
6300 return aPropertyMap
;
6303 class ShapeCrightBracket
: public CustomShapeProvider
6305 virtual PropertyMap
getProperties()
6307 PropertyMap aPropertyMap
;
6310 Sequence
< EnhancedCustomShapeAdjustmentValue
> aAdjSequence (1);
6312 Any
aAny ((sal_Int32
) 8333);
6313 aAdjSequence
[0].Value
= aAny
;
6314 aAdjSequence
[0].Name
= "adj";
6316 aPropertyMap
[PROP_AdjustmentValues
] <<= aAdjSequence
;
6319 static const char *aStrings
[] = {
6320 "min(logwidth,logheight)",
6321 "50000*logheight/?0 ",
6322 "if(0-$0 ,0,if(?1 -$0 ,$0 ,?1 ))",
6325 "logwidth*cos(pi*(2700000)/10800000)",
6326 "?3 *sin(pi*(2700000)/10800000)",
6329 "logheight+?6 -?3 ",
6334 "(16200000)/60000.0",
6335 "(5400000)/60000.0",
6337 "(5400000)/60000.0",
6338 "(16200000)/60000.0",
6339 "(5400000)/60000.0",
6343 aPropertyMap
[PROP_Equations
] <<= createStringSequence( SAL_N_ELEMENTS( aStrings
), aStrings
);
6346 Sequence
< Sequence
< PropertyValue
> > aPropSequenceSequence (1);
6348 Sequence
< PropertyValue
> aPropSequence (4);
6350 aPropSequence
[0].Name
= "Position";
6351 static const CustomShapeProvider::ParameterPairData aData
=
6353 EnhancedCustomShapeParameterType::EQUATION
,
6354 EnhancedCustomShapeParameterType::EQUATION
,
6357 aPropSequence
[0].Value
= makeAny (createParameterPair(&aData
));
6360 aPropSequence
[1].Name
= "RangeYMaximum";
6361 EnhancedCustomShapeParameter aParameter
;
6362 Any
aAny ((sal_Int32
) 1);
6363 aParameter
.Value
= aAny
;
6364 aParameter
.Type
= EnhancedCustomShapeParameterType::EQUATION
;
6365 aPropSequence
[1].Value
= makeAny (aParameter
);
6368 aPropSequence
[2].Name
= "RangeYMinimum";
6369 EnhancedCustomShapeParameter aParameter
;
6370 Any
aAny ((sal_Int32
) 0);
6371 aParameter
.Value
= aAny
;
6372 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
6373 aPropSequence
[2].Value
= makeAny (aParameter
);
6376 aPropSequence
[3].Name
= "RefY";
6377 Any
aAny ((sal_Int32
) 0);
6378 aPropSequence
[3].Value
= makeAny (aAny
);
6380 aPropSequenceSequence
[0] = aPropSequence
;
6382 aPropertyMap
[PROP_Handles
] <<= aPropSequenceSequence
;
6385 aPropertyMap
[PROP_MirroredX
] <<= Any ((sal_Bool
) sal_False
);
6388 aPropertyMap
[PROP_MirroredY
] <<= Any ((sal_Bool
) sal_False
);
6391 Sequence
< PropertyValue
> aPropSequence (3);
6393 aPropSequence
[0].Name
= "Coordinates";
6394 static const CustomShapeProvider::ParameterPairData aData
[] = {
6396 EnhancedCustomShapeParameterType::NORMAL
,
6397 EnhancedCustomShapeParameterType::NORMAL
,
6401 EnhancedCustomShapeParameterType::EQUATION
,
6402 EnhancedCustomShapeParameterType::EQUATION
,
6406 EnhancedCustomShapeParameterType::EQUATION
,
6407 EnhancedCustomShapeParameterType::EQUATION
,
6411 EnhancedCustomShapeParameterType::EQUATION
,
6412 EnhancedCustomShapeParameterType::EQUATION
,
6416 EnhancedCustomShapeParameterType::EQUATION
,
6417 EnhancedCustomShapeParameterType::EQUATION
,
6421 EnhancedCustomShapeParameterType::EQUATION
,
6422 EnhancedCustomShapeParameterType::EQUATION
,
6426 EnhancedCustomShapeParameterType::NORMAL
,
6427 EnhancedCustomShapeParameterType::NORMAL
,
6431 EnhancedCustomShapeParameterType::EQUATION
,
6432 EnhancedCustomShapeParameterType::EQUATION
,
6436 EnhancedCustomShapeParameterType::EQUATION
,
6437 EnhancedCustomShapeParameterType::EQUATION
,
6441 EnhancedCustomShapeParameterType::EQUATION
,
6442 EnhancedCustomShapeParameterType::EQUATION
,
6446 EnhancedCustomShapeParameterType::EQUATION
,
6447 EnhancedCustomShapeParameterType::EQUATION
,
6451 EnhancedCustomShapeParameterType::EQUATION
,
6452 EnhancedCustomShapeParameterType::EQUATION
,
6456 aPropSequence
[0].Value
= makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData
), aData
));
6459 aPropSequence
[1].Name
= "Segments";
6460 static const sal_uInt16 nValues
[] = {
6476 aPropSequence
[1].Value
= makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues
), nValues
));
6479 aPropSequence
[2].Name
= "TextFrames";
6480 Sequence
< EnhancedCustomShapeTextFrame
> aTextFrameSeq (1);
6482 EnhancedCustomShapeTextFrame aTextFrame
;
6484 static const CustomShapeProvider::ParameterPairData aData
=
6486 EnhancedCustomShapeParameterType::NORMAL
,
6487 EnhancedCustomShapeParameterType::EQUATION
,
6490 aTextFrame
.TopLeft
= createParameterPair(&aData
);
6493 static const CustomShapeProvider::ParameterPairData aData
=
6495 EnhancedCustomShapeParameterType::EQUATION
,
6496 EnhancedCustomShapeParameterType::EQUATION
,
6499 aTextFrame
.BottomRight
= createParameterPair(&aData
);
6501 aTextFrameSeq
[0] = aTextFrame
;
6503 aPropSequence
[2].Value
= makeAny (aTextFrameSeq
);
6505 aPropertyMap
[PROP_Path
] <<= aPropSequence
;
6508 awt::Rectangle aRectangle
;
6511 aRectangle
.Width
= 0;
6512 aRectangle
.Height
= 0;
6513 aPropertyMap
[PROP_ViewBox
] <<= aRectangle
;
6515 aPropertyMap
[ PROP_Type
] <<= OUString("ooxml-rightBracket");
6517 return aPropertyMap
;
6520 class ShapeCflowChartOffpageConnector
: public CustomShapeProvider
6522 virtual PropertyMap
getProperties()
6524 PropertyMap aPropertyMap
;
6527 aPropertyMap
[PROP_AdjustmentValues
] <<= Sequence
< OUString
>(0);
6530 static const char *aStrings
[] = {
6537 aPropertyMap
[PROP_Equations
] <<= createStringSequence( SAL_N_ELEMENTS( aStrings
), aStrings
);
6540 aPropertyMap
[PROP_Handles
] <<= Sequence
< OUString
>(0);
6543 aPropertyMap
[PROP_MirroredX
] <<= Any ((sal_Bool
) sal_False
);
6546 aPropertyMap
[PROP_MirroredY
] <<= Any ((sal_Bool
) sal_False
);
6549 Sequence
< PropertyValue
> aPropSequence (4);
6551 aPropSequence
[0].Name
= "Coordinates";
6552 static const CustomShapeProvider::ParameterPairData aData
[] = {
6554 EnhancedCustomShapeParameterType::NORMAL
,
6555 EnhancedCustomShapeParameterType::NORMAL
,
6559 EnhancedCustomShapeParameterType::NORMAL
,
6560 EnhancedCustomShapeParameterType::NORMAL
,
6564 EnhancedCustomShapeParameterType::NORMAL
,
6565 EnhancedCustomShapeParameterType::NORMAL
,
6569 EnhancedCustomShapeParameterType::NORMAL
,
6570 EnhancedCustomShapeParameterType::NORMAL
,
6574 EnhancedCustomShapeParameterType::NORMAL
,
6575 EnhancedCustomShapeParameterType::NORMAL
,
6579 aPropSequence
[0].Value
= makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData
), aData
));
6582 aPropSequence
[1].Name
= "Segments";
6583 static const sal_uInt16 nValues
[] = {
6590 aPropSequence
[1].Value
= makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues
), nValues
));
6593 aPropSequence
[2].Name
= "SubViewSize";
6594 Sequence
< awt::Size
> aSizeSequence (1);
6599 aSizeSequence
[0] = aSize
;
6601 aPropSequence
[2].Value
= makeAny (aSizeSequence
);
6604 aPropSequence
[3].Name
= "TextFrames";
6605 Sequence
< EnhancedCustomShapeTextFrame
> aTextFrameSeq (1);
6607 EnhancedCustomShapeTextFrame aTextFrame
;
6609 static const CustomShapeProvider::ParameterPairData aData
=
6611 EnhancedCustomShapeParameterType::NORMAL
,
6612 EnhancedCustomShapeParameterType::NORMAL
,
6615 aTextFrame
.TopLeft
= createParameterPair(&aData
);
6618 static const CustomShapeProvider::ParameterPairData aData
=
6620 EnhancedCustomShapeParameterType::EQUATION
,
6621 EnhancedCustomShapeParameterType::EQUATION
,
6624 aTextFrame
.BottomRight
= createParameterPair(&aData
);
6626 aTextFrameSeq
[0] = aTextFrame
;
6628 aPropSequence
[3].Value
= makeAny (aTextFrameSeq
);
6630 aPropertyMap
[PROP_Path
] <<= aPropSequence
;
6633 awt::Rectangle aRectangle
;
6636 aRectangle
.Width
= 0;
6637 aRectangle
.Height
= 0;
6638 aPropertyMap
[PROP_ViewBox
] <<= aRectangle
;
6640 aPropertyMap
[ PROP_Type
] <<= OUString("ooxml-flowChartOffpageConnector");
6642 return aPropertyMap
;
6645 class ShapeCleftRightArrow
: public CustomShapeProvider
6647 virtual PropertyMap
getProperties()
6649 PropertyMap aPropertyMap
;
6652 Sequence
< EnhancedCustomShapeAdjustmentValue
> aAdjSequence (2);
6654 Any
aAny ((sal_Int32
) 50000);
6655 aAdjSequence
[0].Value
= aAny
;
6656 aAdjSequence
[0].Name
= "adj1";
6659 Any
aAny ((sal_Int32
) 50000);
6660 aAdjSequence
[1].Value
= aAny
;
6661 aAdjSequence
[1].Name
= "adj2";
6663 aPropertyMap
[PROP_AdjustmentValues
] <<= aAdjSequence
;
6666 static const char *aStrings
[] = {
6667 "min(logwidth,logheight)",
6668 "50000*logwidth/?0 ",
6669 "if(0-$0 ,0,if(100000-$0 ,$0 ,100000))",
6670 "if(0-$1 ,0,if(?1 -$1 ,$1 ,?1 ))",
6673 "logheight*?2 /200000",
6684 aPropertyMap
[PROP_Equations
] <<= createStringSequence( SAL_N_ELEMENTS( aStrings
), aStrings
);
6687 Sequence
< Sequence
< PropertyValue
> > aPropSequenceSequence (2);
6689 Sequence
< PropertyValue
> aPropSequence (4);
6691 aPropSequence
[0].Name
= "Position";
6692 static const CustomShapeProvider::ParameterPairData aData
=
6694 EnhancedCustomShapeParameterType::EQUATION
,
6695 EnhancedCustomShapeParameterType::EQUATION
,
6698 aPropSequence
[0].Value
= makeAny (createParameterPair(&aData
));
6701 aPropSequence
[1].Name
= "RangeYMaximum";
6702 EnhancedCustomShapeParameter aParameter
;
6703 Any
aAny ((sal_Int32
) 100000);
6704 aParameter
.Value
= aAny
;
6705 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
6706 aPropSequence
[1].Value
= makeAny (aParameter
);
6709 aPropSequence
[2].Name
= "RangeYMinimum";
6710 EnhancedCustomShapeParameter aParameter
;
6711 Any
aAny ((sal_Int32
) 0);
6712 aParameter
.Value
= aAny
;
6713 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
6714 aPropSequence
[2].Value
= makeAny (aParameter
);
6717 aPropSequence
[3].Name
= "RefY";
6718 Any
aAny ((sal_Int32
) 0);
6719 aPropSequence
[3].Value
= makeAny (aAny
);
6721 aPropSequenceSequence
[0] = aPropSequence
;
6724 Sequence
< PropertyValue
> aPropSequence (4);
6726 aPropSequence
[0].Name
= "Position";
6727 static const CustomShapeProvider::ParameterPairData aData
=
6729 EnhancedCustomShapeParameterType::EQUATION
,
6730 EnhancedCustomShapeParameterType::NORMAL
,
6733 aPropSequence
[0].Value
= makeAny (createParameterPair(&aData
));
6736 aPropSequence
[1].Name
= "RangeXMaximum";
6737 EnhancedCustomShapeParameter aParameter
;
6738 Any
aAny ((sal_Int32
) 1);
6739 aParameter
.Value
= aAny
;
6740 aParameter
.Type
= EnhancedCustomShapeParameterType::EQUATION
;
6741 aPropSequence
[1].Value
= makeAny (aParameter
);
6744 aPropSequence
[2].Name
= "RangeXMinimum";
6745 EnhancedCustomShapeParameter aParameter
;
6746 Any
aAny ((sal_Int32
) 0);
6747 aParameter
.Value
= aAny
;
6748 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
6749 aPropSequence
[2].Value
= makeAny (aParameter
);
6752 aPropSequence
[3].Name
= "RefX";
6753 Any
aAny ((sal_Int32
) 1);
6754 aPropSequence
[3].Value
= makeAny (aAny
);
6756 aPropSequenceSequence
[1] = aPropSequence
;
6758 aPropertyMap
[PROP_Handles
] <<= aPropSequenceSequence
;
6761 aPropertyMap
[PROP_MirroredX
] <<= Any ((sal_Bool
) sal_False
);
6764 aPropertyMap
[PROP_MirroredY
] <<= Any ((sal_Bool
) sal_False
);
6767 Sequence
< PropertyValue
> aPropSequence (3);
6769 aPropSequence
[0].Name
= "Coordinates";
6770 static const CustomShapeProvider::ParameterPairData aData
[] = {
6772 EnhancedCustomShapeParameterType::NORMAL
,
6773 EnhancedCustomShapeParameterType::EQUATION
,
6777 EnhancedCustomShapeParameterType::EQUATION
,
6778 EnhancedCustomShapeParameterType::NORMAL
,
6782 EnhancedCustomShapeParameterType::EQUATION
,
6783 EnhancedCustomShapeParameterType::EQUATION
,
6787 EnhancedCustomShapeParameterType::EQUATION
,
6788 EnhancedCustomShapeParameterType::EQUATION
,
6792 EnhancedCustomShapeParameterType::EQUATION
,
6793 EnhancedCustomShapeParameterType::NORMAL
,
6797 EnhancedCustomShapeParameterType::EQUATION
,
6798 EnhancedCustomShapeParameterType::EQUATION
,
6802 EnhancedCustomShapeParameterType::EQUATION
,
6803 EnhancedCustomShapeParameterType::EQUATION
,
6807 EnhancedCustomShapeParameterType::EQUATION
,
6808 EnhancedCustomShapeParameterType::EQUATION
,
6812 EnhancedCustomShapeParameterType::EQUATION
,
6813 EnhancedCustomShapeParameterType::EQUATION
,
6817 EnhancedCustomShapeParameterType::EQUATION
,
6818 EnhancedCustomShapeParameterType::EQUATION
,
6822 aPropSequence
[0].Value
= makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData
), aData
));
6825 aPropSequence
[1].Name
= "Segments";
6826 static const sal_uInt16 nValues
[] = {
6833 aPropSequence
[1].Value
= makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues
), nValues
));
6836 aPropSequence
[2].Name
= "TextFrames";
6837 Sequence
< EnhancedCustomShapeTextFrame
> aTextFrameSeq (1);
6839 EnhancedCustomShapeTextFrame aTextFrame
;
6841 static const CustomShapeProvider::ParameterPairData aData
=
6843 EnhancedCustomShapeParameterType::EQUATION
,
6844 EnhancedCustomShapeParameterType::EQUATION
,
6847 aTextFrame
.TopLeft
= createParameterPair(&aData
);
6850 static const CustomShapeProvider::ParameterPairData aData
=
6852 EnhancedCustomShapeParameterType::EQUATION
,
6853 EnhancedCustomShapeParameterType::EQUATION
,
6856 aTextFrame
.BottomRight
= createParameterPair(&aData
);
6858 aTextFrameSeq
[0] = aTextFrame
;
6860 aPropSequence
[2].Value
= makeAny (aTextFrameSeq
);
6862 aPropertyMap
[PROP_Path
] <<= aPropSequence
;
6865 awt::Rectangle aRectangle
;
6868 aRectangle
.Width
= 0;
6869 aRectangle
.Height
= 0;
6870 aPropertyMap
[PROP_ViewBox
] <<= aRectangle
;
6872 aPropertyMap
[ PROP_Type
] <<= OUString("ooxml-leftRightArrow");
6874 return aPropertyMap
;
6877 class ShapeCdecagon
: public CustomShapeProvider
6879 virtual PropertyMap
getProperties()
6881 PropertyMap aPropertyMap
;
6884 Sequence
< EnhancedCustomShapeAdjustmentValue
> aAdjSequence (1);
6886 Any
aAny ((sal_Int32
) 105146);
6887 aAdjSequence
[0].Value
= aAny
;
6888 aAdjSequence
[0].Name
= "vf";
6890 aPropertyMap
[PROP_AdjustmentValues
] <<= aAdjSequence
;
6893 static const char *aStrings
[] = {
6897 "?2 *cos(pi*(2160000)/10800000)",
6898 "?2 *cos(pi*(4320000)/10800000)",
6904 "?1 *sin(pi*(4320000)/10800000)",
6905 "?1 *sin(pi*(2160000)/10800000)",
6913 aPropertyMap
[PROP_Equations
] <<= createStringSequence( SAL_N_ELEMENTS( aStrings
), aStrings
);
6916 aPropertyMap
[PROP_Handles
] <<= Sequence
< OUString
>(0);
6919 aPropertyMap
[PROP_MirroredX
] <<= Any ((sal_Bool
) sal_False
);
6922 aPropertyMap
[PROP_MirroredY
] <<= Any ((sal_Bool
) sal_False
);
6925 Sequence
< PropertyValue
> aPropSequence (3);
6927 aPropSequence
[0].Name
= "Coordinates";
6928 static const CustomShapeProvider::ParameterPairData aData
[] = {
6930 EnhancedCustomShapeParameterType::NORMAL
,
6931 EnhancedCustomShapeParameterType::EQUATION
,
6935 EnhancedCustomShapeParameterType::EQUATION
,
6936 EnhancedCustomShapeParameterType::EQUATION
,
6940 EnhancedCustomShapeParameterType::EQUATION
,
6941 EnhancedCustomShapeParameterType::EQUATION
,
6945 EnhancedCustomShapeParameterType::EQUATION
,
6946 EnhancedCustomShapeParameterType::EQUATION
,
6950 EnhancedCustomShapeParameterType::EQUATION
,
6951 EnhancedCustomShapeParameterType::EQUATION
,
6955 EnhancedCustomShapeParameterType::EQUATION
,
6956 EnhancedCustomShapeParameterType::EQUATION
,
6960 EnhancedCustomShapeParameterType::EQUATION
,
6961 EnhancedCustomShapeParameterType::EQUATION
,
6965 EnhancedCustomShapeParameterType::EQUATION
,
6966 EnhancedCustomShapeParameterType::EQUATION
,
6970 EnhancedCustomShapeParameterType::EQUATION
,
6971 EnhancedCustomShapeParameterType::EQUATION
,
6975 EnhancedCustomShapeParameterType::EQUATION
,
6976 EnhancedCustomShapeParameterType::EQUATION
,
6980 aPropSequence
[0].Value
= makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData
), aData
));
6983 aPropSequence
[1].Name
= "Segments";
6984 static const sal_uInt16 nValues
[] = {
6991 aPropSequence
[1].Value
= makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues
), nValues
));
6994 aPropSequence
[2].Name
= "TextFrames";
6995 Sequence
< EnhancedCustomShapeTextFrame
> aTextFrameSeq (1);
6997 EnhancedCustomShapeTextFrame aTextFrame
;
6999 static const CustomShapeProvider::ParameterPairData aData
=
7001 EnhancedCustomShapeParameterType::EQUATION
,
7002 EnhancedCustomShapeParameterType::EQUATION
,
7005 aTextFrame
.TopLeft
= createParameterPair(&aData
);
7008 static const CustomShapeProvider::ParameterPairData aData
=
7010 EnhancedCustomShapeParameterType::EQUATION
,
7011 EnhancedCustomShapeParameterType::EQUATION
,
7014 aTextFrame
.BottomRight
= createParameterPair(&aData
);
7016 aTextFrameSeq
[0] = aTextFrame
;
7018 aPropSequence
[2].Value
= makeAny (aTextFrameSeq
);
7020 aPropertyMap
[PROP_Path
] <<= aPropSequence
;
7023 awt::Rectangle aRectangle
;
7026 aRectangle
.Width
= 0;
7027 aRectangle
.Height
= 0;
7028 aPropertyMap
[PROP_ViewBox
] <<= aRectangle
;
7030 aPropertyMap
[ PROP_Type
] <<= OUString("ooxml-decagon");
7032 return aPropertyMap
;
7035 class ShapeCactionButtonHelp
: public CustomShapeProvider
7037 virtual PropertyMap
getProperties()
7039 PropertyMap aPropertyMap
;
7042 aPropertyMap
[PROP_AdjustmentValues
] <<= Sequence
< OUString
>(0);
7045 static const char *aStrings
[] = {
7046 "min(logwidth,logheight)",
7072 "(10800000)/60000.0",
7073 "(10800000)/60000.0",
7075 "(5400000)/60000.0",
7076 "(16200000)/60000.0",
7077 "(-5400000)/60000.0",
7078 "(10800000)/60000.0",
7079 "(5400000)/60000.0",
7080 "(5400000)/60000.0",
7081 "(-5400000)/60000.0",
7083 "(-10800000)/60000.0",
7084 "(16200000)/60000.0",
7085 "(21600000)/60000.0",
7086 "(10800000)/60000.0",
7087 "(10800000)/60000.0",
7089 "(5400000)/60000.0",
7090 "(16200000)/60000.0",
7091 "(-5400000)/60000.0",
7092 "(10800000)/60000.0",
7093 "(5400000)/60000.0",
7094 "(5400000)/60000.0",
7095 "(-5400000)/60000.0",
7097 "(-10800000)/60000.0",
7098 "(16200000)/60000.0",
7099 "(21600000)/60000.0",
7100 "(10800000)/60000.0",
7101 "(10800000)/60000.0",
7103 "(5400000)/60000.0",
7104 "(16200000)/60000.0",
7105 "(-5400000)/60000.0",
7106 "(10800000)/60000.0",
7107 "(5400000)/60000.0",
7108 "(5400000)/60000.0",
7109 "(-5400000)/60000.0",
7111 "(-10800000)/60000.0",
7112 "(16200000)/60000.0",
7113 "(21600000)/60000.0"
7115 aPropertyMap
[PROP_Equations
] <<= createStringSequence( SAL_N_ELEMENTS( aStrings
), aStrings
);
7118 aPropertyMap
[PROP_Handles
] <<= Sequence
< OUString
>(0);
7121 aPropertyMap
[PROP_MirroredX
] <<= Any ((sal_Bool
) sal_False
);
7124 aPropertyMap
[PROP_MirroredY
] <<= Any ((sal_Bool
) sal_False
);
7127 Sequence
< PropertyValue
> aPropSequence (3);
7129 aPropSequence
[0].Name
= "Coordinates";
7130 static const CustomShapeProvider::ParameterPairData aData
[] = {
7132 EnhancedCustomShapeParameterType::NORMAL
,
7133 EnhancedCustomShapeParameterType::NORMAL
,
7137 EnhancedCustomShapeParameterType::EQUATION
,
7138 EnhancedCustomShapeParameterType::NORMAL
,
7142 EnhancedCustomShapeParameterType::EQUATION
,
7143 EnhancedCustomShapeParameterType::EQUATION
,
7147 EnhancedCustomShapeParameterType::NORMAL
,
7148 EnhancedCustomShapeParameterType::EQUATION
,
7152 EnhancedCustomShapeParameterType::EQUATION
,
7153 EnhancedCustomShapeParameterType::EQUATION
,
7157 EnhancedCustomShapeParameterType::EQUATION
,
7158 EnhancedCustomShapeParameterType::EQUATION
,
7162 EnhancedCustomShapeParameterType::EQUATION
,
7163 EnhancedCustomShapeParameterType::EQUATION
,
7167 EnhancedCustomShapeParameterType::EQUATION
,
7168 EnhancedCustomShapeParameterType::EQUATION
,
7172 EnhancedCustomShapeParameterType::EQUATION
,
7173 EnhancedCustomShapeParameterType::EQUATION
,
7177 EnhancedCustomShapeParameterType::EQUATION
,
7178 EnhancedCustomShapeParameterType::EQUATION
,
7182 EnhancedCustomShapeParameterType::EQUATION
,
7183 EnhancedCustomShapeParameterType::EQUATION
,
7187 EnhancedCustomShapeParameterType::EQUATION
,
7188 EnhancedCustomShapeParameterType::EQUATION
,
7192 EnhancedCustomShapeParameterType::EQUATION
,
7193 EnhancedCustomShapeParameterType::EQUATION
,
7197 EnhancedCustomShapeParameterType::EQUATION
,
7198 EnhancedCustomShapeParameterType::EQUATION
,
7202 EnhancedCustomShapeParameterType::EQUATION
,
7203 EnhancedCustomShapeParameterType::EQUATION
,
7207 EnhancedCustomShapeParameterType::EQUATION
,
7208 EnhancedCustomShapeParameterType::EQUATION
,
7212 EnhancedCustomShapeParameterType::EQUATION
,
7213 EnhancedCustomShapeParameterType::EQUATION
,
7217 EnhancedCustomShapeParameterType::EQUATION
,
7218 EnhancedCustomShapeParameterType::EQUATION
,
7222 EnhancedCustomShapeParameterType::EQUATION
,
7223 EnhancedCustomShapeParameterType::EQUATION
,
7227 EnhancedCustomShapeParameterType::EQUATION
,
7228 EnhancedCustomShapeParameterType::EQUATION
,
7232 EnhancedCustomShapeParameterType::EQUATION
,
7233 EnhancedCustomShapeParameterType::EQUATION
,
7237 EnhancedCustomShapeParameterType::EQUATION
,
7238 EnhancedCustomShapeParameterType::EQUATION
,
7242 EnhancedCustomShapeParameterType::EQUATION
,
7243 EnhancedCustomShapeParameterType::EQUATION
,
7247 EnhancedCustomShapeParameterType::EQUATION
,
7248 EnhancedCustomShapeParameterType::EQUATION
,
7252 EnhancedCustomShapeParameterType::EQUATION
,
7253 EnhancedCustomShapeParameterType::EQUATION
,
7257 EnhancedCustomShapeParameterType::EQUATION
,
7258 EnhancedCustomShapeParameterType::EQUATION
,
7262 EnhancedCustomShapeParameterType::EQUATION
,
7263 EnhancedCustomShapeParameterType::EQUATION
,
7267 EnhancedCustomShapeParameterType::EQUATION
,
7268 EnhancedCustomShapeParameterType::EQUATION
,
7272 EnhancedCustomShapeParameterType::EQUATION
,
7273 EnhancedCustomShapeParameterType::EQUATION
,
7277 EnhancedCustomShapeParameterType::EQUATION
,
7278 EnhancedCustomShapeParameterType::EQUATION
,
7282 EnhancedCustomShapeParameterType::EQUATION
,
7283 EnhancedCustomShapeParameterType::EQUATION
,
7287 EnhancedCustomShapeParameterType::EQUATION
,
7288 EnhancedCustomShapeParameterType::EQUATION
,
7292 EnhancedCustomShapeParameterType::EQUATION
,
7293 EnhancedCustomShapeParameterType::EQUATION
,
7297 EnhancedCustomShapeParameterType::EQUATION
,
7298 EnhancedCustomShapeParameterType::EQUATION
,
7302 EnhancedCustomShapeParameterType::EQUATION
,
7303 EnhancedCustomShapeParameterType::EQUATION
,
7307 EnhancedCustomShapeParameterType::EQUATION
,
7308 EnhancedCustomShapeParameterType::EQUATION
,
7312 EnhancedCustomShapeParameterType::EQUATION
,
7313 EnhancedCustomShapeParameterType::EQUATION
,
7317 EnhancedCustomShapeParameterType::EQUATION
,
7318 EnhancedCustomShapeParameterType::EQUATION
,
7322 EnhancedCustomShapeParameterType::EQUATION
,
7323 EnhancedCustomShapeParameterType::EQUATION
,
7327 EnhancedCustomShapeParameterType::EQUATION
,
7328 EnhancedCustomShapeParameterType::EQUATION
,
7332 EnhancedCustomShapeParameterType::EQUATION
,
7333 EnhancedCustomShapeParameterType::EQUATION
,
7337 EnhancedCustomShapeParameterType::EQUATION
,
7338 EnhancedCustomShapeParameterType::EQUATION
,
7342 EnhancedCustomShapeParameterType::EQUATION
,
7343 EnhancedCustomShapeParameterType::EQUATION
,
7347 EnhancedCustomShapeParameterType::EQUATION
,
7348 EnhancedCustomShapeParameterType::EQUATION
,
7352 EnhancedCustomShapeParameterType::EQUATION
,
7353 EnhancedCustomShapeParameterType::EQUATION
,
7357 EnhancedCustomShapeParameterType::EQUATION
,
7358 EnhancedCustomShapeParameterType::EQUATION
,
7362 EnhancedCustomShapeParameterType::EQUATION
,
7363 EnhancedCustomShapeParameterType::EQUATION
,
7367 EnhancedCustomShapeParameterType::EQUATION
,
7368 EnhancedCustomShapeParameterType::EQUATION
,
7372 EnhancedCustomShapeParameterType::EQUATION
,
7373 EnhancedCustomShapeParameterType::EQUATION
,
7377 EnhancedCustomShapeParameterType::EQUATION
,
7378 EnhancedCustomShapeParameterType::EQUATION
,
7382 EnhancedCustomShapeParameterType::EQUATION
,
7383 EnhancedCustomShapeParameterType::EQUATION
,
7387 EnhancedCustomShapeParameterType::EQUATION
,
7388 EnhancedCustomShapeParameterType::EQUATION
,
7392 EnhancedCustomShapeParameterType::EQUATION
,
7393 EnhancedCustomShapeParameterType::EQUATION
,
7397 EnhancedCustomShapeParameterType::EQUATION
,
7398 EnhancedCustomShapeParameterType::EQUATION
,
7402 EnhancedCustomShapeParameterType::EQUATION
,
7403 EnhancedCustomShapeParameterType::EQUATION
,
7407 EnhancedCustomShapeParameterType::EQUATION
,
7408 EnhancedCustomShapeParameterType::EQUATION
,
7412 EnhancedCustomShapeParameterType::EQUATION
,
7413 EnhancedCustomShapeParameterType::EQUATION
,
7417 EnhancedCustomShapeParameterType::EQUATION
,
7418 EnhancedCustomShapeParameterType::EQUATION
,
7422 EnhancedCustomShapeParameterType::EQUATION
,
7423 EnhancedCustomShapeParameterType::EQUATION
,
7427 EnhancedCustomShapeParameterType::EQUATION
,
7428 EnhancedCustomShapeParameterType::EQUATION
,
7432 EnhancedCustomShapeParameterType::EQUATION
,
7433 EnhancedCustomShapeParameterType::EQUATION
,
7437 EnhancedCustomShapeParameterType::NORMAL
,
7438 EnhancedCustomShapeParameterType::NORMAL
,
7442 EnhancedCustomShapeParameterType::EQUATION
,
7443 EnhancedCustomShapeParameterType::NORMAL
,
7447 EnhancedCustomShapeParameterType::EQUATION
,
7448 EnhancedCustomShapeParameterType::EQUATION
,
7452 EnhancedCustomShapeParameterType::NORMAL
,
7453 EnhancedCustomShapeParameterType::EQUATION
,
7457 aPropSequence
[0].Value
= makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData
), aData
));
7460 aPropSequence
[1].Name
= "Segments";
7461 static const sal_uInt16 nValues
[] = {
7503 aPropSequence
[1].Value
= makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues
), nValues
));
7506 aPropSequence
[2].Name
= "TextFrames";
7507 Sequence
< EnhancedCustomShapeTextFrame
> aTextFrameSeq (1);
7509 EnhancedCustomShapeTextFrame aTextFrame
;
7511 static const CustomShapeProvider::ParameterPairData aData
=
7513 EnhancedCustomShapeParameterType::NORMAL
,
7514 EnhancedCustomShapeParameterType::NORMAL
,
7517 aTextFrame
.TopLeft
= createParameterPair(&aData
);
7520 static const CustomShapeProvider::ParameterPairData aData
=
7522 EnhancedCustomShapeParameterType::EQUATION
,
7523 EnhancedCustomShapeParameterType::EQUATION
,
7526 aTextFrame
.BottomRight
= createParameterPair(&aData
);
7528 aTextFrameSeq
[0] = aTextFrame
;
7530 aPropSequence
[2].Value
= makeAny (aTextFrameSeq
);
7532 aPropertyMap
[PROP_Path
] <<= aPropSequence
;
7535 awt::Rectangle aRectangle
;
7538 aRectangle
.Width
= 0;
7539 aRectangle
.Height
= 0;
7540 aPropertyMap
[PROP_ViewBox
] <<= aRectangle
;
7542 aPropertyMap
[ PROP_Type
] <<= OUString("ooxml-actionButtonHelp");
7544 return aPropertyMap
;
7547 class ShapeCstar24
: public CustomShapeProvider
7549 virtual PropertyMap
getProperties()
7551 PropertyMap aPropertyMap
;
7554 Sequence
< EnhancedCustomShapeAdjustmentValue
> aAdjSequence (1);
7556 Any
aAny ((sal_Int32
) 37500);
7557 aAdjSequence
[0].Value
= aAny
;
7558 aAdjSequence
[0].Name
= "adj";
7560 aPropertyMap
[PROP_AdjustmentValues
] <<= aAdjSequence
;
7563 static const char *aStrings
[] = {
7564 "if(0-$0 ,0,if(50000-$0 ,$0 ,50000))",
7566 "?1 *cos(pi*(900000)/10800000)",
7567 "?1 *cos(pi*(1800000)/10800000)",
7568 "?1 *cos(pi*(2700000)/10800000)",
7571 "?1 *cos(pi*(4500000)/10800000)",
7573 "?8 *sin(pi*(4500000)/10800000)",
7574 "?8 *sin(pi*(3600000)/10800000)",
7575 "?8 *sin(pi*(2700000)/10800000)",
7578 "?8 *sin(pi*(900000)/10800000)",
7603 "?37 *99144/100000",
7604 "?37 *92388/100000",
7605 "?37 *79335/100000",
7606 "?37 *60876/100000",
7607 "?37 *38268/100000",
7608 "?37 *13053/100000",
7609 "?38 *99144/100000",
7610 "?38 *92388/100000",
7611 "?38 *79335/100000",
7612 "?38 *60876/100000",
7613 "?38 *38268/100000",
7614 "?38 *13053/100000",
7639 "?37 *cos(pi*(2700000)/10800000)",
7640 "?38 *sin(pi*(2700000)/10800000)",
7646 "min(logwidth,logheight)/2",
7650 aPropertyMap
[PROP_Equations
] <<= createStringSequence( SAL_N_ELEMENTS( aStrings
), aStrings
);
7653 Sequence
< Sequence
< PropertyValue
> > aPropSequenceSequence (1);
7655 Sequence
< PropertyValue
> aPropSequence (4);
7657 aPropSequence
[0].Name
= "Position";
7658 static const CustomShapeProvider::ParameterPairData aData
=
7660 EnhancedCustomShapeParameterType::EQUATION
,
7661 EnhancedCustomShapeParameterType::EQUATION
,
7664 aPropSequence
[0].Value
= makeAny (createParameterPair(&aData
));
7667 aPropSequence
[1].Name
= "RangeYMaximum";
7668 EnhancedCustomShapeParameter aParameter
;
7669 Any
aAny ((sal_Int32
) 82);
7670 aParameter
.Value
= aAny
;
7671 aParameter
.Type
= EnhancedCustomShapeParameterType::EQUATION
;
7672 aPropSequence
[1].Value
= makeAny (aParameter
);
7675 aPropSequence
[2].Name
= "RangeYMinimum";
7676 EnhancedCustomShapeParameter aParameter
;
7677 Any
aAny ((sal_Int32
) 0);
7678 aParameter
.Value
= aAny
;
7679 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
7680 aPropSequence
[2].Value
= makeAny (aParameter
);
7683 aPropSequence
[3].Name
= "RefY";
7684 Any
aAny ((sal_Int32
) 0);
7685 aPropSequence
[3].Value
= makeAny (aAny
);
7687 aPropSequenceSequence
[0] = aPropSequence
;
7689 aPropertyMap
[PROP_Handles
] <<= aPropSequenceSequence
;
7692 aPropertyMap
[PROP_MirroredX
] <<= Any ((sal_Bool
) sal_False
);
7695 aPropertyMap
[PROP_MirroredY
] <<= Any ((sal_Bool
) sal_False
);
7698 Sequence
< PropertyValue
> aPropSequence (3);
7700 aPropSequence
[0].Name
= "Coordinates";
7701 static const CustomShapeProvider::ParameterPairData aData
[] = {
7703 EnhancedCustomShapeParameterType::NORMAL
,
7704 EnhancedCustomShapeParameterType::EQUATION
,
7708 EnhancedCustomShapeParameterType::EQUATION
,
7709 EnhancedCustomShapeParameterType::EQUATION
,
7713 EnhancedCustomShapeParameterType::EQUATION
,
7714 EnhancedCustomShapeParameterType::EQUATION
,
7718 EnhancedCustomShapeParameterType::EQUATION
,
7719 EnhancedCustomShapeParameterType::EQUATION
,
7723 EnhancedCustomShapeParameterType::EQUATION
,
7724 EnhancedCustomShapeParameterType::EQUATION
,
7728 EnhancedCustomShapeParameterType::EQUATION
,
7729 EnhancedCustomShapeParameterType::EQUATION
,
7733 EnhancedCustomShapeParameterType::EQUATION
,
7734 EnhancedCustomShapeParameterType::EQUATION
,
7738 EnhancedCustomShapeParameterType::EQUATION
,
7739 EnhancedCustomShapeParameterType::EQUATION
,
7743 EnhancedCustomShapeParameterType::EQUATION
,
7744 EnhancedCustomShapeParameterType::EQUATION
,
7748 EnhancedCustomShapeParameterType::EQUATION
,
7749 EnhancedCustomShapeParameterType::EQUATION
,
7753 EnhancedCustomShapeParameterType::EQUATION
,
7754 EnhancedCustomShapeParameterType::EQUATION
,
7758 EnhancedCustomShapeParameterType::EQUATION
,
7759 EnhancedCustomShapeParameterType::EQUATION
,
7763 EnhancedCustomShapeParameterType::EQUATION
,
7764 EnhancedCustomShapeParameterType::NORMAL
,
7768 EnhancedCustomShapeParameterType::EQUATION
,
7769 EnhancedCustomShapeParameterType::EQUATION
,
7773 EnhancedCustomShapeParameterType::EQUATION
,
7774 EnhancedCustomShapeParameterType::EQUATION
,
7778 EnhancedCustomShapeParameterType::EQUATION
,
7779 EnhancedCustomShapeParameterType::EQUATION
,
7783 EnhancedCustomShapeParameterType::EQUATION
,
7784 EnhancedCustomShapeParameterType::EQUATION
,
7788 EnhancedCustomShapeParameterType::EQUATION
,
7789 EnhancedCustomShapeParameterType::EQUATION
,
7793 EnhancedCustomShapeParameterType::EQUATION
,
7794 EnhancedCustomShapeParameterType::EQUATION
,
7798 EnhancedCustomShapeParameterType::EQUATION
,
7799 EnhancedCustomShapeParameterType::EQUATION
,
7803 EnhancedCustomShapeParameterType::EQUATION
,
7804 EnhancedCustomShapeParameterType::EQUATION
,
7808 EnhancedCustomShapeParameterType::EQUATION
,
7809 EnhancedCustomShapeParameterType::EQUATION
,
7813 EnhancedCustomShapeParameterType::EQUATION
,
7814 EnhancedCustomShapeParameterType::EQUATION
,
7818 EnhancedCustomShapeParameterType::EQUATION
,
7819 EnhancedCustomShapeParameterType::EQUATION
,
7823 EnhancedCustomShapeParameterType::EQUATION
,
7824 EnhancedCustomShapeParameterType::EQUATION
,
7828 EnhancedCustomShapeParameterType::EQUATION
,
7829 EnhancedCustomShapeParameterType::EQUATION
,
7833 EnhancedCustomShapeParameterType::EQUATION
,
7834 EnhancedCustomShapeParameterType::EQUATION
,
7838 EnhancedCustomShapeParameterType::EQUATION
,
7839 EnhancedCustomShapeParameterType::EQUATION
,
7843 EnhancedCustomShapeParameterType::EQUATION
,
7844 EnhancedCustomShapeParameterType::EQUATION
,
7848 EnhancedCustomShapeParameterType::EQUATION
,
7849 EnhancedCustomShapeParameterType::EQUATION
,
7853 EnhancedCustomShapeParameterType::EQUATION
,
7854 EnhancedCustomShapeParameterType::EQUATION
,
7858 EnhancedCustomShapeParameterType::EQUATION
,
7859 EnhancedCustomShapeParameterType::EQUATION
,
7863 EnhancedCustomShapeParameterType::EQUATION
,
7864 EnhancedCustomShapeParameterType::EQUATION
,
7868 EnhancedCustomShapeParameterType::EQUATION
,
7869 EnhancedCustomShapeParameterType::EQUATION
,
7873 EnhancedCustomShapeParameterType::EQUATION
,
7874 EnhancedCustomShapeParameterType::EQUATION
,
7878 EnhancedCustomShapeParameterType::EQUATION
,
7879 EnhancedCustomShapeParameterType::EQUATION
,
7883 EnhancedCustomShapeParameterType::EQUATION
,
7884 EnhancedCustomShapeParameterType::EQUATION
,
7888 EnhancedCustomShapeParameterType::EQUATION
,
7889 EnhancedCustomShapeParameterType::EQUATION
,
7893 EnhancedCustomShapeParameterType::EQUATION
,
7894 EnhancedCustomShapeParameterType::EQUATION
,
7898 EnhancedCustomShapeParameterType::EQUATION
,
7899 EnhancedCustomShapeParameterType::EQUATION
,
7903 EnhancedCustomShapeParameterType::EQUATION
,
7904 EnhancedCustomShapeParameterType::EQUATION
,
7908 EnhancedCustomShapeParameterType::EQUATION
,
7909 EnhancedCustomShapeParameterType::EQUATION
,
7913 EnhancedCustomShapeParameterType::EQUATION
,
7914 EnhancedCustomShapeParameterType::EQUATION
,
7918 EnhancedCustomShapeParameterType::EQUATION
,
7919 EnhancedCustomShapeParameterType::EQUATION
,
7923 EnhancedCustomShapeParameterType::EQUATION
,
7924 EnhancedCustomShapeParameterType::EQUATION
,
7928 EnhancedCustomShapeParameterType::EQUATION
,
7929 EnhancedCustomShapeParameterType::EQUATION
,
7933 EnhancedCustomShapeParameterType::EQUATION
,
7934 EnhancedCustomShapeParameterType::EQUATION
,
7938 EnhancedCustomShapeParameterType::EQUATION
,
7939 EnhancedCustomShapeParameterType::EQUATION
,
7943 aPropSequence
[0].Value
= makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData
), aData
));
7946 aPropSequence
[1].Name
= "Segments";
7947 static const sal_uInt16 nValues
[] = {
7954 aPropSequence
[1].Value
= makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues
), nValues
));
7957 aPropSequence
[2].Name
= "TextFrames";
7958 Sequence
< EnhancedCustomShapeTextFrame
> aTextFrameSeq (1);
7960 EnhancedCustomShapeTextFrame aTextFrame
;
7962 static const CustomShapeProvider::ParameterPairData aData
=
7964 EnhancedCustomShapeParameterType::EQUATION
,
7965 EnhancedCustomShapeParameterType::EQUATION
,
7968 aTextFrame
.TopLeft
= createParameterPair(&aData
);
7971 static const CustomShapeProvider::ParameterPairData aData
=
7973 EnhancedCustomShapeParameterType::EQUATION
,
7974 EnhancedCustomShapeParameterType::EQUATION
,
7977 aTextFrame
.BottomRight
= createParameterPair(&aData
);
7979 aTextFrameSeq
[0] = aTextFrame
;
7981 aPropSequence
[2].Value
= makeAny (aTextFrameSeq
);
7983 aPropertyMap
[PROP_Path
] <<= aPropSequence
;
7986 awt::Rectangle aRectangle
;
7989 aRectangle
.Width
= 0;
7990 aRectangle
.Height
= 0;
7991 aPropertyMap
[PROP_ViewBox
] <<= aRectangle
;
7993 aPropertyMap
[ PROP_Type
] <<= OUString("ooxml-star24");
7995 return aPropertyMap
;
7998 class ShapeCmathDivide
: public CustomShapeProvider
8000 virtual PropertyMap
getProperties()
8002 PropertyMap aPropertyMap
;
8005 Sequence
< EnhancedCustomShapeAdjustmentValue
> aAdjSequence (3);
8007 Any
aAny ((sal_Int32
) 23520);
8008 aAdjSequence
[0].Value
= aAny
;
8009 aAdjSequence
[0].Name
= "adj1";
8012 Any
aAny ((sal_Int32
) 5880);
8013 aAdjSequence
[1].Value
= aAny
;
8014 aAdjSequence
[1].Name
= "adj2";
8017 Any
aAny ((sal_Int32
) 11760);
8018 aAdjSequence
[2].Value
= aAny
;
8019 aAdjSequence
[2].Name
= "adj3";
8021 aPropertyMap
[PROP_AdjustmentValues
] <<= aAdjSequence
;
8024 static const char *aStrings
[] = {
8025 "if(1000-$0 ,1000,if(36745-$0 ,$0 ,36745))",
8028 "36745*logwidth/logheight",
8030 "if(1000-$2 ,1000,if(?4 -$2 ,$2 ,?4 ))",
8033 "if(0-$1 ,0,if(?7 -$1 ,$1 ,?7 ))",
8034 "logheight*?0 /200000",
8035 "logheight*?8 /100000",
8036 "logheight*?5 /100000",
8037 "logwidth*73490/200000",
8050 "(16200000)/60000.0",
8051 "(21600000)/60000.0",
8052 "(5400000)/60000.0",
8053 "(21600000)/60000.0"
8055 aPropertyMap
[PROP_Equations
] <<= createStringSequence( SAL_N_ELEMENTS( aStrings
), aStrings
);
8058 Sequence
< Sequence
< PropertyValue
> > aPropSequenceSequence (3);
8060 Sequence
< PropertyValue
> aPropSequence (4);
8062 aPropSequence
[0].Name
= "Position";
8063 static const CustomShapeProvider::ParameterPairData aData
=
8065 EnhancedCustomShapeParameterType::NORMAL
,
8066 EnhancedCustomShapeParameterType::EQUATION
,
8069 aPropSequence
[0].Value
= makeAny (createParameterPair(&aData
));
8072 aPropSequence
[1].Name
= "RangeYMaximum";
8073 EnhancedCustomShapeParameter aParameter
;
8074 Any
aAny ((sal_Int32
) 36745);
8075 aParameter
.Value
= aAny
;
8076 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
8077 aPropSequence
[1].Value
= makeAny (aParameter
);
8080 aPropSequence
[2].Name
= "RangeYMinimum";
8081 EnhancedCustomShapeParameter aParameter
;
8082 Any
aAny ((sal_Int32
) 1000);
8083 aParameter
.Value
= aAny
;
8084 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
8085 aPropSequence
[2].Value
= makeAny (aParameter
);
8088 aPropSequence
[3].Name
= "RefY";
8089 Any
aAny ((sal_Int32
) 0);
8090 aPropSequence
[3].Value
= makeAny (aAny
);
8092 aPropSequenceSequence
[0] = aPropSequence
;
8095 Sequence
< PropertyValue
> aPropSequence (4);
8097 aPropSequence
[0].Name
= "Position";
8098 static const CustomShapeProvider::ParameterPairData aData
=
8100 EnhancedCustomShapeParameterType::EQUATION
,
8101 EnhancedCustomShapeParameterType::EQUATION
,
8104 aPropSequence
[0].Value
= makeAny (createParameterPair(&aData
));
8107 aPropSequence
[1].Name
= "RangeYMaximum";
8108 EnhancedCustomShapeParameter aParameter
;
8109 Any
aAny ((sal_Int32
) 7);
8110 aParameter
.Value
= aAny
;
8111 aParameter
.Type
= EnhancedCustomShapeParameterType::EQUATION
;
8112 aPropSequence
[1].Value
= makeAny (aParameter
);
8115 aPropSequence
[2].Name
= "RangeYMinimum";
8116 EnhancedCustomShapeParameter aParameter
;
8117 Any
aAny ((sal_Int32
) 0);
8118 aParameter
.Value
= aAny
;
8119 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
8120 aPropSequence
[2].Value
= makeAny (aParameter
);
8123 aPropSequence
[3].Name
= "RefY";
8124 Any
aAny ((sal_Int32
) 1);
8125 aPropSequence
[3].Value
= makeAny (aAny
);
8127 aPropSequenceSequence
[1] = aPropSequence
;
8130 Sequence
< PropertyValue
> aPropSequence (4);
8132 aPropSequence
[0].Name
= "Position";
8133 static const CustomShapeProvider::ParameterPairData aData
=
8135 EnhancedCustomShapeParameterType::EQUATION
,
8136 EnhancedCustomShapeParameterType::NORMAL
,
8139 aPropSequence
[0].Value
= makeAny (createParameterPair(&aData
));
8142 aPropSequence
[1].Name
= "RangeXMaximum";
8143 EnhancedCustomShapeParameter aParameter
;
8144 Any
aAny ((sal_Int32
) 4);
8145 aParameter
.Value
= aAny
;
8146 aParameter
.Type
= EnhancedCustomShapeParameterType::EQUATION
;
8147 aPropSequence
[1].Value
= makeAny (aParameter
);
8150 aPropSequence
[2].Name
= "RangeXMinimum";
8151 EnhancedCustomShapeParameter aParameter
;
8152 Any
aAny ((sal_Int32
) 1000);
8153 aParameter
.Value
= aAny
;
8154 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
8155 aPropSequence
[2].Value
= makeAny (aParameter
);
8158 aPropSequence
[3].Name
= "RefX";
8159 Any
aAny ((sal_Int32
) 2);
8160 aPropSequence
[3].Value
= makeAny (aAny
);
8162 aPropSequenceSequence
[2] = aPropSequence
;
8164 aPropertyMap
[PROP_Handles
] <<= aPropSequenceSequence
;
8167 aPropertyMap
[PROP_MirroredX
] <<= Any ((sal_Bool
) sal_False
);
8170 aPropertyMap
[PROP_MirroredY
] <<= Any ((sal_Bool
) sal_False
);
8173 Sequence
< PropertyValue
> aPropSequence (3);
8175 aPropSequence
[0].Name
= "Coordinates";
8176 static const CustomShapeProvider::ParameterPairData aData
[] = {
8178 EnhancedCustomShapeParameterType::EQUATION
,
8179 EnhancedCustomShapeParameterType::EQUATION
,
8183 EnhancedCustomShapeParameterType::EQUATION
,
8184 EnhancedCustomShapeParameterType::EQUATION
,
8188 EnhancedCustomShapeParameterType::EQUATION
,
8189 EnhancedCustomShapeParameterType::EQUATION
,
8193 EnhancedCustomShapeParameterType::EQUATION
,
8194 EnhancedCustomShapeParameterType::EQUATION
,
8198 EnhancedCustomShapeParameterType::EQUATION
,
8199 EnhancedCustomShapeParameterType::EQUATION
,
8203 EnhancedCustomShapeParameterType::EQUATION
,
8204 EnhancedCustomShapeParameterType::EQUATION
,
8208 EnhancedCustomShapeParameterType::EQUATION
,
8209 EnhancedCustomShapeParameterType::EQUATION
,
8213 EnhancedCustomShapeParameterType::EQUATION
,
8214 EnhancedCustomShapeParameterType::EQUATION
,
8218 EnhancedCustomShapeParameterType::EQUATION
,
8219 EnhancedCustomShapeParameterType::EQUATION
,
8223 EnhancedCustomShapeParameterType::EQUATION
,
8224 EnhancedCustomShapeParameterType::EQUATION
,
8228 aPropSequence
[0].Value
= makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData
), aData
));
8231 aPropSequence
[1].Name
= "Segments";
8232 static const sal_uInt16 nValues
[] = {
8245 aPropSequence
[1].Value
= makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues
), nValues
));
8248 aPropSequence
[2].Name
= "TextFrames";
8249 Sequence
< EnhancedCustomShapeTextFrame
> aTextFrameSeq (1);
8251 EnhancedCustomShapeTextFrame aTextFrame
;
8253 static const CustomShapeProvider::ParameterPairData aData
=
8255 EnhancedCustomShapeParameterType::EQUATION
,
8256 EnhancedCustomShapeParameterType::EQUATION
,
8259 aTextFrame
.TopLeft
= createParameterPair(&aData
);
8262 static const CustomShapeProvider::ParameterPairData aData
=
8264 EnhancedCustomShapeParameterType::EQUATION
,
8265 EnhancedCustomShapeParameterType::EQUATION
,
8268 aTextFrame
.BottomRight
= createParameterPair(&aData
);
8270 aTextFrameSeq
[0] = aTextFrame
;
8272 aPropSequence
[2].Value
= makeAny (aTextFrameSeq
);
8274 aPropertyMap
[PROP_Path
] <<= aPropSequence
;
8277 awt::Rectangle aRectangle
;
8280 aRectangle
.Width
= 0;
8281 aRectangle
.Height
= 0;
8282 aPropertyMap
[PROP_ViewBox
] <<= aRectangle
;
8284 aPropertyMap
[ PROP_Type
] <<= OUString("ooxml-mathDivide");
8286 return aPropertyMap
;
8289 class ShapeCcurvedConnector4
: public CustomShapeProvider
8291 virtual PropertyMap
getProperties()
8293 PropertyMap aPropertyMap
;
8296 Sequence
< EnhancedCustomShapeAdjustmentValue
> aAdjSequence (2);
8298 Any
aAny ((sal_Int32
) 50000);
8299 aAdjSequence
[0].Value
= aAny
;
8300 aAdjSequence
[0].Name
= "adj1";
8303 Any
aAny ((sal_Int32
) 50000);
8304 aAdjSequence
[1].Value
= aAny
;
8305 aAdjSequence
[1].Name
= "adj2";
8307 aPropertyMap
[PROP_AdjustmentValues
] <<= aAdjSequence
;
8310 static const char *aStrings
[] = {
8311 "logwidth*$0 /100000",
8316 "logheight*$1 /100000",
8320 "(logheight+?5 )/2",
8324 aPropertyMap
[PROP_Equations
] <<= createStringSequence( SAL_N_ELEMENTS( aStrings
), aStrings
);
8327 Sequence
< Sequence
< PropertyValue
> > aPropSequenceSequence (2);
8329 Sequence
< PropertyValue
> aPropSequence (4);
8331 aPropSequence
[0].Name
= "Position";
8332 static const CustomShapeProvider::ParameterPairData aData
=
8334 EnhancedCustomShapeParameterType::EQUATION
,
8335 EnhancedCustomShapeParameterType::EQUATION
,
8338 aPropSequence
[0].Value
= makeAny (createParameterPair(&aData
));
8341 aPropSequence
[1].Name
= "RangeXMaximum";
8342 EnhancedCustomShapeParameter aParameter
;
8343 Any
aAny ((sal_Int32
) 2147483647);
8344 aParameter
.Value
= aAny
;
8345 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
8346 aPropSequence
[1].Value
= makeAny (aParameter
);
8349 aPropSequence
[2].Name
= "RangeXMinimum";
8350 EnhancedCustomShapeParameter aParameter
;
8351 Any
aAny ((sal_Int32
) -2147483647);
8352 aParameter
.Value
= aAny
;
8353 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
8354 aPropSequence
[2].Value
= makeAny (aParameter
);
8357 aPropSequence
[3].Name
= "RefX";
8358 Any
aAny ((sal_Int32
) 0);
8359 aPropSequence
[3].Value
= makeAny (aAny
);
8361 aPropSequenceSequence
[0] = aPropSequence
;
8364 Sequence
< PropertyValue
> aPropSequence (4);
8366 aPropSequence
[0].Name
= "Position";
8367 static const CustomShapeProvider::ParameterPairData aData
=
8369 EnhancedCustomShapeParameterType::EQUATION
,
8370 EnhancedCustomShapeParameterType::EQUATION
,
8373 aPropSequence
[0].Value
= makeAny (createParameterPair(&aData
));
8376 aPropSequence
[1].Name
= "RangeYMaximum";
8377 EnhancedCustomShapeParameter aParameter
;
8378 Any
aAny ((sal_Int32
) 2147483647);
8379 aParameter
.Value
= aAny
;
8380 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
8381 aPropSequence
[1].Value
= makeAny (aParameter
);
8384 aPropSequence
[2].Name
= "RangeYMinimum";
8385 EnhancedCustomShapeParameter aParameter
;
8386 Any
aAny ((sal_Int32
) -2147483647);
8387 aParameter
.Value
= aAny
;
8388 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
8389 aPropSequence
[2].Value
= makeAny (aParameter
);
8392 aPropSequence
[3].Name
= "RefY";
8393 Any
aAny ((sal_Int32
) 1);
8394 aPropSequence
[3].Value
= makeAny (aAny
);
8396 aPropSequenceSequence
[1] = aPropSequence
;
8398 aPropertyMap
[PROP_Handles
] <<= aPropSequenceSequence
;
8401 aPropertyMap
[PROP_MirroredX
] <<= Any ((sal_Bool
) sal_False
);
8404 aPropertyMap
[PROP_MirroredY
] <<= Any ((sal_Bool
) sal_False
);
8407 Sequence
< PropertyValue
> aPropSequence (3);
8409 aPropSequence
[0].Name
= "Coordinates";
8410 static const CustomShapeProvider::ParameterPairData aData
[] = {
8412 EnhancedCustomShapeParameterType::NORMAL
,
8413 EnhancedCustomShapeParameterType::NORMAL
,
8417 EnhancedCustomShapeParameterType::EQUATION
,
8418 EnhancedCustomShapeParameterType::NORMAL
,
8422 EnhancedCustomShapeParameterType::EQUATION
,
8423 EnhancedCustomShapeParameterType::EQUATION
,
8427 EnhancedCustomShapeParameterType::EQUATION
,
8428 EnhancedCustomShapeParameterType::EQUATION
,
8432 EnhancedCustomShapeParameterType::EQUATION
,
8433 EnhancedCustomShapeParameterType::EQUATION
,
8437 EnhancedCustomShapeParameterType::EQUATION
,
8438 EnhancedCustomShapeParameterType::EQUATION
,
8442 EnhancedCustomShapeParameterType::EQUATION
,
8443 EnhancedCustomShapeParameterType::EQUATION
,
8447 EnhancedCustomShapeParameterType::EQUATION
,
8448 EnhancedCustomShapeParameterType::EQUATION
,
8452 EnhancedCustomShapeParameterType::EQUATION
,
8453 EnhancedCustomShapeParameterType::EQUATION
,
8457 EnhancedCustomShapeParameterType::EQUATION
,
8458 EnhancedCustomShapeParameterType::EQUATION
,
8462 aPropSequence
[0].Value
= makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData
), aData
));
8465 aPropSequence
[1].Name
= "Segments";
8466 static const sal_uInt16 nValues
[] = {
8473 aPropSequence
[1].Value
= makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues
), nValues
));
8476 aPropSequence
[2].Name
= "TextFrames";
8477 Sequence
< EnhancedCustomShapeTextFrame
> aTextFrameSeq (1);
8479 EnhancedCustomShapeTextFrame aTextFrame
;
8481 static const CustomShapeProvider::ParameterPairData aData
=
8483 EnhancedCustomShapeParameterType::NORMAL
,
8484 EnhancedCustomShapeParameterType::NORMAL
,
8487 aTextFrame
.TopLeft
= createParameterPair(&aData
);
8490 static const CustomShapeProvider::ParameterPairData aData
=
8492 EnhancedCustomShapeParameterType::EQUATION
,
8493 EnhancedCustomShapeParameterType::EQUATION
,
8496 aTextFrame
.BottomRight
= createParameterPair(&aData
);
8498 aTextFrameSeq
[0] = aTextFrame
;
8500 aPropSequence
[2].Value
= makeAny (aTextFrameSeq
);
8502 aPropertyMap
[PROP_Path
] <<= aPropSequence
;
8505 awt::Rectangle aRectangle
;
8508 aRectangle
.Width
= 0;
8509 aRectangle
.Height
= 0;
8510 aPropertyMap
[PROP_ViewBox
] <<= aRectangle
;
8512 aPropertyMap
[ PROP_Type
] <<= OUString("ooxml-curvedConnector4");
8514 return aPropertyMap
;
8517 class ShapeCflowChartOr
: public CustomShapeProvider
8519 virtual PropertyMap
getProperties()
8521 PropertyMap aPropertyMap
;
8524 aPropertyMap
[PROP_AdjustmentValues
] <<= Sequence
< OUString
>(0);
8527 static const char *aStrings
[] = {
8529 "?0 *cos(pi*(2700000)/10800000)",
8531 "?2 *sin(pi*(2700000)/10800000)",
8540 "(10800000)/60000.0",
8541 "(5400000)/60000.0",
8542 "(16200000)/60000.0",
8543 "(5400000)/60000.0",
8545 "(5400000)/60000.0",
8546 "(5400000)/60000.0",
8547 "(5400000)/60000.0",
8548 "(10800000)/60000.0",
8549 "(5400000)/60000.0",
8550 "(16200000)/60000.0",
8551 "(5400000)/60000.0",
8553 "(5400000)/60000.0",
8554 "(5400000)/60000.0",
8557 aPropertyMap
[PROP_Equations
] <<= createStringSequence( SAL_N_ELEMENTS( aStrings
), aStrings
);
8560 aPropertyMap
[PROP_Handles
] <<= Sequence
< OUString
>(0);
8563 aPropertyMap
[PROP_MirroredX
] <<= Any ((sal_Bool
) sal_False
);
8566 aPropertyMap
[PROP_MirroredY
] <<= Any ((sal_Bool
) sal_False
);
8569 Sequence
< PropertyValue
> aPropSequence (3);
8571 aPropSequence
[0].Name
= "Coordinates";
8572 static const CustomShapeProvider::ParameterPairData aData
[] = {
8574 EnhancedCustomShapeParameterType::NORMAL
,
8575 EnhancedCustomShapeParameterType::EQUATION
,
8579 EnhancedCustomShapeParameterType::EQUATION
,
8580 EnhancedCustomShapeParameterType::EQUATION
,
8584 EnhancedCustomShapeParameterType::EQUATION
,
8585 EnhancedCustomShapeParameterType::EQUATION
,
8589 EnhancedCustomShapeParameterType::EQUATION
,
8590 EnhancedCustomShapeParameterType::EQUATION
,
8594 EnhancedCustomShapeParameterType::EQUATION
,
8595 EnhancedCustomShapeParameterType::EQUATION
,
8599 EnhancedCustomShapeParameterType::EQUATION
,
8600 EnhancedCustomShapeParameterType::EQUATION
,
8604 EnhancedCustomShapeParameterType::EQUATION
,
8605 EnhancedCustomShapeParameterType::EQUATION
,
8609 EnhancedCustomShapeParameterType::EQUATION
,
8610 EnhancedCustomShapeParameterType::EQUATION
,
8614 EnhancedCustomShapeParameterType::EQUATION
,
8615 EnhancedCustomShapeParameterType::EQUATION
,
8619 EnhancedCustomShapeParameterType::EQUATION
,
8620 EnhancedCustomShapeParameterType::NORMAL
,
8624 EnhancedCustomShapeParameterType::EQUATION
,
8625 EnhancedCustomShapeParameterType::EQUATION
,
8629 EnhancedCustomShapeParameterType::NORMAL
,
8630 EnhancedCustomShapeParameterType::EQUATION
,
8634 EnhancedCustomShapeParameterType::EQUATION
,
8635 EnhancedCustomShapeParameterType::EQUATION
,
8639 EnhancedCustomShapeParameterType::NORMAL
,
8640 EnhancedCustomShapeParameterType::EQUATION
,
8644 EnhancedCustomShapeParameterType::EQUATION
,
8645 EnhancedCustomShapeParameterType::EQUATION
,
8649 EnhancedCustomShapeParameterType::EQUATION
,
8650 EnhancedCustomShapeParameterType::EQUATION
,
8654 EnhancedCustomShapeParameterType::EQUATION
,
8655 EnhancedCustomShapeParameterType::EQUATION
,
8659 EnhancedCustomShapeParameterType::EQUATION
,
8660 EnhancedCustomShapeParameterType::EQUATION
,
8664 EnhancedCustomShapeParameterType::EQUATION
,
8665 EnhancedCustomShapeParameterType::EQUATION
,
8669 EnhancedCustomShapeParameterType::EQUATION
,
8670 EnhancedCustomShapeParameterType::EQUATION
,
8674 EnhancedCustomShapeParameterType::EQUATION
,
8675 EnhancedCustomShapeParameterType::EQUATION
,
8679 EnhancedCustomShapeParameterType::EQUATION
,
8680 EnhancedCustomShapeParameterType::EQUATION
,
8684 aPropSequence
[0].Value
= makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData
), aData
));
8687 aPropSequence
[1].Name
= "Segments";
8688 static const sal_uInt16 nValues
[] = {
8707 aPropSequence
[1].Value
= makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues
), nValues
));
8710 aPropSequence
[2].Name
= "TextFrames";
8711 Sequence
< EnhancedCustomShapeTextFrame
> aTextFrameSeq (1);
8713 EnhancedCustomShapeTextFrame aTextFrame
;
8715 static const CustomShapeProvider::ParameterPairData aData
=
8717 EnhancedCustomShapeParameterType::EQUATION
,
8718 EnhancedCustomShapeParameterType::EQUATION
,
8721 aTextFrame
.TopLeft
= createParameterPair(&aData
);
8724 static const CustomShapeProvider::ParameterPairData aData
=
8726 EnhancedCustomShapeParameterType::EQUATION
,
8727 EnhancedCustomShapeParameterType::EQUATION
,
8730 aTextFrame
.BottomRight
= createParameterPair(&aData
);
8732 aTextFrameSeq
[0] = aTextFrame
;
8734 aPropSequence
[2].Value
= makeAny (aTextFrameSeq
);
8736 aPropertyMap
[PROP_Path
] <<= aPropSequence
;
8739 awt::Rectangle aRectangle
;
8742 aRectangle
.Width
= 0;
8743 aRectangle
.Height
= 0;
8744 aPropertyMap
[PROP_ViewBox
] <<= aRectangle
;
8746 aPropertyMap
[ PROP_Type
] <<= OUString("ooxml-flowChartOr");
8748 return aPropertyMap
;
8751 class ShapeCborderCallout3
: public CustomShapeProvider
8753 virtual PropertyMap
getProperties()
8755 PropertyMap aPropertyMap
;
8758 Sequence
< EnhancedCustomShapeAdjustmentValue
> aAdjSequence (8);
8760 Any
aAny ((sal_Int32
) 18750);
8761 aAdjSequence
[0].Value
= aAny
;
8762 aAdjSequence
[0].Name
= "adj1";
8765 Any
aAny ((sal_Int32
) -8333);
8766 aAdjSequence
[1].Value
= aAny
;
8767 aAdjSequence
[1].Name
= "adj2";
8770 Any
aAny ((sal_Int32
) 18750);
8771 aAdjSequence
[2].Value
= aAny
;
8772 aAdjSequence
[2].Name
= "adj3";
8775 Any
aAny ((sal_Int32
) -16667);
8776 aAdjSequence
[3].Value
= aAny
;
8777 aAdjSequence
[3].Name
= "adj4";
8780 Any
aAny ((sal_Int32
) 100000);
8781 aAdjSequence
[4].Value
= aAny
;
8782 aAdjSequence
[4].Name
= "adj5";
8785 Any
aAny ((sal_Int32
) -16667);
8786 aAdjSequence
[5].Value
= aAny
;
8787 aAdjSequence
[5].Name
= "adj6";
8790 Any
aAny ((sal_Int32
) 112963);
8791 aAdjSequence
[6].Value
= aAny
;
8792 aAdjSequence
[6].Name
= "adj7";
8795 Any
aAny ((sal_Int32
) -8333);
8796 aAdjSequence
[7].Value
= aAny
;
8797 aAdjSequence
[7].Name
= "adj8";
8799 aPropertyMap
[PROP_AdjustmentValues
] <<= aAdjSequence
;
8802 static const char *aStrings
[] = {
8803 "logheight*$0 /100000",
8804 "logwidth*$1 /100000",
8805 "logheight*$2 /100000",
8806 "logwidth*$3 /100000",
8807 "logheight*$4 /100000",
8808 "logwidth*$5 /100000",
8809 "logheight*$6 /100000",
8810 "logwidth*$7 /100000",
8816 aPropertyMap
[PROP_Equations
] <<= createStringSequence( SAL_N_ELEMENTS( aStrings
), aStrings
);
8819 Sequence
< Sequence
< PropertyValue
> > aPropSequenceSequence (4);
8821 Sequence
< PropertyValue
> aPropSequence (7);
8823 aPropSequence
[0].Name
= "Position";
8824 static const CustomShapeProvider::ParameterPairData aData
=
8826 EnhancedCustomShapeParameterType::EQUATION
,
8827 EnhancedCustomShapeParameterType::EQUATION
,
8830 aPropSequence
[0].Value
= makeAny (createParameterPair(&aData
));
8833 aPropSequence
[1].Name
= "RangeXMaximum";
8834 EnhancedCustomShapeParameter aParameter
;
8835 Any
aAny ((sal_Int32
) 2147483647);
8836 aParameter
.Value
= aAny
;
8837 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
8838 aPropSequence
[1].Value
= makeAny (aParameter
);
8841 aPropSequence
[2].Name
= "RangeXMinimum";
8842 EnhancedCustomShapeParameter aParameter
;
8843 Any
aAny ((sal_Int32
) -2147483647);
8844 aParameter
.Value
= aAny
;
8845 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
8846 aPropSequence
[2].Value
= makeAny (aParameter
);
8849 aPropSequence
[3].Name
= "RangeYMaximum";
8850 EnhancedCustomShapeParameter aParameter
;
8851 Any
aAny ((sal_Int32
) 2147483647);
8852 aParameter
.Value
= aAny
;
8853 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
8854 aPropSequence
[3].Value
= makeAny (aParameter
);
8857 aPropSequence
[4].Name
= "RangeYMinimum";
8858 EnhancedCustomShapeParameter aParameter
;
8859 Any
aAny ((sal_Int32
) -2147483647);
8860 aParameter
.Value
= aAny
;
8861 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
8862 aPropSequence
[4].Value
= makeAny (aParameter
);
8865 aPropSequence
[5].Name
= "RefX";
8866 Any
aAny ((sal_Int32
) 1);
8867 aPropSequence
[5].Value
= makeAny (aAny
);
8870 aPropSequence
[6].Name
= "RefY";
8871 Any
aAny ((sal_Int32
) 0);
8872 aPropSequence
[6].Value
= makeAny (aAny
);
8874 aPropSequenceSequence
[0] = aPropSequence
;
8877 Sequence
< PropertyValue
> aPropSequence (7);
8879 aPropSequence
[0].Name
= "Position";
8880 static const CustomShapeProvider::ParameterPairData aData
=
8882 EnhancedCustomShapeParameterType::EQUATION
,
8883 EnhancedCustomShapeParameterType::EQUATION
,
8886 aPropSequence
[0].Value
= makeAny (createParameterPair(&aData
));
8889 aPropSequence
[1].Name
= "RangeXMaximum";
8890 EnhancedCustomShapeParameter aParameter
;
8891 Any
aAny ((sal_Int32
) 2147483647);
8892 aParameter
.Value
= aAny
;
8893 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
8894 aPropSequence
[1].Value
= makeAny (aParameter
);
8897 aPropSequence
[2].Name
= "RangeXMinimum";
8898 EnhancedCustomShapeParameter aParameter
;
8899 Any
aAny ((sal_Int32
) -2147483647);
8900 aParameter
.Value
= aAny
;
8901 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
8902 aPropSequence
[2].Value
= makeAny (aParameter
);
8905 aPropSequence
[3].Name
= "RangeYMaximum";
8906 EnhancedCustomShapeParameter aParameter
;
8907 Any
aAny ((sal_Int32
) 2147483647);
8908 aParameter
.Value
= aAny
;
8909 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
8910 aPropSequence
[3].Value
= makeAny (aParameter
);
8913 aPropSequence
[4].Name
= "RangeYMinimum";
8914 EnhancedCustomShapeParameter aParameter
;
8915 Any
aAny ((sal_Int32
) -2147483647);
8916 aParameter
.Value
= aAny
;
8917 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
8918 aPropSequence
[4].Value
= makeAny (aParameter
);
8921 aPropSequence
[5].Name
= "RefX";
8922 Any
aAny ((sal_Int32
) 3);
8923 aPropSequence
[5].Value
= makeAny (aAny
);
8926 aPropSequence
[6].Name
= "RefY";
8927 Any
aAny ((sal_Int32
) 2);
8928 aPropSequence
[6].Value
= makeAny (aAny
);
8930 aPropSequenceSequence
[1] = aPropSequence
;
8933 Sequence
< PropertyValue
> aPropSequence (7);
8935 aPropSequence
[0].Name
= "Position";
8936 static const CustomShapeProvider::ParameterPairData aData
=
8938 EnhancedCustomShapeParameterType::EQUATION
,
8939 EnhancedCustomShapeParameterType::EQUATION
,
8942 aPropSequence
[0].Value
= makeAny (createParameterPair(&aData
));
8945 aPropSequence
[1].Name
= "RangeXMaximum";
8946 EnhancedCustomShapeParameter aParameter
;
8947 Any
aAny ((sal_Int32
) 2147483647);
8948 aParameter
.Value
= aAny
;
8949 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
8950 aPropSequence
[1].Value
= makeAny (aParameter
);
8953 aPropSequence
[2].Name
= "RangeXMinimum";
8954 EnhancedCustomShapeParameter aParameter
;
8955 Any
aAny ((sal_Int32
) -2147483647);
8956 aParameter
.Value
= aAny
;
8957 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
8958 aPropSequence
[2].Value
= makeAny (aParameter
);
8961 aPropSequence
[3].Name
= "RangeYMaximum";
8962 EnhancedCustomShapeParameter aParameter
;
8963 Any
aAny ((sal_Int32
) 2147483647);
8964 aParameter
.Value
= aAny
;
8965 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
8966 aPropSequence
[3].Value
= makeAny (aParameter
);
8969 aPropSequence
[4].Name
= "RangeYMinimum";
8970 EnhancedCustomShapeParameter aParameter
;
8971 Any
aAny ((sal_Int32
) -2147483647);
8972 aParameter
.Value
= aAny
;
8973 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
8974 aPropSequence
[4].Value
= makeAny (aParameter
);
8977 aPropSequence
[5].Name
= "RefX";
8978 Any
aAny ((sal_Int32
) 5);
8979 aPropSequence
[5].Value
= makeAny (aAny
);
8982 aPropSequence
[6].Name
= "RefY";
8983 Any
aAny ((sal_Int32
) 4);
8984 aPropSequence
[6].Value
= makeAny (aAny
);
8986 aPropSequenceSequence
[2] = aPropSequence
;
8989 Sequence
< PropertyValue
> aPropSequence (7);
8991 aPropSequence
[0].Name
= "Position";
8992 static const CustomShapeProvider::ParameterPairData aData
=
8994 EnhancedCustomShapeParameterType::EQUATION
,
8995 EnhancedCustomShapeParameterType::EQUATION
,
8998 aPropSequence
[0].Value
= makeAny (createParameterPair(&aData
));
9001 aPropSequence
[1].Name
= "RangeXMaximum";
9002 EnhancedCustomShapeParameter aParameter
;
9003 Any
aAny ((sal_Int32
) 2147483647);
9004 aParameter
.Value
= aAny
;
9005 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
9006 aPropSequence
[1].Value
= makeAny (aParameter
);
9009 aPropSequence
[2].Name
= "RangeXMinimum";
9010 EnhancedCustomShapeParameter aParameter
;
9011 Any
aAny ((sal_Int32
) -2147483647);
9012 aParameter
.Value
= aAny
;
9013 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
9014 aPropSequence
[2].Value
= makeAny (aParameter
);
9017 aPropSequence
[3].Name
= "RangeYMaximum";
9018 EnhancedCustomShapeParameter aParameter
;
9019 Any
aAny ((sal_Int32
) 2147483647);
9020 aParameter
.Value
= aAny
;
9021 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
9022 aPropSequence
[3].Value
= makeAny (aParameter
);
9025 aPropSequence
[4].Name
= "RangeYMinimum";
9026 EnhancedCustomShapeParameter aParameter
;
9027 Any
aAny ((sal_Int32
) -2147483647);
9028 aParameter
.Value
= aAny
;
9029 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
9030 aPropSequence
[4].Value
= makeAny (aParameter
);
9033 aPropSequence
[5].Name
= "RefX";
9034 Any
aAny ((sal_Int32
) 7);
9035 aPropSequence
[5].Value
= makeAny (aAny
);
9038 aPropSequence
[6].Name
= "RefY";
9039 Any
aAny ((sal_Int32
) 6);
9040 aPropSequence
[6].Value
= makeAny (aAny
);
9042 aPropSequenceSequence
[3] = aPropSequence
;
9044 aPropertyMap
[PROP_Handles
] <<= aPropSequenceSequence
;
9047 aPropertyMap
[PROP_MirroredX
] <<= Any ((sal_Bool
) sal_False
);
9050 aPropertyMap
[PROP_MirroredY
] <<= Any ((sal_Bool
) sal_False
);
9053 Sequence
< PropertyValue
> aPropSequence (3);
9055 aPropSequence
[0].Name
= "Coordinates";
9056 static const CustomShapeProvider::ParameterPairData aData
[] = {
9058 EnhancedCustomShapeParameterType::NORMAL
,
9059 EnhancedCustomShapeParameterType::NORMAL
,
9063 EnhancedCustomShapeParameterType::EQUATION
,
9064 EnhancedCustomShapeParameterType::NORMAL
,
9068 EnhancedCustomShapeParameterType::EQUATION
,
9069 EnhancedCustomShapeParameterType::EQUATION
,
9073 EnhancedCustomShapeParameterType::NORMAL
,
9074 EnhancedCustomShapeParameterType::EQUATION
,
9078 EnhancedCustomShapeParameterType::EQUATION
,
9079 EnhancedCustomShapeParameterType::EQUATION
,
9083 EnhancedCustomShapeParameterType::EQUATION
,
9084 EnhancedCustomShapeParameterType::EQUATION
,
9088 EnhancedCustomShapeParameterType::EQUATION
,
9089 EnhancedCustomShapeParameterType::EQUATION
,
9093 EnhancedCustomShapeParameterType::EQUATION
,
9094 EnhancedCustomShapeParameterType::EQUATION
,
9098 aPropSequence
[0].Value
= makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData
), aData
));
9101 aPropSequence
[1].Name
= "Segments";
9102 static const sal_uInt16 nValues
[] = {
9113 aPropSequence
[1].Value
= makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues
), nValues
));
9116 aPropSequence
[2].Name
= "TextFrames";
9117 Sequence
< EnhancedCustomShapeTextFrame
> aTextFrameSeq (1);
9119 EnhancedCustomShapeTextFrame aTextFrame
;
9121 static const CustomShapeProvider::ParameterPairData aData
=
9123 EnhancedCustomShapeParameterType::NORMAL
,
9124 EnhancedCustomShapeParameterType::NORMAL
,
9127 aTextFrame
.TopLeft
= createParameterPair(&aData
);
9130 static const CustomShapeProvider::ParameterPairData aData
=
9132 EnhancedCustomShapeParameterType::EQUATION
,
9133 EnhancedCustomShapeParameterType::EQUATION
,
9136 aTextFrame
.BottomRight
= createParameterPair(&aData
);
9138 aTextFrameSeq
[0] = aTextFrame
;
9140 aPropSequence
[2].Value
= makeAny (aTextFrameSeq
);
9142 aPropertyMap
[PROP_Path
] <<= aPropSequence
;
9145 awt::Rectangle aRectangle
;
9148 aRectangle
.Width
= 0;
9149 aRectangle
.Height
= 0;
9150 aPropertyMap
[PROP_ViewBox
] <<= aRectangle
;
9152 aPropertyMap
[ PROP_Type
] <<= OUString("ooxml-borderCallout3");
9154 return aPropertyMap
;
9157 class ShapeCupDownArrowCallout
: public CustomShapeProvider
9159 virtual PropertyMap
getProperties()
9161 PropertyMap aPropertyMap
;
9164 Sequence
< EnhancedCustomShapeAdjustmentValue
> aAdjSequence (4);
9166 Any
aAny ((sal_Int32
) 25000);
9167 aAdjSequence
[0].Value
= aAny
;
9168 aAdjSequence
[0].Name
= "adj1";
9171 Any
aAny ((sal_Int32
) 25000);
9172 aAdjSequence
[1].Value
= aAny
;
9173 aAdjSequence
[1].Name
= "adj2";
9176 Any
aAny ((sal_Int32
) 25000);
9177 aAdjSequence
[2].Value
= aAny
;
9178 aAdjSequence
[2].Name
= "adj3";
9181 Any
aAny ((sal_Int32
) 48123);
9182 aAdjSequence
[3].Value
= aAny
;
9183 aAdjSequence
[3].Name
= "adj4";
9185 aPropertyMap
[PROP_AdjustmentValues
] <<= aAdjSequence
;
9188 static const char *aStrings
[] = {
9189 "min(logwidth,logheight)",
9190 "50000*logwidth/?0 ",
9191 "if(0-$1 ,0,if(?1 -$1 ,$1 ,?1 ))",
9193 "if(0-$0 ,0,if(?3 -$0 ,$0 ,?3 ))",
9194 "50000*logheight/?0 ",
9195 "if(0-$2 ,0,if(?5 -$2 ,$2 ,?5 ))",
9199 "if(0-$3 ,0,if(?9 -$3 ,$3 ,?9 ))",
9209 "logheight*?10 /200000",
9216 aPropertyMap
[PROP_Equations
] <<= createStringSequence( SAL_N_ELEMENTS( aStrings
), aStrings
);
9219 Sequence
< Sequence
< PropertyValue
> > aPropSequenceSequence (4);
9221 Sequence
< PropertyValue
> aPropSequence (4);
9223 aPropSequence
[0].Name
= "Position";
9224 static const CustomShapeProvider::ParameterPairData aData
=
9226 EnhancedCustomShapeParameterType::EQUATION
,
9227 EnhancedCustomShapeParameterType::EQUATION
,
9230 aPropSequence
[0].Value
= makeAny (createParameterPair(&aData
));
9233 aPropSequence
[1].Name
= "RangeXMaximum";
9234 EnhancedCustomShapeParameter aParameter
;
9235 Any
aAny ((sal_Int32
) 3);
9236 aParameter
.Value
= aAny
;
9237 aParameter
.Type
= EnhancedCustomShapeParameterType::EQUATION
;
9238 aPropSequence
[1].Value
= makeAny (aParameter
);
9241 aPropSequence
[2].Name
= "RangeXMinimum";
9242 EnhancedCustomShapeParameter aParameter
;
9243 Any
aAny ((sal_Int32
) 0);
9244 aParameter
.Value
= aAny
;
9245 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
9246 aPropSequence
[2].Value
= makeAny (aParameter
);
9249 aPropSequence
[3].Name
= "RefX";
9250 Any
aAny ((sal_Int32
) 0);
9251 aPropSequence
[3].Value
= makeAny (aAny
);
9253 aPropSequenceSequence
[0] = aPropSequence
;
9256 Sequence
< PropertyValue
> aPropSequence (4);
9258 aPropSequence
[0].Name
= "Position";
9259 static const CustomShapeProvider::ParameterPairData aData
=
9261 EnhancedCustomShapeParameterType::EQUATION
,
9262 EnhancedCustomShapeParameterType::NORMAL
,
9265 aPropSequence
[0].Value
= makeAny (createParameterPair(&aData
));
9268 aPropSequence
[1].Name
= "RangeXMaximum";
9269 EnhancedCustomShapeParameter aParameter
;
9270 Any
aAny ((sal_Int32
) 1);
9271 aParameter
.Value
= aAny
;
9272 aParameter
.Type
= EnhancedCustomShapeParameterType::EQUATION
;
9273 aPropSequence
[1].Value
= makeAny (aParameter
);
9276 aPropSequence
[2].Name
= "RangeXMinimum";
9277 EnhancedCustomShapeParameter aParameter
;
9278 Any
aAny ((sal_Int32
) 0);
9279 aParameter
.Value
= aAny
;
9280 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
9281 aPropSequence
[2].Value
= makeAny (aParameter
);
9284 aPropSequence
[3].Name
= "RefX";
9285 Any
aAny ((sal_Int32
) 1);
9286 aPropSequence
[3].Value
= makeAny (aAny
);
9288 aPropSequenceSequence
[1] = aPropSequence
;
9291 Sequence
< PropertyValue
> aPropSequence (4);
9293 aPropSequence
[0].Name
= "Position";
9294 static const CustomShapeProvider::ParameterPairData aData
=
9296 EnhancedCustomShapeParameterType::EQUATION
,
9297 EnhancedCustomShapeParameterType::EQUATION
,
9300 aPropSequence
[0].Value
= makeAny (createParameterPair(&aData
));
9303 aPropSequence
[1].Name
= "RangeYMaximum";
9304 EnhancedCustomShapeParameter aParameter
;
9305 Any
aAny ((sal_Int32
) 5);
9306 aParameter
.Value
= aAny
;
9307 aParameter
.Type
= EnhancedCustomShapeParameterType::EQUATION
;
9308 aPropSequence
[1].Value
= makeAny (aParameter
);
9311 aPropSequence
[2].Name
= "RangeYMinimum";
9312 EnhancedCustomShapeParameter aParameter
;
9313 Any
aAny ((sal_Int32
) 0);
9314 aParameter
.Value
= aAny
;
9315 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
9316 aPropSequence
[2].Value
= makeAny (aParameter
);
9319 aPropSequence
[3].Name
= "RefY";
9320 Any
aAny ((sal_Int32
) 2);
9321 aPropSequence
[3].Value
= makeAny (aAny
);
9323 aPropSequenceSequence
[2] = aPropSequence
;
9326 Sequence
< PropertyValue
> aPropSequence (4);
9328 aPropSequence
[0].Name
= "Position";
9329 static const CustomShapeProvider::ParameterPairData aData
=
9331 EnhancedCustomShapeParameterType::NORMAL
,
9332 EnhancedCustomShapeParameterType::EQUATION
,
9335 aPropSequence
[0].Value
= makeAny (createParameterPair(&aData
));
9338 aPropSequence
[1].Name
= "RangeYMaximum";
9339 EnhancedCustomShapeParameter aParameter
;
9340 Any
aAny ((sal_Int32
) 9);
9341 aParameter
.Value
= aAny
;
9342 aParameter
.Type
= EnhancedCustomShapeParameterType::EQUATION
;
9343 aPropSequence
[1].Value
= makeAny (aParameter
);
9346 aPropSequence
[2].Name
= "RangeYMinimum";
9347 EnhancedCustomShapeParameter aParameter
;
9348 Any
aAny ((sal_Int32
) 0);
9349 aParameter
.Value
= aAny
;
9350 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
9351 aPropSequence
[2].Value
= makeAny (aParameter
);
9354 aPropSequence
[3].Name
= "RefY";
9355 Any
aAny ((sal_Int32
) 3);
9356 aPropSequence
[3].Value
= makeAny (aAny
);
9358 aPropSequenceSequence
[3] = aPropSequence
;
9360 aPropertyMap
[PROP_Handles
] <<= aPropSequenceSequence
;
9363 aPropertyMap
[PROP_MirroredX
] <<= Any ((sal_Bool
) sal_False
);
9366 aPropertyMap
[PROP_MirroredY
] <<= Any ((sal_Bool
) sal_False
);
9369 Sequence
< PropertyValue
> aPropSequence (3);
9371 aPropSequence
[0].Name
= "Coordinates";
9372 static const CustomShapeProvider::ParameterPairData aData
[] = {
9374 EnhancedCustomShapeParameterType::NORMAL
,
9375 EnhancedCustomShapeParameterType::EQUATION
,
9379 EnhancedCustomShapeParameterType::EQUATION
,
9380 EnhancedCustomShapeParameterType::EQUATION
,
9384 EnhancedCustomShapeParameterType::EQUATION
,
9385 EnhancedCustomShapeParameterType::EQUATION
,
9389 EnhancedCustomShapeParameterType::EQUATION
,
9390 EnhancedCustomShapeParameterType::EQUATION
,
9394 EnhancedCustomShapeParameterType::EQUATION
,
9395 EnhancedCustomShapeParameterType::NORMAL
,
9399 EnhancedCustomShapeParameterType::EQUATION
,
9400 EnhancedCustomShapeParameterType::EQUATION
,
9404 EnhancedCustomShapeParameterType::EQUATION
,
9405 EnhancedCustomShapeParameterType::EQUATION
,
9409 EnhancedCustomShapeParameterType::EQUATION
,
9410 EnhancedCustomShapeParameterType::EQUATION
,
9414 EnhancedCustomShapeParameterType::EQUATION
,
9415 EnhancedCustomShapeParameterType::EQUATION
,
9419 EnhancedCustomShapeParameterType::EQUATION
,
9420 EnhancedCustomShapeParameterType::EQUATION
,
9424 EnhancedCustomShapeParameterType::EQUATION
,
9425 EnhancedCustomShapeParameterType::EQUATION
,
9429 EnhancedCustomShapeParameterType::EQUATION
,
9430 EnhancedCustomShapeParameterType::EQUATION
,
9434 EnhancedCustomShapeParameterType::EQUATION
,
9435 EnhancedCustomShapeParameterType::EQUATION
,
9439 EnhancedCustomShapeParameterType::EQUATION
,
9440 EnhancedCustomShapeParameterType::EQUATION
,
9444 EnhancedCustomShapeParameterType::EQUATION
,
9445 EnhancedCustomShapeParameterType::EQUATION
,
9449 EnhancedCustomShapeParameterType::EQUATION
,
9450 EnhancedCustomShapeParameterType::EQUATION
,
9454 EnhancedCustomShapeParameterType::EQUATION
,
9455 EnhancedCustomShapeParameterType::EQUATION
,
9459 EnhancedCustomShapeParameterType::NORMAL
,
9460 EnhancedCustomShapeParameterType::EQUATION
,
9464 aPropSequence
[0].Value
= makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData
), aData
));
9467 aPropSequence
[1].Name
= "Segments";
9468 static const sal_uInt16 nValues
[] = {
9475 aPropSequence
[1].Value
= makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues
), nValues
));
9478 aPropSequence
[2].Name
= "TextFrames";
9479 Sequence
< EnhancedCustomShapeTextFrame
> aTextFrameSeq (1);
9481 EnhancedCustomShapeTextFrame aTextFrame
;
9483 static const CustomShapeProvider::ParameterPairData aData
=
9485 EnhancedCustomShapeParameterType::NORMAL
,
9486 EnhancedCustomShapeParameterType::EQUATION
,
9489 aTextFrame
.TopLeft
= createParameterPair(&aData
);
9492 static const CustomShapeProvider::ParameterPairData aData
=
9494 EnhancedCustomShapeParameterType::EQUATION
,
9495 EnhancedCustomShapeParameterType::EQUATION
,
9498 aTextFrame
.BottomRight
= createParameterPair(&aData
);
9500 aTextFrameSeq
[0] = aTextFrame
;
9502 aPropSequence
[2].Value
= makeAny (aTextFrameSeq
);
9504 aPropertyMap
[PROP_Path
] <<= aPropSequence
;
9507 awt::Rectangle aRectangle
;
9510 aRectangle
.Width
= 0;
9511 aRectangle
.Height
= 0;
9512 aPropertyMap
[PROP_ViewBox
] <<= aRectangle
;
9514 aPropertyMap
[ PROP_Type
] <<= OUString("ooxml-upDownArrowCallout");
9516 return aPropertyMap
;
9519 class ShapeCflowChartDecision
: public CustomShapeProvider
9521 virtual PropertyMap
getProperties()
9523 PropertyMap aPropertyMap
;
9526 aPropertyMap
[PROP_AdjustmentValues
] <<= Sequence
< OUString
>(0);
9529 static const char *aStrings
[] = {
9539 aPropertyMap
[PROP_Equations
] <<= createStringSequence( SAL_N_ELEMENTS( aStrings
), aStrings
);
9542 aPropertyMap
[PROP_Handles
] <<= Sequence
< OUString
>(0);
9545 aPropertyMap
[PROP_MirroredX
] <<= Any ((sal_Bool
) sal_False
);
9548 aPropertyMap
[PROP_MirroredY
] <<= Any ((sal_Bool
) sal_False
);
9551 Sequence
< PropertyValue
> aPropSequence (4);
9553 aPropSequence
[0].Name
= "Coordinates";
9554 static const CustomShapeProvider::ParameterPairData aData
[] = {
9556 EnhancedCustomShapeParameterType::NORMAL
,
9557 EnhancedCustomShapeParameterType::NORMAL
,
9561 EnhancedCustomShapeParameterType::NORMAL
,
9562 EnhancedCustomShapeParameterType::NORMAL
,
9566 EnhancedCustomShapeParameterType::NORMAL
,
9567 EnhancedCustomShapeParameterType::NORMAL
,
9571 EnhancedCustomShapeParameterType::NORMAL
,
9572 EnhancedCustomShapeParameterType::NORMAL
,
9576 aPropSequence
[0].Value
= makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData
), aData
));
9579 aPropSequence
[1].Name
= "Segments";
9580 static const sal_uInt16 nValues
[] = {
9587 aPropSequence
[1].Value
= makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues
), nValues
));
9590 aPropSequence
[2].Name
= "SubViewSize";
9591 Sequence
< awt::Size
> aSizeSequence (1);
9596 aSizeSequence
[0] = aSize
;
9598 aPropSequence
[2].Value
= makeAny (aSizeSequence
);
9601 aPropSequence
[3].Name
= "TextFrames";
9602 Sequence
< EnhancedCustomShapeTextFrame
> aTextFrameSeq (1);
9604 EnhancedCustomShapeTextFrame aTextFrame
;
9606 static const CustomShapeProvider::ParameterPairData aData
=
9608 EnhancedCustomShapeParameterType::EQUATION
,
9609 EnhancedCustomShapeParameterType::EQUATION
,
9612 aTextFrame
.TopLeft
= createParameterPair(&aData
);
9615 static const CustomShapeProvider::ParameterPairData aData
=
9617 EnhancedCustomShapeParameterType::EQUATION
,
9618 EnhancedCustomShapeParameterType::EQUATION
,
9621 aTextFrame
.BottomRight
= createParameterPair(&aData
);
9623 aTextFrameSeq
[0] = aTextFrame
;
9625 aPropSequence
[3].Value
= makeAny (aTextFrameSeq
);
9627 aPropertyMap
[PROP_Path
] <<= aPropSequence
;
9630 awt::Rectangle aRectangle
;
9633 aRectangle
.Width
= 0;
9634 aRectangle
.Height
= 0;
9635 aPropertyMap
[PROP_ViewBox
] <<= aRectangle
;
9637 aPropertyMap
[ PROP_Type
] <<= OUString("ooxml-flowChartDecision");
9639 return aPropertyMap
;
9642 } // anonymous namespace
9643 void CustomShapeProperties::initializePresetsMap1()
9645 maPresetsMap
[ StaticTokenMap::get().getTokenFromUnicode( "actionButtonSound" ) ] = new ShapeCactionButtonSound();
9646 maPresetsMap
[ StaticTokenMap::get().getTokenFromUnicode( "borderCallout1" ) ] = new ShapeCborderCallout1();
9647 maPresetsMap
[ StaticTokenMap::get().getTokenFromUnicode( "plaqueTabs" ) ] = new ShapeCplaqueTabs();
9648 maPresetsMap
[ StaticTokenMap::get().getTokenFromUnicode( "curvedLeftArrow" ) ] = new ShapeCcurvedLeftArrow();
9649 maPresetsMap
[ StaticTokenMap::get().getTokenFromUnicode( "octagon" ) ] = new ShapeCoctagon();
9650 maPresetsMap
[ StaticTokenMap::get().getTokenFromUnicode( "leftRightRibbon" ) ] = new ShapeCleftRightRibbon();
9651 maPresetsMap
[ StaticTokenMap::get().getTokenFromUnicode( "actionButtonInformation" ) ] = new ShapeCactionButtonInformation();
9652 maPresetsMap
[ StaticTokenMap::get().getTokenFromUnicode( "bentConnector5" ) ] = new ShapeCbentConnector5();
9653 maPresetsMap
[ StaticTokenMap::get().getTokenFromUnicode( "circularArrow" ) ] = new ShapeCcircularArrow();
9654 maPresetsMap
[ StaticTokenMap::get().getTokenFromUnicode( "downArrowCallout" ) ] = new ShapeCdownArrowCallout();
9655 maPresetsMap
[ StaticTokenMap::get().getTokenFromUnicode( "mathMinus" ) ] = new ShapeCmathMinus();
9656 maPresetsMap
[ StaticTokenMap::get().getTokenFromUnicode( "gear9" ) ] = new ShapeCgear9();
9657 maPresetsMap
[ StaticTokenMap::get().getTokenFromUnicode( "round1Rect" ) ] = new ShapeCround1Rect();
9658 maPresetsMap
[ StaticTokenMap::get().getTokenFromUnicode( "sun" ) ] = new ShapeCsun();
9659 maPresetsMap
[ StaticTokenMap::get().getTokenFromUnicode( "plaque" ) ] = new ShapeCplaque();
9660 maPresetsMap
[ StaticTokenMap::get().getTokenFromUnicode( "chevron" ) ] = new ShapeCchevron();
9661 maPresetsMap
[ StaticTokenMap::get().getTokenFromUnicode( "flowChartPreparation" ) ] = new ShapeCflowChartPreparation();
9662 maPresetsMap
[ StaticTokenMap::get().getTokenFromUnicode( "diagStripe" ) ] = new ShapeCdiagStripe();
9663 maPresetsMap
[ StaticTokenMap::get().getTokenFromUnicode( "pentagon" ) ] = new ShapeCpentagon();
9664 maPresetsMap
[ StaticTokenMap::get().getTokenFromUnicode( "funnel" ) ] = new ShapeCfunnel();
9665 maPresetsMap
[ StaticTokenMap::get().getTokenFromUnicode( "chartStar" ) ] = new ShapeCchartStar();
9666 maPresetsMap
[ StaticTokenMap::get().getTokenFromUnicode( "accentBorderCallout1" ) ] = new ShapeCaccentBorderCallout1();
9667 maPresetsMap
[ StaticTokenMap::get().getTokenFromUnicode( "notchedRightArrow" ) ] = new ShapeCnotchedRightArrow();
9668 maPresetsMap
[ StaticTokenMap::get().getTokenFromUnicode( "rightBracket" ) ] = new ShapeCrightBracket();
9669 maPresetsMap
[ StaticTokenMap::get().getTokenFromUnicode( "flowChartOffpageConnector" ) ] = new ShapeCflowChartOffpageConnector();
9670 maPresetsMap
[ StaticTokenMap::get().getTokenFromUnicode( "leftRightArrow" ) ] = new ShapeCleftRightArrow();
9671 maPresetsMap
[ StaticTokenMap::get().getTokenFromUnicode( "decagon" ) ] = new ShapeCdecagon();
9672 maPresetsMap
[ StaticTokenMap::get().getTokenFromUnicode( "actionButtonHelp" ) ] = new ShapeCactionButtonHelp();
9673 maPresetsMap
[ StaticTokenMap::get().getTokenFromUnicode( "star24" ) ] = new ShapeCstar24();
9674 maPresetsMap
[ StaticTokenMap::get().getTokenFromUnicode( "mathDivide" ) ] = new ShapeCmathDivide();
9675 maPresetsMap
[ StaticTokenMap::get().getTokenFromUnicode( "curvedConnector4" ) ] = new ShapeCcurvedConnector4();
9676 maPresetsMap
[ StaticTokenMap::get().getTokenFromUnicode( "flowChartOr" ) ] = new ShapeCflowChartOr();
9677 maPresetsMap
[ StaticTokenMap::get().getTokenFromUnicode( "borderCallout3" ) ] = new ShapeCborderCallout3();
9678 maPresetsMap
[ StaticTokenMap::get().getTokenFromUnicode( "upDownArrowCallout" ) ] = new ShapeCupDownArrowCallout();
9679 maPresetsMap
[ StaticTokenMap::get().getTokenFromUnicode( "flowChartDecision" ) ] = new ShapeCflowChartDecision();
9682 } } // oox // drawingml