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 ShapeCround2SameRect
: public CustomShapeProvider
24 virtual PropertyMap
getProperties()
26 PropertyMap aPropertyMap
;
29 Sequence
< EnhancedCustomShapeAdjustmentValue
> aAdjSequence (2);
31 Any
aAny ((sal_Int32
) 16667);
32 aAdjSequence
[0].Value
= aAny
;
33 aAdjSequence
[0].Name
= "adj1";
36 Any
aAny ((sal_Int32
) 0);
37 aAdjSequence
[1].Value
= aAny
;
38 aAdjSequence
[1].Name
= "adj2";
40 aPropertyMap
[PROP_AdjustmentValues
] <<= aAdjSequence
;
43 static const char *aStrings
[] = {
44 "if(0-$0 ,0,if(50000-$0 ,$0 ,50000))",
45 "if(0-$1 ,0,if(50000-$1 ,$1 ,50000))",
46 "min(logwidth,logheight)",
71 aPropertyMap
[PROP_Equations
] <<= createStringSequence( SAL_N_ELEMENTS( aStrings
), aStrings
);
74 Sequence
< Sequence
< PropertyValue
> > aPropSequenceSequence (2);
76 Sequence
< PropertyValue
> aPropSequence (4);
78 aPropSequence
[0].Name
= "Position";
79 static const CustomShapeProvider::ParameterPairData aData
=
81 EnhancedCustomShapeParameterType::EQUATION
,
82 EnhancedCustomShapeParameterType::NORMAL
,
85 aPropSequence
[0].Value
= makeAny (createParameterPair(&aData
));
88 aPropSequence
[1].Name
= "RangeXMaximum";
89 EnhancedCustomShapeParameter aParameter
;
90 Any
aAny ((sal_Int32
) 50000);
91 aParameter
.Value
= aAny
;
92 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
93 aPropSequence
[1].Value
= makeAny (aParameter
);
96 aPropSequence
[2].Name
= "RangeXMinimum";
97 EnhancedCustomShapeParameter aParameter
;
98 Any
aAny ((sal_Int32
) 0);
99 aParameter
.Value
= aAny
;
100 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
101 aPropSequence
[2].Value
= makeAny (aParameter
);
104 aPropSequence
[3].Name
= "RefX";
105 Any
aAny ((sal_Int32
) 0);
106 aPropSequence
[3].Value
= makeAny (aAny
);
108 aPropSequenceSequence
[0] = aPropSequence
;
111 Sequence
< PropertyValue
> aPropSequence (4);
113 aPropSequence
[0].Name
= "Position";
114 static const CustomShapeProvider::ParameterPairData aData
=
116 EnhancedCustomShapeParameterType::EQUATION
,
117 EnhancedCustomShapeParameterType::EQUATION
,
120 aPropSequence
[0].Value
= makeAny (createParameterPair(&aData
));
123 aPropSequence
[1].Name
= "RangeXMaximum";
124 EnhancedCustomShapeParameter aParameter
;
125 Any
aAny ((sal_Int32
) 50000);
126 aParameter
.Value
= aAny
;
127 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
128 aPropSequence
[1].Value
= makeAny (aParameter
);
131 aPropSequence
[2].Name
= "RangeXMinimum";
132 EnhancedCustomShapeParameter aParameter
;
133 Any
aAny ((sal_Int32
) 0);
134 aParameter
.Value
= aAny
;
135 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
136 aPropSequence
[2].Value
= makeAny (aParameter
);
139 aPropSequence
[3].Name
= "RefX";
140 Any
aAny ((sal_Int32
) 1);
141 aPropSequence
[3].Value
= makeAny (aAny
);
143 aPropSequenceSequence
[1] = aPropSequence
;
145 aPropertyMap
[PROP_Handles
] <<= aPropSequenceSequence
;
148 aPropertyMap
[PROP_MirroredX
] <<= Any ((sal_Bool
) sal_False
);
151 aPropertyMap
[PROP_MirroredY
] <<= Any ((sal_Bool
) sal_False
);
154 Sequence
< PropertyValue
> aPropSequence (3);
156 aPropSequence
[0].Name
= "Coordinates";
157 static const CustomShapeProvider::ParameterPairData aData
[] = {
159 EnhancedCustomShapeParameterType::EQUATION
,
160 EnhancedCustomShapeParameterType::NORMAL
,
164 EnhancedCustomShapeParameterType::EQUATION
,
165 EnhancedCustomShapeParameterType::NORMAL
,
169 EnhancedCustomShapeParameterType::EQUATION
,
170 EnhancedCustomShapeParameterType::EQUATION
,
174 EnhancedCustomShapeParameterType::EQUATION
,
175 EnhancedCustomShapeParameterType::EQUATION
,
179 EnhancedCustomShapeParameterType::EQUATION
,
180 EnhancedCustomShapeParameterType::EQUATION
,
184 EnhancedCustomShapeParameterType::EQUATION
,
185 EnhancedCustomShapeParameterType::EQUATION
,
189 EnhancedCustomShapeParameterType::EQUATION
,
190 EnhancedCustomShapeParameterType::EQUATION
,
194 EnhancedCustomShapeParameterType::EQUATION
,
195 EnhancedCustomShapeParameterType::EQUATION
,
199 EnhancedCustomShapeParameterType::EQUATION
,
200 EnhancedCustomShapeParameterType::EQUATION
,
204 EnhancedCustomShapeParameterType::EQUATION
,
205 EnhancedCustomShapeParameterType::EQUATION
,
209 EnhancedCustomShapeParameterType::NORMAL
,
210 EnhancedCustomShapeParameterType::EQUATION
,
214 EnhancedCustomShapeParameterType::EQUATION
,
215 EnhancedCustomShapeParameterType::EQUATION
,
219 EnhancedCustomShapeParameterType::EQUATION
,
220 EnhancedCustomShapeParameterType::EQUATION
,
224 aPropSequence
[0].Value
= makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData
), aData
));
227 aPropSequence
[1].Name
= "Segments";
228 static const sal_uInt16 nValues
[] = {
242 aPropSequence
[1].Value
= makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues
), nValues
));
245 aPropSequence
[2].Name
= "TextFrames";
246 Sequence
< EnhancedCustomShapeTextFrame
> aTextFrameSeq (1);
248 EnhancedCustomShapeTextFrame aTextFrame
;
250 static const CustomShapeProvider::ParameterPairData aData
=
252 EnhancedCustomShapeParameterType::EQUATION
,
253 EnhancedCustomShapeParameterType::EQUATION
,
256 aTextFrame
.TopLeft
= createParameterPair(&aData
);
259 static const CustomShapeProvider::ParameterPairData aData
=
261 EnhancedCustomShapeParameterType::EQUATION
,
262 EnhancedCustomShapeParameterType::EQUATION
,
265 aTextFrame
.BottomRight
= createParameterPair(&aData
);
267 aTextFrameSeq
[0] = aTextFrame
;
269 aPropSequence
[2].Value
= makeAny (aTextFrameSeq
);
271 aPropertyMap
[PROP_Path
] <<= aPropSequence
;
274 awt::Rectangle aRectangle
;
277 aRectangle
.Width
= 0;
278 aRectangle
.Height
= 0;
279 aPropertyMap
[PROP_ViewBox
] <<= aRectangle
;
281 aPropertyMap
[ PROP_Type
] <<= OUString("ooxml-round2SameRect");
286 class ShapeCnonIsoscelesTrapezoid
: public CustomShapeProvider
288 virtual PropertyMap
getProperties()
290 PropertyMap aPropertyMap
;
293 Sequence
< EnhancedCustomShapeAdjustmentValue
> aAdjSequence (2);
295 Any
aAny ((sal_Int32
) 25000);
296 aAdjSequence
[0].Value
= aAny
;
297 aAdjSequence
[0].Name
= "adj1";
300 Any
aAny ((sal_Int32
) 25000);
301 aAdjSequence
[1].Value
= aAny
;
302 aAdjSequence
[1].Name
= "adj2";
304 aPropertyMap
[PROP_AdjustmentValues
] <<= aAdjSequence
;
307 static const char *aStrings
[] = {
308 "min(logwidth,logheight)",
309 "50000*logwidth/?0 ",
310 "if(0-$0 ,0,if(?1 -$0 ,$0 ,?1 ))",
311 "if(0-$1 ,0,if(?1 -$1 ,$1 ,?1 ))",
329 aPropertyMap
[PROP_Equations
] <<= createStringSequence( SAL_N_ELEMENTS( aStrings
), aStrings
);
332 Sequence
< Sequence
< PropertyValue
> > aPropSequenceSequence (2);
334 Sequence
< PropertyValue
> aPropSequence (4);
336 aPropSequence
[0].Name
= "Position";
337 static const CustomShapeProvider::ParameterPairData aData
=
339 EnhancedCustomShapeParameterType::EQUATION
,
340 EnhancedCustomShapeParameterType::NORMAL
,
343 aPropSequence
[0].Value
= makeAny (createParameterPair(&aData
));
346 aPropSequence
[1].Name
= "RangeXMaximum";
347 EnhancedCustomShapeParameter aParameter
;
348 Any
aAny ((sal_Int32
) 1);
349 aParameter
.Value
= aAny
;
350 aParameter
.Type
= EnhancedCustomShapeParameterType::EQUATION
;
351 aPropSequence
[1].Value
= makeAny (aParameter
);
354 aPropSequence
[2].Name
= "RangeXMinimum";
355 EnhancedCustomShapeParameter aParameter
;
356 Any
aAny ((sal_Int32
) 0);
357 aParameter
.Value
= aAny
;
358 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
359 aPropSequence
[2].Value
= makeAny (aParameter
);
362 aPropSequence
[3].Name
= "RefX";
363 Any
aAny ((sal_Int32
) 0);
364 aPropSequence
[3].Value
= makeAny (aAny
);
366 aPropSequenceSequence
[0] = aPropSequence
;
369 Sequence
< PropertyValue
> aPropSequence (4);
371 aPropSequence
[0].Name
= "Position";
372 static const CustomShapeProvider::ParameterPairData aData
=
374 EnhancedCustomShapeParameterType::EQUATION
,
375 EnhancedCustomShapeParameterType::NORMAL
,
378 aPropSequence
[0].Value
= makeAny (createParameterPair(&aData
));
381 aPropSequence
[1].Name
= "RangeXMaximum";
382 EnhancedCustomShapeParameter aParameter
;
383 Any
aAny ((sal_Int32
) 1);
384 aParameter
.Value
= aAny
;
385 aParameter
.Type
= EnhancedCustomShapeParameterType::EQUATION
;
386 aPropSequence
[1].Value
= makeAny (aParameter
);
389 aPropSequence
[2].Name
= "RangeXMinimum";
390 EnhancedCustomShapeParameter aParameter
;
391 Any
aAny ((sal_Int32
) 0);
392 aParameter
.Value
= aAny
;
393 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
394 aPropSequence
[2].Value
= makeAny (aParameter
);
397 aPropSequence
[3].Name
= "RefX";
398 Any
aAny ((sal_Int32
) 1);
399 aPropSequence
[3].Value
= makeAny (aAny
);
401 aPropSequenceSequence
[1] = aPropSequence
;
403 aPropertyMap
[PROP_Handles
] <<= aPropSequenceSequence
;
406 aPropertyMap
[PROP_MirroredX
] <<= Any ((sal_Bool
) sal_False
);
409 aPropertyMap
[PROP_MirroredY
] <<= Any ((sal_Bool
) sal_False
);
412 Sequence
< PropertyValue
> aPropSequence (3);
414 aPropSequence
[0].Name
= "Coordinates";
415 static const CustomShapeProvider::ParameterPairData aData
[] = {
417 EnhancedCustomShapeParameterType::NORMAL
,
418 EnhancedCustomShapeParameterType::EQUATION
,
422 EnhancedCustomShapeParameterType::EQUATION
,
423 EnhancedCustomShapeParameterType::NORMAL
,
427 EnhancedCustomShapeParameterType::EQUATION
,
428 EnhancedCustomShapeParameterType::NORMAL
,
432 EnhancedCustomShapeParameterType::EQUATION
,
433 EnhancedCustomShapeParameterType::EQUATION
,
437 aPropSequence
[0].Value
= makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData
), aData
));
440 aPropSequence
[1].Name
= "Segments";
441 static const sal_uInt16 nValues
[] = {
448 aPropSequence
[1].Value
= makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues
), nValues
));
451 aPropSequence
[2].Name
= "TextFrames";
452 Sequence
< EnhancedCustomShapeTextFrame
> aTextFrameSeq (1);
454 EnhancedCustomShapeTextFrame aTextFrame
;
456 static const CustomShapeProvider::ParameterPairData aData
=
458 EnhancedCustomShapeParameterType::EQUATION
,
459 EnhancedCustomShapeParameterType::EQUATION
,
462 aTextFrame
.TopLeft
= createParameterPair(&aData
);
465 static const CustomShapeProvider::ParameterPairData aData
=
467 EnhancedCustomShapeParameterType::EQUATION
,
468 EnhancedCustomShapeParameterType::EQUATION
,
471 aTextFrame
.BottomRight
= createParameterPair(&aData
);
473 aTextFrameSeq
[0] = aTextFrame
;
475 aPropSequence
[2].Value
= makeAny (aTextFrameSeq
);
477 aPropertyMap
[PROP_Path
] <<= aPropSequence
;
480 awt::Rectangle aRectangle
;
483 aRectangle
.Width
= 0;
484 aRectangle
.Height
= 0;
485 aPropertyMap
[PROP_ViewBox
] <<= aRectangle
;
487 aPropertyMap
[ PROP_Type
] <<= OUString("ooxml-nonIsoscelesTrapezoid");
492 class ShapeCdiamond
: public CustomShapeProvider
494 virtual PropertyMap
getProperties()
496 PropertyMap aPropertyMap
;
499 aPropertyMap
[PROP_AdjustmentValues
] <<= Sequence
< OUString
>(0);
502 static const char *aStrings
[] = {
512 aPropertyMap
[PROP_Equations
] <<= createStringSequence( SAL_N_ELEMENTS( aStrings
), aStrings
);
515 aPropertyMap
[PROP_Handles
] <<= Sequence
< OUString
>(0);
518 aPropertyMap
[PROP_MirroredX
] <<= Any ((sal_Bool
) sal_False
);
521 aPropertyMap
[PROP_MirroredY
] <<= Any ((sal_Bool
) sal_False
);
524 Sequence
< PropertyValue
> aPropSequence (3);
526 aPropSequence
[0].Name
= "Coordinates";
527 static const CustomShapeProvider::ParameterPairData aData
[] = {
529 EnhancedCustomShapeParameterType::NORMAL
,
530 EnhancedCustomShapeParameterType::EQUATION
,
534 EnhancedCustomShapeParameterType::EQUATION
,
535 EnhancedCustomShapeParameterType::NORMAL
,
539 EnhancedCustomShapeParameterType::EQUATION
,
540 EnhancedCustomShapeParameterType::EQUATION
,
544 EnhancedCustomShapeParameterType::EQUATION
,
545 EnhancedCustomShapeParameterType::EQUATION
,
549 aPropSequence
[0].Value
= makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData
), aData
));
552 aPropSequence
[1].Name
= "Segments";
553 static const sal_uInt16 nValues
[] = {
560 aPropSequence
[1].Value
= makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues
), nValues
));
563 aPropSequence
[2].Name
= "TextFrames";
564 Sequence
< EnhancedCustomShapeTextFrame
> aTextFrameSeq (1);
566 EnhancedCustomShapeTextFrame aTextFrame
;
568 static const CustomShapeProvider::ParameterPairData aData
=
570 EnhancedCustomShapeParameterType::EQUATION
,
571 EnhancedCustomShapeParameterType::EQUATION
,
574 aTextFrame
.TopLeft
= createParameterPair(&aData
);
577 static const CustomShapeProvider::ParameterPairData aData
=
579 EnhancedCustomShapeParameterType::EQUATION
,
580 EnhancedCustomShapeParameterType::EQUATION
,
583 aTextFrame
.BottomRight
= createParameterPair(&aData
);
585 aTextFrameSeq
[0] = aTextFrame
;
587 aPropSequence
[2].Value
= makeAny (aTextFrameSeq
);
589 aPropertyMap
[PROP_Path
] <<= aPropSequence
;
592 awt::Rectangle aRectangle
;
595 aRectangle
.Width
= 0;
596 aRectangle
.Height
= 0;
597 aPropertyMap
[PROP_ViewBox
] <<= aRectangle
;
599 aPropertyMap
[ PROP_Type
] <<= OUString("ooxml-diamond");
604 class ShapeCellipseRibbon
: public CustomShapeProvider
606 virtual PropertyMap
getProperties()
608 PropertyMap aPropertyMap
;
611 Sequence
< EnhancedCustomShapeAdjustmentValue
> aAdjSequence (3);
613 Any
aAny ((sal_Int32
) 25000);
614 aAdjSequence
[0].Value
= aAny
;
615 aAdjSequence
[0].Name
= "adj1";
618 Any
aAny ((sal_Int32
) 50000);
619 aAdjSequence
[1].Value
= aAny
;
620 aAdjSequence
[1].Name
= "adj2";
623 Any
aAny ((sal_Int32
) 12500);
624 aAdjSequence
[2].Value
= aAny
;
625 aAdjSequence
[2].Name
= "adj3";
627 aPropertyMap
[PROP_AdjustmentValues
] <<= aAdjSequence
;
630 static const char *aStrings
[] = {
631 "if(0-$0 ,0,if(100000-$0 ,$0 ,100000))",
632 "if(25000-$1 ,25000,if(75000-$1 ,$1 ,75000))",
637 "if(?5 -$2 ,?5 ,if(?0 -$2 ,$2 ,?0 ))",
638 "logwidth*?1 /200000",
646 "logheight*?6 /100000",
648 "?11 *?11 /logwidth",
654 "logheight*?0 /100000",
679 aPropertyMap
[PROP_Equations
] <<= createStringSequence( SAL_N_ELEMENTS( aStrings
), aStrings
);
682 Sequence
< Sequence
< PropertyValue
> > aPropSequenceSequence (3);
684 Sequence
< PropertyValue
> aPropSequence (4);
686 aPropSequence
[0].Name
= "Position";
687 static const CustomShapeProvider::ParameterPairData aData
=
689 EnhancedCustomShapeParameterType::EQUATION
,
690 EnhancedCustomShapeParameterType::EQUATION
,
693 aPropSequence
[0].Value
= makeAny (createParameterPair(&aData
));
696 aPropSequence
[1].Name
= "RangeYMaximum";
697 EnhancedCustomShapeParameter aParameter
;
698 Any
aAny ((sal_Int32
) 100000);
699 aParameter
.Value
= aAny
;
700 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
701 aPropSequence
[1].Value
= makeAny (aParameter
);
704 aPropSequence
[2].Name
= "RangeYMinimum";
705 EnhancedCustomShapeParameter aParameter
;
706 Any
aAny ((sal_Int32
) 0);
707 aParameter
.Value
= aAny
;
708 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
709 aPropSequence
[2].Value
= makeAny (aParameter
);
712 aPropSequence
[3].Name
= "RefY";
713 Any
aAny ((sal_Int32
) 0);
714 aPropSequence
[3].Value
= makeAny (aAny
);
716 aPropSequenceSequence
[0] = aPropSequence
;
719 Sequence
< PropertyValue
> aPropSequence (4);
721 aPropSequence
[0].Name
= "Position";
722 static const CustomShapeProvider::ParameterPairData aData
=
724 EnhancedCustomShapeParameterType::EQUATION
,
725 EnhancedCustomShapeParameterType::EQUATION
,
728 aPropSequence
[0].Value
= makeAny (createParameterPair(&aData
));
731 aPropSequence
[1].Name
= "RangeXMaximum";
732 EnhancedCustomShapeParameter aParameter
;
733 Any
aAny ((sal_Int32
) 75000);
734 aParameter
.Value
= aAny
;
735 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
736 aPropSequence
[1].Value
= makeAny (aParameter
);
739 aPropSequence
[2].Name
= "RangeXMinimum";
740 EnhancedCustomShapeParameter aParameter
;
741 Any
aAny ((sal_Int32
) 25000);
742 aParameter
.Value
= aAny
;
743 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
744 aPropSequence
[2].Value
= makeAny (aParameter
);
747 aPropSequence
[3].Name
= "RefX";
748 Any
aAny ((sal_Int32
) 1);
749 aPropSequence
[3].Value
= makeAny (aAny
);
751 aPropSequenceSequence
[1] = aPropSequence
;
754 Sequence
< PropertyValue
> aPropSequence (4);
756 aPropSequence
[0].Name
= "Position";
757 static const CustomShapeProvider::ParameterPairData aData
=
759 EnhancedCustomShapeParameterType::NORMAL
,
760 EnhancedCustomShapeParameterType::EQUATION
,
763 aPropSequence
[0].Value
= makeAny (createParameterPair(&aData
));
766 aPropSequence
[1].Name
= "RangeYMaximum";
767 EnhancedCustomShapeParameter aParameter
;
768 Any
aAny ((sal_Int32
) 0);
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
) 5);
777 aParameter
.Value
= aAny
;
778 aParameter
.Type
= EnhancedCustomShapeParameterType::EQUATION
;
779 aPropSequence
[2].Value
= makeAny (aParameter
);
782 aPropSequence
[3].Name
= "RefY";
783 Any
aAny ((sal_Int32
) 2);
784 aPropSequence
[3].Value
= makeAny (aAny
);
786 aPropSequenceSequence
[2] = aPropSequence
;
788 aPropertyMap
[PROP_Handles
] <<= aPropSequenceSequence
;
791 aPropertyMap
[PROP_MirroredX
] <<= Any ((sal_Bool
) sal_False
);
794 aPropertyMap
[PROP_MirroredY
] <<= Any ((sal_Bool
) sal_False
);
797 Sequence
< PropertyValue
> aPropSequence (3);
799 aPropSequence
[0].Name
= "Coordinates";
800 static const CustomShapeProvider::ParameterPairData aData
[] = {
802 EnhancedCustomShapeParameterType::NORMAL
,
803 EnhancedCustomShapeParameterType::NORMAL
,
807 EnhancedCustomShapeParameterType::EQUATION
,
808 EnhancedCustomShapeParameterType::EQUATION
,
812 EnhancedCustomShapeParameterType::EQUATION
,
813 EnhancedCustomShapeParameterType::EQUATION
,
817 EnhancedCustomShapeParameterType::EQUATION
,
818 EnhancedCustomShapeParameterType::EQUATION
,
822 EnhancedCustomShapeParameterType::EQUATION
,
823 EnhancedCustomShapeParameterType::EQUATION
,
827 EnhancedCustomShapeParameterType::EQUATION
,
828 EnhancedCustomShapeParameterType::EQUATION
,
832 EnhancedCustomShapeParameterType::EQUATION
,
833 EnhancedCustomShapeParameterType::EQUATION
,
837 EnhancedCustomShapeParameterType::EQUATION
,
838 EnhancedCustomShapeParameterType::EQUATION
,
842 EnhancedCustomShapeParameterType::EQUATION
,
843 EnhancedCustomShapeParameterType::NORMAL
,
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::EQUATION
,
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 EnhancedCustomShapeParameterType::NORMAL
,
948 EnhancedCustomShapeParameterType::NORMAL
,
952 EnhancedCustomShapeParameterType::EQUATION
,
953 EnhancedCustomShapeParameterType::EQUATION
,
957 EnhancedCustomShapeParameterType::EQUATION
,
958 EnhancedCustomShapeParameterType::EQUATION
,
962 EnhancedCustomShapeParameterType::EQUATION
,
963 EnhancedCustomShapeParameterType::EQUATION
,
967 EnhancedCustomShapeParameterType::EQUATION
,
968 EnhancedCustomShapeParameterType::EQUATION
,
972 EnhancedCustomShapeParameterType::EQUATION
,
973 EnhancedCustomShapeParameterType::EQUATION
,
977 EnhancedCustomShapeParameterType::EQUATION
,
978 EnhancedCustomShapeParameterType::EQUATION
,
982 EnhancedCustomShapeParameterType::EQUATION
,
983 EnhancedCustomShapeParameterType::EQUATION
,
987 EnhancedCustomShapeParameterType::EQUATION
,
988 EnhancedCustomShapeParameterType::NORMAL
,
992 EnhancedCustomShapeParameterType::EQUATION
,
993 EnhancedCustomShapeParameterType::EQUATION
,
997 EnhancedCustomShapeParameterType::EQUATION
,
998 EnhancedCustomShapeParameterType::EQUATION
,
1002 EnhancedCustomShapeParameterType::EQUATION
,
1003 EnhancedCustomShapeParameterType::EQUATION
,
1007 EnhancedCustomShapeParameterType::EQUATION
,
1008 EnhancedCustomShapeParameterType::EQUATION
,
1012 EnhancedCustomShapeParameterType::EQUATION
,
1013 EnhancedCustomShapeParameterType::EQUATION
,
1017 EnhancedCustomShapeParameterType::EQUATION
,
1018 EnhancedCustomShapeParameterType::EQUATION
,
1022 EnhancedCustomShapeParameterType::EQUATION
,
1023 EnhancedCustomShapeParameterType::EQUATION
,
1027 EnhancedCustomShapeParameterType::EQUATION
,
1028 EnhancedCustomShapeParameterType::EQUATION
,
1032 EnhancedCustomShapeParameterType::EQUATION
,
1033 EnhancedCustomShapeParameterType::EQUATION
,
1037 EnhancedCustomShapeParameterType::NORMAL
,
1038 EnhancedCustomShapeParameterType::EQUATION
,
1042 EnhancedCustomShapeParameterType::EQUATION
,
1043 EnhancedCustomShapeParameterType::EQUATION
,
1047 EnhancedCustomShapeParameterType::EQUATION
,
1048 EnhancedCustomShapeParameterType::EQUATION
,
1052 EnhancedCustomShapeParameterType::EQUATION
,
1053 EnhancedCustomShapeParameterType::EQUATION
,
1057 EnhancedCustomShapeParameterType::EQUATION
,
1058 EnhancedCustomShapeParameterType::EQUATION
,
1062 EnhancedCustomShapeParameterType::EQUATION
,
1063 EnhancedCustomShapeParameterType::EQUATION
,
1067 EnhancedCustomShapeParameterType::EQUATION
,
1068 EnhancedCustomShapeParameterType::EQUATION
,
1072 EnhancedCustomShapeParameterType::EQUATION
,
1073 EnhancedCustomShapeParameterType::EQUATION
,
1077 EnhancedCustomShapeParameterType::EQUATION
,
1078 EnhancedCustomShapeParameterType::EQUATION
,
1082 EnhancedCustomShapeParameterType::EQUATION
,
1083 EnhancedCustomShapeParameterType::EQUATION
,
1087 aPropSequence
[0].Value
= makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData
), aData
));
1090 aPropSequence
[1].Name
= "Segments";
1091 static const sal_uInt16 nValues
[] = {
1143 aPropSequence
[1].Value
= makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues
), nValues
));
1146 aPropSequence
[2].Name
= "TextFrames";
1147 Sequence
< EnhancedCustomShapeTextFrame
> aTextFrameSeq (1);
1149 EnhancedCustomShapeTextFrame aTextFrame
;
1151 static const CustomShapeProvider::ParameterPairData aData
=
1153 EnhancedCustomShapeParameterType::EQUATION
,
1154 EnhancedCustomShapeParameterType::EQUATION
,
1157 aTextFrame
.TopLeft
= createParameterPair(&aData
);
1160 static const CustomShapeProvider::ParameterPairData aData
=
1162 EnhancedCustomShapeParameterType::EQUATION
,
1163 EnhancedCustomShapeParameterType::EQUATION
,
1166 aTextFrame
.BottomRight
= createParameterPair(&aData
);
1168 aTextFrameSeq
[0] = aTextFrame
;
1170 aPropSequence
[2].Value
= makeAny (aTextFrameSeq
);
1172 aPropertyMap
[PROP_Path
] <<= aPropSequence
;
1175 awt::Rectangle aRectangle
;
1178 aRectangle
.Width
= 0;
1179 aRectangle
.Height
= 0;
1180 aPropertyMap
[PROP_ViewBox
] <<= aRectangle
;
1182 aPropertyMap
[ PROP_Type
] <<= OUString("ooxml-ellipseRibbon");
1184 return aPropertyMap
;
1187 class ShapeCcallout2
: public CustomShapeProvider
1189 virtual PropertyMap
getProperties()
1191 PropertyMap aPropertyMap
;
1194 Sequence
< EnhancedCustomShapeAdjustmentValue
> aAdjSequence (6);
1196 Any
aAny ((sal_Int32
) 18750);
1197 aAdjSequence
[0].Value
= aAny
;
1198 aAdjSequence
[0].Name
= "adj1";
1201 Any
aAny ((sal_Int32
) -8333);
1202 aAdjSequence
[1].Value
= aAny
;
1203 aAdjSequence
[1].Name
= "adj2";
1206 Any
aAny ((sal_Int32
) 18750);
1207 aAdjSequence
[2].Value
= aAny
;
1208 aAdjSequence
[2].Name
= "adj3";
1211 Any
aAny ((sal_Int32
) -16667);
1212 aAdjSequence
[3].Value
= aAny
;
1213 aAdjSequence
[3].Name
= "adj4";
1216 Any
aAny ((sal_Int32
) 112500);
1217 aAdjSequence
[4].Value
= aAny
;
1218 aAdjSequence
[4].Name
= "adj5";
1221 Any
aAny ((sal_Int32
) -46667);
1222 aAdjSequence
[5].Value
= aAny
;
1223 aAdjSequence
[5].Name
= "adj6";
1225 aPropertyMap
[PROP_AdjustmentValues
] <<= aAdjSequence
;
1228 static const char *aStrings
[] = {
1229 "logheight*$0 /100000",
1230 "logwidth*$1 /100000",
1231 "logheight*$2 /100000",
1232 "logwidth*$3 /100000",
1233 "logheight*$4 /100000",
1234 "logwidth*$5 /100000",
1240 aPropertyMap
[PROP_Equations
] <<= createStringSequence( SAL_N_ELEMENTS( aStrings
), aStrings
);
1243 Sequence
< Sequence
< PropertyValue
> > aPropSequenceSequence (3);
1245 Sequence
< PropertyValue
> aPropSequence (7);
1247 aPropSequence
[0].Name
= "Position";
1248 static const CustomShapeProvider::ParameterPairData aData
=
1250 EnhancedCustomShapeParameterType::EQUATION
,
1251 EnhancedCustomShapeParameterType::EQUATION
,
1254 aPropSequence
[0].Value
= makeAny (createParameterPair(&aData
));
1257 aPropSequence
[1].Name
= "RangeXMaximum";
1258 EnhancedCustomShapeParameter aParameter
;
1259 Any
aAny ((sal_Int32
) 2147483647);
1260 aParameter
.Value
= aAny
;
1261 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
1262 aPropSequence
[1].Value
= makeAny (aParameter
);
1265 aPropSequence
[2].Name
= "RangeXMinimum";
1266 EnhancedCustomShapeParameter aParameter
;
1267 Any
aAny ((sal_Int32
) -2147483647);
1268 aParameter
.Value
= aAny
;
1269 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
1270 aPropSequence
[2].Value
= makeAny (aParameter
);
1273 aPropSequence
[3].Name
= "RangeYMaximum";
1274 EnhancedCustomShapeParameter aParameter
;
1275 Any
aAny ((sal_Int32
) 2147483647);
1276 aParameter
.Value
= aAny
;
1277 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
1278 aPropSequence
[3].Value
= makeAny (aParameter
);
1281 aPropSequence
[4].Name
= "RangeYMinimum";
1282 EnhancedCustomShapeParameter aParameter
;
1283 Any
aAny ((sal_Int32
) -2147483647);
1284 aParameter
.Value
= aAny
;
1285 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
1286 aPropSequence
[4].Value
= makeAny (aParameter
);
1289 aPropSequence
[5].Name
= "RefX";
1290 Any
aAny ((sal_Int32
) 1);
1291 aPropSequence
[5].Value
= makeAny (aAny
);
1294 aPropSequence
[6].Name
= "RefY";
1295 Any
aAny ((sal_Int32
) 0);
1296 aPropSequence
[6].Value
= makeAny (aAny
);
1298 aPropSequenceSequence
[0] = aPropSequence
;
1301 Sequence
< PropertyValue
> aPropSequence (7);
1303 aPropSequence
[0].Name
= "Position";
1304 static const CustomShapeProvider::ParameterPairData aData
=
1306 EnhancedCustomShapeParameterType::EQUATION
,
1307 EnhancedCustomShapeParameterType::EQUATION
,
1310 aPropSequence
[0].Value
= makeAny (createParameterPair(&aData
));
1313 aPropSequence
[1].Name
= "RangeXMaximum";
1314 EnhancedCustomShapeParameter aParameter
;
1315 Any
aAny ((sal_Int32
) 2147483647);
1316 aParameter
.Value
= aAny
;
1317 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
1318 aPropSequence
[1].Value
= makeAny (aParameter
);
1321 aPropSequence
[2].Name
= "RangeXMinimum";
1322 EnhancedCustomShapeParameter aParameter
;
1323 Any
aAny ((sal_Int32
) -2147483647);
1324 aParameter
.Value
= aAny
;
1325 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
1326 aPropSequence
[2].Value
= makeAny (aParameter
);
1329 aPropSequence
[3].Name
= "RangeYMaximum";
1330 EnhancedCustomShapeParameter aParameter
;
1331 Any
aAny ((sal_Int32
) 2147483647);
1332 aParameter
.Value
= aAny
;
1333 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
1334 aPropSequence
[3].Value
= makeAny (aParameter
);
1337 aPropSequence
[4].Name
= "RangeYMinimum";
1338 EnhancedCustomShapeParameter aParameter
;
1339 Any
aAny ((sal_Int32
) -2147483647);
1340 aParameter
.Value
= aAny
;
1341 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
1342 aPropSequence
[4].Value
= makeAny (aParameter
);
1345 aPropSequence
[5].Name
= "RefX";
1346 Any
aAny ((sal_Int32
) 3);
1347 aPropSequence
[5].Value
= makeAny (aAny
);
1350 aPropSequence
[6].Name
= "RefY";
1351 Any
aAny ((sal_Int32
) 2);
1352 aPropSequence
[6].Value
= makeAny (aAny
);
1354 aPropSequenceSequence
[1] = aPropSequence
;
1357 Sequence
< PropertyValue
> aPropSequence (7);
1359 aPropSequence
[0].Name
= "Position";
1360 static const CustomShapeProvider::ParameterPairData aData
=
1362 EnhancedCustomShapeParameterType::EQUATION
,
1363 EnhancedCustomShapeParameterType::EQUATION
,
1366 aPropSequence
[0].Value
= makeAny (createParameterPair(&aData
));
1369 aPropSequence
[1].Name
= "RangeXMaximum";
1370 EnhancedCustomShapeParameter aParameter
;
1371 Any
aAny ((sal_Int32
) 2147483647);
1372 aParameter
.Value
= aAny
;
1373 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
1374 aPropSequence
[1].Value
= makeAny (aParameter
);
1377 aPropSequence
[2].Name
= "RangeXMinimum";
1378 EnhancedCustomShapeParameter aParameter
;
1379 Any
aAny ((sal_Int32
) -2147483647);
1380 aParameter
.Value
= aAny
;
1381 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
1382 aPropSequence
[2].Value
= makeAny (aParameter
);
1385 aPropSequence
[3].Name
= "RangeYMaximum";
1386 EnhancedCustomShapeParameter aParameter
;
1387 Any
aAny ((sal_Int32
) 2147483647);
1388 aParameter
.Value
= aAny
;
1389 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
1390 aPropSequence
[3].Value
= makeAny (aParameter
);
1393 aPropSequence
[4].Name
= "RangeYMinimum";
1394 EnhancedCustomShapeParameter aParameter
;
1395 Any
aAny ((sal_Int32
) -2147483647);
1396 aParameter
.Value
= aAny
;
1397 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
1398 aPropSequence
[4].Value
= makeAny (aParameter
);
1401 aPropSequence
[5].Name
= "RefX";
1402 Any
aAny ((sal_Int32
) 5);
1403 aPropSequence
[5].Value
= makeAny (aAny
);
1406 aPropSequence
[6].Name
= "RefY";
1407 Any
aAny ((sal_Int32
) 4);
1408 aPropSequence
[6].Value
= makeAny (aAny
);
1410 aPropSequenceSequence
[2] = aPropSequence
;
1412 aPropertyMap
[PROP_Handles
] <<= aPropSequenceSequence
;
1415 aPropertyMap
[PROP_MirroredX
] <<= Any ((sal_Bool
) sal_False
);
1418 aPropertyMap
[PROP_MirroredY
] <<= Any ((sal_Bool
) sal_False
);
1421 Sequence
< PropertyValue
> aPropSequence (3);
1423 aPropSequence
[0].Name
= "Coordinates";
1424 static const CustomShapeProvider::ParameterPairData aData
[] = {
1426 EnhancedCustomShapeParameterType::NORMAL
,
1427 EnhancedCustomShapeParameterType::NORMAL
,
1431 EnhancedCustomShapeParameterType::EQUATION
,
1432 EnhancedCustomShapeParameterType::NORMAL
,
1436 EnhancedCustomShapeParameterType::EQUATION
,
1437 EnhancedCustomShapeParameterType::EQUATION
,
1441 EnhancedCustomShapeParameterType::NORMAL
,
1442 EnhancedCustomShapeParameterType::EQUATION
,
1446 EnhancedCustomShapeParameterType::EQUATION
,
1447 EnhancedCustomShapeParameterType::EQUATION
,
1451 EnhancedCustomShapeParameterType::EQUATION
,
1452 EnhancedCustomShapeParameterType::EQUATION
,
1456 EnhancedCustomShapeParameterType::EQUATION
,
1457 EnhancedCustomShapeParameterType::EQUATION
,
1461 aPropSequence
[0].Value
= makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData
), aData
));
1464 aPropSequence
[1].Name
= "Segments";
1465 static const sal_uInt16 nValues
[] = {
1477 aPropSequence
[1].Value
= makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues
), nValues
));
1480 aPropSequence
[2].Name
= "TextFrames";
1481 Sequence
< EnhancedCustomShapeTextFrame
> aTextFrameSeq (1);
1483 EnhancedCustomShapeTextFrame aTextFrame
;
1485 static const CustomShapeProvider::ParameterPairData aData
=
1487 EnhancedCustomShapeParameterType::NORMAL
,
1488 EnhancedCustomShapeParameterType::NORMAL
,
1491 aTextFrame
.TopLeft
= createParameterPair(&aData
);
1494 static const CustomShapeProvider::ParameterPairData aData
=
1496 EnhancedCustomShapeParameterType::EQUATION
,
1497 EnhancedCustomShapeParameterType::EQUATION
,
1500 aTextFrame
.BottomRight
= createParameterPair(&aData
);
1502 aTextFrameSeq
[0] = aTextFrame
;
1504 aPropSequence
[2].Value
= makeAny (aTextFrameSeq
);
1506 aPropertyMap
[PROP_Path
] <<= aPropSequence
;
1509 awt::Rectangle aRectangle
;
1512 aRectangle
.Width
= 0;
1513 aRectangle
.Height
= 0;
1514 aPropertyMap
[PROP_ViewBox
] <<= aRectangle
;
1516 aPropertyMap
[ PROP_Type
] <<= OUString("ooxml-callout2");
1518 return aPropertyMap
;
1521 class ShapeCpie
: public CustomShapeProvider
1523 virtual PropertyMap
getProperties()
1525 PropertyMap aPropertyMap
;
1528 Sequence
< EnhancedCustomShapeAdjustmentValue
> aAdjSequence (2);
1530 Any
aAny ((sal_Int32
) 0);
1531 aAdjSequence
[0].Value
= aAny
;
1532 aAdjSequence
[0].Name
= "adj1";
1535 Any
aAny ((sal_Int32
) 16200000);
1536 aAdjSequence
[1].Value
= aAny
;
1537 aAdjSequence
[1].Name
= "adj2";
1539 aPropertyMap
[PROP_AdjustmentValues
] <<= aAdjSequence
;
1542 static const char *aStrings
[] = {
1543 "if(0-$0 ,0,if(21599999-$0 ,$0 ,21599999))",
1544 "if(0-$1 ,0,if(21599999-$1 ,$1 ,21599999))",
1549 "?5 *sin(pi*(?0 )/10800000)",
1551 "?7 *cos(pi*(?0 )/10800000)",
1552 "?5 *(cos(atan2(?6 ,?8 )))",
1553 "?7 *(sin(atan2(?6 ,?8 )))",
1558 "?5 *sin(pi*(?1 )/10800000)",
1559 "?7 *cos(pi*(?1 )/10800000)",
1560 "?5 *(cos(atan2(?15 ,?16 )))",
1561 "?7 *(sin(atan2(?15 ,?16 )))",
1564 "?5 *cos(pi*(2700000)/10800000)",
1565 "?7 *sin(pi*(2700000)/10800000)",
1575 aPropertyMap
[PROP_Equations
] <<= createStringSequence( SAL_N_ELEMENTS( aStrings
), aStrings
);
1578 Sequence
< Sequence
< PropertyValue
> > aPropSequenceSequence (2);
1580 Sequence
< PropertyValue
> aPropSequence (1);
1582 aPropSequence
[0].Name
= "Position";
1583 static const CustomShapeProvider::ParameterPairData aData
=
1585 EnhancedCustomShapeParameterType::EQUATION
,
1586 EnhancedCustomShapeParameterType::EQUATION
,
1589 aPropSequence
[0].Value
= makeAny (createParameterPair(&aData
));
1591 aPropSequenceSequence
[0] = aPropSequence
;
1594 Sequence
< PropertyValue
> aPropSequence (1);
1596 aPropSequence
[0].Name
= "Position";
1597 static const CustomShapeProvider::ParameterPairData aData
=
1599 EnhancedCustomShapeParameterType::EQUATION
,
1600 EnhancedCustomShapeParameterType::EQUATION
,
1603 aPropSequence
[0].Value
= makeAny (createParameterPair(&aData
));
1605 aPropSequenceSequence
[1] = aPropSequence
;
1607 aPropertyMap
[PROP_Handles
] <<= aPropSequenceSequence
;
1610 aPropertyMap
[PROP_MirroredX
] <<= Any ((sal_Bool
) sal_False
);
1613 aPropertyMap
[PROP_MirroredY
] <<= Any ((sal_Bool
) sal_False
);
1616 Sequence
< PropertyValue
> aPropSequence (3);
1618 aPropSequence
[0].Name
= "Coordinates";
1619 static const CustomShapeProvider::ParameterPairData aData
[] = {
1621 EnhancedCustomShapeParameterType::EQUATION
,
1622 EnhancedCustomShapeParameterType::EQUATION
,
1626 EnhancedCustomShapeParameterType::EQUATION
,
1627 EnhancedCustomShapeParameterType::EQUATION
,
1631 EnhancedCustomShapeParameterType::EQUATION
,
1632 EnhancedCustomShapeParameterType::EQUATION
,
1636 EnhancedCustomShapeParameterType::EQUATION
,
1637 EnhancedCustomShapeParameterType::EQUATION
,
1641 aPropSequence
[0].Value
= makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData
), aData
));
1644 aPropSequence
[1].Name
= "Segments";
1645 static const sal_uInt16 nValues
[] = {
1653 aPropSequence
[1].Value
= makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues
), nValues
));
1656 aPropSequence
[2].Name
= "TextFrames";
1657 Sequence
< EnhancedCustomShapeTextFrame
> aTextFrameSeq (1);
1659 EnhancedCustomShapeTextFrame aTextFrame
;
1661 static const CustomShapeProvider::ParameterPairData aData
=
1663 EnhancedCustomShapeParameterType::EQUATION
,
1664 EnhancedCustomShapeParameterType::EQUATION
,
1667 aTextFrame
.TopLeft
= createParameterPair(&aData
);
1670 static const CustomShapeProvider::ParameterPairData aData
=
1672 EnhancedCustomShapeParameterType::EQUATION
,
1673 EnhancedCustomShapeParameterType::EQUATION
,
1676 aTextFrame
.BottomRight
= createParameterPair(&aData
);
1678 aTextFrameSeq
[0] = aTextFrame
;
1680 aPropSequence
[2].Value
= makeAny (aTextFrameSeq
);
1682 aPropertyMap
[PROP_Path
] <<= aPropSequence
;
1685 awt::Rectangle aRectangle
;
1688 aRectangle
.Width
= 0;
1689 aRectangle
.Height
= 0;
1690 aPropertyMap
[PROP_ViewBox
] <<= aRectangle
;
1692 aPropertyMap
[ PROP_Type
] <<= OUString("ooxml-pie");
1694 return aPropertyMap
;
1697 class ShapeCstar4
: public CustomShapeProvider
1699 virtual PropertyMap
getProperties()
1701 PropertyMap aPropertyMap
;
1704 Sequence
< EnhancedCustomShapeAdjustmentValue
> aAdjSequence (1);
1706 Any
aAny ((sal_Int32
) 12500);
1707 aAdjSequence
[0].Value
= aAny
;
1708 aAdjSequence
[0].Name
= "adj";
1710 aPropertyMap
[PROP_AdjustmentValues
] <<= aAdjSequence
;
1713 static const char *aStrings
[] = {
1714 "if(0-$0 ,0,if(50000-$0 ,$0 ,50000))",
1719 "?2 *cos(pi*(2700000)/10800000)",
1720 "?4 *sin(pi*(2700000)/10800000)",
1731 aPropertyMap
[PROP_Equations
] <<= createStringSequence( SAL_N_ELEMENTS( aStrings
), aStrings
);
1734 Sequence
< Sequence
< PropertyValue
> > aPropSequenceSequence (1);
1736 Sequence
< PropertyValue
> aPropSequence (4);
1738 aPropSequence
[0].Name
= "Position";
1739 static const CustomShapeProvider::ParameterPairData aData
=
1741 EnhancedCustomShapeParameterType::EQUATION
,
1742 EnhancedCustomShapeParameterType::EQUATION
,
1745 aPropSequence
[0].Value
= makeAny (createParameterPair(&aData
));
1748 aPropSequence
[1].Name
= "RangeYMaximum";
1749 EnhancedCustomShapeParameter aParameter
;
1750 Any
aAny ((sal_Int32
) 50000);
1751 aParameter
.Value
= aAny
;
1752 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
1753 aPropSequence
[1].Value
= makeAny (aParameter
);
1756 aPropSequence
[2].Name
= "RangeYMinimum";
1757 EnhancedCustomShapeParameter aParameter
;
1758 Any
aAny ((sal_Int32
) 0);
1759 aParameter
.Value
= aAny
;
1760 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
1761 aPropSequence
[2].Value
= makeAny (aParameter
);
1764 aPropSequence
[3].Name
= "RefY";
1765 Any
aAny ((sal_Int32
) 0);
1766 aPropSequence
[3].Value
= makeAny (aAny
);
1768 aPropSequenceSequence
[0] = aPropSequence
;
1770 aPropertyMap
[PROP_Handles
] <<= aPropSequenceSequence
;
1773 aPropertyMap
[PROP_MirroredX
] <<= Any ((sal_Bool
) sal_False
);
1776 aPropertyMap
[PROP_MirroredY
] <<= Any ((sal_Bool
) sal_False
);
1779 Sequence
< PropertyValue
> aPropSequence (3);
1781 aPropSequence
[0].Name
= "Coordinates";
1782 static const CustomShapeProvider::ParameterPairData aData
[] = {
1784 EnhancedCustomShapeParameterType::NORMAL
,
1785 EnhancedCustomShapeParameterType::EQUATION
,
1789 EnhancedCustomShapeParameterType::EQUATION
,
1790 EnhancedCustomShapeParameterType::EQUATION
,
1794 EnhancedCustomShapeParameterType::EQUATION
,
1795 EnhancedCustomShapeParameterType::NORMAL
,
1799 EnhancedCustomShapeParameterType::EQUATION
,
1800 EnhancedCustomShapeParameterType::EQUATION
,
1804 EnhancedCustomShapeParameterType::EQUATION
,
1805 EnhancedCustomShapeParameterType::EQUATION
,
1809 EnhancedCustomShapeParameterType::EQUATION
,
1810 EnhancedCustomShapeParameterType::EQUATION
,
1814 EnhancedCustomShapeParameterType::EQUATION
,
1815 EnhancedCustomShapeParameterType::EQUATION
,
1819 EnhancedCustomShapeParameterType::EQUATION
,
1820 EnhancedCustomShapeParameterType::EQUATION
,
1824 aPropSequence
[0].Value
= makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData
), aData
));
1827 aPropSequence
[1].Name
= "Segments";
1828 static const sal_uInt16 nValues
[] = {
1835 aPropSequence
[1].Value
= makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues
), nValues
));
1838 aPropSequence
[2].Name
= "TextFrames";
1839 Sequence
< EnhancedCustomShapeTextFrame
> aTextFrameSeq (1);
1841 EnhancedCustomShapeTextFrame aTextFrame
;
1843 static const CustomShapeProvider::ParameterPairData aData
=
1845 EnhancedCustomShapeParameterType::EQUATION
,
1846 EnhancedCustomShapeParameterType::EQUATION
,
1849 aTextFrame
.TopLeft
= createParameterPair(&aData
);
1852 static const CustomShapeProvider::ParameterPairData aData
=
1854 EnhancedCustomShapeParameterType::EQUATION
,
1855 EnhancedCustomShapeParameterType::EQUATION
,
1858 aTextFrame
.BottomRight
= createParameterPair(&aData
);
1860 aTextFrameSeq
[0] = aTextFrame
;
1862 aPropSequence
[2].Value
= makeAny (aTextFrameSeq
);
1864 aPropertyMap
[PROP_Path
] <<= aPropSequence
;
1867 awt::Rectangle aRectangle
;
1870 aRectangle
.Width
= 0;
1871 aRectangle
.Height
= 0;
1872 aPropertyMap
[PROP_ViewBox
] <<= aRectangle
;
1874 aPropertyMap
[ PROP_Type
] <<= OUString("ooxml-star4");
1876 return aPropertyMap
;
1879 class ShapeCflowChartPredefinedProcess
: public CustomShapeProvider
1881 virtual PropertyMap
getProperties()
1883 PropertyMap aPropertyMap
;
1886 aPropertyMap
[PROP_AdjustmentValues
] <<= Sequence
< OUString
>(0);
1889 static const char *aStrings
[] = {
1897 aPropertyMap
[PROP_Equations
] <<= createStringSequence( SAL_N_ELEMENTS( aStrings
), aStrings
);
1900 aPropertyMap
[PROP_Handles
] <<= Sequence
< OUString
>(0);
1903 aPropertyMap
[PROP_MirroredX
] <<= Any ((sal_Bool
) sal_False
);
1906 aPropertyMap
[PROP_MirroredY
] <<= Any ((sal_Bool
) sal_False
);
1909 Sequence
< PropertyValue
> aPropSequence (4);
1911 aPropSequence
[0].Name
= "Coordinates";
1912 static const CustomShapeProvider::ParameterPairData aData
[] = {
1914 EnhancedCustomShapeParameterType::NORMAL
,
1915 EnhancedCustomShapeParameterType::NORMAL
,
1919 EnhancedCustomShapeParameterType::NORMAL
,
1920 EnhancedCustomShapeParameterType::NORMAL
,
1924 EnhancedCustomShapeParameterType::NORMAL
,
1925 EnhancedCustomShapeParameterType::NORMAL
,
1929 EnhancedCustomShapeParameterType::NORMAL
,
1930 EnhancedCustomShapeParameterType::NORMAL
,
1934 EnhancedCustomShapeParameterType::NORMAL
,
1935 EnhancedCustomShapeParameterType::NORMAL
,
1939 EnhancedCustomShapeParameterType::NORMAL
,
1940 EnhancedCustomShapeParameterType::NORMAL
,
1944 EnhancedCustomShapeParameterType::NORMAL
,
1945 EnhancedCustomShapeParameterType::NORMAL
,
1949 EnhancedCustomShapeParameterType::NORMAL
,
1950 EnhancedCustomShapeParameterType::NORMAL
,
1954 EnhancedCustomShapeParameterType::NORMAL
,
1955 EnhancedCustomShapeParameterType::NORMAL
,
1959 EnhancedCustomShapeParameterType::NORMAL
,
1960 EnhancedCustomShapeParameterType::NORMAL
,
1964 EnhancedCustomShapeParameterType::NORMAL
,
1965 EnhancedCustomShapeParameterType::NORMAL
,
1969 EnhancedCustomShapeParameterType::NORMAL
,
1970 EnhancedCustomShapeParameterType::NORMAL
,
1974 aPropSequence
[0].Value
= makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData
), aData
));
1977 aPropSequence
[1].Name
= "Segments";
1978 static const sal_uInt16 nValues
[] = {
1997 aPropSequence
[1].Value
= makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues
), nValues
));
2000 aPropSequence
[2].Name
= "SubViewSize";
2001 Sequence
< awt::Size
> aSizeSequence (3);
2006 aSizeSequence
[0] = aSize
;
2012 aSizeSequence
[1] = aSize
;
2018 aSizeSequence
[2] = aSize
;
2020 aPropSequence
[2].Value
= makeAny (aSizeSequence
);
2023 aPropSequence
[3].Name
= "TextFrames";
2024 Sequence
< EnhancedCustomShapeTextFrame
> aTextFrameSeq (1);
2026 EnhancedCustomShapeTextFrame aTextFrame
;
2028 static const CustomShapeProvider::ParameterPairData aData
=
2030 EnhancedCustomShapeParameterType::EQUATION
,
2031 EnhancedCustomShapeParameterType::NORMAL
,
2034 aTextFrame
.TopLeft
= createParameterPair(&aData
);
2037 static const CustomShapeProvider::ParameterPairData aData
=
2039 EnhancedCustomShapeParameterType::EQUATION
,
2040 EnhancedCustomShapeParameterType::EQUATION
,
2043 aTextFrame
.BottomRight
= createParameterPair(&aData
);
2045 aTextFrameSeq
[0] = aTextFrame
;
2047 aPropSequence
[3].Value
= makeAny (aTextFrameSeq
);
2049 aPropertyMap
[PROP_Path
] <<= aPropSequence
;
2052 awt::Rectangle aRectangle
;
2055 aRectangle
.Width
= 0;
2056 aRectangle
.Height
= 0;
2057 aPropertyMap
[PROP_ViewBox
] <<= aRectangle
;
2059 aPropertyMap
[ PROP_Type
] <<= OUString("ooxml-flowChartPredefinedProcess");
2061 return aPropertyMap
;
2064 class ShapeCflowChartPunchedTape
: public CustomShapeProvider
2066 virtual PropertyMap
getProperties()
2068 PropertyMap aPropertyMap
;
2071 aPropertyMap
[PROP_AdjustmentValues
] <<= Sequence
< OUString
>(0);
2074 static const char *aStrings
[] = {
2082 "(10800000)/60000.0",
2083 "(-10800000)/60000.0",
2084 "(10800000)/60000.0",
2085 "(10800000)/60000.0",
2087 "(-10800000)/60000.0",
2089 "(10800000)/60000.0"
2091 aPropertyMap
[PROP_Equations
] <<= createStringSequence( SAL_N_ELEMENTS( aStrings
), aStrings
);
2094 aPropertyMap
[PROP_Handles
] <<= Sequence
< OUString
>(0);
2097 aPropertyMap
[PROP_MirroredX
] <<= Any ((sal_Bool
) sal_False
);
2100 aPropertyMap
[PROP_MirroredY
] <<= Any ((sal_Bool
) sal_False
);
2103 Sequence
< PropertyValue
> aPropSequence (4);
2105 aPropSequence
[0].Name
= "Coordinates";
2106 static const CustomShapeProvider::ParameterPairData aData
[] = {
2108 EnhancedCustomShapeParameterType::NORMAL
,
2109 EnhancedCustomShapeParameterType::NORMAL
,
2113 EnhancedCustomShapeParameterType::NORMAL
,
2114 EnhancedCustomShapeParameterType::NORMAL
,
2118 EnhancedCustomShapeParameterType::EQUATION
,
2119 EnhancedCustomShapeParameterType::EQUATION
,
2123 EnhancedCustomShapeParameterType::NORMAL
,
2124 EnhancedCustomShapeParameterType::NORMAL
,
2128 EnhancedCustomShapeParameterType::EQUATION
,
2129 EnhancedCustomShapeParameterType::EQUATION
,
2133 EnhancedCustomShapeParameterType::NORMAL
,
2134 EnhancedCustomShapeParameterType::NORMAL
,
2138 EnhancedCustomShapeParameterType::NORMAL
,
2139 EnhancedCustomShapeParameterType::NORMAL
,
2143 EnhancedCustomShapeParameterType::EQUATION
,
2144 EnhancedCustomShapeParameterType::EQUATION
,
2148 EnhancedCustomShapeParameterType::NORMAL
,
2149 EnhancedCustomShapeParameterType::NORMAL
,
2153 EnhancedCustomShapeParameterType::EQUATION
,
2154 EnhancedCustomShapeParameterType::EQUATION
,
2158 aPropSequence
[0].Value
= makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData
), aData
));
2161 aPropSequence
[1].Name
= "Segments";
2162 static const sal_uInt16 nValues
[] = {
2171 aPropSequence
[1].Value
= makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues
), nValues
));
2174 aPropSequence
[2].Name
= "SubViewSize";
2175 Sequence
< awt::Size
> aSizeSequence (1);
2180 aSizeSequence
[0] = aSize
;
2182 aPropSequence
[2].Value
= makeAny (aSizeSequence
);
2185 aPropSequence
[3].Name
= "TextFrames";
2186 Sequence
< EnhancedCustomShapeTextFrame
> aTextFrameSeq (1);
2188 EnhancedCustomShapeTextFrame aTextFrame
;
2190 static const CustomShapeProvider::ParameterPairData aData
=
2192 EnhancedCustomShapeParameterType::NORMAL
,
2193 EnhancedCustomShapeParameterType::EQUATION
,
2196 aTextFrame
.TopLeft
= createParameterPair(&aData
);
2199 static const CustomShapeProvider::ParameterPairData aData
=
2201 EnhancedCustomShapeParameterType::EQUATION
,
2202 EnhancedCustomShapeParameterType::EQUATION
,
2205 aTextFrame
.BottomRight
= createParameterPair(&aData
);
2207 aTextFrameSeq
[0] = aTextFrame
;
2209 aPropSequence
[3].Value
= makeAny (aTextFrameSeq
);
2211 aPropertyMap
[PROP_Path
] <<= aPropSequence
;
2214 awt::Rectangle aRectangle
;
2217 aRectangle
.Width
= 0;
2218 aRectangle
.Height
= 0;
2219 aPropertyMap
[PROP_ViewBox
] <<= aRectangle
;
2221 aPropertyMap
[ PROP_Type
] <<= OUString("ooxml-flowChartPunchedTape");
2223 return aPropertyMap
;
2226 class ShapeCcurvedConnector2
: public CustomShapeProvider
2228 virtual PropertyMap
getProperties()
2230 PropertyMap aPropertyMap
;
2233 aPropertyMap
[PROP_AdjustmentValues
] <<= Sequence
< OUString
>(0);
2236 static const char *aStrings
[] = {
2242 aPropertyMap
[PROP_Equations
] <<= createStringSequence( SAL_N_ELEMENTS( aStrings
), aStrings
);
2245 aPropertyMap
[PROP_Handles
] <<= Sequence
< OUString
>(0);
2248 aPropertyMap
[PROP_MirroredX
] <<= Any ((sal_Bool
) sal_False
);
2251 aPropertyMap
[PROP_MirroredY
] <<= Any ((sal_Bool
) sal_False
);
2254 Sequence
< PropertyValue
> aPropSequence (3);
2256 aPropSequence
[0].Name
= "Coordinates";
2257 static const CustomShapeProvider::ParameterPairData aData
[] = {
2259 EnhancedCustomShapeParameterType::NORMAL
,
2260 EnhancedCustomShapeParameterType::NORMAL
,
2264 EnhancedCustomShapeParameterType::EQUATION
,
2265 EnhancedCustomShapeParameterType::NORMAL
,
2269 EnhancedCustomShapeParameterType::EQUATION
,
2270 EnhancedCustomShapeParameterType::EQUATION
,
2274 EnhancedCustomShapeParameterType::EQUATION
,
2275 EnhancedCustomShapeParameterType::EQUATION
,
2279 aPropSequence
[0].Value
= makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData
), aData
));
2282 aPropSequence
[1].Name
= "Segments";
2283 static const sal_uInt16 nValues
[] = {
2290 aPropSequence
[1].Value
= makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues
), nValues
));
2293 aPropSequence
[2].Name
= "TextFrames";
2294 Sequence
< EnhancedCustomShapeTextFrame
> aTextFrameSeq (1);
2296 EnhancedCustomShapeTextFrame aTextFrame
;
2298 static const CustomShapeProvider::ParameterPairData aData
=
2300 EnhancedCustomShapeParameterType::NORMAL
,
2301 EnhancedCustomShapeParameterType::NORMAL
,
2304 aTextFrame
.TopLeft
= createParameterPair(&aData
);
2307 static const CustomShapeProvider::ParameterPairData aData
=
2309 EnhancedCustomShapeParameterType::EQUATION
,
2310 EnhancedCustomShapeParameterType::EQUATION
,
2313 aTextFrame
.BottomRight
= createParameterPair(&aData
);
2315 aTextFrameSeq
[0] = aTextFrame
;
2317 aPropSequence
[2].Value
= makeAny (aTextFrameSeq
);
2319 aPropertyMap
[PROP_Path
] <<= aPropSequence
;
2322 awt::Rectangle aRectangle
;
2325 aRectangle
.Width
= 0;
2326 aRectangle
.Height
= 0;
2327 aPropertyMap
[PROP_ViewBox
] <<= aRectangle
;
2329 aPropertyMap
[ PROP_Type
] <<= OUString("ooxml-curvedConnector2");
2331 return aPropertyMap
;
2334 class ShapeCbentConnector3
: public CustomShapeProvider
2336 virtual PropertyMap
getProperties()
2338 PropertyMap aPropertyMap
;
2341 Sequence
< EnhancedCustomShapeAdjustmentValue
> aAdjSequence (1);
2343 Any
aAny ((sal_Int32
) 50000);
2344 aAdjSequence
[0].Value
= aAny
;
2345 aAdjSequence
[0].Name
= "adj1";
2347 aPropertyMap
[PROP_AdjustmentValues
] <<= aAdjSequence
;
2350 static const char *aStrings
[] = {
2351 "logwidth*$0 /100000",
2356 aPropertyMap
[PROP_Equations
] <<= createStringSequence( SAL_N_ELEMENTS( aStrings
), aStrings
);
2359 Sequence
< Sequence
< PropertyValue
> > aPropSequenceSequence (1);
2361 Sequence
< PropertyValue
> aPropSequence (4);
2363 aPropSequence
[0].Name
= "Position";
2364 static const CustomShapeProvider::ParameterPairData aData
=
2366 EnhancedCustomShapeParameterType::EQUATION
,
2367 EnhancedCustomShapeParameterType::EQUATION
,
2370 aPropSequence
[0].Value
= makeAny (createParameterPair(&aData
));
2373 aPropSequence
[1].Name
= "RangeXMaximum";
2374 EnhancedCustomShapeParameter aParameter
;
2375 Any
aAny ((sal_Int32
) 2147483647);
2376 aParameter
.Value
= aAny
;
2377 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
2378 aPropSequence
[1].Value
= makeAny (aParameter
);
2381 aPropSequence
[2].Name
= "RangeXMinimum";
2382 EnhancedCustomShapeParameter aParameter
;
2383 Any
aAny ((sal_Int32
) -2147483647);
2384 aParameter
.Value
= aAny
;
2385 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
2386 aPropSequence
[2].Value
= makeAny (aParameter
);
2389 aPropSequence
[3].Name
= "RefX";
2390 Any
aAny ((sal_Int32
) 0);
2391 aPropSequence
[3].Value
= makeAny (aAny
);
2393 aPropSequenceSequence
[0] = aPropSequence
;
2395 aPropertyMap
[PROP_Handles
] <<= aPropSequenceSequence
;
2398 aPropertyMap
[PROP_MirroredX
] <<= Any ((sal_Bool
) sal_False
);
2401 aPropertyMap
[PROP_MirroredY
] <<= Any ((sal_Bool
) sal_False
);
2404 Sequence
< PropertyValue
> aPropSequence (3);
2406 aPropSequence
[0].Name
= "Coordinates";
2407 static const CustomShapeProvider::ParameterPairData aData
[] = {
2409 EnhancedCustomShapeParameterType::NORMAL
,
2410 EnhancedCustomShapeParameterType::NORMAL
,
2414 EnhancedCustomShapeParameterType::EQUATION
,
2415 EnhancedCustomShapeParameterType::NORMAL
,
2419 EnhancedCustomShapeParameterType::EQUATION
,
2420 EnhancedCustomShapeParameterType::EQUATION
,
2424 EnhancedCustomShapeParameterType::EQUATION
,
2425 EnhancedCustomShapeParameterType::EQUATION
,
2429 aPropSequence
[0].Value
= makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData
), aData
));
2432 aPropSequence
[1].Name
= "Segments";
2433 static const sal_uInt16 nValues
[] = {
2440 aPropSequence
[1].Value
= makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues
), nValues
));
2443 aPropSequence
[2].Name
= "TextFrames";
2444 Sequence
< EnhancedCustomShapeTextFrame
> aTextFrameSeq (1);
2446 EnhancedCustomShapeTextFrame aTextFrame
;
2448 static const CustomShapeProvider::ParameterPairData aData
=
2450 EnhancedCustomShapeParameterType::NORMAL
,
2451 EnhancedCustomShapeParameterType::NORMAL
,
2454 aTextFrame
.TopLeft
= createParameterPair(&aData
);
2457 static const CustomShapeProvider::ParameterPairData aData
=
2459 EnhancedCustomShapeParameterType::EQUATION
,
2460 EnhancedCustomShapeParameterType::EQUATION
,
2463 aTextFrame
.BottomRight
= createParameterPair(&aData
);
2465 aTextFrameSeq
[0] = aTextFrame
;
2467 aPropSequence
[2].Value
= makeAny (aTextFrameSeq
);
2469 aPropertyMap
[PROP_Path
] <<= aPropSequence
;
2472 awt::Rectangle aRectangle
;
2475 aRectangle
.Width
= 0;
2476 aRectangle
.Height
= 0;
2477 aPropertyMap
[PROP_ViewBox
] <<= aRectangle
;
2479 aPropertyMap
[ PROP_Type
] <<= OUString("ooxml-bentConnector3");
2481 return aPropertyMap
;
2484 class ShapeCcornerTabs
: public CustomShapeProvider
2486 virtual PropertyMap
getProperties()
2488 PropertyMap aPropertyMap
;
2491 aPropertyMap
[PROP_AdjustmentValues
] <<= Sequence
< OUString
>(0);
2494 static const char *aStrings
[] = {
2495 "sqrt(logwidth*logwidth+logheight*logheight+0*0)",
2502 aPropertyMap
[PROP_Equations
] <<= createStringSequence( SAL_N_ELEMENTS( aStrings
), aStrings
);
2505 aPropertyMap
[PROP_Handles
] <<= Sequence
< OUString
>(0);
2508 aPropertyMap
[PROP_MirroredX
] <<= Any ((sal_Bool
) sal_False
);
2511 aPropertyMap
[PROP_MirroredY
] <<= Any ((sal_Bool
) sal_False
);
2514 Sequence
< PropertyValue
> aPropSequence (3);
2516 aPropSequence
[0].Name
= "Coordinates";
2517 static const CustomShapeProvider::ParameterPairData aData
[] = {
2519 EnhancedCustomShapeParameterType::NORMAL
,
2520 EnhancedCustomShapeParameterType::NORMAL
,
2524 EnhancedCustomShapeParameterType::EQUATION
,
2525 EnhancedCustomShapeParameterType::NORMAL
,
2529 EnhancedCustomShapeParameterType::NORMAL
,
2530 EnhancedCustomShapeParameterType::EQUATION
,
2534 EnhancedCustomShapeParameterType::NORMAL
,
2535 EnhancedCustomShapeParameterType::EQUATION
,
2539 EnhancedCustomShapeParameterType::EQUATION
,
2540 EnhancedCustomShapeParameterType::EQUATION
,
2544 EnhancedCustomShapeParameterType::NORMAL
,
2545 EnhancedCustomShapeParameterType::EQUATION
,
2549 EnhancedCustomShapeParameterType::EQUATION
,
2550 EnhancedCustomShapeParameterType::NORMAL
,
2554 EnhancedCustomShapeParameterType::EQUATION
,
2555 EnhancedCustomShapeParameterType::NORMAL
,
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 aPropSequence
[0].Value
= makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData
), aData
));
2582 aPropSequence
[1].Name
= "Segments";
2583 static const sal_uInt16 nValues
[] = {
2602 aPropSequence
[1].Value
= makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues
), nValues
));
2605 aPropSequence
[2].Name
= "TextFrames";
2606 Sequence
< EnhancedCustomShapeTextFrame
> aTextFrameSeq (1);
2608 EnhancedCustomShapeTextFrame aTextFrame
;
2610 static const CustomShapeProvider::ParameterPairData aData
=
2612 EnhancedCustomShapeParameterType::EQUATION
,
2613 EnhancedCustomShapeParameterType::EQUATION
,
2616 aTextFrame
.TopLeft
= createParameterPair(&aData
);
2619 static const CustomShapeProvider::ParameterPairData aData
=
2621 EnhancedCustomShapeParameterType::EQUATION
,
2622 EnhancedCustomShapeParameterType::EQUATION
,
2625 aTextFrame
.BottomRight
= createParameterPair(&aData
);
2627 aTextFrameSeq
[0] = aTextFrame
;
2629 aPropSequence
[2].Value
= makeAny (aTextFrameSeq
);
2631 aPropertyMap
[PROP_Path
] <<= aPropSequence
;
2634 awt::Rectangle aRectangle
;
2637 aRectangle
.Width
= 0;
2638 aRectangle
.Height
= 0;
2639 aPropertyMap
[PROP_ViewBox
] <<= aRectangle
;
2641 aPropertyMap
[ PROP_Type
] <<= OUString("ooxml-cornerTabs");
2643 return aPropertyMap
;
2646 class ShapeChexagon
: public CustomShapeProvider
2648 virtual PropertyMap
getProperties()
2650 PropertyMap aPropertyMap
;
2653 Sequence
< EnhancedCustomShapeAdjustmentValue
> aAdjSequence (2);
2655 Any
aAny ((sal_Int32
) 25000);
2656 aAdjSequence
[0].Value
= aAny
;
2657 aAdjSequence
[0].Name
= "adj";
2660 Any
aAny ((sal_Int32
) 115470);
2661 aAdjSequence
[1].Value
= aAny
;
2662 aAdjSequence
[1].Name
= "vf";
2664 aPropertyMap
[PROP_AdjustmentValues
] <<= aAdjSequence
;
2667 static const char *aStrings
[] = {
2668 "min(logwidth,logheight)",
2669 "50000*logwidth/?0 ",
2670 "if(0-$0 ,0,if(?1 -$0 ,$0 ,?1 ))",
2675 "?4 *sin(pi*(3600000)/10800000)",
2688 "logheight*?18 /24",
2693 aPropertyMap
[PROP_Equations
] <<= createStringSequence( SAL_N_ELEMENTS( aStrings
), aStrings
);
2696 Sequence
< Sequence
< PropertyValue
> > aPropSequenceSequence (1);
2698 Sequence
< PropertyValue
> aPropSequence (4);
2700 aPropSequence
[0].Name
= "Position";
2701 static const CustomShapeProvider::ParameterPairData aData
=
2703 EnhancedCustomShapeParameterType::EQUATION
,
2704 EnhancedCustomShapeParameterType::NORMAL
,
2707 aPropSequence
[0].Value
= makeAny (createParameterPair(&aData
));
2710 aPropSequence
[1].Name
= "RangeXMaximum";
2711 EnhancedCustomShapeParameter aParameter
;
2712 Any
aAny ((sal_Int32
) 1);
2713 aParameter
.Value
= aAny
;
2714 aParameter
.Type
= EnhancedCustomShapeParameterType::EQUATION
;
2715 aPropSequence
[1].Value
= makeAny (aParameter
);
2718 aPropSequence
[2].Name
= "RangeXMinimum";
2719 EnhancedCustomShapeParameter aParameter
;
2720 Any
aAny ((sal_Int32
) 0);
2721 aParameter
.Value
= aAny
;
2722 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
2723 aPropSequence
[2].Value
= makeAny (aParameter
);
2726 aPropSequence
[3].Name
= "RefX";
2727 Any
aAny ((sal_Int32
) 0);
2728 aPropSequence
[3].Value
= makeAny (aAny
);
2730 aPropSequenceSequence
[0] = aPropSequence
;
2732 aPropertyMap
[PROP_Handles
] <<= aPropSequenceSequence
;
2735 aPropertyMap
[PROP_MirroredX
] <<= Any ((sal_Bool
) sal_False
);
2738 aPropertyMap
[PROP_MirroredY
] <<= Any ((sal_Bool
) sal_False
);
2741 Sequence
< PropertyValue
> aPropSequence (3);
2743 aPropSequence
[0].Name
= "Coordinates";
2744 static const CustomShapeProvider::ParameterPairData aData
[] = {
2746 EnhancedCustomShapeParameterType::NORMAL
,
2747 EnhancedCustomShapeParameterType::EQUATION
,
2751 EnhancedCustomShapeParameterType::EQUATION
,
2752 EnhancedCustomShapeParameterType::EQUATION
,
2756 EnhancedCustomShapeParameterType::EQUATION
,
2757 EnhancedCustomShapeParameterType::EQUATION
,
2761 EnhancedCustomShapeParameterType::EQUATION
,
2762 EnhancedCustomShapeParameterType::EQUATION
,
2766 EnhancedCustomShapeParameterType::EQUATION
,
2767 EnhancedCustomShapeParameterType::EQUATION
,
2771 EnhancedCustomShapeParameterType::EQUATION
,
2772 EnhancedCustomShapeParameterType::EQUATION
,
2776 aPropSequence
[0].Value
= makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData
), aData
));
2779 aPropSequence
[1].Name
= "Segments";
2780 static const sal_uInt16 nValues
[] = {
2787 aPropSequence
[1].Value
= makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues
), nValues
));
2790 aPropSequence
[2].Name
= "TextFrames";
2791 Sequence
< EnhancedCustomShapeTextFrame
> aTextFrameSeq (1);
2793 EnhancedCustomShapeTextFrame aTextFrame
;
2795 static const CustomShapeProvider::ParameterPairData aData
=
2797 EnhancedCustomShapeParameterType::EQUATION
,
2798 EnhancedCustomShapeParameterType::EQUATION
,
2801 aTextFrame
.TopLeft
= createParameterPair(&aData
);
2804 static const CustomShapeProvider::ParameterPairData aData
=
2806 EnhancedCustomShapeParameterType::EQUATION
,
2807 EnhancedCustomShapeParameterType::EQUATION
,
2810 aTextFrame
.BottomRight
= createParameterPair(&aData
);
2812 aTextFrameSeq
[0] = aTextFrame
;
2814 aPropSequence
[2].Value
= makeAny (aTextFrameSeq
);
2816 aPropertyMap
[PROP_Path
] <<= aPropSequence
;
2819 awt::Rectangle aRectangle
;
2822 aRectangle
.Width
= 0;
2823 aRectangle
.Height
= 0;
2824 aPropertyMap
[PROP_ViewBox
] <<= aRectangle
;
2826 aPropertyMap
[ PROP_Type
] <<= OUString("ooxml-hexagon");
2828 return aPropertyMap
;
2831 class ShapeCflowChartConnector
: public CustomShapeProvider
2833 virtual PropertyMap
getProperties()
2835 PropertyMap aPropertyMap
;
2838 aPropertyMap
[PROP_AdjustmentValues
] <<= Sequence
< OUString
>(0);
2841 static const char *aStrings
[] = {
2843 "?0 *cos(pi*(2700000)/10800000)",
2845 "?2 *sin(pi*(2700000)/10800000)",
2854 "(10800000)/60000.0",
2855 "(5400000)/60000.0",
2856 "(16200000)/60000.0",
2857 "(5400000)/60000.0",
2859 "(5400000)/60000.0",
2860 "(5400000)/60000.0",
2863 aPropertyMap
[PROP_Equations
] <<= createStringSequence( SAL_N_ELEMENTS( aStrings
), aStrings
);
2866 aPropertyMap
[PROP_Handles
] <<= Sequence
< OUString
>(0);
2869 aPropertyMap
[PROP_MirroredX
] <<= Any ((sal_Bool
) sal_False
);
2872 aPropertyMap
[PROP_MirroredY
] <<= Any ((sal_Bool
) sal_False
);
2875 Sequence
< PropertyValue
> aPropSequence (3);
2877 aPropSequence
[0].Name
= "Coordinates";
2878 static const CustomShapeProvider::ParameterPairData aData
[] = {
2880 EnhancedCustomShapeParameterType::NORMAL
,
2881 EnhancedCustomShapeParameterType::EQUATION
,
2885 EnhancedCustomShapeParameterType::EQUATION
,
2886 EnhancedCustomShapeParameterType::EQUATION
,
2890 EnhancedCustomShapeParameterType::EQUATION
,
2891 EnhancedCustomShapeParameterType::EQUATION
,
2895 EnhancedCustomShapeParameterType::EQUATION
,
2896 EnhancedCustomShapeParameterType::EQUATION
,
2900 EnhancedCustomShapeParameterType::EQUATION
,
2901 EnhancedCustomShapeParameterType::EQUATION
,
2905 EnhancedCustomShapeParameterType::EQUATION
,
2906 EnhancedCustomShapeParameterType::EQUATION
,
2910 EnhancedCustomShapeParameterType::EQUATION
,
2911 EnhancedCustomShapeParameterType::EQUATION
,
2915 EnhancedCustomShapeParameterType::EQUATION
,
2916 EnhancedCustomShapeParameterType::EQUATION
,
2920 EnhancedCustomShapeParameterType::EQUATION
,
2921 EnhancedCustomShapeParameterType::EQUATION
,
2925 aPropSequence
[0].Value
= makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData
), aData
));
2928 aPropSequence
[1].Name
= "Segments";
2929 static const sal_uInt16 nValues
[] = {
2936 aPropSequence
[1].Value
= makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues
), nValues
));
2939 aPropSequence
[2].Name
= "TextFrames";
2940 Sequence
< EnhancedCustomShapeTextFrame
> aTextFrameSeq (1);
2942 EnhancedCustomShapeTextFrame aTextFrame
;
2944 static const CustomShapeProvider::ParameterPairData aData
=
2946 EnhancedCustomShapeParameterType::EQUATION
,
2947 EnhancedCustomShapeParameterType::EQUATION
,
2950 aTextFrame
.TopLeft
= createParameterPair(&aData
);
2953 static const CustomShapeProvider::ParameterPairData aData
=
2955 EnhancedCustomShapeParameterType::EQUATION
,
2956 EnhancedCustomShapeParameterType::EQUATION
,
2959 aTextFrame
.BottomRight
= createParameterPair(&aData
);
2961 aTextFrameSeq
[0] = aTextFrame
;
2963 aPropSequence
[2].Value
= makeAny (aTextFrameSeq
);
2965 aPropertyMap
[PROP_Path
] <<= aPropSequence
;
2968 awt::Rectangle aRectangle
;
2971 aRectangle
.Width
= 0;
2972 aRectangle
.Height
= 0;
2973 aPropertyMap
[PROP_ViewBox
] <<= aRectangle
;
2975 aPropertyMap
[ PROP_Type
] <<= OUString("ooxml-flowChartConnector");
2977 return aPropertyMap
;
2980 class ShapeCflowChartMagneticDisk
: public CustomShapeProvider
2982 virtual PropertyMap
getProperties()
2984 PropertyMap aPropertyMap
;
2987 aPropertyMap
[PROP_AdjustmentValues
] <<= Sequence
< OUString
>(0);
2990 static const char *aStrings
[] = {
2997 "(10800000)/60000.0",
2998 "(10800000)/60000.0",
3000 "(10800000)/60000.0",
3002 "(10800000)/60000.0",
3003 "(10800000)/60000.0",
3004 "(10800000)/60000.0",
3006 "(10800000)/60000.0"
3008 aPropertyMap
[PROP_Equations
] <<= createStringSequence( SAL_N_ELEMENTS( aStrings
), aStrings
);
3011 aPropertyMap
[PROP_Handles
] <<= Sequence
< OUString
>(0);
3014 aPropertyMap
[PROP_MirroredX
] <<= Any ((sal_Bool
) sal_False
);
3017 aPropertyMap
[PROP_MirroredY
] <<= Any ((sal_Bool
) sal_False
);
3020 Sequence
< PropertyValue
> aPropSequence (4);
3022 aPropSequence
[0].Name
= "Coordinates";
3023 static const CustomShapeProvider::ParameterPairData aData
[] = {
3025 EnhancedCustomShapeParameterType::NORMAL
,
3026 EnhancedCustomShapeParameterType::NORMAL
,
3030 EnhancedCustomShapeParameterType::NORMAL
,
3031 EnhancedCustomShapeParameterType::NORMAL
,
3035 EnhancedCustomShapeParameterType::EQUATION
,
3036 EnhancedCustomShapeParameterType::EQUATION
,
3040 EnhancedCustomShapeParameterType::NORMAL
,
3041 EnhancedCustomShapeParameterType::NORMAL
,
3045 EnhancedCustomShapeParameterType::NORMAL
,
3046 EnhancedCustomShapeParameterType::NORMAL
,
3050 EnhancedCustomShapeParameterType::EQUATION
,
3051 EnhancedCustomShapeParameterType::EQUATION
,
3055 EnhancedCustomShapeParameterType::NORMAL
,
3056 EnhancedCustomShapeParameterType::NORMAL
,
3060 EnhancedCustomShapeParameterType::NORMAL
,
3061 EnhancedCustomShapeParameterType::NORMAL
,
3065 EnhancedCustomShapeParameterType::EQUATION
,
3066 EnhancedCustomShapeParameterType::EQUATION
,
3070 EnhancedCustomShapeParameterType::NORMAL
,
3071 EnhancedCustomShapeParameterType::NORMAL
,
3075 EnhancedCustomShapeParameterType::NORMAL
,
3076 EnhancedCustomShapeParameterType::NORMAL
,
3080 EnhancedCustomShapeParameterType::EQUATION
,
3081 EnhancedCustomShapeParameterType::EQUATION
,
3085 EnhancedCustomShapeParameterType::NORMAL
,
3086 EnhancedCustomShapeParameterType::NORMAL
,
3090 EnhancedCustomShapeParameterType::NORMAL
,
3091 EnhancedCustomShapeParameterType::NORMAL
,
3095 EnhancedCustomShapeParameterType::EQUATION
,
3096 EnhancedCustomShapeParameterType::EQUATION
,
3100 aPropSequence
[0].Value
= makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData
), aData
));
3103 aPropSequence
[1].Name
= "Segments";
3104 static const sal_uInt16 nValues
[] = {
3125 aPropSequence
[1].Value
= makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues
), nValues
));
3128 aPropSequence
[2].Name
= "SubViewSize";
3129 Sequence
< awt::Size
> aSizeSequence (3);
3134 aSizeSequence
[0] = aSize
;
3140 aSizeSequence
[1] = aSize
;
3146 aSizeSequence
[2] = aSize
;
3148 aPropSequence
[2].Value
= makeAny (aSizeSequence
);
3151 aPropSequence
[3].Name
= "TextFrames";
3152 Sequence
< EnhancedCustomShapeTextFrame
> aTextFrameSeq (1);
3154 EnhancedCustomShapeTextFrame aTextFrame
;
3156 static const CustomShapeProvider::ParameterPairData aData
=
3158 EnhancedCustomShapeParameterType::NORMAL
,
3159 EnhancedCustomShapeParameterType::EQUATION
,
3162 aTextFrame
.TopLeft
= createParameterPair(&aData
);
3165 static const CustomShapeProvider::ParameterPairData aData
=
3167 EnhancedCustomShapeParameterType::EQUATION
,
3168 EnhancedCustomShapeParameterType::EQUATION
,
3171 aTextFrame
.BottomRight
= createParameterPair(&aData
);
3173 aTextFrameSeq
[0] = aTextFrame
;
3175 aPropSequence
[3].Value
= makeAny (aTextFrameSeq
);
3177 aPropertyMap
[PROP_Path
] <<= aPropSequence
;
3180 awt::Rectangle aRectangle
;
3183 aRectangle
.Width
= 0;
3184 aRectangle
.Height
= 0;
3185 aPropertyMap
[PROP_ViewBox
] <<= aRectangle
;
3187 aPropertyMap
[ PROP_Type
] <<= OUString("ooxml-flowChartMagneticDisk");
3189 return aPropertyMap
;
3192 class ShapeCheart
: public CustomShapeProvider
3194 virtual PropertyMap
getProperties()
3196 PropertyMap aPropertyMap
;
3199 aPropertyMap
[PROP_AdjustmentValues
] <<= Sequence
< OUString
>(0);
3202 static const char *aStrings
[] = {
3218 aPropertyMap
[PROP_Equations
] <<= createStringSequence( SAL_N_ELEMENTS( aStrings
), aStrings
);
3221 aPropertyMap
[PROP_Handles
] <<= Sequence
< OUString
>(0);
3224 aPropertyMap
[PROP_MirroredX
] <<= Any ((sal_Bool
) sal_False
);
3227 aPropertyMap
[PROP_MirroredY
] <<= Any ((sal_Bool
) sal_False
);
3230 Sequence
< PropertyValue
> aPropSequence (3);
3232 aPropSequence
[0].Name
= "Coordinates";
3233 static const CustomShapeProvider::ParameterPairData aData
[] = {
3235 EnhancedCustomShapeParameterType::EQUATION
,
3236 EnhancedCustomShapeParameterType::EQUATION
,
3240 EnhancedCustomShapeParameterType::EQUATION
,
3241 EnhancedCustomShapeParameterType::EQUATION
,
3245 EnhancedCustomShapeParameterType::EQUATION
,
3246 EnhancedCustomShapeParameterType::EQUATION
,
3250 EnhancedCustomShapeParameterType::EQUATION
,
3251 EnhancedCustomShapeParameterType::EQUATION
,
3255 EnhancedCustomShapeParameterType::EQUATION
,
3256 EnhancedCustomShapeParameterType::EQUATION
,
3260 EnhancedCustomShapeParameterType::EQUATION
,
3261 EnhancedCustomShapeParameterType::EQUATION
,
3265 EnhancedCustomShapeParameterType::EQUATION
,
3266 EnhancedCustomShapeParameterType::EQUATION
,
3270 aPropSequence
[0].Value
= makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData
), aData
));
3273 aPropSequence
[1].Name
= "Segments";
3274 static const sal_uInt16 nValues
[] = {
3281 aPropSequence
[1].Value
= makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues
), nValues
));
3284 aPropSequence
[2].Name
= "TextFrames";
3285 Sequence
< EnhancedCustomShapeTextFrame
> aTextFrameSeq (1);
3287 EnhancedCustomShapeTextFrame aTextFrame
;
3289 static const CustomShapeProvider::ParameterPairData aData
=
3291 EnhancedCustomShapeParameterType::EQUATION
,
3292 EnhancedCustomShapeParameterType::EQUATION
,
3295 aTextFrame
.TopLeft
= createParameterPair(&aData
);
3298 static const CustomShapeProvider::ParameterPairData aData
=
3300 EnhancedCustomShapeParameterType::EQUATION
,
3301 EnhancedCustomShapeParameterType::EQUATION
,
3304 aTextFrame
.BottomRight
= createParameterPair(&aData
);
3306 aTextFrameSeq
[0] = aTextFrame
;
3308 aPropSequence
[2].Value
= makeAny (aTextFrameSeq
);
3310 aPropertyMap
[PROP_Path
] <<= aPropSequence
;
3313 awt::Rectangle aRectangle
;
3316 aRectangle
.Width
= 0;
3317 aRectangle
.Height
= 0;
3318 aPropertyMap
[PROP_ViewBox
] <<= aRectangle
;
3320 aPropertyMap
[ PROP_Type
] <<= OUString("ooxml-heart");
3322 return aPropertyMap
;
3325 class ShapeCribbon2
: public CustomShapeProvider
3327 virtual PropertyMap
getProperties()
3329 PropertyMap aPropertyMap
;
3332 Sequence
< EnhancedCustomShapeAdjustmentValue
> aAdjSequence (2);
3334 Any
aAny ((sal_Int32
) 16667);
3335 aAdjSequence
[0].Value
= aAny
;
3336 aAdjSequence
[0].Name
= "adj1";
3339 Any
aAny ((sal_Int32
) 50000);
3340 aAdjSequence
[1].Value
= aAny
;
3341 aAdjSequence
[1].Name
= "adj2";
3343 aPropertyMap
[PROP_AdjustmentValues
] <<= aAdjSequence
;
3346 static const char *aStrings
[] = {
3347 "if(0-$0 ,0,if(33333-$0 ,$0 ,33333))",
3348 "if(25000-$1 ,25000,if(75000-$1 ,$1 ,75000))",
3351 "logwidth*?1 /200000",
3362 "logheight*?0 /200000",
3364 "logheight*?0 /100000",
3367 "(?19 +logheight)/2",
3368 "logheight*?0 /400000",
3372 "(5400000)/60000.0",
3373 "(-10800000)/60000.0",
3374 "(5400000)/60000.0",
3375 "(10800000)/60000.0",
3376 "(16200000)/60000.0",
3377 "(10800000)/60000.0",
3378 "(16200000)/60000.0",
3379 "(-10800000)/60000.0",
3382 "(-5400000)/60000.0",
3383 "(16200000)/60000.0",
3384 "(-5400000)/60000.0",
3386 "(-5400000)/60000.0",
3387 "(5400000)/60000.0",
3388 "(10800000)/60000.0",
3389 "(10800000)/60000.0",
3390 "(5400000)/60000.0",
3391 "(5400000)/60000.0",
3392 "(-10800000)/60000.0",
3393 "(10800000)/60000.0",
3394 "(5400000)/60000.0",
3395 "(16200000)/60000.0",
3396 "(5400000)/60000.0",
3397 "(5400000)/60000.0",
3398 "(10800000)/60000.0",
3399 "(5400000)/60000.0",
3400 "(-10800000)/60000.0",
3401 "(16200000)/60000.0",
3402 "(-10800000)/60000.0",
3403 "(16200000)/60000.0",
3404 "(10800000)/60000.0"
3406 aPropertyMap
[PROP_Equations
] <<= createStringSequence( SAL_N_ELEMENTS( aStrings
), aStrings
);
3409 Sequence
< Sequence
< PropertyValue
> > aPropSequenceSequence (2);
3411 Sequence
< PropertyValue
> aPropSequence (4);
3413 aPropSequence
[0].Name
= "Position";
3414 static const CustomShapeProvider::ParameterPairData aData
=
3416 EnhancedCustomShapeParameterType::EQUATION
,
3417 EnhancedCustomShapeParameterType::EQUATION
,
3420 aPropSequence
[0].Value
= makeAny (createParameterPair(&aData
));
3423 aPropSequence
[1].Name
= "RangeYMaximum";
3424 EnhancedCustomShapeParameter aParameter
;
3425 Any
aAny ((sal_Int32
) 33333);
3426 aParameter
.Value
= aAny
;
3427 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
3428 aPropSequence
[1].Value
= makeAny (aParameter
);
3431 aPropSequence
[2].Name
= "RangeYMinimum";
3432 EnhancedCustomShapeParameter aParameter
;
3433 Any
aAny ((sal_Int32
) 0);
3434 aParameter
.Value
= aAny
;
3435 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
3436 aPropSequence
[2].Value
= makeAny (aParameter
);
3439 aPropSequence
[3].Name
= "RefY";
3440 Any
aAny ((sal_Int32
) 0);
3441 aPropSequence
[3].Value
= makeAny (aAny
);
3443 aPropSequenceSequence
[0] = aPropSequence
;
3446 Sequence
< PropertyValue
> aPropSequence (4);
3448 aPropSequence
[0].Name
= "Position";
3449 static const CustomShapeProvider::ParameterPairData aData
=
3451 EnhancedCustomShapeParameterType::EQUATION
,
3452 EnhancedCustomShapeParameterType::EQUATION
,
3455 aPropSequence
[0].Value
= makeAny (createParameterPair(&aData
));
3458 aPropSequence
[1].Name
= "RangeXMaximum";
3459 EnhancedCustomShapeParameter aParameter
;
3460 Any
aAny ((sal_Int32
) 75000);
3461 aParameter
.Value
= aAny
;
3462 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
3463 aPropSequence
[1].Value
= makeAny (aParameter
);
3466 aPropSequence
[2].Name
= "RangeXMinimum";
3467 EnhancedCustomShapeParameter aParameter
;
3468 Any
aAny ((sal_Int32
) 25000);
3469 aParameter
.Value
= aAny
;
3470 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
3471 aPropSequence
[2].Value
= makeAny (aParameter
);
3474 aPropSequence
[3].Name
= "RefX";
3475 Any
aAny ((sal_Int32
) 1);
3476 aPropSequence
[3].Value
= makeAny (aAny
);
3478 aPropSequenceSequence
[1] = aPropSequence
;
3480 aPropertyMap
[PROP_Handles
] <<= aPropSequenceSequence
;
3483 aPropertyMap
[PROP_MirroredX
] <<= Any ((sal_Bool
) sal_False
);
3486 aPropertyMap
[PROP_MirroredY
] <<= Any ((sal_Bool
) sal_False
);
3489 Sequence
< PropertyValue
> aPropSequence (3);
3491 aPropSequence
[0].Name
= "Coordinates";
3492 static const CustomShapeProvider::ParameterPairData aData
[] = {
3494 EnhancedCustomShapeParameterType::NORMAL
,
3495 EnhancedCustomShapeParameterType::EQUATION
,
3499 EnhancedCustomShapeParameterType::EQUATION
,
3500 EnhancedCustomShapeParameterType::EQUATION
,
3504 EnhancedCustomShapeParameterType::EQUATION
,
3505 EnhancedCustomShapeParameterType::EQUATION
,
3509 EnhancedCustomShapeParameterType::EQUATION
,
3510 EnhancedCustomShapeParameterType::EQUATION
,
3514 EnhancedCustomShapeParameterType::EQUATION
,
3515 EnhancedCustomShapeParameterType::EQUATION
,
3519 EnhancedCustomShapeParameterType::EQUATION
,
3520 EnhancedCustomShapeParameterType::EQUATION
,
3524 EnhancedCustomShapeParameterType::EQUATION
,
3525 EnhancedCustomShapeParameterType::EQUATION
,
3529 EnhancedCustomShapeParameterType::EQUATION
,
3530 EnhancedCustomShapeParameterType::EQUATION
,
3534 EnhancedCustomShapeParameterType::EQUATION
,
3535 EnhancedCustomShapeParameterType::EQUATION
,
3539 EnhancedCustomShapeParameterType::EQUATION
,
3540 EnhancedCustomShapeParameterType::EQUATION
,
3544 EnhancedCustomShapeParameterType::EQUATION
,
3545 EnhancedCustomShapeParameterType::EQUATION
,
3549 EnhancedCustomShapeParameterType::EQUATION
,
3550 EnhancedCustomShapeParameterType::EQUATION
,
3554 EnhancedCustomShapeParameterType::EQUATION
,
3555 EnhancedCustomShapeParameterType::EQUATION
,
3559 EnhancedCustomShapeParameterType::EQUATION
,
3560 EnhancedCustomShapeParameterType::EQUATION
,
3564 EnhancedCustomShapeParameterType::EQUATION
,
3565 EnhancedCustomShapeParameterType::EQUATION
,
3569 EnhancedCustomShapeParameterType::EQUATION
,
3570 EnhancedCustomShapeParameterType::EQUATION
,
3574 EnhancedCustomShapeParameterType::EQUATION
,
3575 EnhancedCustomShapeParameterType::EQUATION
,
3579 EnhancedCustomShapeParameterType::EQUATION
,
3580 EnhancedCustomShapeParameterType::EQUATION
,
3584 EnhancedCustomShapeParameterType::EQUATION
,
3585 EnhancedCustomShapeParameterType::EQUATION
,
3589 EnhancedCustomShapeParameterType::EQUATION
,
3590 EnhancedCustomShapeParameterType::EQUATION
,
3594 EnhancedCustomShapeParameterType::EQUATION
,
3595 EnhancedCustomShapeParameterType::NORMAL
,
3599 EnhancedCustomShapeParameterType::EQUATION
,
3600 EnhancedCustomShapeParameterType::EQUATION
,
3604 EnhancedCustomShapeParameterType::EQUATION
,
3605 EnhancedCustomShapeParameterType::EQUATION
,
3609 EnhancedCustomShapeParameterType::EQUATION
,
3610 EnhancedCustomShapeParameterType::EQUATION
,
3614 EnhancedCustomShapeParameterType::NORMAL
,
3615 EnhancedCustomShapeParameterType::EQUATION
,
3619 EnhancedCustomShapeParameterType::EQUATION
,
3620 EnhancedCustomShapeParameterType::EQUATION
,
3624 EnhancedCustomShapeParameterType::EQUATION
,
3625 EnhancedCustomShapeParameterType::EQUATION
,
3629 EnhancedCustomShapeParameterType::EQUATION
,
3630 EnhancedCustomShapeParameterType::EQUATION
,
3634 EnhancedCustomShapeParameterType::EQUATION
,
3635 EnhancedCustomShapeParameterType::EQUATION
,
3639 EnhancedCustomShapeParameterType::EQUATION
,
3640 EnhancedCustomShapeParameterType::EQUATION
,
3644 EnhancedCustomShapeParameterType::EQUATION
,
3645 EnhancedCustomShapeParameterType::EQUATION
,
3649 EnhancedCustomShapeParameterType::EQUATION
,
3650 EnhancedCustomShapeParameterType::EQUATION
,
3654 EnhancedCustomShapeParameterType::EQUATION
,
3655 EnhancedCustomShapeParameterType::EQUATION
,
3659 EnhancedCustomShapeParameterType::EQUATION
,
3660 EnhancedCustomShapeParameterType::EQUATION
,
3664 EnhancedCustomShapeParameterType::EQUATION
,
3665 EnhancedCustomShapeParameterType::EQUATION
,
3669 EnhancedCustomShapeParameterType::EQUATION
,
3670 EnhancedCustomShapeParameterType::EQUATION
,
3674 EnhancedCustomShapeParameterType::EQUATION
,
3675 EnhancedCustomShapeParameterType::EQUATION
,
3679 EnhancedCustomShapeParameterType::EQUATION
,
3680 EnhancedCustomShapeParameterType::EQUATION
,
3684 EnhancedCustomShapeParameterType::EQUATION
,
3685 EnhancedCustomShapeParameterType::EQUATION
,
3689 EnhancedCustomShapeParameterType::EQUATION
,
3690 EnhancedCustomShapeParameterType::EQUATION
,
3694 EnhancedCustomShapeParameterType::NORMAL
,
3695 EnhancedCustomShapeParameterType::EQUATION
,
3699 EnhancedCustomShapeParameterType::EQUATION
,
3700 EnhancedCustomShapeParameterType::EQUATION
,
3704 EnhancedCustomShapeParameterType::NORMAL
,
3705 EnhancedCustomShapeParameterType::EQUATION
,
3709 EnhancedCustomShapeParameterType::EQUATION
,
3710 EnhancedCustomShapeParameterType::EQUATION
,
3714 EnhancedCustomShapeParameterType::EQUATION
,
3715 EnhancedCustomShapeParameterType::EQUATION
,
3719 EnhancedCustomShapeParameterType::EQUATION
,
3720 EnhancedCustomShapeParameterType::EQUATION
,
3724 EnhancedCustomShapeParameterType::EQUATION
,
3725 EnhancedCustomShapeParameterType::EQUATION
,
3729 EnhancedCustomShapeParameterType::EQUATION
,
3730 EnhancedCustomShapeParameterType::NORMAL
,
3734 EnhancedCustomShapeParameterType::EQUATION
,
3735 EnhancedCustomShapeParameterType::EQUATION
,
3739 EnhancedCustomShapeParameterType::EQUATION
,
3740 EnhancedCustomShapeParameterType::EQUATION
,
3744 EnhancedCustomShapeParameterType::EQUATION
,
3745 EnhancedCustomShapeParameterType::EQUATION
,
3749 EnhancedCustomShapeParameterType::EQUATION
,
3750 EnhancedCustomShapeParameterType::EQUATION
,
3754 EnhancedCustomShapeParameterType::EQUATION
,
3755 EnhancedCustomShapeParameterType::EQUATION
,
3759 EnhancedCustomShapeParameterType::EQUATION
,
3760 EnhancedCustomShapeParameterType::EQUATION
,
3764 EnhancedCustomShapeParameterType::EQUATION
,
3765 EnhancedCustomShapeParameterType::EQUATION
,
3769 EnhancedCustomShapeParameterType::EQUATION
,
3770 EnhancedCustomShapeParameterType::EQUATION
,
3774 EnhancedCustomShapeParameterType::EQUATION
,
3775 EnhancedCustomShapeParameterType::EQUATION
,
3779 EnhancedCustomShapeParameterType::EQUATION
,
3780 EnhancedCustomShapeParameterType::EQUATION
,
3784 EnhancedCustomShapeParameterType::EQUATION
,
3785 EnhancedCustomShapeParameterType::EQUATION
,
3789 EnhancedCustomShapeParameterType::EQUATION
,
3790 EnhancedCustomShapeParameterType::EQUATION
,
3794 EnhancedCustomShapeParameterType::EQUATION
,
3795 EnhancedCustomShapeParameterType::EQUATION
,
3799 EnhancedCustomShapeParameterType::EQUATION
,
3800 EnhancedCustomShapeParameterType::EQUATION
,
3804 EnhancedCustomShapeParameterType::EQUATION
,
3805 EnhancedCustomShapeParameterType::EQUATION
,
3809 EnhancedCustomShapeParameterType::EQUATION
,
3810 EnhancedCustomShapeParameterType::EQUATION
,
3814 EnhancedCustomShapeParameterType::EQUATION
,
3815 EnhancedCustomShapeParameterType::EQUATION
,
3819 EnhancedCustomShapeParameterType::EQUATION
,
3820 EnhancedCustomShapeParameterType::EQUATION
,
3824 EnhancedCustomShapeParameterType::EQUATION
,
3825 EnhancedCustomShapeParameterType::EQUATION
,
3829 EnhancedCustomShapeParameterType::EQUATION
,
3830 EnhancedCustomShapeParameterType::EQUATION
,
3834 EnhancedCustomShapeParameterType::EQUATION
,
3835 EnhancedCustomShapeParameterType::EQUATION
,
3839 EnhancedCustomShapeParameterType::EQUATION
,
3840 EnhancedCustomShapeParameterType::EQUATION
,
3844 EnhancedCustomShapeParameterType::EQUATION
,
3845 EnhancedCustomShapeParameterType::EQUATION
,
3849 EnhancedCustomShapeParameterType::EQUATION
,
3850 EnhancedCustomShapeParameterType::EQUATION
,
3854 EnhancedCustomShapeParameterType::EQUATION
,
3855 EnhancedCustomShapeParameterType::EQUATION
,
3859 EnhancedCustomShapeParameterType::EQUATION
,
3860 EnhancedCustomShapeParameterType::EQUATION
,
3864 EnhancedCustomShapeParameterType::EQUATION
,
3865 EnhancedCustomShapeParameterType::EQUATION
,
3869 aPropSequence
[0].Value
= makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData
), aData
));
3872 aPropSequence
[1].Name
= "Segments";
3873 static const sal_uInt16 nValues
[] = {
3932 aPropSequence
[1].Value
= makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues
), nValues
));
3935 aPropSequence
[2].Name
= "TextFrames";
3936 Sequence
< EnhancedCustomShapeTextFrame
> aTextFrameSeq (1);
3938 EnhancedCustomShapeTextFrame aTextFrame
;
3940 static const CustomShapeProvider::ParameterPairData aData
=
3942 EnhancedCustomShapeParameterType::EQUATION
,
3943 EnhancedCustomShapeParameterType::NORMAL
,
3946 aTextFrame
.TopLeft
= createParameterPair(&aData
);
3949 static const CustomShapeProvider::ParameterPairData aData
=
3951 EnhancedCustomShapeParameterType::EQUATION
,
3952 EnhancedCustomShapeParameterType::EQUATION
,
3955 aTextFrame
.BottomRight
= createParameterPair(&aData
);
3957 aTextFrameSeq
[0] = aTextFrame
;
3959 aPropSequence
[2].Value
= makeAny (aTextFrameSeq
);
3961 aPropertyMap
[PROP_Path
] <<= aPropSequence
;
3964 awt::Rectangle aRectangle
;
3967 aRectangle
.Width
= 0;
3968 aRectangle
.Height
= 0;
3969 aPropertyMap
[PROP_ViewBox
] <<= aRectangle
;
3971 aPropertyMap
[ PROP_Type
] <<= OUString("ooxml-ribbon2");
3973 return aPropertyMap
;
3976 class ShapeCbracePair
: public CustomShapeProvider
3978 virtual PropertyMap
getProperties()
3980 PropertyMap aPropertyMap
;
3983 Sequence
< EnhancedCustomShapeAdjustmentValue
> aAdjSequence (1);
3985 Any
aAny ((sal_Int32
) 8333);
3986 aAdjSequence
[0].Value
= aAny
;
3987 aAdjSequence
[0].Name
= "adj";
3989 aPropertyMap
[PROP_AdjustmentValues
] <<= aAdjSequence
;
3992 static const char *aStrings
[] = {
3993 "if(0-$0 ,0,if(25000-$0 ,$0 ,25000))",
3994 "min(logwidth,logheight)",
4010 "(5400000)/60000.0",
4011 "(5400000)/60000.0",
4013 "(-5400000)/60000.0",
4014 "(5400000)/60000.0",
4015 "(-5400000)/60000.0",
4016 "(10800000)/60000.0",
4017 "(5400000)/60000.0",
4018 "(16200000)/60000.0",
4019 "(5400000)/60000.0",
4020 "(10800000)/60000.0",
4021 "(-5400000)/60000.0",
4022 "(16200000)/60000.0",
4023 "(-5400000)/60000.0",
4025 "(5400000)/60000.0",
4026 "(5400000)/60000.0",
4027 "(5400000)/60000.0",
4029 "(-5400000)/60000.0",
4030 "(5400000)/60000.0",
4031 "(-5400000)/60000.0",
4032 "(10800000)/60000.0",
4033 "(5400000)/60000.0",
4034 "(16200000)/60000.0",
4035 "(5400000)/60000.0",
4036 "(10800000)/60000.0",
4037 "(-5400000)/60000.0",
4038 "(16200000)/60000.0",
4039 "(-5400000)/60000.0",
4043 aPropertyMap
[PROP_Equations
] <<= createStringSequence( SAL_N_ELEMENTS( aStrings
), aStrings
);
4046 Sequence
< Sequence
< PropertyValue
> > aPropSequenceSequence (1);
4048 Sequence
< PropertyValue
> aPropSequence (4);
4050 aPropSequence
[0].Name
= "Position";
4051 static const CustomShapeProvider::ParameterPairData aData
=
4053 EnhancedCustomShapeParameterType::NORMAL
,
4054 EnhancedCustomShapeParameterType::EQUATION
,
4057 aPropSequence
[0].Value
= makeAny (createParameterPair(&aData
));
4060 aPropSequence
[1].Name
= "RangeYMaximum";
4061 EnhancedCustomShapeParameter aParameter
;
4062 Any
aAny ((sal_Int32
) 25000);
4063 aParameter
.Value
= aAny
;
4064 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
4065 aPropSequence
[1].Value
= makeAny (aParameter
);
4068 aPropSequence
[2].Name
= "RangeYMinimum";
4069 EnhancedCustomShapeParameter aParameter
;
4070 Any
aAny ((sal_Int32
) 0);
4071 aParameter
.Value
= aAny
;
4072 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
4073 aPropSequence
[2].Value
= makeAny (aParameter
);
4076 aPropSequence
[3].Name
= "RefY";
4077 Any
aAny ((sal_Int32
) 0);
4078 aPropSequence
[3].Value
= makeAny (aAny
);
4080 aPropSequenceSequence
[0] = aPropSequence
;
4082 aPropertyMap
[PROP_Handles
] <<= aPropSequenceSequence
;
4085 aPropertyMap
[PROP_MirroredX
] <<= Any ((sal_Bool
) sal_False
);
4088 aPropertyMap
[PROP_MirroredY
] <<= Any ((sal_Bool
) sal_False
);
4091 Sequence
< PropertyValue
> aPropSequence (3);
4093 aPropSequence
[0].Name
= "Coordinates";
4094 static const CustomShapeProvider::ParameterPairData aData
[] = {
4096 EnhancedCustomShapeParameterType::EQUATION
,
4097 EnhancedCustomShapeParameterType::EQUATION
,
4101 EnhancedCustomShapeParameterType::EQUATION
,
4102 EnhancedCustomShapeParameterType::EQUATION
,
4106 EnhancedCustomShapeParameterType::EQUATION
,
4107 EnhancedCustomShapeParameterType::EQUATION
,
4111 EnhancedCustomShapeParameterType::EQUATION
,
4112 EnhancedCustomShapeParameterType::EQUATION
,
4116 EnhancedCustomShapeParameterType::EQUATION
,
4117 EnhancedCustomShapeParameterType::EQUATION
,
4121 EnhancedCustomShapeParameterType::EQUATION
,
4122 EnhancedCustomShapeParameterType::EQUATION
,
4126 EnhancedCustomShapeParameterType::EQUATION
,
4127 EnhancedCustomShapeParameterType::EQUATION
,
4131 EnhancedCustomShapeParameterType::EQUATION
,
4132 EnhancedCustomShapeParameterType::EQUATION
,
4136 EnhancedCustomShapeParameterType::EQUATION
,
4137 EnhancedCustomShapeParameterType::EQUATION
,
4141 EnhancedCustomShapeParameterType::EQUATION
,
4142 EnhancedCustomShapeParameterType::EQUATION
,
4146 EnhancedCustomShapeParameterType::EQUATION
,
4147 EnhancedCustomShapeParameterType::EQUATION
,
4151 EnhancedCustomShapeParameterType::EQUATION
,
4152 EnhancedCustomShapeParameterType::NORMAL
,
4156 EnhancedCustomShapeParameterType::EQUATION
,
4157 EnhancedCustomShapeParameterType::EQUATION
,
4161 EnhancedCustomShapeParameterType::EQUATION
,
4162 EnhancedCustomShapeParameterType::EQUATION
,
4166 EnhancedCustomShapeParameterType::EQUATION
,
4167 EnhancedCustomShapeParameterType::EQUATION
,
4171 EnhancedCustomShapeParameterType::EQUATION
,
4172 EnhancedCustomShapeParameterType::EQUATION
,
4176 EnhancedCustomShapeParameterType::EQUATION
,
4177 EnhancedCustomShapeParameterType::EQUATION
,
4181 EnhancedCustomShapeParameterType::EQUATION
,
4182 EnhancedCustomShapeParameterType::EQUATION
,
4186 EnhancedCustomShapeParameterType::EQUATION
,
4187 EnhancedCustomShapeParameterType::EQUATION
,
4191 EnhancedCustomShapeParameterType::EQUATION
,
4192 EnhancedCustomShapeParameterType::EQUATION
,
4196 EnhancedCustomShapeParameterType::EQUATION
,
4197 EnhancedCustomShapeParameterType::EQUATION
,
4201 EnhancedCustomShapeParameterType::EQUATION
,
4202 EnhancedCustomShapeParameterType::EQUATION
,
4206 EnhancedCustomShapeParameterType::EQUATION
,
4207 EnhancedCustomShapeParameterType::EQUATION
,
4211 EnhancedCustomShapeParameterType::EQUATION
,
4212 EnhancedCustomShapeParameterType::EQUATION
,
4216 EnhancedCustomShapeParameterType::EQUATION
,
4217 EnhancedCustomShapeParameterType::EQUATION
,
4221 EnhancedCustomShapeParameterType::EQUATION
,
4222 EnhancedCustomShapeParameterType::EQUATION
,
4226 EnhancedCustomShapeParameterType::EQUATION
,
4227 EnhancedCustomShapeParameterType::EQUATION
,
4231 EnhancedCustomShapeParameterType::EQUATION
,
4232 EnhancedCustomShapeParameterType::EQUATION
,
4236 EnhancedCustomShapeParameterType::EQUATION
,
4237 EnhancedCustomShapeParameterType::EQUATION
,
4241 EnhancedCustomShapeParameterType::EQUATION
,
4242 EnhancedCustomShapeParameterType::EQUATION
,
4246 EnhancedCustomShapeParameterType::EQUATION
,
4247 EnhancedCustomShapeParameterType::EQUATION
,
4251 EnhancedCustomShapeParameterType::EQUATION
,
4252 EnhancedCustomShapeParameterType::EQUATION
,
4256 EnhancedCustomShapeParameterType::EQUATION
,
4257 EnhancedCustomShapeParameterType::EQUATION
,
4261 EnhancedCustomShapeParameterType::EQUATION
,
4262 EnhancedCustomShapeParameterType::NORMAL
,
4266 EnhancedCustomShapeParameterType::EQUATION
,
4267 EnhancedCustomShapeParameterType::EQUATION
,
4271 EnhancedCustomShapeParameterType::EQUATION
,
4272 EnhancedCustomShapeParameterType::EQUATION
,
4276 EnhancedCustomShapeParameterType::EQUATION
,
4277 EnhancedCustomShapeParameterType::EQUATION
,
4281 EnhancedCustomShapeParameterType::EQUATION
,
4282 EnhancedCustomShapeParameterType::EQUATION
,
4286 EnhancedCustomShapeParameterType::EQUATION
,
4287 EnhancedCustomShapeParameterType::EQUATION
,
4291 EnhancedCustomShapeParameterType::EQUATION
,
4292 EnhancedCustomShapeParameterType::EQUATION
,
4296 EnhancedCustomShapeParameterType::EQUATION
,
4297 EnhancedCustomShapeParameterType::EQUATION
,
4301 EnhancedCustomShapeParameterType::EQUATION
,
4302 EnhancedCustomShapeParameterType::EQUATION
,
4306 EnhancedCustomShapeParameterType::EQUATION
,
4307 EnhancedCustomShapeParameterType::EQUATION
,
4311 EnhancedCustomShapeParameterType::EQUATION
,
4312 EnhancedCustomShapeParameterType::EQUATION
,
4316 aPropSequence
[0].Value
= makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData
), aData
));
4319 aPropSequence
[1].Name
= "Segments";
4320 static const sal_uInt16 nValues
[] = {
4352 aPropSequence
[1].Value
= makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues
), nValues
));
4355 aPropSequence
[2].Name
= "TextFrames";
4356 Sequence
< EnhancedCustomShapeTextFrame
> aTextFrameSeq (1);
4358 EnhancedCustomShapeTextFrame aTextFrame
;
4360 static const CustomShapeProvider::ParameterPairData aData
=
4362 EnhancedCustomShapeParameterType::EQUATION
,
4363 EnhancedCustomShapeParameterType::EQUATION
,
4366 aTextFrame
.TopLeft
= createParameterPair(&aData
);
4369 static const CustomShapeProvider::ParameterPairData aData
=
4371 EnhancedCustomShapeParameterType::EQUATION
,
4372 EnhancedCustomShapeParameterType::EQUATION
,
4375 aTextFrame
.BottomRight
= createParameterPair(&aData
);
4377 aTextFrameSeq
[0] = aTextFrame
;
4379 aPropSequence
[2].Value
= makeAny (aTextFrameSeq
);
4381 aPropertyMap
[PROP_Path
] <<= aPropSequence
;
4384 awt::Rectangle aRectangle
;
4387 aRectangle
.Width
= 0;
4388 aRectangle
.Height
= 0;
4389 aPropertyMap
[PROP_ViewBox
] <<= aRectangle
;
4391 aPropertyMap
[ PROP_Type
] <<= OUString("ooxml-bracePair");
4393 return aPropertyMap
;
4396 class ShapeCflowChartExtract
: public CustomShapeProvider
4398 virtual PropertyMap
getProperties()
4400 PropertyMap aPropertyMap
;
4403 aPropertyMap
[PROP_AdjustmentValues
] <<= Sequence
< OUString
>(0);
4406 static const char *aStrings
[] = {
4413 aPropertyMap
[PROP_Equations
] <<= createStringSequence( SAL_N_ELEMENTS( aStrings
), aStrings
);
4416 aPropertyMap
[PROP_Handles
] <<= Sequence
< OUString
>(0);
4419 aPropertyMap
[PROP_MirroredX
] <<= Any ((sal_Bool
) sal_False
);
4422 aPropertyMap
[PROP_MirroredY
] <<= Any ((sal_Bool
) sal_False
);
4425 Sequence
< PropertyValue
> aPropSequence (4);
4427 aPropSequence
[0].Name
= "Coordinates";
4428 static const CustomShapeProvider::ParameterPairData aData
[] = {
4430 EnhancedCustomShapeParameterType::NORMAL
,
4431 EnhancedCustomShapeParameterType::NORMAL
,
4435 EnhancedCustomShapeParameterType::NORMAL
,
4436 EnhancedCustomShapeParameterType::NORMAL
,
4440 EnhancedCustomShapeParameterType::NORMAL
,
4441 EnhancedCustomShapeParameterType::NORMAL
,
4445 aPropSequence
[0].Value
= makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData
), aData
));
4448 aPropSequence
[1].Name
= "Segments";
4449 static const sal_uInt16 nValues
[] = {
4456 aPropSequence
[1].Value
= makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues
), nValues
));
4459 aPropSequence
[2].Name
= "SubViewSize";
4460 Sequence
< awt::Size
> aSizeSequence (1);
4465 aSizeSequence
[0] = aSize
;
4467 aPropSequence
[2].Value
= makeAny (aSizeSequence
);
4470 aPropSequence
[3].Name
= "TextFrames";
4471 Sequence
< EnhancedCustomShapeTextFrame
> aTextFrameSeq (1);
4473 EnhancedCustomShapeTextFrame aTextFrame
;
4475 static const CustomShapeProvider::ParameterPairData aData
=
4477 EnhancedCustomShapeParameterType::EQUATION
,
4478 EnhancedCustomShapeParameterType::EQUATION
,
4481 aTextFrame
.TopLeft
= createParameterPair(&aData
);
4484 static const CustomShapeProvider::ParameterPairData aData
=
4486 EnhancedCustomShapeParameterType::EQUATION
,
4487 EnhancedCustomShapeParameterType::EQUATION
,
4490 aTextFrame
.BottomRight
= createParameterPair(&aData
);
4492 aTextFrameSeq
[0] = aTextFrame
;
4494 aPropSequence
[3].Value
= makeAny (aTextFrameSeq
);
4496 aPropertyMap
[PROP_Path
] <<= aPropSequence
;
4499 awt::Rectangle aRectangle
;
4502 aRectangle
.Width
= 0;
4503 aRectangle
.Height
= 0;
4504 aPropertyMap
[PROP_ViewBox
] <<= aRectangle
;
4506 aPropertyMap
[ PROP_Type
] <<= OUString("ooxml-flowChartExtract");
4508 return aPropertyMap
;
4511 class ShapeCactionButtonHome
: public CustomShapeProvider
4513 virtual PropertyMap
getProperties()
4515 PropertyMap aPropertyMap
;
4518 aPropertyMap
[PROP_AdjustmentValues
] <<= Sequence
< OUString
>(0);
4521 static const char *aStrings
[] = {
4522 "min(logwidth,logheight)",
4554 aPropertyMap
[PROP_Equations
] <<= createStringSequence( SAL_N_ELEMENTS( aStrings
), aStrings
);
4557 aPropertyMap
[PROP_Handles
] <<= Sequence
< OUString
>(0);
4560 aPropertyMap
[PROP_MirroredX
] <<= Any ((sal_Bool
) sal_False
);
4563 aPropertyMap
[PROP_MirroredY
] <<= Any ((sal_Bool
) sal_False
);
4566 Sequence
< PropertyValue
> aPropSequence (3);
4568 aPropSequence
[0].Name
= "Coordinates";
4569 static const CustomShapeProvider::ParameterPairData aData
[] = {
4571 EnhancedCustomShapeParameterType::NORMAL
,
4572 EnhancedCustomShapeParameterType::NORMAL
,
4576 EnhancedCustomShapeParameterType::EQUATION
,
4577 EnhancedCustomShapeParameterType::NORMAL
,
4581 EnhancedCustomShapeParameterType::EQUATION
,
4582 EnhancedCustomShapeParameterType::EQUATION
,
4586 EnhancedCustomShapeParameterType::NORMAL
,
4587 EnhancedCustomShapeParameterType::EQUATION
,
4591 EnhancedCustomShapeParameterType::EQUATION
,
4592 EnhancedCustomShapeParameterType::EQUATION
,
4596 EnhancedCustomShapeParameterType::EQUATION
,
4597 EnhancedCustomShapeParameterType::EQUATION
,
4601 EnhancedCustomShapeParameterType::EQUATION
,
4602 EnhancedCustomShapeParameterType::EQUATION
,
4606 EnhancedCustomShapeParameterType::EQUATION
,
4607 EnhancedCustomShapeParameterType::EQUATION
,
4611 EnhancedCustomShapeParameterType::EQUATION
,
4612 EnhancedCustomShapeParameterType::EQUATION
,
4616 EnhancedCustomShapeParameterType::EQUATION
,
4617 EnhancedCustomShapeParameterType::EQUATION
,
4621 EnhancedCustomShapeParameterType::EQUATION
,
4622 EnhancedCustomShapeParameterType::EQUATION
,
4626 EnhancedCustomShapeParameterType::EQUATION
,
4627 EnhancedCustomShapeParameterType::EQUATION
,
4631 EnhancedCustomShapeParameterType::EQUATION
,
4632 EnhancedCustomShapeParameterType::EQUATION
,
4636 EnhancedCustomShapeParameterType::EQUATION
,
4637 EnhancedCustomShapeParameterType::EQUATION
,
4641 EnhancedCustomShapeParameterType::EQUATION
,
4642 EnhancedCustomShapeParameterType::EQUATION
,
4646 EnhancedCustomShapeParameterType::EQUATION
,
4647 EnhancedCustomShapeParameterType::EQUATION
,
4651 EnhancedCustomShapeParameterType::EQUATION
,
4652 EnhancedCustomShapeParameterType::EQUATION
,
4656 EnhancedCustomShapeParameterType::EQUATION
,
4657 EnhancedCustomShapeParameterType::EQUATION
,
4661 EnhancedCustomShapeParameterType::EQUATION
,
4662 EnhancedCustomShapeParameterType::EQUATION
,
4666 EnhancedCustomShapeParameterType::EQUATION
,
4667 EnhancedCustomShapeParameterType::EQUATION
,
4671 EnhancedCustomShapeParameterType::EQUATION
,
4672 EnhancedCustomShapeParameterType::EQUATION
,
4676 EnhancedCustomShapeParameterType::EQUATION
,
4677 EnhancedCustomShapeParameterType::EQUATION
,
4681 EnhancedCustomShapeParameterType::EQUATION
,
4682 EnhancedCustomShapeParameterType::EQUATION
,
4686 EnhancedCustomShapeParameterType::EQUATION
,
4687 EnhancedCustomShapeParameterType::EQUATION
,
4691 EnhancedCustomShapeParameterType::EQUATION
,
4692 EnhancedCustomShapeParameterType::EQUATION
,
4696 EnhancedCustomShapeParameterType::EQUATION
,
4697 EnhancedCustomShapeParameterType::EQUATION
,
4701 EnhancedCustomShapeParameterType::EQUATION
,
4702 EnhancedCustomShapeParameterType::EQUATION
,
4706 EnhancedCustomShapeParameterType::EQUATION
,
4707 EnhancedCustomShapeParameterType::EQUATION
,
4711 EnhancedCustomShapeParameterType::EQUATION
,
4712 EnhancedCustomShapeParameterType::EQUATION
,
4716 EnhancedCustomShapeParameterType::EQUATION
,
4717 EnhancedCustomShapeParameterType::EQUATION
,
4721 EnhancedCustomShapeParameterType::EQUATION
,
4722 EnhancedCustomShapeParameterType::EQUATION
,
4726 EnhancedCustomShapeParameterType::EQUATION
,
4727 EnhancedCustomShapeParameterType::EQUATION
,
4731 EnhancedCustomShapeParameterType::EQUATION
,
4732 EnhancedCustomShapeParameterType::EQUATION
,
4736 EnhancedCustomShapeParameterType::EQUATION
,
4737 EnhancedCustomShapeParameterType::EQUATION
,
4741 EnhancedCustomShapeParameterType::EQUATION
,
4742 EnhancedCustomShapeParameterType::EQUATION
,
4746 EnhancedCustomShapeParameterType::EQUATION
,
4747 EnhancedCustomShapeParameterType::EQUATION
,
4751 EnhancedCustomShapeParameterType::EQUATION
,
4752 EnhancedCustomShapeParameterType::EQUATION
,
4756 EnhancedCustomShapeParameterType::EQUATION
,
4757 EnhancedCustomShapeParameterType::EQUATION
,
4761 EnhancedCustomShapeParameterType::EQUATION
,
4762 EnhancedCustomShapeParameterType::EQUATION
,
4766 EnhancedCustomShapeParameterType::EQUATION
,
4767 EnhancedCustomShapeParameterType::EQUATION
,
4771 EnhancedCustomShapeParameterType::EQUATION
,
4772 EnhancedCustomShapeParameterType::EQUATION
,
4776 EnhancedCustomShapeParameterType::EQUATION
,
4777 EnhancedCustomShapeParameterType::EQUATION
,
4781 EnhancedCustomShapeParameterType::EQUATION
,
4782 EnhancedCustomShapeParameterType::EQUATION
,
4786 EnhancedCustomShapeParameterType::EQUATION
,
4787 EnhancedCustomShapeParameterType::EQUATION
,
4791 EnhancedCustomShapeParameterType::EQUATION
,
4792 EnhancedCustomShapeParameterType::EQUATION
,
4796 EnhancedCustomShapeParameterType::EQUATION
,
4797 EnhancedCustomShapeParameterType::EQUATION
,
4801 EnhancedCustomShapeParameterType::EQUATION
,
4802 EnhancedCustomShapeParameterType::EQUATION
,
4806 EnhancedCustomShapeParameterType::EQUATION
,
4807 EnhancedCustomShapeParameterType::EQUATION
,
4811 EnhancedCustomShapeParameterType::EQUATION
,
4812 EnhancedCustomShapeParameterType::EQUATION
,
4816 EnhancedCustomShapeParameterType::EQUATION
,
4817 EnhancedCustomShapeParameterType::EQUATION
,
4821 EnhancedCustomShapeParameterType::EQUATION
,
4822 EnhancedCustomShapeParameterType::EQUATION
,
4826 EnhancedCustomShapeParameterType::EQUATION
,
4827 EnhancedCustomShapeParameterType::EQUATION
,
4831 EnhancedCustomShapeParameterType::EQUATION
,
4832 EnhancedCustomShapeParameterType::EQUATION
,
4836 EnhancedCustomShapeParameterType::NORMAL
,
4837 EnhancedCustomShapeParameterType::NORMAL
,
4841 EnhancedCustomShapeParameterType::EQUATION
,
4842 EnhancedCustomShapeParameterType::NORMAL
,
4846 EnhancedCustomShapeParameterType::EQUATION
,
4847 EnhancedCustomShapeParameterType::EQUATION
,
4851 EnhancedCustomShapeParameterType::NORMAL
,
4852 EnhancedCustomShapeParameterType::EQUATION
,
4856 aPropSequence
[0].Value
= makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData
), aData
));
4859 aPropSequence
[1].Name
= "Segments";
4860 static const sal_uInt16 nValues
[] = {
4905 aPropSequence
[1].Value
= makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues
), nValues
));
4908 aPropSequence
[2].Name
= "TextFrames";
4909 Sequence
< EnhancedCustomShapeTextFrame
> aTextFrameSeq (1);
4911 EnhancedCustomShapeTextFrame aTextFrame
;
4913 static const CustomShapeProvider::ParameterPairData aData
=
4915 EnhancedCustomShapeParameterType::NORMAL
,
4916 EnhancedCustomShapeParameterType::NORMAL
,
4919 aTextFrame
.TopLeft
= createParameterPair(&aData
);
4922 static const CustomShapeProvider::ParameterPairData aData
=
4924 EnhancedCustomShapeParameterType::EQUATION
,
4925 EnhancedCustomShapeParameterType::EQUATION
,
4928 aTextFrame
.BottomRight
= createParameterPair(&aData
);
4930 aTextFrameSeq
[0] = aTextFrame
;
4932 aPropSequence
[2].Value
= makeAny (aTextFrameSeq
);
4934 aPropertyMap
[PROP_Path
] <<= aPropSequence
;
4937 awt::Rectangle aRectangle
;
4940 aRectangle
.Width
= 0;
4941 aRectangle
.Height
= 0;
4942 aPropertyMap
[PROP_ViewBox
] <<= aRectangle
;
4944 aPropertyMap
[ PROP_Type
] <<= OUString("ooxml-actionButtonHome");
4946 return aPropertyMap
;
4949 class ShapeCaccentBorderCallout3
: public CustomShapeProvider
4951 virtual PropertyMap
getProperties()
4953 PropertyMap aPropertyMap
;
4956 Sequence
< EnhancedCustomShapeAdjustmentValue
> aAdjSequence (8);
4958 Any
aAny ((sal_Int32
) 18750);
4959 aAdjSequence
[0].Value
= aAny
;
4960 aAdjSequence
[0].Name
= "adj1";
4963 Any
aAny ((sal_Int32
) -8333);
4964 aAdjSequence
[1].Value
= aAny
;
4965 aAdjSequence
[1].Name
= "adj2";
4968 Any
aAny ((sal_Int32
) 18750);
4969 aAdjSequence
[2].Value
= aAny
;
4970 aAdjSequence
[2].Name
= "adj3";
4973 Any
aAny ((sal_Int32
) -16667);
4974 aAdjSequence
[3].Value
= aAny
;
4975 aAdjSequence
[3].Name
= "adj4";
4978 Any
aAny ((sal_Int32
) 100000);
4979 aAdjSequence
[4].Value
= aAny
;
4980 aAdjSequence
[4].Name
= "adj5";
4983 Any
aAny ((sal_Int32
) -16667);
4984 aAdjSequence
[5].Value
= aAny
;
4985 aAdjSequence
[5].Name
= "adj6";
4988 Any
aAny ((sal_Int32
) 112963);
4989 aAdjSequence
[6].Value
= aAny
;
4990 aAdjSequence
[6].Name
= "adj7";
4993 Any
aAny ((sal_Int32
) -8333);
4994 aAdjSequence
[7].Value
= aAny
;
4995 aAdjSequence
[7].Name
= "adj8";
4997 aPropertyMap
[PROP_AdjustmentValues
] <<= aAdjSequence
;
5000 static const char *aStrings
[] = {
5001 "logheight*$0 /100000",
5002 "logwidth*$1 /100000",
5003 "logheight*$2 /100000",
5004 "logwidth*$3 /100000",
5005 "logheight*$4 /100000",
5006 "logwidth*$5 /100000",
5007 "logheight*$6 /100000",
5008 "logwidth*$7 /100000",
5014 aPropertyMap
[PROP_Equations
] <<= createStringSequence( SAL_N_ELEMENTS( aStrings
), aStrings
);
5017 Sequence
< Sequence
< PropertyValue
> > aPropSequenceSequence (4);
5019 Sequence
< PropertyValue
> aPropSequence (7);
5021 aPropSequence
[0].Name
= "Position";
5022 static const CustomShapeProvider::ParameterPairData aData
=
5024 EnhancedCustomShapeParameterType::EQUATION
,
5025 EnhancedCustomShapeParameterType::EQUATION
,
5028 aPropSequence
[0].Value
= makeAny (createParameterPair(&aData
));
5031 aPropSequence
[1].Name
= "RangeXMaximum";
5032 EnhancedCustomShapeParameter aParameter
;
5033 Any
aAny ((sal_Int32
) 2147483647);
5034 aParameter
.Value
= aAny
;
5035 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
5036 aPropSequence
[1].Value
= makeAny (aParameter
);
5039 aPropSequence
[2].Name
= "RangeXMinimum";
5040 EnhancedCustomShapeParameter aParameter
;
5041 Any
aAny ((sal_Int32
) -2147483647);
5042 aParameter
.Value
= aAny
;
5043 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
5044 aPropSequence
[2].Value
= makeAny (aParameter
);
5047 aPropSequence
[3].Name
= "RangeYMaximum";
5048 EnhancedCustomShapeParameter aParameter
;
5049 Any
aAny ((sal_Int32
) 2147483647);
5050 aParameter
.Value
= aAny
;
5051 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
5052 aPropSequence
[3].Value
= makeAny (aParameter
);
5055 aPropSequence
[4].Name
= "RangeYMinimum";
5056 EnhancedCustomShapeParameter aParameter
;
5057 Any
aAny ((sal_Int32
) -2147483647);
5058 aParameter
.Value
= aAny
;
5059 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
5060 aPropSequence
[4].Value
= makeAny (aParameter
);
5063 aPropSequence
[5].Name
= "RefX";
5064 Any
aAny ((sal_Int32
) 1);
5065 aPropSequence
[5].Value
= makeAny (aAny
);
5068 aPropSequence
[6].Name
= "RefY";
5069 Any
aAny ((sal_Int32
) 0);
5070 aPropSequence
[6].Value
= makeAny (aAny
);
5072 aPropSequenceSequence
[0] = aPropSequence
;
5075 Sequence
< PropertyValue
> aPropSequence (7);
5077 aPropSequence
[0].Name
= "Position";
5078 static const CustomShapeProvider::ParameterPairData aData
=
5080 EnhancedCustomShapeParameterType::EQUATION
,
5081 EnhancedCustomShapeParameterType::EQUATION
,
5084 aPropSequence
[0].Value
= makeAny (createParameterPair(&aData
));
5087 aPropSequence
[1].Name
= "RangeXMaximum";
5088 EnhancedCustomShapeParameter aParameter
;
5089 Any
aAny ((sal_Int32
) 2147483647);
5090 aParameter
.Value
= aAny
;
5091 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
5092 aPropSequence
[1].Value
= makeAny (aParameter
);
5095 aPropSequence
[2].Name
= "RangeXMinimum";
5096 EnhancedCustomShapeParameter aParameter
;
5097 Any
aAny ((sal_Int32
) -2147483647);
5098 aParameter
.Value
= aAny
;
5099 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
5100 aPropSequence
[2].Value
= makeAny (aParameter
);
5103 aPropSequence
[3].Name
= "RangeYMaximum";
5104 EnhancedCustomShapeParameter aParameter
;
5105 Any
aAny ((sal_Int32
) 2147483647);
5106 aParameter
.Value
= aAny
;
5107 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
5108 aPropSequence
[3].Value
= makeAny (aParameter
);
5111 aPropSequence
[4].Name
= "RangeYMinimum";
5112 EnhancedCustomShapeParameter aParameter
;
5113 Any
aAny ((sal_Int32
) -2147483647);
5114 aParameter
.Value
= aAny
;
5115 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
5116 aPropSequence
[4].Value
= makeAny (aParameter
);
5119 aPropSequence
[5].Name
= "RefX";
5120 Any
aAny ((sal_Int32
) 3);
5121 aPropSequence
[5].Value
= makeAny (aAny
);
5124 aPropSequence
[6].Name
= "RefY";
5125 Any
aAny ((sal_Int32
) 2);
5126 aPropSequence
[6].Value
= makeAny (aAny
);
5128 aPropSequenceSequence
[1] = aPropSequence
;
5131 Sequence
< PropertyValue
> aPropSequence (7);
5133 aPropSequence
[0].Name
= "Position";
5134 static const CustomShapeProvider::ParameterPairData aData
=
5136 EnhancedCustomShapeParameterType::EQUATION
,
5137 EnhancedCustomShapeParameterType::EQUATION
,
5140 aPropSequence
[0].Value
= makeAny (createParameterPair(&aData
));
5143 aPropSequence
[1].Name
= "RangeXMaximum";
5144 EnhancedCustomShapeParameter aParameter
;
5145 Any
aAny ((sal_Int32
) 2147483647);
5146 aParameter
.Value
= aAny
;
5147 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
5148 aPropSequence
[1].Value
= makeAny (aParameter
);
5151 aPropSequence
[2].Name
= "RangeXMinimum";
5152 EnhancedCustomShapeParameter aParameter
;
5153 Any
aAny ((sal_Int32
) -2147483647);
5154 aParameter
.Value
= aAny
;
5155 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
5156 aPropSequence
[2].Value
= makeAny (aParameter
);
5159 aPropSequence
[3].Name
= "RangeYMaximum";
5160 EnhancedCustomShapeParameter aParameter
;
5161 Any
aAny ((sal_Int32
) 2147483647);
5162 aParameter
.Value
= aAny
;
5163 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
5164 aPropSequence
[3].Value
= makeAny (aParameter
);
5167 aPropSequence
[4].Name
= "RangeYMinimum";
5168 EnhancedCustomShapeParameter aParameter
;
5169 Any
aAny ((sal_Int32
) -2147483647);
5170 aParameter
.Value
= aAny
;
5171 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
5172 aPropSequence
[4].Value
= makeAny (aParameter
);
5175 aPropSequence
[5].Name
= "RefX";
5176 Any
aAny ((sal_Int32
) 5);
5177 aPropSequence
[5].Value
= makeAny (aAny
);
5180 aPropSequence
[6].Name
= "RefY";
5181 Any
aAny ((sal_Int32
) 4);
5182 aPropSequence
[6].Value
= makeAny (aAny
);
5184 aPropSequenceSequence
[2] = aPropSequence
;
5187 Sequence
< PropertyValue
> aPropSequence (7);
5189 aPropSequence
[0].Name
= "Position";
5190 static const CustomShapeProvider::ParameterPairData aData
=
5192 EnhancedCustomShapeParameterType::EQUATION
,
5193 EnhancedCustomShapeParameterType::EQUATION
,
5196 aPropSequence
[0].Value
= makeAny (createParameterPair(&aData
));
5199 aPropSequence
[1].Name
= "RangeXMaximum";
5200 EnhancedCustomShapeParameter aParameter
;
5201 Any
aAny ((sal_Int32
) 2147483647);
5202 aParameter
.Value
= aAny
;
5203 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
5204 aPropSequence
[1].Value
= makeAny (aParameter
);
5207 aPropSequence
[2].Name
= "RangeXMinimum";
5208 EnhancedCustomShapeParameter aParameter
;
5209 Any
aAny ((sal_Int32
) -2147483647);
5210 aParameter
.Value
= aAny
;
5211 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
5212 aPropSequence
[2].Value
= makeAny (aParameter
);
5215 aPropSequence
[3].Name
= "RangeYMaximum";
5216 EnhancedCustomShapeParameter aParameter
;
5217 Any
aAny ((sal_Int32
) 2147483647);
5218 aParameter
.Value
= aAny
;
5219 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
5220 aPropSequence
[3].Value
= makeAny (aParameter
);
5223 aPropSequence
[4].Name
= "RangeYMinimum";
5224 EnhancedCustomShapeParameter aParameter
;
5225 Any
aAny ((sal_Int32
) -2147483647);
5226 aParameter
.Value
= aAny
;
5227 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
5228 aPropSequence
[4].Value
= makeAny (aParameter
);
5231 aPropSequence
[5].Name
= "RefX";
5232 Any
aAny ((sal_Int32
) 7);
5233 aPropSequence
[5].Value
= makeAny (aAny
);
5236 aPropSequence
[6].Name
= "RefY";
5237 Any
aAny ((sal_Int32
) 6);
5238 aPropSequence
[6].Value
= makeAny (aAny
);
5240 aPropSequenceSequence
[3] = aPropSequence
;
5242 aPropertyMap
[PROP_Handles
] <<= aPropSequenceSequence
;
5245 aPropertyMap
[PROP_MirroredX
] <<= Any ((sal_Bool
) sal_False
);
5248 aPropertyMap
[PROP_MirroredY
] <<= Any ((sal_Bool
) sal_False
);
5251 Sequence
< PropertyValue
> aPropSequence (3);
5253 aPropSequence
[0].Name
= "Coordinates";
5254 static const CustomShapeProvider::ParameterPairData aData
[] = {
5256 EnhancedCustomShapeParameterType::NORMAL
,
5257 EnhancedCustomShapeParameterType::NORMAL
,
5261 EnhancedCustomShapeParameterType::EQUATION
,
5262 EnhancedCustomShapeParameterType::NORMAL
,
5266 EnhancedCustomShapeParameterType::EQUATION
,
5267 EnhancedCustomShapeParameterType::EQUATION
,
5271 EnhancedCustomShapeParameterType::NORMAL
,
5272 EnhancedCustomShapeParameterType::EQUATION
,
5276 EnhancedCustomShapeParameterType::EQUATION
,
5277 EnhancedCustomShapeParameterType::NORMAL
,
5281 EnhancedCustomShapeParameterType::EQUATION
,
5282 EnhancedCustomShapeParameterType::EQUATION
,
5286 EnhancedCustomShapeParameterType::EQUATION
,
5287 EnhancedCustomShapeParameterType::EQUATION
,
5291 EnhancedCustomShapeParameterType::EQUATION
,
5292 EnhancedCustomShapeParameterType::EQUATION
,
5296 EnhancedCustomShapeParameterType::EQUATION
,
5297 EnhancedCustomShapeParameterType::EQUATION
,
5301 EnhancedCustomShapeParameterType::EQUATION
,
5302 EnhancedCustomShapeParameterType::EQUATION
,
5306 aPropSequence
[0].Value
= makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData
), aData
));
5309 aPropSequence
[1].Name
= "Segments";
5310 static const sal_uInt16 nValues
[] = {
5325 aPropSequence
[1].Value
= makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues
), nValues
));
5328 aPropSequence
[2].Name
= "TextFrames";
5329 Sequence
< EnhancedCustomShapeTextFrame
> aTextFrameSeq (1);
5331 EnhancedCustomShapeTextFrame aTextFrame
;
5333 static const CustomShapeProvider::ParameterPairData aData
=
5335 EnhancedCustomShapeParameterType::NORMAL
,
5336 EnhancedCustomShapeParameterType::NORMAL
,
5339 aTextFrame
.TopLeft
= createParameterPair(&aData
);
5342 static const CustomShapeProvider::ParameterPairData aData
=
5344 EnhancedCustomShapeParameterType::EQUATION
,
5345 EnhancedCustomShapeParameterType::EQUATION
,
5348 aTextFrame
.BottomRight
= createParameterPair(&aData
);
5350 aTextFrameSeq
[0] = aTextFrame
;
5352 aPropSequence
[2].Value
= makeAny (aTextFrameSeq
);
5354 aPropertyMap
[PROP_Path
] <<= aPropSequence
;
5357 awt::Rectangle aRectangle
;
5360 aRectangle
.Width
= 0;
5361 aRectangle
.Height
= 0;
5362 aPropertyMap
[PROP_ViewBox
] <<= aRectangle
;
5364 aPropertyMap
[ PROP_Type
] <<= OUString("ooxml-accentBorderCallout3");
5366 return aPropertyMap
;
5369 class ShapeCflowChartOfflineStorage
: public CustomShapeProvider
5371 virtual PropertyMap
getProperties()
5373 PropertyMap aPropertyMap
;
5376 aPropertyMap
[PROP_AdjustmentValues
] <<= Sequence
< OUString
>(0);
5379 static const char *aStrings
[] = {
5386 aPropertyMap
[PROP_Equations
] <<= createStringSequence( SAL_N_ELEMENTS( aStrings
), aStrings
);
5389 aPropertyMap
[PROP_Handles
] <<= Sequence
< OUString
>(0);
5392 aPropertyMap
[PROP_MirroredX
] <<= Any ((sal_Bool
) sal_False
);
5395 aPropertyMap
[PROP_MirroredY
] <<= Any ((sal_Bool
) sal_False
);
5398 Sequence
< PropertyValue
> aPropSequence (4);
5400 aPropSequence
[0].Name
= "Coordinates";
5401 static const CustomShapeProvider::ParameterPairData aData
[] = {
5403 EnhancedCustomShapeParameterType::NORMAL
,
5404 EnhancedCustomShapeParameterType::NORMAL
,
5408 EnhancedCustomShapeParameterType::NORMAL
,
5409 EnhancedCustomShapeParameterType::NORMAL
,
5413 EnhancedCustomShapeParameterType::NORMAL
,
5414 EnhancedCustomShapeParameterType::NORMAL
,
5418 EnhancedCustomShapeParameterType::NORMAL
,
5419 EnhancedCustomShapeParameterType::NORMAL
,
5423 EnhancedCustomShapeParameterType::NORMAL
,
5424 EnhancedCustomShapeParameterType::NORMAL
,
5428 EnhancedCustomShapeParameterType::NORMAL
,
5429 EnhancedCustomShapeParameterType::NORMAL
,
5433 EnhancedCustomShapeParameterType::NORMAL
,
5434 EnhancedCustomShapeParameterType::NORMAL
,
5438 EnhancedCustomShapeParameterType::NORMAL
,
5439 EnhancedCustomShapeParameterType::NORMAL
,
5443 aPropSequence
[0].Value
= makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData
), aData
));
5446 aPropSequence
[1].Name
= "Segments";
5447 static const sal_uInt16 nValues
[] = {
5464 aPropSequence
[1].Value
= makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues
), nValues
));
5467 aPropSequence
[2].Name
= "SubViewSize";
5468 Sequence
< awt::Size
> aSizeSequence (3);
5473 aSizeSequence
[0] = aSize
;
5479 aSizeSequence
[1] = aSize
;
5485 aSizeSequence
[2] = aSize
;
5487 aPropSequence
[2].Value
= makeAny (aSizeSequence
);
5490 aPropSequence
[3].Name
= "TextFrames";
5491 Sequence
< EnhancedCustomShapeTextFrame
> aTextFrameSeq (1);
5493 EnhancedCustomShapeTextFrame aTextFrame
;
5495 static const CustomShapeProvider::ParameterPairData aData
=
5497 EnhancedCustomShapeParameterType::EQUATION
,
5498 EnhancedCustomShapeParameterType::NORMAL
,
5501 aTextFrame
.TopLeft
= createParameterPair(&aData
);
5504 static const CustomShapeProvider::ParameterPairData aData
=
5506 EnhancedCustomShapeParameterType::EQUATION
,
5507 EnhancedCustomShapeParameterType::EQUATION
,
5510 aTextFrame
.BottomRight
= createParameterPair(&aData
);
5512 aTextFrameSeq
[0] = aTextFrame
;
5514 aPropSequence
[3].Value
= makeAny (aTextFrameSeq
);
5516 aPropertyMap
[PROP_Path
] <<= aPropSequence
;
5519 awt::Rectangle aRectangle
;
5522 aRectangle
.Width
= 0;
5523 aRectangle
.Height
= 0;
5524 aPropertyMap
[PROP_ViewBox
] <<= aRectangle
;
5526 aPropertyMap
[ PROP_Type
] <<= OUString("ooxml-flowChartOfflineStorage");
5528 return aPropertyMap
;
5531 class ShapeCirregularSeal1
: public CustomShapeProvider
5533 virtual PropertyMap
getProperties()
5535 PropertyMap aPropertyMap
;
5538 aPropertyMap
[PROP_AdjustmentValues
] <<= Sequence
< OUString
>(0);
5541 static const char *aStrings
[] = {
5542 "logwidth*4627/21600",
5543 "logwidth*8485/21600",
5544 "logwidth*16702/21600",
5545 "logwidth*14522/21600",
5546 "logheight*6320/21600",
5547 "logheight*8615/21600",
5548 "logheight*13937/21600",
5549 "logheight*13290/21600",
5553 aPropertyMap
[PROP_Equations
] <<= createStringSequence( SAL_N_ELEMENTS( aStrings
), aStrings
);
5556 aPropertyMap
[PROP_Handles
] <<= Sequence
< OUString
>(0);
5559 aPropertyMap
[PROP_MirroredX
] <<= Any ((sal_Bool
) sal_False
);
5562 aPropertyMap
[PROP_MirroredY
] <<= Any ((sal_Bool
) sal_False
);
5565 Sequence
< PropertyValue
> aPropSequence (4);
5567 aPropSequence
[0].Name
= "Coordinates";
5568 static const CustomShapeProvider::ParameterPairData aData
[] = {
5570 EnhancedCustomShapeParameterType::NORMAL
,
5571 EnhancedCustomShapeParameterType::NORMAL
,
5575 EnhancedCustomShapeParameterType::NORMAL
,
5576 EnhancedCustomShapeParameterType::NORMAL
,
5580 EnhancedCustomShapeParameterType::NORMAL
,
5581 EnhancedCustomShapeParameterType::NORMAL
,
5585 EnhancedCustomShapeParameterType::NORMAL
,
5586 EnhancedCustomShapeParameterType::NORMAL
,
5590 EnhancedCustomShapeParameterType::NORMAL
,
5591 EnhancedCustomShapeParameterType::NORMAL
,
5595 EnhancedCustomShapeParameterType::NORMAL
,
5596 EnhancedCustomShapeParameterType::NORMAL
,
5600 EnhancedCustomShapeParameterType::NORMAL
,
5601 EnhancedCustomShapeParameterType::NORMAL
,
5605 EnhancedCustomShapeParameterType::NORMAL
,
5606 EnhancedCustomShapeParameterType::NORMAL
,
5610 EnhancedCustomShapeParameterType::NORMAL
,
5611 EnhancedCustomShapeParameterType::NORMAL
,
5615 EnhancedCustomShapeParameterType::NORMAL
,
5616 EnhancedCustomShapeParameterType::NORMAL
,
5620 EnhancedCustomShapeParameterType::NORMAL
,
5621 EnhancedCustomShapeParameterType::NORMAL
,
5625 EnhancedCustomShapeParameterType::NORMAL
,
5626 EnhancedCustomShapeParameterType::NORMAL
,
5630 EnhancedCustomShapeParameterType::NORMAL
,
5631 EnhancedCustomShapeParameterType::NORMAL
,
5635 EnhancedCustomShapeParameterType::NORMAL
,
5636 EnhancedCustomShapeParameterType::NORMAL
,
5640 EnhancedCustomShapeParameterType::NORMAL
,
5641 EnhancedCustomShapeParameterType::NORMAL
,
5645 EnhancedCustomShapeParameterType::NORMAL
,
5646 EnhancedCustomShapeParameterType::NORMAL
,
5650 EnhancedCustomShapeParameterType::NORMAL
,
5651 EnhancedCustomShapeParameterType::NORMAL
,
5655 EnhancedCustomShapeParameterType::NORMAL
,
5656 EnhancedCustomShapeParameterType::NORMAL
,
5660 EnhancedCustomShapeParameterType::NORMAL
,
5661 EnhancedCustomShapeParameterType::NORMAL
,
5665 EnhancedCustomShapeParameterType::NORMAL
,
5666 EnhancedCustomShapeParameterType::NORMAL
,
5670 EnhancedCustomShapeParameterType::NORMAL
,
5671 EnhancedCustomShapeParameterType::NORMAL
,
5675 EnhancedCustomShapeParameterType::NORMAL
,
5676 EnhancedCustomShapeParameterType::NORMAL
,
5680 EnhancedCustomShapeParameterType::NORMAL
,
5681 EnhancedCustomShapeParameterType::NORMAL
,
5685 EnhancedCustomShapeParameterType::NORMAL
,
5686 EnhancedCustomShapeParameterType::NORMAL
,
5690 aPropSequence
[0].Value
= makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData
), aData
));
5693 aPropSequence
[1].Name
= "Segments";
5694 static const sal_uInt16 nValues
[] = {
5701 aPropSequence
[1].Value
= makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues
), nValues
));
5704 aPropSequence
[2].Name
= "SubViewSize";
5705 Sequence
< awt::Size
> aSizeSequence (1);
5708 aSize
.Width
= 21600;
5709 aSize
.Height
= 21600;
5710 aSizeSequence
[0] = aSize
;
5712 aPropSequence
[2].Value
= makeAny (aSizeSequence
);
5715 aPropSequence
[3].Name
= "TextFrames";
5716 Sequence
< EnhancedCustomShapeTextFrame
> aTextFrameSeq (1);
5718 EnhancedCustomShapeTextFrame aTextFrame
;
5720 static const CustomShapeProvider::ParameterPairData aData
=
5722 EnhancedCustomShapeParameterType::EQUATION
,
5723 EnhancedCustomShapeParameterType::EQUATION
,
5726 aTextFrame
.TopLeft
= createParameterPair(&aData
);
5729 static const CustomShapeProvider::ParameterPairData aData
=
5731 EnhancedCustomShapeParameterType::EQUATION
,
5732 EnhancedCustomShapeParameterType::EQUATION
,
5735 aTextFrame
.BottomRight
= createParameterPair(&aData
);
5737 aTextFrameSeq
[0] = aTextFrame
;
5739 aPropSequence
[3].Value
= makeAny (aTextFrameSeq
);
5741 aPropertyMap
[PROP_Path
] <<= aPropSequence
;
5744 awt::Rectangle aRectangle
;
5747 aRectangle
.Width
= 0;
5748 aRectangle
.Height
= 0;
5749 aPropertyMap
[PROP_ViewBox
] <<= aRectangle
;
5751 aPropertyMap
[ PROP_Type
] <<= OUString("ooxml-irregularSeal1");
5753 return aPropertyMap
;
5756 class ShapeCquadArrow
: public CustomShapeProvider
5758 virtual PropertyMap
getProperties()
5760 PropertyMap aPropertyMap
;
5763 Sequence
< EnhancedCustomShapeAdjustmentValue
> aAdjSequence (3);
5765 Any
aAny ((sal_Int32
) 22500);
5766 aAdjSequence
[0].Value
= aAny
;
5767 aAdjSequence
[0].Name
= "adj1";
5770 Any
aAny ((sal_Int32
) 22500);
5771 aAdjSequence
[1].Value
= aAny
;
5772 aAdjSequence
[1].Name
= "adj2";
5775 Any
aAny ((sal_Int32
) 22500);
5776 aAdjSequence
[2].Value
= aAny
;
5777 aAdjSequence
[2].Name
= "adj3";
5779 aPropertyMap
[PROP_AdjustmentValues
] <<= aAdjSequence
;
5782 static const char *aStrings
[] = {
5783 "if(0-$1 ,0,if(50000-$1 ,$1 ,50000))",
5785 "if(0-$0 ,0,if(?1 -$0 ,$0 ,?1 ))",
5788 "if(0-$2 ,0,if(?4 -$2 ,$2 ,?4 ))",
5789 "min(logwidth,logheight)",
5810 aPropertyMap
[PROP_Equations
] <<= createStringSequence( SAL_N_ELEMENTS( aStrings
), aStrings
);
5813 Sequence
< Sequence
< PropertyValue
> > aPropSequenceSequence (3);
5815 Sequence
< PropertyValue
> aPropSequence (4);
5817 aPropSequence
[0].Name
= "Position";
5818 static const CustomShapeProvider::ParameterPairData aData
=
5820 EnhancedCustomShapeParameterType::EQUATION
,
5821 EnhancedCustomShapeParameterType::EQUATION
,
5824 aPropSequence
[0].Value
= makeAny (createParameterPair(&aData
));
5827 aPropSequence
[1].Name
= "RangeXMaximum";
5828 EnhancedCustomShapeParameter aParameter
;
5829 Any
aAny ((sal_Int32
) 1);
5830 aParameter
.Value
= aAny
;
5831 aParameter
.Type
= EnhancedCustomShapeParameterType::EQUATION
;
5832 aPropSequence
[1].Value
= makeAny (aParameter
);
5835 aPropSequence
[2].Name
= "RangeXMinimum";
5836 EnhancedCustomShapeParameter aParameter
;
5837 Any
aAny ((sal_Int32
) 0);
5838 aParameter
.Value
= aAny
;
5839 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
5840 aPropSequence
[2].Value
= makeAny (aParameter
);
5843 aPropSequence
[3].Name
= "RefX";
5844 Any
aAny ((sal_Int32
) 0);
5845 aPropSequence
[3].Value
= makeAny (aAny
);
5847 aPropSequenceSequence
[0] = aPropSequence
;
5850 Sequence
< PropertyValue
> aPropSequence (4);
5852 aPropSequence
[0].Name
= "Position";
5853 static const CustomShapeProvider::ParameterPairData aData
=
5855 EnhancedCustomShapeParameterType::EQUATION
,
5856 EnhancedCustomShapeParameterType::NORMAL
,
5859 aPropSequence
[0].Value
= makeAny (createParameterPair(&aData
));
5862 aPropSequence
[1].Name
= "RangeXMaximum";
5863 EnhancedCustomShapeParameter aParameter
;
5864 Any
aAny ((sal_Int32
) 50000);
5865 aParameter
.Value
= aAny
;
5866 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
5867 aPropSequence
[1].Value
= makeAny (aParameter
);
5870 aPropSequence
[2].Name
= "RangeXMinimum";
5871 EnhancedCustomShapeParameter aParameter
;
5872 Any
aAny ((sal_Int32
) 0);
5873 aParameter
.Value
= aAny
;
5874 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
5875 aPropSequence
[2].Value
= makeAny (aParameter
);
5878 aPropSequence
[3].Name
= "RefX";
5879 Any
aAny ((sal_Int32
) 1);
5880 aPropSequence
[3].Value
= makeAny (aAny
);
5882 aPropSequenceSequence
[1] = aPropSequence
;
5885 Sequence
< PropertyValue
> aPropSequence (4);
5887 aPropSequence
[0].Name
= "Position";
5888 static const CustomShapeProvider::ParameterPairData aData
=
5890 EnhancedCustomShapeParameterType::EQUATION
,
5891 EnhancedCustomShapeParameterType::EQUATION
,
5894 aPropSequence
[0].Value
= makeAny (createParameterPair(&aData
));
5897 aPropSequence
[1].Name
= "RangeYMaximum";
5898 EnhancedCustomShapeParameter aParameter
;
5899 Any
aAny ((sal_Int32
) 4);
5900 aParameter
.Value
= aAny
;
5901 aParameter
.Type
= EnhancedCustomShapeParameterType::EQUATION
;
5902 aPropSequence
[1].Value
= makeAny (aParameter
);
5905 aPropSequence
[2].Name
= "RangeYMinimum";
5906 EnhancedCustomShapeParameter aParameter
;
5907 Any
aAny ((sal_Int32
) 0);
5908 aParameter
.Value
= aAny
;
5909 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
5910 aPropSequence
[2].Value
= makeAny (aParameter
);
5913 aPropSequence
[3].Name
= "RefY";
5914 Any
aAny ((sal_Int32
) 2);
5915 aPropSequence
[3].Value
= makeAny (aAny
);
5917 aPropSequenceSequence
[2] = aPropSequence
;
5919 aPropertyMap
[PROP_Handles
] <<= aPropSequenceSequence
;
5922 aPropertyMap
[PROP_MirroredX
] <<= Any ((sal_Bool
) sal_False
);
5925 aPropertyMap
[PROP_MirroredY
] <<= Any ((sal_Bool
) sal_False
);
5928 Sequence
< PropertyValue
> aPropSequence (3);
5930 aPropSequence
[0].Name
= "Coordinates";
5931 static const CustomShapeProvider::ParameterPairData aData
[] = {
5933 EnhancedCustomShapeParameterType::NORMAL
,
5934 EnhancedCustomShapeParameterType::EQUATION
,
5938 EnhancedCustomShapeParameterType::EQUATION
,
5939 EnhancedCustomShapeParameterType::EQUATION
,
5943 EnhancedCustomShapeParameterType::EQUATION
,
5944 EnhancedCustomShapeParameterType::EQUATION
,
5948 EnhancedCustomShapeParameterType::EQUATION
,
5949 EnhancedCustomShapeParameterType::EQUATION
,
5953 EnhancedCustomShapeParameterType::EQUATION
,
5954 EnhancedCustomShapeParameterType::EQUATION
,
5958 EnhancedCustomShapeParameterType::EQUATION
,
5959 EnhancedCustomShapeParameterType::EQUATION
,
5963 EnhancedCustomShapeParameterType::EQUATION
,
5964 EnhancedCustomShapeParameterType::NORMAL
,
5968 EnhancedCustomShapeParameterType::EQUATION
,
5969 EnhancedCustomShapeParameterType::EQUATION
,
5973 EnhancedCustomShapeParameterType::EQUATION
,
5974 EnhancedCustomShapeParameterType::EQUATION
,
5978 EnhancedCustomShapeParameterType::EQUATION
,
5979 EnhancedCustomShapeParameterType::EQUATION
,
5983 EnhancedCustomShapeParameterType::EQUATION
,
5984 EnhancedCustomShapeParameterType::EQUATION
,
5988 EnhancedCustomShapeParameterType::EQUATION
,
5989 EnhancedCustomShapeParameterType::EQUATION
,
5993 EnhancedCustomShapeParameterType::EQUATION
,
5994 EnhancedCustomShapeParameterType::EQUATION
,
5998 EnhancedCustomShapeParameterType::EQUATION
,
5999 EnhancedCustomShapeParameterType::EQUATION
,
6003 EnhancedCustomShapeParameterType::EQUATION
,
6004 EnhancedCustomShapeParameterType::EQUATION
,
6008 EnhancedCustomShapeParameterType::EQUATION
,
6009 EnhancedCustomShapeParameterType::EQUATION
,
6013 EnhancedCustomShapeParameterType::EQUATION
,
6014 EnhancedCustomShapeParameterType::EQUATION
,
6018 EnhancedCustomShapeParameterType::EQUATION
,
6019 EnhancedCustomShapeParameterType::EQUATION
,
6023 EnhancedCustomShapeParameterType::EQUATION
,
6024 EnhancedCustomShapeParameterType::EQUATION
,
6028 EnhancedCustomShapeParameterType::EQUATION
,
6029 EnhancedCustomShapeParameterType::EQUATION
,
6033 EnhancedCustomShapeParameterType::EQUATION
,
6034 EnhancedCustomShapeParameterType::EQUATION
,
6038 EnhancedCustomShapeParameterType::EQUATION
,
6039 EnhancedCustomShapeParameterType::EQUATION
,
6043 EnhancedCustomShapeParameterType::EQUATION
,
6044 EnhancedCustomShapeParameterType::EQUATION
,
6048 EnhancedCustomShapeParameterType::EQUATION
,
6049 EnhancedCustomShapeParameterType::EQUATION
,
6053 aPropSequence
[0].Value
= makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData
), aData
));
6056 aPropSequence
[1].Name
= "Segments";
6057 static const sal_uInt16 nValues
[] = {
6064 aPropSequence
[1].Value
= makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues
), nValues
));
6067 aPropSequence
[2].Name
= "TextFrames";
6068 Sequence
< EnhancedCustomShapeTextFrame
> aTextFrameSeq (1);
6070 EnhancedCustomShapeTextFrame aTextFrame
;
6072 static const CustomShapeProvider::ParameterPairData aData
=
6074 EnhancedCustomShapeParameterType::EQUATION
,
6075 EnhancedCustomShapeParameterType::EQUATION
,
6078 aTextFrame
.TopLeft
= createParameterPair(&aData
);
6081 static const CustomShapeProvider::ParameterPairData aData
=
6083 EnhancedCustomShapeParameterType::EQUATION
,
6084 EnhancedCustomShapeParameterType::EQUATION
,
6087 aTextFrame
.BottomRight
= createParameterPair(&aData
);
6089 aTextFrameSeq
[0] = aTextFrame
;
6091 aPropSequence
[2].Value
= makeAny (aTextFrameSeq
);
6093 aPropertyMap
[PROP_Path
] <<= aPropSequence
;
6096 awt::Rectangle aRectangle
;
6099 aRectangle
.Width
= 0;
6100 aRectangle
.Height
= 0;
6101 aPropertyMap
[PROP_ViewBox
] <<= aRectangle
;
6103 aPropertyMap
[ PROP_Type
] <<= OUString("ooxml-quadArrow");
6105 return aPropertyMap
;
6108 class ShapeCleftBrace
: public CustomShapeProvider
6110 virtual PropertyMap
getProperties()
6112 PropertyMap aPropertyMap
;
6115 Sequence
< EnhancedCustomShapeAdjustmentValue
> aAdjSequence (2);
6117 Any
aAny ((sal_Int32
) 8333);
6118 aAdjSequence
[0].Value
= aAny
;
6119 aAdjSequence
[0].Name
= "adj1";
6122 Any
aAny ((sal_Int32
) 50000);
6123 aAdjSequence
[1].Value
= aAny
;
6124 aAdjSequence
[1].Name
= "adj2";
6126 aPropertyMap
[PROP_AdjustmentValues
] <<= aAdjSequence
;
6129 static const char *aStrings
[] = {
6130 "if(0-$1 ,0,if(100000-$1 ,$1 ,100000))",
6134 "min(logwidth,logheight)",
6135 "?3 *logheight/?4 ",
6136 "if(0-$0 ,0,if(?5 -$0 ,$0 ,?5 ))",
6138 "logheight*?0 /100000",
6141 "?10 *cos(pi*(2700000)/10800000)",
6142 "?7 *sin(pi*(2700000)/10800000)",
6145 "logheight+?12 -?7 ",
6149 "(5400000)/60000.0",
6150 "(5400000)/60000.0",
6152 "(-5400000)/60000.0",
6153 "(5400000)/60000.0",
6154 "(-5400000)/60000.0",
6155 "(10800000)/60000.0",
6156 "(5400000)/60000.0",
6157 "(5400000)/60000.0",
6158 "(5400000)/60000.0",
6160 "(-5400000)/60000.0",
6161 "(5400000)/60000.0",
6162 "(-5400000)/60000.0",
6163 "(10800000)/60000.0",
6166 aPropertyMap
[PROP_Equations
] <<= createStringSequence( SAL_N_ELEMENTS( aStrings
), aStrings
);
6169 Sequence
< Sequence
< PropertyValue
> > aPropSequenceSequence (2);
6171 Sequence
< PropertyValue
> aPropSequence (4);
6173 aPropSequence
[0].Name
= "Position";
6174 static const CustomShapeProvider::ParameterPairData aData
=
6176 EnhancedCustomShapeParameterType::EQUATION
,
6177 EnhancedCustomShapeParameterType::EQUATION
,
6180 aPropSequence
[0].Value
= makeAny (createParameterPair(&aData
));
6183 aPropSequence
[1].Name
= "RangeYMaximum";
6184 EnhancedCustomShapeParameter aParameter
;
6185 Any
aAny ((sal_Int32
) 5);
6186 aParameter
.Value
= aAny
;
6187 aParameter
.Type
= EnhancedCustomShapeParameterType::EQUATION
;
6188 aPropSequence
[1].Value
= makeAny (aParameter
);
6191 aPropSequence
[2].Name
= "RangeYMinimum";
6192 EnhancedCustomShapeParameter aParameter
;
6193 Any
aAny ((sal_Int32
) 0);
6194 aParameter
.Value
= aAny
;
6195 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
6196 aPropSequence
[2].Value
= makeAny (aParameter
);
6199 aPropSequence
[3].Name
= "RefY";
6200 Any
aAny ((sal_Int32
) 0);
6201 aPropSequence
[3].Value
= makeAny (aAny
);
6203 aPropSequenceSequence
[0] = aPropSequence
;
6206 Sequence
< PropertyValue
> aPropSequence (4);
6208 aPropSequence
[0].Name
= "Position";
6209 static const CustomShapeProvider::ParameterPairData aData
=
6211 EnhancedCustomShapeParameterType::NORMAL
,
6212 EnhancedCustomShapeParameterType::EQUATION
,
6215 aPropSequence
[0].Value
= makeAny (createParameterPair(&aData
));
6218 aPropSequence
[1].Name
= "RangeYMaximum";
6219 EnhancedCustomShapeParameter aParameter
;
6220 Any
aAny ((sal_Int32
) 100000);
6221 aParameter
.Value
= aAny
;
6222 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
6223 aPropSequence
[1].Value
= makeAny (aParameter
);
6226 aPropSequence
[2].Name
= "RangeYMinimum";
6227 EnhancedCustomShapeParameter aParameter
;
6228 Any
aAny ((sal_Int32
) 0);
6229 aParameter
.Value
= aAny
;
6230 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
6231 aPropSequence
[2].Value
= makeAny (aParameter
);
6234 aPropSequence
[3].Name
= "RefY";
6235 Any
aAny ((sal_Int32
) 1);
6236 aPropSequence
[3].Value
= makeAny (aAny
);
6238 aPropSequenceSequence
[1] = aPropSequence
;
6240 aPropertyMap
[PROP_Handles
] <<= aPropSequenceSequence
;
6243 aPropertyMap
[PROP_MirroredX
] <<= Any ((sal_Bool
) sal_False
);
6246 aPropertyMap
[PROP_MirroredY
] <<= Any ((sal_Bool
) sal_False
);
6249 Sequence
< PropertyValue
> aPropSequence (3);
6251 aPropSequence
[0].Name
= "Coordinates";
6252 static const CustomShapeProvider::ParameterPairData aData
[] = {
6254 EnhancedCustomShapeParameterType::EQUATION
,
6255 EnhancedCustomShapeParameterType::EQUATION
,
6259 EnhancedCustomShapeParameterType::EQUATION
,
6260 EnhancedCustomShapeParameterType::EQUATION
,
6264 EnhancedCustomShapeParameterType::EQUATION
,
6265 EnhancedCustomShapeParameterType::EQUATION
,
6269 EnhancedCustomShapeParameterType::EQUATION
,
6270 EnhancedCustomShapeParameterType::EQUATION
,
6274 EnhancedCustomShapeParameterType::EQUATION
,
6275 EnhancedCustomShapeParameterType::EQUATION
,
6279 EnhancedCustomShapeParameterType::EQUATION
,
6280 EnhancedCustomShapeParameterType::EQUATION
,
6284 EnhancedCustomShapeParameterType::EQUATION
,
6285 EnhancedCustomShapeParameterType::EQUATION
,
6289 EnhancedCustomShapeParameterType::EQUATION
,
6290 EnhancedCustomShapeParameterType::EQUATION
,
6294 EnhancedCustomShapeParameterType::EQUATION
,
6295 EnhancedCustomShapeParameterType::EQUATION
,
6299 EnhancedCustomShapeParameterType::EQUATION
,
6300 EnhancedCustomShapeParameterType::EQUATION
,
6304 EnhancedCustomShapeParameterType::EQUATION
,
6305 EnhancedCustomShapeParameterType::EQUATION
,
6309 EnhancedCustomShapeParameterType::EQUATION
,
6310 EnhancedCustomShapeParameterType::EQUATION
,
6314 EnhancedCustomShapeParameterType::EQUATION
,
6315 EnhancedCustomShapeParameterType::EQUATION
,
6319 EnhancedCustomShapeParameterType::EQUATION
,
6320 EnhancedCustomShapeParameterType::EQUATION
,
6324 EnhancedCustomShapeParameterType::EQUATION
,
6325 EnhancedCustomShapeParameterType::EQUATION
,
6329 EnhancedCustomShapeParameterType::EQUATION
,
6330 EnhancedCustomShapeParameterType::EQUATION
,
6334 EnhancedCustomShapeParameterType::EQUATION
,
6335 EnhancedCustomShapeParameterType::EQUATION
,
6339 EnhancedCustomShapeParameterType::EQUATION
,
6340 EnhancedCustomShapeParameterType::EQUATION
,
6344 EnhancedCustomShapeParameterType::EQUATION
,
6345 EnhancedCustomShapeParameterType::EQUATION
,
6349 EnhancedCustomShapeParameterType::EQUATION
,
6350 EnhancedCustomShapeParameterType::EQUATION
,
6354 EnhancedCustomShapeParameterType::EQUATION
,
6355 EnhancedCustomShapeParameterType::EQUATION
,
6359 EnhancedCustomShapeParameterType::EQUATION
,
6360 EnhancedCustomShapeParameterType::EQUATION
,
6364 aPropSequence
[0].Value
= makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData
), aData
));
6367 aPropSequence
[1].Name
= "Segments";
6368 static const sal_uInt16 nValues
[] = {
6388 aPropSequence
[1].Value
= makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues
), nValues
));
6391 aPropSequence
[2].Name
= "TextFrames";
6392 Sequence
< EnhancedCustomShapeTextFrame
> aTextFrameSeq (1);
6394 EnhancedCustomShapeTextFrame aTextFrame
;
6396 static const CustomShapeProvider::ParameterPairData aData
=
6398 EnhancedCustomShapeParameterType::EQUATION
,
6399 EnhancedCustomShapeParameterType::EQUATION
,
6402 aTextFrame
.TopLeft
= createParameterPair(&aData
);
6405 static const CustomShapeProvider::ParameterPairData aData
=
6407 EnhancedCustomShapeParameterType::EQUATION
,
6408 EnhancedCustomShapeParameterType::EQUATION
,
6411 aTextFrame
.BottomRight
= createParameterPair(&aData
);
6413 aTextFrameSeq
[0] = aTextFrame
;
6415 aPropSequence
[2].Value
= makeAny (aTextFrameSeq
);
6417 aPropertyMap
[PROP_Path
] <<= aPropSequence
;
6420 awt::Rectangle aRectangle
;
6423 aRectangle
.Width
= 0;
6424 aRectangle
.Height
= 0;
6425 aPropertyMap
[PROP_ViewBox
] <<= aRectangle
;
6427 aPropertyMap
[ PROP_Type
] <<= OUString("ooxml-leftBrace");
6429 return aPropertyMap
;
6432 class ShapeCleftBracket
: public CustomShapeProvider
6434 virtual PropertyMap
getProperties()
6436 PropertyMap aPropertyMap
;
6439 Sequence
< EnhancedCustomShapeAdjustmentValue
> aAdjSequence (1);
6441 Any
aAny ((sal_Int32
) 8333);
6442 aAdjSequence
[0].Value
= aAny
;
6443 aAdjSequence
[0].Name
= "adj";
6445 aPropertyMap
[PROP_AdjustmentValues
] <<= aAdjSequence
;
6448 static const char *aStrings
[] = {
6449 "min(logwidth,logheight)",
6450 "50000*logheight/?0 ",
6451 "if(0-$0 ,0,if(?1 -$0 ,$0 ,?1 ))",
6454 "logwidth*cos(pi*(2700000)/10800000)",
6455 "?3 *sin(pi*(2700000)/10800000)",
6458 "logheight+?6 -?3 ",
6463 "(5400000)/60000.0",
6464 "(5400000)/60000.0",
6465 "(10800000)/60000.0",
6466 "(5400000)/60000.0",
6467 "(5400000)/60000.0",
6468 "(5400000)/60000.0",
6469 "(10800000)/60000.0",
6472 aPropertyMap
[PROP_Equations
] <<= createStringSequence( SAL_N_ELEMENTS( aStrings
), aStrings
);
6475 Sequence
< Sequence
< PropertyValue
> > aPropSequenceSequence (1);
6477 Sequence
< PropertyValue
> aPropSequence (4);
6479 aPropSequence
[0].Name
= "Position";
6480 static const CustomShapeProvider::ParameterPairData aData
=
6482 EnhancedCustomShapeParameterType::NORMAL
,
6483 EnhancedCustomShapeParameterType::EQUATION
,
6486 aPropSequence
[0].Value
= makeAny (createParameterPair(&aData
));
6489 aPropSequence
[1].Name
= "RangeYMaximum";
6490 EnhancedCustomShapeParameter aParameter
;
6491 Any
aAny ((sal_Int32
) 1);
6492 aParameter
.Value
= aAny
;
6493 aParameter
.Type
= EnhancedCustomShapeParameterType::EQUATION
;
6494 aPropSequence
[1].Value
= makeAny (aParameter
);
6497 aPropSequence
[2].Name
= "RangeYMinimum";
6498 EnhancedCustomShapeParameter aParameter
;
6499 Any
aAny ((sal_Int32
) 0);
6500 aParameter
.Value
= aAny
;
6501 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
6502 aPropSequence
[2].Value
= makeAny (aParameter
);
6505 aPropSequence
[3].Name
= "RefY";
6506 Any
aAny ((sal_Int32
) 0);
6507 aPropSequence
[3].Value
= makeAny (aAny
);
6509 aPropSequenceSequence
[0] = aPropSequence
;
6511 aPropertyMap
[PROP_Handles
] <<= aPropSequenceSequence
;
6514 aPropertyMap
[PROP_MirroredX
] <<= Any ((sal_Bool
) sal_False
);
6517 aPropertyMap
[PROP_MirroredY
] <<= Any ((sal_Bool
) sal_False
);
6520 Sequence
< PropertyValue
> aPropSequence (3);
6522 aPropSequence
[0].Name
= "Coordinates";
6523 static const CustomShapeProvider::ParameterPairData aData
[] = {
6525 EnhancedCustomShapeParameterType::EQUATION
,
6526 EnhancedCustomShapeParameterType::EQUATION
,
6530 EnhancedCustomShapeParameterType::EQUATION
,
6531 EnhancedCustomShapeParameterType::EQUATION
,
6535 EnhancedCustomShapeParameterType::EQUATION
,
6536 EnhancedCustomShapeParameterType::EQUATION
,
6540 EnhancedCustomShapeParameterType::NORMAL
,
6541 EnhancedCustomShapeParameterType::EQUATION
,
6545 EnhancedCustomShapeParameterType::EQUATION
,
6546 EnhancedCustomShapeParameterType::EQUATION
,
6550 EnhancedCustomShapeParameterType::EQUATION
,
6551 EnhancedCustomShapeParameterType::EQUATION
,
6555 EnhancedCustomShapeParameterType::EQUATION
,
6556 EnhancedCustomShapeParameterType::EQUATION
,
6560 EnhancedCustomShapeParameterType::EQUATION
,
6561 EnhancedCustomShapeParameterType::EQUATION
,
6565 EnhancedCustomShapeParameterType::EQUATION
,
6566 EnhancedCustomShapeParameterType::EQUATION
,
6570 EnhancedCustomShapeParameterType::NORMAL
,
6571 EnhancedCustomShapeParameterType::EQUATION
,
6575 EnhancedCustomShapeParameterType::EQUATION
,
6576 EnhancedCustomShapeParameterType::EQUATION
,
6580 EnhancedCustomShapeParameterType::EQUATION
,
6581 EnhancedCustomShapeParameterType::EQUATION
,
6585 aPropSequence
[0].Value
= makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData
), aData
));
6588 aPropSequence
[1].Name
= "Segments";
6589 static const sal_uInt16 nValues
[] = {
6605 aPropSequence
[1].Value
= makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues
), nValues
));
6608 aPropSequence
[2].Name
= "TextFrames";
6609 Sequence
< EnhancedCustomShapeTextFrame
> aTextFrameSeq (1);
6611 EnhancedCustomShapeTextFrame aTextFrame
;
6613 static const CustomShapeProvider::ParameterPairData aData
=
6615 EnhancedCustomShapeParameterType::EQUATION
,
6616 EnhancedCustomShapeParameterType::EQUATION
,
6619 aTextFrame
.TopLeft
= createParameterPair(&aData
);
6622 static const CustomShapeProvider::ParameterPairData aData
=
6624 EnhancedCustomShapeParameterType::EQUATION
,
6625 EnhancedCustomShapeParameterType::EQUATION
,
6628 aTextFrame
.BottomRight
= createParameterPair(&aData
);
6630 aTextFrameSeq
[0] = aTextFrame
;
6632 aPropSequence
[2].Value
= makeAny (aTextFrameSeq
);
6634 aPropertyMap
[PROP_Path
] <<= aPropSequence
;
6637 awt::Rectangle aRectangle
;
6640 aRectangle
.Width
= 0;
6641 aRectangle
.Height
= 0;
6642 aPropertyMap
[PROP_ViewBox
] <<= aRectangle
;
6644 aPropertyMap
[ PROP_Type
] <<= OUString("ooxml-leftBracket");
6646 return aPropertyMap
;
6649 class ShapeCblockArc
: public CustomShapeProvider
6651 virtual PropertyMap
getProperties()
6653 PropertyMap aPropertyMap
;
6656 Sequence
< EnhancedCustomShapeAdjustmentValue
> aAdjSequence (3);
6658 Any
aAny ((sal_Int32
) 10800000);
6659 aAdjSequence
[0].Value
= aAny
;
6660 aAdjSequence
[0].Name
= "adj1";
6663 Any
aAny ((sal_Int32
) 0);
6664 aAdjSequence
[1].Value
= aAny
;
6665 aAdjSequence
[1].Name
= "adj2";
6668 Any
aAny ((sal_Int32
) 25000);
6669 aAdjSequence
[2].Value
= aAny
;
6670 aAdjSequence
[2].Name
= "adj3";
6672 aPropertyMap
[PROP_AdjustmentValues
] <<= aAdjSequence
;
6675 static const char *aStrings
[] = {
6676 "if(0-$0 ,0,if(21599999-$0 ,$0 ,21599999))",
6677 "if(0-$1 ,0,if(21599999-$1 ,$1 ,21599999))",
6678 "if(0-$2 ,0,if(50000-$2 ,$2 ,50000))",
6684 "?7 *sin(pi*(?0 )/10800000)",
6686 "?9 *cos(pi*(?0 )/10800000)",
6687 "?7 *sin(pi*(?1 )/10800000)",
6688 "?9 *cos(pi*(?1 )/10800000)",
6689 "?7 *(cos(atan2(?8 ,?10 )))",
6690 "?9 *(sin(atan2(?8 ,?10 )))",
6691 "?7 *(cos(atan2(?11 ,?12 )))",
6692 "?9 *(sin(atan2(?11 ,?12 )))",
6699 "min(logwidth,logheight)",
6703 "?25 *sin(pi*(?1 )/10800000)",
6704 "?26 *cos(pi*(?1 )/10800000)",
6705 "?25 *sin(pi*(?0 )/10800000)",
6706 "?26 *cos(pi*(?0 )/10800000)",
6707 "?25 *(cos(atan2(?27 ,?28 )))",
6708 "?26 *(sin(atan2(?27 ,?28 )))",
6709 "?25 *(cos(atan2(?29 ,?30 )))",
6710 "?26 *(sin(atan2(?29 ,?30 )))",
6720 "if(?40 ,logwidth,?43 )",
6723 "if(?45 ,?45 ,?46 )",
6728 "if(?48 ,logheight,?51 )",
6731 "if(?53 ,?53 ,?54 )",
6739 "if(?61 ,?61 ,?62 )",
6757 aPropertyMap
[PROP_Equations
] <<= createStringSequence( SAL_N_ELEMENTS( aStrings
), aStrings
);
6760 Sequence
< Sequence
< PropertyValue
> > aPropSequenceSequence (2);
6762 Sequence
< PropertyValue
> aPropSequence (1);
6764 aPropSequence
[0].Name
= "Position";
6765 static const CustomShapeProvider::ParameterPairData aData
=
6767 EnhancedCustomShapeParameterType::EQUATION
,
6768 EnhancedCustomShapeParameterType::EQUATION
,
6771 aPropSequence
[0].Value
= makeAny (createParameterPair(&aData
));
6773 aPropSequenceSequence
[0] = aPropSequence
;
6776 Sequence
< PropertyValue
> aPropSequence (3);
6778 aPropSequence
[0].Name
= "Position";
6779 static const CustomShapeProvider::ParameterPairData aData
=
6781 EnhancedCustomShapeParameterType::EQUATION
,
6782 EnhancedCustomShapeParameterType::EQUATION
,
6785 aPropSequence
[0].Value
= makeAny (createParameterPair(&aData
));
6788 aPropSequence
[1].Name
= "RadiusRangeMaximum";
6789 EnhancedCustomShapeParameter aParameter
;
6790 Any
aAny ((sal_Int32
) 50000);
6791 aParameter
.Value
= aAny
;
6792 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
6793 aPropSequence
[1].Value
= makeAny (aParameter
);
6796 aPropSequence
[2].Name
= "RadiusRangeMinimum";
6797 EnhancedCustomShapeParameter aParameter
;
6798 Any
aAny ((sal_Int32
) 0);
6799 aParameter
.Value
= aAny
;
6800 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
6801 aPropSequence
[2].Value
= makeAny (aParameter
);
6803 aPropSequenceSequence
[1] = aPropSequence
;
6805 aPropertyMap
[PROP_Handles
] <<= aPropSequenceSequence
;
6808 aPropertyMap
[PROP_MirroredX
] <<= Any ((sal_Bool
) sal_False
);
6811 aPropertyMap
[PROP_MirroredY
] <<= Any ((sal_Bool
) sal_False
);
6814 Sequence
< PropertyValue
> aPropSequence (3);
6816 aPropSequence
[0].Name
= "Coordinates";
6817 static const CustomShapeProvider::ParameterPairData aData
[] = {
6819 EnhancedCustomShapeParameterType::EQUATION
,
6820 EnhancedCustomShapeParameterType::EQUATION
,
6824 EnhancedCustomShapeParameterType::EQUATION
,
6825 EnhancedCustomShapeParameterType::EQUATION
,
6829 EnhancedCustomShapeParameterType::EQUATION
,
6830 EnhancedCustomShapeParameterType::EQUATION
,
6834 EnhancedCustomShapeParameterType::EQUATION
,
6835 EnhancedCustomShapeParameterType::EQUATION
,
6839 EnhancedCustomShapeParameterType::EQUATION
,
6840 EnhancedCustomShapeParameterType::EQUATION
,
6844 EnhancedCustomShapeParameterType::EQUATION
,
6845 EnhancedCustomShapeParameterType::EQUATION
,
6849 aPropSequence
[0].Value
= makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData
), aData
));
6852 aPropSequence
[1].Name
= "Segments";
6853 static const sal_uInt16 nValues
[] = {
6862 aPropSequence
[1].Value
= makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues
), nValues
));
6865 aPropSequence
[2].Name
= "TextFrames";
6866 Sequence
< EnhancedCustomShapeTextFrame
> aTextFrameSeq (1);
6868 EnhancedCustomShapeTextFrame aTextFrame
;
6870 static const CustomShapeProvider::ParameterPairData aData
=
6872 EnhancedCustomShapeParameterType::EQUATION
,
6873 EnhancedCustomShapeParameterType::EQUATION
,
6876 aTextFrame
.TopLeft
= createParameterPair(&aData
);
6879 static const CustomShapeProvider::ParameterPairData aData
=
6881 EnhancedCustomShapeParameterType::EQUATION
,
6882 EnhancedCustomShapeParameterType::EQUATION
,
6885 aTextFrame
.BottomRight
= createParameterPair(&aData
);
6887 aTextFrameSeq
[0] = aTextFrame
;
6889 aPropSequence
[2].Value
= makeAny (aTextFrameSeq
);
6891 aPropertyMap
[PROP_Path
] <<= aPropSequence
;
6894 awt::Rectangle aRectangle
;
6897 aRectangle
.Width
= 0;
6898 aRectangle
.Height
= 0;
6899 aPropertyMap
[PROP_ViewBox
] <<= aRectangle
;
6901 aPropertyMap
[ PROP_Type
] <<= OUString("ooxml-blockArc");
6903 return aPropertyMap
;
6906 class ShapeCcurvedConnector3
: public CustomShapeProvider
6908 virtual PropertyMap
getProperties()
6910 PropertyMap aPropertyMap
;
6913 Sequence
< EnhancedCustomShapeAdjustmentValue
> aAdjSequence (1);
6915 Any
aAny ((sal_Int32
) 50000);
6916 aAdjSequence
[0].Value
= aAny
;
6917 aAdjSequence
[0].Name
= "adj1";
6919 aPropertyMap
[PROP_AdjustmentValues
] <<= aAdjSequence
;
6922 static const char *aStrings
[] = {
6923 "logwidth*$0 /100000",
6932 aPropertyMap
[PROP_Equations
] <<= createStringSequence( SAL_N_ELEMENTS( aStrings
), aStrings
);
6935 Sequence
< Sequence
< PropertyValue
> > aPropSequenceSequence (1);
6937 Sequence
< PropertyValue
> aPropSequence (4);
6939 aPropSequence
[0].Name
= "Position";
6940 static const CustomShapeProvider::ParameterPairData aData
=
6942 EnhancedCustomShapeParameterType::EQUATION
,
6943 EnhancedCustomShapeParameterType::EQUATION
,
6946 aPropSequence
[0].Value
= makeAny (createParameterPair(&aData
));
6949 aPropSequence
[1].Name
= "RangeXMaximum";
6950 EnhancedCustomShapeParameter aParameter
;
6951 Any
aAny ((sal_Int32
) 2147483647);
6952 aParameter
.Value
= aAny
;
6953 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
6954 aPropSequence
[1].Value
= makeAny (aParameter
);
6957 aPropSequence
[2].Name
= "RangeXMinimum";
6958 EnhancedCustomShapeParameter aParameter
;
6959 Any
aAny ((sal_Int32
) -2147483647);
6960 aParameter
.Value
= aAny
;
6961 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
6962 aPropSequence
[2].Value
= makeAny (aParameter
);
6965 aPropSequence
[3].Name
= "RefX";
6966 Any
aAny ((sal_Int32
) 0);
6967 aPropSequence
[3].Value
= makeAny (aAny
);
6969 aPropSequenceSequence
[0] = aPropSequence
;
6971 aPropertyMap
[PROP_Handles
] <<= aPropSequenceSequence
;
6974 aPropertyMap
[PROP_MirroredX
] <<= Any ((sal_Bool
) sal_False
);
6977 aPropertyMap
[PROP_MirroredY
] <<= Any ((sal_Bool
) sal_False
);
6980 Sequence
< PropertyValue
> aPropSequence (3);
6982 aPropSequence
[0].Name
= "Coordinates";
6983 static const CustomShapeProvider::ParameterPairData aData
[] = {
6985 EnhancedCustomShapeParameterType::NORMAL
,
6986 EnhancedCustomShapeParameterType::NORMAL
,
6990 EnhancedCustomShapeParameterType::EQUATION
,
6991 EnhancedCustomShapeParameterType::NORMAL
,
6995 EnhancedCustomShapeParameterType::EQUATION
,
6996 EnhancedCustomShapeParameterType::EQUATION
,
7000 EnhancedCustomShapeParameterType::EQUATION
,
7001 EnhancedCustomShapeParameterType::EQUATION
,
7005 EnhancedCustomShapeParameterType::EQUATION
,
7006 EnhancedCustomShapeParameterType::EQUATION
,
7010 EnhancedCustomShapeParameterType::EQUATION
,
7011 EnhancedCustomShapeParameterType::EQUATION
,
7015 EnhancedCustomShapeParameterType::EQUATION
,
7016 EnhancedCustomShapeParameterType::EQUATION
,
7020 aPropSequence
[0].Value
= makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData
), aData
));
7023 aPropSequence
[1].Name
= "Segments";
7024 static const sal_uInt16 nValues
[] = {
7031 aPropSequence
[1].Value
= makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues
), nValues
));
7034 aPropSequence
[2].Name
= "TextFrames";
7035 Sequence
< EnhancedCustomShapeTextFrame
> aTextFrameSeq (1);
7037 EnhancedCustomShapeTextFrame aTextFrame
;
7039 static const CustomShapeProvider::ParameterPairData aData
=
7041 EnhancedCustomShapeParameterType::NORMAL
,
7042 EnhancedCustomShapeParameterType::NORMAL
,
7045 aTextFrame
.TopLeft
= createParameterPair(&aData
);
7048 static const CustomShapeProvider::ParameterPairData aData
=
7050 EnhancedCustomShapeParameterType::EQUATION
,
7051 EnhancedCustomShapeParameterType::EQUATION
,
7054 aTextFrame
.BottomRight
= createParameterPair(&aData
);
7056 aTextFrameSeq
[0] = aTextFrame
;
7058 aPropSequence
[2].Value
= makeAny (aTextFrameSeq
);
7060 aPropertyMap
[PROP_Path
] <<= aPropSequence
;
7063 awt::Rectangle aRectangle
;
7066 aRectangle
.Width
= 0;
7067 aRectangle
.Height
= 0;
7068 aPropertyMap
[PROP_ViewBox
] <<= aRectangle
;
7070 aPropertyMap
[ PROP_Type
] <<= OUString("ooxml-curvedConnector3");
7072 return aPropertyMap
;
7075 class ShapeCwedgeRoundRectCallout
: public CustomShapeProvider
7077 virtual PropertyMap
getProperties()
7079 PropertyMap aPropertyMap
;
7082 Sequence
< EnhancedCustomShapeAdjustmentValue
> aAdjSequence (3);
7084 Any
aAny ((sal_Int32
) -20833);
7085 aAdjSequence
[0].Value
= aAny
;
7086 aAdjSequence
[0].Name
= "adj1";
7089 Any
aAny ((sal_Int32
) 62500);
7090 aAdjSequence
[1].Value
= aAny
;
7091 aAdjSequence
[1].Name
= "adj2";
7094 Any
aAny ((sal_Int32
) 16667);
7095 aAdjSequence
[2].Value
= aAny
;
7096 aAdjSequence
[2].Name
= "adj3";
7098 aPropertyMap
[PROP_AdjustmentValues
] <<= aAdjSequence
;
7101 static const char *aStrings
[] = {
7102 "logwidth*$0 /100000",
7103 "logheight*$1 /100000",
7108 "?0 *logheight/logwidth",
7118 "logheight*?14 /12",
7119 "logheight*?15 /12",
7123 "if(?9 ,?20 ,?12 )",
7124 "if(?0 ,?3 ,logwidth)",
7125 "if(?9 ,logwidth,?22 )",
7127 "if(?9 ,?24 ,?12 )",
7129 "if(?9 ,?16 ,?26 )",
7133 "if(?9 ,?16 ,?30 )",
7134 "if(?1 ,?5 ,logheight)",
7135 "if(?9 ,?32 ,logheight)",
7136 "min(logwidth,logheight)",
7140 "?35 *29289/100000",
7145 "(10800000)/60000.0",
7146 "(5400000)/60000.0",
7147 "(16200000)/60000.0",
7148 "(5400000)/60000.0",
7150 "(5400000)/60000.0",
7151 "(5400000)/60000.0",
7154 aPropertyMap
[PROP_Equations
] <<= createStringSequence( SAL_N_ELEMENTS( aStrings
), aStrings
);
7157 Sequence
< Sequence
< PropertyValue
> > aPropSequenceSequence (1);
7159 Sequence
< PropertyValue
> aPropSequence (7);
7161 aPropSequence
[0].Name
= "Position";
7162 static const CustomShapeProvider::ParameterPairData aData
=
7164 EnhancedCustomShapeParameterType::EQUATION
,
7165 EnhancedCustomShapeParameterType::EQUATION
,
7168 aPropSequence
[0].Value
= makeAny (createParameterPair(&aData
));
7171 aPropSequence
[1].Name
= "RangeXMaximum";
7172 EnhancedCustomShapeParameter aParameter
;
7173 Any
aAny ((sal_Int32
) 2147483647);
7174 aParameter
.Value
= aAny
;
7175 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
7176 aPropSequence
[1].Value
= makeAny (aParameter
);
7179 aPropSequence
[2].Name
= "RangeXMinimum";
7180 EnhancedCustomShapeParameter aParameter
;
7181 Any
aAny ((sal_Int32
) -2147483647);
7182 aParameter
.Value
= aAny
;
7183 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
7184 aPropSequence
[2].Value
= makeAny (aParameter
);
7187 aPropSequence
[3].Name
= "RangeYMaximum";
7188 EnhancedCustomShapeParameter aParameter
;
7189 Any
aAny ((sal_Int32
) 2147483647);
7190 aParameter
.Value
= aAny
;
7191 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
7192 aPropSequence
[3].Value
= makeAny (aParameter
);
7195 aPropSequence
[4].Name
= "RangeYMinimum";
7196 EnhancedCustomShapeParameter aParameter
;
7197 Any
aAny ((sal_Int32
) -2147483647);
7198 aParameter
.Value
= aAny
;
7199 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
7200 aPropSequence
[4].Value
= makeAny (aParameter
);
7203 aPropSequence
[5].Name
= "RefX";
7204 Any
aAny ((sal_Int32
) 0);
7205 aPropSequence
[5].Value
= makeAny (aAny
);
7208 aPropSequence
[6].Name
= "RefY";
7209 Any
aAny ((sal_Int32
) 1);
7210 aPropSequence
[6].Value
= makeAny (aAny
);
7212 aPropSequenceSequence
[0] = aPropSequence
;
7214 aPropertyMap
[PROP_Handles
] <<= aPropSequenceSequence
;
7217 aPropertyMap
[PROP_MirroredX
] <<= Any ((sal_Bool
) sal_False
);
7220 aPropertyMap
[PROP_MirroredY
] <<= Any ((sal_Bool
) sal_False
);
7223 Sequence
< PropertyValue
> aPropSequence (3);
7225 aPropSequence
[0].Name
= "Coordinates";
7226 static const CustomShapeProvider::ParameterPairData aData
[] = {
7228 EnhancedCustomShapeParameterType::NORMAL
,
7229 EnhancedCustomShapeParameterType::EQUATION
,
7233 EnhancedCustomShapeParameterType::EQUATION
,
7234 EnhancedCustomShapeParameterType::EQUATION
,
7238 EnhancedCustomShapeParameterType::EQUATION
,
7239 EnhancedCustomShapeParameterType::EQUATION
,
7243 EnhancedCustomShapeParameterType::EQUATION
,
7244 EnhancedCustomShapeParameterType::NORMAL
,
7248 EnhancedCustomShapeParameterType::EQUATION
,
7249 EnhancedCustomShapeParameterType::EQUATION
,
7253 EnhancedCustomShapeParameterType::EQUATION
,
7254 EnhancedCustomShapeParameterType::NORMAL
,
7258 EnhancedCustomShapeParameterType::EQUATION
,
7259 EnhancedCustomShapeParameterType::NORMAL
,
7263 EnhancedCustomShapeParameterType::EQUATION
,
7264 EnhancedCustomShapeParameterType::EQUATION
,
7268 EnhancedCustomShapeParameterType::EQUATION
,
7269 EnhancedCustomShapeParameterType::EQUATION
,
7273 EnhancedCustomShapeParameterType::EQUATION
,
7274 EnhancedCustomShapeParameterType::EQUATION
,
7278 EnhancedCustomShapeParameterType::EQUATION
,
7279 EnhancedCustomShapeParameterType::EQUATION
,
7283 EnhancedCustomShapeParameterType::EQUATION
,
7284 EnhancedCustomShapeParameterType::EQUATION
,
7288 EnhancedCustomShapeParameterType::EQUATION
,
7289 EnhancedCustomShapeParameterType::EQUATION
,
7293 EnhancedCustomShapeParameterType::EQUATION
,
7294 EnhancedCustomShapeParameterType::EQUATION
,
7298 EnhancedCustomShapeParameterType::EQUATION
,
7299 EnhancedCustomShapeParameterType::EQUATION
,
7303 EnhancedCustomShapeParameterType::EQUATION
,
7304 EnhancedCustomShapeParameterType::EQUATION
,
7308 EnhancedCustomShapeParameterType::EQUATION
,
7309 EnhancedCustomShapeParameterType::EQUATION
,
7313 EnhancedCustomShapeParameterType::EQUATION
,
7314 EnhancedCustomShapeParameterType::EQUATION
,
7318 EnhancedCustomShapeParameterType::EQUATION
,
7319 EnhancedCustomShapeParameterType::EQUATION
,
7323 EnhancedCustomShapeParameterType::EQUATION
,
7324 EnhancedCustomShapeParameterType::EQUATION
,
7328 EnhancedCustomShapeParameterType::EQUATION
,
7329 EnhancedCustomShapeParameterType::EQUATION
,
7333 EnhancedCustomShapeParameterType::NORMAL
,
7334 EnhancedCustomShapeParameterType::EQUATION
,
7338 EnhancedCustomShapeParameterType::EQUATION
,
7339 EnhancedCustomShapeParameterType::EQUATION
,
7343 EnhancedCustomShapeParameterType::NORMAL
,
7344 EnhancedCustomShapeParameterType::EQUATION
,
7348 aPropSequence
[0].Value
= makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData
), aData
));
7351 aPropSequence
[1].Name
= "Segments";
7352 static const sal_uInt16 nValues
[] = {
7366 aPropSequence
[1].Value
= makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues
), nValues
));
7369 aPropSequence
[2].Name
= "TextFrames";
7370 Sequence
< EnhancedCustomShapeTextFrame
> aTextFrameSeq (1);
7372 EnhancedCustomShapeTextFrame aTextFrame
;
7374 static const CustomShapeProvider::ParameterPairData aData
=
7376 EnhancedCustomShapeParameterType::EQUATION
,
7377 EnhancedCustomShapeParameterType::EQUATION
,
7380 aTextFrame
.TopLeft
= createParameterPair(&aData
);
7383 static const CustomShapeProvider::ParameterPairData aData
=
7385 EnhancedCustomShapeParameterType::EQUATION
,
7386 EnhancedCustomShapeParameterType::EQUATION
,
7389 aTextFrame
.BottomRight
= createParameterPair(&aData
);
7391 aTextFrameSeq
[0] = aTextFrame
;
7393 aPropSequence
[2].Value
= makeAny (aTextFrameSeq
);
7395 aPropertyMap
[PROP_Path
] <<= aPropSequence
;
7398 awt::Rectangle aRectangle
;
7401 aRectangle
.Width
= 0;
7402 aRectangle
.Height
= 0;
7403 aPropertyMap
[PROP_ViewBox
] <<= aRectangle
;
7405 aPropertyMap
[ PROP_Type
] <<= OUString("ooxml-wedgeRoundRectCallout");
7407 return aPropertyMap
;
7410 class ShapeCactionButtonMovie
: public CustomShapeProvider
7412 virtual PropertyMap
getProperties()
7414 PropertyMap aPropertyMap
;
7417 aPropertyMap
[PROP_AdjustmentValues
] <<= Sequence
< OUString
>(0);
7420 static const char *aStrings
[] = {
7421 "min(logwidth,logheight)",
7468 aPropertyMap
[PROP_Equations
] <<= createStringSequence( SAL_N_ELEMENTS( aStrings
), aStrings
);
7471 aPropertyMap
[PROP_Handles
] <<= Sequence
< OUString
>(0);
7474 aPropertyMap
[PROP_MirroredX
] <<= Any ((sal_Bool
) sal_False
);
7477 aPropertyMap
[PROP_MirroredY
] <<= Any ((sal_Bool
) sal_False
);
7480 Sequence
< PropertyValue
> aPropSequence (3);
7482 aPropSequence
[0].Name
= "Coordinates";
7483 static const CustomShapeProvider::ParameterPairData aData
[] = {
7485 EnhancedCustomShapeParameterType::NORMAL
,
7486 EnhancedCustomShapeParameterType::NORMAL
,
7490 EnhancedCustomShapeParameterType::EQUATION
,
7491 EnhancedCustomShapeParameterType::NORMAL
,
7495 EnhancedCustomShapeParameterType::EQUATION
,
7496 EnhancedCustomShapeParameterType::EQUATION
,
7500 EnhancedCustomShapeParameterType::NORMAL
,
7501 EnhancedCustomShapeParameterType::EQUATION
,
7505 EnhancedCustomShapeParameterType::EQUATION
,
7506 EnhancedCustomShapeParameterType::EQUATION
,
7510 EnhancedCustomShapeParameterType::EQUATION
,
7511 EnhancedCustomShapeParameterType::EQUATION
,
7515 EnhancedCustomShapeParameterType::EQUATION
,
7516 EnhancedCustomShapeParameterType::EQUATION
,
7520 EnhancedCustomShapeParameterType::EQUATION
,
7521 EnhancedCustomShapeParameterType::EQUATION
,
7525 EnhancedCustomShapeParameterType::EQUATION
,
7526 EnhancedCustomShapeParameterType::EQUATION
,
7530 EnhancedCustomShapeParameterType::EQUATION
,
7531 EnhancedCustomShapeParameterType::EQUATION
,
7535 EnhancedCustomShapeParameterType::EQUATION
,
7536 EnhancedCustomShapeParameterType::EQUATION
,
7540 EnhancedCustomShapeParameterType::EQUATION
,
7541 EnhancedCustomShapeParameterType::EQUATION
,
7545 EnhancedCustomShapeParameterType::EQUATION
,
7546 EnhancedCustomShapeParameterType::EQUATION
,
7550 EnhancedCustomShapeParameterType::EQUATION
,
7551 EnhancedCustomShapeParameterType::EQUATION
,
7555 EnhancedCustomShapeParameterType::EQUATION
,
7556 EnhancedCustomShapeParameterType::EQUATION
,
7560 EnhancedCustomShapeParameterType::EQUATION
,
7561 EnhancedCustomShapeParameterType::EQUATION
,
7565 EnhancedCustomShapeParameterType::EQUATION
,
7566 EnhancedCustomShapeParameterType::EQUATION
,
7570 EnhancedCustomShapeParameterType::EQUATION
,
7571 EnhancedCustomShapeParameterType::EQUATION
,
7575 EnhancedCustomShapeParameterType::EQUATION
,
7576 EnhancedCustomShapeParameterType::EQUATION
,
7580 EnhancedCustomShapeParameterType::EQUATION
,
7581 EnhancedCustomShapeParameterType::EQUATION
,
7585 EnhancedCustomShapeParameterType::EQUATION
,
7586 EnhancedCustomShapeParameterType::EQUATION
,
7590 EnhancedCustomShapeParameterType::EQUATION
,
7591 EnhancedCustomShapeParameterType::EQUATION
,
7595 EnhancedCustomShapeParameterType::EQUATION
,
7596 EnhancedCustomShapeParameterType::EQUATION
,
7600 EnhancedCustomShapeParameterType::EQUATION
,
7601 EnhancedCustomShapeParameterType::EQUATION
,
7605 EnhancedCustomShapeParameterType::EQUATION
,
7606 EnhancedCustomShapeParameterType::EQUATION
,
7610 EnhancedCustomShapeParameterType::EQUATION
,
7611 EnhancedCustomShapeParameterType::EQUATION
,
7615 EnhancedCustomShapeParameterType::EQUATION
,
7616 EnhancedCustomShapeParameterType::EQUATION
,
7620 EnhancedCustomShapeParameterType::EQUATION
,
7621 EnhancedCustomShapeParameterType::EQUATION
,
7625 EnhancedCustomShapeParameterType::EQUATION
,
7626 EnhancedCustomShapeParameterType::EQUATION
,
7630 EnhancedCustomShapeParameterType::EQUATION
,
7631 EnhancedCustomShapeParameterType::EQUATION
,
7635 EnhancedCustomShapeParameterType::EQUATION
,
7636 EnhancedCustomShapeParameterType::EQUATION
,
7640 EnhancedCustomShapeParameterType::EQUATION
,
7641 EnhancedCustomShapeParameterType::EQUATION
,
7645 EnhancedCustomShapeParameterType::EQUATION
,
7646 EnhancedCustomShapeParameterType::EQUATION
,
7650 EnhancedCustomShapeParameterType::EQUATION
,
7651 EnhancedCustomShapeParameterType::EQUATION
,
7655 EnhancedCustomShapeParameterType::EQUATION
,
7656 EnhancedCustomShapeParameterType::EQUATION
,
7660 EnhancedCustomShapeParameterType::EQUATION
,
7661 EnhancedCustomShapeParameterType::EQUATION
,
7665 EnhancedCustomShapeParameterType::EQUATION
,
7666 EnhancedCustomShapeParameterType::EQUATION
,
7670 EnhancedCustomShapeParameterType::EQUATION
,
7671 EnhancedCustomShapeParameterType::EQUATION
,
7675 EnhancedCustomShapeParameterType::EQUATION
,
7676 EnhancedCustomShapeParameterType::EQUATION
,
7680 EnhancedCustomShapeParameterType::EQUATION
,
7681 EnhancedCustomShapeParameterType::EQUATION
,
7685 EnhancedCustomShapeParameterType::EQUATION
,
7686 EnhancedCustomShapeParameterType::EQUATION
,
7690 EnhancedCustomShapeParameterType::EQUATION
,
7691 EnhancedCustomShapeParameterType::EQUATION
,
7695 EnhancedCustomShapeParameterType::EQUATION
,
7696 EnhancedCustomShapeParameterType::EQUATION
,
7700 EnhancedCustomShapeParameterType::EQUATION
,
7701 EnhancedCustomShapeParameterType::EQUATION
,
7705 EnhancedCustomShapeParameterType::EQUATION
,
7706 EnhancedCustomShapeParameterType::EQUATION
,
7710 EnhancedCustomShapeParameterType::EQUATION
,
7711 EnhancedCustomShapeParameterType::EQUATION
,
7715 EnhancedCustomShapeParameterType::EQUATION
,
7716 EnhancedCustomShapeParameterType::EQUATION
,
7720 EnhancedCustomShapeParameterType::EQUATION
,
7721 EnhancedCustomShapeParameterType::EQUATION
,
7725 EnhancedCustomShapeParameterType::EQUATION
,
7726 EnhancedCustomShapeParameterType::EQUATION
,
7730 EnhancedCustomShapeParameterType::EQUATION
,
7731 EnhancedCustomShapeParameterType::EQUATION
,
7735 EnhancedCustomShapeParameterType::EQUATION
,
7736 EnhancedCustomShapeParameterType::EQUATION
,
7740 EnhancedCustomShapeParameterType::EQUATION
,
7741 EnhancedCustomShapeParameterType::EQUATION
,
7745 EnhancedCustomShapeParameterType::EQUATION
,
7746 EnhancedCustomShapeParameterType::EQUATION
,
7750 EnhancedCustomShapeParameterType::EQUATION
,
7751 EnhancedCustomShapeParameterType::EQUATION
,
7755 EnhancedCustomShapeParameterType::EQUATION
,
7756 EnhancedCustomShapeParameterType::EQUATION
,
7760 EnhancedCustomShapeParameterType::EQUATION
,
7761 EnhancedCustomShapeParameterType::EQUATION
,
7765 EnhancedCustomShapeParameterType::EQUATION
,
7766 EnhancedCustomShapeParameterType::EQUATION
,
7770 EnhancedCustomShapeParameterType::EQUATION
,
7771 EnhancedCustomShapeParameterType::EQUATION
,
7775 EnhancedCustomShapeParameterType::EQUATION
,
7776 EnhancedCustomShapeParameterType::EQUATION
,
7780 EnhancedCustomShapeParameterType::EQUATION
,
7781 EnhancedCustomShapeParameterType::EQUATION
,
7785 EnhancedCustomShapeParameterType::EQUATION
,
7786 EnhancedCustomShapeParameterType::EQUATION
,
7790 EnhancedCustomShapeParameterType::NORMAL
,
7791 EnhancedCustomShapeParameterType::NORMAL
,
7795 EnhancedCustomShapeParameterType::EQUATION
,
7796 EnhancedCustomShapeParameterType::NORMAL
,
7800 EnhancedCustomShapeParameterType::EQUATION
,
7801 EnhancedCustomShapeParameterType::EQUATION
,
7805 EnhancedCustomShapeParameterType::NORMAL
,
7806 EnhancedCustomShapeParameterType::EQUATION
,
7810 aPropSequence
[0].Value
= makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData
), aData
));
7813 aPropSequence
[1].Name
= "Segments";
7814 static const sal_uInt16 nValues
[] = {
7841 aPropSequence
[1].Value
= makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues
), nValues
));
7844 aPropSequence
[2].Name
= "TextFrames";
7845 Sequence
< EnhancedCustomShapeTextFrame
> aTextFrameSeq (1);
7847 EnhancedCustomShapeTextFrame aTextFrame
;
7849 static const CustomShapeProvider::ParameterPairData aData
=
7851 EnhancedCustomShapeParameterType::NORMAL
,
7852 EnhancedCustomShapeParameterType::NORMAL
,
7855 aTextFrame
.TopLeft
= createParameterPair(&aData
);
7858 static const CustomShapeProvider::ParameterPairData aData
=
7860 EnhancedCustomShapeParameterType::EQUATION
,
7861 EnhancedCustomShapeParameterType::EQUATION
,
7864 aTextFrame
.BottomRight
= createParameterPair(&aData
);
7866 aTextFrameSeq
[0] = aTextFrame
;
7868 aPropSequence
[2].Value
= makeAny (aTextFrameSeq
);
7870 aPropertyMap
[PROP_Path
] <<= aPropSequence
;
7873 awt::Rectangle aRectangle
;
7876 aRectangle
.Width
= 0;
7877 aRectangle
.Height
= 0;
7878 aPropertyMap
[PROP_ViewBox
] <<= aRectangle
;
7880 aPropertyMap
[ PROP_Type
] <<= OUString("ooxml-actionButtonMovie");
7882 return aPropertyMap
;
7885 class ShapeCflowChartOnlineStorage
: public CustomShapeProvider
7887 virtual PropertyMap
getProperties()
7889 PropertyMap aPropertyMap
;
7892 aPropertyMap
[PROP_AdjustmentValues
] <<= Sequence
< OUString
>(0);
7895 static const char *aStrings
[] = {
7901 "(16200000)/60000.0",
7902 "(-10800000)/60000.0",
7903 "(5400000)/60000.0",
7904 "(10800000)/60000.0"
7906 aPropertyMap
[PROP_Equations
] <<= createStringSequence( SAL_N_ELEMENTS( aStrings
), aStrings
);
7909 aPropertyMap
[PROP_Handles
] <<= Sequence
< OUString
>(0);
7912 aPropertyMap
[PROP_MirroredX
] <<= Any ((sal_Bool
) sal_False
);
7915 aPropertyMap
[PROP_MirroredY
] <<= Any ((sal_Bool
) sal_False
);
7918 Sequence
< PropertyValue
> aPropSequence (4);
7920 aPropSequence
[0].Name
= "Coordinates";
7921 static const CustomShapeProvider::ParameterPairData aData
[] = {
7923 EnhancedCustomShapeParameterType::NORMAL
,
7924 EnhancedCustomShapeParameterType::NORMAL
,
7928 EnhancedCustomShapeParameterType::NORMAL
,
7929 EnhancedCustomShapeParameterType::NORMAL
,
7933 EnhancedCustomShapeParameterType::NORMAL
,
7934 EnhancedCustomShapeParameterType::NORMAL
,
7938 EnhancedCustomShapeParameterType::EQUATION
,
7939 EnhancedCustomShapeParameterType::EQUATION
,
7943 EnhancedCustomShapeParameterType::NORMAL
,
7944 EnhancedCustomShapeParameterType::NORMAL
,
7948 EnhancedCustomShapeParameterType::NORMAL
,
7949 EnhancedCustomShapeParameterType::NORMAL
,
7953 EnhancedCustomShapeParameterType::EQUATION
,
7954 EnhancedCustomShapeParameterType::EQUATION
,
7958 aPropSequence
[0].Value
= makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData
), aData
));
7961 aPropSequence
[1].Name
= "Segments";
7962 static const sal_uInt16 nValues
[] = {
7972 aPropSequence
[1].Value
= makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues
), nValues
));
7975 aPropSequence
[2].Name
= "SubViewSize";
7976 Sequence
< awt::Size
> aSizeSequence (1);
7981 aSizeSequence
[0] = aSize
;
7983 aPropSequence
[2].Value
= makeAny (aSizeSequence
);
7986 aPropSequence
[3].Name
= "TextFrames";
7987 Sequence
< EnhancedCustomShapeTextFrame
> aTextFrameSeq (1);
7989 EnhancedCustomShapeTextFrame aTextFrame
;
7991 static const CustomShapeProvider::ParameterPairData aData
=
7993 EnhancedCustomShapeParameterType::EQUATION
,
7994 EnhancedCustomShapeParameterType::NORMAL
,
7997 aTextFrame
.TopLeft
= createParameterPair(&aData
);
8000 static const CustomShapeProvider::ParameterPairData aData
=
8002 EnhancedCustomShapeParameterType::EQUATION
,
8003 EnhancedCustomShapeParameterType::EQUATION
,
8006 aTextFrame
.BottomRight
= createParameterPair(&aData
);
8008 aTextFrameSeq
[0] = aTextFrame
;
8010 aPropSequence
[3].Value
= makeAny (aTextFrameSeq
);
8012 aPropertyMap
[PROP_Path
] <<= aPropSequence
;
8015 awt::Rectangle aRectangle
;
8018 aRectangle
.Width
= 0;
8019 aRectangle
.Height
= 0;
8020 aPropertyMap
[PROP_ViewBox
] <<= aRectangle
;
8022 aPropertyMap
[ PROP_Type
] <<= OUString("ooxml-flowChartOnlineStorage");
8024 return aPropertyMap
;
8027 class ShapeCgear6
: public CustomShapeProvider
8029 virtual PropertyMap
getProperties()
8031 PropertyMap aPropertyMap
;
8034 Sequence
< EnhancedCustomShapeAdjustmentValue
> aAdjSequence (2);
8036 Any
aAny ((sal_Int32
) 15000);
8037 aAdjSequence
[0].Value
= aAny
;
8038 aAdjSequence
[0].Name
= "adj1";
8041 Any
aAny ((sal_Int32
) 3526);
8042 aAdjSequence
[1].Value
= aAny
;
8043 aAdjSequence
[1].Name
= "adj2";
8045 aPropertyMap
[PROP_AdjustmentValues
] <<= aAdjSequence
;
8048 static const char *aStrings
[] = {
8049 "if(0-$0 ,0,if(20000-$0 ,$0 ,20000))",
8050 "if(0-$1 ,0,if(5358-$1 ,$1 ,5358))",
8051 "min(logwidth,logheight)",
8062 "if(?12 ,?9 ,?11 )",
8063 "(10800000*atan2(?7 ,?13 ))/pi",
8066 "?11 *cos(pi*(?15 )/10800000)",
8067 "?9 *sin(pi*(?15 )/10800000)",
8068 "(10800000*atan2(?18 ,?17 ))/pi",
8069 "?9 *cos(pi*(?19 )/10800000)",
8070 "?11 *sin(pi*(?19 )/10800000)",
8071 "sqrt(?20 *?20 +?21 *?21 +0*0)",
8073 "?23 *cos(pi*(?19 )/10800000)",
8074 "?23 *sin(pi*(?19 )/10800000)",
8079 "?11 *cos(pi*(?16 )/10800000)",
8080 "?9 *sin(pi*(?16 )/10800000)",
8081 "(10800000*atan2(?31 ,?30 ))/pi",
8082 "?9 *cos(pi*(?32 )/10800000)",
8083 "?11 *sin(pi*(?32 )/10800000)",
8084 "sqrt(?33 *?33 +?34 *?34 +0*0)",
8086 "?36 *cos(pi*(?32 )/10800000)",
8087 "?36 *sin(pi*(?32 )/10800000)",
8092 "sqrt(?41 *?41 +?42 *?42 +0*0)",
8093 "(10800000*atan2(?41 ,?42 ))/pi",
8094 "?4 *sin(pi*(?44 )/10800000)",
8095 "?4 *cos(pi*(?44 )/10800000)",
8100 "?3 *sin(pi*(?44 )/10800000)",
8101 "?3 *cos(pi*(?44 )/10800000)",
8107 "?11 *cos(pi*(?57 )/10800000)",
8108 "?9 *sin(pi*(?57 )/10800000)",
8109 "(10800000*atan2(?59 ,?58 ))/pi",
8110 "?9 *cos(pi*(?60 )/10800000)",
8111 "?11 *sin(pi*(?60 )/10800000)",
8112 "sqrt(?61 *?61 +?62 *?62 +0*0)",
8114 "?64 *cos(pi*(?60 )/10800000)",
8115 "?64 *sin(pi*(?60 )/10800000)",
8125 "?11 *cos(pi*(?74 )/10800000)",
8126 "?9 *sin(pi*(?74 )/10800000)",
8127 "(10800000*atan2(?77 ,?76 ))/pi",
8129 "?11 *cos(pi*(?75 )/10800000)",
8130 "?9 *sin(pi*(?75 )/10800000)",
8131 "(10800000*atan2(?81 ,?80 ))/pi",
8138 "?11 *cos(pi*(?88 )/10800000)",
8139 "?9 *sin(pi*(?88 )/10800000)",
8140 "(10800000*atan2(?90 ,?89 ))/pi",
8144 "?11 *cos(pi*(?94 )/10800000)",
8145 "?9 *sin(pi*(?94 )/10800000)",
8146 "(10800000*atan2(?96 ,?95 ))/pi",
8151 "?11 *cos(pi*(?101 )/10800000)",
8152 "?9 *sin(pi*(?101 )/10800000)",
8153 "(10800000*atan2(?103 ,?102 ))/pi",
8159 "logheight+0-?109 ",
8160 "(logwidth+0)/?108 ",
8174 aPropertyMap
[PROP_Equations
] <<= createStringSequence( SAL_N_ELEMENTS( aStrings
), aStrings
);
8177 Sequence
< Sequence
< PropertyValue
> > aPropSequenceSequence (2);
8179 Sequence
< PropertyValue
> aPropSequence (4);
8181 aPropSequence
[0].Name
= "Position";
8182 static const CustomShapeProvider::ParameterPairData aData
=
8184 EnhancedCustomShapeParameterType::EQUATION
,
8185 EnhancedCustomShapeParameterType::EQUATION
,
8188 aPropSequence
[0].Value
= makeAny (createParameterPair(&aData
));
8191 aPropSequence
[1].Name
= "RangeYMaximum";
8192 EnhancedCustomShapeParameter aParameter
;
8193 Any
aAny ((sal_Int32
) 20000);
8194 aParameter
.Value
= aAny
;
8195 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
8196 aPropSequence
[1].Value
= makeAny (aParameter
);
8199 aPropSequence
[2].Name
= "RangeYMinimum";
8200 EnhancedCustomShapeParameter aParameter
;
8201 Any
aAny ((sal_Int32
) 0);
8202 aParameter
.Value
= aAny
;
8203 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
8204 aPropSequence
[2].Value
= makeAny (aParameter
);
8207 aPropSequence
[3].Name
= "RefY";
8208 Any
aAny ((sal_Int32
) 0);
8209 aPropSequence
[3].Value
= makeAny (aAny
);
8211 aPropSequenceSequence
[0] = aPropSequence
;
8214 Sequence
< PropertyValue
> aPropSequence (4);
8216 aPropSequence
[0].Name
= "Position";
8217 static const CustomShapeProvider::ParameterPairData aData
=
8219 EnhancedCustomShapeParameterType::EQUATION
,
8220 EnhancedCustomShapeParameterType::EQUATION
,
8223 aPropSequence
[0].Value
= makeAny (createParameterPair(&aData
));
8226 aPropSequence
[1].Name
= "RangeXMaximum";
8227 EnhancedCustomShapeParameter aParameter
;
8228 Any
aAny ((sal_Int32
) 5358);
8229 aParameter
.Value
= aAny
;
8230 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
8231 aPropSequence
[1].Value
= makeAny (aParameter
);
8234 aPropSequence
[2].Name
= "RangeXMinimum";
8235 EnhancedCustomShapeParameter aParameter
;
8236 Any
aAny ((sal_Int32
) 0);
8237 aParameter
.Value
= aAny
;
8238 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
8239 aPropSequence
[2].Value
= makeAny (aParameter
);
8242 aPropSequence
[3].Name
= "RefX";
8243 Any
aAny ((sal_Int32
) 1);
8244 aPropSequence
[3].Value
= makeAny (aAny
);
8246 aPropSequenceSequence
[1] = aPropSequence
;
8248 aPropertyMap
[PROP_Handles
] <<= aPropSequenceSequence
;
8251 aPropertyMap
[PROP_MirroredX
] <<= Any ((sal_Bool
) sal_False
);
8254 aPropertyMap
[PROP_MirroredY
] <<= Any ((sal_Bool
) sal_False
);
8257 Sequence
< PropertyValue
> aPropSequence (3);
8259 aPropSequence
[0].Name
= "Coordinates";
8260 static const CustomShapeProvider::ParameterPairData aData
[] = {
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::EQUATION
,
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 EnhancedCustomShapeParameterType::EQUATION
,
8383 EnhancedCustomShapeParameterType::EQUATION
,
8387 EnhancedCustomShapeParameterType::EQUATION
,
8388 EnhancedCustomShapeParameterType::EQUATION
,
8392 EnhancedCustomShapeParameterType::EQUATION
,
8393 EnhancedCustomShapeParameterType::EQUATION
,
8397 EnhancedCustomShapeParameterType::EQUATION
,
8398 EnhancedCustomShapeParameterType::EQUATION
,
8402 EnhancedCustomShapeParameterType::EQUATION
,
8403 EnhancedCustomShapeParameterType::EQUATION
,
8407 EnhancedCustomShapeParameterType::EQUATION
,
8408 EnhancedCustomShapeParameterType::EQUATION
,
8412 EnhancedCustomShapeParameterType::EQUATION
,
8413 EnhancedCustomShapeParameterType::EQUATION
,
8417 aPropSequence
[0].Value
= makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData
), aData
));
8420 aPropSequence
[1].Name
= "Segments";
8421 static const sal_uInt16 nValues
[] = {
8439 aPropSequence
[1].Value
= makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues
), nValues
));
8442 aPropSequence
[2].Name
= "TextFrames";
8443 Sequence
< EnhancedCustomShapeTextFrame
> aTextFrameSeq (1);
8445 EnhancedCustomShapeTextFrame aTextFrame
;
8447 static const CustomShapeProvider::ParameterPairData aData
=
8449 EnhancedCustomShapeParameterType::EQUATION
,
8450 EnhancedCustomShapeParameterType::EQUATION
,
8453 aTextFrame
.TopLeft
= createParameterPair(&aData
);
8456 static const CustomShapeProvider::ParameterPairData aData
=
8458 EnhancedCustomShapeParameterType::EQUATION
,
8459 EnhancedCustomShapeParameterType::EQUATION
,
8462 aTextFrame
.BottomRight
= createParameterPair(&aData
);
8464 aTextFrameSeq
[0] = aTextFrame
;
8466 aPropSequence
[2].Value
= makeAny (aTextFrameSeq
);
8468 aPropertyMap
[PROP_Path
] <<= aPropSequence
;
8471 awt::Rectangle aRectangle
;
8474 aRectangle
.Width
= 0;
8475 aRectangle
.Height
= 0;
8476 aPropertyMap
[PROP_ViewBox
] <<= aRectangle
;
8478 aPropertyMap
[ PROP_Type
] <<= OUString("ooxml-gear6");
8480 return aPropertyMap
;
8483 class ShapeChalfFrame
: public CustomShapeProvider
8485 virtual PropertyMap
getProperties()
8487 PropertyMap aPropertyMap
;
8490 Sequence
< EnhancedCustomShapeAdjustmentValue
> aAdjSequence (2);
8492 Any
aAny ((sal_Int32
) 33333);
8493 aAdjSequence
[0].Value
= aAny
;
8494 aAdjSequence
[0].Name
= "adj1";
8497 Any
aAny ((sal_Int32
) 33333);
8498 aAdjSequence
[1].Value
= aAny
;
8499 aAdjSequence
[1].Name
= "adj2";
8501 aPropertyMap
[PROP_AdjustmentValues
] <<= aAdjSequence
;
8504 static const char *aStrings
[] = {
8505 "min(logwidth,logheight)",
8506 "100000*logwidth/?0 ",
8507 "if(0-$1 ,0,if(?1 -$1 ,$1 ,?1 ))",
8509 "logheight*?3 /logwidth",
8512 "if(0-$0 ,0,if(?6 -$0 ,$0 ,?6 ))",
8514 "?8 *logwidth/logheight",
8516 "?3 *logheight/logwidth",
8519 "(?12 +logheight)/2",
8520 "(?10 +logwidth)/2",
8527 aPropertyMap
[PROP_Equations
] <<= createStringSequence( SAL_N_ELEMENTS( aStrings
), aStrings
);
8530 Sequence
< Sequence
< PropertyValue
> > aPropSequenceSequence (2);
8532 Sequence
< PropertyValue
> aPropSequence (4);
8534 aPropSequence
[0].Name
= "Position";
8535 static const CustomShapeProvider::ParameterPairData aData
=
8537 EnhancedCustomShapeParameterType::NORMAL
,
8538 EnhancedCustomShapeParameterType::EQUATION
,
8541 aPropSequence
[0].Value
= makeAny (createParameterPair(&aData
));
8544 aPropSequence
[1].Name
= "RangeYMaximum";
8545 EnhancedCustomShapeParameter aParameter
;
8546 Any
aAny ((sal_Int32
) 6);
8547 aParameter
.Value
= aAny
;
8548 aParameter
.Type
= EnhancedCustomShapeParameterType::EQUATION
;
8549 aPropSequence
[1].Value
= makeAny (aParameter
);
8552 aPropSequence
[2].Name
= "RangeYMinimum";
8553 EnhancedCustomShapeParameter aParameter
;
8554 Any
aAny ((sal_Int32
) 0);
8555 aParameter
.Value
= aAny
;
8556 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
8557 aPropSequence
[2].Value
= makeAny (aParameter
);
8560 aPropSequence
[3].Name
= "RefY";
8561 Any
aAny ((sal_Int32
) 0);
8562 aPropSequence
[3].Value
= makeAny (aAny
);
8564 aPropSequenceSequence
[0] = aPropSequence
;
8567 Sequence
< PropertyValue
> aPropSequence (4);
8569 aPropSequence
[0].Name
= "Position";
8570 static const CustomShapeProvider::ParameterPairData aData
=
8572 EnhancedCustomShapeParameterType::EQUATION
,
8573 EnhancedCustomShapeParameterType::NORMAL
,
8576 aPropSequence
[0].Value
= makeAny (createParameterPair(&aData
));
8579 aPropSequence
[1].Name
= "RangeXMaximum";
8580 EnhancedCustomShapeParameter aParameter
;
8581 Any
aAny ((sal_Int32
) 1);
8582 aParameter
.Value
= aAny
;
8583 aParameter
.Type
= EnhancedCustomShapeParameterType::EQUATION
;
8584 aPropSequence
[1].Value
= makeAny (aParameter
);
8587 aPropSequence
[2].Name
= "RangeXMinimum";
8588 EnhancedCustomShapeParameter aParameter
;
8589 Any
aAny ((sal_Int32
) 0);
8590 aParameter
.Value
= aAny
;
8591 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
8592 aPropSequence
[2].Value
= makeAny (aParameter
);
8595 aPropSequence
[3].Name
= "RefX";
8596 Any
aAny ((sal_Int32
) 1);
8597 aPropSequence
[3].Value
= makeAny (aAny
);
8599 aPropSequenceSequence
[1] = aPropSequence
;
8601 aPropertyMap
[PROP_Handles
] <<= aPropSequenceSequence
;
8604 aPropertyMap
[PROP_MirroredX
] <<= Any ((sal_Bool
) sal_False
);
8607 aPropertyMap
[PROP_MirroredY
] <<= Any ((sal_Bool
) sal_False
);
8610 Sequence
< PropertyValue
> aPropSequence (3);
8612 aPropSequence
[0].Name
= "Coordinates";
8613 static const CustomShapeProvider::ParameterPairData aData
[] = {
8615 EnhancedCustomShapeParameterType::NORMAL
,
8616 EnhancedCustomShapeParameterType::NORMAL
,
8620 EnhancedCustomShapeParameterType::EQUATION
,
8621 EnhancedCustomShapeParameterType::NORMAL
,
8625 EnhancedCustomShapeParameterType::EQUATION
,
8626 EnhancedCustomShapeParameterType::EQUATION
,
8630 EnhancedCustomShapeParameterType::EQUATION
,
8631 EnhancedCustomShapeParameterType::EQUATION
,
8635 EnhancedCustomShapeParameterType::EQUATION
,
8636 EnhancedCustomShapeParameterType::EQUATION
,
8640 EnhancedCustomShapeParameterType::NORMAL
,
8641 EnhancedCustomShapeParameterType::EQUATION
,
8645 aPropSequence
[0].Value
= makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData
), aData
));
8648 aPropSequence
[1].Name
= "Segments";
8649 static const sal_uInt16 nValues
[] = {
8656 aPropSequence
[1].Value
= makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues
), nValues
));
8659 aPropSequence
[2].Name
= "TextFrames";
8660 Sequence
< EnhancedCustomShapeTextFrame
> aTextFrameSeq (1);
8662 EnhancedCustomShapeTextFrame aTextFrame
;
8664 static const CustomShapeProvider::ParameterPairData aData
=
8666 EnhancedCustomShapeParameterType::NORMAL
,
8667 EnhancedCustomShapeParameterType::NORMAL
,
8670 aTextFrame
.TopLeft
= createParameterPair(&aData
);
8673 static const CustomShapeProvider::ParameterPairData aData
=
8675 EnhancedCustomShapeParameterType::EQUATION
,
8676 EnhancedCustomShapeParameterType::EQUATION
,
8679 aTextFrame
.BottomRight
= createParameterPair(&aData
);
8681 aTextFrameSeq
[0] = aTextFrame
;
8683 aPropSequence
[2].Value
= makeAny (aTextFrameSeq
);
8685 aPropertyMap
[PROP_Path
] <<= aPropSequence
;
8688 awt::Rectangle aRectangle
;
8691 aRectangle
.Width
= 0;
8692 aRectangle
.Height
= 0;
8693 aPropertyMap
[PROP_ViewBox
] <<= aRectangle
;
8695 aPropertyMap
[ PROP_Type
] <<= OUString("ooxml-halfFrame");
8697 return aPropertyMap
;
8700 class ShapeCsnip2SameRect
: public CustomShapeProvider
8702 virtual PropertyMap
getProperties()
8704 PropertyMap aPropertyMap
;
8707 Sequence
< EnhancedCustomShapeAdjustmentValue
> aAdjSequence (2);
8709 Any
aAny ((sal_Int32
) 16667);
8710 aAdjSequence
[0].Value
= aAny
;
8711 aAdjSequence
[0].Name
= "adj1";
8714 Any
aAny ((sal_Int32
) 0);
8715 aAdjSequence
[1].Value
= aAny
;
8716 aAdjSequence
[1].Name
= "adj2";
8718 aPropertyMap
[PROP_AdjustmentValues
] <<= aAdjSequence
;
8721 static const char *aStrings
[] = {
8722 "if(0-$0 ,0,if(50000-$0 ,$0 ,50000))",
8723 "if(0-$1 ,0,if(50000-$1 ,$1 ,50000))",
8724 "min(logwidth,logheight)",
8735 "(?7 +logheight)/2",
8741 aPropertyMap
[PROP_Equations
] <<= createStringSequence( SAL_N_ELEMENTS( aStrings
), aStrings
);
8744 Sequence
< Sequence
< PropertyValue
> > aPropSequenceSequence (2);
8746 Sequence
< PropertyValue
> aPropSequence (4);
8748 aPropSequence
[0].Name
= "Position";
8749 static const CustomShapeProvider::ParameterPairData aData
=
8751 EnhancedCustomShapeParameterType::EQUATION
,
8752 EnhancedCustomShapeParameterType::NORMAL
,
8755 aPropSequence
[0].Value
= makeAny (createParameterPair(&aData
));
8758 aPropSequence
[1].Name
= "RangeXMaximum";
8759 EnhancedCustomShapeParameter aParameter
;
8760 Any
aAny ((sal_Int32
) 50000);
8761 aParameter
.Value
= aAny
;
8762 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
8763 aPropSequence
[1].Value
= makeAny (aParameter
);
8766 aPropSequence
[2].Name
= "RangeXMinimum";
8767 EnhancedCustomShapeParameter aParameter
;
8768 Any
aAny ((sal_Int32
) 0);
8769 aParameter
.Value
= aAny
;
8770 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
8771 aPropSequence
[2].Value
= makeAny (aParameter
);
8774 aPropSequence
[3].Name
= "RefX";
8775 Any
aAny ((sal_Int32
) 0);
8776 aPropSequence
[3].Value
= makeAny (aAny
);
8778 aPropSequenceSequence
[0] = aPropSequence
;
8781 Sequence
< PropertyValue
> aPropSequence (4);
8783 aPropSequence
[0].Name
= "Position";
8784 static const CustomShapeProvider::ParameterPairData aData
=
8786 EnhancedCustomShapeParameterType::EQUATION
,
8787 EnhancedCustomShapeParameterType::EQUATION
,
8790 aPropSequence
[0].Value
= makeAny (createParameterPair(&aData
));
8793 aPropSequence
[1].Name
= "RangeXMaximum";
8794 EnhancedCustomShapeParameter aParameter
;
8795 Any
aAny ((sal_Int32
) 50000);
8796 aParameter
.Value
= aAny
;
8797 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
8798 aPropSequence
[1].Value
= makeAny (aParameter
);
8801 aPropSequence
[2].Name
= "RangeXMinimum";
8802 EnhancedCustomShapeParameter aParameter
;
8803 Any
aAny ((sal_Int32
) 0);
8804 aParameter
.Value
= aAny
;
8805 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
8806 aPropSequence
[2].Value
= makeAny (aParameter
);
8809 aPropSequence
[3].Name
= "RefX";
8810 Any
aAny ((sal_Int32
) 1);
8811 aPropSequence
[3].Value
= makeAny (aAny
);
8813 aPropSequenceSequence
[1] = aPropSequence
;
8815 aPropertyMap
[PROP_Handles
] <<= aPropSequenceSequence
;
8818 aPropertyMap
[PROP_MirroredX
] <<= Any ((sal_Bool
) sal_False
);
8821 aPropertyMap
[PROP_MirroredY
] <<= Any ((sal_Bool
) sal_False
);
8824 Sequence
< PropertyValue
> aPropSequence (3);
8826 aPropSequence
[0].Name
= "Coordinates";
8827 static const CustomShapeProvider::ParameterPairData aData
[] = {
8829 EnhancedCustomShapeParameterType::EQUATION
,
8830 EnhancedCustomShapeParameterType::NORMAL
,
8834 EnhancedCustomShapeParameterType::EQUATION
,
8835 EnhancedCustomShapeParameterType::NORMAL
,
8839 EnhancedCustomShapeParameterType::EQUATION
,
8840 EnhancedCustomShapeParameterType::EQUATION
,
8844 EnhancedCustomShapeParameterType::EQUATION
,
8845 EnhancedCustomShapeParameterType::EQUATION
,
8849 EnhancedCustomShapeParameterType::EQUATION
,
8850 EnhancedCustomShapeParameterType::EQUATION
,
8854 EnhancedCustomShapeParameterType::EQUATION
,
8855 EnhancedCustomShapeParameterType::EQUATION
,
8859 EnhancedCustomShapeParameterType::NORMAL
,
8860 EnhancedCustomShapeParameterType::EQUATION
,
8864 EnhancedCustomShapeParameterType::NORMAL
,
8865 EnhancedCustomShapeParameterType::EQUATION
,
8869 aPropSequence
[0].Value
= makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData
), aData
));
8872 aPropSequence
[1].Name
= "Segments";
8873 static const sal_uInt16 nValues
[] = {
8880 aPropSequence
[1].Value
= makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues
), nValues
));
8883 aPropSequence
[2].Name
= "TextFrames";
8884 Sequence
< EnhancedCustomShapeTextFrame
> aTextFrameSeq (1);
8886 EnhancedCustomShapeTextFrame aTextFrame
;
8888 static const CustomShapeProvider::ParameterPairData aData
=
8890 EnhancedCustomShapeParameterType::EQUATION
,
8891 EnhancedCustomShapeParameterType::EQUATION
,
8894 aTextFrame
.TopLeft
= createParameterPair(&aData
);
8897 static const CustomShapeProvider::ParameterPairData aData
=
8899 EnhancedCustomShapeParameterType::EQUATION
,
8900 EnhancedCustomShapeParameterType::EQUATION
,
8903 aTextFrame
.BottomRight
= createParameterPair(&aData
);
8905 aTextFrameSeq
[0] = aTextFrame
;
8907 aPropSequence
[2].Value
= makeAny (aTextFrameSeq
);
8909 aPropertyMap
[PROP_Path
] <<= aPropSequence
;
8912 awt::Rectangle aRectangle
;
8915 aRectangle
.Width
= 0;
8916 aRectangle
.Height
= 0;
8917 aPropertyMap
[PROP_ViewBox
] <<= aRectangle
;
8919 aPropertyMap
[ PROP_Type
] <<= OUString("ooxml-snip2SameRect");
8921 return aPropertyMap
;
8924 class ShapeCtriangle
: public CustomShapeProvider
8926 virtual PropertyMap
getProperties()
8928 PropertyMap aPropertyMap
;
8931 Sequence
< EnhancedCustomShapeAdjustmentValue
> aAdjSequence (1);
8933 Any
aAny ((sal_Int32
) 50000);
8934 aAdjSequence
[0].Value
= aAny
;
8935 aAdjSequence
[0].Name
= "adj";
8937 aPropertyMap
[PROP_AdjustmentValues
] <<= aAdjSequence
;
8940 static const char *aStrings
[] = {
8941 "if(0-$0 ,0,if(100000-$0 ,$0 ,100000))",
8942 "logwidth*?0 /200000",
8943 "logwidth*?0 /100000",
8950 aPropertyMap
[PROP_Equations
] <<= createStringSequence( SAL_N_ELEMENTS( aStrings
), aStrings
);
8953 Sequence
< Sequence
< PropertyValue
> > aPropSequenceSequence (1);
8955 Sequence
< PropertyValue
> aPropSequence (4);
8957 aPropSequence
[0].Name
= "Position";
8958 static const CustomShapeProvider::ParameterPairData aData
=
8960 EnhancedCustomShapeParameterType::EQUATION
,
8961 EnhancedCustomShapeParameterType::NORMAL
,
8964 aPropSequence
[0].Value
= makeAny (createParameterPair(&aData
));
8967 aPropSequence
[1].Name
= "RangeXMaximum";
8968 EnhancedCustomShapeParameter aParameter
;
8969 Any
aAny ((sal_Int32
) 100000);
8970 aParameter
.Value
= aAny
;
8971 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
8972 aPropSequence
[1].Value
= makeAny (aParameter
);
8975 aPropSequence
[2].Name
= "RangeXMinimum";
8976 EnhancedCustomShapeParameter aParameter
;
8977 Any
aAny ((sal_Int32
) 0);
8978 aParameter
.Value
= aAny
;
8979 aParameter
.Type
= EnhancedCustomShapeParameterType::NORMAL
;
8980 aPropSequence
[2].Value
= makeAny (aParameter
);
8983 aPropSequence
[3].Name
= "RefX";
8984 Any
aAny ((sal_Int32
) 0);
8985 aPropSequence
[3].Value
= makeAny (aAny
);
8987 aPropSequenceSequence
[0] = aPropSequence
;
8989 aPropertyMap
[PROP_Handles
] <<= aPropSequenceSequence
;
8992 aPropertyMap
[PROP_MirroredX
] <<= Any ((sal_Bool
) sal_False
);
8995 aPropertyMap
[PROP_MirroredY
] <<= Any ((sal_Bool
) sal_False
);
8998 Sequence
< PropertyValue
> aPropSequence (3);
9000 aPropSequence
[0].Name
= "Coordinates";
9001 static const CustomShapeProvider::ParameterPairData aData
[] = {
9003 EnhancedCustomShapeParameterType::NORMAL
,
9004 EnhancedCustomShapeParameterType::EQUATION
,
9008 EnhancedCustomShapeParameterType::EQUATION
,
9009 EnhancedCustomShapeParameterType::NORMAL
,
9013 EnhancedCustomShapeParameterType::EQUATION
,
9014 EnhancedCustomShapeParameterType::EQUATION
,
9018 aPropSequence
[0].Value
= makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData
), aData
));
9021 aPropSequence
[1].Name
= "Segments";
9022 static const sal_uInt16 nValues
[] = {
9029 aPropSequence
[1].Value
= makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues
), nValues
));
9032 aPropSequence
[2].Name
= "TextFrames";
9033 Sequence
< EnhancedCustomShapeTextFrame
> aTextFrameSeq (1);
9035 EnhancedCustomShapeTextFrame aTextFrame
;
9037 static const CustomShapeProvider::ParameterPairData aData
=
9039 EnhancedCustomShapeParameterType::EQUATION
,
9040 EnhancedCustomShapeParameterType::EQUATION
,
9043 aTextFrame
.TopLeft
= createParameterPair(&aData
);
9046 static const CustomShapeProvider::ParameterPairData aData
=
9048 EnhancedCustomShapeParameterType::EQUATION
,
9049 EnhancedCustomShapeParameterType::EQUATION
,
9052 aTextFrame
.BottomRight
= createParameterPair(&aData
);
9054 aTextFrameSeq
[0] = aTextFrame
;
9056 aPropSequence
[2].Value
= makeAny (aTextFrameSeq
);
9058 aPropertyMap
[PROP_Path
] <<= aPropSequence
;
9061 awt::Rectangle aRectangle
;
9064 aRectangle
.Width
= 0;
9065 aRectangle
.Height
= 0;
9066 aPropertyMap
[PROP_ViewBox
] <<= aRectangle
;
9068 aPropertyMap
[ PROP_Type
] <<= OUString("ooxml-triangle");
9070 return aPropertyMap
;
9073 } // anonymous namespace
9074 void CustomShapeProperties::initializePresetsMap3()
9076 maPresetsMap
[ StaticTokenMap::get().getTokenFromUnicode( "round2SameRect" ) ] = new ShapeCround2SameRect();
9077 maPresetsMap
[ StaticTokenMap::get().getTokenFromUnicode( "nonIsoscelesTrapezoid" ) ] = new ShapeCnonIsoscelesTrapezoid();
9078 maPresetsMap
[ StaticTokenMap::get().getTokenFromUnicode( "diamond" ) ] = new ShapeCdiamond();
9079 maPresetsMap
[ StaticTokenMap::get().getTokenFromUnicode( "ellipseRibbon" ) ] = new ShapeCellipseRibbon();
9080 maPresetsMap
[ StaticTokenMap::get().getTokenFromUnicode( "callout2" ) ] = new ShapeCcallout2();
9081 maPresetsMap
[ StaticTokenMap::get().getTokenFromUnicode( "pie" ) ] = new ShapeCpie();
9082 maPresetsMap
[ StaticTokenMap::get().getTokenFromUnicode( "star4" ) ] = new ShapeCstar4();
9083 maPresetsMap
[ StaticTokenMap::get().getTokenFromUnicode( "flowChartPredefinedProcess" ) ] = new ShapeCflowChartPredefinedProcess();
9084 maPresetsMap
[ StaticTokenMap::get().getTokenFromUnicode( "flowChartPunchedTape" ) ] = new ShapeCflowChartPunchedTape();
9085 maPresetsMap
[ StaticTokenMap::get().getTokenFromUnicode( "curvedConnector2" ) ] = new ShapeCcurvedConnector2();
9086 maPresetsMap
[ StaticTokenMap::get().getTokenFromUnicode( "bentConnector3" ) ] = new ShapeCbentConnector3();
9087 maPresetsMap
[ StaticTokenMap::get().getTokenFromUnicode( "cornerTabs" ) ] = new ShapeCcornerTabs();
9088 maPresetsMap
[ StaticTokenMap::get().getTokenFromUnicode( "hexagon" ) ] = new ShapeChexagon();
9089 maPresetsMap
[ StaticTokenMap::get().getTokenFromUnicode( "flowChartConnector" ) ] = new ShapeCflowChartConnector();
9090 maPresetsMap
[ StaticTokenMap::get().getTokenFromUnicode( "flowChartMagneticDisk" ) ] = new ShapeCflowChartMagneticDisk();
9091 maPresetsMap
[ StaticTokenMap::get().getTokenFromUnicode( "heart" ) ] = new ShapeCheart();
9092 maPresetsMap
[ StaticTokenMap::get().getTokenFromUnicode( "ribbon2" ) ] = new ShapeCribbon2();
9093 maPresetsMap
[ StaticTokenMap::get().getTokenFromUnicode( "bracePair" ) ] = new ShapeCbracePair();
9094 maPresetsMap
[ StaticTokenMap::get().getTokenFromUnicode( "flowChartExtract" ) ] = new ShapeCflowChartExtract();
9095 maPresetsMap
[ StaticTokenMap::get().getTokenFromUnicode( "actionButtonHome" ) ] = new ShapeCactionButtonHome();
9096 maPresetsMap
[ StaticTokenMap::get().getTokenFromUnicode( "accentBorderCallout3" ) ] = new ShapeCaccentBorderCallout3();
9097 maPresetsMap
[ StaticTokenMap::get().getTokenFromUnicode( "flowChartOfflineStorage" ) ] = new ShapeCflowChartOfflineStorage();
9098 maPresetsMap
[ StaticTokenMap::get().getTokenFromUnicode( "irregularSeal1" ) ] = new ShapeCirregularSeal1();
9099 maPresetsMap
[ StaticTokenMap::get().getTokenFromUnicode( "quadArrow" ) ] = new ShapeCquadArrow();
9100 maPresetsMap
[ StaticTokenMap::get().getTokenFromUnicode( "leftBrace" ) ] = new ShapeCleftBrace();
9101 maPresetsMap
[ StaticTokenMap::get().getTokenFromUnicode( "leftBracket" ) ] = new ShapeCleftBracket();
9102 maPresetsMap
[ StaticTokenMap::get().getTokenFromUnicode( "blockArc" ) ] = new ShapeCblockArc();
9103 maPresetsMap
[ StaticTokenMap::get().getTokenFromUnicode( "curvedConnector3" ) ] = new ShapeCcurvedConnector3();
9104 maPresetsMap
[ StaticTokenMap::get().getTokenFromUnicode( "wedgeRoundRectCallout" ) ] = new ShapeCwedgeRoundRectCallout();
9105 maPresetsMap
[ StaticTokenMap::get().getTokenFromUnicode( "actionButtonMovie" ) ] = new ShapeCactionButtonMovie();
9106 maPresetsMap
[ StaticTokenMap::get().getTokenFromUnicode( "flowChartOnlineStorage" ) ] = new ShapeCflowChartOnlineStorage();
9107 maPresetsMap
[ StaticTokenMap::get().getTokenFromUnicode( "gear6" ) ] = new ShapeCgear6();
9108 maPresetsMap
[ StaticTokenMap::get().getTokenFromUnicode( "halfFrame" ) ] = new ShapeChalfFrame();
9109 maPresetsMap
[ StaticTokenMap::get().getTokenFromUnicode( "snip2SameRect" ) ] = new ShapeCsnip2SameRect();
9110 maPresetsMap
[ StaticTokenMap::get().getTokenFromUnicode( "triangle" ) ] = new ShapeCtriangle();
9113 } } // oox // drawingml