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 ShapeCteardrop
: public CustomShapeProvider
24 virtual PropertyMap
getProperties()
26 PropertyMap aPropertyMap
;
29 Sequence
< EnhancedCustomShapeAdjustmentValue
> aAdjSequence (1);
31 Any
aAny ((sal_Int32
) 100000);
32 aAdjSequence
[0].Value
= aAny
;
33 aAdjSequence
[0].Name
= "adj";
35 aPropertyMap
[PROP_AdjustmentValues
] <<= aAdjSequence
;
38 static const char *aStrings
[] = {
39 "if(0-$0 ,0,if(200000-$0 ,$0 ,200000))",
47 "?6 *cos(pi*(2700000)/10800000)",
48 "?7 *sin(pi*(2700000)/10800000)",
55 "?2 *cos(pi*(2700000)/10800000)",
56 "?4 *sin(pi*(2700000)/10800000)",
70 aPropertyMap
[PROP_Equations
] <<= createStringSequence( SAL_N_ELEMENTS( aStrings
), aStrings
);
73 Sequence
< Sequence
< PropertyValue
> > aPropSequenceSequence (1);
75 Sequence
< PropertyValue
> aPropSequence (4);
77 aPropSequence
[0].Name
= "Position";
78 static const CustomShapeProvider::ParameterPairData aData
=
80 EnhancedCustomShapeParameterType::EQUATION
,
81 EnhancedCustomShapeParameterType::NORMAL
,
84 aPropSequence
[0].Value
= makeAny (createParameterPair(&aData
));
87 aPropSequence
[1].Name
= "RangeXMaximum";
88 EnhancedCustomShapeParameter aParameter
;
89 Any
aAny ((sal_Int32
) 200000);
90 aParameter
.Value
= aAny
;
91 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
92 aPropSequence
[1].Value
= makeAny (aParameter
);
95 aPropSequence
[2].Name
= "RangeXMinimum";
96 EnhancedCustomShapeParameter aParameter
;
97 Any
aAny ((sal_Int32
) 0);
98 aParameter
.Value
= aAny
;
99 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
100 aPropSequence
[2].Value
= makeAny (aParameter
);
103 aPropSequence
[3].Name
= "RefX";
104 Any
aAny ((sal_Int32
) 0);
105 aPropSequence
[3].Value
= makeAny (aAny
);
107 aPropSequenceSequence
[0] = aPropSequence
;
109 aPropertyMap
[PROP_Handles
] <<= aPropSequenceSequence
;
112 aPropertyMap
[PROP_MirroredX
] <<= Any ((sal_Bool
) sal_False
);
115 aPropertyMap
[PROP_MirroredY
] <<= Any ((sal_Bool
) sal_False
);
118 Sequence
< PropertyValue
> aPropSequence (3);
120 aPropSequence
[0].Name
= "Coordinates";
121 static const CustomShapeProvider::ParameterPairData aData
[] = {
123 EnhancedCustomShapeParameterType::NORMAL
,
124 EnhancedCustomShapeParameterType::EQUATION
,
128 EnhancedCustomShapeParameterType::EQUATION
,
129 EnhancedCustomShapeParameterType::EQUATION
,
133 EnhancedCustomShapeParameterType::EQUATION
,
134 EnhancedCustomShapeParameterType::EQUATION
,
138 EnhancedCustomShapeParameterType::EQUATION
,
139 EnhancedCustomShapeParameterType::NORMAL
,
143 EnhancedCustomShapeParameterType::EQUATION
,
144 EnhancedCustomShapeParameterType::EQUATION
,
148 EnhancedCustomShapeParameterType::EQUATION
,
149 EnhancedCustomShapeParameterType::EQUATION
,
153 EnhancedCustomShapeParameterType::EQUATION
,
154 EnhancedCustomShapeParameterType::EQUATION
,
158 EnhancedCustomShapeParameterType::EQUATION
,
159 EnhancedCustomShapeParameterType::EQUATION
,
163 EnhancedCustomShapeParameterType::EQUATION
,
164 EnhancedCustomShapeParameterType::EQUATION
,
168 EnhancedCustomShapeParameterType::EQUATION
,
169 EnhancedCustomShapeParameterType::EQUATION
,
173 EnhancedCustomShapeParameterType::EQUATION
,
174 EnhancedCustomShapeParameterType::EQUATION
,
178 aPropSequence
[0].Value
= makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData
), aData
));
181 aPropSequence
[1].Name
= "Segments";
182 static const sal_uInt16 nValues
[] = {
191 aPropSequence
[1].Value
= makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues
), nValues
));
194 aPropSequence
[2].Name
= "TextFrames";
195 Sequence
< EnhancedCustomShapeTextFrame
> aTextFrameSeq (1);
197 EnhancedCustomShapeTextFrame aTextFrame
;
199 static const CustomShapeProvider::ParameterPairData aData
=
201 EnhancedCustomShapeParameterType::EQUATION
,
202 EnhancedCustomShapeParameterType::EQUATION
,
205 aTextFrame
.TopLeft
= createParameterPair(&aData
);
208 static const CustomShapeProvider::ParameterPairData aData
=
210 EnhancedCustomShapeParameterType::EQUATION
,
211 EnhancedCustomShapeParameterType::EQUATION
,
214 aTextFrame
.BottomRight
= createParameterPair(&aData
);
216 aTextFrameSeq
[0] = aTextFrame
;
218 aPropSequence
[2].Value
= makeAny (aTextFrameSeq
);
220 aPropertyMap
[PROP_Path
] <<= aPropSequence
;
223 awt::Rectangle aRectangle
;
226 aRectangle
.Width
= 0;
227 aRectangle
.Height
= 0;
228 aPropertyMap
[PROP_ViewBox
] <<= aRectangle
;
230 aPropertyMap
[ PROP_Type
] <<= OUString("ooxml-teardrop");
235 class ShapeCflowChartDocument
: public CustomShapeProvider
237 virtual PropertyMap
getProperties()
239 PropertyMap aPropertyMap
;
242 aPropertyMap
[PROP_AdjustmentValues
] <<= Sequence
< OUString
>(0);
245 static const char *aStrings
[] = {
246 "logheight*17322/21600",
247 "logheight*20172/21600",
252 aPropertyMap
[PROP_Equations
] <<= createStringSequence( SAL_N_ELEMENTS( aStrings
), aStrings
);
255 aPropertyMap
[PROP_Handles
] <<= Sequence
< OUString
>(0);
258 aPropertyMap
[PROP_MirroredX
] <<= Any ((sal_Bool
) sal_False
);
261 aPropertyMap
[PROP_MirroredY
] <<= Any ((sal_Bool
) sal_False
);
264 Sequence
< PropertyValue
> aPropSequence (4);
266 aPropSequence
[0].Name
= "Coordinates";
267 static const CustomShapeProvider::ParameterPairData aData
[] = {
269 EnhancedCustomShapeParameterType::NORMAL
,
270 EnhancedCustomShapeParameterType::NORMAL
,
274 EnhancedCustomShapeParameterType::NORMAL
,
275 EnhancedCustomShapeParameterType::NORMAL
,
279 EnhancedCustomShapeParameterType::NORMAL
,
280 EnhancedCustomShapeParameterType::NORMAL
,
284 EnhancedCustomShapeParameterType::NORMAL
,
285 EnhancedCustomShapeParameterType::NORMAL
,
289 EnhancedCustomShapeParameterType::NORMAL
,
290 EnhancedCustomShapeParameterType::NORMAL
,
294 EnhancedCustomShapeParameterType::NORMAL
,
295 EnhancedCustomShapeParameterType::NORMAL
,
299 aPropSequence
[0].Value
= makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData
), aData
));
302 aPropSequence
[1].Name
= "Segments";
303 static const sal_uInt16 nValues
[] = {
311 aPropSequence
[1].Value
= makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues
), nValues
));
314 aPropSequence
[2].Name
= "SubViewSize";
315 Sequence
< awt::Size
> aSizeSequence (1);
319 aSize
.Height
= 21600;
320 aSizeSequence
[0] = aSize
;
322 aPropSequence
[2].Value
= makeAny (aSizeSequence
);
325 aPropSequence
[3].Name
= "TextFrames";
326 Sequence
< EnhancedCustomShapeTextFrame
> aTextFrameSeq (1);
328 EnhancedCustomShapeTextFrame aTextFrame
;
330 static const CustomShapeProvider::ParameterPairData aData
=
332 EnhancedCustomShapeParameterType::NORMAL
,
333 EnhancedCustomShapeParameterType::NORMAL
,
336 aTextFrame
.TopLeft
= createParameterPair(&aData
);
339 static const CustomShapeProvider::ParameterPairData aData
=
341 EnhancedCustomShapeParameterType::EQUATION
,
342 EnhancedCustomShapeParameterType::EQUATION
,
345 aTextFrame
.BottomRight
= createParameterPair(&aData
);
347 aTextFrameSeq
[0] = aTextFrame
;
349 aPropSequence
[3].Value
= makeAny (aTextFrameSeq
);
351 aPropertyMap
[PROP_Path
] <<= aPropSequence
;
354 awt::Rectangle aRectangle
;
357 aRectangle
.Width
= 0;
358 aRectangle
.Height
= 0;
359 aPropertyMap
[PROP_ViewBox
] <<= aRectangle
;
361 aPropertyMap
[ PROP_Type
] <<= OUString("ooxml-flowChartDocument");
366 class ShapeCrightArrowCallout
: public CustomShapeProvider
368 virtual PropertyMap
getProperties()
370 PropertyMap aPropertyMap
;
373 Sequence
< EnhancedCustomShapeAdjustmentValue
> aAdjSequence (4);
375 Any
aAny ((sal_Int32
) 25000);
376 aAdjSequence
[0].Value
= aAny
;
377 aAdjSequence
[0].Name
= "adj1";
380 Any
aAny ((sal_Int32
) 25000);
381 aAdjSequence
[1].Value
= aAny
;
382 aAdjSequence
[1].Name
= "adj2";
385 Any
aAny ((sal_Int32
) 25000);
386 aAdjSequence
[2].Value
= aAny
;
387 aAdjSequence
[2].Name
= "adj3";
390 Any
aAny ((sal_Int32
) 64977);
391 aAdjSequence
[3].Value
= aAny
;
392 aAdjSequence
[3].Name
= "adj4";
394 aPropertyMap
[PROP_AdjustmentValues
] <<= aAdjSequence
;
397 static const char *aStrings
[] = {
398 "min(logwidth,logheight)",
399 "50000*logheight/?0 ",
400 "if(0-$1 ,0,if(?1 -$1 ,$1 ,?1 ))",
402 "if(0-$0 ,0,if(?3 -$0 ,$0 ,?3 ))",
403 "100000*logwidth/?0 ",
404 "if(0-$2 ,0,if(?5 -$2 ,$2 ,?5 ))",
407 "if(0-$3 ,0,if(?8 -$3 ,$3 ,?8 ))",
417 "logwidth*?9 /100000",
422 aPropertyMap
[PROP_Equations
] <<= createStringSequence( SAL_N_ELEMENTS( aStrings
), aStrings
);
425 Sequence
< Sequence
< PropertyValue
> > aPropSequenceSequence (4);
427 Sequence
< PropertyValue
> aPropSequence (4);
429 aPropSequence
[0].Name
= "Position";
430 static const CustomShapeProvider::ParameterPairData aData
=
432 EnhancedCustomShapeParameterType::EQUATION
,
433 EnhancedCustomShapeParameterType::EQUATION
,
436 aPropSequence
[0].Value
= makeAny (createParameterPair(&aData
));
439 aPropSequence
[1].Name
= "RangeYMaximum";
440 EnhancedCustomShapeParameter aParameter
;
441 Any
aAny ((sal_Int32
) 3);
442 aParameter
.Value
= aAny
;
443 aParameter
.Type
= EnhancedCustomShapeParameterType::EQUATION
;
444 aPropSequence
[1].Value
= makeAny (aParameter
);
447 aPropSequence
[2].Name
= "RangeYMinimum";
448 EnhancedCustomShapeParameter aParameter
;
449 Any
aAny ((sal_Int32
) 0);
450 aParameter
.Value
= aAny
;
451 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
452 aPropSequence
[2].Value
= makeAny (aParameter
);
455 aPropSequence
[3].Name
= "RefY";
456 Any
aAny ((sal_Int32
) 0);
457 aPropSequence
[3].Value
= makeAny (aAny
);
459 aPropSequenceSequence
[0] = aPropSequence
;
462 Sequence
< PropertyValue
> aPropSequence (4);
464 aPropSequence
[0].Name
= "Position";
465 static const CustomShapeProvider::ParameterPairData aData
=
467 EnhancedCustomShapeParameterType::EQUATION
,
468 EnhancedCustomShapeParameterType::EQUATION
,
471 aPropSequence
[0].Value
= makeAny (createParameterPair(&aData
));
474 aPropSequence
[1].Name
= "RangeYMaximum";
475 EnhancedCustomShapeParameter aParameter
;
476 Any
aAny ((sal_Int32
) 1);
477 aParameter
.Value
= aAny
;
478 aParameter
.Type
= EnhancedCustomShapeParameterType::EQUATION
;
479 aPropSequence
[1].Value
= makeAny (aParameter
);
482 aPropSequence
[2].Name
= "RangeYMinimum";
483 EnhancedCustomShapeParameter aParameter
;
484 Any
aAny ((sal_Int32
) 0);
485 aParameter
.Value
= aAny
;
486 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
487 aPropSequence
[2].Value
= makeAny (aParameter
);
490 aPropSequence
[3].Name
= "RefY";
491 Any
aAny ((sal_Int32
) 1);
492 aPropSequence
[3].Value
= makeAny (aAny
);
494 aPropSequenceSequence
[1] = aPropSequence
;
497 Sequence
< PropertyValue
> aPropSequence (4);
499 aPropSequence
[0].Name
= "Position";
500 static const CustomShapeProvider::ParameterPairData aData
=
502 EnhancedCustomShapeParameterType::EQUATION
,
503 EnhancedCustomShapeParameterType::NORMAL
,
506 aPropSequence
[0].Value
= makeAny (createParameterPair(&aData
));
509 aPropSequence
[1].Name
= "RangeXMaximum";
510 EnhancedCustomShapeParameter aParameter
;
511 Any
aAny ((sal_Int32
) 5);
512 aParameter
.Value
= aAny
;
513 aParameter
.Type
= EnhancedCustomShapeParameterType::EQUATION
;
514 aPropSequence
[1].Value
= makeAny (aParameter
);
517 aPropSequence
[2].Name
= "RangeXMinimum";
518 EnhancedCustomShapeParameter aParameter
;
519 Any
aAny ((sal_Int32
) 0);
520 aParameter
.Value
= aAny
;
521 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
522 aPropSequence
[2].Value
= makeAny (aParameter
);
525 aPropSequence
[3].Name
= "RefX";
526 Any
aAny ((sal_Int32
) 2);
527 aPropSequence
[3].Value
= makeAny (aAny
);
529 aPropSequenceSequence
[2] = aPropSequence
;
532 Sequence
< PropertyValue
> aPropSequence (4);
534 aPropSequence
[0].Name
= "Position";
535 static const CustomShapeProvider::ParameterPairData aData
=
537 EnhancedCustomShapeParameterType::EQUATION
,
538 EnhancedCustomShapeParameterType::EQUATION
,
541 aPropSequence
[0].Value
= makeAny (createParameterPair(&aData
));
544 aPropSequence
[1].Name
= "RangeXMaximum";
545 EnhancedCustomShapeParameter aParameter
;
546 Any
aAny ((sal_Int32
) 8);
547 aParameter
.Value
= aAny
;
548 aParameter
.Type
= EnhancedCustomShapeParameterType::EQUATION
;
549 aPropSequence
[1].Value
= makeAny (aParameter
);
552 aPropSequence
[2].Name
= "RangeXMinimum";
553 EnhancedCustomShapeParameter aParameter
;
554 Any
aAny ((sal_Int32
) 0);
555 aParameter
.Value
= aAny
;
556 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
557 aPropSequence
[2].Value
= makeAny (aParameter
);
560 aPropSequence
[3].Name
= "RefX";
561 Any
aAny ((sal_Int32
) 3);
562 aPropSequence
[3].Value
= makeAny (aAny
);
564 aPropSequenceSequence
[3] = aPropSequence
;
566 aPropertyMap
[PROP_Handles
] <<= aPropSequenceSequence
;
569 aPropertyMap
[PROP_MirroredX
] <<= Any ((sal_Bool
) sal_False
);
572 aPropertyMap
[PROP_MirroredY
] <<= Any ((sal_Bool
) sal_False
);
575 Sequence
< PropertyValue
> aPropSequence (3);
577 aPropSequence
[0].Name
= "Coordinates";
578 static const CustomShapeProvider::ParameterPairData aData
[] = {
580 EnhancedCustomShapeParameterType::NORMAL
,
581 EnhancedCustomShapeParameterType::NORMAL
,
585 EnhancedCustomShapeParameterType::EQUATION
,
586 EnhancedCustomShapeParameterType::NORMAL
,
590 EnhancedCustomShapeParameterType::EQUATION
,
591 EnhancedCustomShapeParameterType::EQUATION
,
595 EnhancedCustomShapeParameterType::EQUATION
,
596 EnhancedCustomShapeParameterType::EQUATION
,
600 EnhancedCustomShapeParameterType::EQUATION
,
601 EnhancedCustomShapeParameterType::EQUATION
,
605 EnhancedCustomShapeParameterType::EQUATION
,
606 EnhancedCustomShapeParameterType::EQUATION
,
610 EnhancedCustomShapeParameterType::EQUATION
,
611 EnhancedCustomShapeParameterType::EQUATION
,
615 EnhancedCustomShapeParameterType::EQUATION
,
616 EnhancedCustomShapeParameterType::EQUATION
,
620 EnhancedCustomShapeParameterType::EQUATION
,
621 EnhancedCustomShapeParameterType::EQUATION
,
625 EnhancedCustomShapeParameterType::EQUATION
,
626 EnhancedCustomShapeParameterType::EQUATION
,
630 EnhancedCustomShapeParameterType::NORMAL
,
631 EnhancedCustomShapeParameterType::EQUATION
,
635 aPropSequence
[0].Value
= makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData
), aData
));
638 aPropSequence
[1].Name
= "Segments";
639 static const sal_uInt16 nValues
[] = {
646 aPropSequence
[1].Value
= makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues
), nValues
));
649 aPropSequence
[2].Name
= "TextFrames";
650 Sequence
< EnhancedCustomShapeTextFrame
> aTextFrameSeq (1);
652 EnhancedCustomShapeTextFrame aTextFrame
;
654 static const CustomShapeProvider::ParameterPairData aData
=
656 EnhancedCustomShapeParameterType::NORMAL
,
657 EnhancedCustomShapeParameterType::NORMAL
,
660 aTextFrame
.TopLeft
= createParameterPair(&aData
);
663 static const CustomShapeProvider::ParameterPairData aData
=
665 EnhancedCustomShapeParameterType::EQUATION
,
666 EnhancedCustomShapeParameterType::EQUATION
,
669 aTextFrame
.BottomRight
= createParameterPair(&aData
);
671 aTextFrameSeq
[0] = aTextFrame
;
673 aPropSequence
[2].Value
= makeAny (aTextFrameSeq
);
675 aPropertyMap
[PROP_Path
] <<= aPropSequence
;
678 awt::Rectangle aRectangle
;
681 aRectangle
.Width
= 0;
682 aRectangle
.Height
= 0;
683 aPropertyMap
[PROP_ViewBox
] <<= aRectangle
;
685 aPropertyMap
[ PROP_Type
] <<= OUString("ooxml-rightArrowCallout");
690 class ShapeCrightBrace
: public CustomShapeProvider
692 virtual PropertyMap
getProperties()
694 PropertyMap aPropertyMap
;
697 Sequence
< EnhancedCustomShapeAdjustmentValue
> aAdjSequence (2);
699 Any
aAny ((sal_Int32
) 8333);
700 aAdjSequence
[0].Value
= aAny
;
701 aAdjSequence
[0].Name
= "adj1";
704 Any
aAny ((sal_Int32
) 50000);
705 aAdjSequence
[1].Value
= aAny
;
706 aAdjSequence
[1].Name
= "adj2";
708 aPropertyMap
[PROP_AdjustmentValues
] <<= aAdjSequence
;
711 static const char *aStrings
[] = {
712 "if(0-$1 ,0,if(100000-$1 ,$1 ,100000))",
716 "min(logwidth,logheight)",
718 "if(0-$0 ,0,if(?5 -$0 ,$0 ,?5 ))",
720 "logheight*?0 /100000",
724 "?11 *cos(pi*(2700000)/10800000)",
725 "?7 *sin(pi*(2700000)/10800000)",
728 "logheight+?13 -?7 ",
732 "(16200000)/60000.0",
734 "(10800000)/60000.0",
735 "(-5400000)/60000.0",
736 "(16200000)/60000.0",
737 "(-5400000)/60000.0",
740 "(16200000)/60000.0",
742 "(10800000)/60000.0",
743 "(-5400000)/60000.0",
744 "(16200000)/60000.0",
745 "(-5400000)/60000.0",
749 aPropertyMap
[PROP_Equations
] <<= createStringSequence( SAL_N_ELEMENTS( aStrings
), aStrings
);
752 Sequence
< Sequence
< PropertyValue
> > aPropSequenceSequence (2);
754 Sequence
< PropertyValue
> aPropSequence (4);
756 aPropSequence
[0].Name
= "Position";
757 static const CustomShapeProvider::ParameterPairData aData
=
759 EnhancedCustomShapeParameterType::EQUATION
,
760 EnhancedCustomShapeParameterType::EQUATION
,
763 aPropSequence
[0].Value
= makeAny (createParameterPair(&aData
));
766 aPropSequence
[1].Name
= "RangeYMaximum";
767 EnhancedCustomShapeParameter aParameter
;
768 Any
aAny ((sal_Int32
) 5);
769 aParameter
.Value
= aAny
;
770 aParameter
.Type
= EnhancedCustomShapeParameterType::EQUATION
;
771 aPropSequence
[1].Value
= makeAny (aParameter
);
774 aPropSequence
[2].Name
= "RangeYMinimum";
775 EnhancedCustomShapeParameter aParameter
;
776 Any
aAny ((sal_Int32
) 0);
777 aParameter
.Value
= aAny
;
778 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
779 aPropSequence
[2].Value
= makeAny (aParameter
);
782 aPropSequence
[3].Name
= "RefY";
783 Any
aAny ((sal_Int32
) 0);
784 aPropSequence
[3].Value
= makeAny (aAny
);
786 aPropSequenceSequence
[0] = aPropSequence
;
789 Sequence
< PropertyValue
> aPropSequence (4);
791 aPropSequence
[0].Name
= "Position";
792 static const CustomShapeProvider::ParameterPairData aData
=
794 EnhancedCustomShapeParameterType::EQUATION
,
795 EnhancedCustomShapeParameterType::EQUATION
,
798 aPropSequence
[0].Value
= makeAny (createParameterPair(&aData
));
801 aPropSequence
[1].Name
= "RangeYMaximum";
802 EnhancedCustomShapeParameter aParameter
;
803 Any
aAny ((sal_Int32
) 100000);
804 aParameter
.Value
= aAny
;
805 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
806 aPropSequence
[1].Value
= makeAny (aParameter
);
809 aPropSequence
[2].Name
= "RangeYMinimum";
810 EnhancedCustomShapeParameter aParameter
;
811 Any
aAny ((sal_Int32
) 0);
812 aParameter
.Value
= aAny
;
813 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
814 aPropSequence
[2].Value
= makeAny (aParameter
);
817 aPropSequence
[3].Name
= "RefY";
818 Any
aAny ((sal_Int32
) 1);
819 aPropSequence
[3].Value
= makeAny (aAny
);
821 aPropSequenceSequence
[1] = aPropSequence
;
823 aPropertyMap
[PROP_Handles
] <<= aPropSequenceSequence
;
826 aPropertyMap
[PROP_MirroredX
] <<= Any ((sal_Bool
) sal_False
);
829 aPropertyMap
[PROP_MirroredY
] <<= Any ((sal_Bool
) sal_False
);
832 Sequence
< PropertyValue
> aPropSequence (3);
834 aPropSequence
[0].Name
= "Coordinates";
835 static const CustomShapeProvider::ParameterPairData aData
[] = {
837 EnhancedCustomShapeParameterType::NORMAL
,
838 EnhancedCustomShapeParameterType::NORMAL
,
842 EnhancedCustomShapeParameterType::EQUATION
,
843 EnhancedCustomShapeParameterType::EQUATION
,
847 EnhancedCustomShapeParameterType::EQUATION
,
848 EnhancedCustomShapeParameterType::EQUATION
,
852 EnhancedCustomShapeParameterType::EQUATION
,
853 EnhancedCustomShapeParameterType::EQUATION
,
857 EnhancedCustomShapeParameterType::EQUATION
,
858 EnhancedCustomShapeParameterType::EQUATION
,
862 EnhancedCustomShapeParameterType::EQUATION
,
863 EnhancedCustomShapeParameterType::EQUATION
,
867 EnhancedCustomShapeParameterType::EQUATION
,
868 EnhancedCustomShapeParameterType::EQUATION
,
872 EnhancedCustomShapeParameterType::EQUATION
,
873 EnhancedCustomShapeParameterType::EQUATION
,
877 EnhancedCustomShapeParameterType::EQUATION
,
878 EnhancedCustomShapeParameterType::EQUATION
,
882 EnhancedCustomShapeParameterType::EQUATION
,
883 EnhancedCustomShapeParameterType::EQUATION
,
887 EnhancedCustomShapeParameterType::EQUATION
,
888 EnhancedCustomShapeParameterType::EQUATION
,
892 EnhancedCustomShapeParameterType::NORMAL
,
893 EnhancedCustomShapeParameterType::NORMAL
,
897 EnhancedCustomShapeParameterType::EQUATION
,
898 EnhancedCustomShapeParameterType::EQUATION
,
902 EnhancedCustomShapeParameterType::EQUATION
,
903 EnhancedCustomShapeParameterType::EQUATION
,
907 EnhancedCustomShapeParameterType::EQUATION
,
908 EnhancedCustomShapeParameterType::EQUATION
,
912 EnhancedCustomShapeParameterType::EQUATION
,
913 EnhancedCustomShapeParameterType::EQUATION
,
917 EnhancedCustomShapeParameterType::EQUATION
,
918 EnhancedCustomShapeParameterType::EQUATION
,
922 EnhancedCustomShapeParameterType::EQUATION
,
923 EnhancedCustomShapeParameterType::EQUATION
,
927 EnhancedCustomShapeParameterType::EQUATION
,
928 EnhancedCustomShapeParameterType::EQUATION
,
932 EnhancedCustomShapeParameterType::EQUATION
,
933 EnhancedCustomShapeParameterType::EQUATION
,
937 EnhancedCustomShapeParameterType::EQUATION
,
938 EnhancedCustomShapeParameterType::EQUATION
,
942 EnhancedCustomShapeParameterType::EQUATION
,
943 EnhancedCustomShapeParameterType::EQUATION
,
947 aPropSequence
[0].Value
= makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData
), aData
));
950 aPropSequence
[1].Name
= "Segments";
951 static const sal_uInt16 nValues
[] = {
971 aPropSequence
[1].Value
= makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues
), nValues
));
974 aPropSequence
[2].Name
= "TextFrames";
975 Sequence
< EnhancedCustomShapeTextFrame
> aTextFrameSeq (1);
977 EnhancedCustomShapeTextFrame aTextFrame
;
979 static const CustomShapeProvider::ParameterPairData aData
=
981 EnhancedCustomShapeParameterType::NORMAL
,
982 EnhancedCustomShapeParameterType::EQUATION
,
985 aTextFrame
.TopLeft
= createParameterPair(&aData
);
988 static const CustomShapeProvider::ParameterPairData aData
=
990 EnhancedCustomShapeParameterType::EQUATION
,
991 EnhancedCustomShapeParameterType::EQUATION
,
994 aTextFrame
.BottomRight
= createParameterPair(&aData
);
996 aTextFrameSeq
[0] = aTextFrame
;
998 aPropSequence
[2].Value
= makeAny (aTextFrameSeq
);
1000 aPropertyMap
[PROP_Path
] <<= aPropSequence
;
1003 awt::Rectangle aRectangle
;
1006 aRectangle
.Width
= 0;
1007 aRectangle
.Height
= 0;
1008 aPropertyMap
[PROP_ViewBox
] <<= aRectangle
;
1010 aPropertyMap
[ PROP_Type
] <<= OUString("ooxml-rightBrace");
1012 return aPropertyMap
;
1015 class ShapeCchartPlus
: public CustomShapeProvider
1017 virtual PropertyMap
getProperties()
1019 PropertyMap aPropertyMap
;
1022 aPropertyMap
[PROP_AdjustmentValues
] <<= Sequence
< OUString
>(0);
1025 aPropertyMap
[PROP_Equations
] <<= Sequence
< OUString
>(0);
1028 aPropertyMap
[PROP_Handles
] <<= Sequence
< OUString
>(0);
1031 aPropertyMap
[PROP_MirroredX
] <<= Any ((sal_Bool
) sal_False
);
1034 aPropertyMap
[PROP_MirroredY
] <<= Any ((sal_Bool
) sal_False
);
1037 Sequence
< PropertyValue
> aPropSequence (3);
1039 aPropSequence
[0].Name
= "Coordinates";
1040 static const CustomShapeProvider::ParameterPairData aData
[] = {
1042 EnhancedCustomShapeParameterType::NORMAL
,
1043 EnhancedCustomShapeParameterType::NORMAL
,
1047 EnhancedCustomShapeParameterType::NORMAL
,
1048 EnhancedCustomShapeParameterType::NORMAL
,
1052 EnhancedCustomShapeParameterType::NORMAL
,
1053 EnhancedCustomShapeParameterType::NORMAL
,
1057 EnhancedCustomShapeParameterType::NORMAL
,
1058 EnhancedCustomShapeParameterType::NORMAL
,
1062 EnhancedCustomShapeParameterType::NORMAL
,
1063 EnhancedCustomShapeParameterType::NORMAL
,
1067 EnhancedCustomShapeParameterType::NORMAL
,
1068 EnhancedCustomShapeParameterType::NORMAL
,
1072 EnhancedCustomShapeParameterType::NORMAL
,
1073 EnhancedCustomShapeParameterType::NORMAL
,
1077 EnhancedCustomShapeParameterType::NORMAL
,
1078 EnhancedCustomShapeParameterType::NORMAL
,
1082 aPropSequence
[0].Value
= makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData
), aData
));
1085 aPropSequence
[1].Name
= "Segments";
1086 static const sal_uInt16 nValues
[] = {
1100 aPropSequence
[1].Value
= makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues
), nValues
));
1103 aPropSequence
[2].Name
= "SubViewSize";
1104 Sequence
< awt::Size
> aSizeSequence (2);
1109 aSizeSequence
[0] = aSize
;
1115 aSizeSequence
[1] = aSize
;
1117 aPropSequence
[2].Value
= makeAny (aSizeSequence
);
1119 aPropertyMap
[PROP_Path
] <<= aPropSequence
;
1122 awt::Rectangle aRectangle
;
1125 aRectangle
.Width
= 0;
1126 aRectangle
.Height
= 0;
1127 aPropertyMap
[PROP_ViewBox
] <<= aRectangle
;
1129 aPropertyMap
[ PROP_Type
] <<= OUString("ooxml-chartPlus");
1131 return aPropertyMap
;
1134 class ShapeCflowChartManualInput
: public CustomShapeProvider
1136 virtual PropertyMap
getProperties()
1138 PropertyMap aPropertyMap
;
1141 aPropertyMap
[PROP_AdjustmentValues
] <<= Sequence
< OUString
>(0);
1144 static const char *aStrings
[] = {
1152 aPropertyMap
[PROP_Equations
] <<= createStringSequence( SAL_N_ELEMENTS( aStrings
), aStrings
);
1155 aPropertyMap
[PROP_Handles
] <<= Sequence
< OUString
>(0);
1158 aPropertyMap
[PROP_MirroredX
] <<= Any ((sal_Bool
) sal_False
);
1161 aPropertyMap
[PROP_MirroredY
] <<= Any ((sal_Bool
) sal_False
);
1164 Sequence
< PropertyValue
> aPropSequence (4);
1166 aPropSequence
[0].Name
= "Coordinates";
1167 static const CustomShapeProvider::ParameterPairData aData
[] = {
1169 EnhancedCustomShapeParameterType::NORMAL
,
1170 EnhancedCustomShapeParameterType::NORMAL
,
1174 EnhancedCustomShapeParameterType::NORMAL
,
1175 EnhancedCustomShapeParameterType::NORMAL
,
1179 EnhancedCustomShapeParameterType::NORMAL
,
1180 EnhancedCustomShapeParameterType::NORMAL
,
1184 EnhancedCustomShapeParameterType::NORMAL
,
1185 EnhancedCustomShapeParameterType::NORMAL
,
1189 aPropSequence
[0].Value
= makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData
), aData
));
1192 aPropSequence
[1].Name
= "Segments";
1193 static const sal_uInt16 nValues
[] = {
1200 aPropSequence
[1].Value
= makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues
), nValues
));
1203 aPropSequence
[2].Name
= "SubViewSize";
1204 Sequence
< awt::Size
> aSizeSequence (1);
1209 aSizeSequence
[0] = aSize
;
1211 aPropSequence
[2].Value
= makeAny (aSizeSequence
);
1214 aPropSequence
[3].Name
= "TextFrames";
1215 Sequence
< EnhancedCustomShapeTextFrame
> aTextFrameSeq (1);
1217 EnhancedCustomShapeTextFrame aTextFrame
;
1219 static const CustomShapeProvider::ParameterPairData aData
=
1221 EnhancedCustomShapeParameterType::NORMAL
,
1222 EnhancedCustomShapeParameterType::EQUATION
,
1225 aTextFrame
.TopLeft
= createParameterPair(&aData
);
1228 static const CustomShapeProvider::ParameterPairData aData
=
1230 EnhancedCustomShapeParameterType::EQUATION
,
1231 EnhancedCustomShapeParameterType::EQUATION
,
1234 aTextFrame
.BottomRight
= createParameterPair(&aData
);
1236 aTextFrameSeq
[0] = aTextFrame
;
1238 aPropSequence
[3].Value
= makeAny (aTextFrameSeq
);
1240 aPropertyMap
[PROP_Path
] <<= aPropSequence
;
1243 awt::Rectangle aRectangle
;
1246 aRectangle
.Width
= 0;
1247 aRectangle
.Height
= 0;
1248 aPropertyMap
[PROP_ViewBox
] <<= aRectangle
;
1250 aPropertyMap
[ PROP_Type
] <<= OUString("ooxml-flowChartManualInput");
1252 return aPropertyMap
;
1255 class ShapeCflowChartMerge
: public CustomShapeProvider
1257 virtual PropertyMap
getProperties()
1259 PropertyMap aPropertyMap
;
1262 aPropertyMap
[PROP_AdjustmentValues
] <<= Sequence
< OUString
>(0);
1265 static const char *aStrings
[] = {
1272 aPropertyMap
[PROP_Equations
] <<= createStringSequence( SAL_N_ELEMENTS( aStrings
), aStrings
);
1275 aPropertyMap
[PROP_Handles
] <<= Sequence
< OUString
>(0);
1278 aPropertyMap
[PROP_MirroredX
] <<= Any ((sal_Bool
) sal_False
);
1281 aPropertyMap
[PROP_MirroredY
] <<= Any ((sal_Bool
) sal_False
);
1284 Sequence
< PropertyValue
> aPropSequence (4);
1286 aPropSequence
[0].Name
= "Coordinates";
1287 static const CustomShapeProvider::ParameterPairData aData
[] = {
1289 EnhancedCustomShapeParameterType::NORMAL
,
1290 EnhancedCustomShapeParameterType::NORMAL
,
1294 EnhancedCustomShapeParameterType::NORMAL
,
1295 EnhancedCustomShapeParameterType::NORMAL
,
1299 EnhancedCustomShapeParameterType::NORMAL
,
1300 EnhancedCustomShapeParameterType::NORMAL
,
1304 aPropSequence
[0].Value
= makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData
), aData
));
1307 aPropSequence
[1].Name
= "Segments";
1308 static const sal_uInt16 nValues
[] = {
1315 aPropSequence
[1].Value
= makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues
), nValues
));
1318 aPropSequence
[2].Name
= "SubViewSize";
1319 Sequence
< awt::Size
> aSizeSequence (1);
1324 aSizeSequence
[0] = aSize
;
1326 aPropSequence
[2].Value
= makeAny (aSizeSequence
);
1329 aPropSequence
[3].Name
= "TextFrames";
1330 Sequence
< EnhancedCustomShapeTextFrame
> aTextFrameSeq (1);
1332 EnhancedCustomShapeTextFrame aTextFrame
;
1334 static const CustomShapeProvider::ParameterPairData aData
=
1336 EnhancedCustomShapeParameterType::EQUATION
,
1337 EnhancedCustomShapeParameterType::NORMAL
,
1340 aTextFrame
.TopLeft
= createParameterPair(&aData
);
1343 static const CustomShapeProvider::ParameterPairData aData
=
1345 EnhancedCustomShapeParameterType::EQUATION
,
1346 EnhancedCustomShapeParameterType::EQUATION
,
1349 aTextFrame
.BottomRight
= createParameterPair(&aData
);
1351 aTextFrameSeq
[0] = aTextFrame
;
1353 aPropSequence
[3].Value
= makeAny (aTextFrameSeq
);
1355 aPropertyMap
[PROP_Path
] <<= aPropSequence
;
1358 awt::Rectangle aRectangle
;
1361 aRectangle
.Width
= 0;
1362 aRectangle
.Height
= 0;
1363 aPropertyMap
[PROP_ViewBox
] <<= aRectangle
;
1365 aPropertyMap
[ PROP_Type
] <<= OUString("ooxml-flowChartMerge");
1367 return aPropertyMap
;
1370 class ShapeCline
: public CustomShapeProvider
1372 virtual PropertyMap
getProperties()
1374 PropertyMap aPropertyMap
;
1377 aPropertyMap
[PROP_AdjustmentValues
] <<= Sequence
< OUString
>(0);
1380 static const char *aStrings
[] = {
1384 aPropertyMap
[PROP_Equations
] <<= createStringSequence( SAL_N_ELEMENTS( aStrings
), aStrings
);
1387 aPropertyMap
[PROP_Handles
] <<= Sequence
< OUString
>(0);
1390 aPropertyMap
[PROP_MirroredX
] <<= Any ((sal_Bool
) sal_False
);
1393 aPropertyMap
[PROP_MirroredY
] <<= Any ((sal_Bool
) sal_False
);
1396 Sequence
< PropertyValue
> aPropSequence (2);
1398 aPropSequence
[0].Name
= "Coordinates";
1399 static const CustomShapeProvider::ParameterPairData aData
[] = {
1401 EnhancedCustomShapeParameterType::NORMAL
,
1402 EnhancedCustomShapeParameterType::NORMAL
,
1406 EnhancedCustomShapeParameterType::EQUATION
,
1407 EnhancedCustomShapeParameterType::EQUATION
,
1411 aPropSequence
[0].Value
= makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData
), aData
));
1414 aPropSequence
[1].Name
= "Segments";
1415 static const sal_uInt16 nValues
[] = {
1421 aPropSequence
[1].Value
= makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues
), nValues
));
1423 aPropertyMap
[PROP_Path
] <<= aPropSequence
;
1426 awt::Rectangle aRectangle
;
1429 aRectangle
.Width
= 0;
1430 aRectangle
.Height
= 0;
1431 aPropertyMap
[PROP_ViewBox
] <<= aRectangle
;
1433 aPropertyMap
[ PROP_Type
] <<= OUString("ooxml-line");
1435 return aPropertyMap
;
1438 class ShapeCdownArrow
: public CustomShapeProvider
1440 virtual PropertyMap
getProperties()
1442 PropertyMap aPropertyMap
;
1445 Sequence
< EnhancedCustomShapeAdjustmentValue
> aAdjSequence (2);
1447 Any
aAny ((sal_Int32
) 50000);
1448 aAdjSequence
[0].Value
= aAny
;
1449 aAdjSequence
[0].Name
= "adj1";
1452 Any
aAny ((sal_Int32
) 50000);
1453 aAdjSequence
[1].Value
= aAny
;
1454 aAdjSequence
[1].Name
= "adj2";
1456 aPropertyMap
[PROP_AdjustmentValues
] <<= aAdjSequence
;
1459 static const char *aStrings
[] = {
1460 "min(logwidth,logheight)",
1461 "100000*logheight/?0 ",
1462 "if(0-$0 ,0,if(100000-$0 ,$0 ,100000))",
1463 "if(0-$1 ,0,if(?1 -$1 ,$1 ,?1 ))",
1466 "logwidth*?2 /200000",
1476 aPropertyMap
[PROP_Equations
] <<= createStringSequence( SAL_N_ELEMENTS( aStrings
), aStrings
);
1479 Sequence
< Sequence
< PropertyValue
> > aPropSequenceSequence (2);
1481 Sequence
< PropertyValue
> aPropSequence (4);
1483 aPropSequence
[0].Name
= "Position";
1484 static const CustomShapeProvider::ParameterPairData aData
=
1486 EnhancedCustomShapeParameterType::EQUATION
,
1487 EnhancedCustomShapeParameterType::NORMAL
,
1490 aPropSequence
[0].Value
= makeAny (createParameterPair(&aData
));
1493 aPropSequence
[1].Name
= "RangeXMaximum";
1494 EnhancedCustomShapeParameter aParameter
;
1495 Any
aAny ((sal_Int32
) 100000);
1496 aParameter
.Value
= aAny
;
1497 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
1498 aPropSequence
[1].Value
= makeAny (aParameter
);
1501 aPropSequence
[2].Name
= "RangeXMinimum";
1502 EnhancedCustomShapeParameter aParameter
;
1503 Any
aAny ((sal_Int32
) 0);
1504 aParameter
.Value
= aAny
;
1505 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
1506 aPropSequence
[2].Value
= makeAny (aParameter
);
1509 aPropSequence
[3].Name
= "RefX";
1510 Any
aAny ((sal_Int32
) 0);
1511 aPropSequence
[3].Value
= makeAny (aAny
);
1513 aPropSequenceSequence
[0] = aPropSequence
;
1516 Sequence
< PropertyValue
> aPropSequence (4);
1518 aPropSequence
[0].Name
= "Position";
1519 static const CustomShapeProvider::ParameterPairData aData
=
1521 EnhancedCustomShapeParameterType::NORMAL
,
1522 EnhancedCustomShapeParameterType::EQUATION
,
1525 aPropSequence
[0].Value
= makeAny (createParameterPair(&aData
));
1528 aPropSequence
[1].Name
= "RangeYMaximum";
1529 EnhancedCustomShapeParameter aParameter
;
1530 Any
aAny ((sal_Int32
) 1);
1531 aParameter
.Value
= aAny
;
1532 aParameter
.Type
= EnhancedCustomShapeParameterType::EQUATION
;
1533 aPropSequence
[1].Value
= makeAny (aParameter
);
1536 aPropSequence
[2].Name
= "RangeYMinimum";
1537 EnhancedCustomShapeParameter aParameter
;
1538 Any
aAny ((sal_Int32
) 0);
1539 aParameter
.Value
= aAny
;
1540 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
1541 aPropSequence
[2].Value
= makeAny (aParameter
);
1544 aPropSequence
[3].Name
= "RefY";
1545 Any
aAny ((sal_Int32
) 1);
1546 aPropSequence
[3].Value
= makeAny (aAny
);
1548 aPropSequenceSequence
[1] = aPropSequence
;
1550 aPropertyMap
[PROP_Handles
] <<= aPropSequenceSequence
;
1553 aPropertyMap
[PROP_MirroredX
] <<= Any ((sal_Bool
) sal_False
);
1556 aPropertyMap
[PROP_MirroredY
] <<= Any ((sal_Bool
) sal_False
);
1559 Sequence
< PropertyValue
> aPropSequence (3);
1561 aPropSequence
[0].Name
= "Coordinates";
1562 static const CustomShapeProvider::ParameterPairData aData
[] = {
1564 EnhancedCustomShapeParameterType::NORMAL
,
1565 EnhancedCustomShapeParameterType::EQUATION
,
1569 EnhancedCustomShapeParameterType::EQUATION
,
1570 EnhancedCustomShapeParameterType::EQUATION
,
1574 EnhancedCustomShapeParameterType::EQUATION
,
1575 EnhancedCustomShapeParameterType::NORMAL
,
1579 EnhancedCustomShapeParameterType::EQUATION
,
1580 EnhancedCustomShapeParameterType::NORMAL
,
1584 EnhancedCustomShapeParameterType::EQUATION
,
1585 EnhancedCustomShapeParameterType::EQUATION
,
1589 EnhancedCustomShapeParameterType::EQUATION
,
1590 EnhancedCustomShapeParameterType::EQUATION
,
1594 EnhancedCustomShapeParameterType::EQUATION
,
1595 EnhancedCustomShapeParameterType::EQUATION
,
1599 aPropSequence
[0].Value
= makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData
), aData
));
1602 aPropSequence
[1].Name
= "Segments";
1603 static const sal_uInt16 nValues
[] = {
1610 aPropSequence
[1].Value
= makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues
), nValues
));
1613 aPropSequence
[2].Name
= "TextFrames";
1614 Sequence
< EnhancedCustomShapeTextFrame
> aTextFrameSeq (1);
1616 EnhancedCustomShapeTextFrame aTextFrame
;
1618 static const CustomShapeProvider::ParameterPairData aData
=
1620 EnhancedCustomShapeParameterType::EQUATION
,
1621 EnhancedCustomShapeParameterType::NORMAL
,
1624 aTextFrame
.TopLeft
= createParameterPair(&aData
);
1627 static const CustomShapeProvider::ParameterPairData aData
=
1629 EnhancedCustomShapeParameterType::EQUATION
,
1630 EnhancedCustomShapeParameterType::EQUATION
,
1633 aTextFrame
.BottomRight
= createParameterPair(&aData
);
1635 aTextFrameSeq
[0] = aTextFrame
;
1637 aPropSequence
[2].Value
= makeAny (aTextFrameSeq
);
1639 aPropertyMap
[PROP_Path
] <<= aPropSequence
;
1642 awt::Rectangle aRectangle
;
1645 aRectangle
.Width
= 0;
1646 aRectangle
.Height
= 0;
1647 aPropertyMap
[PROP_ViewBox
] <<= aRectangle
;
1649 aPropertyMap
[ PROP_Type
] <<= OUString("ooxml-downArrow");
1651 return aPropertyMap
;
1654 class ShapeCupArrow
: public CustomShapeProvider
1656 virtual PropertyMap
getProperties()
1658 PropertyMap aPropertyMap
;
1661 Sequence
< EnhancedCustomShapeAdjustmentValue
> aAdjSequence (2);
1663 Any
aAny ((sal_Int32
) 50000);
1664 aAdjSequence
[0].Value
= aAny
;
1665 aAdjSequence
[0].Name
= "adj1";
1668 Any
aAny ((sal_Int32
) 50000);
1669 aAdjSequence
[1].Value
= aAny
;
1670 aAdjSequence
[1].Name
= "adj2";
1672 aPropertyMap
[PROP_AdjustmentValues
] <<= aAdjSequence
;
1675 static const char *aStrings
[] = {
1676 "min(logwidth,logheight)",
1677 "100000*logheight/?0 ",
1678 "if(0-$0 ,0,if(100000-$0 ,$0 ,100000))",
1679 "if(0-$1 ,0,if(?1 -$1 ,$1 ,?1 ))",
1682 "logwidth*?2 /200000",
1692 aPropertyMap
[PROP_Equations
] <<= createStringSequence( SAL_N_ELEMENTS( aStrings
), aStrings
);
1695 Sequence
< Sequence
< PropertyValue
> > aPropSequenceSequence (2);
1697 Sequence
< PropertyValue
> aPropSequence (4);
1699 aPropSequence
[0].Name
= "Position";
1700 static const CustomShapeProvider::ParameterPairData aData
=
1702 EnhancedCustomShapeParameterType::EQUATION
,
1703 EnhancedCustomShapeParameterType::EQUATION
,
1706 aPropSequence
[0].Value
= makeAny (createParameterPair(&aData
));
1709 aPropSequence
[1].Name
= "RangeXMaximum";
1710 EnhancedCustomShapeParameter aParameter
;
1711 Any
aAny ((sal_Int32
) 100000);
1712 aParameter
.Value
= aAny
;
1713 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
1714 aPropSequence
[1].Value
= makeAny (aParameter
);
1717 aPropSequence
[2].Name
= "RangeXMinimum";
1718 EnhancedCustomShapeParameter aParameter
;
1719 Any
aAny ((sal_Int32
) 0);
1720 aParameter
.Value
= aAny
;
1721 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
1722 aPropSequence
[2].Value
= makeAny (aParameter
);
1725 aPropSequence
[3].Name
= "RefX";
1726 Any
aAny ((sal_Int32
) 0);
1727 aPropSequence
[3].Value
= makeAny (aAny
);
1729 aPropSequenceSequence
[0] = aPropSequence
;
1732 Sequence
< PropertyValue
> aPropSequence (4);
1734 aPropSequence
[0].Name
= "Position";
1735 static const CustomShapeProvider::ParameterPairData aData
=
1737 EnhancedCustomShapeParameterType::NORMAL
,
1738 EnhancedCustomShapeParameterType::EQUATION
,
1741 aPropSequence
[0].Value
= makeAny (createParameterPair(&aData
));
1744 aPropSequence
[1].Name
= "RangeYMaximum";
1745 EnhancedCustomShapeParameter aParameter
;
1746 Any
aAny ((sal_Int32
) 1);
1747 aParameter
.Value
= aAny
;
1748 aParameter
.Type
= EnhancedCustomShapeParameterType::EQUATION
;
1749 aPropSequence
[1].Value
= makeAny (aParameter
);
1752 aPropSequence
[2].Name
= "RangeYMinimum";
1753 EnhancedCustomShapeParameter aParameter
;
1754 Any
aAny ((sal_Int32
) 0);
1755 aParameter
.Value
= aAny
;
1756 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
1757 aPropSequence
[2].Value
= makeAny (aParameter
);
1760 aPropSequence
[3].Name
= "RefY";
1761 Any
aAny ((sal_Int32
) 1);
1762 aPropSequence
[3].Value
= makeAny (aAny
);
1764 aPropSequenceSequence
[1] = aPropSequence
;
1766 aPropertyMap
[PROP_Handles
] <<= aPropSequenceSequence
;
1769 aPropertyMap
[PROP_MirroredX
] <<= Any ((sal_Bool
) sal_False
);
1772 aPropertyMap
[PROP_MirroredY
] <<= Any ((sal_Bool
) sal_False
);
1775 Sequence
< PropertyValue
> aPropSequence (3);
1777 aPropSequence
[0].Name
= "Coordinates";
1778 static const CustomShapeProvider::ParameterPairData aData
[] = {
1780 EnhancedCustomShapeParameterType::EQUATION
,
1781 EnhancedCustomShapeParameterType::EQUATION
,
1785 EnhancedCustomShapeParameterType::NORMAL
,
1786 EnhancedCustomShapeParameterType::EQUATION
,
1790 EnhancedCustomShapeParameterType::EQUATION
,
1791 EnhancedCustomShapeParameterType::NORMAL
,
1795 EnhancedCustomShapeParameterType::EQUATION
,
1796 EnhancedCustomShapeParameterType::EQUATION
,
1800 EnhancedCustomShapeParameterType::EQUATION
,
1801 EnhancedCustomShapeParameterType::EQUATION
,
1805 EnhancedCustomShapeParameterType::EQUATION
,
1806 EnhancedCustomShapeParameterType::EQUATION
,
1810 EnhancedCustomShapeParameterType::EQUATION
,
1811 EnhancedCustomShapeParameterType::EQUATION
,
1815 aPropSequence
[0].Value
= makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData
), aData
));
1818 aPropSequence
[1].Name
= "Segments";
1819 static const sal_uInt16 nValues
[] = {
1826 aPropSequence
[1].Value
= makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues
), nValues
));
1829 aPropSequence
[2].Name
= "TextFrames";
1830 Sequence
< EnhancedCustomShapeTextFrame
> aTextFrameSeq (1);
1832 EnhancedCustomShapeTextFrame aTextFrame
;
1834 static const CustomShapeProvider::ParameterPairData aData
=
1836 EnhancedCustomShapeParameterType::EQUATION
,
1837 EnhancedCustomShapeParameterType::EQUATION
,
1840 aTextFrame
.TopLeft
= createParameterPair(&aData
);
1843 static const CustomShapeProvider::ParameterPairData aData
=
1845 EnhancedCustomShapeParameterType::EQUATION
,
1846 EnhancedCustomShapeParameterType::EQUATION
,
1849 aTextFrame
.BottomRight
= createParameterPair(&aData
);
1851 aTextFrameSeq
[0] = aTextFrame
;
1853 aPropSequence
[2].Value
= makeAny (aTextFrameSeq
);
1855 aPropertyMap
[PROP_Path
] <<= aPropSequence
;
1858 awt::Rectangle aRectangle
;
1861 aRectangle
.Width
= 0;
1862 aRectangle
.Height
= 0;
1863 aPropertyMap
[PROP_ViewBox
] <<= aRectangle
;
1865 aPropertyMap
[ PROP_Type
] <<= OUString("ooxml-upArrow");
1867 return aPropertyMap
;
1870 class ShapeCcurvedDownArrow
: public CustomShapeProvider
1872 virtual PropertyMap
getProperties()
1874 PropertyMap aPropertyMap
;
1877 Sequence
< EnhancedCustomShapeAdjustmentValue
> aAdjSequence (3);
1879 Any
aAny ((sal_Int32
) 25000);
1880 aAdjSequence
[0].Value
= aAny
;
1881 aAdjSequence
[0].Name
= "adj1";
1884 Any
aAny ((sal_Int32
) 50000);
1885 aAdjSequence
[1].Value
= aAny
;
1886 aAdjSequence
[1].Name
= "adj2";
1889 Any
aAny ((sal_Int32
) 25000);
1890 aAdjSequence
[2].Value
= aAny
;
1891 aAdjSequence
[2].Name
= "adj3";
1893 aPropertyMap
[PROP_AdjustmentValues
] <<= aAdjSequence
;
1896 static const char *aStrings
[] = {
1897 "min(logwidth,logheight)",
1898 "50000*logwidth/?0 ",
1899 "if(0-$1 ,0,if(?1 -$1 ,$1 ,?1 ))",
1900 "if(0-$0 ,0,if(100000-$0 ,$0 ,100000))",
1911 "?13 *logheight/?9 ",
1913 "if(0-$2 ,0,if(?15 -$2 ,$2 ,?15 ))",
1916 "logheight*logheight/1",
1920 "?22 *?8 /logheight",
1930 "(10800000*atan2(?23 ,?17 ))/pi",
1935 "(10800000*atan2(?37 ,?14 ))/pi",
1945 "(16200000)/60000.0",
1949 "(10800000)/60000.0",
1953 "(10800000)/60000.0",
1954 "(5400000)/60000.0",
1955 "(16200000)/60000.0",
1960 aPropertyMap
[PROP_Equations
] <<= createStringSequence( SAL_N_ELEMENTS( aStrings
), aStrings
);
1963 Sequence
< Sequence
< PropertyValue
> > aPropSequenceSequence (3);
1965 Sequence
< PropertyValue
> aPropSequence (4);
1967 aPropSequence
[0].Name
= "Position";
1968 static const CustomShapeProvider::ParameterPairData aData
=
1970 EnhancedCustomShapeParameterType::EQUATION
,
1971 EnhancedCustomShapeParameterType::EQUATION
,
1974 aPropSequence
[0].Value
= makeAny (createParameterPair(&aData
));
1977 aPropSequence
[1].Name
= "RangeXMaximum";
1978 EnhancedCustomShapeParameter aParameter
;
1979 Any
aAny ((sal_Int32
) 1);
1980 aParameter
.Value
= aAny
;
1981 aParameter
.Type
= EnhancedCustomShapeParameterType::ADJUSTMENT
;
1982 aPropSequence
[1].Value
= makeAny (aParameter
);
1985 aPropSequence
[2].Name
= "RangeXMinimum";
1986 EnhancedCustomShapeParameter aParameter
;
1987 Any
aAny ((sal_Int32
) 0);
1988 aParameter
.Value
= aAny
;
1989 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
1990 aPropSequence
[2].Value
= makeAny (aParameter
);
1993 aPropSequence
[3].Name
= "RefX";
1994 Any
aAny ((sal_Int32
) 0);
1995 aPropSequence
[3].Value
= makeAny (aAny
);
1997 aPropSequenceSequence
[0] = aPropSequence
;
2000 Sequence
< PropertyValue
> aPropSequence (4);
2002 aPropSequence
[0].Name
= "Position";
2003 static const CustomShapeProvider::ParameterPairData aData
=
2005 EnhancedCustomShapeParameterType::EQUATION
,
2006 EnhancedCustomShapeParameterType::EQUATION
,
2009 aPropSequence
[0].Value
= makeAny (createParameterPair(&aData
));
2012 aPropSequence
[1].Name
= "RangeXMaximum";
2013 EnhancedCustomShapeParameter aParameter
;
2014 Any
aAny ((sal_Int32
) 1);
2015 aParameter
.Value
= aAny
;
2016 aParameter
.Type
= EnhancedCustomShapeParameterType::EQUATION
;
2017 aPropSequence
[1].Value
= makeAny (aParameter
);
2020 aPropSequence
[2].Name
= "RangeXMinimum";
2021 EnhancedCustomShapeParameter aParameter
;
2022 Any
aAny ((sal_Int32
) 0);
2023 aParameter
.Value
= aAny
;
2024 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
2025 aPropSequence
[2].Value
= makeAny (aParameter
);
2028 aPropSequence
[3].Name
= "RefX";
2029 Any
aAny ((sal_Int32
) 1);
2030 aPropSequence
[3].Value
= makeAny (aAny
);
2032 aPropSequenceSequence
[1] = aPropSequence
;
2035 Sequence
< PropertyValue
> aPropSequence (4);
2037 aPropSequence
[0].Name
= "Position";
2038 static const CustomShapeProvider::ParameterPairData aData
=
2040 EnhancedCustomShapeParameterType::EQUATION
,
2041 EnhancedCustomShapeParameterType::EQUATION
,
2044 aPropSequence
[0].Value
= makeAny (createParameterPair(&aData
));
2047 aPropSequence
[1].Name
= "RangeYMaximum";
2048 EnhancedCustomShapeParameter aParameter
;
2049 Any
aAny ((sal_Int32
) 15);
2050 aParameter
.Value
= aAny
;
2051 aParameter
.Type
= EnhancedCustomShapeParameterType::EQUATION
;
2052 aPropSequence
[1].Value
= makeAny (aParameter
);
2055 aPropSequence
[2].Name
= "RangeYMinimum";
2056 EnhancedCustomShapeParameter aParameter
;
2057 Any
aAny ((sal_Int32
) 0);
2058 aParameter
.Value
= aAny
;
2059 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
2060 aPropSequence
[2].Value
= makeAny (aParameter
);
2063 aPropSequence
[3].Name
= "RefY";
2064 Any
aAny ((sal_Int32
) 2);
2065 aPropSequence
[3].Value
= makeAny (aAny
);
2067 aPropSequenceSequence
[2] = aPropSequence
;
2069 aPropertyMap
[PROP_Handles
] <<= aPropSequenceSequence
;
2072 aPropertyMap
[PROP_MirroredX
] <<= Any ((sal_Bool
) sal_False
);
2075 aPropertyMap
[PROP_MirroredY
] <<= Any ((sal_Bool
) sal_False
);
2078 Sequence
< PropertyValue
> aPropSequence (3);
2080 aPropSequence
[0].Name
= "Coordinates";
2081 static const CustomShapeProvider::ParameterPairData aData
[] = {
2083 EnhancedCustomShapeParameterType::EQUATION
,
2084 EnhancedCustomShapeParameterType::EQUATION
,
2088 EnhancedCustomShapeParameterType::EQUATION
,
2089 EnhancedCustomShapeParameterType::EQUATION
,
2093 EnhancedCustomShapeParameterType::EQUATION
,
2094 EnhancedCustomShapeParameterType::EQUATION
,
2098 EnhancedCustomShapeParameterType::EQUATION
,
2099 EnhancedCustomShapeParameterType::EQUATION
,
2103 EnhancedCustomShapeParameterType::EQUATION
,
2104 EnhancedCustomShapeParameterType::EQUATION
,
2108 EnhancedCustomShapeParameterType::EQUATION
,
2109 EnhancedCustomShapeParameterType::NORMAL
,
2113 EnhancedCustomShapeParameterType::EQUATION
,
2114 EnhancedCustomShapeParameterType::EQUATION
,
2118 EnhancedCustomShapeParameterType::EQUATION
,
2119 EnhancedCustomShapeParameterType::EQUATION
,
2123 EnhancedCustomShapeParameterType::EQUATION
,
2124 EnhancedCustomShapeParameterType::EQUATION
,
2128 EnhancedCustomShapeParameterType::EQUATION
,
2129 EnhancedCustomShapeParameterType::EQUATION
,
2133 EnhancedCustomShapeParameterType::EQUATION
,
2134 EnhancedCustomShapeParameterType::EQUATION
,
2138 EnhancedCustomShapeParameterType::EQUATION
,
2139 EnhancedCustomShapeParameterType::EQUATION
,
2143 EnhancedCustomShapeParameterType::NORMAL
,
2144 EnhancedCustomShapeParameterType::EQUATION
,
2148 EnhancedCustomShapeParameterType::EQUATION
,
2149 EnhancedCustomShapeParameterType::EQUATION
,
2153 EnhancedCustomShapeParameterType::EQUATION
,
2154 EnhancedCustomShapeParameterType::EQUATION
,
2158 EnhancedCustomShapeParameterType::EQUATION
,
2159 EnhancedCustomShapeParameterType::EQUATION
,
2163 EnhancedCustomShapeParameterType::EQUATION
,
2164 EnhancedCustomShapeParameterType::EQUATION
,
2168 EnhancedCustomShapeParameterType::EQUATION
,
2169 EnhancedCustomShapeParameterType::EQUATION
,
2173 EnhancedCustomShapeParameterType::NORMAL
,
2174 EnhancedCustomShapeParameterType::EQUATION
,
2178 EnhancedCustomShapeParameterType::EQUATION
,
2179 EnhancedCustomShapeParameterType::EQUATION
,
2183 EnhancedCustomShapeParameterType::EQUATION
,
2184 EnhancedCustomShapeParameterType::EQUATION
,
2188 EnhancedCustomShapeParameterType::EQUATION
,
2189 EnhancedCustomShapeParameterType::NORMAL
,
2193 EnhancedCustomShapeParameterType::EQUATION
,
2194 EnhancedCustomShapeParameterType::EQUATION
,
2198 EnhancedCustomShapeParameterType::EQUATION
,
2199 EnhancedCustomShapeParameterType::EQUATION
,
2203 EnhancedCustomShapeParameterType::EQUATION
,
2204 EnhancedCustomShapeParameterType::EQUATION
,
2208 EnhancedCustomShapeParameterType::EQUATION
,
2209 EnhancedCustomShapeParameterType::EQUATION
,
2213 EnhancedCustomShapeParameterType::EQUATION
,
2214 EnhancedCustomShapeParameterType::EQUATION
,
2218 EnhancedCustomShapeParameterType::EQUATION
,
2219 EnhancedCustomShapeParameterType::EQUATION
,
2223 EnhancedCustomShapeParameterType::EQUATION
,
2224 EnhancedCustomShapeParameterType::EQUATION
,
2228 EnhancedCustomShapeParameterType::EQUATION
,
2229 EnhancedCustomShapeParameterType::EQUATION
,
2233 aPropSequence
[0].Value
= makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData
), aData
));
2236 aPropSequence
[1].Name
= "Segments";
2237 static const sal_uInt16 nValues
[] = {
2267 aPropSequence
[1].Value
= makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues
), nValues
));
2270 aPropSequence
[2].Name
= "TextFrames";
2271 Sequence
< EnhancedCustomShapeTextFrame
> aTextFrameSeq (1);
2273 EnhancedCustomShapeTextFrame aTextFrame
;
2275 static const CustomShapeProvider::ParameterPairData aData
=
2277 EnhancedCustomShapeParameterType::NORMAL
,
2278 EnhancedCustomShapeParameterType::NORMAL
,
2281 aTextFrame
.TopLeft
= createParameterPair(&aData
);
2284 static const CustomShapeProvider::ParameterPairData aData
=
2286 EnhancedCustomShapeParameterType::EQUATION
,
2287 EnhancedCustomShapeParameterType::EQUATION
,
2290 aTextFrame
.BottomRight
= createParameterPair(&aData
);
2292 aTextFrameSeq
[0] = aTextFrame
;
2294 aPropSequence
[2].Value
= makeAny (aTextFrameSeq
);
2296 aPropertyMap
[PROP_Path
] <<= aPropSequence
;
2299 awt::Rectangle aRectangle
;
2302 aRectangle
.Width
= 0;
2303 aRectangle
.Height
= 0;
2304 aPropertyMap
[PROP_ViewBox
] <<= aRectangle
;
2306 aPropertyMap
[ PROP_Type
] <<= OUString("ooxml-curvedDownArrow");
2308 return aPropertyMap
;
2311 class ShapeCactionButtonReturn
: public CustomShapeProvider
2313 virtual PropertyMap
getProperties()
2315 PropertyMap aPropertyMap
;
2318 aPropertyMap
[PROP_AdjustmentValues
] <<= Sequence
< OUString
>(0);
2321 static const char *aStrings
[] = {
2322 "min(logwidth,logheight)",
2348 "(5400000)/60000.0",
2349 "(5400000)/60000.0",
2350 "(5400000)/60000.0",
2351 "(10800000)/60000.0",
2352 "(-5400000)/60000.0",
2353 "(5400000)/60000.0",
2354 "(-5400000)/60000.0",
2356 "(5400000)/60000.0",
2357 "(5400000)/60000.0",
2358 "(5400000)/60000.0",
2359 "(10800000)/60000.0",
2360 "(-5400000)/60000.0",
2361 "(5400000)/60000.0",
2362 "(-5400000)/60000.0",
2364 "(5400000)/60000.0",
2365 "(5400000)/60000.0",
2366 "(5400000)/60000.0",
2367 "(10800000)/60000.0",
2368 "(-5400000)/60000.0",
2369 "(5400000)/60000.0",
2370 "(-5400000)/60000.0"
2372 aPropertyMap
[PROP_Equations
] <<= createStringSequence( SAL_N_ELEMENTS( aStrings
), aStrings
);
2375 aPropertyMap
[PROP_Handles
] <<= Sequence
< OUString
>(0);
2378 aPropertyMap
[PROP_MirroredX
] <<= Any ((sal_Bool
) sal_False
);
2381 aPropertyMap
[PROP_MirroredY
] <<= Any ((sal_Bool
) sal_False
);
2384 Sequence
< PropertyValue
> aPropSequence (3);
2386 aPropSequence
[0].Name
= "Coordinates";
2387 static const CustomShapeProvider::ParameterPairData aData
[] = {
2389 EnhancedCustomShapeParameterType::NORMAL
,
2390 EnhancedCustomShapeParameterType::NORMAL
,
2394 EnhancedCustomShapeParameterType::EQUATION
,
2395 EnhancedCustomShapeParameterType::NORMAL
,
2399 EnhancedCustomShapeParameterType::EQUATION
,
2400 EnhancedCustomShapeParameterType::EQUATION
,
2404 EnhancedCustomShapeParameterType::NORMAL
,
2405 EnhancedCustomShapeParameterType::EQUATION
,
2409 EnhancedCustomShapeParameterType::EQUATION
,
2410 EnhancedCustomShapeParameterType::EQUATION
,
2414 EnhancedCustomShapeParameterType::EQUATION
,
2415 EnhancedCustomShapeParameterType::EQUATION
,
2419 EnhancedCustomShapeParameterType::EQUATION
,
2420 EnhancedCustomShapeParameterType::EQUATION
,
2424 EnhancedCustomShapeParameterType::EQUATION
,
2425 EnhancedCustomShapeParameterType::EQUATION
,
2429 EnhancedCustomShapeParameterType::EQUATION
,
2430 EnhancedCustomShapeParameterType::EQUATION
,
2434 EnhancedCustomShapeParameterType::EQUATION
,
2435 EnhancedCustomShapeParameterType::EQUATION
,
2439 EnhancedCustomShapeParameterType::EQUATION
,
2440 EnhancedCustomShapeParameterType::EQUATION
,
2444 EnhancedCustomShapeParameterType::EQUATION
,
2445 EnhancedCustomShapeParameterType::EQUATION
,
2449 EnhancedCustomShapeParameterType::EQUATION
,
2450 EnhancedCustomShapeParameterType::EQUATION
,
2454 EnhancedCustomShapeParameterType::EQUATION
,
2455 EnhancedCustomShapeParameterType::EQUATION
,
2459 EnhancedCustomShapeParameterType::EQUATION
,
2460 EnhancedCustomShapeParameterType::EQUATION
,
2464 EnhancedCustomShapeParameterType::EQUATION
,
2465 EnhancedCustomShapeParameterType::EQUATION
,
2469 EnhancedCustomShapeParameterType::EQUATION
,
2470 EnhancedCustomShapeParameterType::EQUATION
,
2474 EnhancedCustomShapeParameterType::EQUATION
,
2475 EnhancedCustomShapeParameterType::EQUATION
,
2479 EnhancedCustomShapeParameterType::EQUATION
,
2480 EnhancedCustomShapeParameterType::EQUATION
,
2484 EnhancedCustomShapeParameterType::EQUATION
,
2485 EnhancedCustomShapeParameterType::EQUATION
,
2489 EnhancedCustomShapeParameterType::EQUATION
,
2490 EnhancedCustomShapeParameterType::EQUATION
,
2494 EnhancedCustomShapeParameterType::EQUATION
,
2495 EnhancedCustomShapeParameterType::EQUATION
,
2499 EnhancedCustomShapeParameterType::EQUATION
,
2500 EnhancedCustomShapeParameterType::EQUATION
,
2504 EnhancedCustomShapeParameterType::EQUATION
,
2505 EnhancedCustomShapeParameterType::EQUATION
,
2509 EnhancedCustomShapeParameterType::EQUATION
,
2510 EnhancedCustomShapeParameterType::EQUATION
,
2514 EnhancedCustomShapeParameterType::EQUATION
,
2515 EnhancedCustomShapeParameterType::EQUATION
,
2519 EnhancedCustomShapeParameterType::EQUATION
,
2520 EnhancedCustomShapeParameterType::EQUATION
,
2524 EnhancedCustomShapeParameterType::EQUATION
,
2525 EnhancedCustomShapeParameterType::EQUATION
,
2529 EnhancedCustomShapeParameterType::EQUATION
,
2530 EnhancedCustomShapeParameterType::EQUATION
,
2534 EnhancedCustomShapeParameterType::EQUATION
,
2535 EnhancedCustomShapeParameterType::EQUATION
,
2539 EnhancedCustomShapeParameterType::EQUATION
,
2540 EnhancedCustomShapeParameterType::EQUATION
,
2544 EnhancedCustomShapeParameterType::EQUATION
,
2545 EnhancedCustomShapeParameterType::EQUATION
,
2549 EnhancedCustomShapeParameterType::EQUATION
,
2550 EnhancedCustomShapeParameterType::EQUATION
,
2554 EnhancedCustomShapeParameterType::EQUATION
,
2555 EnhancedCustomShapeParameterType::EQUATION
,
2559 EnhancedCustomShapeParameterType::EQUATION
,
2560 EnhancedCustomShapeParameterType::EQUATION
,
2564 EnhancedCustomShapeParameterType::EQUATION
,
2565 EnhancedCustomShapeParameterType::EQUATION
,
2569 EnhancedCustomShapeParameterType::EQUATION
,
2570 EnhancedCustomShapeParameterType::EQUATION
,
2574 EnhancedCustomShapeParameterType::EQUATION
,
2575 EnhancedCustomShapeParameterType::EQUATION
,
2579 EnhancedCustomShapeParameterType::EQUATION
,
2580 EnhancedCustomShapeParameterType::EQUATION
,
2584 EnhancedCustomShapeParameterType::EQUATION
,
2585 EnhancedCustomShapeParameterType::EQUATION
,
2589 EnhancedCustomShapeParameterType::EQUATION
,
2590 EnhancedCustomShapeParameterType::EQUATION
,
2594 EnhancedCustomShapeParameterType::EQUATION
,
2595 EnhancedCustomShapeParameterType::EQUATION
,
2599 EnhancedCustomShapeParameterType::EQUATION
,
2600 EnhancedCustomShapeParameterType::EQUATION
,
2604 EnhancedCustomShapeParameterType::EQUATION
,
2605 EnhancedCustomShapeParameterType::EQUATION
,
2609 EnhancedCustomShapeParameterType::EQUATION
,
2610 EnhancedCustomShapeParameterType::EQUATION
,
2614 EnhancedCustomShapeParameterType::EQUATION
,
2615 EnhancedCustomShapeParameterType::EQUATION
,
2619 EnhancedCustomShapeParameterType::EQUATION
,
2620 EnhancedCustomShapeParameterType::EQUATION
,
2624 EnhancedCustomShapeParameterType::EQUATION
,
2625 EnhancedCustomShapeParameterType::EQUATION
,
2629 EnhancedCustomShapeParameterType::EQUATION
,
2630 EnhancedCustomShapeParameterType::EQUATION
,
2634 EnhancedCustomShapeParameterType::EQUATION
,
2635 EnhancedCustomShapeParameterType::EQUATION
,
2639 EnhancedCustomShapeParameterType::EQUATION
,
2640 EnhancedCustomShapeParameterType::EQUATION
,
2644 EnhancedCustomShapeParameterType::EQUATION
,
2645 EnhancedCustomShapeParameterType::EQUATION
,
2649 EnhancedCustomShapeParameterType::EQUATION
,
2650 EnhancedCustomShapeParameterType::EQUATION
,
2654 EnhancedCustomShapeParameterType::EQUATION
,
2655 EnhancedCustomShapeParameterType::EQUATION
,
2659 EnhancedCustomShapeParameterType::EQUATION
,
2660 EnhancedCustomShapeParameterType::EQUATION
,
2664 EnhancedCustomShapeParameterType::EQUATION
,
2665 EnhancedCustomShapeParameterType::EQUATION
,
2669 EnhancedCustomShapeParameterType::EQUATION
,
2670 EnhancedCustomShapeParameterType::EQUATION
,
2674 EnhancedCustomShapeParameterType::EQUATION
,
2675 EnhancedCustomShapeParameterType::EQUATION
,
2679 EnhancedCustomShapeParameterType::EQUATION
,
2680 EnhancedCustomShapeParameterType::EQUATION
,
2684 EnhancedCustomShapeParameterType::EQUATION
,
2685 EnhancedCustomShapeParameterType::EQUATION
,
2689 EnhancedCustomShapeParameterType::EQUATION
,
2690 EnhancedCustomShapeParameterType::EQUATION
,
2694 EnhancedCustomShapeParameterType::NORMAL
,
2695 EnhancedCustomShapeParameterType::NORMAL
,
2699 EnhancedCustomShapeParameterType::EQUATION
,
2700 EnhancedCustomShapeParameterType::NORMAL
,
2704 EnhancedCustomShapeParameterType::EQUATION
,
2705 EnhancedCustomShapeParameterType::EQUATION
,
2709 EnhancedCustomShapeParameterType::NORMAL
,
2710 EnhancedCustomShapeParameterType::EQUATION
,
2714 aPropSequence
[0].Value
= makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData
), aData
));
2717 aPropSequence
[1].Name
= "Segments";
2718 static const sal_uInt16 nValues
[] = {
2769 aPropSequence
[1].Value
= makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues
), nValues
));
2772 aPropSequence
[2].Name
= "TextFrames";
2773 Sequence
< EnhancedCustomShapeTextFrame
> aTextFrameSeq (1);
2775 EnhancedCustomShapeTextFrame aTextFrame
;
2777 static const CustomShapeProvider::ParameterPairData aData
=
2779 EnhancedCustomShapeParameterType::NORMAL
,
2780 EnhancedCustomShapeParameterType::NORMAL
,
2783 aTextFrame
.TopLeft
= createParameterPair(&aData
);
2786 static const CustomShapeProvider::ParameterPairData aData
=
2788 EnhancedCustomShapeParameterType::EQUATION
,
2789 EnhancedCustomShapeParameterType::EQUATION
,
2792 aTextFrame
.BottomRight
= createParameterPair(&aData
);
2794 aTextFrameSeq
[0] = aTextFrame
;
2796 aPropSequence
[2].Value
= makeAny (aTextFrameSeq
);
2798 aPropertyMap
[PROP_Path
] <<= aPropSequence
;
2801 awt::Rectangle aRectangle
;
2804 aRectangle
.Width
= 0;
2805 aRectangle
.Height
= 0;
2806 aPropertyMap
[PROP_ViewBox
] <<= aRectangle
;
2808 aPropertyMap
[ PROP_Type
] <<= OUString("ooxml-actionButtonReturn");
2810 return aPropertyMap
;
2813 class ShapeCflowChartInputOutput
: public CustomShapeProvider
2815 virtual PropertyMap
getProperties()
2817 PropertyMap aPropertyMap
;
2820 aPropertyMap
[PROP_AdjustmentValues
] <<= Sequence
< OUString
>(0);
2823 static const char *aStrings
[] = {
2834 aPropertyMap
[PROP_Equations
] <<= createStringSequence( SAL_N_ELEMENTS( aStrings
), aStrings
);
2837 aPropertyMap
[PROP_Handles
] <<= Sequence
< OUString
>(0);
2840 aPropertyMap
[PROP_MirroredX
] <<= Any ((sal_Bool
) sal_False
);
2843 aPropertyMap
[PROP_MirroredY
] <<= Any ((sal_Bool
) sal_False
);
2846 Sequence
< PropertyValue
> aPropSequence (4);
2848 aPropSequence
[0].Name
= "Coordinates";
2849 static const CustomShapeProvider::ParameterPairData aData
[] = {
2851 EnhancedCustomShapeParameterType::NORMAL
,
2852 EnhancedCustomShapeParameterType::NORMAL
,
2856 EnhancedCustomShapeParameterType::NORMAL
,
2857 EnhancedCustomShapeParameterType::NORMAL
,
2861 EnhancedCustomShapeParameterType::NORMAL
,
2862 EnhancedCustomShapeParameterType::NORMAL
,
2866 EnhancedCustomShapeParameterType::NORMAL
,
2867 EnhancedCustomShapeParameterType::NORMAL
,
2871 aPropSequence
[0].Value
= makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData
), aData
));
2874 aPropSequence
[1].Name
= "Segments";
2875 static const sal_uInt16 nValues
[] = {
2882 aPropSequence
[1].Value
= makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues
), nValues
));
2885 aPropSequence
[2].Name
= "SubViewSize";
2886 Sequence
< awt::Size
> aSizeSequence (1);
2891 aSizeSequence
[0] = aSize
;
2893 aPropSequence
[2].Value
= makeAny (aSizeSequence
);
2896 aPropSequence
[3].Name
= "TextFrames";
2897 Sequence
< EnhancedCustomShapeTextFrame
> aTextFrameSeq (1);
2899 EnhancedCustomShapeTextFrame aTextFrame
;
2901 static const CustomShapeProvider::ParameterPairData aData
=
2903 EnhancedCustomShapeParameterType::EQUATION
,
2904 EnhancedCustomShapeParameterType::NORMAL
,
2907 aTextFrame
.TopLeft
= createParameterPair(&aData
);
2910 static const CustomShapeProvider::ParameterPairData aData
=
2912 EnhancedCustomShapeParameterType::EQUATION
,
2913 EnhancedCustomShapeParameterType::EQUATION
,
2916 aTextFrame
.BottomRight
= createParameterPair(&aData
);
2918 aTextFrameSeq
[0] = aTextFrame
;
2920 aPropSequence
[3].Value
= makeAny (aTextFrameSeq
);
2922 aPropertyMap
[PROP_Path
] <<= aPropSequence
;
2925 awt::Rectangle aRectangle
;
2928 aRectangle
.Width
= 0;
2929 aRectangle
.Height
= 0;
2930 aPropertyMap
[PROP_ViewBox
] <<= aRectangle
;
2932 aPropertyMap
[ PROP_Type
] <<= OUString("ooxml-flowChartInputOutput");
2934 return aPropertyMap
;
2937 class ShapeCbracketPair
: public CustomShapeProvider
2939 virtual PropertyMap
getProperties()
2941 PropertyMap aPropertyMap
;
2944 Sequence
< EnhancedCustomShapeAdjustmentValue
> aAdjSequence (1);
2946 Any
aAny ((sal_Int32
) 16667);
2947 aAdjSequence
[0].Value
= aAny
;
2948 aAdjSequence
[0].Name
= "adj";
2950 aPropertyMap
[PROP_AdjustmentValues
] <<= aAdjSequence
;
2953 static const char *aStrings
[] = {
2954 "if(0-$0 ,0,if(50000-$0 ,$0 ,50000))",
2955 "min(logwidth,logheight)",
2966 "(10800000)/60000.0",
2967 "(5400000)/60000.0",
2968 "(16200000)/60000.0",
2969 "(5400000)/60000.0",
2971 "(5400000)/60000.0",
2972 "(5400000)/60000.0",
2973 "(5400000)/60000.0",
2974 "(5400000)/60000.0",
2975 "(5400000)/60000.0",
2976 "(10800000)/60000.0",
2977 "(5400000)/60000.0",
2978 "(16200000)/60000.0",
2979 "(5400000)/60000.0",
2983 aPropertyMap
[PROP_Equations
] <<= createStringSequence( SAL_N_ELEMENTS( aStrings
), aStrings
);
2986 Sequence
< Sequence
< PropertyValue
> > aPropSequenceSequence (1);
2988 Sequence
< PropertyValue
> aPropSequence (4);
2990 aPropSequence
[0].Name
= "Position";
2991 static const CustomShapeProvider::ParameterPairData aData
=
2993 EnhancedCustomShapeParameterType::NORMAL
,
2994 EnhancedCustomShapeParameterType::EQUATION
,
2997 aPropSequence
[0].Value
= makeAny (createParameterPair(&aData
));
3000 aPropSequence
[1].Name
= "RangeYMaximum";
3001 EnhancedCustomShapeParameter aParameter
;
3002 Any
aAny ((sal_Int32
) 50000);
3003 aParameter
.Value
= aAny
;
3004 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
3005 aPropSequence
[1].Value
= makeAny (aParameter
);
3008 aPropSequence
[2].Name
= "RangeYMinimum";
3009 EnhancedCustomShapeParameter aParameter
;
3010 Any
aAny ((sal_Int32
) 0);
3011 aParameter
.Value
= aAny
;
3012 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
3013 aPropSequence
[2].Value
= makeAny (aParameter
);
3016 aPropSequence
[3].Name
= "RefY";
3017 Any
aAny ((sal_Int32
) 0);
3018 aPropSequence
[3].Value
= makeAny (aAny
);
3020 aPropSequenceSequence
[0] = aPropSequence
;
3022 aPropertyMap
[PROP_Handles
] <<= aPropSequenceSequence
;
3025 aPropertyMap
[PROP_MirroredX
] <<= Any ((sal_Bool
) sal_False
);
3028 aPropertyMap
[PROP_MirroredY
] <<= Any ((sal_Bool
) sal_False
);
3031 Sequence
< PropertyValue
> aPropSequence (3);
3033 aPropSequence
[0].Name
= "Coordinates";
3034 static const CustomShapeProvider::ParameterPairData aData
[] = {
3036 EnhancedCustomShapeParameterType::NORMAL
,
3037 EnhancedCustomShapeParameterType::EQUATION
,
3041 EnhancedCustomShapeParameterType::EQUATION
,
3042 EnhancedCustomShapeParameterType::EQUATION
,
3046 EnhancedCustomShapeParameterType::EQUATION
,
3047 EnhancedCustomShapeParameterType::EQUATION
,
3051 EnhancedCustomShapeParameterType::EQUATION
,
3052 EnhancedCustomShapeParameterType::NORMAL
,
3056 EnhancedCustomShapeParameterType::EQUATION
,
3057 EnhancedCustomShapeParameterType::EQUATION
,
3061 EnhancedCustomShapeParameterType::EQUATION
,
3062 EnhancedCustomShapeParameterType::EQUATION
,
3066 EnhancedCustomShapeParameterType::EQUATION
,
3067 EnhancedCustomShapeParameterType::EQUATION
,
3071 EnhancedCustomShapeParameterType::EQUATION
,
3072 EnhancedCustomShapeParameterType::EQUATION
,
3076 EnhancedCustomShapeParameterType::EQUATION
,
3077 EnhancedCustomShapeParameterType::EQUATION
,
3081 EnhancedCustomShapeParameterType::EQUATION
,
3082 EnhancedCustomShapeParameterType::EQUATION
,
3086 EnhancedCustomShapeParameterType::EQUATION
,
3087 EnhancedCustomShapeParameterType::EQUATION
,
3091 EnhancedCustomShapeParameterType::EQUATION
,
3092 EnhancedCustomShapeParameterType::EQUATION
,
3096 EnhancedCustomShapeParameterType::EQUATION
,
3097 EnhancedCustomShapeParameterType::EQUATION
,
3101 EnhancedCustomShapeParameterType::EQUATION
,
3102 EnhancedCustomShapeParameterType::EQUATION
,
3106 EnhancedCustomShapeParameterType::EQUATION
,
3107 EnhancedCustomShapeParameterType::EQUATION
,
3111 EnhancedCustomShapeParameterType::NORMAL
,
3112 EnhancedCustomShapeParameterType::EQUATION
,
3116 EnhancedCustomShapeParameterType::EQUATION
,
3117 EnhancedCustomShapeParameterType::EQUATION
,
3121 EnhancedCustomShapeParameterType::EQUATION
,
3122 EnhancedCustomShapeParameterType::EQUATION
,
3126 EnhancedCustomShapeParameterType::EQUATION
,
3127 EnhancedCustomShapeParameterType::NORMAL
,
3131 EnhancedCustomShapeParameterType::EQUATION
,
3132 EnhancedCustomShapeParameterType::EQUATION
,
3136 EnhancedCustomShapeParameterType::EQUATION
,
3137 EnhancedCustomShapeParameterType::EQUATION
,
3141 EnhancedCustomShapeParameterType::EQUATION
,
3142 EnhancedCustomShapeParameterType::EQUATION
,
3146 EnhancedCustomShapeParameterType::EQUATION
,
3147 EnhancedCustomShapeParameterType::EQUATION
,
3151 EnhancedCustomShapeParameterType::EQUATION
,
3152 EnhancedCustomShapeParameterType::EQUATION
,
3156 aPropSequence
[0].Value
= makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData
), aData
));
3159 aPropSequence
[1].Name
= "Segments";
3160 static const sal_uInt16 nValues
[] = {
3184 aPropSequence
[1].Value
= makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues
), nValues
));
3187 aPropSequence
[2].Name
= "TextFrames";
3188 Sequence
< EnhancedCustomShapeTextFrame
> aTextFrameSeq (1);
3190 EnhancedCustomShapeTextFrame aTextFrame
;
3192 static const CustomShapeProvider::ParameterPairData aData
=
3194 EnhancedCustomShapeParameterType::EQUATION
,
3195 EnhancedCustomShapeParameterType::EQUATION
,
3198 aTextFrame
.TopLeft
= createParameterPair(&aData
);
3201 static const CustomShapeProvider::ParameterPairData aData
=
3203 EnhancedCustomShapeParameterType::EQUATION
,
3204 EnhancedCustomShapeParameterType::EQUATION
,
3207 aTextFrame
.BottomRight
= createParameterPair(&aData
);
3209 aTextFrameSeq
[0] = aTextFrame
;
3211 aPropSequence
[2].Value
= makeAny (aTextFrameSeq
);
3213 aPropertyMap
[PROP_Path
] <<= aPropSequence
;
3216 awt::Rectangle aRectangle
;
3219 aRectangle
.Width
= 0;
3220 aRectangle
.Height
= 0;
3221 aPropertyMap
[PROP_ViewBox
] <<= aRectangle
;
3223 aPropertyMap
[ PROP_Type
] <<= OUString("ooxml-bracketPair");
3225 return aPropertyMap
;
3228 class ShapeCsmileyFace
: public CustomShapeProvider
3230 virtual PropertyMap
getProperties()
3232 PropertyMap aPropertyMap
;
3235 Sequence
< EnhancedCustomShapeAdjustmentValue
> aAdjSequence (1);
3237 Any
aAny ((sal_Int32
) 4653);
3238 aAdjSequence
[0].Value
= aAny
;
3239 aAdjSequence
[0].Name
= "adj";
3241 aPropertyMap
[PROP_AdjustmentValues
] <<= aAdjSequence
;
3244 static const char *aStrings
[] = {
3245 "if(-4653-$0 ,-4653,if(4653-$0 ,$0 ,4653))",
3246 "logwidth*4969/21699",
3247 "logwidth*6215/21600",
3248 "logwidth*13135/21600",
3249 "logwidth*16640/21600",
3250 "logheight*7570/21600",
3251 "logheight*16515/21600",
3252 "logheight*?0 /100000",
3255 "logheight*?0 /50000",
3258 "?12 *cos(pi*(2700000)/10800000)",
3260 "?14 *sin(pi*(2700000)/10800000)",
3267 "logwidth*1125/21600",
3268 "logheight*1125/21600",
3271 "(10800000)/60000.0",
3272 "(21600000)/60000.0",
3273 "(10800000)/60000.0",
3274 "(21600000)/60000.0",
3275 "(10800000)/60000.0",
3276 "(21600000)/60000.0",
3277 "(10800000)/60000.0",
3278 "(21600000)/60000.0"
3280 aPropertyMap
[PROP_Equations
] <<= createStringSequence( SAL_N_ELEMENTS( aStrings
), aStrings
);
3283 Sequence
< Sequence
< PropertyValue
> > aPropSequenceSequence (1);
3285 Sequence
< PropertyValue
> aPropSequence (4);
3287 aPropSequence
[0].Name
= "Position";
3288 static const CustomShapeProvider::ParameterPairData aData
=
3290 EnhancedCustomShapeParameterType::EQUATION
,
3291 EnhancedCustomShapeParameterType::EQUATION
,
3294 aPropSequence
[0].Value
= makeAny (createParameterPair(&aData
));
3297 aPropSequence
[1].Name
= "RangeYMaximum";
3298 EnhancedCustomShapeParameter aParameter
;
3299 Any
aAny ((sal_Int32
) 4653);
3300 aParameter
.Value
= aAny
;
3301 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
3302 aPropSequence
[1].Value
= makeAny (aParameter
);
3305 aPropSequence
[2].Name
= "RangeYMinimum";
3306 EnhancedCustomShapeParameter aParameter
;
3307 Any
aAny ((sal_Int32
) -4653);
3308 aParameter
.Value
= aAny
;
3309 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
3310 aPropSequence
[2].Value
= makeAny (aParameter
);
3313 aPropSequence
[3].Name
= "RefY";
3314 Any
aAny ((sal_Int32
) 0);
3315 aPropSequence
[3].Value
= makeAny (aAny
);
3317 aPropSequenceSequence
[0] = aPropSequence
;
3319 aPropertyMap
[PROP_Handles
] <<= aPropSequenceSequence
;
3322 aPropertyMap
[PROP_MirroredX
] <<= Any ((sal_Bool
) sal_False
);
3325 aPropertyMap
[PROP_MirroredY
] <<= Any ((sal_Bool
) sal_False
);
3328 Sequence
< PropertyValue
> aPropSequence (3);
3330 aPropSequence
[0].Name
= "Coordinates";
3331 static const CustomShapeProvider::ParameterPairData aData
[] = {
3333 EnhancedCustomShapeParameterType::NORMAL
,
3334 EnhancedCustomShapeParameterType::EQUATION
,
3338 EnhancedCustomShapeParameterType::EQUATION
,
3339 EnhancedCustomShapeParameterType::EQUATION
,
3343 EnhancedCustomShapeParameterType::EQUATION
,
3344 EnhancedCustomShapeParameterType::EQUATION
,
3348 EnhancedCustomShapeParameterType::EQUATION
,
3349 EnhancedCustomShapeParameterType::EQUATION
,
3353 EnhancedCustomShapeParameterType::EQUATION
,
3354 EnhancedCustomShapeParameterType::EQUATION
,
3358 EnhancedCustomShapeParameterType::EQUATION
,
3359 EnhancedCustomShapeParameterType::EQUATION
,
3363 EnhancedCustomShapeParameterType::EQUATION
,
3364 EnhancedCustomShapeParameterType::EQUATION
,
3368 EnhancedCustomShapeParameterType::EQUATION
,
3369 EnhancedCustomShapeParameterType::EQUATION
,
3373 EnhancedCustomShapeParameterType::EQUATION
,
3374 EnhancedCustomShapeParameterType::EQUATION
,
3378 EnhancedCustomShapeParameterType::EQUATION
,
3379 EnhancedCustomShapeParameterType::EQUATION
,
3383 EnhancedCustomShapeParameterType::EQUATION
,
3384 EnhancedCustomShapeParameterType::EQUATION
,
3388 EnhancedCustomShapeParameterType::EQUATION
,
3389 EnhancedCustomShapeParameterType::EQUATION
,
3393 EnhancedCustomShapeParameterType::NORMAL
,
3394 EnhancedCustomShapeParameterType::EQUATION
,
3398 EnhancedCustomShapeParameterType::EQUATION
,
3399 EnhancedCustomShapeParameterType::EQUATION
,
3403 EnhancedCustomShapeParameterType::EQUATION
,
3404 EnhancedCustomShapeParameterType::EQUATION
,
3408 aPropSequence
[0].Value
= makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData
), aData
));
3411 aPropSequence
[1].Name
= "Segments";
3412 static const sal_uInt16 nValues
[] = {
3435 aPropSequence
[1].Value
= makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues
), nValues
));
3438 aPropSequence
[2].Name
= "TextFrames";
3439 Sequence
< EnhancedCustomShapeTextFrame
> aTextFrameSeq (1);
3441 EnhancedCustomShapeTextFrame aTextFrame
;
3443 static const CustomShapeProvider::ParameterPairData aData
=
3445 EnhancedCustomShapeParameterType::EQUATION
,
3446 EnhancedCustomShapeParameterType::EQUATION
,
3449 aTextFrame
.TopLeft
= createParameterPair(&aData
);
3452 static const CustomShapeProvider::ParameterPairData aData
=
3454 EnhancedCustomShapeParameterType::EQUATION
,
3455 EnhancedCustomShapeParameterType::EQUATION
,
3458 aTextFrame
.BottomRight
= createParameterPair(&aData
);
3460 aTextFrameSeq
[0] = aTextFrame
;
3462 aPropSequence
[2].Value
= makeAny (aTextFrameSeq
);
3464 aPropertyMap
[PROP_Path
] <<= aPropSequence
;
3467 awt::Rectangle aRectangle
;
3470 aRectangle
.Width
= 0;
3471 aRectangle
.Height
= 0;
3472 aPropertyMap
[PROP_ViewBox
] <<= aRectangle
;
3474 aPropertyMap
[ PROP_Type
] <<= OUString("ooxml-smileyFace");
3476 return aPropertyMap
;
3479 class ShapeCactionButtonBlank
: public CustomShapeProvider
3481 virtual PropertyMap
getProperties()
3483 PropertyMap aPropertyMap
;
3486 aPropertyMap
[PROP_AdjustmentValues
] <<= Sequence
< OUString
>(0);
3489 static const char *aStrings
[] = {
3495 aPropertyMap
[PROP_Equations
] <<= createStringSequence( SAL_N_ELEMENTS( aStrings
), aStrings
);
3498 aPropertyMap
[PROP_Handles
] <<= Sequence
< OUString
>(0);
3501 aPropertyMap
[PROP_MirroredX
] <<= Any ((sal_Bool
) sal_False
);
3504 aPropertyMap
[PROP_MirroredY
] <<= Any ((sal_Bool
) sal_False
);
3507 Sequence
< PropertyValue
> aPropSequence (3);
3509 aPropSequence
[0].Name
= "Coordinates";
3510 static const CustomShapeProvider::ParameterPairData aData
[] = {
3512 EnhancedCustomShapeParameterType::NORMAL
,
3513 EnhancedCustomShapeParameterType::NORMAL
,
3517 EnhancedCustomShapeParameterType::EQUATION
,
3518 EnhancedCustomShapeParameterType::NORMAL
,
3522 EnhancedCustomShapeParameterType::EQUATION
,
3523 EnhancedCustomShapeParameterType::EQUATION
,
3527 EnhancedCustomShapeParameterType::NORMAL
,
3528 EnhancedCustomShapeParameterType::EQUATION
,
3532 aPropSequence
[0].Value
= makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData
), aData
));
3535 aPropSequence
[1].Name
= "Segments";
3536 static const sal_uInt16 nValues
[] = {
3543 aPropSequence
[1].Value
= makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues
), nValues
));
3546 aPropSequence
[2].Name
= "TextFrames";
3547 Sequence
< EnhancedCustomShapeTextFrame
> aTextFrameSeq (1);
3549 EnhancedCustomShapeTextFrame aTextFrame
;
3551 static const CustomShapeProvider::ParameterPairData aData
=
3553 EnhancedCustomShapeParameterType::NORMAL
,
3554 EnhancedCustomShapeParameterType::NORMAL
,
3557 aTextFrame
.TopLeft
= createParameterPair(&aData
);
3560 static const CustomShapeProvider::ParameterPairData aData
=
3562 EnhancedCustomShapeParameterType::EQUATION
,
3563 EnhancedCustomShapeParameterType::EQUATION
,
3566 aTextFrame
.BottomRight
= createParameterPair(&aData
);
3568 aTextFrameSeq
[0] = aTextFrame
;
3570 aPropSequence
[2].Value
= makeAny (aTextFrameSeq
);
3572 aPropertyMap
[PROP_Path
] <<= aPropSequence
;
3575 awt::Rectangle aRectangle
;
3578 aRectangle
.Width
= 0;
3579 aRectangle
.Height
= 0;
3580 aPropertyMap
[PROP_ViewBox
] <<= aRectangle
;
3582 aPropertyMap
[ PROP_Type
] <<= OUString("ooxml-actionButtonBlank");
3584 return aPropertyMap
;
3587 class ShapeCwave
: public CustomShapeProvider
3589 virtual PropertyMap
getProperties()
3591 PropertyMap aPropertyMap
;
3594 Sequence
< EnhancedCustomShapeAdjustmentValue
> aAdjSequence (2);
3596 Any
aAny ((sal_Int32
) 12500);
3597 aAdjSequence
[0].Value
= aAny
;
3598 aAdjSequence
[0].Name
= "adj1";
3601 Any
aAny ((sal_Int32
) 0);
3602 aAdjSequence
[1].Value
= aAny
;
3603 aAdjSequence
[1].Name
= "adj2";
3605 aPropertyMap
[PROP_AdjustmentValues
] <<= aAdjSequence
;
3608 static const char *aStrings
[] = {
3609 "if(0-$0 ,0,if(20000-$0 ,$0 ,20000))",
3610 "if(-10000-$1 ,-10000,if(10000-$1 ,$1 ,10000))",
3611 "logheight*?0 /100000",
3618 "logwidth*?1 /100000",
3619 "logwidth*?1 /50000",
3638 "logheight*?0 /50000",
3643 aPropertyMap
[PROP_Equations
] <<= createStringSequence( SAL_N_ELEMENTS( aStrings
), aStrings
);
3646 Sequence
< Sequence
< PropertyValue
> > aPropSequenceSequence (2);
3648 Sequence
< PropertyValue
> aPropSequence (4);
3650 aPropSequence
[0].Name
= "Position";
3651 static const CustomShapeProvider::ParameterPairData aData
=
3653 EnhancedCustomShapeParameterType::NORMAL
,
3654 EnhancedCustomShapeParameterType::EQUATION
,
3657 aPropSequence
[0].Value
= makeAny (createParameterPair(&aData
));
3660 aPropSequence
[1].Name
= "RangeYMaximum";
3661 EnhancedCustomShapeParameter aParameter
;
3662 Any
aAny ((sal_Int32
) 20000);
3663 aParameter
.Value
= aAny
;
3664 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
3665 aPropSequence
[1].Value
= makeAny (aParameter
);
3668 aPropSequence
[2].Name
= "RangeYMinimum";
3669 EnhancedCustomShapeParameter aParameter
;
3670 Any
aAny ((sal_Int32
) 0);
3671 aParameter
.Value
= aAny
;
3672 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
3673 aPropSequence
[2].Value
= makeAny (aParameter
);
3676 aPropSequence
[3].Name
= "RefY";
3677 Any
aAny ((sal_Int32
) 0);
3678 aPropSequence
[3].Value
= makeAny (aAny
);
3680 aPropSequenceSequence
[0] = aPropSequence
;
3683 Sequence
< PropertyValue
> aPropSequence (4);
3685 aPropSequence
[0].Name
= "Position";
3686 static const CustomShapeProvider::ParameterPairData aData
=
3688 EnhancedCustomShapeParameterType::EQUATION
,
3689 EnhancedCustomShapeParameterType::EQUATION
,
3692 aPropSequence
[0].Value
= makeAny (createParameterPair(&aData
));
3695 aPropSequence
[1].Name
= "RangeXMaximum";
3696 EnhancedCustomShapeParameter aParameter
;
3697 Any
aAny ((sal_Int32
) 10000);
3698 aParameter
.Value
= aAny
;
3699 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
3700 aPropSequence
[1].Value
= makeAny (aParameter
);
3703 aPropSequence
[2].Name
= "RangeXMinimum";
3704 EnhancedCustomShapeParameter aParameter
;
3705 Any
aAny ((sal_Int32
) -10000);
3706 aParameter
.Value
= aAny
;
3707 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
3708 aPropSequence
[2].Value
= makeAny (aParameter
);
3711 aPropSequence
[3].Name
= "RefX";
3712 Any
aAny ((sal_Int32
) 1);
3713 aPropSequence
[3].Value
= makeAny (aAny
);
3715 aPropSequenceSequence
[1] = aPropSequence
;
3717 aPropertyMap
[PROP_Handles
] <<= aPropSequenceSequence
;
3720 aPropertyMap
[PROP_MirroredX
] <<= Any ((sal_Bool
) sal_False
);
3723 aPropertyMap
[PROP_MirroredY
] <<= Any ((sal_Bool
) sal_False
);
3726 Sequence
< PropertyValue
> aPropSequence (3);
3728 aPropSequence
[0].Name
= "Coordinates";
3729 static const CustomShapeProvider::ParameterPairData aData
[] = {
3731 EnhancedCustomShapeParameterType::EQUATION
,
3732 EnhancedCustomShapeParameterType::EQUATION
,
3736 EnhancedCustomShapeParameterType::EQUATION
,
3737 EnhancedCustomShapeParameterType::EQUATION
,
3741 EnhancedCustomShapeParameterType::EQUATION
,
3742 EnhancedCustomShapeParameterType::EQUATION
,
3746 EnhancedCustomShapeParameterType::EQUATION
,
3747 EnhancedCustomShapeParameterType::EQUATION
,
3751 EnhancedCustomShapeParameterType::EQUATION
,
3752 EnhancedCustomShapeParameterType::EQUATION
,
3756 EnhancedCustomShapeParameterType::EQUATION
,
3757 EnhancedCustomShapeParameterType::EQUATION
,
3761 EnhancedCustomShapeParameterType::EQUATION
,
3762 EnhancedCustomShapeParameterType::EQUATION
,
3766 EnhancedCustomShapeParameterType::EQUATION
,
3767 EnhancedCustomShapeParameterType::EQUATION
,
3771 aPropSequence
[0].Value
= makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData
), aData
));
3774 aPropSequence
[1].Name
= "Segments";
3775 static const sal_uInt16 nValues
[] = {
3784 aPropSequence
[1].Value
= makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues
), nValues
));
3787 aPropSequence
[2].Name
= "TextFrames";
3788 Sequence
< EnhancedCustomShapeTextFrame
> aTextFrameSeq (1);
3790 EnhancedCustomShapeTextFrame aTextFrame
;
3792 static const CustomShapeProvider::ParameterPairData aData
=
3794 EnhancedCustomShapeParameterType::EQUATION
,
3795 EnhancedCustomShapeParameterType::EQUATION
,
3798 aTextFrame
.TopLeft
= createParameterPair(&aData
);
3801 static const CustomShapeProvider::ParameterPairData aData
=
3803 EnhancedCustomShapeParameterType::EQUATION
,
3804 EnhancedCustomShapeParameterType::EQUATION
,
3807 aTextFrame
.BottomRight
= createParameterPair(&aData
);
3809 aTextFrameSeq
[0] = aTextFrame
;
3811 aPropSequence
[2].Value
= makeAny (aTextFrameSeq
);
3813 aPropertyMap
[PROP_Path
] <<= aPropSequence
;
3816 awt::Rectangle aRectangle
;
3819 aRectangle
.Width
= 0;
3820 aRectangle
.Height
= 0;
3821 aPropertyMap
[PROP_ViewBox
] <<= aRectangle
;
3823 aPropertyMap
[ PROP_Type
] <<= OUString("ooxml-wave");
3825 return aPropertyMap
;
3828 class ShapeCswooshArrow
: public CustomShapeProvider
3830 virtual PropertyMap
getProperties()
3832 PropertyMap aPropertyMap
;
3835 Sequence
< EnhancedCustomShapeAdjustmentValue
> aAdjSequence (2);
3837 Any
aAny ((sal_Int32
) 25000);
3838 aAdjSequence
[0].Value
= aAny
;
3839 aAdjSequence
[0].Name
= "adj1";
3842 Any
aAny ((sal_Int32
) 16667);
3843 aAdjSequence
[1].Value
= aAny
;
3844 aAdjSequence
[1].Name
= "adj2";
3846 aPropertyMap
[PROP_AdjustmentValues
] <<= aAdjSequence
;
3849 static const char *aStrings
[] = {
3850 "if(1-$0 ,1,if(75000-$0 ,$0 ,75000))",
3851 "min(logwidth,logheight)",
3852 "70000*logwidth/?1 ",
3853 "if(0-$1 ,0,if(?2 -$1 ,$1 ,?2 ))",
3854 "logheight*?0 /100000",
3857 "min(logwidth,logheight)/8",
3860 "?7 *tan(pi*(?9 )/10800000)",
3862 "?4 *tan(pi*(?9 )/10800000)",
3883 aPropertyMap
[PROP_Equations
] <<= createStringSequence( SAL_N_ELEMENTS( aStrings
), aStrings
);
3886 Sequence
< Sequence
< PropertyValue
> > aPropSequenceSequence (2);
3888 Sequence
< PropertyValue
> aPropSequence (4);
3890 aPropSequence
[0].Name
= "Position";
3891 static const CustomShapeProvider::ParameterPairData aData
=
3893 EnhancedCustomShapeParameterType::EQUATION
,
3894 EnhancedCustomShapeParameterType::EQUATION
,
3897 aPropSequence
[0].Value
= makeAny (createParameterPair(&aData
));
3900 aPropSequence
[1].Name
= "RangeYMaximum";
3901 EnhancedCustomShapeParameter aParameter
;
3902 Any
aAny ((sal_Int32
) 75000);
3903 aParameter
.Value
= aAny
;
3904 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
3905 aPropSequence
[1].Value
= makeAny (aParameter
);
3908 aPropSequence
[2].Name
= "RangeYMinimum";
3909 EnhancedCustomShapeParameter aParameter
;
3910 Any
aAny ((sal_Int32
) 1);
3911 aParameter
.Value
= aAny
;
3912 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
3913 aPropSequence
[2].Value
= makeAny (aParameter
);
3916 aPropSequence
[3].Name
= "RefY";
3917 Any
aAny ((sal_Int32
) 0);
3918 aPropSequence
[3].Value
= makeAny (aAny
);
3920 aPropSequenceSequence
[0] = aPropSequence
;
3923 Sequence
< PropertyValue
> aPropSequence (4);
3925 aPropSequence
[0].Name
= "Position";
3926 static const CustomShapeProvider::ParameterPairData aData
=
3928 EnhancedCustomShapeParameterType::EQUATION
,
3929 EnhancedCustomShapeParameterType::EQUATION
,
3932 aPropSequence
[0].Value
= makeAny (createParameterPair(&aData
));
3935 aPropSequence
[1].Name
= "RangeXMaximum";
3936 EnhancedCustomShapeParameter aParameter
;
3937 Any
aAny ((sal_Int32
) 2);
3938 aParameter
.Value
= aAny
;
3939 aParameter
.Type
= EnhancedCustomShapeParameterType::EQUATION
;
3940 aPropSequence
[1].Value
= makeAny (aParameter
);
3943 aPropSequence
[2].Name
= "RangeXMinimum";
3944 EnhancedCustomShapeParameter aParameter
;
3945 Any
aAny ((sal_Int32
) 0);
3946 aParameter
.Value
= aAny
;
3947 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
3948 aPropSequence
[2].Value
= makeAny (aParameter
);
3951 aPropSequence
[3].Name
= "RefX";
3952 Any
aAny ((sal_Int32
) 1);
3953 aPropSequence
[3].Value
= makeAny (aAny
);
3955 aPropSequenceSequence
[1] = aPropSequence
;
3957 aPropertyMap
[PROP_Handles
] <<= aPropSequenceSequence
;
3960 aPropertyMap
[PROP_MirroredX
] <<= Any ((sal_Bool
) sal_False
);
3963 aPropertyMap
[PROP_MirroredY
] <<= Any ((sal_Bool
) sal_False
);
3966 Sequence
< PropertyValue
> aPropSequence (3);
3968 aPropSequence
[0].Name
= "Coordinates";
3969 static const CustomShapeProvider::ParameterPairData aData
[] = {
3971 EnhancedCustomShapeParameterType::NORMAL
,
3972 EnhancedCustomShapeParameterType::EQUATION
,
3976 EnhancedCustomShapeParameterType::EQUATION
,
3977 EnhancedCustomShapeParameterType::EQUATION
,
3981 EnhancedCustomShapeParameterType::EQUATION
,
3982 EnhancedCustomShapeParameterType::EQUATION
,
3986 EnhancedCustomShapeParameterType::EQUATION
,
3987 EnhancedCustomShapeParameterType::NORMAL
,
3991 EnhancedCustomShapeParameterType::EQUATION
,
3992 EnhancedCustomShapeParameterType::EQUATION
,
3996 EnhancedCustomShapeParameterType::EQUATION
,
3997 EnhancedCustomShapeParameterType::EQUATION
,
4001 EnhancedCustomShapeParameterType::EQUATION
,
4002 EnhancedCustomShapeParameterType::EQUATION
,
4006 EnhancedCustomShapeParameterType::EQUATION
,
4007 EnhancedCustomShapeParameterType::EQUATION
,
4011 EnhancedCustomShapeParameterType::NORMAL
,
4012 EnhancedCustomShapeParameterType::EQUATION
,
4016 aPropSequence
[0].Value
= makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData
), aData
));
4019 aPropSequence
[1].Name
= "Segments";
4020 static const sal_uInt16 nValues
[] = {
4029 aPropSequence
[1].Value
= makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues
), nValues
));
4032 aPropSequence
[2].Name
= "TextFrames";
4033 Sequence
< EnhancedCustomShapeTextFrame
> aTextFrameSeq (1);
4035 EnhancedCustomShapeTextFrame aTextFrame
;
4037 static const CustomShapeProvider::ParameterPairData aData
=
4039 EnhancedCustomShapeParameterType::NORMAL
,
4040 EnhancedCustomShapeParameterType::NORMAL
,
4043 aTextFrame
.TopLeft
= createParameterPair(&aData
);
4046 static const CustomShapeProvider::ParameterPairData aData
=
4048 EnhancedCustomShapeParameterType::EQUATION
,
4049 EnhancedCustomShapeParameterType::EQUATION
,
4052 aTextFrame
.BottomRight
= createParameterPair(&aData
);
4054 aTextFrameSeq
[0] = aTextFrame
;
4056 aPropSequence
[2].Value
= makeAny (aTextFrameSeq
);
4058 aPropertyMap
[PROP_Path
] <<= aPropSequence
;
4061 awt::Rectangle aRectangle
;
4064 aRectangle
.Width
= 0;
4065 aRectangle
.Height
= 0;
4066 aPropertyMap
[PROP_ViewBox
] <<= aRectangle
;
4068 aPropertyMap
[ PROP_Type
] <<= OUString("ooxml-swooshArrow");
4070 return aPropertyMap
;
4073 class ShapeCflowChartSummingJunction
: public CustomShapeProvider
4075 virtual PropertyMap
getProperties()
4077 PropertyMap aPropertyMap
;
4080 aPropertyMap
[PROP_AdjustmentValues
] <<= Sequence
< OUString
>(0);
4083 static const char *aStrings
[] = {
4085 "?0 *cos(pi*(2700000)/10800000)",
4087 "?2 *sin(pi*(2700000)/10800000)",
4096 "(10800000)/60000.0",
4097 "(5400000)/60000.0",
4098 "(16200000)/60000.0",
4099 "(5400000)/60000.0",
4101 "(5400000)/60000.0",
4102 "(5400000)/60000.0",
4103 "(5400000)/60000.0",
4104 "(10800000)/60000.0",
4105 "(5400000)/60000.0",
4106 "(16200000)/60000.0",
4107 "(5400000)/60000.0",
4109 "(5400000)/60000.0",
4110 "(5400000)/60000.0",
4113 aPropertyMap
[PROP_Equations
] <<= createStringSequence( SAL_N_ELEMENTS( aStrings
), aStrings
);
4116 aPropertyMap
[PROP_Handles
] <<= Sequence
< OUString
>(0);
4119 aPropertyMap
[PROP_MirroredX
] <<= Any ((sal_Bool
) sal_False
);
4122 aPropertyMap
[PROP_MirroredY
] <<= Any ((sal_Bool
) sal_False
);
4125 Sequence
< PropertyValue
> aPropSequence (3);
4127 aPropSequence
[0].Name
= "Coordinates";
4128 static const CustomShapeProvider::ParameterPairData aData
[] = {
4130 EnhancedCustomShapeParameterType::NORMAL
,
4131 EnhancedCustomShapeParameterType::EQUATION
,
4135 EnhancedCustomShapeParameterType::EQUATION
,
4136 EnhancedCustomShapeParameterType::EQUATION
,
4140 EnhancedCustomShapeParameterType::EQUATION
,
4141 EnhancedCustomShapeParameterType::EQUATION
,
4145 EnhancedCustomShapeParameterType::EQUATION
,
4146 EnhancedCustomShapeParameterType::EQUATION
,
4150 EnhancedCustomShapeParameterType::EQUATION
,
4151 EnhancedCustomShapeParameterType::EQUATION
,
4155 EnhancedCustomShapeParameterType::EQUATION
,
4156 EnhancedCustomShapeParameterType::EQUATION
,
4160 EnhancedCustomShapeParameterType::EQUATION
,
4161 EnhancedCustomShapeParameterType::EQUATION
,
4165 EnhancedCustomShapeParameterType::EQUATION
,
4166 EnhancedCustomShapeParameterType::EQUATION
,
4170 EnhancedCustomShapeParameterType::EQUATION
,
4171 EnhancedCustomShapeParameterType::EQUATION
,
4175 EnhancedCustomShapeParameterType::EQUATION
,
4176 EnhancedCustomShapeParameterType::EQUATION
,
4180 EnhancedCustomShapeParameterType::EQUATION
,
4181 EnhancedCustomShapeParameterType::EQUATION
,
4185 EnhancedCustomShapeParameterType::EQUATION
,
4186 EnhancedCustomShapeParameterType::EQUATION
,
4190 EnhancedCustomShapeParameterType::EQUATION
,
4191 EnhancedCustomShapeParameterType::EQUATION
,
4195 EnhancedCustomShapeParameterType::NORMAL
,
4196 EnhancedCustomShapeParameterType::EQUATION
,
4200 EnhancedCustomShapeParameterType::EQUATION
,
4201 EnhancedCustomShapeParameterType::EQUATION
,
4205 EnhancedCustomShapeParameterType::EQUATION
,
4206 EnhancedCustomShapeParameterType::EQUATION
,
4210 EnhancedCustomShapeParameterType::EQUATION
,
4211 EnhancedCustomShapeParameterType::EQUATION
,
4215 EnhancedCustomShapeParameterType::EQUATION
,
4216 EnhancedCustomShapeParameterType::EQUATION
,
4220 EnhancedCustomShapeParameterType::EQUATION
,
4221 EnhancedCustomShapeParameterType::EQUATION
,
4225 EnhancedCustomShapeParameterType::EQUATION
,
4226 EnhancedCustomShapeParameterType::EQUATION
,
4230 EnhancedCustomShapeParameterType::EQUATION
,
4231 EnhancedCustomShapeParameterType::EQUATION
,
4235 EnhancedCustomShapeParameterType::EQUATION
,
4236 EnhancedCustomShapeParameterType::EQUATION
,
4240 aPropSequence
[0].Value
= makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData
), aData
));
4243 aPropSequence
[1].Name
= "Segments";
4244 static const sal_uInt16 nValues
[] = {
4263 aPropSequence
[1].Value
= makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues
), nValues
));
4266 aPropSequence
[2].Name
= "TextFrames";
4267 Sequence
< EnhancedCustomShapeTextFrame
> aTextFrameSeq (1);
4269 EnhancedCustomShapeTextFrame aTextFrame
;
4271 static const CustomShapeProvider::ParameterPairData aData
=
4273 EnhancedCustomShapeParameterType::EQUATION
,
4274 EnhancedCustomShapeParameterType::EQUATION
,
4277 aTextFrame
.TopLeft
= createParameterPair(&aData
);
4280 static const CustomShapeProvider::ParameterPairData aData
=
4282 EnhancedCustomShapeParameterType::EQUATION
,
4283 EnhancedCustomShapeParameterType::EQUATION
,
4286 aTextFrame
.BottomRight
= createParameterPair(&aData
);
4288 aTextFrameSeq
[0] = aTextFrame
;
4290 aPropSequence
[2].Value
= makeAny (aTextFrameSeq
);
4292 aPropertyMap
[PROP_Path
] <<= aPropSequence
;
4295 awt::Rectangle aRectangle
;
4298 aRectangle
.Width
= 0;
4299 aRectangle
.Height
= 0;
4300 aPropertyMap
[PROP_ViewBox
] <<= aRectangle
;
4302 aPropertyMap
[ PROP_Type
] <<= OUString("ooxml-flowChartSummingJunction");
4304 return aPropertyMap
;
4307 class ShapeClightningBolt
: public CustomShapeProvider
4309 virtual PropertyMap
getProperties()
4311 PropertyMap aPropertyMap
;
4314 aPropertyMap
[PROP_AdjustmentValues
] <<= Sequence
< OUString
>(0);
4317 static const char *aStrings
[] = {
4318 "logwidth*5022/21600",
4319 "logwidth*8472/21600",
4320 "logwidth*8757/21600",
4321 "logwidth*10012/21600",
4322 "logwidth*12860/21600",
4323 "logwidth*13917/21600",
4324 "logwidth*16577/21600",
4325 "logheight*3890/21600",
4326 "logheight*6080/21600",
4327 "logheight*7437/21600",
4328 "logheight*9705/21600",
4329 "logheight*12007/21600",
4330 "logheight*14277/21600",
4331 "logheight*14915/21600",
4335 aPropertyMap
[PROP_Equations
] <<= createStringSequence( SAL_N_ELEMENTS( aStrings
), aStrings
);
4338 aPropertyMap
[PROP_Handles
] <<= Sequence
< OUString
>(0);
4341 aPropertyMap
[PROP_MirroredX
] <<= Any ((sal_Bool
) sal_False
);
4344 aPropertyMap
[PROP_MirroredY
] <<= Any ((sal_Bool
) sal_False
);
4347 Sequence
< PropertyValue
> aPropSequence (4);
4349 aPropSequence
[0].Name
= "Coordinates";
4350 static const CustomShapeProvider::ParameterPairData aData
[] = {
4352 EnhancedCustomShapeParameterType::NORMAL
,
4353 EnhancedCustomShapeParameterType::NORMAL
,
4357 EnhancedCustomShapeParameterType::NORMAL
,
4358 EnhancedCustomShapeParameterType::NORMAL
,
4362 EnhancedCustomShapeParameterType::NORMAL
,
4363 EnhancedCustomShapeParameterType::NORMAL
,
4367 EnhancedCustomShapeParameterType::NORMAL
,
4368 EnhancedCustomShapeParameterType::NORMAL
,
4372 EnhancedCustomShapeParameterType::NORMAL
,
4373 EnhancedCustomShapeParameterType::NORMAL
,
4377 EnhancedCustomShapeParameterType::NORMAL
,
4378 EnhancedCustomShapeParameterType::NORMAL
,
4382 EnhancedCustomShapeParameterType::NORMAL
,
4383 EnhancedCustomShapeParameterType::NORMAL
,
4387 EnhancedCustomShapeParameterType::NORMAL
,
4388 EnhancedCustomShapeParameterType::NORMAL
,
4392 EnhancedCustomShapeParameterType::NORMAL
,
4393 EnhancedCustomShapeParameterType::NORMAL
,
4397 EnhancedCustomShapeParameterType::NORMAL
,
4398 EnhancedCustomShapeParameterType::NORMAL
,
4402 EnhancedCustomShapeParameterType::NORMAL
,
4403 EnhancedCustomShapeParameterType::NORMAL
,
4407 aPropSequence
[0].Value
= makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData
), aData
));
4410 aPropSequence
[1].Name
= "Segments";
4411 static const sal_uInt16 nValues
[] = {
4418 aPropSequence
[1].Value
= makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues
), nValues
));
4421 aPropSequence
[2].Name
= "SubViewSize";
4422 Sequence
< awt::Size
> aSizeSequence (1);
4425 aSize
.Width
= 21600;
4426 aSize
.Height
= 21600;
4427 aSizeSequence
[0] = aSize
;
4429 aPropSequence
[2].Value
= makeAny (aSizeSequence
);
4432 aPropSequence
[3].Name
= "TextFrames";
4433 Sequence
< EnhancedCustomShapeTextFrame
> aTextFrameSeq (1);
4435 EnhancedCustomShapeTextFrame aTextFrame
;
4437 static const CustomShapeProvider::ParameterPairData aData
=
4439 EnhancedCustomShapeParameterType::EQUATION
,
4440 EnhancedCustomShapeParameterType::EQUATION
,
4443 aTextFrame
.TopLeft
= createParameterPair(&aData
);
4446 static const CustomShapeProvider::ParameterPairData aData
=
4448 EnhancedCustomShapeParameterType::EQUATION
,
4449 EnhancedCustomShapeParameterType::EQUATION
,
4452 aTextFrame
.BottomRight
= createParameterPair(&aData
);
4454 aTextFrameSeq
[0] = aTextFrame
;
4456 aPropSequence
[3].Value
= makeAny (aTextFrameSeq
);
4458 aPropertyMap
[PROP_Path
] <<= aPropSequence
;
4461 awt::Rectangle aRectangle
;
4464 aRectangle
.Width
= 0;
4465 aRectangle
.Height
= 0;
4466 aPropertyMap
[PROP_ViewBox
] <<= aRectangle
;
4468 aPropertyMap
[ PROP_Type
] <<= OUString("ooxml-lightningBolt");
4470 return aPropertyMap
;
4473 class ShapeCflowChartDisplay
: public CustomShapeProvider
4475 virtual PropertyMap
getProperties()
4477 PropertyMap aPropertyMap
;
4480 aPropertyMap
[PROP_AdjustmentValues
] <<= Sequence
< OUString
>(0);
4483 static const char *aStrings
[] = {
4490 "(16200000)/60000.0",
4491 "(10800000)/60000.0"
4493 aPropertyMap
[PROP_Equations
] <<= createStringSequence( SAL_N_ELEMENTS( aStrings
), aStrings
);
4496 aPropertyMap
[PROP_Handles
] <<= Sequence
< OUString
>(0);
4499 aPropertyMap
[PROP_MirroredX
] <<= Any ((sal_Bool
) sal_False
);
4502 aPropertyMap
[PROP_MirroredY
] <<= Any ((sal_Bool
) sal_False
);
4505 Sequence
< PropertyValue
> aPropSequence (4);
4507 aPropSequence
[0].Name
= "Coordinates";
4508 static const CustomShapeProvider::ParameterPairData aData
[] = {
4510 EnhancedCustomShapeParameterType::NORMAL
,
4511 EnhancedCustomShapeParameterType::NORMAL
,
4515 EnhancedCustomShapeParameterType::NORMAL
,
4516 EnhancedCustomShapeParameterType::NORMAL
,
4520 EnhancedCustomShapeParameterType::NORMAL
,
4521 EnhancedCustomShapeParameterType::NORMAL
,
4525 EnhancedCustomShapeParameterType::NORMAL
,
4526 EnhancedCustomShapeParameterType::NORMAL
,
4530 EnhancedCustomShapeParameterType::EQUATION
,
4531 EnhancedCustomShapeParameterType::EQUATION
,
4535 EnhancedCustomShapeParameterType::NORMAL
,
4536 EnhancedCustomShapeParameterType::NORMAL
,
4540 aPropSequence
[0].Value
= makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData
), aData
));
4543 aPropSequence
[1].Name
= "Segments";
4544 static const sal_uInt16 nValues
[] = {
4553 aPropSequence
[1].Value
= makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues
), nValues
));
4556 aPropSequence
[2].Name
= "SubViewSize";
4557 Sequence
< awt::Size
> aSizeSequence (1);
4562 aSizeSequence
[0] = aSize
;
4564 aPropSequence
[2].Value
= makeAny (aSizeSequence
);
4567 aPropSequence
[3].Name
= "TextFrames";
4568 Sequence
< EnhancedCustomShapeTextFrame
> aTextFrameSeq (1);
4570 EnhancedCustomShapeTextFrame aTextFrame
;
4572 static const CustomShapeProvider::ParameterPairData aData
=
4574 EnhancedCustomShapeParameterType::EQUATION
,
4575 EnhancedCustomShapeParameterType::NORMAL
,
4578 aTextFrame
.TopLeft
= createParameterPair(&aData
);
4581 static const CustomShapeProvider::ParameterPairData aData
=
4583 EnhancedCustomShapeParameterType::EQUATION
,
4584 EnhancedCustomShapeParameterType::EQUATION
,
4587 aTextFrame
.BottomRight
= createParameterPair(&aData
);
4589 aTextFrameSeq
[0] = aTextFrame
;
4591 aPropSequence
[3].Value
= makeAny (aTextFrameSeq
);
4593 aPropertyMap
[PROP_Path
] <<= aPropSequence
;
4596 awt::Rectangle aRectangle
;
4599 aRectangle
.Width
= 0;
4600 aRectangle
.Height
= 0;
4601 aPropertyMap
[PROP_ViewBox
] <<= aRectangle
;
4603 aPropertyMap
[ PROP_Type
] <<= OUString("ooxml-flowChartDisplay");
4605 return aPropertyMap
;
4608 class ShapeCactionButtonBackPrevious
: public CustomShapeProvider
4610 virtual PropertyMap
getProperties()
4612 PropertyMap aPropertyMap
;
4615 aPropertyMap
[PROP_AdjustmentValues
] <<= Sequence
< OUString
>(0);
4618 static const char *aStrings
[] = {
4619 "min(logwidth,logheight)",
4630 aPropertyMap
[PROP_Equations
] <<= createStringSequence( SAL_N_ELEMENTS( aStrings
), aStrings
);
4633 aPropertyMap
[PROP_Handles
] <<= Sequence
< OUString
>(0);
4636 aPropertyMap
[PROP_MirroredX
] <<= Any ((sal_Bool
) sal_False
);
4639 aPropertyMap
[PROP_MirroredY
] <<= Any ((sal_Bool
) sal_False
);
4642 Sequence
< PropertyValue
> aPropSequence (3);
4644 aPropSequence
[0].Name
= "Coordinates";
4645 static const CustomShapeProvider::ParameterPairData aData
[] = {
4647 EnhancedCustomShapeParameterType::NORMAL
,
4648 EnhancedCustomShapeParameterType::NORMAL
,
4652 EnhancedCustomShapeParameterType::EQUATION
,
4653 EnhancedCustomShapeParameterType::NORMAL
,
4657 EnhancedCustomShapeParameterType::EQUATION
,
4658 EnhancedCustomShapeParameterType::EQUATION
,
4662 EnhancedCustomShapeParameterType::NORMAL
,
4663 EnhancedCustomShapeParameterType::EQUATION
,
4667 EnhancedCustomShapeParameterType::EQUATION
,
4668 EnhancedCustomShapeParameterType::EQUATION
,
4672 EnhancedCustomShapeParameterType::EQUATION
,
4673 EnhancedCustomShapeParameterType::EQUATION
,
4677 EnhancedCustomShapeParameterType::EQUATION
,
4678 EnhancedCustomShapeParameterType::EQUATION
,
4682 EnhancedCustomShapeParameterType::EQUATION
,
4683 EnhancedCustomShapeParameterType::EQUATION
,
4687 EnhancedCustomShapeParameterType::EQUATION
,
4688 EnhancedCustomShapeParameterType::EQUATION
,
4692 EnhancedCustomShapeParameterType::EQUATION
,
4693 EnhancedCustomShapeParameterType::EQUATION
,
4697 EnhancedCustomShapeParameterType::EQUATION
,
4698 EnhancedCustomShapeParameterType::EQUATION
,
4702 EnhancedCustomShapeParameterType::EQUATION
,
4703 EnhancedCustomShapeParameterType::EQUATION
,
4707 EnhancedCustomShapeParameterType::EQUATION
,
4708 EnhancedCustomShapeParameterType::EQUATION
,
4712 EnhancedCustomShapeParameterType::NORMAL
,
4713 EnhancedCustomShapeParameterType::NORMAL
,
4717 EnhancedCustomShapeParameterType::EQUATION
,
4718 EnhancedCustomShapeParameterType::NORMAL
,
4722 EnhancedCustomShapeParameterType::EQUATION
,
4723 EnhancedCustomShapeParameterType::EQUATION
,
4727 EnhancedCustomShapeParameterType::NORMAL
,
4728 EnhancedCustomShapeParameterType::EQUATION
,
4732 aPropSequence
[0].Value
= makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData
), aData
));
4735 aPropSequence
[1].Name
= "Segments";
4736 static const sal_uInt16 nValues
[] = {
4763 aPropSequence
[1].Value
= makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues
), nValues
));
4766 aPropSequence
[2].Name
= "TextFrames";
4767 Sequence
< EnhancedCustomShapeTextFrame
> aTextFrameSeq (1);
4769 EnhancedCustomShapeTextFrame aTextFrame
;
4771 static const CustomShapeProvider::ParameterPairData aData
=
4773 EnhancedCustomShapeParameterType::NORMAL
,
4774 EnhancedCustomShapeParameterType::NORMAL
,
4777 aTextFrame
.TopLeft
= createParameterPair(&aData
);
4780 static const CustomShapeProvider::ParameterPairData aData
=
4782 EnhancedCustomShapeParameterType::EQUATION
,
4783 EnhancedCustomShapeParameterType::EQUATION
,
4786 aTextFrame
.BottomRight
= createParameterPair(&aData
);
4788 aTextFrameSeq
[0] = aTextFrame
;
4790 aPropSequence
[2].Value
= makeAny (aTextFrameSeq
);
4792 aPropertyMap
[PROP_Path
] <<= aPropSequence
;
4795 awt::Rectangle aRectangle
;
4798 aRectangle
.Width
= 0;
4799 aRectangle
.Height
= 0;
4800 aPropertyMap
[PROP_ViewBox
] <<= aRectangle
;
4802 aPropertyMap
[ PROP_Type
] <<= OUString("ooxml-actionButtonBackPrevious");
4804 return aPropertyMap
;
4807 class ShapeCframe
: public CustomShapeProvider
4809 virtual PropertyMap
getProperties()
4811 PropertyMap aPropertyMap
;
4814 Sequence
< EnhancedCustomShapeAdjustmentValue
> aAdjSequence (1);
4816 Any
aAny ((sal_Int32
) 12500);
4817 aAdjSequence
[0].Value
= aAny
;
4818 aAdjSequence
[0].Name
= "adj1";
4820 aPropertyMap
[PROP_AdjustmentValues
] <<= aAdjSequence
;
4823 static const char *aStrings
[] = {
4824 "if(0-$0 ,0,if(50000-$0 ,$0 ,50000))",
4825 "min(logwidth,logheight)",
4834 aPropertyMap
[PROP_Equations
] <<= createStringSequence( SAL_N_ELEMENTS( aStrings
), aStrings
);
4837 Sequence
< Sequence
< PropertyValue
> > aPropSequenceSequence (1);
4839 Sequence
< PropertyValue
> aPropSequence (4);
4841 aPropSequence
[0].Name
= "Position";
4842 static const CustomShapeProvider::ParameterPairData aData
=
4844 EnhancedCustomShapeParameterType::EQUATION
,
4845 EnhancedCustomShapeParameterType::NORMAL
,
4848 aPropSequence
[0].Value
= makeAny (createParameterPair(&aData
));
4851 aPropSequence
[1].Name
= "RangeXMaximum";
4852 EnhancedCustomShapeParameter aParameter
;
4853 Any
aAny ((sal_Int32
) 50000);
4854 aParameter
.Value
= aAny
;
4855 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
4856 aPropSequence
[1].Value
= makeAny (aParameter
);
4859 aPropSequence
[2].Name
= "RangeXMinimum";
4860 EnhancedCustomShapeParameter aParameter
;
4861 Any
aAny ((sal_Int32
) 0);
4862 aParameter
.Value
= aAny
;
4863 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
4864 aPropSequence
[2].Value
= makeAny (aParameter
);
4867 aPropSequence
[3].Name
= "RefX";
4868 Any
aAny ((sal_Int32
) 0);
4869 aPropSequence
[3].Value
= makeAny (aAny
);
4871 aPropSequenceSequence
[0] = aPropSequence
;
4873 aPropertyMap
[PROP_Handles
] <<= aPropSequenceSequence
;
4876 aPropertyMap
[PROP_MirroredX
] <<= Any ((sal_Bool
) sal_False
);
4879 aPropertyMap
[PROP_MirroredY
] <<= Any ((sal_Bool
) sal_False
);
4882 Sequence
< PropertyValue
> aPropSequence (3);
4884 aPropSequence
[0].Name
= "Coordinates";
4885 static const CustomShapeProvider::ParameterPairData aData
[] = {
4887 EnhancedCustomShapeParameterType::NORMAL
,
4888 EnhancedCustomShapeParameterType::NORMAL
,
4892 EnhancedCustomShapeParameterType::EQUATION
,
4893 EnhancedCustomShapeParameterType::NORMAL
,
4897 EnhancedCustomShapeParameterType::EQUATION
,
4898 EnhancedCustomShapeParameterType::EQUATION
,
4902 EnhancedCustomShapeParameterType::NORMAL
,
4903 EnhancedCustomShapeParameterType::EQUATION
,
4907 EnhancedCustomShapeParameterType::EQUATION
,
4908 EnhancedCustomShapeParameterType::EQUATION
,
4912 EnhancedCustomShapeParameterType::EQUATION
,
4913 EnhancedCustomShapeParameterType::EQUATION
,
4917 EnhancedCustomShapeParameterType::EQUATION
,
4918 EnhancedCustomShapeParameterType::EQUATION
,
4922 EnhancedCustomShapeParameterType::EQUATION
,
4923 EnhancedCustomShapeParameterType::EQUATION
,
4927 aPropSequence
[0].Value
= makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData
), aData
));
4930 aPropSequence
[1].Name
= "Segments";
4931 static const sal_uInt16 nValues
[] = {
4941 aPropSequence
[1].Value
= makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues
), nValues
));
4944 aPropSequence
[2].Name
= "TextFrames";
4945 Sequence
< EnhancedCustomShapeTextFrame
> aTextFrameSeq (1);
4947 EnhancedCustomShapeTextFrame aTextFrame
;
4949 static const CustomShapeProvider::ParameterPairData aData
=
4951 EnhancedCustomShapeParameterType::EQUATION
,
4952 EnhancedCustomShapeParameterType::EQUATION
,
4955 aTextFrame
.TopLeft
= createParameterPair(&aData
);
4958 static const CustomShapeProvider::ParameterPairData aData
=
4960 EnhancedCustomShapeParameterType::EQUATION
,
4961 EnhancedCustomShapeParameterType::EQUATION
,
4964 aTextFrame
.BottomRight
= createParameterPair(&aData
);
4966 aTextFrameSeq
[0] = aTextFrame
;
4968 aPropSequence
[2].Value
= makeAny (aTextFrameSeq
);
4970 aPropertyMap
[PROP_Path
] <<= aPropSequence
;
4973 awt::Rectangle aRectangle
;
4976 aRectangle
.Width
= 0;
4977 aRectangle
.Height
= 0;
4978 aPropertyMap
[PROP_ViewBox
] <<= aRectangle
;
4980 aPropertyMap
[ PROP_Type
] <<= OUString("ooxml-frame");
4982 return aPropertyMap
;
4985 class ShapeCrtTriangle
: public CustomShapeProvider
4987 virtual PropertyMap
getProperties()
4989 PropertyMap aPropertyMap
;
4992 aPropertyMap
[PROP_AdjustmentValues
] <<= Sequence
< OUString
>(0);
4995 static const char *aStrings
[] = {
5005 aPropertyMap
[PROP_Equations
] <<= createStringSequence( SAL_N_ELEMENTS( aStrings
), aStrings
);
5008 aPropertyMap
[PROP_Handles
] <<= Sequence
< OUString
>(0);
5011 aPropertyMap
[PROP_MirroredX
] <<= Any ((sal_Bool
) sal_False
);
5014 aPropertyMap
[PROP_MirroredY
] <<= Any ((sal_Bool
) sal_False
);
5017 Sequence
< PropertyValue
> aPropSequence (3);
5019 aPropSequence
[0].Name
= "Coordinates";
5020 static const CustomShapeProvider::ParameterPairData aData
[] = {
5022 EnhancedCustomShapeParameterType::NORMAL
,
5023 EnhancedCustomShapeParameterType::EQUATION
,
5027 EnhancedCustomShapeParameterType::NORMAL
,
5028 EnhancedCustomShapeParameterType::NORMAL
,
5032 EnhancedCustomShapeParameterType::EQUATION
,
5033 EnhancedCustomShapeParameterType::EQUATION
,
5037 aPropSequence
[0].Value
= makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData
), aData
));
5040 aPropSequence
[1].Name
= "Segments";
5041 static const sal_uInt16 nValues
[] = {
5048 aPropSequence
[1].Value
= makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues
), nValues
));
5051 aPropSequence
[2].Name
= "TextFrames";
5052 Sequence
< EnhancedCustomShapeTextFrame
> aTextFrameSeq (1);
5054 EnhancedCustomShapeTextFrame aTextFrame
;
5056 static const CustomShapeProvider::ParameterPairData aData
=
5058 EnhancedCustomShapeParameterType::EQUATION
,
5059 EnhancedCustomShapeParameterType::EQUATION
,
5062 aTextFrame
.TopLeft
= createParameterPair(&aData
);
5065 static const CustomShapeProvider::ParameterPairData aData
=
5067 EnhancedCustomShapeParameterType::EQUATION
,
5068 EnhancedCustomShapeParameterType::EQUATION
,
5071 aTextFrame
.BottomRight
= createParameterPair(&aData
);
5073 aTextFrameSeq
[0] = aTextFrame
;
5075 aPropSequence
[2].Value
= makeAny (aTextFrameSeq
);
5077 aPropertyMap
[PROP_Path
] <<= aPropSequence
;
5080 awt::Rectangle aRectangle
;
5083 aRectangle
.Width
= 0;
5084 aRectangle
.Height
= 0;
5085 aPropertyMap
[PROP_ViewBox
] <<= aRectangle
;
5087 aPropertyMap
[ PROP_Type
] <<= OUString("ooxml-rtTriangle");
5089 return aPropertyMap
;
5092 class ShapeCflowChartMagneticTape
: public CustomShapeProvider
5094 virtual PropertyMap
getProperties()
5096 PropertyMap aPropertyMap
;
5099 aPropertyMap
[PROP_AdjustmentValues
] <<= Sequence
< OUString
>(0);
5102 static const char *aStrings
[] = {
5104 "?0 *cos(pi*(2700000)/10800000)",
5106 "?2 *sin(pi*(2700000)/10800000)",
5113 "(10800000*atan2(logheight,logwidth))/pi",
5116 "(5400000)/60000.0",
5117 "(5400000)/60000.0",
5118 "(10800000)/60000.0",
5119 "(5400000)/60000.0",
5120 "(16200000)/60000.0",
5121 "(5400000)/60000.0",
5125 aPropertyMap
[PROP_Equations
] <<= createStringSequence( SAL_N_ELEMENTS( aStrings
), aStrings
);
5128 aPropertyMap
[PROP_Handles
] <<= Sequence
< OUString
>(0);
5131 aPropertyMap
[PROP_MirroredX
] <<= Any ((sal_Bool
) sal_False
);
5134 aPropertyMap
[PROP_MirroredY
] <<= Any ((sal_Bool
) sal_False
);
5137 Sequence
< PropertyValue
> aPropSequence (3);
5139 aPropSequence
[0].Name
= "Coordinates";
5140 static const CustomShapeProvider::ParameterPairData aData
[] = {
5142 EnhancedCustomShapeParameterType::EQUATION
,
5143 EnhancedCustomShapeParameterType::EQUATION
,
5147 EnhancedCustomShapeParameterType::EQUATION
,
5148 EnhancedCustomShapeParameterType::EQUATION
,
5152 EnhancedCustomShapeParameterType::EQUATION
,
5153 EnhancedCustomShapeParameterType::EQUATION
,
5157 EnhancedCustomShapeParameterType::EQUATION
,
5158 EnhancedCustomShapeParameterType::EQUATION
,
5162 EnhancedCustomShapeParameterType::EQUATION
,
5163 EnhancedCustomShapeParameterType::EQUATION
,
5167 EnhancedCustomShapeParameterType::EQUATION
,
5168 EnhancedCustomShapeParameterType::EQUATION
,
5172 EnhancedCustomShapeParameterType::EQUATION
,
5173 EnhancedCustomShapeParameterType::EQUATION
,
5177 EnhancedCustomShapeParameterType::EQUATION
,
5178 EnhancedCustomShapeParameterType::EQUATION
,
5182 EnhancedCustomShapeParameterType::EQUATION
,
5183 EnhancedCustomShapeParameterType::EQUATION
,
5187 EnhancedCustomShapeParameterType::EQUATION
,
5188 EnhancedCustomShapeParameterType::EQUATION
,
5192 EnhancedCustomShapeParameterType::EQUATION
,
5193 EnhancedCustomShapeParameterType::EQUATION
,
5197 aPropSequence
[0].Value
= makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData
), aData
));
5200 aPropSequence
[1].Name
= "Segments";
5201 static const sal_uInt16 nValues
[] = {
5209 aPropSequence
[1].Value
= makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues
), nValues
));
5212 aPropSequence
[2].Name
= "TextFrames";
5213 Sequence
< EnhancedCustomShapeTextFrame
> aTextFrameSeq (1);
5215 EnhancedCustomShapeTextFrame aTextFrame
;
5217 static const CustomShapeProvider::ParameterPairData aData
=
5219 EnhancedCustomShapeParameterType::EQUATION
,
5220 EnhancedCustomShapeParameterType::EQUATION
,
5223 aTextFrame
.TopLeft
= createParameterPair(&aData
);
5226 static const CustomShapeProvider::ParameterPairData aData
=
5228 EnhancedCustomShapeParameterType::EQUATION
,
5229 EnhancedCustomShapeParameterType::EQUATION
,
5232 aTextFrame
.BottomRight
= createParameterPair(&aData
);
5234 aTextFrameSeq
[0] = aTextFrame
;
5236 aPropSequence
[2].Value
= makeAny (aTextFrameSeq
);
5238 aPropertyMap
[PROP_Path
] <<= aPropSequence
;
5241 awt::Rectangle aRectangle
;
5244 aRectangle
.Width
= 0;
5245 aRectangle
.Height
= 0;
5246 aPropertyMap
[PROP_ViewBox
] <<= aRectangle
;
5248 aPropertyMap
[ PROP_Type
] <<= OUString("ooxml-flowChartMagneticTape");
5250 return aPropertyMap
;
5253 class ShapeCcurvedRightArrow
: public CustomShapeProvider
5255 virtual PropertyMap
getProperties()
5257 PropertyMap aPropertyMap
;
5260 Sequence
< EnhancedCustomShapeAdjustmentValue
> aAdjSequence (3);
5262 Any
aAny ((sal_Int32
) 25000);
5263 aAdjSequence
[0].Value
= aAny
;
5264 aAdjSequence
[0].Name
= "adj1";
5267 Any
aAny ((sal_Int32
) 50000);
5268 aAdjSequence
[1].Value
= aAny
;
5269 aAdjSequence
[1].Name
= "adj2";
5272 Any
aAny ((sal_Int32
) 25000);
5273 aAdjSequence
[2].Value
= aAny
;
5274 aAdjSequence
[2].Name
= "adj3";
5276 aPropertyMap
[PROP_AdjustmentValues
] <<= aAdjSequence
;
5279 static const char *aStrings
[] = {
5280 "min(logwidth,logheight)",
5281 "50000*logheight/?0 ",
5282 "if(0-$1 ,0,if(?1 -$1 ,$1 ,?1 ))",
5283 "if(0-$0 ,0,if(?2 -$0 ,$0 ,?2 ))",
5294 "?13 *logwidth/?9 ",
5296 "if(0-$2 ,0,if(?15 -$2 ,$2 ,?15 ))",
5299 "logwidth*logwidth/1",
5303 "?22 *?8 /logwidth",
5313 "(10800000*atan2(?23 ,?17 ))/pi",
5319 "(10800000*atan2(?38 ,?14 ))/pi",
5326 "(10800000)/60000.0",
5330 "(16200000)/60000.0",
5334 "(10800000)/60000.0",
5338 "(10800000)/60000.0",
5339 "(5400000)/60000.0",
5340 "(16200000)/60000.0",
5343 aPropertyMap
[PROP_Equations
] <<= createStringSequence( SAL_N_ELEMENTS( aStrings
), aStrings
);
5346 Sequence
< Sequence
< PropertyValue
> > aPropSequenceSequence (3);
5348 Sequence
< PropertyValue
> aPropSequence (4);
5350 aPropSequence
[0].Name
= "Position";
5351 static const CustomShapeProvider::ParameterPairData aData
=
5353 EnhancedCustomShapeParameterType::EQUATION
,
5354 EnhancedCustomShapeParameterType::EQUATION
,
5357 aPropSequence
[0].Value
= makeAny (createParameterPair(&aData
));
5360 aPropSequence
[1].Name
= "RangeYMaximum";
5361 EnhancedCustomShapeParameter aParameter
;
5362 Any
aAny ((sal_Int32
) 2);
5363 aParameter
.Value
= aAny
;
5364 aParameter
.Type
= EnhancedCustomShapeParameterType::EQUATION
;
5365 aPropSequence
[1].Value
= makeAny (aParameter
);
5368 aPropSequence
[2].Name
= "RangeYMinimum";
5369 EnhancedCustomShapeParameter aParameter
;
5370 Any
aAny ((sal_Int32
) 0);
5371 aParameter
.Value
= aAny
;
5372 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
5373 aPropSequence
[2].Value
= makeAny (aParameter
);
5376 aPropSequence
[3].Name
= "RefY";
5377 Any
aAny ((sal_Int32
) 0);
5378 aPropSequence
[3].Value
= makeAny (aAny
);
5380 aPropSequenceSequence
[0] = aPropSequence
;
5383 Sequence
< PropertyValue
> aPropSequence (4);
5385 aPropSequence
[0].Name
= "Position";
5386 static const CustomShapeProvider::ParameterPairData aData
=
5388 EnhancedCustomShapeParameterType::EQUATION
,
5389 EnhancedCustomShapeParameterType::EQUATION
,
5392 aPropSequence
[0].Value
= makeAny (createParameterPair(&aData
));
5395 aPropSequence
[1].Name
= "RangeYMaximum";
5396 EnhancedCustomShapeParameter aParameter
;
5397 Any
aAny ((sal_Int32
) 1);
5398 aParameter
.Value
= aAny
;
5399 aParameter
.Type
= EnhancedCustomShapeParameterType::EQUATION
;
5400 aPropSequence
[1].Value
= makeAny (aParameter
);
5403 aPropSequence
[2].Name
= "RangeYMinimum";
5404 EnhancedCustomShapeParameter aParameter
;
5405 Any
aAny ((sal_Int32
) 0);
5406 aParameter
.Value
= aAny
;
5407 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
5408 aPropSequence
[2].Value
= makeAny (aParameter
);
5411 aPropSequence
[3].Name
= "RefY";
5412 Any
aAny ((sal_Int32
) 1);
5413 aPropSequence
[3].Value
= makeAny (aAny
);
5415 aPropSequenceSequence
[1] = aPropSequence
;
5418 Sequence
< PropertyValue
> aPropSequence (4);
5420 aPropSequence
[0].Name
= "Position";
5421 static const CustomShapeProvider::ParameterPairData aData
=
5423 EnhancedCustomShapeParameterType::EQUATION
,
5424 EnhancedCustomShapeParameterType::EQUATION
,
5427 aPropSequence
[0].Value
= makeAny (createParameterPair(&aData
));
5430 aPropSequence
[1].Name
= "RangeXMaximum";
5431 EnhancedCustomShapeParameter aParameter
;
5432 Any
aAny ((sal_Int32
) 15);
5433 aParameter
.Value
= aAny
;
5434 aParameter
.Type
= EnhancedCustomShapeParameterType::EQUATION
;
5435 aPropSequence
[1].Value
= makeAny (aParameter
);
5438 aPropSequence
[2].Name
= "RangeXMinimum";
5439 EnhancedCustomShapeParameter aParameter
;
5440 Any
aAny ((sal_Int32
) 0);
5441 aParameter
.Value
= aAny
;
5442 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
5443 aPropSequence
[2].Value
= makeAny (aParameter
);
5446 aPropSequence
[3].Name
= "RefX";
5447 Any
aAny ((sal_Int32
) 2);
5448 aPropSequence
[3].Value
= makeAny (aAny
);
5450 aPropSequenceSequence
[2] = aPropSequence
;
5452 aPropertyMap
[PROP_Handles
] <<= aPropSequenceSequence
;
5455 aPropertyMap
[PROP_MirroredX
] <<= Any ((sal_Bool
) sal_False
);
5458 aPropertyMap
[PROP_MirroredY
] <<= Any ((sal_Bool
) sal_False
);
5461 Sequence
< PropertyValue
> aPropSequence (3);
5463 aPropSequence
[0].Name
= "Coordinates";
5464 static const CustomShapeProvider::ParameterPairData aData
[] = {
5466 EnhancedCustomShapeParameterType::NORMAL
,
5467 EnhancedCustomShapeParameterType::EQUATION
,
5471 EnhancedCustomShapeParameterType::EQUATION
,
5472 EnhancedCustomShapeParameterType::EQUATION
,
5476 EnhancedCustomShapeParameterType::EQUATION
,
5477 EnhancedCustomShapeParameterType::EQUATION
,
5481 EnhancedCustomShapeParameterType::EQUATION
,
5482 EnhancedCustomShapeParameterType::EQUATION
,
5486 EnhancedCustomShapeParameterType::EQUATION
,
5487 EnhancedCustomShapeParameterType::EQUATION
,
5491 EnhancedCustomShapeParameterType::EQUATION
,
5492 EnhancedCustomShapeParameterType::EQUATION
,
5496 EnhancedCustomShapeParameterType::EQUATION
,
5497 EnhancedCustomShapeParameterType::EQUATION
,
5501 EnhancedCustomShapeParameterType::EQUATION
,
5502 EnhancedCustomShapeParameterType::EQUATION
,
5506 EnhancedCustomShapeParameterType::EQUATION
,
5507 EnhancedCustomShapeParameterType::EQUATION
,
5511 EnhancedCustomShapeParameterType::EQUATION
,
5512 EnhancedCustomShapeParameterType::EQUATION
,
5516 EnhancedCustomShapeParameterType::EQUATION
,
5517 EnhancedCustomShapeParameterType::EQUATION
,
5521 EnhancedCustomShapeParameterType::EQUATION
,
5522 EnhancedCustomShapeParameterType::EQUATION
,
5526 EnhancedCustomShapeParameterType::EQUATION
,
5527 EnhancedCustomShapeParameterType::EQUATION
,
5531 EnhancedCustomShapeParameterType::EQUATION
,
5532 EnhancedCustomShapeParameterType::EQUATION
,
5536 EnhancedCustomShapeParameterType::NORMAL
,
5537 EnhancedCustomShapeParameterType::EQUATION
,
5541 EnhancedCustomShapeParameterType::EQUATION
,
5542 EnhancedCustomShapeParameterType::EQUATION
,
5546 EnhancedCustomShapeParameterType::EQUATION
,
5547 EnhancedCustomShapeParameterType::EQUATION
,
5551 EnhancedCustomShapeParameterType::EQUATION
,
5552 EnhancedCustomShapeParameterType::EQUATION
,
5556 EnhancedCustomShapeParameterType::EQUATION
,
5557 EnhancedCustomShapeParameterType::EQUATION
,
5561 EnhancedCustomShapeParameterType::EQUATION
,
5562 EnhancedCustomShapeParameterType::EQUATION
,
5566 EnhancedCustomShapeParameterType::EQUATION
,
5567 EnhancedCustomShapeParameterType::EQUATION
,
5571 EnhancedCustomShapeParameterType::EQUATION
,
5572 EnhancedCustomShapeParameterType::EQUATION
,
5576 EnhancedCustomShapeParameterType::EQUATION
,
5577 EnhancedCustomShapeParameterType::EQUATION
,
5581 EnhancedCustomShapeParameterType::NORMAL
,
5582 EnhancedCustomShapeParameterType::EQUATION
,
5586 EnhancedCustomShapeParameterType::EQUATION
,
5587 EnhancedCustomShapeParameterType::EQUATION
,
5591 EnhancedCustomShapeParameterType::EQUATION
,
5592 EnhancedCustomShapeParameterType::EQUATION
,
5596 EnhancedCustomShapeParameterType::EQUATION
,
5597 EnhancedCustomShapeParameterType::EQUATION
,
5601 EnhancedCustomShapeParameterType::EQUATION
,
5602 EnhancedCustomShapeParameterType::EQUATION
,
5606 EnhancedCustomShapeParameterType::EQUATION
,
5607 EnhancedCustomShapeParameterType::EQUATION
,
5611 aPropSequence
[0].Value
= makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData
), aData
));
5614 aPropSequence
[1].Name
= "Segments";
5615 static const sal_uInt16 nValues
[] = {
5641 aPropSequence
[1].Value
= makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues
), nValues
));
5644 aPropSequence
[2].Name
= "TextFrames";
5645 Sequence
< EnhancedCustomShapeTextFrame
> aTextFrameSeq (1);
5647 EnhancedCustomShapeTextFrame aTextFrame
;
5649 static const CustomShapeProvider::ParameterPairData aData
=
5651 EnhancedCustomShapeParameterType::NORMAL
,
5652 EnhancedCustomShapeParameterType::NORMAL
,
5655 aTextFrame
.TopLeft
= createParameterPair(&aData
);
5658 static const CustomShapeProvider::ParameterPairData aData
=
5660 EnhancedCustomShapeParameterType::EQUATION
,
5661 EnhancedCustomShapeParameterType::EQUATION
,
5664 aTextFrame
.BottomRight
= createParameterPair(&aData
);
5666 aTextFrameSeq
[0] = aTextFrame
;
5668 aPropSequence
[2].Value
= makeAny (aTextFrameSeq
);
5670 aPropertyMap
[PROP_Path
] <<= aPropSequence
;
5673 awt::Rectangle aRectangle
;
5676 aRectangle
.Width
= 0;
5677 aRectangle
.Height
= 0;
5678 aPropertyMap
[PROP_ViewBox
] <<= aRectangle
;
5680 aPropertyMap
[ PROP_Type
] <<= OUString("ooxml-curvedRightArrow");
5682 return aPropertyMap
;
5685 class ShapeCleftUpArrow
: public CustomShapeProvider
5687 virtual PropertyMap
getProperties()
5689 PropertyMap aPropertyMap
;
5692 Sequence
< EnhancedCustomShapeAdjustmentValue
> aAdjSequence (3);
5694 Any
aAny ((sal_Int32
) 25000);
5695 aAdjSequence
[0].Value
= aAny
;
5696 aAdjSequence
[0].Name
= "adj1";
5699 Any
aAny ((sal_Int32
) 25000);
5700 aAdjSequence
[1].Value
= aAny
;
5701 aAdjSequence
[1].Name
= "adj2";
5704 Any
aAny ((sal_Int32
) 25000);
5705 aAdjSequence
[2].Value
= aAny
;
5706 aAdjSequence
[2].Name
= "adj3";
5708 aPropertyMap
[PROP_AdjustmentValues
] <<= aAdjSequence
;
5711 static const char *aStrings
[] = {
5712 "if(0-$1 ,0,if(50000-$1 ,$1 ,50000))",
5714 "if(0-$0 ,0,if(?1 -$0 ,$0 ,?1 ))",
5716 "if(0-$2 ,0,if(?3 -$2 ,$2 ,?3 ))",
5717 "min(logwidth,logheight)",
5736 aPropertyMap
[PROP_Equations
] <<= createStringSequence( SAL_N_ELEMENTS( aStrings
), aStrings
);
5739 Sequence
< Sequence
< PropertyValue
> > aPropSequenceSequence (3);
5741 Sequence
< PropertyValue
> aPropSequence (4);
5743 aPropSequence
[0].Name
= "Position";
5744 static const CustomShapeProvider::ParameterPairData aData
=
5746 EnhancedCustomShapeParameterType::EQUATION
,
5747 EnhancedCustomShapeParameterType::EQUATION
,
5750 aPropSequence
[0].Value
= makeAny (createParameterPair(&aData
));
5753 aPropSequence
[1].Name
= "RangeYMaximum";
5754 EnhancedCustomShapeParameter aParameter
;
5755 Any
aAny ((sal_Int32
) 1);
5756 aParameter
.Value
= aAny
;
5757 aParameter
.Type
= EnhancedCustomShapeParameterType::EQUATION
;
5758 aPropSequence
[1].Value
= makeAny (aParameter
);
5761 aPropSequence
[2].Name
= "RangeYMinimum";
5762 EnhancedCustomShapeParameter aParameter
;
5763 Any
aAny ((sal_Int32
) 0);
5764 aParameter
.Value
= aAny
;
5765 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
5766 aPropSequence
[2].Value
= makeAny (aParameter
);
5769 aPropSequence
[3].Name
= "RefY";
5770 Any
aAny ((sal_Int32
) 0);
5771 aPropSequence
[3].Value
= makeAny (aAny
);
5773 aPropSequenceSequence
[0] = aPropSequence
;
5776 Sequence
< PropertyValue
> aPropSequence (4);
5778 aPropSequence
[0].Name
= "Position";
5779 static const CustomShapeProvider::ParameterPairData aData
=
5781 EnhancedCustomShapeParameterType::EQUATION
,
5782 EnhancedCustomShapeParameterType::NORMAL
,
5785 aPropSequence
[0].Value
= makeAny (createParameterPair(&aData
));
5788 aPropSequence
[1].Name
= "RangeXMaximum";
5789 EnhancedCustomShapeParameter aParameter
;
5790 Any
aAny ((sal_Int32
) 50000);
5791 aParameter
.Value
= aAny
;
5792 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
5793 aPropSequence
[1].Value
= makeAny (aParameter
);
5796 aPropSequence
[2].Name
= "RangeXMinimum";
5797 EnhancedCustomShapeParameter aParameter
;
5798 Any
aAny ((sal_Int32
) 0);
5799 aParameter
.Value
= aAny
;
5800 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
5801 aPropSequence
[2].Value
= makeAny (aParameter
);
5804 aPropSequence
[3].Name
= "RefX";
5805 Any
aAny ((sal_Int32
) 1);
5806 aPropSequence
[3].Value
= makeAny (aAny
);
5808 aPropSequenceSequence
[1] = aPropSequence
;
5811 Sequence
< PropertyValue
> aPropSequence (4);
5813 aPropSequence
[0].Name
= "Position";
5814 static const CustomShapeProvider::ParameterPairData aData
=
5816 EnhancedCustomShapeParameterType::EQUATION
,
5817 EnhancedCustomShapeParameterType::EQUATION
,
5820 aPropSequence
[0].Value
= makeAny (createParameterPair(&aData
));
5823 aPropSequence
[1].Name
= "RangeYMaximum";
5824 EnhancedCustomShapeParameter aParameter
;
5825 Any
aAny ((sal_Int32
) 3);
5826 aParameter
.Value
= aAny
;
5827 aParameter
.Type
= EnhancedCustomShapeParameterType::EQUATION
;
5828 aPropSequence
[1].Value
= makeAny (aParameter
);
5831 aPropSequence
[2].Name
= "RangeYMinimum";
5832 EnhancedCustomShapeParameter aParameter
;
5833 Any
aAny ((sal_Int32
) 0);
5834 aParameter
.Value
= aAny
;
5835 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
5836 aPropSequence
[2].Value
= makeAny (aParameter
);
5839 aPropSequence
[3].Name
= "RefY";
5840 Any
aAny ((sal_Int32
) 2);
5841 aPropSequence
[3].Value
= makeAny (aAny
);
5843 aPropSequenceSequence
[2] = aPropSequence
;
5845 aPropertyMap
[PROP_Handles
] <<= aPropSequenceSequence
;
5848 aPropertyMap
[PROP_MirroredX
] <<= Any ((sal_Bool
) sal_False
);
5851 aPropertyMap
[PROP_MirroredY
] <<= Any ((sal_Bool
) sal_False
);
5854 Sequence
< PropertyValue
> aPropSequence (3);
5856 aPropSequence
[0].Name
= "Coordinates";
5857 static const CustomShapeProvider::ParameterPairData aData
[] = {
5859 EnhancedCustomShapeParameterType::NORMAL
,
5860 EnhancedCustomShapeParameterType::EQUATION
,
5864 EnhancedCustomShapeParameterType::EQUATION
,
5865 EnhancedCustomShapeParameterType::EQUATION
,
5869 EnhancedCustomShapeParameterType::EQUATION
,
5870 EnhancedCustomShapeParameterType::EQUATION
,
5874 EnhancedCustomShapeParameterType::EQUATION
,
5875 EnhancedCustomShapeParameterType::EQUATION
,
5879 EnhancedCustomShapeParameterType::EQUATION
,
5880 EnhancedCustomShapeParameterType::EQUATION
,
5884 EnhancedCustomShapeParameterType::EQUATION
,
5885 EnhancedCustomShapeParameterType::EQUATION
,
5889 EnhancedCustomShapeParameterType::EQUATION
,
5890 EnhancedCustomShapeParameterType::NORMAL
,
5894 EnhancedCustomShapeParameterType::EQUATION
,
5895 EnhancedCustomShapeParameterType::EQUATION
,
5899 EnhancedCustomShapeParameterType::EQUATION
,
5900 EnhancedCustomShapeParameterType::EQUATION
,
5904 EnhancedCustomShapeParameterType::EQUATION
,
5905 EnhancedCustomShapeParameterType::EQUATION
,
5909 EnhancedCustomShapeParameterType::EQUATION
,
5910 EnhancedCustomShapeParameterType::EQUATION
,
5914 EnhancedCustomShapeParameterType::EQUATION
,
5915 EnhancedCustomShapeParameterType::EQUATION
,
5919 aPropSequence
[0].Value
= makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData
), aData
));
5922 aPropSequence
[1].Name
= "Segments";
5923 static const sal_uInt16 nValues
[] = {
5930 aPropSequence
[1].Value
= makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues
), nValues
));
5933 aPropSequence
[2].Name
= "TextFrames";
5934 Sequence
< EnhancedCustomShapeTextFrame
> aTextFrameSeq (1);
5936 EnhancedCustomShapeTextFrame aTextFrame
;
5938 static const CustomShapeProvider::ParameterPairData aData
=
5940 EnhancedCustomShapeParameterType::EQUATION
,
5941 EnhancedCustomShapeParameterType::EQUATION
,
5944 aTextFrame
.TopLeft
= createParameterPair(&aData
);
5947 static const CustomShapeProvider::ParameterPairData aData
=
5949 EnhancedCustomShapeParameterType::EQUATION
,
5950 EnhancedCustomShapeParameterType::EQUATION
,
5953 aTextFrame
.BottomRight
= createParameterPair(&aData
);
5955 aTextFrameSeq
[0] = aTextFrame
;
5957 aPropSequence
[2].Value
= makeAny (aTextFrameSeq
);
5959 aPropertyMap
[PROP_Path
] <<= aPropSequence
;
5962 awt::Rectangle aRectangle
;
5965 aRectangle
.Width
= 0;
5966 aRectangle
.Height
= 0;
5967 aPropertyMap
[PROP_ViewBox
] <<= aRectangle
;
5969 aPropertyMap
[ PROP_Type
] <<= OUString("ooxml-leftUpArrow");
5971 return aPropertyMap
;
5974 class ShapeCwedgeEllipseCallout
: public CustomShapeProvider
5976 virtual PropertyMap
getProperties()
5978 PropertyMap aPropertyMap
;
5981 Sequence
< EnhancedCustomShapeAdjustmentValue
> aAdjSequence (2);
5983 Any
aAny ((sal_Int32
) -20833);
5984 aAdjSequence
[0].Value
= aAny
;
5985 aAdjSequence
[0].Name
= "adj1";
5988 Any
aAny ((sal_Int32
) 62500);
5989 aAdjSequence
[1].Value
= aAny
;
5990 aAdjSequence
[1].Name
= "adj2";
5992 aPropertyMap
[PROP_AdjustmentValues
] <<= aAdjSequence
;
5995 static const char *aStrings
[] = {
5996 "logwidth*$0 /100000",
5997 "logheight*$1 /100000",
6004 "(10800000*atan2(?7 ,?6 ))/pi",
6008 "?11 *cos(pi*(?9 )/10800000)",
6010 "?13 *sin(pi*(?9 )/10800000)",
6013 "?11 *cos(pi*(?10 )/10800000)",
6014 "?13 *sin(pi*(?10 )/10800000)",
6017 "(10800000*atan2(?14 ,?12 ))/pi",
6018 "(10800000*atan2(?18 ,?17 ))/pi",
6021 "if(?23 ,?23 ,?24 )",
6022 "?11 *cos(pi*(2700000)/10800000)",
6023 "?13 *sin(pi*(2700000)/10800000)",
6033 aPropertyMap
[PROP_Equations
] <<= createStringSequence( SAL_N_ELEMENTS( aStrings
), aStrings
);
6036 Sequence
< Sequence
< PropertyValue
> > aPropSequenceSequence (1);
6038 Sequence
< PropertyValue
> aPropSequence (7);
6040 aPropSequence
[0].Name
= "Position";
6041 static const CustomShapeProvider::ParameterPairData aData
=
6043 EnhancedCustomShapeParameterType::EQUATION
,
6044 EnhancedCustomShapeParameterType::EQUATION
,
6047 aPropSequence
[0].Value
= makeAny (createParameterPair(&aData
));
6050 aPropSequence
[1].Name
= "RangeXMaximum";
6051 EnhancedCustomShapeParameter aParameter
;
6052 Any
aAny ((sal_Int32
) 2147483647);
6053 aParameter
.Value
= aAny
;
6054 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
6055 aPropSequence
[1].Value
= makeAny (aParameter
);
6058 aPropSequence
[2].Name
= "RangeXMinimum";
6059 EnhancedCustomShapeParameter aParameter
;
6060 Any
aAny ((sal_Int32
) -2147483647);
6061 aParameter
.Value
= aAny
;
6062 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
6063 aPropSequence
[2].Value
= makeAny (aParameter
);
6066 aPropSequence
[3].Name
= "RangeYMaximum";
6067 EnhancedCustomShapeParameter aParameter
;
6068 Any
aAny ((sal_Int32
) 2147483647);
6069 aParameter
.Value
= aAny
;
6070 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
6071 aPropSequence
[3].Value
= makeAny (aParameter
);
6074 aPropSequence
[4].Name
= "RangeYMinimum";
6075 EnhancedCustomShapeParameter aParameter
;
6076 Any
aAny ((sal_Int32
) -2147483647);
6077 aParameter
.Value
= aAny
;
6078 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
6079 aPropSequence
[4].Value
= makeAny (aParameter
);
6082 aPropSequence
[5].Name
= "RefX";
6083 Any
aAny ((sal_Int32
) 0);
6084 aPropSequence
[5].Value
= makeAny (aAny
);
6087 aPropSequence
[6].Name
= "RefY";
6088 Any
aAny ((sal_Int32
) 1);
6089 aPropSequence
[6].Value
= makeAny (aAny
);
6091 aPropSequenceSequence
[0] = aPropSequence
;
6093 aPropertyMap
[PROP_Handles
] <<= aPropSequenceSequence
;
6096 aPropertyMap
[PROP_MirroredX
] <<= Any ((sal_Bool
) sal_False
);
6099 aPropertyMap
[PROP_MirroredY
] <<= Any ((sal_Bool
) sal_False
);
6102 Sequence
< PropertyValue
> aPropSequence (3);
6104 aPropSequence
[0].Name
= "Coordinates";
6105 static const CustomShapeProvider::ParameterPairData aData
[] = {
6107 EnhancedCustomShapeParameterType::EQUATION
,
6108 EnhancedCustomShapeParameterType::EQUATION
,
6112 EnhancedCustomShapeParameterType::EQUATION
,
6113 EnhancedCustomShapeParameterType::EQUATION
,
6117 EnhancedCustomShapeParameterType::EQUATION
,
6118 EnhancedCustomShapeParameterType::EQUATION
,
6122 EnhancedCustomShapeParameterType::EQUATION
,
6123 EnhancedCustomShapeParameterType::EQUATION
,
6127 aPropSequence
[0].Value
= makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData
), aData
));
6130 aPropSequence
[1].Name
= "Segments";
6131 static const sal_uInt16 nValues
[] = {
6139 aPropSequence
[1].Value
= makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues
), nValues
));
6142 aPropSequence
[2].Name
= "TextFrames";
6143 Sequence
< EnhancedCustomShapeTextFrame
> aTextFrameSeq (1);
6145 EnhancedCustomShapeTextFrame aTextFrame
;
6147 static const CustomShapeProvider::ParameterPairData aData
=
6149 EnhancedCustomShapeParameterType::EQUATION
,
6150 EnhancedCustomShapeParameterType::EQUATION
,
6153 aTextFrame
.TopLeft
= createParameterPair(&aData
);
6156 static const CustomShapeProvider::ParameterPairData aData
=
6158 EnhancedCustomShapeParameterType::EQUATION
,
6159 EnhancedCustomShapeParameterType::EQUATION
,
6162 aTextFrame
.BottomRight
= createParameterPair(&aData
);
6164 aTextFrameSeq
[0] = aTextFrame
;
6166 aPropSequence
[2].Value
= makeAny (aTextFrameSeq
);
6168 aPropertyMap
[PROP_Path
] <<= aPropSequence
;
6171 awt::Rectangle aRectangle
;
6174 aRectangle
.Width
= 0;
6175 aRectangle
.Height
= 0;
6176 aPropertyMap
[PROP_ViewBox
] <<= aRectangle
;
6178 aPropertyMap
[ PROP_Type
] <<= OUString("ooxml-wedgeEllipseCallout");
6180 return aPropertyMap
;
6183 class ShapeCdoubleWave
: public CustomShapeProvider
6185 virtual PropertyMap
getProperties()
6187 PropertyMap aPropertyMap
;
6190 Sequence
< EnhancedCustomShapeAdjustmentValue
> aAdjSequence (2);
6192 Any
aAny ((sal_Int32
) 6250);
6193 aAdjSequence
[0].Value
= aAny
;
6194 aAdjSequence
[0].Name
= "adj1";
6197 Any
aAny ((sal_Int32
) 0);
6198 aAdjSequence
[1].Value
= aAny
;
6199 aAdjSequence
[1].Name
= "adj2";
6201 aPropertyMap
[PROP_AdjustmentValues
] <<= aAdjSequence
;
6204 static const char *aStrings
[] = {
6205 "if(0-$0 ,0,if(12500-$0 ,$0 ,12500))",
6206 "if(-10000-$1 ,-10000,if(10000-$1 ,$1 ,10000))",
6207 "logheight*?0 /100000",
6214 "logwidth*?1 /100000",
6215 "logwidth*?1 /50000",
6240 "logheight*?0 /50000",
6245 aPropertyMap
[PROP_Equations
] <<= createStringSequence( SAL_N_ELEMENTS( aStrings
), aStrings
);
6248 Sequence
< Sequence
< PropertyValue
> > aPropSequenceSequence (2);
6250 Sequence
< PropertyValue
> aPropSequence (4);
6252 aPropSequence
[0].Name
= "Position";
6253 static const CustomShapeProvider::ParameterPairData aData
=
6255 EnhancedCustomShapeParameterType::NORMAL
,
6256 EnhancedCustomShapeParameterType::EQUATION
,
6259 aPropSequence
[0].Value
= makeAny (createParameterPair(&aData
));
6262 aPropSequence
[1].Name
= "RangeYMaximum";
6263 EnhancedCustomShapeParameter aParameter
;
6264 Any
aAny ((sal_Int32
) 12500);
6265 aParameter
.Value
= aAny
;
6266 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
6267 aPropSequence
[1].Value
= makeAny (aParameter
);
6270 aPropSequence
[2].Name
= "RangeYMinimum";
6271 EnhancedCustomShapeParameter aParameter
;
6272 Any
aAny ((sal_Int32
) 0);
6273 aParameter
.Value
= aAny
;
6274 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
6275 aPropSequence
[2].Value
= makeAny (aParameter
);
6278 aPropSequence
[3].Name
= "RefY";
6279 Any
aAny ((sal_Int32
) 0);
6280 aPropSequence
[3].Value
= makeAny (aAny
);
6282 aPropSequenceSequence
[0] = aPropSequence
;
6285 Sequence
< PropertyValue
> aPropSequence (4);
6287 aPropSequence
[0].Name
= "Position";
6288 static const CustomShapeProvider::ParameterPairData aData
=
6290 EnhancedCustomShapeParameterType::EQUATION
,
6291 EnhancedCustomShapeParameterType::EQUATION
,
6294 aPropSequence
[0].Value
= makeAny (createParameterPair(&aData
));
6297 aPropSequence
[1].Name
= "RangeXMaximum";
6298 EnhancedCustomShapeParameter aParameter
;
6299 Any
aAny ((sal_Int32
) 10000);
6300 aParameter
.Value
= aAny
;
6301 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
6302 aPropSequence
[1].Value
= makeAny (aParameter
);
6305 aPropSequence
[2].Name
= "RangeXMinimum";
6306 EnhancedCustomShapeParameter aParameter
;
6307 Any
aAny ((sal_Int32
) -10000);
6308 aParameter
.Value
= aAny
;
6309 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
6310 aPropSequence
[2].Value
= makeAny (aParameter
);
6313 aPropSequence
[3].Name
= "RefX";
6314 Any
aAny ((sal_Int32
) 1);
6315 aPropSequence
[3].Value
= makeAny (aAny
);
6317 aPropSequenceSequence
[1] = aPropSequence
;
6319 aPropertyMap
[PROP_Handles
] <<= aPropSequenceSequence
;
6322 aPropertyMap
[PROP_MirroredX
] <<= Any ((sal_Bool
) sal_False
);
6325 aPropertyMap
[PROP_MirroredY
] <<= Any ((sal_Bool
) sal_False
);
6328 Sequence
< PropertyValue
> aPropSequence (3);
6330 aPropSequence
[0].Name
= "Coordinates";
6331 static const CustomShapeProvider::ParameterPairData aData
[] = {
6333 EnhancedCustomShapeParameterType::EQUATION
,
6334 EnhancedCustomShapeParameterType::EQUATION
,
6338 EnhancedCustomShapeParameterType::EQUATION
,
6339 EnhancedCustomShapeParameterType::EQUATION
,
6343 EnhancedCustomShapeParameterType::EQUATION
,
6344 EnhancedCustomShapeParameterType::EQUATION
,
6348 EnhancedCustomShapeParameterType::EQUATION
,
6349 EnhancedCustomShapeParameterType::EQUATION
,
6353 EnhancedCustomShapeParameterType::EQUATION
,
6354 EnhancedCustomShapeParameterType::EQUATION
,
6358 EnhancedCustomShapeParameterType::EQUATION
,
6359 EnhancedCustomShapeParameterType::EQUATION
,
6363 EnhancedCustomShapeParameterType::EQUATION
,
6364 EnhancedCustomShapeParameterType::EQUATION
,
6368 EnhancedCustomShapeParameterType::EQUATION
,
6369 EnhancedCustomShapeParameterType::EQUATION
,
6373 EnhancedCustomShapeParameterType::EQUATION
,
6374 EnhancedCustomShapeParameterType::EQUATION
,
6378 EnhancedCustomShapeParameterType::EQUATION
,
6379 EnhancedCustomShapeParameterType::EQUATION
,
6383 EnhancedCustomShapeParameterType::EQUATION
,
6384 EnhancedCustomShapeParameterType::EQUATION
,
6388 EnhancedCustomShapeParameterType::EQUATION
,
6389 EnhancedCustomShapeParameterType::EQUATION
,
6393 EnhancedCustomShapeParameterType::EQUATION
,
6394 EnhancedCustomShapeParameterType::EQUATION
,
6398 EnhancedCustomShapeParameterType::EQUATION
,
6399 EnhancedCustomShapeParameterType::EQUATION
,
6403 aPropSequence
[0].Value
= makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData
), aData
));
6406 aPropSequence
[1].Name
= "Segments";
6407 static const sal_uInt16 nValues
[] = {
6416 aPropSequence
[1].Value
= makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues
), nValues
));
6419 aPropSequence
[2].Name
= "TextFrames";
6420 Sequence
< EnhancedCustomShapeTextFrame
> aTextFrameSeq (1);
6422 EnhancedCustomShapeTextFrame aTextFrame
;
6424 static const CustomShapeProvider::ParameterPairData aData
=
6426 EnhancedCustomShapeParameterType::EQUATION
,
6427 EnhancedCustomShapeParameterType::EQUATION
,
6430 aTextFrame
.TopLeft
= createParameterPair(&aData
);
6433 static const CustomShapeProvider::ParameterPairData aData
=
6435 EnhancedCustomShapeParameterType::EQUATION
,
6436 EnhancedCustomShapeParameterType::EQUATION
,
6439 aTextFrame
.BottomRight
= createParameterPair(&aData
);
6441 aTextFrameSeq
[0] = aTextFrame
;
6443 aPropSequence
[2].Value
= makeAny (aTextFrameSeq
);
6445 aPropertyMap
[PROP_Path
] <<= aPropSequence
;
6448 awt::Rectangle aRectangle
;
6451 aRectangle
.Width
= 0;
6452 aRectangle
.Height
= 0;
6453 aPropertyMap
[PROP_ViewBox
] <<= aRectangle
;
6455 aPropertyMap
[ PROP_Type
] <<= OUString("ooxml-doubleWave");
6457 return aPropertyMap
;
6460 class ShapeCbentArrow
: public CustomShapeProvider
6462 virtual PropertyMap
getProperties()
6464 PropertyMap aPropertyMap
;
6467 Sequence
< EnhancedCustomShapeAdjustmentValue
> aAdjSequence (4);
6469 Any
aAny ((sal_Int32
) 25000);
6470 aAdjSequence
[0].Value
= aAny
;
6471 aAdjSequence
[0].Name
= "adj1";
6474 Any
aAny ((sal_Int32
) 25000);
6475 aAdjSequence
[1].Value
= aAny
;
6476 aAdjSequence
[1].Name
= "adj2";
6479 Any
aAny ((sal_Int32
) 25000);
6480 aAdjSequence
[2].Value
= aAny
;
6481 aAdjSequence
[2].Name
= "adj3";
6484 Any
aAny ((sal_Int32
) 43750);
6485 aAdjSequence
[3].Value
= aAny
;
6486 aAdjSequence
[3].Name
= "adj4";
6488 aPropertyMap
[PROP_AdjustmentValues
] <<= aAdjSequence
;
6491 static const char *aStrings
[] = {
6492 "if(0-$1 ,0,if(50000-$1 ,$1 ,50000))",
6494 "if(0-$0 ,0,if(?1 -$0 ,$0 ,?1 ))",
6495 "if(0-$2 ,0,if(50000-$2 ,$2 ,50000))",
6496 "min(logwidth,logheight)",
6506 "if(0-$3 ,0,if(?13 -$3 ,$3 ,?13 ))",
6518 "(10800000)/60000.0",
6519 "(5400000)/60000.0",
6520 "(16200000)/60000.0",
6521 "(-5400000)/60000.0"
6523 aPropertyMap
[PROP_Equations
] <<= createStringSequence( SAL_N_ELEMENTS( aStrings
), aStrings
);
6526 Sequence
< Sequence
< PropertyValue
> > aPropSequenceSequence (4);
6528 Sequence
< PropertyValue
> aPropSequence (4);
6530 aPropSequence
[0].Name
= "Position";
6531 static const CustomShapeProvider::ParameterPairData aData
=
6533 EnhancedCustomShapeParameterType::EQUATION
,
6534 EnhancedCustomShapeParameterType::EQUATION
,
6537 aPropSequence
[0].Value
= makeAny (createParameterPair(&aData
));
6540 aPropSequence
[1].Name
= "RangeXMaximum";
6541 EnhancedCustomShapeParameter aParameter
;
6542 Any
aAny ((sal_Int32
) 1);
6543 aParameter
.Value
= aAny
;
6544 aParameter
.Type
= EnhancedCustomShapeParameterType::EQUATION
;
6545 aPropSequence
[1].Value
= makeAny (aParameter
);
6548 aPropSequence
[2].Name
= "RangeXMinimum";
6549 EnhancedCustomShapeParameter aParameter
;
6550 Any
aAny ((sal_Int32
) 0);
6551 aParameter
.Value
= aAny
;
6552 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
6553 aPropSequence
[2].Value
= makeAny (aParameter
);
6556 aPropSequence
[3].Name
= "RefX";
6557 Any
aAny ((sal_Int32
) 0);
6558 aPropSequence
[3].Value
= makeAny (aAny
);
6560 aPropSequenceSequence
[0] = aPropSequence
;
6563 Sequence
< PropertyValue
> aPropSequence (4);
6565 aPropSequence
[0].Name
= "Position";
6566 static const CustomShapeProvider::ParameterPairData aData
=
6568 EnhancedCustomShapeParameterType::EQUATION
,
6569 EnhancedCustomShapeParameterType::EQUATION
,
6572 aPropSequence
[0].Value
= makeAny (createParameterPair(&aData
));
6575 aPropSequence
[1].Name
= "RangeYMaximum";
6576 EnhancedCustomShapeParameter aParameter
;
6577 Any
aAny ((sal_Int32
) 50000);
6578 aParameter
.Value
= aAny
;
6579 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
6580 aPropSequence
[1].Value
= makeAny (aParameter
);
6583 aPropSequence
[2].Name
= "RangeYMinimum";
6584 EnhancedCustomShapeParameter aParameter
;
6585 Any
aAny ((sal_Int32
) 0);
6586 aParameter
.Value
= aAny
;
6587 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
6588 aPropSequence
[2].Value
= makeAny (aParameter
);
6591 aPropSequence
[3].Name
= "RefY";
6592 Any
aAny ((sal_Int32
) 1);
6593 aPropSequence
[3].Value
= makeAny (aAny
);
6595 aPropSequenceSequence
[1] = aPropSequence
;
6598 Sequence
< PropertyValue
> aPropSequence (4);
6600 aPropSequence
[0].Name
= "Position";
6601 static const CustomShapeProvider::ParameterPairData aData
=
6603 EnhancedCustomShapeParameterType::EQUATION
,
6604 EnhancedCustomShapeParameterType::NORMAL
,
6607 aPropSequence
[0].Value
= makeAny (createParameterPair(&aData
));
6610 aPropSequence
[1].Name
= "RangeXMaximum";
6611 EnhancedCustomShapeParameter aParameter
;
6612 Any
aAny ((sal_Int32
) 50000);
6613 aParameter
.Value
= aAny
;
6614 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
6615 aPropSequence
[1].Value
= makeAny (aParameter
);
6618 aPropSequence
[2].Name
= "RangeXMinimum";
6619 EnhancedCustomShapeParameter aParameter
;
6620 Any
aAny ((sal_Int32
) 0);
6621 aParameter
.Value
= aAny
;
6622 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
6623 aPropSequence
[2].Value
= makeAny (aParameter
);
6626 aPropSequence
[3].Name
= "RefX";
6627 Any
aAny ((sal_Int32
) 2);
6628 aPropSequence
[3].Value
= makeAny (aAny
);
6630 aPropSequenceSequence
[2] = aPropSequence
;
6633 Sequence
< PropertyValue
> aPropSequence (4);
6635 aPropSequence
[0].Name
= "Position";
6636 static const CustomShapeProvider::ParameterPairData aData
=
6638 EnhancedCustomShapeParameterType::EQUATION
,
6639 EnhancedCustomShapeParameterType::NORMAL
,
6642 aPropSequence
[0].Value
= makeAny (createParameterPair(&aData
));
6645 aPropSequence
[1].Name
= "RangeXMaximum";
6646 EnhancedCustomShapeParameter aParameter
;
6647 Any
aAny ((sal_Int32
) 13);
6648 aParameter
.Value
= aAny
;
6649 aParameter
.Type
= EnhancedCustomShapeParameterType::EQUATION
;
6650 aPropSequence
[1].Value
= makeAny (aParameter
);
6653 aPropSequence
[2].Name
= "RangeXMinimum";
6654 EnhancedCustomShapeParameter aParameter
;
6655 Any
aAny ((sal_Int32
) 0);
6656 aParameter
.Value
= aAny
;
6657 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
6658 aPropSequence
[2].Value
= makeAny (aParameter
);
6661 aPropSequence
[3].Name
= "RefX";
6662 Any
aAny ((sal_Int32
) 3);
6663 aPropSequence
[3].Value
= makeAny (aAny
);
6665 aPropSequenceSequence
[3] = aPropSequence
;
6667 aPropertyMap
[PROP_Handles
] <<= aPropSequenceSequence
;
6670 aPropertyMap
[PROP_MirroredX
] <<= Any ((sal_Bool
) sal_False
);
6673 aPropertyMap
[PROP_MirroredY
] <<= Any ((sal_Bool
) sal_False
);
6676 Sequence
< PropertyValue
> aPropSequence (3);
6678 aPropSequence
[0].Name
= "Coordinates";
6679 static const CustomShapeProvider::ParameterPairData aData
[] = {
6681 EnhancedCustomShapeParameterType::NORMAL
,
6682 EnhancedCustomShapeParameterType::EQUATION
,
6686 EnhancedCustomShapeParameterType::NORMAL
,
6687 EnhancedCustomShapeParameterType::EQUATION
,
6691 EnhancedCustomShapeParameterType::EQUATION
,
6692 EnhancedCustomShapeParameterType::EQUATION
,
6696 EnhancedCustomShapeParameterType::EQUATION
,
6697 EnhancedCustomShapeParameterType::EQUATION
,
6701 EnhancedCustomShapeParameterType::EQUATION
,
6702 EnhancedCustomShapeParameterType::EQUATION
,
6706 EnhancedCustomShapeParameterType::EQUATION
,
6707 EnhancedCustomShapeParameterType::NORMAL
,
6711 EnhancedCustomShapeParameterType::EQUATION
,
6712 EnhancedCustomShapeParameterType::EQUATION
,
6716 EnhancedCustomShapeParameterType::EQUATION
,
6717 EnhancedCustomShapeParameterType::EQUATION
,
6721 EnhancedCustomShapeParameterType::EQUATION
,
6722 EnhancedCustomShapeParameterType::EQUATION
,
6726 EnhancedCustomShapeParameterType::EQUATION
,
6727 EnhancedCustomShapeParameterType::EQUATION
,
6731 EnhancedCustomShapeParameterType::EQUATION
,
6732 EnhancedCustomShapeParameterType::EQUATION
,
6736 EnhancedCustomShapeParameterType::EQUATION
,
6737 EnhancedCustomShapeParameterType::EQUATION
,
6741 EnhancedCustomShapeParameterType::EQUATION
,
6742 EnhancedCustomShapeParameterType::EQUATION
,
6746 aPropSequence
[0].Value
= makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData
), aData
));
6749 aPropSequence
[1].Name
= "Segments";
6750 static const sal_uInt16 nValues
[] = {
6761 aPropSequence
[1].Value
= makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues
), nValues
));
6764 aPropSequence
[2].Name
= "TextFrames";
6765 Sequence
< EnhancedCustomShapeTextFrame
> aTextFrameSeq (1);
6767 EnhancedCustomShapeTextFrame aTextFrame
;
6769 static const CustomShapeProvider::ParameterPairData aData
=
6771 EnhancedCustomShapeParameterType::NORMAL
,
6772 EnhancedCustomShapeParameterType::NORMAL
,
6775 aTextFrame
.TopLeft
= createParameterPair(&aData
);
6778 static const CustomShapeProvider::ParameterPairData aData
=
6780 EnhancedCustomShapeParameterType::EQUATION
,
6781 EnhancedCustomShapeParameterType::EQUATION
,
6784 aTextFrame
.BottomRight
= createParameterPair(&aData
);
6786 aTextFrameSeq
[0] = aTextFrame
;
6788 aPropSequence
[2].Value
= makeAny (aTextFrameSeq
);
6790 aPropertyMap
[PROP_Path
] <<= aPropSequence
;
6793 awt::Rectangle aRectangle
;
6796 aRectangle
.Width
= 0;
6797 aRectangle
.Height
= 0;
6798 aPropertyMap
[PROP_ViewBox
] <<= aRectangle
;
6800 aPropertyMap
[ PROP_Type
] <<= OUString("ooxml-bentArrow");
6802 return aPropertyMap
;
6805 class ShapeCstar10
: public CustomShapeProvider
6807 virtual PropertyMap
getProperties()
6809 PropertyMap aPropertyMap
;
6812 Sequence
< EnhancedCustomShapeAdjustmentValue
> aAdjSequence (2);
6814 Any
aAny ((sal_Int32
) 42533);
6815 aAdjSequence
[0].Value
= aAny
;
6816 aAdjSequence
[0].Name
= "adj";
6819 Any
aAny ((sal_Int32
) 105146);
6820 aAdjSequence
[1].Value
= aAny
;
6821 aAdjSequence
[1].Name
= "hf";
6823 aPropertyMap
[PROP_AdjustmentValues
] <<= aAdjSequence
;
6826 static const char *aStrings
[] = {
6827 "if(0-$0 ,0,if(50000-$0 ,$0 ,50000))",
6838 "?10 *80902/100000",
6839 "?10 *30902/100000",
6847 "?18 *80902/100000",
6848 "?18 *30902/100000",
6849 "?19 *95106/100000",
6850 "?19 *58779/100000",
6864 aPropertyMap
[PROP_Equations
] <<= createStringSequence( SAL_N_ELEMENTS( aStrings
), aStrings
);
6867 Sequence
< Sequence
< PropertyValue
> > aPropSequenceSequence (1);
6869 Sequence
< PropertyValue
> aPropSequence (4);
6871 aPropSequence
[0].Name
= "Position";
6872 static const CustomShapeProvider::ParameterPairData aData
=
6874 EnhancedCustomShapeParameterType::EQUATION
,
6875 EnhancedCustomShapeParameterType::EQUATION
,
6878 aPropSequence
[0].Value
= makeAny (createParameterPair(&aData
));
6881 aPropSequence
[1].Name
= "RangeYMaximum";
6882 EnhancedCustomShapeParameter aParameter
;
6883 Any
aAny ((sal_Int32
) 50000);
6884 aParameter
.Value
= aAny
;
6885 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
6886 aPropSequence
[1].Value
= makeAny (aParameter
);
6889 aPropSequence
[2].Name
= "RangeYMinimum";
6890 EnhancedCustomShapeParameter aParameter
;
6891 Any
aAny ((sal_Int32
) 0);
6892 aParameter
.Value
= aAny
;
6893 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
6894 aPropSequence
[2].Value
= makeAny (aParameter
);
6897 aPropSequence
[3].Name
= "RefY";
6898 Any
aAny ((sal_Int32
) 0);
6899 aPropSequence
[3].Value
= makeAny (aAny
);
6901 aPropSequenceSequence
[0] = aPropSequence
;
6903 aPropertyMap
[PROP_Handles
] <<= aPropSequenceSequence
;
6906 aPropertyMap
[PROP_MirroredX
] <<= Any ((sal_Bool
) sal_False
);
6909 aPropertyMap
[PROP_MirroredY
] <<= Any ((sal_Bool
) sal_False
);
6912 Sequence
< PropertyValue
> aPropSequence (3);
6914 aPropSequence
[0].Name
= "Coordinates";
6915 static const CustomShapeProvider::ParameterPairData aData
[] = {
6917 EnhancedCustomShapeParameterType::EQUATION
,
6918 EnhancedCustomShapeParameterType::EQUATION
,
6922 EnhancedCustomShapeParameterType::EQUATION
,
6923 EnhancedCustomShapeParameterType::EQUATION
,
6927 EnhancedCustomShapeParameterType::EQUATION
,
6928 EnhancedCustomShapeParameterType::EQUATION
,
6932 EnhancedCustomShapeParameterType::EQUATION
,
6933 EnhancedCustomShapeParameterType::EQUATION
,
6937 EnhancedCustomShapeParameterType::EQUATION
,
6938 EnhancedCustomShapeParameterType::NORMAL
,
6942 EnhancedCustomShapeParameterType::EQUATION
,
6943 EnhancedCustomShapeParameterType::EQUATION
,
6947 EnhancedCustomShapeParameterType::EQUATION
,
6948 EnhancedCustomShapeParameterType::EQUATION
,
6952 EnhancedCustomShapeParameterType::EQUATION
,
6953 EnhancedCustomShapeParameterType::EQUATION
,
6957 EnhancedCustomShapeParameterType::EQUATION
,
6958 EnhancedCustomShapeParameterType::EQUATION
,
6962 EnhancedCustomShapeParameterType::EQUATION
,
6963 EnhancedCustomShapeParameterType::EQUATION
,
6967 EnhancedCustomShapeParameterType::EQUATION
,
6968 EnhancedCustomShapeParameterType::EQUATION
,
6972 EnhancedCustomShapeParameterType::EQUATION
,
6973 EnhancedCustomShapeParameterType::EQUATION
,
6977 EnhancedCustomShapeParameterType::EQUATION
,
6978 EnhancedCustomShapeParameterType::EQUATION
,
6982 EnhancedCustomShapeParameterType::EQUATION
,
6983 EnhancedCustomShapeParameterType::EQUATION
,
6987 EnhancedCustomShapeParameterType::EQUATION
,
6988 EnhancedCustomShapeParameterType::EQUATION
,
6992 EnhancedCustomShapeParameterType::EQUATION
,
6993 EnhancedCustomShapeParameterType::EQUATION
,
6997 EnhancedCustomShapeParameterType::EQUATION
,
6998 EnhancedCustomShapeParameterType::EQUATION
,
7002 EnhancedCustomShapeParameterType::EQUATION
,
7003 EnhancedCustomShapeParameterType::EQUATION
,
7007 EnhancedCustomShapeParameterType::EQUATION
,
7008 EnhancedCustomShapeParameterType::EQUATION
,
7012 EnhancedCustomShapeParameterType::EQUATION
,
7013 EnhancedCustomShapeParameterType::EQUATION
,
7017 aPropSequence
[0].Value
= makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData
), aData
));
7020 aPropSequence
[1].Name
= "Segments";
7021 static const sal_uInt16 nValues
[] = {
7028 aPropSequence
[1].Value
= makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues
), nValues
));
7031 aPropSequence
[2].Name
= "TextFrames";
7032 Sequence
< EnhancedCustomShapeTextFrame
> aTextFrameSeq (1);
7034 EnhancedCustomShapeTextFrame aTextFrame
;
7036 static const CustomShapeProvider::ParameterPairData aData
=
7038 EnhancedCustomShapeParameterType::EQUATION
,
7039 EnhancedCustomShapeParameterType::EQUATION
,
7042 aTextFrame
.TopLeft
= createParameterPair(&aData
);
7045 static const CustomShapeProvider::ParameterPairData aData
=
7047 EnhancedCustomShapeParameterType::EQUATION
,
7048 EnhancedCustomShapeParameterType::EQUATION
,
7051 aTextFrame
.BottomRight
= createParameterPair(&aData
);
7053 aTextFrameSeq
[0] = aTextFrame
;
7055 aPropSequence
[2].Value
= makeAny (aTextFrameSeq
);
7057 aPropertyMap
[PROP_Path
] <<= aPropSequence
;
7060 awt::Rectangle aRectangle
;
7063 aRectangle
.Width
= 0;
7064 aRectangle
.Height
= 0;
7065 aPropertyMap
[PROP_ViewBox
] <<= aRectangle
;
7067 aPropertyMap
[ PROP_Type
] <<= OUString("ooxml-star10");
7069 return aPropertyMap
;
7072 class ShapeCleftArrow
: public CustomShapeProvider
7074 virtual PropertyMap
getProperties()
7076 PropertyMap aPropertyMap
;
7079 Sequence
< EnhancedCustomShapeAdjustmentValue
> aAdjSequence (2);
7081 Any
aAny ((sal_Int32
) 50000);
7082 aAdjSequence
[0].Value
= aAny
;
7083 aAdjSequence
[0].Name
= "adj1";
7086 Any
aAny ((sal_Int32
) 50000);
7087 aAdjSequence
[1].Value
= aAny
;
7088 aAdjSequence
[1].Name
= "adj2";
7090 aPropertyMap
[PROP_AdjustmentValues
] <<= aAdjSequence
;
7093 static const char *aStrings
[] = {
7094 "min(logwidth,logheight)",
7095 "100000*logwidth/?0 ",
7096 "if(0-$0 ,0,if(100000-$0 ,$0 ,100000))",
7097 "if(0-$1 ,0,if(?1 -$1 ,$1 ,?1 ))",
7100 "logheight*?2 /200000",
7110 aPropertyMap
[PROP_Equations
] <<= createStringSequence( SAL_N_ELEMENTS( aStrings
), aStrings
);
7113 Sequence
< Sequence
< PropertyValue
> > aPropSequenceSequence (2);
7115 Sequence
< PropertyValue
> aPropSequence (4);
7117 aPropSequence
[0].Name
= "Position";
7118 static const CustomShapeProvider::ParameterPairData aData
=
7120 EnhancedCustomShapeParameterType::EQUATION
,
7121 EnhancedCustomShapeParameterType::EQUATION
,
7124 aPropSequence
[0].Value
= makeAny (createParameterPair(&aData
));
7127 aPropSequence
[1].Name
= "RangeYMaximum";
7128 EnhancedCustomShapeParameter aParameter
;
7129 Any
aAny ((sal_Int32
) 100000);
7130 aParameter
.Value
= aAny
;
7131 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
7132 aPropSequence
[1].Value
= makeAny (aParameter
);
7135 aPropSequence
[2].Name
= "RangeYMinimum";
7136 EnhancedCustomShapeParameter aParameter
;
7137 Any
aAny ((sal_Int32
) 0);
7138 aParameter
.Value
= aAny
;
7139 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
7140 aPropSequence
[2].Value
= makeAny (aParameter
);
7143 aPropSequence
[3].Name
= "RefY";
7144 Any
aAny ((sal_Int32
) 0);
7145 aPropSequence
[3].Value
= makeAny (aAny
);
7147 aPropSequenceSequence
[0] = aPropSequence
;
7150 Sequence
< PropertyValue
> aPropSequence (4);
7152 aPropSequence
[0].Name
= "Position";
7153 static const CustomShapeProvider::ParameterPairData aData
=
7155 EnhancedCustomShapeParameterType::EQUATION
,
7156 EnhancedCustomShapeParameterType::NORMAL
,
7159 aPropSequence
[0].Value
= makeAny (createParameterPair(&aData
));
7162 aPropSequence
[1].Name
= "RangeXMaximum";
7163 EnhancedCustomShapeParameter aParameter
;
7164 Any
aAny ((sal_Int32
) 1);
7165 aParameter
.Value
= aAny
;
7166 aParameter
.Type
= EnhancedCustomShapeParameterType::EQUATION
;
7167 aPropSequence
[1].Value
= makeAny (aParameter
);
7170 aPropSequence
[2].Name
= "RangeXMinimum";
7171 EnhancedCustomShapeParameter aParameter
;
7172 Any
aAny ((sal_Int32
) 0);
7173 aParameter
.Value
= aAny
;
7174 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
7175 aPropSequence
[2].Value
= makeAny (aParameter
);
7178 aPropSequence
[3].Name
= "RefX";
7179 Any
aAny ((sal_Int32
) 1);
7180 aPropSequence
[3].Value
= makeAny (aAny
);
7182 aPropSequenceSequence
[1] = aPropSequence
;
7184 aPropertyMap
[PROP_Handles
] <<= aPropSequenceSequence
;
7187 aPropertyMap
[PROP_MirroredX
] <<= Any ((sal_Bool
) sal_False
);
7190 aPropertyMap
[PROP_MirroredY
] <<= Any ((sal_Bool
) sal_False
);
7193 Sequence
< PropertyValue
> aPropSequence (3);
7195 aPropSequence
[0].Name
= "Coordinates";
7196 static const CustomShapeProvider::ParameterPairData aData
[] = {
7198 EnhancedCustomShapeParameterType::NORMAL
,
7199 EnhancedCustomShapeParameterType::EQUATION
,
7203 EnhancedCustomShapeParameterType::EQUATION
,
7204 EnhancedCustomShapeParameterType::NORMAL
,
7208 EnhancedCustomShapeParameterType::EQUATION
,
7209 EnhancedCustomShapeParameterType::EQUATION
,
7213 EnhancedCustomShapeParameterType::EQUATION
,
7214 EnhancedCustomShapeParameterType::EQUATION
,
7218 EnhancedCustomShapeParameterType::EQUATION
,
7219 EnhancedCustomShapeParameterType::EQUATION
,
7223 EnhancedCustomShapeParameterType::EQUATION
,
7224 EnhancedCustomShapeParameterType::EQUATION
,
7228 EnhancedCustomShapeParameterType::EQUATION
,
7229 EnhancedCustomShapeParameterType::EQUATION
,
7233 aPropSequence
[0].Value
= makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData
), aData
));
7236 aPropSequence
[1].Name
= "Segments";
7237 static const sal_uInt16 nValues
[] = {
7244 aPropSequence
[1].Value
= makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues
), nValues
));
7247 aPropSequence
[2].Name
= "TextFrames";
7248 Sequence
< EnhancedCustomShapeTextFrame
> aTextFrameSeq (1);
7250 EnhancedCustomShapeTextFrame aTextFrame
;
7252 static const CustomShapeProvider::ParameterPairData aData
=
7254 EnhancedCustomShapeParameterType::EQUATION
,
7255 EnhancedCustomShapeParameterType::EQUATION
,
7258 aTextFrame
.TopLeft
= createParameterPair(&aData
);
7261 static const CustomShapeProvider::ParameterPairData aData
=
7263 EnhancedCustomShapeParameterType::EQUATION
,
7264 EnhancedCustomShapeParameterType::EQUATION
,
7267 aTextFrame
.BottomRight
= createParameterPair(&aData
);
7269 aTextFrameSeq
[0] = aTextFrame
;
7271 aPropSequence
[2].Value
= makeAny (aTextFrameSeq
);
7273 aPropertyMap
[PROP_Path
] <<= aPropSequence
;
7276 awt::Rectangle aRectangle
;
7279 aRectangle
.Width
= 0;
7280 aRectangle
.Height
= 0;
7281 aPropertyMap
[PROP_ViewBox
] <<= aRectangle
;
7283 aPropertyMap
[ PROP_Type
] <<= OUString("ooxml-leftArrow");
7285 return aPropertyMap
;
7288 class ShapeCcurvedUpArrow
: public CustomShapeProvider
7290 virtual PropertyMap
getProperties()
7292 PropertyMap aPropertyMap
;
7295 Sequence
< EnhancedCustomShapeAdjustmentValue
> aAdjSequence (3);
7297 Any
aAny ((sal_Int32
) 25000);
7298 aAdjSequence
[0].Value
= aAny
;
7299 aAdjSequence
[0].Name
= "adj1";
7302 Any
aAny ((sal_Int32
) 50000);
7303 aAdjSequence
[1].Value
= aAny
;
7304 aAdjSequence
[1].Name
= "adj2";
7307 Any
aAny ((sal_Int32
) 25000);
7308 aAdjSequence
[2].Value
= aAny
;
7309 aAdjSequence
[2].Name
= "adj3";
7311 aPropertyMap
[PROP_AdjustmentValues
] <<= aAdjSequence
;
7314 static const char *aStrings
[] = {
7315 "min(logwidth,logheight)",
7316 "50000*logwidth/?0 ",
7317 "if(0-$1 ,0,if(?1 -$1 ,$1 ,?1 ))",
7318 "if(0-$0 ,0,if(100000-$0 ,$0 ,100000))",
7329 "?13 *logheight/?9 ",
7331 "if(0-$2 ,0,if(?15 -$2 ,$2 ,?15 ))",
7334 "logheight*logheight/1",
7338 "?22 *?8 /logheight",
7348 "(10800000*atan2(?23 ,?17 ))/pi",
7353 "(10800000*atan2(?37 ,?14 ))/pi",
7366 "(5400000)/60000.0",
7367 "(5400000)/60000.0",
7368 "(10800000)/60000.0",
7369 "(-5400000)/60000.0",
7374 "(5400000)/60000.0",
7375 "(5400000)/60000.0",
7376 "(10800000)/60000.0",
7377 "(-5400000)/60000.0"
7379 aPropertyMap
[PROP_Equations
] <<= createStringSequence( SAL_N_ELEMENTS( aStrings
), aStrings
);
7382 Sequence
< Sequence
< PropertyValue
> > aPropSequenceSequence (3);
7384 Sequence
< PropertyValue
> aPropSequence (4);
7386 aPropSequence
[0].Name
= "Position";
7387 static const CustomShapeProvider::ParameterPairData aData
=
7389 EnhancedCustomShapeParameterType::EQUATION
,
7390 EnhancedCustomShapeParameterType::EQUATION
,
7393 aPropSequence
[0].Value
= makeAny (createParameterPair(&aData
));
7396 aPropSequence
[1].Name
= "RangeXMaximum";
7397 EnhancedCustomShapeParameter aParameter
;
7398 Any
aAny ((sal_Int32
) 2);
7399 aParameter
.Value
= aAny
;
7400 aParameter
.Type
= EnhancedCustomShapeParameterType::EQUATION
;
7401 aPropSequence
[1].Value
= makeAny (aParameter
);
7404 aPropSequence
[2].Name
= "RangeXMinimum";
7405 EnhancedCustomShapeParameter aParameter
;
7406 Any
aAny ((sal_Int32
) 0);
7407 aParameter
.Value
= aAny
;
7408 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
7409 aPropSequence
[2].Value
= makeAny (aParameter
);
7412 aPropSequence
[3].Name
= "RefX";
7413 Any
aAny ((sal_Int32
) 0);
7414 aPropSequence
[3].Value
= makeAny (aAny
);
7416 aPropSequenceSequence
[0] = aPropSequence
;
7419 Sequence
< PropertyValue
> aPropSequence (4);
7421 aPropSequence
[0].Name
= "Position";
7422 static const CustomShapeProvider::ParameterPairData aData
=
7424 EnhancedCustomShapeParameterType::EQUATION
,
7425 EnhancedCustomShapeParameterType::NORMAL
,
7428 aPropSequence
[0].Value
= makeAny (createParameterPair(&aData
));
7431 aPropSequence
[1].Name
= "RangeXMaximum";
7432 EnhancedCustomShapeParameter aParameter
;
7433 Any
aAny ((sal_Int32
) 1);
7434 aParameter
.Value
= aAny
;
7435 aParameter
.Type
= EnhancedCustomShapeParameterType::EQUATION
;
7436 aPropSequence
[1].Value
= makeAny (aParameter
);
7439 aPropSequence
[2].Name
= "RangeXMinimum";
7440 EnhancedCustomShapeParameter aParameter
;
7441 Any
aAny ((sal_Int32
) 0);
7442 aParameter
.Value
= aAny
;
7443 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
7444 aPropSequence
[2].Value
= makeAny (aParameter
);
7447 aPropSequence
[3].Name
= "RefX";
7448 Any
aAny ((sal_Int32
) 1);
7449 aPropSequence
[3].Value
= makeAny (aAny
);
7451 aPropSequenceSequence
[1] = aPropSequence
;
7454 Sequence
< PropertyValue
> aPropSequence (4);
7456 aPropSequence
[0].Name
= "Position";
7457 static const CustomShapeProvider::ParameterPairData aData
=
7459 EnhancedCustomShapeParameterType::EQUATION
,
7460 EnhancedCustomShapeParameterType::EQUATION
,
7463 aPropSequence
[0].Value
= makeAny (createParameterPair(&aData
));
7466 aPropSequence
[1].Name
= "RangeYMaximum";
7467 EnhancedCustomShapeParameter aParameter
;
7468 Any
aAny ((sal_Int32
) 15);
7469 aParameter
.Value
= aAny
;
7470 aParameter
.Type
= EnhancedCustomShapeParameterType::EQUATION
;
7471 aPropSequence
[1].Value
= makeAny (aParameter
);
7474 aPropSequence
[2].Name
= "RangeYMinimum";
7475 EnhancedCustomShapeParameter aParameter
;
7476 Any
aAny ((sal_Int32
) 0);
7477 aParameter
.Value
= aAny
;
7478 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
7479 aPropSequence
[2].Value
= makeAny (aParameter
);
7482 aPropSequence
[3].Name
= "RefY";
7483 Any
aAny ((sal_Int32
) 2);
7484 aPropSequence
[3].Value
= makeAny (aAny
);
7486 aPropSequenceSequence
[2] = aPropSequence
;
7488 aPropertyMap
[PROP_Handles
] <<= aPropSequenceSequence
;
7491 aPropertyMap
[PROP_MirroredX
] <<= Any ((sal_Bool
) sal_False
);
7494 aPropertyMap
[PROP_MirroredY
] <<= Any ((sal_Bool
) sal_False
);
7497 Sequence
< PropertyValue
> aPropSequence (3);
7499 aPropSequence
[0].Name
= "Coordinates";
7500 static const CustomShapeProvider::ParameterPairData aData
[] = {
7502 EnhancedCustomShapeParameterType::EQUATION
,
7503 EnhancedCustomShapeParameterType::NORMAL
,
7507 EnhancedCustomShapeParameterType::EQUATION
,
7508 EnhancedCustomShapeParameterType::EQUATION
,
7512 EnhancedCustomShapeParameterType::EQUATION
,
7513 EnhancedCustomShapeParameterType::EQUATION
,
7517 EnhancedCustomShapeParameterType::EQUATION
,
7518 EnhancedCustomShapeParameterType::EQUATION
,
7522 EnhancedCustomShapeParameterType::EQUATION
,
7523 EnhancedCustomShapeParameterType::EQUATION
,
7527 EnhancedCustomShapeParameterType::EQUATION
,
7528 EnhancedCustomShapeParameterType::EQUATION
,
7532 EnhancedCustomShapeParameterType::EQUATION
,
7533 EnhancedCustomShapeParameterType::EQUATION
,
7537 EnhancedCustomShapeParameterType::EQUATION
,
7538 EnhancedCustomShapeParameterType::EQUATION
,
7542 EnhancedCustomShapeParameterType::EQUATION
,
7543 EnhancedCustomShapeParameterType::EQUATION
,
7547 EnhancedCustomShapeParameterType::EQUATION
,
7548 EnhancedCustomShapeParameterType::EQUATION
,
7552 EnhancedCustomShapeParameterType::EQUATION
,
7553 EnhancedCustomShapeParameterType::EQUATION
,
7557 EnhancedCustomShapeParameterType::EQUATION
,
7558 EnhancedCustomShapeParameterType::NORMAL
,
7562 EnhancedCustomShapeParameterType::EQUATION
,
7563 EnhancedCustomShapeParameterType::EQUATION
,
7567 EnhancedCustomShapeParameterType::EQUATION
,
7568 EnhancedCustomShapeParameterType::EQUATION
,
7572 EnhancedCustomShapeParameterType::EQUATION
,
7573 EnhancedCustomShapeParameterType::EQUATION
,
7577 EnhancedCustomShapeParameterType::EQUATION
,
7578 EnhancedCustomShapeParameterType::EQUATION
,
7582 EnhancedCustomShapeParameterType::EQUATION
,
7583 EnhancedCustomShapeParameterType::EQUATION
,
7587 EnhancedCustomShapeParameterType::EQUATION
,
7588 EnhancedCustomShapeParameterType::EQUATION
,
7592 EnhancedCustomShapeParameterType::EQUATION
,
7593 EnhancedCustomShapeParameterType::NORMAL
,
7597 EnhancedCustomShapeParameterType::EQUATION
,
7598 EnhancedCustomShapeParameterType::EQUATION
,
7602 EnhancedCustomShapeParameterType::EQUATION
,
7603 EnhancedCustomShapeParameterType::EQUATION
,
7607 EnhancedCustomShapeParameterType::EQUATION
,
7608 EnhancedCustomShapeParameterType::EQUATION
,
7612 EnhancedCustomShapeParameterType::EQUATION
,
7613 EnhancedCustomShapeParameterType::EQUATION
,
7617 EnhancedCustomShapeParameterType::EQUATION
,
7618 EnhancedCustomShapeParameterType::EQUATION
,
7622 EnhancedCustomShapeParameterType::EQUATION
,
7623 EnhancedCustomShapeParameterType::EQUATION
,
7627 EnhancedCustomShapeParameterType::EQUATION
,
7628 EnhancedCustomShapeParameterType::EQUATION
,
7632 EnhancedCustomShapeParameterType::EQUATION
,
7633 EnhancedCustomShapeParameterType::NORMAL
,
7637 EnhancedCustomShapeParameterType::EQUATION
,
7638 EnhancedCustomShapeParameterType::EQUATION
,
7642 EnhancedCustomShapeParameterType::EQUATION
,
7643 EnhancedCustomShapeParameterType::EQUATION
,
7647 aPropSequence
[0].Value
= makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData
), aData
));
7650 aPropSequence
[1].Name
= "Segments";
7651 static const sal_uInt16 nValues
[] = {
7679 aPropSequence
[1].Value
= makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues
), nValues
));
7682 aPropSequence
[2].Name
= "TextFrames";
7683 Sequence
< EnhancedCustomShapeTextFrame
> aTextFrameSeq (1);
7685 EnhancedCustomShapeTextFrame aTextFrame
;
7687 static const CustomShapeProvider::ParameterPairData aData
=
7689 EnhancedCustomShapeParameterType::NORMAL
,
7690 EnhancedCustomShapeParameterType::NORMAL
,
7693 aTextFrame
.TopLeft
= createParameterPair(&aData
);
7696 static const CustomShapeProvider::ParameterPairData aData
=
7698 EnhancedCustomShapeParameterType::EQUATION
,
7699 EnhancedCustomShapeParameterType::EQUATION
,
7702 aTextFrame
.BottomRight
= createParameterPair(&aData
);
7704 aTextFrameSeq
[0] = aTextFrame
;
7706 aPropSequence
[2].Value
= makeAny (aTextFrameSeq
);
7708 aPropertyMap
[PROP_Path
] <<= aPropSequence
;
7711 awt::Rectangle aRectangle
;
7714 aRectangle
.Width
= 0;
7715 aRectangle
.Height
= 0;
7716 aPropertyMap
[PROP_ViewBox
] <<= aRectangle
;
7718 aPropertyMap
[ PROP_Type
] <<= OUString("ooxml-curvedUpArrow");
7720 return aPropertyMap
;
7723 class ShapeCsnip1Rect
: public CustomShapeProvider
7725 virtual PropertyMap
getProperties()
7727 PropertyMap aPropertyMap
;
7730 Sequence
< EnhancedCustomShapeAdjustmentValue
> aAdjSequence (1);
7732 Any
aAny ((sal_Int32
) 16667);
7733 aAdjSequence
[0].Value
= aAny
;
7734 aAdjSequence
[0].Name
= "adj";
7736 aPropertyMap
[PROP_AdjustmentValues
] <<= aAdjSequence
;
7739 static const char *aStrings
[] = {
7740 "if(0-$0 ,0,if(50000-$0 ,$0 ,50000))",
7741 "min(logwidth,logheight)",
7751 aPropertyMap
[PROP_Equations
] <<= createStringSequence( SAL_N_ELEMENTS( aStrings
), aStrings
);
7754 Sequence
< Sequence
< PropertyValue
> > aPropSequenceSequence (1);
7756 Sequence
< PropertyValue
> aPropSequence (4);
7758 aPropSequence
[0].Name
= "Position";
7759 static const CustomShapeProvider::ParameterPairData aData
=
7761 EnhancedCustomShapeParameterType::EQUATION
,
7762 EnhancedCustomShapeParameterType::NORMAL
,
7765 aPropSequence
[0].Value
= makeAny (createParameterPair(&aData
));
7768 aPropSequence
[1].Name
= "RangeXMaximum";
7769 EnhancedCustomShapeParameter aParameter
;
7770 Any
aAny ((sal_Int32
) 50000);
7771 aParameter
.Value
= aAny
;
7772 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
7773 aPropSequence
[1].Value
= makeAny (aParameter
);
7776 aPropSequence
[2].Name
= "RangeXMinimum";
7777 EnhancedCustomShapeParameter aParameter
;
7778 Any
aAny ((sal_Int32
) 0);
7779 aParameter
.Value
= aAny
;
7780 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
7781 aPropSequence
[2].Value
= makeAny (aParameter
);
7784 aPropSequence
[3].Name
= "RefX";
7785 Any
aAny ((sal_Int32
) 0);
7786 aPropSequence
[3].Value
= makeAny (aAny
);
7788 aPropSequenceSequence
[0] = aPropSequence
;
7790 aPropertyMap
[PROP_Handles
] <<= aPropSequenceSequence
;
7793 aPropertyMap
[PROP_MirroredX
] <<= Any ((sal_Bool
) sal_False
);
7796 aPropertyMap
[PROP_MirroredY
] <<= Any ((sal_Bool
) sal_False
);
7799 Sequence
< PropertyValue
> aPropSequence (3);
7801 aPropSequence
[0].Name
= "Coordinates";
7802 static const CustomShapeProvider::ParameterPairData aData
[] = {
7804 EnhancedCustomShapeParameterType::NORMAL
,
7805 EnhancedCustomShapeParameterType::NORMAL
,
7809 EnhancedCustomShapeParameterType::EQUATION
,
7810 EnhancedCustomShapeParameterType::NORMAL
,
7814 EnhancedCustomShapeParameterType::EQUATION
,
7815 EnhancedCustomShapeParameterType::EQUATION
,
7819 EnhancedCustomShapeParameterType::EQUATION
,
7820 EnhancedCustomShapeParameterType::EQUATION
,
7824 EnhancedCustomShapeParameterType::NORMAL
,
7825 EnhancedCustomShapeParameterType::EQUATION
,
7829 aPropSequence
[0].Value
= makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData
), aData
));
7832 aPropSequence
[1].Name
= "Segments";
7833 static const sal_uInt16 nValues
[] = {
7840 aPropSequence
[1].Value
= makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues
), nValues
));
7843 aPropSequence
[2].Name
= "TextFrames";
7844 Sequence
< EnhancedCustomShapeTextFrame
> aTextFrameSeq (1);
7846 EnhancedCustomShapeTextFrame aTextFrame
;
7848 static const CustomShapeProvider::ParameterPairData aData
=
7850 EnhancedCustomShapeParameterType::NORMAL
,
7851 EnhancedCustomShapeParameterType::EQUATION
,
7854 aTextFrame
.TopLeft
= createParameterPair(&aData
);
7857 static const CustomShapeProvider::ParameterPairData aData
=
7859 EnhancedCustomShapeParameterType::EQUATION
,
7860 EnhancedCustomShapeParameterType::EQUATION
,
7863 aTextFrame
.BottomRight
= createParameterPair(&aData
);
7865 aTextFrameSeq
[0] = aTextFrame
;
7867 aPropSequence
[2].Value
= makeAny (aTextFrameSeq
);
7869 aPropertyMap
[PROP_Path
] <<= aPropSequence
;
7872 awt::Rectangle aRectangle
;
7875 aRectangle
.Width
= 0;
7876 aRectangle
.Height
= 0;
7877 aPropertyMap
[PROP_ViewBox
] <<= aRectangle
;
7879 aPropertyMap
[ PROP_Type
] <<= OUString("ooxml-snip1Rect");
7881 return aPropertyMap
;
7884 class ShapeCellipseRibbon2
: public CustomShapeProvider
7886 virtual PropertyMap
getProperties()
7888 PropertyMap aPropertyMap
;
7891 Sequence
< EnhancedCustomShapeAdjustmentValue
> aAdjSequence (3);
7893 Any
aAny ((sal_Int32
) 25000);
7894 aAdjSequence
[0].Value
= aAny
;
7895 aAdjSequence
[0].Name
= "adj1";
7898 Any
aAny ((sal_Int32
) 50000);
7899 aAdjSequence
[1].Value
= aAny
;
7900 aAdjSequence
[1].Name
= "adj2";
7903 Any
aAny ((sal_Int32
) 12500);
7904 aAdjSequence
[2].Value
= aAny
;
7905 aAdjSequence
[2].Name
= "adj3";
7907 aPropertyMap
[PROP_AdjustmentValues
] <<= aAdjSequence
;
7910 static const char *aStrings
[] = {
7911 "if(0-$0 ,0,if(100000-$0 ,$0 ,100000))",
7912 "if(25000-$1 ,25000,if(75000-$1 ,$1 ,75000))",
7917 "if(?5 -$2 ,?5 ,if(?0 -$2 ,$2 ,?0 ))",
7918 "logwidth*?1 /200000",
7926 "logheight*?6 /100000",
7928 "?11 *?11 /logwidth",
7936 "logheight*?0 /100000",
7969 aPropertyMap
[PROP_Equations
] <<= createStringSequence( SAL_N_ELEMENTS( aStrings
), aStrings
);
7972 Sequence
< Sequence
< PropertyValue
> > aPropSequenceSequence (3);
7974 Sequence
< PropertyValue
> aPropSequence (4);
7976 aPropSequence
[0].Name
= "Position";
7977 static const CustomShapeProvider::ParameterPairData aData
=
7979 EnhancedCustomShapeParameterType::EQUATION
,
7980 EnhancedCustomShapeParameterType::EQUATION
,
7983 aPropSequence
[0].Value
= makeAny (createParameterPair(&aData
));
7986 aPropSequence
[1].Name
= "RangeYMaximum";
7987 EnhancedCustomShapeParameter aParameter
;
7988 Any
aAny ((sal_Int32
) 100000);
7989 aParameter
.Value
= aAny
;
7990 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
7991 aPropSequence
[1].Value
= makeAny (aParameter
);
7994 aPropSequence
[2].Name
= "RangeYMinimum";
7995 EnhancedCustomShapeParameter aParameter
;
7996 Any
aAny ((sal_Int32
) 0);
7997 aParameter
.Value
= aAny
;
7998 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
7999 aPropSequence
[2].Value
= makeAny (aParameter
);
8002 aPropSequence
[3].Name
= "RefY";
8003 Any
aAny ((sal_Int32
) 0);
8004 aPropSequence
[3].Value
= makeAny (aAny
);
8006 aPropSequenceSequence
[0] = aPropSequence
;
8009 Sequence
< PropertyValue
> aPropSequence (4);
8011 aPropSequence
[0].Name
= "Position";
8012 static const CustomShapeProvider::ParameterPairData aData
=
8014 EnhancedCustomShapeParameterType::EQUATION
,
8015 EnhancedCustomShapeParameterType::NORMAL
,
8018 aPropSequence
[0].Value
= makeAny (createParameterPair(&aData
));
8021 aPropSequence
[1].Name
= "RangeXMaximum";
8022 EnhancedCustomShapeParameter aParameter
;
8023 Any
aAny ((sal_Int32
) 100000);
8024 aParameter
.Value
= aAny
;
8025 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
8026 aPropSequence
[1].Value
= makeAny (aParameter
);
8029 aPropSequence
[2].Name
= "RangeXMinimum";
8030 EnhancedCustomShapeParameter aParameter
;
8031 Any
aAny ((sal_Int32
) 25000);
8032 aParameter
.Value
= aAny
;
8033 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
8034 aPropSequence
[2].Value
= makeAny (aParameter
);
8037 aPropSequence
[3].Name
= "RefX";
8038 Any
aAny ((sal_Int32
) 1);
8039 aPropSequence
[3].Value
= makeAny (aAny
);
8041 aPropSequenceSequence
[1] = aPropSequence
;
8044 Sequence
< PropertyValue
> aPropSequence (4);
8046 aPropSequence
[0].Name
= "Position";
8047 static const CustomShapeProvider::ParameterPairData aData
=
8049 EnhancedCustomShapeParameterType::NORMAL
,
8050 EnhancedCustomShapeParameterType::EQUATION
,
8053 aPropSequence
[0].Value
= makeAny (createParameterPair(&aData
));
8056 aPropSequence
[1].Name
= "RangeYMaximum";
8057 EnhancedCustomShapeParameter aParameter
;
8058 Any
aAny ((sal_Int32
) 0);
8059 aParameter
.Value
= aAny
;
8060 aParameter
.Type
= EnhancedCustomShapeParameterType::EQUATION
;
8061 aPropSequence
[1].Value
= makeAny (aParameter
);
8064 aPropSequence
[2].Name
= "RangeYMinimum";
8065 EnhancedCustomShapeParameter aParameter
;
8066 Any
aAny ((sal_Int32
) 5);
8067 aParameter
.Value
= aAny
;
8068 aParameter
.Type
= EnhancedCustomShapeParameterType::EQUATION
;
8069 aPropSequence
[2].Value
= makeAny (aParameter
);
8072 aPropSequence
[3].Name
= "RefY";
8073 Any
aAny ((sal_Int32
) 2);
8074 aPropSequence
[3].Value
= makeAny (aAny
);
8076 aPropSequenceSequence
[2] = aPropSequence
;
8078 aPropertyMap
[PROP_Handles
] <<= aPropSequenceSequence
;
8081 aPropertyMap
[PROP_MirroredX
] <<= Any ((sal_Bool
) sal_False
);
8084 aPropertyMap
[PROP_MirroredY
] <<= Any ((sal_Bool
) sal_False
);
8087 Sequence
< PropertyValue
> aPropSequence (3);
8089 aPropSequence
[0].Name
= "Coordinates";
8090 static const CustomShapeProvider::ParameterPairData aData
[] = {
8092 EnhancedCustomShapeParameterType::NORMAL
,
8093 EnhancedCustomShapeParameterType::EQUATION
,
8097 EnhancedCustomShapeParameterType::EQUATION
,
8098 EnhancedCustomShapeParameterType::EQUATION
,
8102 EnhancedCustomShapeParameterType::EQUATION
,
8103 EnhancedCustomShapeParameterType::EQUATION
,
8107 EnhancedCustomShapeParameterType::EQUATION
,
8108 EnhancedCustomShapeParameterType::EQUATION
,
8112 EnhancedCustomShapeParameterType::EQUATION
,
8113 EnhancedCustomShapeParameterType::EQUATION
,
8117 EnhancedCustomShapeParameterType::EQUATION
,
8118 EnhancedCustomShapeParameterType::EQUATION
,
8122 EnhancedCustomShapeParameterType::EQUATION
,
8123 EnhancedCustomShapeParameterType::EQUATION
,
8127 EnhancedCustomShapeParameterType::EQUATION
,
8128 EnhancedCustomShapeParameterType::EQUATION
,
8132 EnhancedCustomShapeParameterType::EQUATION
,
8133 EnhancedCustomShapeParameterType::EQUATION
,
8137 EnhancedCustomShapeParameterType::EQUATION
,
8138 EnhancedCustomShapeParameterType::EQUATION
,
8142 EnhancedCustomShapeParameterType::EQUATION
,
8143 EnhancedCustomShapeParameterType::EQUATION
,
8147 EnhancedCustomShapeParameterType::EQUATION
,
8148 EnhancedCustomShapeParameterType::EQUATION
,
8152 EnhancedCustomShapeParameterType::EQUATION
,
8153 EnhancedCustomShapeParameterType::EQUATION
,
8157 EnhancedCustomShapeParameterType::EQUATION
,
8158 EnhancedCustomShapeParameterType::EQUATION
,
8162 EnhancedCustomShapeParameterType::EQUATION
,
8163 EnhancedCustomShapeParameterType::EQUATION
,
8167 EnhancedCustomShapeParameterType::EQUATION
,
8168 EnhancedCustomShapeParameterType::EQUATION
,
8172 EnhancedCustomShapeParameterType::EQUATION
,
8173 EnhancedCustomShapeParameterType::EQUATION
,
8177 EnhancedCustomShapeParameterType::EQUATION
,
8178 EnhancedCustomShapeParameterType::EQUATION
,
8182 EnhancedCustomShapeParameterType::NORMAL
,
8183 EnhancedCustomShapeParameterType::EQUATION
,
8187 EnhancedCustomShapeParameterType::EQUATION
,
8188 EnhancedCustomShapeParameterType::EQUATION
,
8192 EnhancedCustomShapeParameterType::EQUATION
,
8193 EnhancedCustomShapeParameterType::EQUATION
,
8197 EnhancedCustomShapeParameterType::EQUATION
,
8198 EnhancedCustomShapeParameterType::EQUATION
,
8202 EnhancedCustomShapeParameterType::EQUATION
,
8203 EnhancedCustomShapeParameterType::EQUATION
,
8207 EnhancedCustomShapeParameterType::EQUATION
,
8208 EnhancedCustomShapeParameterType::EQUATION
,
8212 EnhancedCustomShapeParameterType::EQUATION
,
8213 EnhancedCustomShapeParameterType::EQUATION
,
8217 EnhancedCustomShapeParameterType::EQUATION
,
8218 EnhancedCustomShapeParameterType::EQUATION
,
8222 EnhancedCustomShapeParameterType::EQUATION
,
8223 EnhancedCustomShapeParameterType::EQUATION
,
8227 EnhancedCustomShapeParameterType::EQUATION
,
8228 EnhancedCustomShapeParameterType::EQUATION
,
8232 EnhancedCustomShapeParameterType::EQUATION
,
8233 EnhancedCustomShapeParameterType::EQUATION
,
8237 EnhancedCustomShapeParameterType::NORMAL
,
8238 EnhancedCustomShapeParameterType::EQUATION
,
8242 EnhancedCustomShapeParameterType::EQUATION
,
8243 EnhancedCustomShapeParameterType::EQUATION
,
8247 EnhancedCustomShapeParameterType::NORMAL
,
8248 EnhancedCustomShapeParameterType::EQUATION
,
8252 EnhancedCustomShapeParameterType::EQUATION
,
8253 EnhancedCustomShapeParameterType::EQUATION
,
8257 EnhancedCustomShapeParameterType::EQUATION
,
8258 EnhancedCustomShapeParameterType::EQUATION
,
8262 EnhancedCustomShapeParameterType::EQUATION
,
8263 EnhancedCustomShapeParameterType::EQUATION
,
8267 EnhancedCustomShapeParameterType::EQUATION
,
8268 EnhancedCustomShapeParameterType::EQUATION
,
8272 EnhancedCustomShapeParameterType::EQUATION
,
8273 EnhancedCustomShapeParameterType::EQUATION
,
8277 EnhancedCustomShapeParameterType::EQUATION
,
8278 EnhancedCustomShapeParameterType::EQUATION
,
8282 EnhancedCustomShapeParameterType::EQUATION
,
8283 EnhancedCustomShapeParameterType::EQUATION
,
8287 EnhancedCustomShapeParameterType::EQUATION
,
8288 EnhancedCustomShapeParameterType::EQUATION
,
8292 EnhancedCustomShapeParameterType::EQUATION
,
8293 EnhancedCustomShapeParameterType::EQUATION
,
8297 EnhancedCustomShapeParameterType::EQUATION
,
8298 EnhancedCustomShapeParameterType::EQUATION
,
8302 EnhancedCustomShapeParameterType::EQUATION
,
8303 EnhancedCustomShapeParameterType::EQUATION
,
8307 EnhancedCustomShapeParameterType::EQUATION
,
8308 EnhancedCustomShapeParameterType::EQUATION
,
8312 EnhancedCustomShapeParameterType::EQUATION
,
8313 EnhancedCustomShapeParameterType::EQUATION
,
8317 EnhancedCustomShapeParameterType::EQUATION
,
8318 EnhancedCustomShapeParameterType::EQUATION
,
8322 EnhancedCustomShapeParameterType::EQUATION
,
8323 EnhancedCustomShapeParameterType::EQUATION
,
8327 EnhancedCustomShapeParameterType::EQUATION
,
8328 EnhancedCustomShapeParameterType::EQUATION
,
8332 EnhancedCustomShapeParameterType::EQUATION
,
8333 EnhancedCustomShapeParameterType::EQUATION
,
8337 EnhancedCustomShapeParameterType::NORMAL
,
8338 EnhancedCustomShapeParameterType::EQUATION
,
8342 EnhancedCustomShapeParameterType::EQUATION
,
8343 EnhancedCustomShapeParameterType::EQUATION
,
8347 EnhancedCustomShapeParameterType::EQUATION
,
8348 EnhancedCustomShapeParameterType::EQUATION
,
8352 EnhancedCustomShapeParameterType::EQUATION
,
8353 EnhancedCustomShapeParameterType::EQUATION
,
8357 EnhancedCustomShapeParameterType::EQUATION
,
8358 EnhancedCustomShapeParameterType::EQUATION
,
8362 EnhancedCustomShapeParameterType::EQUATION
,
8363 EnhancedCustomShapeParameterType::EQUATION
,
8367 EnhancedCustomShapeParameterType::EQUATION
,
8368 EnhancedCustomShapeParameterType::EQUATION
,
8372 EnhancedCustomShapeParameterType::EQUATION
,
8373 EnhancedCustomShapeParameterType::EQUATION
,
8377 EnhancedCustomShapeParameterType::EQUATION
,
8378 EnhancedCustomShapeParameterType::EQUATION
,
8382 aPropSequence
[0].Value
= makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData
), aData
));
8385 aPropSequence
[1].Name
= "Segments";
8386 static const sal_uInt16 nValues
[] = {
8438 aPropSequence
[1].Value
= makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues
), nValues
));
8441 aPropSequence
[2].Name
= "TextFrames";
8442 Sequence
< EnhancedCustomShapeTextFrame
> aTextFrameSeq (1);
8444 EnhancedCustomShapeTextFrame aTextFrame
;
8446 static const CustomShapeProvider::ParameterPairData aData
=
8448 EnhancedCustomShapeParameterType::EQUATION
,
8449 EnhancedCustomShapeParameterType::EQUATION
,
8452 aTextFrame
.TopLeft
= createParameterPair(&aData
);
8455 static const CustomShapeProvider::ParameterPairData aData
=
8457 EnhancedCustomShapeParameterType::EQUATION
,
8458 EnhancedCustomShapeParameterType::EQUATION
,
8461 aTextFrame
.BottomRight
= createParameterPair(&aData
);
8463 aTextFrameSeq
[0] = aTextFrame
;
8465 aPropSequence
[2].Value
= makeAny (aTextFrameSeq
);
8467 aPropertyMap
[PROP_Path
] <<= aPropSequence
;
8470 awt::Rectangle aRectangle
;
8473 aRectangle
.Width
= 0;
8474 aRectangle
.Height
= 0;
8475 aPropertyMap
[PROP_ViewBox
] <<= aRectangle
;
8477 aPropertyMap
[ PROP_Type
] <<= OUString("ooxml-ellipseRibbon2");
8479 return aPropertyMap
;
8482 class ShapeCplus
: public CustomShapeProvider
8484 virtual PropertyMap
getProperties()
8486 PropertyMap aPropertyMap
;
8489 Sequence
< EnhancedCustomShapeAdjustmentValue
> aAdjSequence (1);
8491 Any
aAny ((sal_Int32
) 25000);
8492 aAdjSequence
[0].Value
= aAny
;
8493 aAdjSequence
[0].Name
= "adj";
8495 aPropertyMap
[PROP_AdjustmentValues
] <<= aAdjSequence
;
8498 static const char *aStrings
[] = {
8499 "if(0-$0 ,0,if(50000-$0 ,$0 ,50000))",
8500 "min(logwidth,logheight)",
8504 "logwidth+0-logheight",
8506 "if(?5 ,logwidth,?3 )",
8508 "if(?5 ,?4 ,logheight)",
8514 aPropertyMap
[PROP_Equations
] <<= createStringSequence( SAL_N_ELEMENTS( aStrings
), aStrings
);
8517 Sequence
< Sequence
< PropertyValue
> > aPropSequenceSequence (1);
8519 Sequence
< PropertyValue
> aPropSequence (4);
8521 aPropSequence
[0].Name
= "Position";
8522 static const CustomShapeProvider::ParameterPairData aData
=
8524 EnhancedCustomShapeParameterType::EQUATION
,
8525 EnhancedCustomShapeParameterType::NORMAL
,
8528 aPropSequence
[0].Value
= makeAny (createParameterPair(&aData
));
8531 aPropSequence
[1].Name
= "RangeXMaximum";
8532 EnhancedCustomShapeParameter aParameter
;
8533 Any
aAny ((sal_Int32
) 50000);
8534 aParameter
.Value
= aAny
;
8535 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
8536 aPropSequence
[1].Value
= makeAny (aParameter
);
8539 aPropSequence
[2].Name
= "RangeXMinimum";
8540 EnhancedCustomShapeParameter aParameter
;
8541 Any
aAny ((sal_Int32
) 0);
8542 aParameter
.Value
= aAny
;
8543 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
8544 aPropSequence
[2].Value
= makeAny (aParameter
);
8547 aPropSequence
[3].Name
= "RefX";
8548 Any
aAny ((sal_Int32
) 0);
8549 aPropSequence
[3].Value
= makeAny (aAny
);
8551 aPropSequenceSequence
[0] = aPropSequence
;
8553 aPropertyMap
[PROP_Handles
] <<= aPropSequenceSequence
;
8556 aPropertyMap
[PROP_MirroredX
] <<= Any ((sal_Bool
) sal_False
);
8559 aPropertyMap
[PROP_MirroredY
] <<= Any ((sal_Bool
) sal_False
);
8562 Sequence
< PropertyValue
> aPropSequence (3);
8564 aPropSequence
[0].Name
= "Coordinates";
8565 static const CustomShapeProvider::ParameterPairData aData
[] = {
8567 EnhancedCustomShapeParameterType::NORMAL
,
8568 EnhancedCustomShapeParameterType::EQUATION
,
8572 EnhancedCustomShapeParameterType::EQUATION
,
8573 EnhancedCustomShapeParameterType::EQUATION
,
8577 EnhancedCustomShapeParameterType::EQUATION
,
8578 EnhancedCustomShapeParameterType::NORMAL
,
8582 EnhancedCustomShapeParameterType::EQUATION
,
8583 EnhancedCustomShapeParameterType::NORMAL
,
8587 EnhancedCustomShapeParameterType::EQUATION
,
8588 EnhancedCustomShapeParameterType::EQUATION
,
8592 EnhancedCustomShapeParameterType::EQUATION
,
8593 EnhancedCustomShapeParameterType::EQUATION
,
8597 EnhancedCustomShapeParameterType::EQUATION
,
8598 EnhancedCustomShapeParameterType::EQUATION
,
8602 EnhancedCustomShapeParameterType::EQUATION
,
8603 EnhancedCustomShapeParameterType::EQUATION
,
8607 EnhancedCustomShapeParameterType::EQUATION
,
8608 EnhancedCustomShapeParameterType::EQUATION
,
8612 EnhancedCustomShapeParameterType::EQUATION
,
8613 EnhancedCustomShapeParameterType::EQUATION
,
8617 EnhancedCustomShapeParameterType::EQUATION
,
8618 EnhancedCustomShapeParameterType::EQUATION
,
8622 EnhancedCustomShapeParameterType::NORMAL
,
8623 EnhancedCustomShapeParameterType::EQUATION
,
8627 aPropSequence
[0].Value
= makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData
), aData
));
8630 aPropSequence
[1].Name
= "Segments";
8631 static const sal_uInt16 nValues
[] = {
8638 aPropSequence
[1].Value
= makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues
), nValues
));
8641 aPropSequence
[2].Name
= "TextFrames";
8642 Sequence
< EnhancedCustomShapeTextFrame
> aTextFrameSeq (1);
8644 EnhancedCustomShapeTextFrame aTextFrame
;
8646 static const CustomShapeProvider::ParameterPairData aData
=
8648 EnhancedCustomShapeParameterType::EQUATION
,
8649 EnhancedCustomShapeParameterType::EQUATION
,
8652 aTextFrame
.TopLeft
= createParameterPair(&aData
);
8655 static const CustomShapeProvider::ParameterPairData aData
=
8657 EnhancedCustomShapeParameterType::EQUATION
,
8658 EnhancedCustomShapeParameterType::EQUATION
,
8661 aTextFrame
.BottomRight
= createParameterPair(&aData
);
8663 aTextFrameSeq
[0] = aTextFrame
;
8665 aPropSequence
[2].Value
= makeAny (aTextFrameSeq
);
8667 aPropertyMap
[PROP_Path
] <<= aPropSequence
;
8670 awt::Rectangle aRectangle
;
8673 aRectangle
.Width
= 0;
8674 aRectangle
.Height
= 0;
8675 aPropertyMap
[PROP_ViewBox
] <<= aRectangle
;
8677 aPropertyMap
[ PROP_Type
] <<= OUString("ooxml-plus");
8679 return aPropertyMap
;
8682 } // anonymous namespace
8683 void CustomShapeProperties::initializePresetsMap4()
8685 maPresetsMap
[ StaticTokenMap::get().getTokenFromUnicode( "teardrop" ) ] = new ShapeCteardrop();
8686 maPresetsMap
[ StaticTokenMap::get().getTokenFromUnicode( "flowChartDocument" ) ] = new ShapeCflowChartDocument();
8687 maPresetsMap
[ StaticTokenMap::get().getTokenFromUnicode( "rightArrowCallout" ) ] = new ShapeCrightArrowCallout();
8688 maPresetsMap
[ StaticTokenMap::get().getTokenFromUnicode( "rightBrace" ) ] = new ShapeCrightBrace();
8689 maPresetsMap
[ StaticTokenMap::get().getTokenFromUnicode( "chartPlus" ) ] = new ShapeCchartPlus();
8690 maPresetsMap
[ StaticTokenMap::get().getTokenFromUnicode( "flowChartManualInput" ) ] = new ShapeCflowChartManualInput();
8691 maPresetsMap
[ StaticTokenMap::get().getTokenFromUnicode( "flowChartMerge" ) ] = new ShapeCflowChartMerge();
8692 maPresetsMap
[ StaticTokenMap::get().getTokenFromUnicode( "line" ) ] = new ShapeCline();
8693 maPresetsMap
[ StaticTokenMap::get().getTokenFromUnicode( "downArrow" ) ] = new ShapeCdownArrow();
8694 maPresetsMap
[ StaticTokenMap::get().getTokenFromUnicode( "upArrow" ) ] = new ShapeCupArrow();
8695 maPresetsMap
[ StaticTokenMap::get().getTokenFromUnicode( "curvedDownArrow" ) ] = new ShapeCcurvedDownArrow();
8696 maPresetsMap
[ StaticTokenMap::get().getTokenFromUnicode( "actionButtonReturn" ) ] = new ShapeCactionButtonReturn();
8697 maPresetsMap
[ StaticTokenMap::get().getTokenFromUnicode( "flowChartInputOutput" ) ] = new ShapeCflowChartInputOutput();
8698 maPresetsMap
[ StaticTokenMap::get().getTokenFromUnicode( "bracketPair" ) ] = new ShapeCbracketPair();
8699 maPresetsMap
[ StaticTokenMap::get().getTokenFromUnicode( "smileyFace" ) ] = new ShapeCsmileyFace();
8700 maPresetsMap
[ StaticTokenMap::get().getTokenFromUnicode( "actionButtonBlank" ) ] = new ShapeCactionButtonBlank();
8701 maPresetsMap
[ StaticTokenMap::get().getTokenFromUnicode( "wave" ) ] = new ShapeCwave();
8702 maPresetsMap
[ StaticTokenMap::get().getTokenFromUnicode( "swooshArrow" ) ] = new ShapeCswooshArrow();
8703 maPresetsMap
[ StaticTokenMap::get().getTokenFromUnicode( "flowChartSummingJunction" ) ] = new ShapeCflowChartSummingJunction();
8704 maPresetsMap
[ StaticTokenMap::get().getTokenFromUnicode( "lightningBolt" ) ] = new ShapeClightningBolt();
8705 maPresetsMap
[ StaticTokenMap::get().getTokenFromUnicode( "flowChartDisplay" ) ] = new ShapeCflowChartDisplay();
8706 maPresetsMap
[ StaticTokenMap::get().getTokenFromUnicode( "actionButtonBackPrevious" ) ] = new ShapeCactionButtonBackPrevious();
8707 maPresetsMap
[ StaticTokenMap::get().getTokenFromUnicode( "frame" ) ] = new ShapeCframe();
8708 maPresetsMap
[ StaticTokenMap::get().getTokenFromUnicode( "rtTriangle" ) ] = new ShapeCrtTriangle();
8709 maPresetsMap
[ StaticTokenMap::get().getTokenFromUnicode( "flowChartMagneticTape" ) ] = new ShapeCflowChartMagneticTape();
8710 maPresetsMap
[ StaticTokenMap::get().getTokenFromUnicode( "curvedRightArrow" ) ] = new ShapeCcurvedRightArrow();
8711 maPresetsMap
[ StaticTokenMap::get().getTokenFromUnicode( "leftUpArrow" ) ] = new ShapeCleftUpArrow();
8712 maPresetsMap
[ StaticTokenMap::get().getTokenFromUnicode( "wedgeEllipseCallout" ) ] = new ShapeCwedgeEllipseCallout();
8713 maPresetsMap
[ StaticTokenMap::get().getTokenFromUnicode( "doubleWave" ) ] = new ShapeCdoubleWave();
8714 maPresetsMap
[ StaticTokenMap::get().getTokenFromUnicode( "bentArrow" ) ] = new ShapeCbentArrow();
8715 maPresetsMap
[ StaticTokenMap::get().getTokenFromUnicode( "star10" ) ] = new ShapeCstar10();
8716 maPresetsMap
[ StaticTokenMap::get().getTokenFromUnicode( "leftArrow" ) ] = new ShapeCleftArrow();
8717 maPresetsMap
[ StaticTokenMap::get().getTokenFromUnicode( "curvedUpArrow" ) ] = new ShapeCcurvedUpArrow();
8718 maPresetsMap
[ StaticTokenMap::get().getTokenFromUnicode( "snip1Rect" ) ] = new ShapeCsnip1Rect();
8719 maPresetsMap
[ StaticTokenMap::get().getTokenFromUnicode( "ellipseRibbon2" ) ] = new ShapeCellipseRibbon2();
8720 maPresetsMap
[ StaticTokenMap::get().getTokenFromUnicode( "plus" ) ] = new ShapeCplus();
8723 } } // oox // drawingml