fdo#74697 Add Bluez 5 support for impress remote.
[LibreOffice.git] / oox / source / drawingml / customshapepresets6.cxx
blobbd1a51dc866d994b3509a50f0cf75b23ec125bf7
1 // this file was generated by: ./generatePresetsCXX.pl
2 // please do not edit
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 {
20 namespace
22 class ShapeCstar5 : public CustomShapeProvider
24 virtual PropertyMap getProperties()
26 PropertyMap aPropertyMap;
29 Sequence< EnhancedCustomShapeAdjustmentValue > aAdjSequence (3);
31 Any aAny ((sal_Int32) 19098);
32 aAdjSequence [0].Value = aAny;
33 aAdjSequence [0].Name = "adj";
36 Any aAny ((sal_Int32) 105146);
37 aAdjSequence [1].Value = aAny;
38 aAdjSequence [1].Name = "hf";
41 Any aAny ((sal_Int32) 110557);
42 aAdjSequence [2].Value = aAny;
43 aAdjSequence [2].Name = "vf";
45 aPropertyMap [PROP_AdjustmentValues] <<= aAdjSequence;
48 static const char *aStrings[] = {
49 "if(0-$0 ,0,if(50000-$0 ,$0 ,50000))",
50 "logwidth/2",
51 "?1 *$1 /100000",
52 "logheight/2",
53 "?3 *$2 /100000",
54 "logheight/2",
55 "?5 *$2 /100000",
56 "?2 *cos(pi*(1080000)/10800000)",
57 "?2 *cos(pi*(18360000)/10800000)",
58 "?4 *sin(pi*(1080000)/10800000)",
59 "?4 *sin(pi*(18360000)/10800000)",
60 "logwidth/2",
61 "?11 +0-?7 ",
62 "?11 +0-?8 ",
63 "?11 +?8 -0",
64 "?11 +?7 -0",
65 "?6 +0-?9 ",
66 "?6 +0-?10 ",
67 "?2 *?0 /50000",
68 "?4 *?0 /50000",
69 "?18 *cos(pi*(20520000)/10800000)",
70 "?18 *cos(pi*(3240000)/10800000)",
71 "?19 *sin(pi*(3240000)/10800000)",
72 "?19 *sin(pi*(20520000)/10800000)",
73 "?11 +0-?20 ",
74 "?11 +0-?21 ",
75 "?11 +?21 -0",
76 "?11 +?20 -0",
77 "?6 +0-?22 ",
78 "?6 +0-?23 ",
79 "?6 +?19 -0",
80 "?6 +0-?19 "
82 aPropertyMap [PROP_Equations] <<= createStringSequence( SAL_N_ELEMENTS( aStrings ), aStrings );
85 Sequence< Sequence < PropertyValue > > aPropSequenceSequence (1);
87 Sequence< PropertyValue > aPropSequence (4);
89 aPropSequence [0].Name = "Position";
90 static const CustomShapeProvider::ParameterPairData aData =
92 EnhancedCustomShapeParameterType::EQUATION,
93 EnhancedCustomShapeParameterType::EQUATION,
94 11, 31
96 aPropSequence [0].Value = makeAny (createParameterPair(&aData));
99 aPropSequence [1].Name = "RangeYMaximum";
100 EnhancedCustomShapeParameter aParameter;
101 Any aAny ((sal_Int32) 50000);
102 aParameter.Value = aAny;
103 aParameter.Type = EnhancedCustomShapeParameterType::NORMAL;
104 aPropSequence [1].Value = makeAny (aParameter);
107 aPropSequence [2].Name = "RangeYMinimum";
108 EnhancedCustomShapeParameter aParameter;
109 Any aAny ((sal_Int32) 0);
110 aParameter.Value = aAny;
111 aParameter.Type = EnhancedCustomShapeParameterType::NORMAL;
112 aPropSequence [2].Value = makeAny (aParameter);
115 aPropSequence [3].Name = "RefY";
116 Any aAny ((sal_Int32) 0);
117 aPropSequence [3].Value = makeAny (aAny);
119 aPropSequenceSequence [0] = aPropSequence;
121 aPropertyMap [PROP_Handles] <<= aPropSequenceSequence;
124 aPropertyMap [PROP_MirroredX] <<= Any ((sal_Bool) sal_False);
127 aPropertyMap [PROP_MirroredY] <<= Any ((sal_Bool) sal_False);
130 Sequence< PropertyValue > aPropSequence (3);
132 aPropSequence [0].Name = "Coordinates";
133 static const CustomShapeProvider::ParameterPairData aData[] = {
135 EnhancedCustomShapeParameterType::EQUATION,
136 EnhancedCustomShapeParameterType::EQUATION,
137 12, 16
140 EnhancedCustomShapeParameterType::EQUATION,
141 EnhancedCustomShapeParameterType::EQUATION,
142 25, 28
145 EnhancedCustomShapeParameterType::EQUATION,
146 EnhancedCustomShapeParameterType::NORMAL,
147 11, 0
150 EnhancedCustomShapeParameterType::EQUATION,
151 EnhancedCustomShapeParameterType::EQUATION,
152 26, 28
155 EnhancedCustomShapeParameterType::EQUATION,
156 EnhancedCustomShapeParameterType::EQUATION,
157 15, 16
160 EnhancedCustomShapeParameterType::EQUATION,
161 EnhancedCustomShapeParameterType::EQUATION,
162 27, 29
165 EnhancedCustomShapeParameterType::EQUATION,
166 EnhancedCustomShapeParameterType::EQUATION,
167 14, 17
170 EnhancedCustomShapeParameterType::EQUATION,
171 EnhancedCustomShapeParameterType::EQUATION,
172 11, 30
175 EnhancedCustomShapeParameterType::EQUATION,
176 EnhancedCustomShapeParameterType::EQUATION,
177 13, 17
180 EnhancedCustomShapeParameterType::EQUATION,
181 EnhancedCustomShapeParameterType::EQUATION,
182 24, 29
185 aPropSequence [0].Value = makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData), aData));
188 aPropSequence [1].Name = "Segments";
189 static const sal_uInt16 nValues[] = {
190 // Command, Count
191 1,1,
192 2,9,
193 4,0,
196 aPropSequence [1].Value = makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues ), nValues ));
199 aPropSequence [2].Name = "TextFrames";
200 Sequence< EnhancedCustomShapeTextFrame > aTextFrameSeq (1);
202 EnhancedCustomShapeTextFrame aTextFrame;
204 static const CustomShapeProvider::ParameterPairData aData =
206 EnhancedCustomShapeParameterType::EQUATION,
207 EnhancedCustomShapeParameterType::EQUATION,
208 24, 28
210 aTextFrame.TopLeft = createParameterPair(&aData);
213 static const CustomShapeProvider::ParameterPairData aData =
215 EnhancedCustomShapeParameterType::EQUATION,
216 EnhancedCustomShapeParameterType::EQUATION,
217 27, 30
219 aTextFrame.BottomRight = createParameterPair(&aData);
221 aTextFrameSeq [0] = aTextFrame;
223 aPropSequence [2].Value = makeAny (aTextFrameSeq);
225 aPropertyMap [PROP_Path] <<= aPropSequence;
228 awt::Rectangle aRectangle;
229 aRectangle.X = 0;
230 aRectangle.Y = 0;
231 aRectangle.Width = 0;
232 aRectangle.Height = 0;
233 aPropertyMap [PROP_ViewBox] <<= aRectangle;
235 aPropertyMap [ PROP_Type ] <<= OUString("ooxml-star5");
237 return aPropertyMap;
240 class ShapeClineInv : public CustomShapeProvider
242 virtual PropertyMap getProperties()
244 PropertyMap aPropertyMap;
247 aPropertyMap [PROP_AdjustmentValues] <<= Sequence< OUString >(0);
250 static const char *aStrings[] = {
251 "logheight",
252 "logwidth"
254 aPropertyMap [PROP_Equations] <<= createStringSequence( SAL_N_ELEMENTS( aStrings ), aStrings );
257 aPropertyMap [PROP_Handles] <<= Sequence< OUString >(0);
260 aPropertyMap [PROP_MirroredX] <<= Any ((sal_Bool) sal_False);
263 aPropertyMap [PROP_MirroredY] <<= Any ((sal_Bool) sal_False);
266 Sequence< PropertyValue > aPropSequence (2);
268 aPropSequence [0].Name = "Coordinates";
269 static const CustomShapeProvider::ParameterPairData aData[] = {
271 EnhancedCustomShapeParameterType::NORMAL,
272 EnhancedCustomShapeParameterType::EQUATION,
273 0, 0
276 EnhancedCustomShapeParameterType::EQUATION,
277 EnhancedCustomShapeParameterType::NORMAL,
278 1, 0
281 aPropSequence [0].Value = makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData), aData));
284 aPropSequence [1].Name = "Segments";
285 static const sal_uInt16 nValues[] = {
286 // Command, Count
287 1,1,
288 2,1,
291 aPropSequence [1].Value = makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues ), nValues ));
293 aPropertyMap [PROP_Path] <<= aPropSequence;
296 awt::Rectangle aRectangle;
297 aRectangle.X = 0;
298 aRectangle.Y = 0;
299 aRectangle.Width = 0;
300 aRectangle.Height = 0;
301 aPropertyMap [PROP_ViewBox] <<= aRectangle;
303 aPropertyMap [ PROP_Type ] <<= OUString("ooxml-lineInv");
305 return aPropertyMap;
308 class ShapeCstraightConnector1 : public CustomShapeProvider
310 virtual PropertyMap getProperties()
312 PropertyMap aPropertyMap;
315 aPropertyMap [PROP_AdjustmentValues] <<= Sequence< OUString >(0);
318 static const char *aStrings[] = {
319 "logwidth",
320 "logheight"
322 aPropertyMap [PROP_Equations] <<= createStringSequence( SAL_N_ELEMENTS( aStrings ), aStrings );
325 aPropertyMap [PROP_Handles] <<= Sequence< OUString >(0);
328 aPropertyMap [PROP_MirroredX] <<= Any ((sal_Bool) sal_False);
331 aPropertyMap [PROP_MirroredY] <<= Any ((sal_Bool) sal_False);
334 Sequence< PropertyValue > aPropSequence (3);
336 aPropSequence [0].Name = "Coordinates";
337 static const CustomShapeProvider::ParameterPairData aData[] = {
339 EnhancedCustomShapeParameterType::NORMAL,
340 EnhancedCustomShapeParameterType::NORMAL,
341 0, 0
344 EnhancedCustomShapeParameterType::EQUATION,
345 EnhancedCustomShapeParameterType::EQUATION,
346 0, 1
349 aPropSequence [0].Value = makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData), aData));
352 aPropSequence [1].Name = "Segments";
353 static const sal_uInt16 nValues[] = {
354 // Command, Count
355 1,1,
356 2,1,
357 6,0,
360 aPropSequence [1].Value = makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues ), nValues ));
363 aPropSequence [2].Name = "TextFrames";
364 Sequence< EnhancedCustomShapeTextFrame > aTextFrameSeq (1);
366 EnhancedCustomShapeTextFrame aTextFrame;
368 static const CustomShapeProvider::ParameterPairData aData =
370 EnhancedCustomShapeParameterType::NORMAL,
371 EnhancedCustomShapeParameterType::NORMAL,
372 0, 0
374 aTextFrame.TopLeft = createParameterPair(&aData);
377 static const CustomShapeProvider::ParameterPairData aData =
379 EnhancedCustomShapeParameterType::EQUATION,
380 EnhancedCustomShapeParameterType::EQUATION,
381 0, 1
383 aTextFrame.BottomRight = createParameterPair(&aData);
385 aTextFrameSeq [0] = aTextFrame;
387 aPropSequence [2].Value = makeAny (aTextFrameSeq);
389 aPropertyMap [PROP_Path] <<= aPropSequence;
392 awt::Rectangle aRectangle;
393 aRectangle.X = 0;
394 aRectangle.Y = 0;
395 aRectangle.Width = 0;
396 aRectangle.Height = 0;
397 aPropertyMap [PROP_ViewBox] <<= aRectangle;
399 aPropertyMap [ PROP_Type ] <<= OUString("ooxml-straightConnector1");
401 return aPropertyMap;
404 class ShapeCstripedRightArrow : public CustomShapeProvider
406 virtual PropertyMap getProperties()
408 PropertyMap aPropertyMap;
411 Sequence< EnhancedCustomShapeAdjustmentValue > aAdjSequence (2);
413 Any aAny ((sal_Int32) 50000);
414 aAdjSequence [0].Value = aAny;
415 aAdjSequence [0].Name = "adj1";
418 Any aAny ((sal_Int32) 50000);
419 aAdjSequence [1].Value = aAny;
420 aAdjSequence [1].Name = "adj2";
422 aPropertyMap [PROP_AdjustmentValues] <<= aAdjSequence;
425 static const char *aStrings[] = {
426 "min(logwidth,logheight)",
427 "84375*logwidth/?0 ",
428 "if(0-$0 ,0,if(100000-$0 ,$0 ,100000))",
429 "if(0-$1 ,0,if(?1 -$1 ,$1 ,?1 ))",
430 "?0 *5/32",
431 "?0 *?3 /100000",
432 "logwidth+0-?5 ",
433 "logheight*?2 /200000",
434 "logheight/2",
435 "?8 +0-?7 ",
436 "?8 +?7 -0",
437 "logheight/2",
438 "?7 *?5 /?11 ",
439 "logwidth+0-?12 ",
440 "logheight",
441 "logwidth",
442 "min(logwidth,logheight)/32",
443 "min(logwidth,logheight)/16",
444 "min(logwidth,logheight)/8"
446 aPropertyMap [PROP_Equations] <<= createStringSequence( SAL_N_ELEMENTS( aStrings ), aStrings );
449 Sequence< Sequence < PropertyValue > > aPropSequenceSequence (2);
451 Sequence< PropertyValue > aPropSequence (4);
453 aPropSequence [0].Name = "Position";
454 static const CustomShapeProvider::ParameterPairData aData =
456 EnhancedCustomShapeParameterType::NORMAL,
457 EnhancedCustomShapeParameterType::EQUATION,
458 0, 9
460 aPropSequence [0].Value = makeAny (createParameterPair(&aData));
463 aPropSequence [1].Name = "RangeYMaximum";
464 EnhancedCustomShapeParameter aParameter;
465 Any aAny ((sal_Int32) 100000);
466 aParameter.Value = aAny;
467 aParameter.Type = EnhancedCustomShapeParameterType::NORMAL;
468 aPropSequence [1].Value = makeAny (aParameter);
471 aPropSequence [2].Name = "RangeYMinimum";
472 EnhancedCustomShapeParameter aParameter;
473 Any aAny ((sal_Int32) 0);
474 aParameter.Value = aAny;
475 aParameter.Type = EnhancedCustomShapeParameterType::NORMAL;
476 aPropSequence [2].Value = makeAny (aParameter);
479 aPropSequence [3].Name = "RefY";
480 Any aAny ((sal_Int32) 0);
481 aPropSequence [3].Value = makeAny (aAny);
483 aPropSequenceSequence [0] = aPropSequence;
486 Sequence< PropertyValue > aPropSequence (4);
488 aPropSequence [0].Name = "Position";
489 static const CustomShapeProvider::ParameterPairData aData =
491 EnhancedCustomShapeParameterType::EQUATION,
492 EnhancedCustomShapeParameterType::NORMAL,
493 6, 0
495 aPropSequence [0].Value = makeAny (createParameterPair(&aData));
498 aPropSequence [1].Name = "RangeXMaximum";
499 EnhancedCustomShapeParameter aParameter;
500 Any aAny ((sal_Int32) 1);
501 aParameter.Value = aAny;
502 aParameter.Type = EnhancedCustomShapeParameterType::EQUATION;
503 aPropSequence [1].Value = makeAny (aParameter);
506 aPropSequence [2].Name = "RangeXMinimum";
507 EnhancedCustomShapeParameter aParameter;
508 Any aAny ((sal_Int32) 0);
509 aParameter.Value = aAny;
510 aParameter.Type = EnhancedCustomShapeParameterType::NORMAL;
511 aPropSequence [2].Value = makeAny (aParameter);
514 aPropSequence [3].Name = "RefX";
515 Any aAny ((sal_Int32) 1);
516 aPropSequence [3].Value = makeAny (aAny);
518 aPropSequenceSequence [1] = aPropSequence;
520 aPropertyMap [PROP_Handles] <<= aPropSequenceSequence;
523 aPropertyMap [PROP_MirroredX] <<= Any ((sal_Bool) sal_False);
526 aPropertyMap [PROP_MirroredY] <<= Any ((sal_Bool) sal_False);
529 Sequence< PropertyValue > aPropSequence (3);
531 aPropSequence [0].Name = "Coordinates";
532 static const CustomShapeProvider::ParameterPairData aData[] = {
534 EnhancedCustomShapeParameterType::NORMAL,
535 EnhancedCustomShapeParameterType::EQUATION,
536 0, 9
539 EnhancedCustomShapeParameterType::EQUATION,
540 EnhancedCustomShapeParameterType::EQUATION,
541 16, 9
544 EnhancedCustomShapeParameterType::EQUATION,
545 EnhancedCustomShapeParameterType::EQUATION,
546 16, 10
549 EnhancedCustomShapeParameterType::NORMAL,
550 EnhancedCustomShapeParameterType::EQUATION,
551 0, 10
554 EnhancedCustomShapeParameterType::EQUATION,
555 EnhancedCustomShapeParameterType::EQUATION,
556 17, 9
559 EnhancedCustomShapeParameterType::EQUATION,
560 EnhancedCustomShapeParameterType::EQUATION,
561 18, 9
564 EnhancedCustomShapeParameterType::EQUATION,
565 EnhancedCustomShapeParameterType::EQUATION,
566 18, 10
569 EnhancedCustomShapeParameterType::EQUATION,
570 EnhancedCustomShapeParameterType::EQUATION,
571 17, 10
574 EnhancedCustomShapeParameterType::EQUATION,
575 EnhancedCustomShapeParameterType::EQUATION,
576 4, 9
579 EnhancedCustomShapeParameterType::EQUATION,
580 EnhancedCustomShapeParameterType::EQUATION,
581 6, 9
584 EnhancedCustomShapeParameterType::EQUATION,
585 EnhancedCustomShapeParameterType::NORMAL,
586 6, 0
589 EnhancedCustomShapeParameterType::EQUATION,
590 EnhancedCustomShapeParameterType::EQUATION,
591 15, 8
594 EnhancedCustomShapeParameterType::EQUATION,
595 EnhancedCustomShapeParameterType::EQUATION,
596 6, 14
599 EnhancedCustomShapeParameterType::EQUATION,
600 EnhancedCustomShapeParameterType::EQUATION,
601 6, 10
604 EnhancedCustomShapeParameterType::EQUATION,
605 EnhancedCustomShapeParameterType::EQUATION,
606 4, 10
609 aPropSequence [0].Value = makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData), aData));
612 aPropSequence [1].Name = "Segments";
613 static const sal_uInt16 nValues[] = {
614 // Command, Count
615 1,1,
616 2,3,
617 4,0,
618 1,1,
619 2,3,
620 4,0,
621 1,1,
622 2,6,
623 4,0,
626 aPropSequence [1].Value = makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues ), nValues ));
629 aPropSequence [2].Name = "TextFrames";
630 Sequence< EnhancedCustomShapeTextFrame > aTextFrameSeq (1);
632 EnhancedCustomShapeTextFrame aTextFrame;
634 static const CustomShapeProvider::ParameterPairData aData =
636 EnhancedCustomShapeParameterType::EQUATION,
637 EnhancedCustomShapeParameterType::EQUATION,
638 4, 9
640 aTextFrame.TopLeft = createParameterPair(&aData);
643 static const CustomShapeProvider::ParameterPairData aData =
645 EnhancedCustomShapeParameterType::EQUATION,
646 EnhancedCustomShapeParameterType::EQUATION,
647 13, 10
649 aTextFrame.BottomRight = createParameterPair(&aData);
651 aTextFrameSeq [0] = aTextFrame;
653 aPropSequence [2].Value = makeAny (aTextFrameSeq);
655 aPropertyMap [PROP_Path] <<= aPropSequence;
658 awt::Rectangle aRectangle;
659 aRectangle.X = 0;
660 aRectangle.Y = 0;
661 aRectangle.Width = 0;
662 aRectangle.Height = 0;
663 aPropertyMap [PROP_ViewBox] <<= aRectangle;
665 aPropertyMap [ PROP_Type ] <<= OUString("ooxml-stripedRightArrow");
667 return aPropertyMap;
670 class ShapeCcallout3 : public CustomShapeProvider
672 virtual PropertyMap getProperties()
674 PropertyMap aPropertyMap;
677 Sequence< EnhancedCustomShapeAdjustmentValue > aAdjSequence (8);
679 Any aAny ((sal_Int32) 18750);
680 aAdjSequence [0].Value = aAny;
681 aAdjSequence [0].Name = "adj1";
684 Any aAny ((sal_Int32) -8333);
685 aAdjSequence [1].Value = aAny;
686 aAdjSequence [1].Name = "adj2";
689 Any aAny ((sal_Int32) 18750);
690 aAdjSequence [2].Value = aAny;
691 aAdjSequence [2].Name = "adj3";
694 Any aAny ((sal_Int32) -16667);
695 aAdjSequence [3].Value = aAny;
696 aAdjSequence [3].Name = "adj4";
699 Any aAny ((sal_Int32) 100000);
700 aAdjSequence [4].Value = aAny;
701 aAdjSequence [4].Name = "adj5";
704 Any aAny ((sal_Int32) -16667);
705 aAdjSequence [5].Value = aAny;
706 aAdjSequence [5].Name = "adj6";
709 Any aAny ((sal_Int32) 112963);
710 aAdjSequence [6].Value = aAny;
711 aAdjSequence [6].Name = "adj7";
714 Any aAny ((sal_Int32) -8333);
715 aAdjSequence [7].Value = aAny;
716 aAdjSequence [7].Name = "adj8";
718 aPropertyMap [PROP_AdjustmentValues] <<= aAdjSequence;
721 static const char *aStrings[] = {
722 "logheight*$0 /100000",
723 "logwidth*$1 /100000",
724 "logheight*$2 /100000",
725 "logwidth*$3 /100000",
726 "logheight*$4 /100000",
727 "logwidth*$5 /100000",
728 "logheight*$6 /100000",
729 "logwidth*$7 /100000",
730 "logwidth",
731 "logheight/2",
732 "logwidth/2",
733 "logheight"
735 aPropertyMap [PROP_Equations] <<= createStringSequence( SAL_N_ELEMENTS( aStrings ), aStrings );
738 Sequence< Sequence < PropertyValue > > aPropSequenceSequence (4);
740 Sequence< PropertyValue > aPropSequence (7);
742 aPropSequence [0].Name = "Position";
743 static const CustomShapeProvider::ParameterPairData aData =
745 EnhancedCustomShapeParameterType::EQUATION,
746 EnhancedCustomShapeParameterType::EQUATION,
747 1, 0
749 aPropSequence [0].Value = makeAny (createParameterPair(&aData));
752 aPropSequence [1].Name = "RangeXMaximum";
753 EnhancedCustomShapeParameter aParameter;
754 Any aAny ((sal_Int32) 2147483647);
755 aParameter.Value = aAny;
756 aParameter.Type = EnhancedCustomShapeParameterType::NORMAL;
757 aPropSequence [1].Value = makeAny (aParameter);
760 aPropSequence [2].Name = "RangeXMinimum";
761 EnhancedCustomShapeParameter aParameter;
762 Any aAny ((sal_Int32) -2147483647);
763 aParameter.Value = aAny;
764 aParameter.Type = EnhancedCustomShapeParameterType::NORMAL;
765 aPropSequence [2].Value = makeAny (aParameter);
768 aPropSequence [3].Name = "RangeYMaximum";
769 EnhancedCustomShapeParameter aParameter;
770 Any aAny ((sal_Int32) 2147483647);
771 aParameter.Value = aAny;
772 aParameter.Type = EnhancedCustomShapeParameterType::NORMAL;
773 aPropSequence [3].Value = makeAny (aParameter);
776 aPropSequence [4].Name = "RangeYMinimum";
777 EnhancedCustomShapeParameter aParameter;
778 Any aAny ((sal_Int32) -2147483647);
779 aParameter.Value = aAny;
780 aParameter.Type = EnhancedCustomShapeParameterType::NORMAL;
781 aPropSequence [4].Value = makeAny (aParameter);
784 aPropSequence [5].Name = "RefX";
785 Any aAny ((sal_Int32) 1);
786 aPropSequence [5].Value = makeAny (aAny);
789 aPropSequence [6].Name = "RefY";
790 Any aAny ((sal_Int32) 0);
791 aPropSequence [6].Value = makeAny (aAny);
793 aPropSequenceSequence [0] = aPropSequence;
796 Sequence< PropertyValue > aPropSequence (7);
798 aPropSequence [0].Name = "Position";
799 static const CustomShapeProvider::ParameterPairData aData =
801 EnhancedCustomShapeParameterType::EQUATION,
802 EnhancedCustomShapeParameterType::EQUATION,
803 3, 2
805 aPropSequence [0].Value = makeAny (createParameterPair(&aData));
808 aPropSequence [1].Name = "RangeXMaximum";
809 EnhancedCustomShapeParameter aParameter;
810 Any aAny ((sal_Int32) 2147483647);
811 aParameter.Value = aAny;
812 aParameter.Type = EnhancedCustomShapeParameterType::NORMAL;
813 aPropSequence [1].Value = makeAny (aParameter);
816 aPropSequence [2].Name = "RangeXMinimum";
817 EnhancedCustomShapeParameter aParameter;
818 Any aAny ((sal_Int32) -2147483647);
819 aParameter.Value = aAny;
820 aParameter.Type = EnhancedCustomShapeParameterType::NORMAL;
821 aPropSequence [2].Value = makeAny (aParameter);
824 aPropSequence [3].Name = "RangeYMaximum";
825 EnhancedCustomShapeParameter aParameter;
826 Any aAny ((sal_Int32) 2147483647);
827 aParameter.Value = aAny;
828 aParameter.Type = EnhancedCustomShapeParameterType::NORMAL;
829 aPropSequence [3].Value = makeAny (aParameter);
832 aPropSequence [4].Name = "RangeYMinimum";
833 EnhancedCustomShapeParameter aParameter;
834 Any aAny ((sal_Int32) -2147483647);
835 aParameter.Value = aAny;
836 aParameter.Type = EnhancedCustomShapeParameterType::NORMAL;
837 aPropSequence [4].Value = makeAny (aParameter);
840 aPropSequence [5].Name = "RefX";
841 Any aAny ((sal_Int32) 3);
842 aPropSequence [5].Value = makeAny (aAny);
845 aPropSequence [6].Name = "RefY";
846 Any aAny ((sal_Int32) 2);
847 aPropSequence [6].Value = makeAny (aAny);
849 aPropSequenceSequence [1] = aPropSequence;
852 Sequence< PropertyValue > aPropSequence (7);
854 aPropSequence [0].Name = "Position";
855 static const CustomShapeProvider::ParameterPairData aData =
857 EnhancedCustomShapeParameterType::EQUATION,
858 EnhancedCustomShapeParameterType::EQUATION,
859 5, 4
861 aPropSequence [0].Value = makeAny (createParameterPair(&aData));
864 aPropSequence [1].Name = "RangeXMaximum";
865 EnhancedCustomShapeParameter aParameter;
866 Any aAny ((sal_Int32) 2147483647);
867 aParameter.Value = aAny;
868 aParameter.Type = EnhancedCustomShapeParameterType::NORMAL;
869 aPropSequence [1].Value = makeAny (aParameter);
872 aPropSequence [2].Name = "RangeXMinimum";
873 EnhancedCustomShapeParameter aParameter;
874 Any aAny ((sal_Int32) -2147483647);
875 aParameter.Value = aAny;
876 aParameter.Type = EnhancedCustomShapeParameterType::NORMAL;
877 aPropSequence [2].Value = makeAny (aParameter);
880 aPropSequence [3].Name = "RangeYMaximum";
881 EnhancedCustomShapeParameter aParameter;
882 Any aAny ((sal_Int32) 2147483647);
883 aParameter.Value = aAny;
884 aParameter.Type = EnhancedCustomShapeParameterType::NORMAL;
885 aPropSequence [3].Value = makeAny (aParameter);
888 aPropSequence [4].Name = "RangeYMinimum";
889 EnhancedCustomShapeParameter aParameter;
890 Any aAny ((sal_Int32) -2147483647);
891 aParameter.Value = aAny;
892 aParameter.Type = EnhancedCustomShapeParameterType::NORMAL;
893 aPropSequence [4].Value = makeAny (aParameter);
896 aPropSequence [5].Name = "RefX";
897 Any aAny ((sal_Int32) 5);
898 aPropSequence [5].Value = makeAny (aAny);
901 aPropSequence [6].Name = "RefY";
902 Any aAny ((sal_Int32) 4);
903 aPropSequence [6].Value = makeAny (aAny);
905 aPropSequenceSequence [2] = aPropSequence;
908 Sequence< PropertyValue > aPropSequence (7);
910 aPropSequence [0].Name = "Position";
911 static const CustomShapeProvider::ParameterPairData aData =
913 EnhancedCustomShapeParameterType::EQUATION,
914 EnhancedCustomShapeParameterType::EQUATION,
915 7, 6
917 aPropSequence [0].Value = makeAny (createParameterPair(&aData));
920 aPropSequence [1].Name = "RangeXMaximum";
921 EnhancedCustomShapeParameter aParameter;
922 Any aAny ((sal_Int32) 2147483647);
923 aParameter.Value = aAny;
924 aParameter.Type = EnhancedCustomShapeParameterType::NORMAL;
925 aPropSequence [1].Value = makeAny (aParameter);
928 aPropSequence [2].Name = "RangeXMinimum";
929 EnhancedCustomShapeParameter aParameter;
930 Any aAny ((sal_Int32) -2147483647);
931 aParameter.Value = aAny;
932 aParameter.Type = EnhancedCustomShapeParameterType::NORMAL;
933 aPropSequence [2].Value = makeAny (aParameter);
936 aPropSequence [3].Name = "RangeYMaximum";
937 EnhancedCustomShapeParameter aParameter;
938 Any aAny ((sal_Int32) 2147483647);
939 aParameter.Value = aAny;
940 aParameter.Type = EnhancedCustomShapeParameterType::NORMAL;
941 aPropSequence [3].Value = makeAny (aParameter);
944 aPropSequence [4].Name = "RangeYMinimum";
945 EnhancedCustomShapeParameter aParameter;
946 Any aAny ((sal_Int32) -2147483647);
947 aParameter.Value = aAny;
948 aParameter.Type = EnhancedCustomShapeParameterType::NORMAL;
949 aPropSequence [4].Value = makeAny (aParameter);
952 aPropSequence [5].Name = "RefX";
953 Any aAny ((sal_Int32) 7);
954 aPropSequence [5].Value = makeAny (aAny);
957 aPropSequence [6].Name = "RefY";
958 Any aAny ((sal_Int32) 6);
959 aPropSequence [6].Value = makeAny (aAny);
961 aPropSequenceSequence [3] = aPropSequence;
963 aPropertyMap [PROP_Handles] <<= aPropSequenceSequence;
966 aPropertyMap [PROP_MirroredX] <<= Any ((sal_Bool) sal_False);
969 aPropertyMap [PROP_MirroredY] <<= Any ((sal_Bool) sal_False);
972 Sequence< PropertyValue > aPropSequence (3);
974 aPropSequence [0].Name = "Coordinates";
975 static const CustomShapeProvider::ParameterPairData aData[] = {
977 EnhancedCustomShapeParameterType::NORMAL,
978 EnhancedCustomShapeParameterType::NORMAL,
979 0, 0
982 EnhancedCustomShapeParameterType::EQUATION,
983 EnhancedCustomShapeParameterType::NORMAL,
984 8, 0
987 EnhancedCustomShapeParameterType::EQUATION,
988 EnhancedCustomShapeParameterType::EQUATION,
989 8, 11
992 EnhancedCustomShapeParameterType::NORMAL,
993 EnhancedCustomShapeParameterType::EQUATION,
994 0, 11
997 EnhancedCustomShapeParameterType::EQUATION,
998 EnhancedCustomShapeParameterType::EQUATION,
999 1, 0
1002 EnhancedCustomShapeParameterType::EQUATION,
1003 EnhancedCustomShapeParameterType::EQUATION,
1004 3, 2
1007 EnhancedCustomShapeParameterType::EQUATION,
1008 EnhancedCustomShapeParameterType::EQUATION,
1009 5, 4
1012 EnhancedCustomShapeParameterType::EQUATION,
1013 EnhancedCustomShapeParameterType::EQUATION,
1014 7, 6
1017 aPropSequence [0].Value = makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData), aData));
1020 aPropSequence [1].Name = "Segments";
1021 static const sal_uInt16 nValues[] = {
1022 // Command, Count
1023 1,1,
1024 2,3,
1025 4,0,
1026 7,0,
1027 5,0,
1028 1,1,
1029 2,3,
1030 6,0,
1033 aPropSequence [1].Value = makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues ), nValues ));
1036 aPropSequence [2].Name = "TextFrames";
1037 Sequence< EnhancedCustomShapeTextFrame > aTextFrameSeq (1);
1039 EnhancedCustomShapeTextFrame aTextFrame;
1041 static const CustomShapeProvider::ParameterPairData aData =
1043 EnhancedCustomShapeParameterType::NORMAL,
1044 EnhancedCustomShapeParameterType::NORMAL,
1045 0, 0
1047 aTextFrame.TopLeft = createParameterPair(&aData);
1050 static const CustomShapeProvider::ParameterPairData aData =
1052 EnhancedCustomShapeParameterType::EQUATION,
1053 EnhancedCustomShapeParameterType::EQUATION,
1054 8, 11
1056 aTextFrame.BottomRight = createParameterPair(&aData);
1058 aTextFrameSeq [0] = aTextFrame;
1060 aPropSequence [2].Value = makeAny (aTextFrameSeq);
1062 aPropertyMap [PROP_Path] <<= aPropSequence;
1065 awt::Rectangle aRectangle;
1066 aRectangle.X = 0;
1067 aRectangle.Y = 0;
1068 aRectangle.Width = 0;
1069 aRectangle.Height = 0;
1070 aPropertyMap [PROP_ViewBox] <<= aRectangle;
1072 aPropertyMap [ PROP_Type ] <<= OUString("ooxml-callout3");
1074 return aPropertyMap;
1077 class ShapeCbentUpArrow : public CustomShapeProvider
1079 virtual PropertyMap getProperties()
1081 PropertyMap aPropertyMap;
1084 Sequence< EnhancedCustomShapeAdjustmentValue > aAdjSequence (3);
1086 Any aAny ((sal_Int32) 25000);
1087 aAdjSequence [0].Value = aAny;
1088 aAdjSequence [0].Name = "adj1";
1091 Any aAny ((sal_Int32) 25000);
1092 aAdjSequence [1].Value = aAny;
1093 aAdjSequence [1].Name = "adj2";
1096 Any aAny ((sal_Int32) 25000);
1097 aAdjSequence [2].Value = aAny;
1098 aAdjSequence [2].Name = "adj3";
1100 aPropertyMap [PROP_AdjustmentValues] <<= aAdjSequence;
1103 static const char *aStrings[] = {
1104 "if(0-$0 ,0,if(50000-$0 ,$0 ,50000))",
1105 "if(0-$1 ,0,if(50000-$1 ,$1 ,50000))",
1106 "if(0-$2 ,0,if(50000-$2 ,$2 ,50000))",
1107 "min(logwidth,logheight)",
1108 "?3 *?2 /100000",
1109 "?3 *?1 /50000",
1110 "logwidth+0-?5 ",
1111 "?3 *?1 /100000",
1112 "logwidth+0-?7 ",
1113 "?3 *?0 /200000",
1114 "?8 +0-?9 ",
1115 "?8 +?9 -0",
1116 "?3 *?0 /100000",
1117 "logheight+0-?12 ",
1118 "?11 *1/2",
1119 "(?13 +logheight)/2",
1120 "(?4 +logheight)/2",
1121 "logheight",
1122 "logwidth"
1124 aPropertyMap [PROP_Equations] <<= createStringSequence( SAL_N_ELEMENTS( aStrings ), aStrings );
1127 Sequence< Sequence < PropertyValue > > aPropSequenceSequence (3);
1129 Sequence< PropertyValue > aPropSequence (4);
1131 aPropSequence [0].Name = "Position";
1132 static const CustomShapeProvider::ParameterPairData aData =
1134 EnhancedCustomShapeParameterType::NORMAL,
1135 EnhancedCustomShapeParameterType::EQUATION,
1136 0, 13
1138 aPropSequence [0].Value = makeAny (createParameterPair(&aData));
1141 aPropSequence [1].Name = "RangeYMaximum";
1142 EnhancedCustomShapeParameter aParameter;
1143 Any aAny ((sal_Int32) 50000);
1144 aParameter.Value = aAny;
1145 aParameter.Type = EnhancedCustomShapeParameterType::NORMAL;
1146 aPropSequence [1].Value = makeAny (aParameter);
1149 aPropSequence [2].Name = "RangeYMinimum";
1150 EnhancedCustomShapeParameter aParameter;
1151 Any aAny ((sal_Int32) 0);
1152 aParameter.Value = aAny;
1153 aParameter.Type = EnhancedCustomShapeParameterType::NORMAL;
1154 aPropSequence [2].Value = makeAny (aParameter);
1157 aPropSequence [3].Name = "RefY";
1158 Any aAny ((sal_Int32) 0);
1159 aPropSequence [3].Value = makeAny (aAny);
1161 aPropSequenceSequence [0] = aPropSequence;
1164 Sequence< PropertyValue > aPropSequence (4);
1166 aPropSequence [0].Name = "Position";
1167 static const CustomShapeProvider::ParameterPairData aData =
1169 EnhancedCustomShapeParameterType::EQUATION,
1170 EnhancedCustomShapeParameterType::NORMAL,
1171 6, 0
1173 aPropSequence [0].Value = makeAny (createParameterPair(&aData));
1176 aPropSequence [1].Name = "RangeXMaximum";
1177 EnhancedCustomShapeParameter aParameter;
1178 Any aAny ((sal_Int32) 50000);
1179 aParameter.Value = aAny;
1180 aParameter.Type = EnhancedCustomShapeParameterType::NORMAL;
1181 aPropSequence [1].Value = makeAny (aParameter);
1184 aPropSequence [2].Name = "RangeXMinimum";
1185 EnhancedCustomShapeParameter aParameter;
1186 Any aAny ((sal_Int32) 0);
1187 aParameter.Value = aAny;
1188 aParameter.Type = EnhancedCustomShapeParameterType::NORMAL;
1189 aPropSequence [2].Value = makeAny (aParameter);
1192 aPropSequence [3].Name = "RefX";
1193 Any aAny ((sal_Int32) 1);
1194 aPropSequence [3].Value = makeAny (aAny);
1196 aPropSequenceSequence [1] = aPropSequence;
1199 Sequence< PropertyValue > aPropSequence (4);
1201 aPropSequence [0].Name = "Position";
1202 static const CustomShapeProvider::ParameterPairData aData =
1204 EnhancedCustomShapeParameterType::EQUATION,
1205 EnhancedCustomShapeParameterType::EQUATION,
1206 10, 4
1208 aPropSequence [0].Value = makeAny (createParameterPair(&aData));
1211 aPropSequence [1].Name = "RangeYMaximum";
1212 EnhancedCustomShapeParameter aParameter;
1213 Any aAny ((sal_Int32) 50000);
1214 aParameter.Value = aAny;
1215 aParameter.Type = EnhancedCustomShapeParameterType::NORMAL;
1216 aPropSequence [1].Value = makeAny (aParameter);
1219 aPropSequence [2].Name = "RangeYMinimum";
1220 EnhancedCustomShapeParameter aParameter;
1221 Any aAny ((sal_Int32) 0);
1222 aParameter.Value = aAny;
1223 aParameter.Type = EnhancedCustomShapeParameterType::NORMAL;
1224 aPropSequence [2].Value = makeAny (aParameter);
1227 aPropSequence [3].Name = "RefY";
1228 Any aAny ((sal_Int32) 2);
1229 aPropSequence [3].Value = makeAny (aAny);
1231 aPropSequenceSequence [2] = aPropSequence;
1233 aPropertyMap [PROP_Handles] <<= aPropSequenceSequence;
1236 aPropertyMap [PROP_MirroredX] <<= Any ((sal_Bool) sal_False);
1239 aPropertyMap [PROP_MirroredY] <<= Any ((sal_Bool) sal_False);
1242 Sequence< PropertyValue > aPropSequence (3);
1244 aPropSequence [0].Name = "Coordinates";
1245 static const CustomShapeProvider::ParameterPairData aData[] = {
1247 EnhancedCustomShapeParameterType::NORMAL,
1248 EnhancedCustomShapeParameterType::EQUATION,
1249 0, 13
1252 EnhancedCustomShapeParameterType::EQUATION,
1253 EnhancedCustomShapeParameterType::EQUATION,
1254 10, 13
1257 EnhancedCustomShapeParameterType::EQUATION,
1258 EnhancedCustomShapeParameterType::EQUATION,
1259 10, 4
1262 EnhancedCustomShapeParameterType::EQUATION,
1263 EnhancedCustomShapeParameterType::EQUATION,
1264 6, 4
1267 EnhancedCustomShapeParameterType::EQUATION,
1268 EnhancedCustomShapeParameterType::NORMAL,
1269 8, 0
1272 EnhancedCustomShapeParameterType::EQUATION,
1273 EnhancedCustomShapeParameterType::EQUATION,
1274 18, 4
1277 EnhancedCustomShapeParameterType::EQUATION,
1278 EnhancedCustomShapeParameterType::EQUATION,
1279 11, 4
1282 EnhancedCustomShapeParameterType::EQUATION,
1283 EnhancedCustomShapeParameterType::EQUATION,
1284 11, 17
1287 EnhancedCustomShapeParameterType::NORMAL,
1288 EnhancedCustomShapeParameterType::EQUATION,
1289 0, 17
1292 aPropSequence [0].Value = makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData), aData));
1295 aPropSequence [1].Name = "Segments";
1296 static const sal_uInt16 nValues[] = {
1297 // Command, Count
1298 1,1,
1299 2,8,
1300 4,0,
1303 aPropSequence [1].Value = makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues ), nValues ));
1306 aPropSequence [2].Name = "TextFrames";
1307 Sequence< EnhancedCustomShapeTextFrame > aTextFrameSeq (1);
1309 EnhancedCustomShapeTextFrame aTextFrame;
1311 static const CustomShapeProvider::ParameterPairData aData =
1313 EnhancedCustomShapeParameterType::NORMAL,
1314 EnhancedCustomShapeParameterType::EQUATION,
1315 0, 13
1317 aTextFrame.TopLeft = createParameterPair(&aData);
1320 static const CustomShapeProvider::ParameterPairData aData =
1322 EnhancedCustomShapeParameterType::EQUATION,
1323 EnhancedCustomShapeParameterType::EQUATION,
1324 11, 17
1326 aTextFrame.BottomRight = createParameterPair(&aData);
1328 aTextFrameSeq [0] = aTextFrame;
1330 aPropSequence [2].Value = makeAny (aTextFrameSeq);
1332 aPropertyMap [PROP_Path] <<= aPropSequence;
1335 awt::Rectangle aRectangle;
1336 aRectangle.X = 0;
1337 aRectangle.Y = 0;
1338 aRectangle.Width = 0;
1339 aRectangle.Height = 0;
1340 aPropertyMap [PROP_ViewBox] <<= aRectangle;
1342 aPropertyMap [ PROP_Type ] <<= OUString("ooxml-bentUpArrow");
1344 return aPropertyMap;
1347 class ShapeCnoSmoking : public CustomShapeProvider
1349 virtual PropertyMap getProperties()
1351 PropertyMap aPropertyMap;
1354 Sequence< EnhancedCustomShapeAdjustmentValue > aAdjSequence (1);
1356 Any aAny ((sal_Int32) 18750);
1357 aAdjSequence [0].Value = aAny;
1358 aAdjSequence [0].Name = "adj";
1360 aPropertyMap [PROP_AdjustmentValues] <<= aAdjSequence;
1363 static const char *aStrings[] = {
1364 "if(0-$0 ,0,if(50000-$0 ,$0 ,50000))",
1365 "min(logwidth,logheight)",
1366 "?1 *?0 /100000",
1367 "logwidth/2",
1368 "?3 +0-?2 ",
1369 "logheight/2",
1370 "?5 +0-?2 ",
1371 "(10800000*atan2(logheight,logwidth))/pi",
1372 "?6 *cos(pi*(?7 )/10800000)",
1373 "?4 *sin(pi*(?7 )/10800000)",
1374 "sqrt(?8 *?8 +?9 *?9 +0*0)",
1375 "?4 *?6 /?10 ",
1376 "?2 *1/2",
1377 "(10800000*atan2(?12 ,?11 ))/pi",
1378 "?13 *2/1",
1379 "-10800000+2-0",
1380 "(10800000*atan2(logheight,logwidth))/pi",
1381 "?16 +0-?13 ",
1382 "?17 +0-10800000",
1383 "?6 *cos(pi*(?17 )/10800000)",
1384 "?4 *sin(pi*(?17 )/10800000)",
1385 "sqrt(?19 *?19 +?20 *?20 +0*0)",
1386 "?4 *?6 /?21 ",
1387 "?22 *cos(pi*(?17 )/10800000)",
1388 "?22 *sin(pi*(?17 )/10800000)",
1389 "logwidth/2",
1390 "?25 +?23 -0",
1391 "logheight/2",
1392 "?27 +?24 -0",
1393 "?25 +0-?23 ",
1394 "?27 +0-?24 ",
1395 "?3 *cos(pi*(2700000)/10800000)",
1396 "?5 *sin(pi*(2700000)/10800000)",
1397 "?25 +0-?31 ",
1398 "?25 +?31 -0",
1399 "?27 +0-?32 ",
1400 "?27 +?32 -0",
1401 "logheight",
1402 "logwidth",
1403 "(10800000)/60000.0",
1404 "(5400000)/60000.0",
1405 "(16200000)/60000.0",
1406 "(5400000)/60000.0",
1407 "(0)/60000.0",
1408 "(5400000)/60000.0",
1409 "(5400000)/60000.0",
1410 "(5400000)/60000.0",
1411 "(?17 )/60000.0",
1412 "(?15 )/60000.0",
1413 "(?18 )/60000.0",
1414 "(?15 )/60000.0"
1416 aPropertyMap [PROP_Equations] <<= createStringSequence( SAL_N_ELEMENTS( aStrings ), aStrings );
1419 Sequence< Sequence < PropertyValue > > aPropSequenceSequence (1);
1421 Sequence< PropertyValue > aPropSequence (3);
1423 aPropSequence [0].Name = "Position";
1424 static const CustomShapeProvider::ParameterPairData aData =
1426 EnhancedCustomShapeParameterType::EQUATION,
1427 EnhancedCustomShapeParameterType::EQUATION,
1428 2, 27
1430 aPropSequence [0].Value = makeAny (createParameterPair(&aData));
1433 aPropSequence [1].Name = "RadiusRangeMaximum";
1434 EnhancedCustomShapeParameter aParameter;
1435 Any aAny ((sal_Int32) 50000);
1436 aParameter.Value = aAny;
1437 aParameter.Type = EnhancedCustomShapeParameterType::NORMAL;
1438 aPropSequence [1].Value = makeAny (aParameter);
1441 aPropSequence [2].Name = "RadiusRangeMinimum";
1442 EnhancedCustomShapeParameter aParameter;
1443 Any aAny ((sal_Int32) 0);
1444 aParameter.Value = aAny;
1445 aParameter.Type = EnhancedCustomShapeParameterType::NORMAL;
1446 aPropSequence [2].Value = makeAny (aParameter);
1448 aPropSequenceSequence [0] = aPropSequence;
1450 aPropertyMap [PROP_Handles] <<= aPropSequenceSequence;
1453 aPropertyMap [PROP_MirroredX] <<= Any ((sal_Bool) sal_False);
1456 aPropertyMap [PROP_MirroredY] <<= Any ((sal_Bool) sal_False);
1459 Sequence< PropertyValue > aPropSequence (3);
1461 aPropSequence [0].Name = "Coordinates";
1462 static const CustomShapeProvider::ParameterPairData aData[] = {
1464 EnhancedCustomShapeParameterType::NORMAL,
1465 EnhancedCustomShapeParameterType::EQUATION,
1466 0, 27
1469 EnhancedCustomShapeParameterType::EQUATION,
1470 EnhancedCustomShapeParameterType::EQUATION,
1471 3, 5
1474 EnhancedCustomShapeParameterType::EQUATION,
1475 EnhancedCustomShapeParameterType::EQUATION,
1476 39, 40
1479 EnhancedCustomShapeParameterType::EQUATION,
1480 EnhancedCustomShapeParameterType::EQUATION,
1481 3, 5
1484 EnhancedCustomShapeParameterType::EQUATION,
1485 EnhancedCustomShapeParameterType::EQUATION,
1486 41, 42
1489 EnhancedCustomShapeParameterType::EQUATION,
1490 EnhancedCustomShapeParameterType::EQUATION,
1491 3, 5
1494 EnhancedCustomShapeParameterType::EQUATION,
1495 EnhancedCustomShapeParameterType::EQUATION,
1496 43, 44
1499 EnhancedCustomShapeParameterType::EQUATION,
1500 EnhancedCustomShapeParameterType::EQUATION,
1501 3, 5
1504 EnhancedCustomShapeParameterType::EQUATION,
1505 EnhancedCustomShapeParameterType::EQUATION,
1506 45, 46
1509 EnhancedCustomShapeParameterType::EQUATION,
1510 EnhancedCustomShapeParameterType::EQUATION,
1511 26, 28
1514 EnhancedCustomShapeParameterType::EQUATION,
1515 EnhancedCustomShapeParameterType::EQUATION,
1516 4, 6
1519 EnhancedCustomShapeParameterType::EQUATION,
1520 EnhancedCustomShapeParameterType::EQUATION,
1521 47, 48
1524 EnhancedCustomShapeParameterType::EQUATION,
1525 EnhancedCustomShapeParameterType::EQUATION,
1526 29, 30
1529 EnhancedCustomShapeParameterType::EQUATION,
1530 EnhancedCustomShapeParameterType::EQUATION,
1531 4, 6
1534 EnhancedCustomShapeParameterType::EQUATION,
1535 EnhancedCustomShapeParameterType::EQUATION,
1536 49, 50
1539 aPropSequence [0].Value = makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData), aData));
1542 aPropSequence [1].Name = "Segments";
1543 static const sal_uInt16 nValues[] = {
1544 // Command, Count
1545 1,1,
1546 17,4,
1547 4,0,
1548 1,1,
1549 17,1,
1550 4,0,
1551 1,1,
1552 17,1,
1553 4,0,
1556 aPropSequence [1].Value = makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues ), nValues ));
1559 aPropSequence [2].Name = "TextFrames";
1560 Sequence< EnhancedCustomShapeTextFrame > aTextFrameSeq (1);
1562 EnhancedCustomShapeTextFrame aTextFrame;
1564 static const CustomShapeProvider::ParameterPairData aData =
1566 EnhancedCustomShapeParameterType::EQUATION,
1567 EnhancedCustomShapeParameterType::EQUATION,
1568 33, 35
1570 aTextFrame.TopLeft = createParameterPair(&aData);
1573 static const CustomShapeProvider::ParameterPairData aData =
1575 EnhancedCustomShapeParameterType::EQUATION,
1576 EnhancedCustomShapeParameterType::EQUATION,
1577 34, 36
1579 aTextFrame.BottomRight = createParameterPair(&aData);
1581 aTextFrameSeq [0] = aTextFrame;
1583 aPropSequence [2].Value = makeAny (aTextFrameSeq);
1585 aPropertyMap [PROP_Path] <<= aPropSequence;
1588 awt::Rectangle aRectangle;
1589 aRectangle.X = 0;
1590 aRectangle.Y = 0;
1591 aRectangle.Width = 0;
1592 aRectangle.Height = 0;
1593 aPropertyMap [PROP_ViewBox] <<= aRectangle;
1595 aPropertyMap [ PROP_Type ] <<= OUString("ooxml-noSmoking");
1597 return aPropertyMap;
1600 class ShapeCtrapezoid : public CustomShapeProvider
1602 virtual PropertyMap getProperties()
1604 PropertyMap aPropertyMap;
1607 Sequence< EnhancedCustomShapeAdjustmentValue > aAdjSequence (1);
1609 Any aAny ((sal_Int32) 25000);
1610 aAdjSequence [0].Value = aAny;
1611 aAdjSequence [0].Name = "adj";
1613 aPropertyMap [PROP_AdjustmentValues] <<= aAdjSequence;
1616 static const char *aStrings[] = {
1617 "min(logwidth,logheight)",
1618 "50000*logwidth/?0 ",
1619 "if(0-$0 ,0,if(?1 -$0 ,$0 ,?1 ))",
1620 "?0 *?2 /200000",
1621 "?0 *?2 /100000",
1622 "logwidth+0-?4 ",
1623 "logwidth+0-?3 ",
1624 "logwidth/3",
1625 "?7 *?2 /?1 ",
1626 "logheight/3",
1627 "?9 *?2 /?1 ",
1628 "logwidth+0-?8 ",
1629 "logwidth/2",
1630 "logheight/2",
1631 "logheight",
1632 "logwidth"
1634 aPropertyMap [PROP_Equations] <<= createStringSequence( SAL_N_ELEMENTS( aStrings ), aStrings );
1637 Sequence< Sequence < PropertyValue > > aPropSequenceSequence (1);
1639 Sequence< PropertyValue > aPropSequence (4);
1641 aPropSequence [0].Name = "Position";
1642 static const CustomShapeProvider::ParameterPairData aData =
1644 EnhancedCustomShapeParameterType::EQUATION,
1645 EnhancedCustomShapeParameterType::NORMAL,
1646 4, 0
1648 aPropSequence [0].Value = makeAny (createParameterPair(&aData));
1651 aPropSequence [1].Name = "RangeXMaximum";
1652 EnhancedCustomShapeParameter aParameter;
1653 Any aAny ((sal_Int32) 1);
1654 aParameter.Value = aAny;
1655 aParameter.Type = EnhancedCustomShapeParameterType::EQUATION;
1656 aPropSequence [1].Value = makeAny (aParameter);
1659 aPropSequence [2].Name = "RangeXMinimum";
1660 EnhancedCustomShapeParameter aParameter;
1661 Any aAny ((sal_Int32) 0);
1662 aParameter.Value = aAny;
1663 aParameter.Type = EnhancedCustomShapeParameterType::NORMAL;
1664 aPropSequence [2].Value = makeAny (aParameter);
1667 aPropSequence [3].Name = "RefX";
1668 Any aAny ((sal_Int32) 0);
1669 aPropSequence [3].Value = makeAny (aAny);
1671 aPropSequenceSequence [0] = aPropSequence;
1673 aPropertyMap [PROP_Handles] <<= aPropSequenceSequence;
1676 aPropertyMap [PROP_MirroredX] <<= Any ((sal_Bool) sal_False);
1679 aPropertyMap [PROP_MirroredY] <<= Any ((sal_Bool) sal_False);
1682 Sequence< PropertyValue > aPropSequence (3);
1684 aPropSequence [0].Name = "Coordinates";
1685 static const CustomShapeProvider::ParameterPairData aData[] = {
1687 EnhancedCustomShapeParameterType::NORMAL,
1688 EnhancedCustomShapeParameterType::EQUATION,
1689 0, 14
1692 EnhancedCustomShapeParameterType::EQUATION,
1693 EnhancedCustomShapeParameterType::NORMAL,
1694 4, 0
1697 EnhancedCustomShapeParameterType::EQUATION,
1698 EnhancedCustomShapeParameterType::NORMAL,
1699 5, 0
1702 EnhancedCustomShapeParameterType::EQUATION,
1703 EnhancedCustomShapeParameterType::EQUATION,
1704 15, 14
1707 aPropSequence [0].Value = makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData), aData));
1710 aPropSequence [1].Name = "Segments";
1711 static const sal_uInt16 nValues[] = {
1712 // Command, Count
1713 1,1,
1714 2,3,
1715 4,0,
1718 aPropSequence [1].Value = makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues ), nValues ));
1721 aPropSequence [2].Name = "TextFrames";
1722 Sequence< EnhancedCustomShapeTextFrame > aTextFrameSeq (1);
1724 EnhancedCustomShapeTextFrame aTextFrame;
1726 static const CustomShapeProvider::ParameterPairData aData =
1728 EnhancedCustomShapeParameterType::EQUATION,
1729 EnhancedCustomShapeParameterType::EQUATION,
1730 8, 10
1732 aTextFrame.TopLeft = createParameterPair(&aData);
1735 static const CustomShapeProvider::ParameterPairData aData =
1737 EnhancedCustomShapeParameterType::EQUATION,
1738 EnhancedCustomShapeParameterType::EQUATION,
1739 11, 14
1741 aTextFrame.BottomRight = createParameterPair(&aData);
1743 aTextFrameSeq [0] = aTextFrame;
1745 aPropSequence [2].Value = makeAny (aTextFrameSeq);
1747 aPropertyMap [PROP_Path] <<= aPropSequence;
1750 awt::Rectangle aRectangle;
1751 aRectangle.X = 0;
1752 aRectangle.Y = 0;
1753 aRectangle.Width = 0;
1754 aRectangle.Height = 0;
1755 aPropertyMap [PROP_ViewBox] <<= aRectangle;
1757 aPropertyMap [ PROP_Type ] <<= OUString("ooxml-trapezoid");
1759 return aPropertyMap;
1762 class ShapeCcloudCallout : public CustomShapeProvider
1764 virtual PropertyMap getProperties()
1766 PropertyMap aPropertyMap;
1769 Sequence< EnhancedCustomShapeAdjustmentValue > aAdjSequence (2);
1771 Any aAny ((sal_Int32) -20833);
1772 aAdjSequence [0].Value = aAny;
1773 aAdjSequence [0].Name = "adj1";
1776 Any aAny ((sal_Int32) 62500);
1777 aAdjSequence [1].Value = aAny;
1778 aAdjSequence [1].Name = "adj2";
1780 aPropertyMap [PROP_AdjustmentValues] <<= aAdjSequence;
1783 static const char *aStrings[] = {
1784 "logwidth*$0 /100000",
1785 "logheight*$1 /100000",
1786 "logwidth/2",
1787 "?2 +?0 -0",
1788 "logheight/2",
1789 "?4 +?1 -0",
1790 "logheight/2",
1791 "?6 *(cos(atan2(?1 ,?0 )))",
1792 "logwidth/2",
1793 "?8 *(sin(atan2(?1 ,?0 )))",
1794 "?8 *(cos(atan2(?9 ,?7 )))",
1795 "?6 *(sin(atan2(?9 ,?7 )))",
1796 "?2 +?10 -0",
1797 "?4 +?11 -0",
1798 "?12 +0-?3 ",
1799 "?13 +0-?5 ",
1800 "sqrt(?14 *?14 +?15 *?15 +0*0)",
1801 "min(logwidth,logheight)",
1802 "?17 *6600/21600",
1803 "?16 +0-?18 ",
1804 "?19 *1/3",
1805 "?17 *1800/21600",
1806 "?20 +?21 -0",
1807 "?22 *?14 /?16 ",
1808 "?22 *?15 /?16 ",
1809 "?23 +?3 -0",
1810 "?24 +?5 -0",
1811 "?17 *4800/21600",
1812 "?20 *2/1",
1813 "?27 +?28 -0",
1814 "?29 *?14 /?16 ",
1815 "?29 *?15 /?16 ",
1816 "?30 +?3 -0",
1817 "?31 +?5 -0",
1818 "?17 *1200/21600",
1819 "?17 *600/21600",
1820 "?3 +?35 -0",
1821 "?25 +?34 -0",
1822 "?32 +?21 -0",
1823 "logwidth*2977/21600",
1824 "logheight*3262/21600",
1825 "logwidth*17087/21600",
1826 "logheight*17337/21600",
1827 "logwidth*67/21600",
1828 "logheight*21577/21600",
1829 "logwidth*21582/21600",
1830 "logheight*1235/21600",
1831 "(10800000*atan2(?1 ,?0 ))/pi",
1832 "(-11429249)/60000.0",
1833 "(7426832)/60000.0",
1834 "(-8646143)/60000.0",
1835 "(5396714)/60000.0",
1836 "(-8748475)/60000.0",
1837 "(5983381)/60000.0",
1838 "(-7859164)/60000.0",
1839 "(7034504)/60000.0",
1840 "(-4722533)/60000.0",
1841 "(6541615)/60000.0",
1842 "(-2776035)/60000.0",
1843 "(7816140)/60000.0",
1844 "(37501)/60000.0",
1845 "(6842000)/60000.0",
1846 "(1347096)/60000.0",
1847 "(6910353)/60000.0",
1848 "(3974558)/60000.0",
1849 "(4542661)/60000.0",
1850 "(-16496525)/60000.0",
1851 "(8804134)/60000.0",
1852 "(-14809710)/60000.0",
1853 "(9151131)/60000.0",
1854 "(0)/60000.0",
1855 "(21600000)/60000.0",
1856 "(0)/60000.0",
1857 "(21600000)/60000.0",
1858 "(0)/60000.0",
1859 "(21600000)/60000.0",
1860 "(5204520)/60000.0",
1861 "(1585770)/60000.0",
1862 "(4416628)/60000.0",
1863 "(686848)/60000.0",
1864 "(8257449)/60000.0",
1865 "(844866)/60000.0",
1866 "(387196)/60000.0",
1867 "(959901)/60000.0",
1868 "(-4217541)/60000.0",
1869 "(4255042)/60000.0",
1870 "(1819082)/60000.0",
1871 "(1665090)/60000.0",
1872 "(-824660)/60000.0",
1873 "(891534)/60000.0",
1874 "(-8950887)/60000.0",
1875 "(1091722)/60000.0",
1876 "(-9809656)/60000.0",
1877 "(1061181)/60000.0",
1878 "(-4002417)/60000.0",
1879 "(739161)/60000.0",
1880 "(9459261)/60000.0",
1881 "(711490)/60000.0"
1883 aPropertyMap [PROP_Equations] <<= createStringSequence( SAL_N_ELEMENTS( aStrings ), aStrings );
1886 Sequence< Sequence < PropertyValue > > aPropSequenceSequence (1);
1888 Sequence< PropertyValue > aPropSequence (7);
1890 aPropSequence [0].Name = "Position";
1891 static const CustomShapeProvider::ParameterPairData aData =
1893 EnhancedCustomShapeParameterType::EQUATION,
1894 EnhancedCustomShapeParameterType::EQUATION,
1895 3, 5
1897 aPropSequence [0].Value = makeAny (createParameterPair(&aData));
1900 aPropSequence [1].Name = "RangeXMaximum";
1901 EnhancedCustomShapeParameter aParameter;
1902 Any aAny ((sal_Int32) 2147483647);
1903 aParameter.Value = aAny;
1904 aParameter.Type = EnhancedCustomShapeParameterType::NORMAL;
1905 aPropSequence [1].Value = makeAny (aParameter);
1908 aPropSequence [2].Name = "RangeXMinimum";
1909 EnhancedCustomShapeParameter aParameter;
1910 Any aAny ((sal_Int32) -2147483647);
1911 aParameter.Value = aAny;
1912 aParameter.Type = EnhancedCustomShapeParameterType::NORMAL;
1913 aPropSequence [2].Value = makeAny (aParameter);
1916 aPropSequence [3].Name = "RangeYMaximum";
1917 EnhancedCustomShapeParameter aParameter;
1918 Any aAny ((sal_Int32) 2147483647);
1919 aParameter.Value = aAny;
1920 aParameter.Type = EnhancedCustomShapeParameterType::NORMAL;
1921 aPropSequence [3].Value = makeAny (aParameter);
1924 aPropSequence [4].Name = "RangeYMinimum";
1925 EnhancedCustomShapeParameter aParameter;
1926 Any aAny ((sal_Int32) -2147483647);
1927 aParameter.Value = aAny;
1928 aParameter.Type = EnhancedCustomShapeParameterType::NORMAL;
1929 aPropSequence [4].Value = makeAny (aParameter);
1932 aPropSequence [5].Name = "RefX";
1933 Any aAny ((sal_Int32) 0);
1934 aPropSequence [5].Value = makeAny (aAny);
1937 aPropSequence [6].Name = "RefY";
1938 Any aAny ((sal_Int32) 1);
1939 aPropSequence [6].Value = makeAny (aAny);
1941 aPropSequenceSequence [0] = aPropSequence;
1943 aPropertyMap [PROP_Handles] <<= aPropSequenceSequence;
1946 aPropertyMap [PROP_MirroredX] <<= Any ((sal_Bool) sal_False);
1949 aPropertyMap [PROP_MirroredY] <<= Any ((sal_Bool) sal_False);
1952 Sequence< PropertyValue > aPropSequence (4);
1954 aPropSequence [0].Name = "Coordinates";
1955 static const CustomShapeProvider::ParameterPairData aData[] = {
1957 EnhancedCustomShapeParameterType::NORMAL,
1958 EnhancedCustomShapeParameterType::NORMAL,
1959 3900, 14370
1962 EnhancedCustomShapeParameterType::NORMAL,
1963 EnhancedCustomShapeParameterType::NORMAL,
1964 6753, 9190
1967 EnhancedCustomShapeParameterType::EQUATION,
1968 EnhancedCustomShapeParameterType::EQUATION,
1969 48, 49
1972 EnhancedCustomShapeParameterType::NORMAL,
1973 EnhancedCustomShapeParameterType::NORMAL,
1974 5333, 7267
1977 EnhancedCustomShapeParameterType::EQUATION,
1978 EnhancedCustomShapeParameterType::EQUATION,
1979 50, 51
1982 EnhancedCustomShapeParameterType::NORMAL,
1983 EnhancedCustomShapeParameterType::NORMAL,
1984 4365, 5945
1987 EnhancedCustomShapeParameterType::EQUATION,
1988 EnhancedCustomShapeParameterType::EQUATION,
1989 52, 53
1992 EnhancedCustomShapeParameterType::NORMAL,
1993 EnhancedCustomShapeParameterType::NORMAL,
1994 4857, 6595
1997 EnhancedCustomShapeParameterType::EQUATION,
1998 EnhancedCustomShapeParameterType::EQUATION,
1999 54, 55
2002 EnhancedCustomShapeParameterType::NORMAL,
2003 EnhancedCustomShapeParameterType::NORMAL,
2004 5333, 7273
2007 EnhancedCustomShapeParameterType::EQUATION,
2008 EnhancedCustomShapeParameterType::EQUATION,
2009 56, 57
2012 EnhancedCustomShapeParameterType::NORMAL,
2013 EnhancedCustomShapeParameterType::NORMAL,
2014 6775, 9220
2017 EnhancedCustomShapeParameterType::EQUATION,
2018 EnhancedCustomShapeParameterType::EQUATION,
2019 58, 59
2022 EnhancedCustomShapeParameterType::NORMAL,
2023 EnhancedCustomShapeParameterType::NORMAL,
2024 5785, 7867
2027 EnhancedCustomShapeParameterType::EQUATION,
2028 EnhancedCustomShapeParameterType::EQUATION,
2029 60, 61
2032 EnhancedCustomShapeParameterType::NORMAL,
2033 EnhancedCustomShapeParameterType::NORMAL,
2034 6752, 9215
2037 EnhancedCustomShapeParameterType::EQUATION,
2038 EnhancedCustomShapeParameterType::EQUATION,
2039 62, 63
2042 EnhancedCustomShapeParameterType::NORMAL,
2043 EnhancedCustomShapeParameterType::NORMAL,
2044 7720, 10543
2047 EnhancedCustomShapeParameterType::EQUATION,
2048 EnhancedCustomShapeParameterType::EQUATION,
2049 64, 65
2052 EnhancedCustomShapeParameterType::NORMAL,
2053 EnhancedCustomShapeParameterType::NORMAL,
2054 4360, 5918
2057 EnhancedCustomShapeParameterType::EQUATION,
2058 EnhancedCustomShapeParameterType::EQUATION,
2059 66, 67
2062 EnhancedCustomShapeParameterType::NORMAL,
2063 EnhancedCustomShapeParameterType::NORMAL,
2064 4345, 5945
2067 EnhancedCustomShapeParameterType::EQUATION,
2068 EnhancedCustomShapeParameterType::EQUATION,
2069 68, 69
2072 EnhancedCustomShapeParameterType::EQUATION,
2073 EnhancedCustomShapeParameterType::EQUATION,
2074 36, 5
2077 EnhancedCustomShapeParameterType::EQUATION,
2078 EnhancedCustomShapeParameterType::EQUATION,
2079 35, 35
2082 EnhancedCustomShapeParameterType::EQUATION,
2083 EnhancedCustomShapeParameterType::EQUATION,
2084 70, 71
2087 EnhancedCustomShapeParameterType::EQUATION,
2088 EnhancedCustomShapeParameterType::EQUATION,
2089 37, 26
2092 EnhancedCustomShapeParameterType::EQUATION,
2093 EnhancedCustomShapeParameterType::EQUATION,
2094 34, 34
2097 EnhancedCustomShapeParameterType::EQUATION,
2098 EnhancedCustomShapeParameterType::EQUATION,
2099 72, 73
2102 EnhancedCustomShapeParameterType::EQUATION,
2103 EnhancedCustomShapeParameterType::EQUATION,
2104 38, 33
2107 EnhancedCustomShapeParameterType::EQUATION,
2108 EnhancedCustomShapeParameterType::EQUATION,
2109 21, 21
2112 EnhancedCustomShapeParameterType::EQUATION,
2113 EnhancedCustomShapeParameterType::EQUATION,
2114 74, 75
2117 EnhancedCustomShapeParameterType::NORMAL,
2118 EnhancedCustomShapeParameterType::NORMAL,
2119 4693, 26177
2122 EnhancedCustomShapeParameterType::NORMAL,
2123 EnhancedCustomShapeParameterType::NORMAL,
2124 4345, 5945
2127 EnhancedCustomShapeParameterType::EQUATION,
2128 EnhancedCustomShapeParameterType::EQUATION,
2129 76, 77
2132 EnhancedCustomShapeParameterType::NORMAL,
2133 EnhancedCustomShapeParameterType::NORMAL,
2134 6928, 34899
2137 EnhancedCustomShapeParameterType::NORMAL,
2138 EnhancedCustomShapeParameterType::NORMAL,
2139 4360, 5918
2142 EnhancedCustomShapeParameterType::EQUATION,
2143 EnhancedCustomShapeParameterType::EQUATION,
2144 78, 79
2147 EnhancedCustomShapeParameterType::NORMAL,
2148 EnhancedCustomShapeParameterType::NORMAL,
2149 16478, 39090
2152 EnhancedCustomShapeParameterType::NORMAL,
2153 EnhancedCustomShapeParameterType::NORMAL,
2154 6752, 9215
2157 EnhancedCustomShapeParameterType::EQUATION,
2158 EnhancedCustomShapeParameterType::EQUATION,
2159 80, 81
2162 EnhancedCustomShapeParameterType::NORMAL,
2163 EnhancedCustomShapeParameterType::NORMAL,
2164 28827, 34751
2167 EnhancedCustomShapeParameterType::NORMAL,
2168 EnhancedCustomShapeParameterType::NORMAL,
2169 6752, 9215
2172 EnhancedCustomShapeParameterType::EQUATION,
2173 EnhancedCustomShapeParameterType::EQUATION,
2174 82, 83
2177 EnhancedCustomShapeParameterType::NORMAL,
2178 EnhancedCustomShapeParameterType::NORMAL,
2179 34129, 22954
2182 EnhancedCustomShapeParameterType::NORMAL,
2183 EnhancedCustomShapeParameterType::NORMAL,
2184 5785, 7867
2187 EnhancedCustomShapeParameterType::EQUATION,
2188 EnhancedCustomShapeParameterType::EQUATION,
2189 84, 85
2192 EnhancedCustomShapeParameterType::NORMAL,
2193 EnhancedCustomShapeParameterType::NORMAL,
2194 41798, 15354
2197 EnhancedCustomShapeParameterType::NORMAL,
2198 EnhancedCustomShapeParameterType::NORMAL,
2199 5333, 7273
2202 EnhancedCustomShapeParameterType::EQUATION,
2203 EnhancedCustomShapeParameterType::EQUATION,
2204 86, 87
2207 EnhancedCustomShapeParameterType::NORMAL,
2208 EnhancedCustomShapeParameterType::NORMAL,
2209 38324, 5426
2212 EnhancedCustomShapeParameterType::NORMAL,
2213 EnhancedCustomShapeParameterType::NORMAL,
2214 4857, 6595
2217 EnhancedCustomShapeParameterType::EQUATION,
2218 EnhancedCustomShapeParameterType::EQUATION,
2219 88, 89
2222 EnhancedCustomShapeParameterType::NORMAL,
2223 EnhancedCustomShapeParameterType::NORMAL,
2224 29078, 3952
2227 EnhancedCustomShapeParameterType::NORMAL,
2228 EnhancedCustomShapeParameterType::NORMAL,
2229 4857, 6595
2232 EnhancedCustomShapeParameterType::EQUATION,
2233 EnhancedCustomShapeParameterType::EQUATION,
2234 90, 91
2237 EnhancedCustomShapeParameterType::NORMAL,
2238 EnhancedCustomShapeParameterType::NORMAL,
2239 22141, 4720
2242 EnhancedCustomShapeParameterType::NORMAL,
2243 EnhancedCustomShapeParameterType::NORMAL,
2244 4365, 5945
2247 EnhancedCustomShapeParameterType::EQUATION,
2248 EnhancedCustomShapeParameterType::EQUATION,
2249 92, 93
2252 EnhancedCustomShapeParameterType::NORMAL,
2253 EnhancedCustomShapeParameterType::NORMAL,
2254 14000, 5192
2257 EnhancedCustomShapeParameterType::NORMAL,
2258 EnhancedCustomShapeParameterType::NORMAL,
2259 6753, 9190
2262 EnhancedCustomShapeParameterType::EQUATION,
2263 EnhancedCustomShapeParameterType::EQUATION,
2264 94, 95
2267 EnhancedCustomShapeParameterType::NORMAL,
2268 EnhancedCustomShapeParameterType::NORMAL,
2269 4127, 15789
2272 EnhancedCustomShapeParameterType::NORMAL,
2273 EnhancedCustomShapeParameterType::NORMAL,
2274 6753, 9190
2277 EnhancedCustomShapeParameterType::EQUATION,
2278 EnhancedCustomShapeParameterType::EQUATION,
2279 96, 97
2282 aPropSequence [0].Value = makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData), aData));
2285 aPropSequence [1].Name = "Segments";
2286 static const sal_uInt16 nValues[] = {
2287 // Command, Count
2288 1,1,
2289 17,11,
2290 4,0,
2291 5,0,
2292 1,1,
2293 17,1,
2294 4,0,
2295 5,0,
2296 1,1,
2297 17,1,
2298 4,0,
2299 5,0,
2300 1,1,
2301 17,1,
2302 4,0,
2303 5,0,
2304 1,1,
2305 17,1,
2306 1,1,
2307 17,1,
2308 1,1,
2309 17,1,
2310 1,1,
2311 17,1,
2312 1,1,
2313 17,1,
2314 1,1,
2315 17,1,
2316 1,1,
2317 17,1,
2318 1,1,
2319 17,1,
2320 1,1,
2321 17,1,
2322 1,1,
2323 17,1,
2324 1,1,
2325 17,1,
2326 6,0,
2329 aPropSequence [1].Value = makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues ), nValues ));
2332 aPropSequence [2].Name = "SubViewSize";
2333 Sequence< awt::Size > aSizeSequence (5);
2335 awt::Size aSize;
2336 aSize.Width = 43200;
2337 aSize.Height = 43200;
2338 aSizeSequence [0] = aSize;
2341 awt::Size aSize;
2342 aSize.Width = 0;
2343 aSize.Height = 0;
2344 aSizeSequence [1] = aSize;
2347 awt::Size aSize;
2348 aSize.Width = 0;
2349 aSize.Height = 0;
2350 aSizeSequence [2] = aSize;
2353 awt::Size aSize;
2354 aSize.Width = 0;
2355 aSize.Height = 0;
2356 aSizeSequence [3] = aSize;
2359 awt::Size aSize;
2360 aSize.Width = 43200;
2361 aSize.Height = 43200;
2362 aSizeSequence [4] = aSize;
2364 aPropSequence [2].Value = makeAny (aSizeSequence);
2367 aPropSequence [3].Name = "TextFrames";
2368 Sequence< EnhancedCustomShapeTextFrame > aTextFrameSeq (1);
2370 EnhancedCustomShapeTextFrame aTextFrame;
2372 static const CustomShapeProvider::ParameterPairData aData =
2374 EnhancedCustomShapeParameterType::EQUATION,
2375 EnhancedCustomShapeParameterType::EQUATION,
2376 39, 40
2378 aTextFrame.TopLeft = createParameterPair(&aData);
2381 static const CustomShapeProvider::ParameterPairData aData =
2383 EnhancedCustomShapeParameterType::EQUATION,
2384 EnhancedCustomShapeParameterType::EQUATION,
2385 41, 42
2387 aTextFrame.BottomRight = createParameterPair(&aData);
2389 aTextFrameSeq [0] = aTextFrame;
2391 aPropSequence [3].Value = makeAny (aTextFrameSeq);
2393 aPropertyMap [PROP_Path] <<= aPropSequence;
2396 awt::Rectangle aRectangle;
2397 aRectangle.X = 0;
2398 aRectangle.Y = 0;
2399 aRectangle.Width = 0;
2400 aRectangle.Height = 0;
2401 aPropertyMap [PROP_ViewBox] <<= aRectangle;
2403 aPropertyMap [ PROP_Type ] <<= OUString("ooxml-cloudCallout");
2405 return aPropertyMap;
2408 class ShapeCcallout1 : public CustomShapeProvider
2410 virtual PropertyMap getProperties()
2412 PropertyMap aPropertyMap;
2415 Sequence< EnhancedCustomShapeAdjustmentValue > aAdjSequence (4);
2417 Any aAny ((sal_Int32) 18750);
2418 aAdjSequence [0].Value = aAny;
2419 aAdjSequence [0].Name = "adj1";
2422 Any aAny ((sal_Int32) -8333);
2423 aAdjSequence [1].Value = aAny;
2424 aAdjSequence [1].Name = "adj2";
2427 Any aAny ((sal_Int32) 112500);
2428 aAdjSequence [2].Value = aAny;
2429 aAdjSequence [2].Name = "adj3";
2432 Any aAny ((sal_Int32) -38333);
2433 aAdjSequence [3].Value = aAny;
2434 aAdjSequence [3].Name = "adj4";
2436 aPropertyMap [PROP_AdjustmentValues] <<= aAdjSequence;
2439 static const char *aStrings[] = {
2440 "logheight*$0 /100000",
2441 "logwidth*$1 /100000",
2442 "logheight*$2 /100000",
2443 "logwidth*$3 /100000",
2444 "logwidth",
2445 "logheight/2",
2446 "logwidth/2",
2447 "logheight"
2449 aPropertyMap [PROP_Equations] <<= createStringSequence( SAL_N_ELEMENTS( aStrings ), aStrings );
2452 Sequence< Sequence < PropertyValue > > aPropSequenceSequence (2);
2454 Sequence< PropertyValue > aPropSequence (7);
2456 aPropSequence [0].Name = "Position";
2457 static const CustomShapeProvider::ParameterPairData aData =
2459 EnhancedCustomShapeParameterType::EQUATION,
2460 EnhancedCustomShapeParameterType::EQUATION,
2461 1, 0
2463 aPropSequence [0].Value = makeAny (createParameterPair(&aData));
2466 aPropSequence [1].Name = "RangeXMaximum";
2467 EnhancedCustomShapeParameter aParameter;
2468 Any aAny ((sal_Int32) 2147483647);
2469 aParameter.Value = aAny;
2470 aParameter.Type = EnhancedCustomShapeParameterType::NORMAL;
2471 aPropSequence [1].Value = makeAny (aParameter);
2474 aPropSequence [2].Name = "RangeXMinimum";
2475 EnhancedCustomShapeParameter aParameter;
2476 Any aAny ((sal_Int32) -2147483647);
2477 aParameter.Value = aAny;
2478 aParameter.Type = EnhancedCustomShapeParameterType::NORMAL;
2479 aPropSequence [2].Value = makeAny (aParameter);
2482 aPropSequence [3].Name = "RangeYMaximum";
2483 EnhancedCustomShapeParameter aParameter;
2484 Any aAny ((sal_Int32) 2147483647);
2485 aParameter.Value = aAny;
2486 aParameter.Type = EnhancedCustomShapeParameterType::NORMAL;
2487 aPropSequence [3].Value = makeAny (aParameter);
2490 aPropSequence [4].Name = "RangeYMinimum";
2491 EnhancedCustomShapeParameter aParameter;
2492 Any aAny ((sal_Int32) -2147483647);
2493 aParameter.Value = aAny;
2494 aParameter.Type = EnhancedCustomShapeParameterType::NORMAL;
2495 aPropSequence [4].Value = makeAny (aParameter);
2498 aPropSequence [5].Name = "RefX";
2499 Any aAny ((sal_Int32) 1);
2500 aPropSequence [5].Value = makeAny (aAny);
2503 aPropSequence [6].Name = "RefY";
2504 Any aAny ((sal_Int32) 0);
2505 aPropSequence [6].Value = makeAny (aAny);
2507 aPropSequenceSequence [0] = aPropSequence;
2510 Sequence< PropertyValue > aPropSequence (7);
2512 aPropSequence [0].Name = "Position";
2513 static const CustomShapeProvider::ParameterPairData aData =
2515 EnhancedCustomShapeParameterType::EQUATION,
2516 EnhancedCustomShapeParameterType::EQUATION,
2517 3, 2
2519 aPropSequence [0].Value = makeAny (createParameterPair(&aData));
2522 aPropSequence [1].Name = "RangeXMaximum";
2523 EnhancedCustomShapeParameter aParameter;
2524 Any aAny ((sal_Int32) 2147483647);
2525 aParameter.Value = aAny;
2526 aParameter.Type = EnhancedCustomShapeParameterType::NORMAL;
2527 aPropSequence [1].Value = makeAny (aParameter);
2530 aPropSequence [2].Name = "RangeXMinimum";
2531 EnhancedCustomShapeParameter aParameter;
2532 Any aAny ((sal_Int32) -2147483647);
2533 aParameter.Value = aAny;
2534 aParameter.Type = EnhancedCustomShapeParameterType::NORMAL;
2535 aPropSequence [2].Value = makeAny (aParameter);
2538 aPropSequence [3].Name = "RangeYMaximum";
2539 EnhancedCustomShapeParameter aParameter;
2540 Any aAny ((sal_Int32) 2147483647);
2541 aParameter.Value = aAny;
2542 aParameter.Type = EnhancedCustomShapeParameterType::NORMAL;
2543 aPropSequence [3].Value = makeAny (aParameter);
2546 aPropSequence [4].Name = "RangeYMinimum";
2547 EnhancedCustomShapeParameter aParameter;
2548 Any aAny ((sal_Int32) -2147483647);
2549 aParameter.Value = aAny;
2550 aParameter.Type = EnhancedCustomShapeParameterType::NORMAL;
2551 aPropSequence [4].Value = makeAny (aParameter);
2554 aPropSequence [5].Name = "RefX";
2555 Any aAny ((sal_Int32) 3);
2556 aPropSequence [5].Value = makeAny (aAny);
2559 aPropSequence [6].Name = "RefY";
2560 Any aAny ((sal_Int32) 2);
2561 aPropSequence [6].Value = makeAny (aAny);
2563 aPropSequenceSequence [1] = aPropSequence;
2565 aPropertyMap [PROP_Handles] <<= aPropSequenceSequence;
2568 aPropertyMap [PROP_MirroredX] <<= Any ((sal_Bool) sal_False);
2571 aPropertyMap [PROP_MirroredY] <<= Any ((sal_Bool) sal_False);
2574 Sequence< PropertyValue > aPropSequence (3);
2576 aPropSequence [0].Name = "Coordinates";
2577 static const CustomShapeProvider::ParameterPairData aData[] = {
2579 EnhancedCustomShapeParameterType::NORMAL,
2580 EnhancedCustomShapeParameterType::NORMAL,
2581 0, 0
2584 EnhancedCustomShapeParameterType::EQUATION,
2585 EnhancedCustomShapeParameterType::NORMAL,
2586 4, 0
2589 EnhancedCustomShapeParameterType::EQUATION,
2590 EnhancedCustomShapeParameterType::EQUATION,
2591 4, 7
2594 EnhancedCustomShapeParameterType::NORMAL,
2595 EnhancedCustomShapeParameterType::EQUATION,
2596 0, 7
2599 EnhancedCustomShapeParameterType::EQUATION,
2600 EnhancedCustomShapeParameterType::EQUATION,
2601 1, 0
2604 EnhancedCustomShapeParameterType::EQUATION,
2605 EnhancedCustomShapeParameterType::EQUATION,
2606 3, 2
2609 aPropSequence [0].Value = makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData), aData));
2612 aPropSequence [1].Name = "Segments";
2613 static const sal_uInt16 nValues[] = {
2614 // Command, Count
2615 1,1,
2616 2,3,
2617 4,0,
2618 7,0,
2619 5,0,
2620 1,1,
2621 2,1,
2622 6,0,
2625 aPropSequence [1].Value = makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues ), nValues ));
2628 aPropSequence [2].Name = "TextFrames";
2629 Sequence< EnhancedCustomShapeTextFrame > aTextFrameSeq (1);
2631 EnhancedCustomShapeTextFrame aTextFrame;
2633 static const CustomShapeProvider::ParameterPairData aData =
2635 EnhancedCustomShapeParameterType::NORMAL,
2636 EnhancedCustomShapeParameterType::NORMAL,
2637 0, 0
2639 aTextFrame.TopLeft = createParameterPair(&aData);
2642 static const CustomShapeProvider::ParameterPairData aData =
2644 EnhancedCustomShapeParameterType::EQUATION,
2645 EnhancedCustomShapeParameterType::EQUATION,
2646 4, 7
2648 aTextFrame.BottomRight = createParameterPair(&aData);
2650 aTextFrameSeq [0] = aTextFrame;
2652 aPropSequence [2].Value = makeAny (aTextFrameSeq);
2654 aPropertyMap [PROP_Path] <<= aPropSequence;
2657 awt::Rectangle aRectangle;
2658 aRectangle.X = 0;
2659 aRectangle.Y = 0;
2660 aRectangle.Width = 0;
2661 aRectangle.Height = 0;
2662 aPropertyMap [PROP_ViewBox] <<= aRectangle;
2664 aPropertyMap [ PROP_Type ] <<= OUString("ooxml-callout1");
2666 return aPropertyMap;
2669 class ShapeCribbon : public CustomShapeProvider
2671 virtual PropertyMap getProperties()
2673 PropertyMap aPropertyMap;
2676 Sequence< EnhancedCustomShapeAdjustmentValue > aAdjSequence (2);
2678 Any aAny ((sal_Int32) 16667);
2679 aAdjSequence [0].Value = aAny;
2680 aAdjSequence [0].Name = "adj1";
2683 Any aAny ((sal_Int32) 50000);
2684 aAdjSequence [1].Value = aAny;
2685 aAdjSequence [1].Name = "adj2";
2687 aPropertyMap [PROP_AdjustmentValues] <<= aAdjSequence;
2690 static const char *aStrings[] = {
2691 "if(0-$0 ,0,if(33333-$0 ,$0 ,33333))",
2692 "if(25000-$1 ,25000,if(75000-$1 ,$1 ,75000))",
2693 "logwidth/8",
2694 "logwidth+0-?2 ",
2695 "logwidth*?1 /200000",
2696 "logwidth/2",
2697 "?5 +0-?4 ",
2698 "?5 +?4 -0",
2699 "logwidth/32",
2700 "?6 +?8 -0",
2701 "?7 +0-?8 ",
2702 "?6 +?2 -0",
2703 "?7 +0-?2 ",
2704 "?11 +0-?8 ",
2705 "?12 +?8 -0",
2706 "logheight*?0 /200000",
2707 "logheight*?0 /100000",
2708 "logheight+0-?16 ",
2709 "?17 *1/2",
2710 "logheight*?0 /400000",
2711 "logheight+0-?19 ",
2712 "?16 +0-?19 ",
2713 "logheight",
2714 "(16200000)/60000.0",
2715 "(10800000)/60000.0",
2716 "(16200000)/60000.0",
2717 "(-10800000)/60000.0",
2718 "(5400000)/60000.0",
2719 "(-10800000)/60000.0",
2720 "(5400000)/60000.0",
2721 "(10800000)/60000.0",
2722 "logwidth",
2723 "(0)/60000.0",
2724 "(5400000)/60000.0",
2725 "(5400000)/60000.0",
2726 "(5400000)/60000.0",
2727 "(0)/60000.0",
2728 "(5400000)/60000.0",
2729 "(16200000)/60000.0",
2730 "(-10800000)/60000.0",
2731 "(10800000)/60000.0",
2732 "(-5400000)/60000.0",
2733 "(16200000)/60000.0",
2734 "(10800000)/60000.0",
2735 "(16200000)/60000.0",
2736 "(10800000)/60000.0",
2737 "(16200000)/60000.0",
2738 "(-10800000)/60000.0",
2739 "(5400000)/60000.0",
2740 "(-10800000)/60000.0",
2741 "(5400000)/60000.0",
2742 "(10800000)/60000.0",
2743 "(0)/60000.0",
2744 "(5400000)/60000.0",
2745 "(5400000)/60000.0",
2746 "(5400000)/60000.0"
2748 aPropertyMap [PROP_Equations] <<= createStringSequence( SAL_N_ELEMENTS( aStrings ), aStrings );
2751 Sequence< Sequence < PropertyValue > > aPropSequenceSequence (2);
2753 Sequence< PropertyValue > aPropSequence (4);
2755 aPropSequence [0].Name = "Position";
2756 static const CustomShapeProvider::ParameterPairData aData =
2758 EnhancedCustomShapeParameterType::EQUATION,
2759 EnhancedCustomShapeParameterType::EQUATION,
2760 5, 16
2762 aPropSequence [0].Value = makeAny (createParameterPair(&aData));
2765 aPropSequence [1].Name = "RangeYMaximum";
2766 EnhancedCustomShapeParameter aParameter;
2767 Any aAny ((sal_Int32) 33333);
2768 aParameter.Value = aAny;
2769 aParameter.Type = EnhancedCustomShapeParameterType::NORMAL;
2770 aPropSequence [1].Value = makeAny (aParameter);
2773 aPropSequence [2].Name = "RangeYMinimum";
2774 EnhancedCustomShapeParameter aParameter;
2775 Any aAny ((sal_Int32) 0);
2776 aParameter.Value = aAny;
2777 aParameter.Type = EnhancedCustomShapeParameterType::NORMAL;
2778 aPropSequence [2].Value = makeAny (aParameter);
2781 aPropSequence [3].Name = "RefY";
2782 Any aAny ((sal_Int32) 0);
2783 aPropSequence [3].Value = makeAny (aAny);
2785 aPropSequenceSequence [0] = aPropSequence;
2788 Sequence< PropertyValue > aPropSequence (4);
2790 aPropSequence [0].Name = "Position";
2791 static const CustomShapeProvider::ParameterPairData aData =
2793 EnhancedCustomShapeParameterType::EQUATION,
2794 EnhancedCustomShapeParameterType::NORMAL,
2795 6, 0
2797 aPropSequence [0].Value = makeAny (createParameterPair(&aData));
2800 aPropSequence [1].Name = "RangeXMaximum";
2801 EnhancedCustomShapeParameter aParameter;
2802 Any aAny ((sal_Int32) 75000);
2803 aParameter.Value = aAny;
2804 aParameter.Type = EnhancedCustomShapeParameterType::NORMAL;
2805 aPropSequence [1].Value = makeAny (aParameter);
2808 aPropSequence [2].Name = "RangeXMinimum";
2809 EnhancedCustomShapeParameter aParameter;
2810 Any aAny ((sal_Int32) 25000);
2811 aParameter.Value = aAny;
2812 aParameter.Type = EnhancedCustomShapeParameterType::NORMAL;
2813 aPropSequence [2].Value = makeAny (aParameter);
2816 aPropSequence [3].Name = "RefX";
2817 Any aAny ((sal_Int32) 1);
2818 aPropSequence [3].Value = makeAny (aAny);
2820 aPropSequenceSequence [1] = aPropSequence;
2822 aPropertyMap [PROP_Handles] <<= aPropSequenceSequence;
2825 aPropertyMap [PROP_MirroredX] <<= Any ((sal_Bool) sal_False);
2828 aPropertyMap [PROP_MirroredY] <<= Any ((sal_Bool) sal_False);
2831 Sequence< PropertyValue > aPropSequence (3);
2833 aPropSequence [0].Name = "Coordinates";
2834 static const CustomShapeProvider::ParameterPairData aData[] = {
2836 EnhancedCustomShapeParameterType::NORMAL,
2837 EnhancedCustomShapeParameterType::NORMAL,
2838 0, 0
2841 EnhancedCustomShapeParameterType::EQUATION,
2842 EnhancedCustomShapeParameterType::NORMAL,
2843 13, 0
2846 EnhancedCustomShapeParameterType::EQUATION,
2847 EnhancedCustomShapeParameterType::EQUATION,
2848 8, 19
2851 EnhancedCustomShapeParameterType::EQUATION,
2852 EnhancedCustomShapeParameterType::EQUATION,
2853 23, 24
2856 EnhancedCustomShapeParameterType::EQUATION,
2857 EnhancedCustomShapeParameterType::EQUATION,
2858 9, 15
2861 EnhancedCustomShapeParameterType::EQUATION,
2862 EnhancedCustomShapeParameterType::EQUATION,
2863 8, 19
2866 EnhancedCustomShapeParameterType::EQUATION,
2867 EnhancedCustomShapeParameterType::EQUATION,
2868 25, 26
2871 EnhancedCustomShapeParameterType::EQUATION,
2872 EnhancedCustomShapeParameterType::EQUATION,
2873 10, 16
2876 EnhancedCustomShapeParameterType::EQUATION,
2877 EnhancedCustomShapeParameterType::EQUATION,
2878 8, 19
2881 EnhancedCustomShapeParameterType::EQUATION,
2882 EnhancedCustomShapeParameterType::EQUATION,
2883 27, 28
2886 EnhancedCustomShapeParameterType::EQUATION,
2887 EnhancedCustomShapeParameterType::EQUATION,
2888 14, 15
2891 EnhancedCustomShapeParameterType::EQUATION,
2892 EnhancedCustomShapeParameterType::EQUATION,
2893 8, 19
2896 EnhancedCustomShapeParameterType::EQUATION,
2897 EnhancedCustomShapeParameterType::EQUATION,
2898 29, 30
2901 EnhancedCustomShapeParameterType::EQUATION,
2902 EnhancedCustomShapeParameterType::NORMAL,
2903 31, 0
2906 EnhancedCustomShapeParameterType::EQUATION,
2907 EnhancedCustomShapeParameterType::EQUATION,
2908 3, 18
2911 EnhancedCustomShapeParameterType::EQUATION,
2912 EnhancedCustomShapeParameterType::EQUATION,
2913 31, 17
2916 EnhancedCustomShapeParameterType::EQUATION,
2917 EnhancedCustomShapeParameterType::EQUATION,
2918 7, 17
2921 EnhancedCustomShapeParameterType::EQUATION,
2922 EnhancedCustomShapeParameterType::EQUATION,
2923 7, 20
2926 EnhancedCustomShapeParameterType::EQUATION,
2927 EnhancedCustomShapeParameterType::EQUATION,
2928 8, 19
2931 EnhancedCustomShapeParameterType::EQUATION,
2932 EnhancedCustomShapeParameterType::EQUATION,
2933 32, 33
2936 EnhancedCustomShapeParameterType::EQUATION,
2937 EnhancedCustomShapeParameterType::EQUATION,
2938 9, 22
2941 EnhancedCustomShapeParameterType::EQUATION,
2942 EnhancedCustomShapeParameterType::EQUATION,
2943 8, 19
2946 EnhancedCustomShapeParameterType::EQUATION,
2947 EnhancedCustomShapeParameterType::EQUATION,
2948 34, 35
2951 EnhancedCustomShapeParameterType::EQUATION,
2952 EnhancedCustomShapeParameterType::EQUATION,
2953 6, 17
2956 EnhancedCustomShapeParameterType::NORMAL,
2957 EnhancedCustomShapeParameterType::EQUATION,
2958 0, 17
2961 EnhancedCustomShapeParameterType::EQUATION,
2962 EnhancedCustomShapeParameterType::EQUATION,
2963 2, 18
2966 EnhancedCustomShapeParameterType::EQUATION,
2967 EnhancedCustomShapeParameterType::EQUATION,
2968 11, 19
2971 EnhancedCustomShapeParameterType::EQUATION,
2972 EnhancedCustomShapeParameterType::EQUATION,
2973 8, 19
2976 EnhancedCustomShapeParameterType::EQUATION,
2977 EnhancedCustomShapeParameterType::EQUATION,
2978 36, 37
2981 EnhancedCustomShapeParameterType::EQUATION,
2982 EnhancedCustomShapeParameterType::EQUATION,
2983 9, 15
2986 EnhancedCustomShapeParameterType::EQUATION,
2987 EnhancedCustomShapeParameterType::EQUATION,
2988 8, 19
2991 EnhancedCustomShapeParameterType::EQUATION,
2992 EnhancedCustomShapeParameterType::EQUATION,
2993 38, 39
2996 EnhancedCustomShapeParameterType::EQUATION,
2997 EnhancedCustomShapeParameterType::EQUATION,
2998 11, 16
3001 EnhancedCustomShapeParameterType::EQUATION,
3002 EnhancedCustomShapeParameterType::EQUATION,
3003 12, 19
3006 EnhancedCustomShapeParameterType::EQUATION,
3007 EnhancedCustomShapeParameterType::EQUATION,
3008 8, 19
3011 EnhancedCustomShapeParameterType::EQUATION,
3012 EnhancedCustomShapeParameterType::EQUATION,
3013 40, 41
3016 EnhancedCustomShapeParameterType::EQUATION,
3017 EnhancedCustomShapeParameterType::EQUATION,
3018 10, 15
3021 EnhancedCustomShapeParameterType::EQUATION,
3022 EnhancedCustomShapeParameterType::EQUATION,
3023 8, 19
3026 EnhancedCustomShapeParameterType::EQUATION,
3027 EnhancedCustomShapeParameterType::EQUATION,
3028 42, 43
3031 EnhancedCustomShapeParameterType::EQUATION,
3032 EnhancedCustomShapeParameterType::EQUATION,
3033 12, 16
3036 EnhancedCustomShapeParameterType::NORMAL,
3037 EnhancedCustomShapeParameterType::NORMAL,
3038 0, 0
3041 EnhancedCustomShapeParameterType::EQUATION,
3042 EnhancedCustomShapeParameterType::NORMAL,
3043 13, 0
3046 EnhancedCustomShapeParameterType::EQUATION,
3047 EnhancedCustomShapeParameterType::EQUATION,
3048 8, 19
3051 EnhancedCustomShapeParameterType::EQUATION,
3052 EnhancedCustomShapeParameterType::EQUATION,
3053 44, 45
3056 EnhancedCustomShapeParameterType::EQUATION,
3057 EnhancedCustomShapeParameterType::EQUATION,
3058 9, 15
3061 EnhancedCustomShapeParameterType::EQUATION,
3062 EnhancedCustomShapeParameterType::EQUATION,
3063 8, 19
3066 EnhancedCustomShapeParameterType::EQUATION,
3067 EnhancedCustomShapeParameterType::EQUATION,
3068 46, 47
3071 EnhancedCustomShapeParameterType::EQUATION,
3072 EnhancedCustomShapeParameterType::EQUATION,
3073 10, 16
3076 EnhancedCustomShapeParameterType::EQUATION,
3077 EnhancedCustomShapeParameterType::EQUATION,
3078 8, 19
3081 EnhancedCustomShapeParameterType::EQUATION,
3082 EnhancedCustomShapeParameterType::EQUATION,
3083 48, 49
3086 EnhancedCustomShapeParameterType::EQUATION,
3087 EnhancedCustomShapeParameterType::EQUATION,
3088 14, 15
3091 EnhancedCustomShapeParameterType::EQUATION,
3092 EnhancedCustomShapeParameterType::EQUATION,
3093 8, 19
3096 EnhancedCustomShapeParameterType::EQUATION,
3097 EnhancedCustomShapeParameterType::EQUATION,
3098 50, 51
3101 EnhancedCustomShapeParameterType::EQUATION,
3102 EnhancedCustomShapeParameterType::NORMAL,
3103 31, 0
3106 EnhancedCustomShapeParameterType::EQUATION,
3107 EnhancedCustomShapeParameterType::EQUATION,
3108 3, 18
3111 EnhancedCustomShapeParameterType::EQUATION,
3112 EnhancedCustomShapeParameterType::EQUATION,
3113 31, 17
3116 EnhancedCustomShapeParameterType::EQUATION,
3117 EnhancedCustomShapeParameterType::EQUATION,
3118 7, 17
3121 EnhancedCustomShapeParameterType::EQUATION,
3122 EnhancedCustomShapeParameterType::EQUATION,
3123 7, 20
3126 EnhancedCustomShapeParameterType::EQUATION,
3127 EnhancedCustomShapeParameterType::EQUATION,
3128 8, 19
3131 EnhancedCustomShapeParameterType::EQUATION,
3132 EnhancedCustomShapeParameterType::EQUATION,
3133 52, 53
3136 EnhancedCustomShapeParameterType::EQUATION,
3137 EnhancedCustomShapeParameterType::EQUATION,
3138 9, 22
3141 EnhancedCustomShapeParameterType::EQUATION,
3142 EnhancedCustomShapeParameterType::EQUATION,
3143 8, 19
3146 EnhancedCustomShapeParameterType::EQUATION,
3147 EnhancedCustomShapeParameterType::EQUATION,
3148 54, 55
3151 EnhancedCustomShapeParameterType::EQUATION,
3152 EnhancedCustomShapeParameterType::EQUATION,
3153 6, 17
3156 EnhancedCustomShapeParameterType::NORMAL,
3157 EnhancedCustomShapeParameterType::EQUATION,
3158 0, 17
3161 EnhancedCustomShapeParameterType::EQUATION,
3162 EnhancedCustomShapeParameterType::EQUATION,
3163 2, 18
3166 EnhancedCustomShapeParameterType::EQUATION,
3167 EnhancedCustomShapeParameterType::EQUATION,
3168 11, 19
3171 EnhancedCustomShapeParameterType::EQUATION,
3172 EnhancedCustomShapeParameterType::EQUATION,
3173 11, 16
3176 EnhancedCustomShapeParameterType::EQUATION,
3177 EnhancedCustomShapeParameterType::EQUATION,
3178 12, 16
3181 EnhancedCustomShapeParameterType::EQUATION,
3182 EnhancedCustomShapeParameterType::EQUATION,
3183 12, 19
3186 EnhancedCustomShapeParameterType::EQUATION,
3187 EnhancedCustomShapeParameterType::EQUATION,
3188 6, 17
3191 EnhancedCustomShapeParameterType::EQUATION,
3192 EnhancedCustomShapeParameterType::EQUATION,
3193 6, 21
3196 EnhancedCustomShapeParameterType::EQUATION,
3197 EnhancedCustomShapeParameterType::EQUATION,
3198 7, 21
3201 EnhancedCustomShapeParameterType::EQUATION,
3202 EnhancedCustomShapeParameterType::EQUATION,
3203 7, 17
3206 aPropSequence [0].Value = makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData), aData));
3209 aPropSequence [1].Name = "Segments";
3210 static const sal_uInt16 nValues[] = {
3211 // Command, Count
3212 1,1,
3213 2,1,
3214 17,1,
3215 2,1,
3216 17,1,
3217 2,1,
3218 17,1,
3219 2,1,
3220 17,1,
3221 2,5,
3222 17,1,
3223 2,1,
3224 17,1,
3225 2,3,
3226 4,0,
3227 7,0,
3228 5,0,
3229 1,1,
3230 17,1,
3231 2,1,
3232 17,1,
3233 2,1,
3234 4,0,
3235 1,1,
3236 17,1,
3237 2,1,
3238 17,1,
3239 2,1,
3240 4,0,
3241 19,0,
3242 7,0,
3243 5,0,
3244 1,1,
3245 2,1,
3246 17,1,
3247 2,1,
3248 17,1,
3249 2,1,
3250 17,1,
3251 2,1,
3252 17,1,
3253 2,5,
3254 17,1,
3255 2,1,
3256 17,1,
3257 2,3,
3258 4,0,
3259 1,1,
3260 2,1,
3261 1,1,
3262 2,1,
3263 1,1,
3264 2,1,
3265 1,1,
3266 2,1,
3267 6,0,
3270 aPropSequence [1].Value = makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues ), nValues ));
3273 aPropSequence [2].Name = "TextFrames";
3274 Sequence< EnhancedCustomShapeTextFrame > aTextFrameSeq (1);
3276 EnhancedCustomShapeTextFrame aTextFrame;
3278 static const CustomShapeProvider::ParameterPairData aData =
3280 EnhancedCustomShapeParameterType::EQUATION,
3281 EnhancedCustomShapeParameterType::EQUATION,
3282 6, 16
3284 aTextFrame.TopLeft = createParameterPair(&aData);
3287 static const CustomShapeProvider::ParameterPairData aData =
3289 EnhancedCustomShapeParameterType::EQUATION,
3290 EnhancedCustomShapeParameterType::EQUATION,
3291 7, 22
3293 aTextFrame.BottomRight = createParameterPair(&aData);
3295 aTextFrameSeq [0] = aTextFrame;
3297 aPropSequence [2].Value = makeAny (aTextFrameSeq);
3299 aPropertyMap [PROP_Path] <<= aPropSequence;
3302 awt::Rectangle aRectangle;
3303 aRectangle.X = 0;
3304 aRectangle.Y = 0;
3305 aRectangle.Width = 0;
3306 aRectangle.Height = 0;
3307 aPropertyMap [PROP_ViewBox] <<= aRectangle;
3309 aPropertyMap [ PROP_Type ] <<= OUString("ooxml-ribbon");
3311 return aPropertyMap;
3314 } // anonymous namespace
3315 void CustomShapeProperties::initializePresetsMap6()
3317 maPresetsMap [ StaticTokenMap::get().getTokenFromUnicode( "star5" ) ] = new ShapeCstar5();
3318 maPresetsMap [ StaticTokenMap::get().getTokenFromUnicode( "lineInv" ) ] = new ShapeClineInv();
3319 maPresetsMap [ StaticTokenMap::get().getTokenFromUnicode( "straightConnector1" ) ] = new ShapeCstraightConnector1();
3320 maPresetsMap [ StaticTokenMap::get().getTokenFromUnicode( "stripedRightArrow" ) ] = new ShapeCstripedRightArrow();
3321 maPresetsMap [ StaticTokenMap::get().getTokenFromUnicode( "callout3" ) ] = new ShapeCcallout3();
3322 maPresetsMap [ StaticTokenMap::get().getTokenFromUnicode( "bentUpArrow" ) ] = new ShapeCbentUpArrow();
3323 maPresetsMap [ StaticTokenMap::get().getTokenFromUnicode( "noSmoking" ) ] = new ShapeCnoSmoking();
3324 maPresetsMap [ StaticTokenMap::get().getTokenFromUnicode( "trapezoid" ) ] = new ShapeCtrapezoid();
3325 maPresetsMap [ StaticTokenMap::get().getTokenFromUnicode( "cloudCallout" ) ] = new ShapeCcloudCallout();
3326 maPresetsMap [ StaticTokenMap::get().getTokenFromUnicode( "callout1" ) ] = new ShapeCcallout1();
3327 maPresetsMap [ StaticTokenMap::get().getTokenFromUnicode( "ribbon" ) ] = new ShapeCribbon();
3330 } } // oox // drawingml
3333 void ::oox::drawingml::CustomShapeProperties::initializePresetsMap()
3335 initializePresetsMap1();
3336 initializePresetsMap2();
3337 initializePresetsMap3();
3338 initializePresetsMap4();
3339 initializePresetsMap5();
3340 initializePresetsMap6();