fdo#74697 Add Bluez 5 support for impress remote.
[LibreOffice.git] / oox / source / drawingml / customshapepresets4.cxx
blobf79fb8e53e5f5a5e9818bb3e7596dc312dff6fd3
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 ShapeCteardrop : public CustomShapeProvider
24 virtual PropertyMap getProperties()
26 PropertyMap aPropertyMap;
29 Sequence< EnhancedCustomShapeAdjustmentValue > aAdjSequence (1);
31 Any aAny ((sal_Int32) 100000);
32 aAdjSequence [0].Value = aAny;
33 aAdjSequence [0].Name = "adj";
35 aPropertyMap [PROP_AdjustmentValues] <<= aAdjSequence;
38 static const char *aStrings[] = {
39 "if(0-$0 ,0,if(200000-$0 ,$0 ,200000))",
40 "sqrt(2)",
41 "logwidth/2",
42 "?2 *?1 /1",
43 "logheight/2",
44 "?4 *?1 /1",
45 "?3 *?0 /100000",
46 "?5 *?0 /100000",
47 "?6 *cos(pi*(2700000)/10800000)",
48 "?7 *sin(pi*(2700000)/10800000)",
49 "logwidth/2",
50 "?10 +?8 -0",
51 "logheight/2",
52 "?12 +0-?9 ",
53 "(?10 +?11 )/2",
54 "(?12 +?13 )/2",
55 "?2 *cos(pi*(2700000)/10800000)",
56 "?4 *sin(pi*(2700000)/10800000)",
57 "?10 +0-?16 ",
58 "?10 +?16 -0",
59 "?12 +0-?17 ",
60 "?12 +?17 -0",
61 "logwidth",
62 "logheight",
63 "(10800000)/60000.0",
64 "(5400000)/60000.0",
65 "(0)/60000.0",
66 "(5400000)/60000.0",
67 "(5400000)/60000.0",
68 "(5400000)/60000.0"
70 aPropertyMap [PROP_Equations] <<= createStringSequence( SAL_N_ELEMENTS( aStrings ), aStrings );
73 Sequence< Sequence < PropertyValue > > aPropSequenceSequence (1);
75 Sequence< PropertyValue > aPropSequence (4);
77 aPropSequence [0].Name = "Position";
78 static const CustomShapeProvider::ParameterPairData aData =
80 EnhancedCustomShapeParameterType::EQUATION,
81 EnhancedCustomShapeParameterType::NORMAL,
82 11, 0
84 aPropSequence [0].Value = makeAny (createParameterPair(&aData));
87 aPropSequence [1].Name = "RangeXMaximum";
88 EnhancedCustomShapeParameter aParameter;
89 Any aAny ((sal_Int32) 200000);
90 aParameter.Value = aAny;
91 aParameter.Type = EnhancedCustomShapeParameterType::NORMAL;
92 aPropSequence [1].Value = makeAny (aParameter);
95 aPropSequence [2].Name = "RangeXMinimum";
96 EnhancedCustomShapeParameter aParameter;
97 Any aAny ((sal_Int32) 0);
98 aParameter.Value = aAny;
99 aParameter.Type = EnhancedCustomShapeParameterType::NORMAL;
100 aPropSequence [2].Value = makeAny (aParameter);
103 aPropSequence [3].Name = "RefX";
104 Any aAny ((sal_Int32) 0);
105 aPropSequence [3].Value = makeAny (aAny);
107 aPropSequenceSequence [0] = aPropSequence;
109 aPropertyMap [PROP_Handles] <<= aPropSequenceSequence;
112 aPropertyMap [PROP_MirroredX] <<= Any ((sal_Bool) sal_False);
115 aPropertyMap [PROP_MirroredY] <<= Any ((sal_Bool) sal_False);
118 Sequence< PropertyValue > aPropSequence (3);
120 aPropSequence [0].Name = "Coordinates";
121 static const CustomShapeProvider::ParameterPairData aData[] = {
123 EnhancedCustomShapeParameterType::NORMAL,
124 EnhancedCustomShapeParameterType::EQUATION,
125 0, 12
128 EnhancedCustomShapeParameterType::EQUATION,
129 EnhancedCustomShapeParameterType::EQUATION,
130 2, 4
133 EnhancedCustomShapeParameterType::EQUATION,
134 EnhancedCustomShapeParameterType::EQUATION,
135 24, 25
138 EnhancedCustomShapeParameterType::EQUATION,
139 EnhancedCustomShapeParameterType::NORMAL,
140 14, 0
143 EnhancedCustomShapeParameterType::EQUATION,
144 EnhancedCustomShapeParameterType::EQUATION,
145 11, 13
148 EnhancedCustomShapeParameterType::EQUATION,
149 EnhancedCustomShapeParameterType::EQUATION,
150 22, 15
153 EnhancedCustomShapeParameterType::EQUATION,
154 EnhancedCustomShapeParameterType::EQUATION,
155 22, 12
158 EnhancedCustomShapeParameterType::EQUATION,
159 EnhancedCustomShapeParameterType::EQUATION,
160 2, 4
163 EnhancedCustomShapeParameterType::EQUATION,
164 EnhancedCustomShapeParameterType::EQUATION,
165 26, 27
168 EnhancedCustomShapeParameterType::EQUATION,
169 EnhancedCustomShapeParameterType::EQUATION,
170 2, 4
173 EnhancedCustomShapeParameterType::EQUATION,
174 EnhancedCustomShapeParameterType::EQUATION,
175 28, 29
178 aPropSequence [0].Value = makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData), aData));
181 aPropSequence [1].Name = "Segments";
182 static const sal_uInt16 nValues[] = {
183 // Command, Count
184 1,1,
185 17,1,
186 16,2,
187 17,2,
188 4,0,
191 aPropSequence [1].Value = makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues ), nValues ));
194 aPropSequence [2].Name = "TextFrames";
195 Sequence< EnhancedCustomShapeTextFrame > aTextFrameSeq (1);
197 EnhancedCustomShapeTextFrame aTextFrame;
199 static const CustomShapeProvider::ParameterPairData aData =
201 EnhancedCustomShapeParameterType::EQUATION,
202 EnhancedCustomShapeParameterType::EQUATION,
203 18, 20
205 aTextFrame.TopLeft = createParameterPair(&aData);
208 static const CustomShapeProvider::ParameterPairData aData =
210 EnhancedCustomShapeParameterType::EQUATION,
211 EnhancedCustomShapeParameterType::EQUATION,
212 19, 21
214 aTextFrame.BottomRight = createParameterPair(&aData);
216 aTextFrameSeq [0] = aTextFrame;
218 aPropSequence [2].Value = makeAny (aTextFrameSeq);
220 aPropertyMap [PROP_Path] <<= aPropSequence;
223 awt::Rectangle aRectangle;
224 aRectangle.X = 0;
225 aRectangle.Y = 0;
226 aRectangle.Width = 0;
227 aRectangle.Height = 0;
228 aPropertyMap [PROP_ViewBox] <<= aRectangle;
230 aPropertyMap [ PROP_Type ] <<= OUString("ooxml-teardrop");
232 return aPropertyMap;
235 class ShapeCflowChartDocument : public CustomShapeProvider
237 virtual PropertyMap getProperties()
239 PropertyMap aPropertyMap;
242 aPropertyMap [PROP_AdjustmentValues] <<= Sequence< OUString >(0);
245 static const char *aStrings[] = {
246 "logheight*17322/21600",
247 "logheight*20172/21600",
248 "logwidth/2",
249 "logheight/2",
250 "logwidth"
252 aPropertyMap [PROP_Equations] <<= createStringSequence( SAL_N_ELEMENTS( aStrings ), aStrings );
255 aPropertyMap [PROP_Handles] <<= Sequence< OUString >(0);
258 aPropertyMap [PROP_MirroredX] <<= Any ((sal_Bool) sal_False);
261 aPropertyMap [PROP_MirroredY] <<= Any ((sal_Bool) sal_False);
264 Sequence< PropertyValue > aPropSequence (4);
266 aPropSequence [0].Name = "Coordinates";
267 static const CustomShapeProvider::ParameterPairData aData[] = {
269 EnhancedCustomShapeParameterType::NORMAL,
270 EnhancedCustomShapeParameterType::NORMAL,
271 0, 0
274 EnhancedCustomShapeParameterType::NORMAL,
275 EnhancedCustomShapeParameterType::NORMAL,
276 21600, 0
279 EnhancedCustomShapeParameterType::NORMAL,
280 EnhancedCustomShapeParameterType::NORMAL,
281 21600, 17322
284 EnhancedCustomShapeParameterType::NORMAL,
285 EnhancedCustomShapeParameterType::NORMAL,
286 10800, 17322
289 EnhancedCustomShapeParameterType::NORMAL,
290 EnhancedCustomShapeParameterType::NORMAL,
291 10800, 23922
294 EnhancedCustomShapeParameterType::NORMAL,
295 EnhancedCustomShapeParameterType::NORMAL,
296 0, 20172
299 aPropSequence [0].Value = makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData), aData));
302 aPropSequence [1].Name = "Segments";
303 static const sal_uInt16 nValues[] = {
304 // Command, Count
305 1,1,
306 2,2,
307 3,1,
308 4,0,
311 aPropSequence [1].Value = makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues ), nValues ));
314 aPropSequence [2].Name = "SubViewSize";
315 Sequence< awt::Size > aSizeSequence (1);
317 awt::Size aSize;
318 aSize.Width = 21600;
319 aSize.Height = 21600;
320 aSizeSequence [0] = aSize;
322 aPropSequence [2].Value = makeAny (aSizeSequence);
325 aPropSequence [3].Name = "TextFrames";
326 Sequence< EnhancedCustomShapeTextFrame > aTextFrameSeq (1);
328 EnhancedCustomShapeTextFrame aTextFrame;
330 static const CustomShapeProvider::ParameterPairData aData =
332 EnhancedCustomShapeParameterType::NORMAL,
333 EnhancedCustomShapeParameterType::NORMAL,
334 0, 0
336 aTextFrame.TopLeft = createParameterPair(&aData);
339 static const CustomShapeProvider::ParameterPairData aData =
341 EnhancedCustomShapeParameterType::EQUATION,
342 EnhancedCustomShapeParameterType::EQUATION,
343 4, 0
345 aTextFrame.BottomRight = createParameterPair(&aData);
347 aTextFrameSeq [0] = aTextFrame;
349 aPropSequence [3].Value = makeAny (aTextFrameSeq);
351 aPropertyMap [PROP_Path] <<= aPropSequence;
354 awt::Rectangle aRectangle;
355 aRectangle.X = 0;
356 aRectangle.Y = 0;
357 aRectangle.Width = 0;
358 aRectangle.Height = 0;
359 aPropertyMap [PROP_ViewBox] <<= aRectangle;
361 aPropertyMap [ PROP_Type ] <<= OUString("ooxml-flowChartDocument");
363 return aPropertyMap;
366 class ShapeCrightArrowCallout : public CustomShapeProvider
368 virtual PropertyMap getProperties()
370 PropertyMap aPropertyMap;
373 Sequence< EnhancedCustomShapeAdjustmentValue > aAdjSequence (4);
375 Any aAny ((sal_Int32) 25000);
376 aAdjSequence [0].Value = aAny;
377 aAdjSequence [0].Name = "adj1";
380 Any aAny ((sal_Int32) 25000);
381 aAdjSequence [1].Value = aAny;
382 aAdjSequence [1].Name = "adj2";
385 Any aAny ((sal_Int32) 25000);
386 aAdjSequence [2].Value = aAny;
387 aAdjSequence [2].Name = "adj3";
390 Any aAny ((sal_Int32) 64977);
391 aAdjSequence [3].Value = aAny;
392 aAdjSequence [3].Name = "adj4";
394 aPropertyMap [PROP_AdjustmentValues] <<= aAdjSequence;
397 static const char *aStrings[] = {
398 "min(logwidth,logheight)",
399 "50000*logheight/?0 ",
400 "if(0-$1 ,0,if(?1 -$1 ,$1 ,?1 ))",
401 "?2 *2/1",
402 "if(0-$0 ,0,if(?3 -$0 ,$0 ,?3 ))",
403 "100000*logwidth/?0 ",
404 "if(0-$2 ,0,if(?5 -$2 ,$2 ,?5 ))",
405 "?6 *?0 /logwidth",
406 "100000+0-?7 ",
407 "if(0-$3 ,0,if(?8 -$3 ,$3 ,?8 ))",
408 "?0 *?2 /100000",
409 "?0 *?4 /200000",
410 "logheight/2",
411 "?12 +0-?10 ",
412 "?12 +0-?11 ",
413 "?12 +?11 -0",
414 "?12 +?10 -0",
415 "?0 *?6 /100000",
416 "logwidth+0-?17 ",
417 "logwidth*?9 /100000",
418 "?19 *1/2",
419 "logwidth",
420 "logheight"
422 aPropertyMap [PROP_Equations] <<= createStringSequence( SAL_N_ELEMENTS( aStrings ), aStrings );
425 Sequence< Sequence < PropertyValue > > aPropSequenceSequence (4);
427 Sequence< PropertyValue > aPropSequence (4);
429 aPropSequence [0].Name = "Position";
430 static const CustomShapeProvider::ParameterPairData aData =
432 EnhancedCustomShapeParameterType::EQUATION,
433 EnhancedCustomShapeParameterType::EQUATION,
434 18, 14
436 aPropSequence [0].Value = makeAny (createParameterPair(&aData));
439 aPropSequence [1].Name = "RangeYMaximum";
440 EnhancedCustomShapeParameter aParameter;
441 Any aAny ((sal_Int32) 3);
442 aParameter.Value = aAny;
443 aParameter.Type = EnhancedCustomShapeParameterType::EQUATION;
444 aPropSequence [1].Value = makeAny (aParameter);
447 aPropSequence [2].Name = "RangeYMinimum";
448 EnhancedCustomShapeParameter aParameter;
449 Any aAny ((sal_Int32) 0);
450 aParameter.Value = aAny;
451 aParameter.Type = EnhancedCustomShapeParameterType::NORMAL;
452 aPropSequence [2].Value = makeAny (aParameter);
455 aPropSequence [3].Name = "RefY";
456 Any aAny ((sal_Int32) 0);
457 aPropSequence [3].Value = makeAny (aAny);
459 aPropSequenceSequence [0] = aPropSequence;
462 Sequence< PropertyValue > aPropSequence (4);
464 aPropSequence [0].Name = "Position";
465 static const CustomShapeProvider::ParameterPairData aData =
467 EnhancedCustomShapeParameterType::EQUATION,
468 EnhancedCustomShapeParameterType::EQUATION,
469 21, 13
471 aPropSequence [0].Value = makeAny (createParameterPair(&aData));
474 aPropSequence [1].Name = "RangeYMaximum";
475 EnhancedCustomShapeParameter aParameter;
476 Any aAny ((sal_Int32) 1);
477 aParameter.Value = aAny;
478 aParameter.Type = EnhancedCustomShapeParameterType::EQUATION;
479 aPropSequence [1].Value = makeAny (aParameter);
482 aPropSequence [2].Name = "RangeYMinimum";
483 EnhancedCustomShapeParameter aParameter;
484 Any aAny ((sal_Int32) 0);
485 aParameter.Value = aAny;
486 aParameter.Type = EnhancedCustomShapeParameterType::NORMAL;
487 aPropSequence [2].Value = makeAny (aParameter);
490 aPropSequence [3].Name = "RefY";
491 Any aAny ((sal_Int32) 1);
492 aPropSequence [3].Value = makeAny (aAny);
494 aPropSequenceSequence [1] = aPropSequence;
497 Sequence< PropertyValue > aPropSequence (4);
499 aPropSequence [0].Name = "Position";
500 static const CustomShapeProvider::ParameterPairData aData =
502 EnhancedCustomShapeParameterType::EQUATION,
503 EnhancedCustomShapeParameterType::NORMAL,
504 18, 0
506 aPropSequence [0].Value = makeAny (createParameterPair(&aData));
509 aPropSequence [1].Name = "RangeXMaximum";
510 EnhancedCustomShapeParameter aParameter;
511 Any aAny ((sal_Int32) 5);
512 aParameter.Value = aAny;
513 aParameter.Type = EnhancedCustomShapeParameterType::EQUATION;
514 aPropSequence [1].Value = makeAny (aParameter);
517 aPropSequence [2].Name = "RangeXMinimum";
518 EnhancedCustomShapeParameter aParameter;
519 Any aAny ((sal_Int32) 0);
520 aParameter.Value = aAny;
521 aParameter.Type = EnhancedCustomShapeParameterType::NORMAL;
522 aPropSequence [2].Value = makeAny (aParameter);
525 aPropSequence [3].Name = "RefX";
526 Any aAny ((sal_Int32) 2);
527 aPropSequence [3].Value = makeAny (aAny);
529 aPropSequenceSequence [2] = aPropSequence;
532 Sequence< PropertyValue > aPropSequence (4);
534 aPropSequence [0].Name = "Position";
535 static const CustomShapeProvider::ParameterPairData aData =
537 EnhancedCustomShapeParameterType::EQUATION,
538 EnhancedCustomShapeParameterType::EQUATION,
539 19, 22
541 aPropSequence [0].Value = makeAny (createParameterPair(&aData));
544 aPropSequence [1].Name = "RangeXMaximum";
545 EnhancedCustomShapeParameter aParameter;
546 Any aAny ((sal_Int32) 8);
547 aParameter.Value = aAny;
548 aParameter.Type = EnhancedCustomShapeParameterType::EQUATION;
549 aPropSequence [1].Value = makeAny (aParameter);
552 aPropSequence [2].Name = "RangeXMinimum";
553 EnhancedCustomShapeParameter aParameter;
554 Any aAny ((sal_Int32) 0);
555 aParameter.Value = aAny;
556 aParameter.Type = EnhancedCustomShapeParameterType::NORMAL;
557 aPropSequence [2].Value = makeAny (aParameter);
560 aPropSequence [3].Name = "RefX";
561 Any aAny ((sal_Int32) 3);
562 aPropSequence [3].Value = makeAny (aAny);
564 aPropSequenceSequence [3] = aPropSequence;
566 aPropertyMap [PROP_Handles] <<= aPropSequenceSequence;
569 aPropertyMap [PROP_MirroredX] <<= Any ((sal_Bool) sal_False);
572 aPropertyMap [PROP_MirroredY] <<= Any ((sal_Bool) sal_False);
575 Sequence< PropertyValue > aPropSequence (3);
577 aPropSequence [0].Name = "Coordinates";
578 static const CustomShapeProvider::ParameterPairData aData[] = {
580 EnhancedCustomShapeParameterType::NORMAL,
581 EnhancedCustomShapeParameterType::NORMAL,
582 0, 0
585 EnhancedCustomShapeParameterType::EQUATION,
586 EnhancedCustomShapeParameterType::NORMAL,
587 19, 0
590 EnhancedCustomShapeParameterType::EQUATION,
591 EnhancedCustomShapeParameterType::EQUATION,
592 19, 14
595 EnhancedCustomShapeParameterType::EQUATION,
596 EnhancedCustomShapeParameterType::EQUATION,
597 18, 14
600 EnhancedCustomShapeParameterType::EQUATION,
601 EnhancedCustomShapeParameterType::EQUATION,
602 18, 13
605 EnhancedCustomShapeParameterType::EQUATION,
606 EnhancedCustomShapeParameterType::EQUATION,
607 21, 12
610 EnhancedCustomShapeParameterType::EQUATION,
611 EnhancedCustomShapeParameterType::EQUATION,
612 18, 16
615 EnhancedCustomShapeParameterType::EQUATION,
616 EnhancedCustomShapeParameterType::EQUATION,
617 18, 15
620 EnhancedCustomShapeParameterType::EQUATION,
621 EnhancedCustomShapeParameterType::EQUATION,
622 19, 15
625 EnhancedCustomShapeParameterType::EQUATION,
626 EnhancedCustomShapeParameterType::EQUATION,
627 19, 22
630 EnhancedCustomShapeParameterType::NORMAL,
631 EnhancedCustomShapeParameterType::EQUATION,
632 0, 22
635 aPropSequence [0].Value = makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData), aData));
638 aPropSequence [1].Name = "Segments";
639 static const sal_uInt16 nValues[] = {
640 // Command, Count
641 1,1,
642 2,10,
643 4,0,
646 aPropSequence [1].Value = makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues ), nValues ));
649 aPropSequence [2].Name = "TextFrames";
650 Sequence< EnhancedCustomShapeTextFrame > aTextFrameSeq (1);
652 EnhancedCustomShapeTextFrame aTextFrame;
654 static const CustomShapeProvider::ParameterPairData aData =
656 EnhancedCustomShapeParameterType::NORMAL,
657 EnhancedCustomShapeParameterType::NORMAL,
658 0, 0
660 aTextFrame.TopLeft = createParameterPair(&aData);
663 static const CustomShapeProvider::ParameterPairData aData =
665 EnhancedCustomShapeParameterType::EQUATION,
666 EnhancedCustomShapeParameterType::EQUATION,
667 19, 22
669 aTextFrame.BottomRight = createParameterPair(&aData);
671 aTextFrameSeq [0] = aTextFrame;
673 aPropSequence [2].Value = makeAny (aTextFrameSeq);
675 aPropertyMap [PROP_Path] <<= aPropSequence;
678 awt::Rectangle aRectangle;
679 aRectangle.X = 0;
680 aRectangle.Y = 0;
681 aRectangle.Width = 0;
682 aRectangle.Height = 0;
683 aPropertyMap [PROP_ViewBox] <<= aRectangle;
685 aPropertyMap [ PROP_Type ] <<= OUString("ooxml-rightArrowCallout");
687 return aPropertyMap;
690 class ShapeCrightBrace : public CustomShapeProvider
692 virtual PropertyMap getProperties()
694 PropertyMap aPropertyMap;
697 Sequence< EnhancedCustomShapeAdjustmentValue > aAdjSequence (2);
699 Any aAny ((sal_Int32) 8333);
700 aAdjSequence [0].Value = aAny;
701 aAdjSequence [0].Name = "adj1";
704 Any aAny ((sal_Int32) 50000);
705 aAdjSequence [1].Value = aAny;
706 aAdjSequence [1].Name = "adj2";
708 aPropertyMap [PROP_AdjustmentValues] <<= aAdjSequence;
711 static const char *aStrings[] = {
712 "if(0-$1 ,0,if(100000-$1 ,$1 ,100000))",
713 "100000+0-?0 ",
714 "min(?1 ,?0 )",
715 "?2 *1/2",
716 "min(logwidth,logheight)",
717 "?3 *logheight/?4 ",
718 "if(0-$0 ,0,if(?5 -$0 ,$0 ,?5 ))",
719 "?4 *?6 /100000",
720 "logheight*?0 /100000",
721 "?8 +0-?7 ",
722 "logheight+0-?7 ",
723 "logwidth/2",
724 "?11 *cos(pi*(2700000)/10800000)",
725 "?7 *sin(pi*(2700000)/10800000)",
726 "0+?12 -0",
727 "?7 +0-?13 ",
728 "logheight+?13 -?7 ",
729 "logwidth/2",
730 "logwidth",
731 "logheight",
732 "(16200000)/60000.0",
733 "(5400000)/60000.0",
734 "(10800000)/60000.0",
735 "(-5400000)/60000.0",
736 "(16200000)/60000.0",
737 "(-5400000)/60000.0",
738 "(0)/60000.0",
739 "(5400000)/60000.0",
740 "(16200000)/60000.0",
741 "(5400000)/60000.0",
742 "(10800000)/60000.0",
743 "(-5400000)/60000.0",
744 "(16200000)/60000.0",
745 "(-5400000)/60000.0",
746 "(0)/60000.0",
747 "(5400000)/60000.0"
749 aPropertyMap [PROP_Equations] <<= createStringSequence( SAL_N_ELEMENTS( aStrings ), aStrings );
752 Sequence< Sequence < PropertyValue > > aPropSequenceSequence (2);
754 Sequence< PropertyValue > aPropSequence (4);
756 aPropSequence [0].Name = "Position";
757 static const CustomShapeProvider::ParameterPairData aData =
759 EnhancedCustomShapeParameterType::EQUATION,
760 EnhancedCustomShapeParameterType::EQUATION,
761 17, 7
763 aPropSequence [0].Value = makeAny (createParameterPair(&aData));
766 aPropSequence [1].Name = "RangeYMaximum";
767 EnhancedCustomShapeParameter aParameter;
768 Any aAny ((sal_Int32) 5);
769 aParameter.Value = aAny;
770 aParameter.Type = EnhancedCustomShapeParameterType::EQUATION;
771 aPropSequence [1].Value = makeAny (aParameter);
774 aPropSequence [2].Name = "RangeYMinimum";
775 EnhancedCustomShapeParameter aParameter;
776 Any aAny ((sal_Int32) 0);
777 aParameter.Value = aAny;
778 aParameter.Type = EnhancedCustomShapeParameterType::NORMAL;
779 aPropSequence [2].Value = makeAny (aParameter);
782 aPropSequence [3].Name = "RefY";
783 Any aAny ((sal_Int32) 0);
784 aPropSequence [3].Value = makeAny (aAny);
786 aPropSequenceSequence [0] = aPropSequence;
789 Sequence< PropertyValue > aPropSequence (4);
791 aPropSequence [0].Name = "Position";
792 static const CustomShapeProvider::ParameterPairData aData =
794 EnhancedCustomShapeParameterType::EQUATION,
795 EnhancedCustomShapeParameterType::EQUATION,
796 18, 8
798 aPropSequence [0].Value = makeAny (createParameterPair(&aData));
801 aPropSequence [1].Name = "RangeYMaximum";
802 EnhancedCustomShapeParameter aParameter;
803 Any aAny ((sal_Int32) 100000);
804 aParameter.Value = aAny;
805 aParameter.Type = EnhancedCustomShapeParameterType::NORMAL;
806 aPropSequence [1].Value = makeAny (aParameter);
809 aPropSequence [2].Name = "RangeYMinimum";
810 EnhancedCustomShapeParameter aParameter;
811 Any aAny ((sal_Int32) 0);
812 aParameter.Value = aAny;
813 aParameter.Type = EnhancedCustomShapeParameterType::NORMAL;
814 aPropSequence [2].Value = makeAny (aParameter);
817 aPropSequence [3].Name = "RefY";
818 Any aAny ((sal_Int32) 1);
819 aPropSequence [3].Value = makeAny (aAny);
821 aPropSequenceSequence [1] = aPropSequence;
823 aPropertyMap [PROP_Handles] <<= aPropSequenceSequence;
826 aPropertyMap [PROP_MirroredX] <<= Any ((sal_Bool) sal_False);
829 aPropertyMap [PROP_MirroredY] <<= Any ((sal_Bool) sal_False);
832 Sequence< PropertyValue > aPropSequence (3);
834 aPropSequence [0].Name = "Coordinates";
835 static const CustomShapeProvider::ParameterPairData aData[] = {
837 EnhancedCustomShapeParameterType::NORMAL,
838 EnhancedCustomShapeParameterType::NORMAL,
839 0, 0
842 EnhancedCustomShapeParameterType::EQUATION,
843 EnhancedCustomShapeParameterType::EQUATION,
844 11, 7
847 EnhancedCustomShapeParameterType::EQUATION,
848 EnhancedCustomShapeParameterType::EQUATION,
849 20, 21
852 EnhancedCustomShapeParameterType::EQUATION,
853 EnhancedCustomShapeParameterType::EQUATION,
854 17, 9
857 EnhancedCustomShapeParameterType::EQUATION,
858 EnhancedCustomShapeParameterType::EQUATION,
859 11, 7
862 EnhancedCustomShapeParameterType::EQUATION,
863 EnhancedCustomShapeParameterType::EQUATION,
864 22, 23
867 EnhancedCustomShapeParameterType::EQUATION,
868 EnhancedCustomShapeParameterType::EQUATION,
869 11, 7
872 EnhancedCustomShapeParameterType::EQUATION,
873 EnhancedCustomShapeParameterType::EQUATION,
874 24, 25
877 EnhancedCustomShapeParameterType::EQUATION,
878 EnhancedCustomShapeParameterType::EQUATION,
879 17, 10
882 EnhancedCustomShapeParameterType::EQUATION,
883 EnhancedCustomShapeParameterType::EQUATION,
884 11, 7
887 EnhancedCustomShapeParameterType::EQUATION,
888 EnhancedCustomShapeParameterType::EQUATION,
889 26, 27
892 EnhancedCustomShapeParameterType::NORMAL,
893 EnhancedCustomShapeParameterType::NORMAL,
894 0, 0
897 EnhancedCustomShapeParameterType::EQUATION,
898 EnhancedCustomShapeParameterType::EQUATION,
899 11, 7
902 EnhancedCustomShapeParameterType::EQUATION,
903 EnhancedCustomShapeParameterType::EQUATION,
904 28, 29
907 EnhancedCustomShapeParameterType::EQUATION,
908 EnhancedCustomShapeParameterType::EQUATION,
909 17, 9
912 EnhancedCustomShapeParameterType::EQUATION,
913 EnhancedCustomShapeParameterType::EQUATION,
914 11, 7
917 EnhancedCustomShapeParameterType::EQUATION,
918 EnhancedCustomShapeParameterType::EQUATION,
919 30, 31
922 EnhancedCustomShapeParameterType::EQUATION,
923 EnhancedCustomShapeParameterType::EQUATION,
924 11, 7
927 EnhancedCustomShapeParameterType::EQUATION,
928 EnhancedCustomShapeParameterType::EQUATION,
929 32, 33
932 EnhancedCustomShapeParameterType::EQUATION,
933 EnhancedCustomShapeParameterType::EQUATION,
934 17, 10
937 EnhancedCustomShapeParameterType::EQUATION,
938 EnhancedCustomShapeParameterType::EQUATION,
939 11, 7
942 EnhancedCustomShapeParameterType::EQUATION,
943 EnhancedCustomShapeParameterType::EQUATION,
944 34, 35
947 aPropSequence [0].Value = makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData), aData));
950 aPropSequence [1].Name = "Segments";
951 static const sal_uInt16 nValues[] = {
952 // Command, Count
953 1,1,
954 17,1,
955 2,1,
956 17,2,
957 2,1,
958 17,1,
959 4,0,
960 7,0,
961 5,0,
962 1,1,
963 17,1,
964 2,1,
965 17,2,
966 2,1,
967 17,1,
968 6,0,
971 aPropSequence [1].Value = makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues ), nValues ));
974 aPropSequence [2].Name = "TextFrames";
975 Sequence< EnhancedCustomShapeTextFrame > aTextFrameSeq (1);
977 EnhancedCustomShapeTextFrame aTextFrame;
979 static const CustomShapeProvider::ParameterPairData aData =
981 EnhancedCustomShapeParameterType::NORMAL,
982 EnhancedCustomShapeParameterType::EQUATION,
983 0, 15
985 aTextFrame.TopLeft = createParameterPair(&aData);
988 static const CustomShapeProvider::ParameterPairData aData =
990 EnhancedCustomShapeParameterType::EQUATION,
991 EnhancedCustomShapeParameterType::EQUATION,
992 14, 16
994 aTextFrame.BottomRight = createParameterPair(&aData);
996 aTextFrameSeq [0] = aTextFrame;
998 aPropSequence [2].Value = makeAny (aTextFrameSeq);
1000 aPropertyMap [PROP_Path] <<= aPropSequence;
1003 awt::Rectangle aRectangle;
1004 aRectangle.X = 0;
1005 aRectangle.Y = 0;
1006 aRectangle.Width = 0;
1007 aRectangle.Height = 0;
1008 aPropertyMap [PROP_ViewBox] <<= aRectangle;
1010 aPropertyMap [ PROP_Type ] <<= OUString("ooxml-rightBrace");
1012 return aPropertyMap;
1015 class ShapeCchartPlus : public CustomShapeProvider
1017 virtual PropertyMap getProperties()
1019 PropertyMap aPropertyMap;
1022 aPropertyMap [PROP_AdjustmentValues] <<= Sequence< OUString >(0);
1025 aPropertyMap [PROP_Equations] <<= Sequence< OUString >(0);
1028 aPropertyMap [PROP_Handles] <<= Sequence< OUString >(0);
1031 aPropertyMap [PROP_MirroredX] <<= Any ((sal_Bool) sal_False);
1034 aPropertyMap [PROP_MirroredY] <<= Any ((sal_Bool) sal_False);
1037 Sequence< PropertyValue > aPropSequence (3);
1039 aPropSequence [0].Name = "Coordinates";
1040 static const CustomShapeProvider::ParameterPairData aData[] = {
1042 EnhancedCustomShapeParameterType::NORMAL,
1043 EnhancedCustomShapeParameterType::NORMAL,
1044 5, 0
1047 EnhancedCustomShapeParameterType::NORMAL,
1048 EnhancedCustomShapeParameterType::NORMAL,
1049 5, 10
1052 EnhancedCustomShapeParameterType::NORMAL,
1053 EnhancedCustomShapeParameterType::NORMAL,
1054 0, 5
1057 EnhancedCustomShapeParameterType::NORMAL,
1058 EnhancedCustomShapeParameterType::NORMAL,
1059 10, 5
1062 EnhancedCustomShapeParameterType::NORMAL,
1063 EnhancedCustomShapeParameterType::NORMAL,
1064 0, 0
1067 EnhancedCustomShapeParameterType::NORMAL,
1068 EnhancedCustomShapeParameterType::NORMAL,
1069 0, 10
1072 EnhancedCustomShapeParameterType::NORMAL,
1073 EnhancedCustomShapeParameterType::NORMAL,
1074 10, 10
1077 EnhancedCustomShapeParameterType::NORMAL,
1078 EnhancedCustomShapeParameterType::NORMAL,
1079 10, 0
1082 aPropSequence [0].Value = makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData), aData));
1085 aPropSequence [1].Name = "Segments";
1086 static const sal_uInt16 nValues[] = {
1087 // Command, Count
1088 1,1,
1089 2,1,
1090 1,1,
1091 2,1,
1092 6,0,
1093 5,0,
1094 1,1,
1095 2,3,
1096 4,0,
1097 7,0,
1100 aPropSequence [1].Value = makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues ), nValues ));
1103 aPropSequence [2].Name = "SubViewSize";
1104 Sequence< awt::Size > aSizeSequence (2);
1106 awt::Size aSize;
1107 aSize.Width = 10;
1108 aSize.Height = 10;
1109 aSizeSequence [0] = aSize;
1112 awt::Size aSize;
1113 aSize.Width = 10;
1114 aSize.Height = 10;
1115 aSizeSequence [1] = aSize;
1117 aPropSequence [2].Value = makeAny (aSizeSequence);
1119 aPropertyMap [PROP_Path] <<= aPropSequence;
1122 awt::Rectangle aRectangle;
1123 aRectangle.X = 0;
1124 aRectangle.Y = 0;
1125 aRectangle.Width = 0;
1126 aRectangle.Height = 0;
1127 aPropertyMap [PROP_ViewBox] <<= aRectangle;
1129 aPropertyMap [ PROP_Type ] <<= OUString("ooxml-chartPlus");
1131 return aPropertyMap;
1134 class ShapeCflowChartManualInput : public CustomShapeProvider
1136 virtual PropertyMap getProperties()
1138 PropertyMap aPropertyMap;
1141 aPropertyMap [PROP_AdjustmentValues] <<= Sequence< OUString >(0);
1144 static const char *aStrings[] = {
1145 "logwidth/2",
1146 "logheight/10",
1147 "logheight/2",
1148 "logheight",
1149 "logwidth",
1150 "logheight/5"
1152 aPropertyMap [PROP_Equations] <<= createStringSequence( SAL_N_ELEMENTS( aStrings ), aStrings );
1155 aPropertyMap [PROP_Handles] <<= Sequence< OUString >(0);
1158 aPropertyMap [PROP_MirroredX] <<= Any ((sal_Bool) sal_False);
1161 aPropertyMap [PROP_MirroredY] <<= Any ((sal_Bool) sal_False);
1164 Sequence< PropertyValue > aPropSequence (4);
1166 aPropSequence [0].Name = "Coordinates";
1167 static const CustomShapeProvider::ParameterPairData aData[] = {
1169 EnhancedCustomShapeParameterType::NORMAL,
1170 EnhancedCustomShapeParameterType::NORMAL,
1171 0, 1
1174 EnhancedCustomShapeParameterType::NORMAL,
1175 EnhancedCustomShapeParameterType::NORMAL,
1176 5, 0
1179 EnhancedCustomShapeParameterType::NORMAL,
1180 EnhancedCustomShapeParameterType::NORMAL,
1181 5, 5
1184 EnhancedCustomShapeParameterType::NORMAL,
1185 EnhancedCustomShapeParameterType::NORMAL,
1186 0, 5
1189 aPropSequence [0].Value = makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData), aData));
1192 aPropSequence [1].Name = "Segments";
1193 static const sal_uInt16 nValues[] = {
1194 // Command, Count
1195 1,1,
1196 2,3,
1197 4,0,
1200 aPropSequence [1].Value = makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues ), nValues ));
1203 aPropSequence [2].Name = "SubViewSize";
1204 Sequence< awt::Size > aSizeSequence (1);
1206 awt::Size aSize;
1207 aSize.Width = 5;
1208 aSize.Height = 5;
1209 aSizeSequence [0] = aSize;
1211 aPropSequence [2].Value = makeAny (aSizeSequence);
1214 aPropSequence [3].Name = "TextFrames";
1215 Sequence< EnhancedCustomShapeTextFrame > aTextFrameSeq (1);
1217 EnhancedCustomShapeTextFrame aTextFrame;
1219 static const CustomShapeProvider::ParameterPairData aData =
1221 EnhancedCustomShapeParameterType::NORMAL,
1222 EnhancedCustomShapeParameterType::EQUATION,
1223 0, 5
1225 aTextFrame.TopLeft = createParameterPair(&aData);
1228 static const CustomShapeProvider::ParameterPairData aData =
1230 EnhancedCustomShapeParameterType::EQUATION,
1231 EnhancedCustomShapeParameterType::EQUATION,
1232 4, 3
1234 aTextFrame.BottomRight = createParameterPair(&aData);
1236 aTextFrameSeq [0] = aTextFrame;
1238 aPropSequence [3].Value = makeAny (aTextFrameSeq);
1240 aPropertyMap [PROP_Path] <<= aPropSequence;
1243 awt::Rectangle aRectangle;
1244 aRectangle.X = 0;
1245 aRectangle.Y = 0;
1246 aRectangle.Width = 0;
1247 aRectangle.Height = 0;
1248 aPropertyMap [PROP_ViewBox] <<= aRectangle;
1250 aPropertyMap [ PROP_Type ] <<= OUString("ooxml-flowChartManualInput");
1252 return aPropertyMap;
1255 class ShapeCflowChartMerge : public CustomShapeProvider
1257 virtual PropertyMap getProperties()
1259 PropertyMap aPropertyMap;
1262 aPropertyMap [PROP_AdjustmentValues] <<= Sequence< OUString >(0);
1265 static const char *aStrings[] = {
1266 "logwidth*3/4",
1267 "logwidth/2",
1268 "logwidth/4",
1269 "logheight/2",
1270 "logheight"
1272 aPropertyMap [PROP_Equations] <<= createStringSequence( SAL_N_ELEMENTS( aStrings ), aStrings );
1275 aPropertyMap [PROP_Handles] <<= Sequence< OUString >(0);
1278 aPropertyMap [PROP_MirroredX] <<= Any ((sal_Bool) sal_False);
1281 aPropertyMap [PROP_MirroredY] <<= Any ((sal_Bool) sal_False);
1284 Sequence< PropertyValue > aPropSequence (4);
1286 aPropSequence [0].Name = "Coordinates";
1287 static const CustomShapeProvider::ParameterPairData aData[] = {
1289 EnhancedCustomShapeParameterType::NORMAL,
1290 EnhancedCustomShapeParameterType::NORMAL,
1291 0, 0
1294 EnhancedCustomShapeParameterType::NORMAL,
1295 EnhancedCustomShapeParameterType::NORMAL,
1296 2, 0
1299 EnhancedCustomShapeParameterType::NORMAL,
1300 EnhancedCustomShapeParameterType::NORMAL,
1301 1, 2
1304 aPropSequence [0].Value = makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData), aData));
1307 aPropSequence [1].Name = "Segments";
1308 static const sal_uInt16 nValues[] = {
1309 // Command, Count
1310 1,1,
1311 2,2,
1312 4,0,
1315 aPropSequence [1].Value = makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues ), nValues ));
1318 aPropSequence [2].Name = "SubViewSize";
1319 Sequence< awt::Size > aSizeSequence (1);
1321 awt::Size aSize;
1322 aSize.Width = 2;
1323 aSize.Height = 2;
1324 aSizeSequence [0] = aSize;
1326 aPropSequence [2].Value = makeAny (aSizeSequence);
1329 aPropSequence [3].Name = "TextFrames";
1330 Sequence< EnhancedCustomShapeTextFrame > aTextFrameSeq (1);
1332 EnhancedCustomShapeTextFrame aTextFrame;
1334 static const CustomShapeProvider::ParameterPairData aData =
1336 EnhancedCustomShapeParameterType::EQUATION,
1337 EnhancedCustomShapeParameterType::NORMAL,
1338 2, 0
1340 aTextFrame.TopLeft = createParameterPair(&aData);
1343 static const CustomShapeProvider::ParameterPairData aData =
1345 EnhancedCustomShapeParameterType::EQUATION,
1346 EnhancedCustomShapeParameterType::EQUATION,
1347 0, 3
1349 aTextFrame.BottomRight = createParameterPair(&aData);
1351 aTextFrameSeq [0] = aTextFrame;
1353 aPropSequence [3].Value = makeAny (aTextFrameSeq);
1355 aPropertyMap [PROP_Path] <<= aPropSequence;
1358 awt::Rectangle aRectangle;
1359 aRectangle.X = 0;
1360 aRectangle.Y = 0;
1361 aRectangle.Width = 0;
1362 aRectangle.Height = 0;
1363 aPropertyMap [PROP_ViewBox] <<= aRectangle;
1365 aPropertyMap [ PROP_Type ] <<= OUString("ooxml-flowChartMerge");
1367 return aPropertyMap;
1370 class ShapeCline : public CustomShapeProvider
1372 virtual PropertyMap getProperties()
1374 PropertyMap aPropertyMap;
1377 aPropertyMap [PROP_AdjustmentValues] <<= Sequence< OUString >(0);
1380 static const char *aStrings[] = {
1381 "logwidth",
1382 "logheight"
1384 aPropertyMap [PROP_Equations] <<= createStringSequence( SAL_N_ELEMENTS( aStrings ), aStrings );
1387 aPropertyMap [PROP_Handles] <<= Sequence< OUString >(0);
1390 aPropertyMap [PROP_MirroredX] <<= Any ((sal_Bool) sal_False);
1393 aPropertyMap [PROP_MirroredY] <<= Any ((sal_Bool) sal_False);
1396 Sequence< PropertyValue > aPropSequence (2);
1398 aPropSequence [0].Name = "Coordinates";
1399 static const CustomShapeProvider::ParameterPairData aData[] = {
1401 EnhancedCustomShapeParameterType::NORMAL,
1402 EnhancedCustomShapeParameterType::NORMAL,
1403 0, 0
1406 EnhancedCustomShapeParameterType::EQUATION,
1407 EnhancedCustomShapeParameterType::EQUATION,
1408 0, 1
1411 aPropSequence [0].Value = makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData), aData));
1414 aPropSequence [1].Name = "Segments";
1415 static const sal_uInt16 nValues[] = {
1416 // Command, Count
1417 1,1,
1418 2,1,
1421 aPropSequence [1].Value = makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues ), nValues ));
1423 aPropertyMap [PROP_Path] <<= aPropSequence;
1426 awt::Rectangle aRectangle;
1427 aRectangle.X = 0;
1428 aRectangle.Y = 0;
1429 aRectangle.Width = 0;
1430 aRectangle.Height = 0;
1431 aPropertyMap [PROP_ViewBox] <<= aRectangle;
1433 aPropertyMap [ PROP_Type ] <<= OUString("ooxml-line");
1435 return aPropertyMap;
1438 class ShapeCdownArrow : public CustomShapeProvider
1440 virtual PropertyMap getProperties()
1442 PropertyMap aPropertyMap;
1445 Sequence< EnhancedCustomShapeAdjustmentValue > aAdjSequence (2);
1447 Any aAny ((sal_Int32) 50000);
1448 aAdjSequence [0].Value = aAny;
1449 aAdjSequence [0].Name = "adj1";
1452 Any aAny ((sal_Int32) 50000);
1453 aAdjSequence [1].Value = aAny;
1454 aAdjSequence [1].Name = "adj2";
1456 aPropertyMap [PROP_AdjustmentValues] <<= aAdjSequence;
1459 static const char *aStrings[] = {
1460 "min(logwidth,logheight)",
1461 "100000*logheight/?0 ",
1462 "if(0-$0 ,0,if(100000-$0 ,$0 ,100000))",
1463 "if(0-$1 ,0,if(?1 -$1 ,$1 ,?1 ))",
1464 "?0 *?3 /100000",
1465 "logheight+0-?4 ",
1466 "logwidth*?2 /200000",
1467 "logwidth/2",
1468 "?7 +0-?6 ",
1469 "?7 +?6 -0",
1470 "logwidth/2",
1471 "?8 *?4 /?10 ",
1472 "?5 +?11 -0",
1473 "logheight",
1474 "logwidth"
1476 aPropertyMap [PROP_Equations] <<= createStringSequence( SAL_N_ELEMENTS( aStrings ), aStrings );
1479 Sequence< Sequence < PropertyValue > > aPropSequenceSequence (2);
1481 Sequence< PropertyValue > aPropSequence (4);
1483 aPropSequence [0].Name = "Position";
1484 static const CustomShapeProvider::ParameterPairData aData =
1486 EnhancedCustomShapeParameterType::EQUATION,
1487 EnhancedCustomShapeParameterType::NORMAL,
1488 8, 0
1490 aPropSequence [0].Value = makeAny (createParameterPair(&aData));
1493 aPropSequence [1].Name = "RangeXMaximum";
1494 EnhancedCustomShapeParameter aParameter;
1495 Any aAny ((sal_Int32) 100000);
1496 aParameter.Value = aAny;
1497 aParameter.Type = EnhancedCustomShapeParameterType::NORMAL;
1498 aPropSequence [1].Value = makeAny (aParameter);
1501 aPropSequence [2].Name = "RangeXMinimum";
1502 EnhancedCustomShapeParameter aParameter;
1503 Any aAny ((sal_Int32) 0);
1504 aParameter.Value = aAny;
1505 aParameter.Type = EnhancedCustomShapeParameterType::NORMAL;
1506 aPropSequence [2].Value = makeAny (aParameter);
1509 aPropSequence [3].Name = "RefX";
1510 Any aAny ((sal_Int32) 0);
1511 aPropSequence [3].Value = makeAny (aAny);
1513 aPropSequenceSequence [0] = aPropSequence;
1516 Sequence< PropertyValue > aPropSequence (4);
1518 aPropSequence [0].Name = "Position";
1519 static const CustomShapeProvider::ParameterPairData aData =
1521 EnhancedCustomShapeParameterType::NORMAL,
1522 EnhancedCustomShapeParameterType::EQUATION,
1523 0, 5
1525 aPropSequence [0].Value = makeAny (createParameterPair(&aData));
1528 aPropSequence [1].Name = "RangeYMaximum";
1529 EnhancedCustomShapeParameter aParameter;
1530 Any aAny ((sal_Int32) 1);
1531 aParameter.Value = aAny;
1532 aParameter.Type = EnhancedCustomShapeParameterType::EQUATION;
1533 aPropSequence [1].Value = makeAny (aParameter);
1536 aPropSequence [2].Name = "RangeYMinimum";
1537 EnhancedCustomShapeParameter aParameter;
1538 Any aAny ((sal_Int32) 0);
1539 aParameter.Value = aAny;
1540 aParameter.Type = EnhancedCustomShapeParameterType::NORMAL;
1541 aPropSequence [2].Value = makeAny (aParameter);
1544 aPropSequence [3].Name = "RefY";
1545 Any aAny ((sal_Int32) 1);
1546 aPropSequence [3].Value = makeAny (aAny);
1548 aPropSequenceSequence [1] = aPropSequence;
1550 aPropertyMap [PROP_Handles] <<= aPropSequenceSequence;
1553 aPropertyMap [PROP_MirroredX] <<= Any ((sal_Bool) sal_False);
1556 aPropertyMap [PROP_MirroredY] <<= Any ((sal_Bool) sal_False);
1559 Sequence< PropertyValue > aPropSequence (3);
1561 aPropSequence [0].Name = "Coordinates";
1562 static const CustomShapeProvider::ParameterPairData aData[] = {
1564 EnhancedCustomShapeParameterType::NORMAL,
1565 EnhancedCustomShapeParameterType::EQUATION,
1566 0, 5
1569 EnhancedCustomShapeParameterType::EQUATION,
1570 EnhancedCustomShapeParameterType::EQUATION,
1571 8, 5
1574 EnhancedCustomShapeParameterType::EQUATION,
1575 EnhancedCustomShapeParameterType::NORMAL,
1576 8, 0
1579 EnhancedCustomShapeParameterType::EQUATION,
1580 EnhancedCustomShapeParameterType::NORMAL,
1581 9, 0
1584 EnhancedCustomShapeParameterType::EQUATION,
1585 EnhancedCustomShapeParameterType::EQUATION,
1586 9, 5
1589 EnhancedCustomShapeParameterType::EQUATION,
1590 EnhancedCustomShapeParameterType::EQUATION,
1591 14, 5
1594 EnhancedCustomShapeParameterType::EQUATION,
1595 EnhancedCustomShapeParameterType::EQUATION,
1596 7, 13
1599 aPropSequence [0].Value = makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData), aData));
1602 aPropSequence [1].Name = "Segments";
1603 static const sal_uInt16 nValues[] = {
1604 // Command, Count
1605 1,1,
1606 2,6,
1607 4,0,
1610 aPropSequence [1].Value = makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues ), nValues ));
1613 aPropSequence [2].Name = "TextFrames";
1614 Sequence< EnhancedCustomShapeTextFrame > aTextFrameSeq (1);
1616 EnhancedCustomShapeTextFrame aTextFrame;
1618 static const CustomShapeProvider::ParameterPairData aData =
1620 EnhancedCustomShapeParameterType::EQUATION,
1621 EnhancedCustomShapeParameterType::NORMAL,
1622 8, 0
1624 aTextFrame.TopLeft = createParameterPair(&aData);
1627 static const CustomShapeProvider::ParameterPairData aData =
1629 EnhancedCustomShapeParameterType::EQUATION,
1630 EnhancedCustomShapeParameterType::EQUATION,
1631 9, 12
1633 aTextFrame.BottomRight = createParameterPair(&aData);
1635 aTextFrameSeq [0] = aTextFrame;
1637 aPropSequence [2].Value = makeAny (aTextFrameSeq);
1639 aPropertyMap [PROP_Path] <<= aPropSequence;
1642 awt::Rectangle aRectangle;
1643 aRectangle.X = 0;
1644 aRectangle.Y = 0;
1645 aRectangle.Width = 0;
1646 aRectangle.Height = 0;
1647 aPropertyMap [PROP_ViewBox] <<= aRectangle;
1649 aPropertyMap [ PROP_Type ] <<= OUString("ooxml-downArrow");
1651 return aPropertyMap;
1654 class ShapeCupArrow : public CustomShapeProvider
1656 virtual PropertyMap getProperties()
1658 PropertyMap aPropertyMap;
1661 Sequence< EnhancedCustomShapeAdjustmentValue > aAdjSequence (2);
1663 Any aAny ((sal_Int32) 50000);
1664 aAdjSequence [0].Value = aAny;
1665 aAdjSequence [0].Name = "adj1";
1668 Any aAny ((sal_Int32) 50000);
1669 aAdjSequence [1].Value = aAny;
1670 aAdjSequence [1].Name = "adj2";
1672 aPropertyMap [PROP_AdjustmentValues] <<= aAdjSequence;
1675 static const char *aStrings[] = {
1676 "min(logwidth,logheight)",
1677 "100000*logheight/?0 ",
1678 "if(0-$0 ,0,if(100000-$0 ,$0 ,100000))",
1679 "if(0-$1 ,0,if(?1 -$1 ,$1 ,?1 ))",
1680 "?0 *?3 /100000",
1681 "0+?4 -0",
1682 "logwidth*?2 /200000",
1683 "logwidth/2",
1684 "?7 +0-?6 ",
1685 "?7 +?6 -0",
1686 "logwidth/2",
1687 "?8 *?4 /?10 ",
1688 "?5 +0 -?11",
1689 "logwidth",
1690 "logheight"
1692 aPropertyMap [PROP_Equations] <<= createStringSequence( SAL_N_ELEMENTS( aStrings ), aStrings );
1695 Sequence< Sequence < PropertyValue > > aPropSequenceSequence (2);
1697 Sequence< PropertyValue > aPropSequence (4);
1699 aPropSequence [0].Name = "Position";
1700 static const CustomShapeProvider::ParameterPairData aData =
1702 EnhancedCustomShapeParameterType::EQUATION,
1703 EnhancedCustomShapeParameterType::EQUATION,
1704 8, 14
1706 aPropSequence [0].Value = makeAny (createParameterPair(&aData));
1709 aPropSequence [1].Name = "RangeXMaximum";
1710 EnhancedCustomShapeParameter aParameter;
1711 Any aAny ((sal_Int32) 100000);
1712 aParameter.Value = aAny;
1713 aParameter.Type = EnhancedCustomShapeParameterType::NORMAL;
1714 aPropSequence [1].Value = makeAny (aParameter);
1717 aPropSequence [2].Name = "RangeXMinimum";
1718 EnhancedCustomShapeParameter aParameter;
1719 Any aAny ((sal_Int32) 0);
1720 aParameter.Value = aAny;
1721 aParameter.Type = EnhancedCustomShapeParameterType::NORMAL;
1722 aPropSequence [2].Value = makeAny (aParameter);
1725 aPropSequence [3].Name = "RefX";
1726 Any aAny ((sal_Int32) 0);
1727 aPropSequence [3].Value = makeAny (aAny);
1729 aPropSequenceSequence [0] = aPropSequence;
1732 Sequence< PropertyValue > aPropSequence (4);
1734 aPropSequence [0].Name = "Position";
1735 static const CustomShapeProvider::ParameterPairData aData =
1737 EnhancedCustomShapeParameterType::NORMAL,
1738 EnhancedCustomShapeParameterType::EQUATION,
1739 0, 5
1741 aPropSequence [0].Value = makeAny (createParameterPair(&aData));
1744 aPropSequence [1].Name = "RangeYMaximum";
1745 EnhancedCustomShapeParameter aParameter;
1746 Any aAny ((sal_Int32) 1);
1747 aParameter.Value = aAny;
1748 aParameter.Type = EnhancedCustomShapeParameterType::EQUATION;
1749 aPropSequence [1].Value = makeAny (aParameter);
1752 aPropSequence [2].Name = "RangeYMinimum";
1753 EnhancedCustomShapeParameter aParameter;
1754 Any aAny ((sal_Int32) 0);
1755 aParameter.Value = aAny;
1756 aParameter.Type = EnhancedCustomShapeParameterType::NORMAL;
1757 aPropSequence [2].Value = makeAny (aParameter);
1760 aPropSequence [3].Name = "RefY";
1761 Any aAny ((sal_Int32) 1);
1762 aPropSequence [3].Value = makeAny (aAny);
1764 aPropSequenceSequence [1] = aPropSequence;
1766 aPropertyMap [PROP_Handles] <<= aPropSequenceSequence;
1769 aPropertyMap [PROP_MirroredX] <<= Any ((sal_Bool) sal_False);
1772 aPropertyMap [PROP_MirroredY] <<= Any ((sal_Bool) sal_False);
1775 Sequence< PropertyValue > aPropSequence (3);
1777 aPropSequence [0].Name = "Coordinates";
1778 static const CustomShapeProvider::ParameterPairData aData[] = {
1780 EnhancedCustomShapeParameterType::EQUATION,
1781 EnhancedCustomShapeParameterType::EQUATION,
1782 8, 5
1785 EnhancedCustomShapeParameterType::NORMAL,
1786 EnhancedCustomShapeParameterType::EQUATION,
1787 0, 5
1790 EnhancedCustomShapeParameterType::EQUATION,
1791 EnhancedCustomShapeParameterType::NORMAL,
1792 7, 0
1795 EnhancedCustomShapeParameterType::EQUATION,
1796 EnhancedCustomShapeParameterType::EQUATION,
1797 13, 5
1800 EnhancedCustomShapeParameterType::EQUATION,
1801 EnhancedCustomShapeParameterType::EQUATION,
1802 9, 5
1805 EnhancedCustomShapeParameterType::EQUATION,
1806 EnhancedCustomShapeParameterType::EQUATION,
1807 9, 14
1810 EnhancedCustomShapeParameterType::EQUATION,
1811 EnhancedCustomShapeParameterType::EQUATION,
1812 8, 14
1815 aPropSequence [0].Value = makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData), aData));
1818 aPropSequence [1].Name = "Segments";
1819 static const sal_uInt16 nValues[] = {
1820 // Command, Count
1821 1,1,
1822 2,6,
1823 4,0,
1826 aPropSequence [1].Value = makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues ), nValues ));
1829 aPropSequence [2].Name = "TextFrames";
1830 Sequence< EnhancedCustomShapeTextFrame > aTextFrameSeq (1);
1832 EnhancedCustomShapeTextFrame aTextFrame;
1834 static const CustomShapeProvider::ParameterPairData aData =
1836 EnhancedCustomShapeParameterType::EQUATION,
1837 EnhancedCustomShapeParameterType::EQUATION,
1838 8, 12
1840 aTextFrame.TopLeft = createParameterPair(&aData);
1843 static const CustomShapeProvider::ParameterPairData aData =
1845 EnhancedCustomShapeParameterType::EQUATION,
1846 EnhancedCustomShapeParameterType::EQUATION,
1847 9, 13
1849 aTextFrame.BottomRight = createParameterPair(&aData);
1851 aTextFrameSeq [0] = aTextFrame;
1853 aPropSequence [2].Value = makeAny (aTextFrameSeq);
1855 aPropertyMap [PROP_Path] <<= aPropSequence;
1858 awt::Rectangle aRectangle;
1859 aRectangle.X = 0;
1860 aRectangle.Y = 0;
1861 aRectangle.Width = 0;
1862 aRectangle.Height = 0;
1863 aPropertyMap [PROP_ViewBox] <<= aRectangle;
1865 aPropertyMap [ PROP_Type ] <<= OUString("ooxml-upArrow");
1867 return aPropertyMap;
1870 class ShapeCcurvedDownArrow : public CustomShapeProvider
1872 virtual PropertyMap getProperties()
1874 PropertyMap aPropertyMap;
1877 Sequence< EnhancedCustomShapeAdjustmentValue > aAdjSequence (3);
1879 Any aAny ((sal_Int32) 25000);
1880 aAdjSequence [0].Value = aAny;
1881 aAdjSequence [0].Name = "adj1";
1884 Any aAny ((sal_Int32) 50000);
1885 aAdjSequence [1].Value = aAny;
1886 aAdjSequence [1].Name = "adj2";
1889 Any aAny ((sal_Int32) 25000);
1890 aAdjSequence [2].Value = aAny;
1891 aAdjSequence [2].Name = "adj3";
1893 aPropertyMap [PROP_AdjustmentValues] <<= aAdjSequence;
1896 static const char *aStrings[] = {
1897 "min(logwidth,logheight)",
1898 "50000*logwidth/?0 ",
1899 "if(0-$1 ,0,if(?1 -$1 ,$1 ,?1 ))",
1900 "if(0-$0 ,0,if(100000-$0 ,$0 ,100000))",
1901 "?0 *?3 /100000",
1902 "?0 *?2 /100000",
1903 "(?4 +?5 )/4",
1904 "logwidth/2",
1905 "?7 +0-?6 ",
1906 "?8 *2/1",
1907 "?9 *?9 /1",
1908 "?4 *?4 /1",
1909 "?10 +0-?11 ",
1910 "sqrt(?12 )",
1911 "?13 *logheight/?9 ",
1912 "100000*?14 /?0 ",
1913 "if(0-$2 ,0,if(?15 -$2 ,$2 ,?15 ))",
1914 "?0 *$2 /100000",
1915 "?8 +?4 -0",
1916 "logheight*logheight/1",
1917 "?17 *?17 /1",
1918 "?19 +0-?20 ",
1919 "sqrt(?21 )",
1920 "?22 *?8 /logheight",
1921 "?8 +?23 -0",
1922 "?18 +?23 -0",
1923 "?5 +0-?4 ",
1924 "?26 *1/2",
1925 "?24 +0-?27 ",
1926 "?25 +?27 -0",
1927 "?5 *1/2",
1928 "logwidth+0-?30 ",
1929 "logheight+0-?17 ",
1930 "(10800000*atan2(?23 ,?17 ))/pi",
1931 "0+0-?33 ",
1932 "logheight+0-?14 ",
1933 "(?8 +?18 )/2",
1934 "?4 *1/2",
1935 "(10800000*atan2(?37 ,?14 ))/pi",
1936 "16200000+?33 -0",
1937 "16200000+0-?38 ",
1938 "?38 +0-5400000",
1939 "5400000+?38 -0",
1940 "logheight",
1941 "logwidth",
1942 "logheight",
1943 "(?39 )/60000.0",
1944 "(?34 )/60000.0",
1945 "(16200000)/60000.0",
1946 "(?33 )/60000.0",
1947 "(?40 )/60000.0",
1948 "(?41 )/60000.0",
1949 "(10800000)/60000.0",
1950 "(?42 )/60000.0",
1951 "(?40 )/60000.0",
1952 "(?41 )/60000.0",
1953 "(10800000)/60000.0",
1954 "(5400000)/60000.0",
1955 "(16200000)/60000.0",
1956 "(?33 )/60000.0",
1957 "(?39 )/60000.0",
1958 "(?34 )/60000.0"
1960 aPropertyMap [PROP_Equations] <<= createStringSequence( SAL_N_ELEMENTS( aStrings ), aStrings );
1963 Sequence< Sequence < PropertyValue > > aPropSequenceSequence (3);
1965 Sequence< PropertyValue > aPropSequence (4);
1967 aPropSequence [0].Name = "Position";
1968 static const CustomShapeProvider::ParameterPairData aData =
1970 EnhancedCustomShapeParameterType::EQUATION,
1971 EnhancedCustomShapeParameterType::EQUATION,
1972 25, 32
1974 aPropSequence [0].Value = makeAny (createParameterPair(&aData));
1977 aPropSequence [1].Name = "RangeXMaximum";
1978 EnhancedCustomShapeParameter aParameter;
1979 Any aAny ((sal_Int32) 1);
1980 aParameter.Value = aAny;
1981 aParameter.Type = EnhancedCustomShapeParameterType::ADJUSTMENT;
1982 aPropSequence [1].Value = makeAny (aParameter);
1985 aPropSequence [2].Name = "RangeXMinimum";
1986 EnhancedCustomShapeParameter aParameter;
1987 Any aAny ((sal_Int32) 0);
1988 aParameter.Value = aAny;
1989 aParameter.Type = EnhancedCustomShapeParameterType::NORMAL;
1990 aPropSequence [2].Value = makeAny (aParameter);
1993 aPropSequence [3].Name = "RefX";
1994 Any aAny ((sal_Int32) 0);
1995 aPropSequence [3].Value = makeAny (aAny);
1997 aPropSequenceSequence [0] = aPropSequence;
2000 Sequence< PropertyValue > aPropSequence (4);
2002 aPropSequence [0].Name = "Position";
2003 static const CustomShapeProvider::ParameterPairData aData =
2005 EnhancedCustomShapeParameterType::EQUATION,
2006 EnhancedCustomShapeParameterType::EQUATION,
2007 28, 43
2009 aPropSequence [0].Value = makeAny (createParameterPair(&aData));
2012 aPropSequence [1].Name = "RangeXMaximum";
2013 EnhancedCustomShapeParameter aParameter;
2014 Any aAny ((sal_Int32) 1);
2015 aParameter.Value = aAny;
2016 aParameter.Type = EnhancedCustomShapeParameterType::EQUATION;
2017 aPropSequence [1].Value = makeAny (aParameter);
2020 aPropSequence [2].Name = "RangeXMinimum";
2021 EnhancedCustomShapeParameter aParameter;
2022 Any aAny ((sal_Int32) 0);
2023 aParameter.Value = aAny;
2024 aParameter.Type = EnhancedCustomShapeParameterType::NORMAL;
2025 aPropSequence [2].Value = makeAny (aParameter);
2028 aPropSequence [3].Name = "RefX";
2029 Any aAny ((sal_Int32) 1);
2030 aPropSequence [3].Value = makeAny (aAny);
2032 aPropSequenceSequence [1] = aPropSequence;
2035 Sequence< PropertyValue > aPropSequence (4);
2037 aPropSequence [0].Name = "Position";
2038 static const CustomShapeProvider::ParameterPairData aData =
2040 EnhancedCustomShapeParameterType::EQUATION,
2041 EnhancedCustomShapeParameterType::EQUATION,
2042 44, 32
2044 aPropSequence [0].Value = makeAny (createParameterPair(&aData));
2047 aPropSequence [1].Name = "RangeYMaximum";
2048 EnhancedCustomShapeParameter aParameter;
2049 Any aAny ((sal_Int32) 15);
2050 aParameter.Value = aAny;
2051 aParameter.Type = EnhancedCustomShapeParameterType::EQUATION;
2052 aPropSequence [1].Value = makeAny (aParameter);
2055 aPropSequence [2].Name = "RangeYMinimum";
2056 EnhancedCustomShapeParameter aParameter;
2057 Any aAny ((sal_Int32) 0);
2058 aParameter.Value = aAny;
2059 aParameter.Type = EnhancedCustomShapeParameterType::NORMAL;
2060 aPropSequence [2].Value = makeAny (aParameter);
2063 aPropSequence [3].Name = "RefY";
2064 Any aAny ((sal_Int32) 2);
2065 aPropSequence [3].Value = makeAny (aAny);
2067 aPropSequenceSequence [2] = aPropSequence;
2069 aPropertyMap [PROP_Handles] <<= aPropSequenceSequence;
2072 aPropertyMap [PROP_MirroredX] <<= Any ((sal_Bool) sal_False);
2075 aPropertyMap [PROP_MirroredY] <<= Any ((sal_Bool) sal_False);
2078 Sequence< PropertyValue > aPropSequence (3);
2080 aPropSequence [0].Name = "Coordinates";
2081 static const CustomShapeProvider::ParameterPairData aData[] = {
2083 EnhancedCustomShapeParameterType::EQUATION,
2084 EnhancedCustomShapeParameterType::EQUATION,
2085 31, 43
2088 EnhancedCustomShapeParameterType::EQUATION,
2089 EnhancedCustomShapeParameterType::EQUATION,
2090 28, 32
2093 EnhancedCustomShapeParameterType::EQUATION,
2094 EnhancedCustomShapeParameterType::EQUATION,
2095 24, 32
2098 EnhancedCustomShapeParameterType::EQUATION,
2099 EnhancedCustomShapeParameterType::EQUATION,
2100 8, 45
2103 EnhancedCustomShapeParameterType::EQUATION,
2104 EnhancedCustomShapeParameterType::EQUATION,
2105 46, 47
2108 EnhancedCustomShapeParameterType::EQUATION,
2109 EnhancedCustomShapeParameterType::NORMAL,
2110 18, 0
2113 EnhancedCustomShapeParameterType::EQUATION,
2114 EnhancedCustomShapeParameterType::EQUATION,
2115 8, 45
2118 EnhancedCustomShapeParameterType::EQUATION,
2119 EnhancedCustomShapeParameterType::EQUATION,
2120 48, 49
2123 EnhancedCustomShapeParameterType::EQUATION,
2124 EnhancedCustomShapeParameterType::EQUATION,
2125 29, 32
2128 EnhancedCustomShapeParameterType::EQUATION,
2129 EnhancedCustomShapeParameterType::EQUATION,
2130 36, 35
2133 EnhancedCustomShapeParameterType::EQUATION,
2134 EnhancedCustomShapeParameterType::EQUATION,
2135 8, 45
2138 EnhancedCustomShapeParameterType::EQUATION,
2139 EnhancedCustomShapeParameterType::EQUATION,
2140 50, 51
2143 EnhancedCustomShapeParameterType::NORMAL,
2144 EnhancedCustomShapeParameterType::EQUATION,
2145 0, 43
2148 EnhancedCustomShapeParameterType::EQUATION,
2149 EnhancedCustomShapeParameterType::EQUATION,
2150 8, 45
2153 EnhancedCustomShapeParameterType::EQUATION,
2154 EnhancedCustomShapeParameterType::EQUATION,
2155 52, 53
2158 EnhancedCustomShapeParameterType::EQUATION,
2159 EnhancedCustomShapeParameterType::EQUATION,
2160 36, 35
2163 EnhancedCustomShapeParameterType::EQUATION,
2164 EnhancedCustomShapeParameterType::EQUATION,
2165 8, 45
2168 EnhancedCustomShapeParameterType::EQUATION,
2169 EnhancedCustomShapeParameterType::EQUATION,
2170 54, 55
2173 EnhancedCustomShapeParameterType::NORMAL,
2174 EnhancedCustomShapeParameterType::EQUATION,
2175 0, 43
2178 EnhancedCustomShapeParameterType::EQUATION,
2179 EnhancedCustomShapeParameterType::EQUATION,
2180 8, 45
2183 EnhancedCustomShapeParameterType::EQUATION,
2184 EnhancedCustomShapeParameterType::EQUATION,
2185 56, 57
2188 EnhancedCustomShapeParameterType::EQUATION,
2189 EnhancedCustomShapeParameterType::NORMAL,
2190 18, 0
2193 EnhancedCustomShapeParameterType::EQUATION,
2194 EnhancedCustomShapeParameterType::EQUATION,
2195 8, 45
2198 EnhancedCustomShapeParameterType::EQUATION,
2199 EnhancedCustomShapeParameterType::EQUATION,
2200 58, 59
2203 EnhancedCustomShapeParameterType::EQUATION,
2204 EnhancedCustomShapeParameterType::EQUATION,
2205 29, 32
2208 EnhancedCustomShapeParameterType::EQUATION,
2209 EnhancedCustomShapeParameterType::EQUATION,
2210 31, 43
2213 EnhancedCustomShapeParameterType::EQUATION,
2214 EnhancedCustomShapeParameterType::EQUATION,
2215 28, 32
2218 EnhancedCustomShapeParameterType::EQUATION,
2219 EnhancedCustomShapeParameterType::EQUATION,
2220 24, 32
2223 EnhancedCustomShapeParameterType::EQUATION,
2224 EnhancedCustomShapeParameterType::EQUATION,
2225 8, 45
2228 EnhancedCustomShapeParameterType::EQUATION,
2229 EnhancedCustomShapeParameterType::EQUATION,
2230 60, 61
2233 aPropSequence [0].Value = makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData), aData));
2236 aPropSequence [1].Name = "Segments";
2237 static const sal_uInt16 nValues[] = {
2238 // Command, Count
2239 1,1,
2240 2,2,
2241 17,1,
2242 2,1,
2243 17,1,
2244 2,1,
2245 4,0,
2246 7,0,
2247 5,0,
2248 1,1,
2249 17,1,
2250 2,1,
2251 17,1,
2252 4,0,
2253 19,0,
2254 7,0,
2255 5,0,
2256 1,1,
2257 17,1,
2258 2,1,
2259 17,1,
2260 2,1,
2261 17,1,
2262 2,4,
2263 17,1,
2264 6,0,
2267 aPropSequence [1].Value = makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues ), nValues ));
2270 aPropSequence [2].Name = "TextFrames";
2271 Sequence< EnhancedCustomShapeTextFrame > aTextFrameSeq (1);
2273 EnhancedCustomShapeTextFrame aTextFrame;
2275 static const CustomShapeProvider::ParameterPairData aData =
2277 EnhancedCustomShapeParameterType::NORMAL,
2278 EnhancedCustomShapeParameterType::NORMAL,
2279 0, 0
2281 aTextFrame.TopLeft = createParameterPair(&aData);
2284 static const CustomShapeProvider::ParameterPairData aData =
2286 EnhancedCustomShapeParameterType::EQUATION,
2287 EnhancedCustomShapeParameterType::EQUATION,
2288 44, 43
2290 aTextFrame.BottomRight = createParameterPair(&aData);
2292 aTextFrameSeq [0] = aTextFrame;
2294 aPropSequence [2].Value = makeAny (aTextFrameSeq);
2296 aPropertyMap [PROP_Path] <<= aPropSequence;
2299 awt::Rectangle aRectangle;
2300 aRectangle.X = 0;
2301 aRectangle.Y = 0;
2302 aRectangle.Width = 0;
2303 aRectangle.Height = 0;
2304 aPropertyMap [PROP_ViewBox] <<= aRectangle;
2306 aPropertyMap [ PROP_Type ] <<= OUString("ooxml-curvedDownArrow");
2308 return aPropertyMap;
2311 class ShapeCactionButtonReturn : public CustomShapeProvider
2313 virtual PropertyMap getProperties()
2315 PropertyMap aPropertyMap;
2318 aPropertyMap [PROP_AdjustmentValues] <<= Sequence< OUString >(0);
2321 static const char *aStrings[] = {
2322 "min(logwidth,logheight)",
2323 "?0 *3/8",
2324 "logheight/2",
2325 "?2 +0-?1 ",
2326 "?2 +?1 -0",
2327 "logwidth/2",
2328 "?5 +0-?1 ",
2329 "?5 +?1 -0",
2330 "?0 *3/4",
2331 "?8 *7/8",
2332 "?8 *3/4",
2333 "?8 *5/8",
2334 "?8 *3/8",
2335 "?8 *1/4",
2336 "?3 +?10 -0",
2337 "?3 +?11 -0",
2338 "?3 +?13 -0",
2339 "?6 +?9 -0",
2340 "?6 +?10 -0",
2341 "?6 +?11 -0",
2342 "?6 +?12 -0",
2343 "?6 +?13 -0",
2344 "?8 *1/8",
2345 "logwidth",
2346 "logheight",
2347 "(0)/60000.0",
2348 "(5400000)/60000.0",
2349 "(5400000)/60000.0",
2350 "(5400000)/60000.0",
2351 "(10800000)/60000.0",
2352 "(-5400000)/60000.0",
2353 "(5400000)/60000.0",
2354 "(-5400000)/60000.0",
2355 "(0)/60000.0",
2356 "(5400000)/60000.0",
2357 "(5400000)/60000.0",
2358 "(5400000)/60000.0",
2359 "(10800000)/60000.0",
2360 "(-5400000)/60000.0",
2361 "(5400000)/60000.0",
2362 "(-5400000)/60000.0",
2363 "(0)/60000.0",
2364 "(5400000)/60000.0",
2365 "(5400000)/60000.0",
2366 "(5400000)/60000.0",
2367 "(10800000)/60000.0",
2368 "(-5400000)/60000.0",
2369 "(5400000)/60000.0",
2370 "(-5400000)/60000.0"
2372 aPropertyMap [PROP_Equations] <<= createStringSequence( SAL_N_ELEMENTS( aStrings ), aStrings );
2375 aPropertyMap [PROP_Handles] <<= Sequence< OUString >(0);
2378 aPropertyMap [PROP_MirroredX] <<= Any ((sal_Bool) sal_False);
2381 aPropertyMap [PROP_MirroredY] <<= Any ((sal_Bool) sal_False);
2384 Sequence< PropertyValue > aPropSequence (3);
2386 aPropSequence [0].Name = "Coordinates";
2387 static const CustomShapeProvider::ParameterPairData aData[] = {
2389 EnhancedCustomShapeParameterType::NORMAL,
2390 EnhancedCustomShapeParameterType::NORMAL,
2391 0, 0
2394 EnhancedCustomShapeParameterType::EQUATION,
2395 EnhancedCustomShapeParameterType::NORMAL,
2396 23, 0
2399 EnhancedCustomShapeParameterType::EQUATION,
2400 EnhancedCustomShapeParameterType::EQUATION,
2401 23, 24
2404 EnhancedCustomShapeParameterType::NORMAL,
2405 EnhancedCustomShapeParameterType::EQUATION,
2406 0, 24
2409 EnhancedCustomShapeParameterType::EQUATION,
2410 EnhancedCustomShapeParameterType::EQUATION,
2411 7, 16
2414 EnhancedCustomShapeParameterType::EQUATION,
2415 EnhancedCustomShapeParameterType::EQUATION,
2416 18, 3
2419 EnhancedCustomShapeParameterType::EQUATION,
2420 EnhancedCustomShapeParameterType::EQUATION,
2421 5, 16
2424 EnhancedCustomShapeParameterType::EQUATION,
2425 EnhancedCustomShapeParameterType::EQUATION,
2426 19, 16
2429 EnhancedCustomShapeParameterType::EQUATION,
2430 EnhancedCustomShapeParameterType::EQUATION,
2431 19, 15
2434 EnhancedCustomShapeParameterType::EQUATION,
2435 EnhancedCustomShapeParameterType::EQUATION,
2436 22, 22
2439 EnhancedCustomShapeParameterType::EQUATION,
2440 EnhancedCustomShapeParameterType::EQUATION,
2441 25, 26
2444 EnhancedCustomShapeParameterType::EQUATION,
2445 EnhancedCustomShapeParameterType::EQUATION,
2446 20, 14
2449 EnhancedCustomShapeParameterType::EQUATION,
2450 EnhancedCustomShapeParameterType::EQUATION,
2451 22, 22
2454 EnhancedCustomShapeParameterType::EQUATION,
2455 EnhancedCustomShapeParameterType::EQUATION,
2456 27, 28
2459 EnhancedCustomShapeParameterType::EQUATION,
2460 EnhancedCustomShapeParameterType::EQUATION,
2461 21, 16
2464 EnhancedCustomShapeParameterType::EQUATION,
2465 EnhancedCustomShapeParameterType::EQUATION,
2466 6, 16
2469 EnhancedCustomShapeParameterType::EQUATION,
2470 EnhancedCustomShapeParameterType::EQUATION,
2471 6, 15
2474 EnhancedCustomShapeParameterType::EQUATION,
2475 EnhancedCustomShapeParameterType::EQUATION,
2476 12, 12
2479 EnhancedCustomShapeParameterType::EQUATION,
2480 EnhancedCustomShapeParameterType::EQUATION,
2481 29, 30
2484 EnhancedCustomShapeParameterType::EQUATION,
2485 EnhancedCustomShapeParameterType::EQUATION,
2486 5, 4
2489 EnhancedCustomShapeParameterType::EQUATION,
2490 EnhancedCustomShapeParameterType::EQUATION,
2491 12, 12
2494 EnhancedCustomShapeParameterType::EQUATION,
2495 EnhancedCustomShapeParameterType::EQUATION,
2496 31, 32
2499 EnhancedCustomShapeParameterType::EQUATION,
2500 EnhancedCustomShapeParameterType::EQUATION,
2501 17, 16
2504 EnhancedCustomShapeParameterType::EQUATION,
2505 EnhancedCustomShapeParameterType::EQUATION,
2506 7, 16
2509 EnhancedCustomShapeParameterType::EQUATION,
2510 EnhancedCustomShapeParameterType::EQUATION,
2511 18, 3
2514 EnhancedCustomShapeParameterType::EQUATION,
2515 EnhancedCustomShapeParameterType::EQUATION,
2516 5, 16
2519 EnhancedCustomShapeParameterType::EQUATION,
2520 EnhancedCustomShapeParameterType::EQUATION,
2521 19, 16
2524 EnhancedCustomShapeParameterType::EQUATION,
2525 EnhancedCustomShapeParameterType::EQUATION,
2526 19, 15
2529 EnhancedCustomShapeParameterType::EQUATION,
2530 EnhancedCustomShapeParameterType::EQUATION,
2531 22, 22
2534 EnhancedCustomShapeParameterType::EQUATION,
2535 EnhancedCustomShapeParameterType::EQUATION,
2536 33, 34
2539 EnhancedCustomShapeParameterType::EQUATION,
2540 EnhancedCustomShapeParameterType::EQUATION,
2541 20, 14
2544 EnhancedCustomShapeParameterType::EQUATION,
2545 EnhancedCustomShapeParameterType::EQUATION,
2546 22, 22
2549 EnhancedCustomShapeParameterType::EQUATION,
2550 EnhancedCustomShapeParameterType::EQUATION,
2551 35, 36
2554 EnhancedCustomShapeParameterType::EQUATION,
2555 EnhancedCustomShapeParameterType::EQUATION,
2556 21, 16
2559 EnhancedCustomShapeParameterType::EQUATION,
2560 EnhancedCustomShapeParameterType::EQUATION,
2561 6, 16
2564 EnhancedCustomShapeParameterType::EQUATION,
2565 EnhancedCustomShapeParameterType::EQUATION,
2566 6, 15
2569 EnhancedCustomShapeParameterType::EQUATION,
2570 EnhancedCustomShapeParameterType::EQUATION,
2571 12, 12
2574 EnhancedCustomShapeParameterType::EQUATION,
2575 EnhancedCustomShapeParameterType::EQUATION,
2576 37, 38
2579 EnhancedCustomShapeParameterType::EQUATION,
2580 EnhancedCustomShapeParameterType::EQUATION,
2581 5, 4
2584 EnhancedCustomShapeParameterType::EQUATION,
2585 EnhancedCustomShapeParameterType::EQUATION,
2586 12, 12
2589 EnhancedCustomShapeParameterType::EQUATION,
2590 EnhancedCustomShapeParameterType::EQUATION,
2591 39, 40
2594 EnhancedCustomShapeParameterType::EQUATION,
2595 EnhancedCustomShapeParameterType::EQUATION,
2596 17, 16
2599 EnhancedCustomShapeParameterType::EQUATION,
2600 EnhancedCustomShapeParameterType::EQUATION,
2601 7, 16
2604 EnhancedCustomShapeParameterType::EQUATION,
2605 EnhancedCustomShapeParameterType::EQUATION,
2606 17, 16
2609 EnhancedCustomShapeParameterType::EQUATION,
2610 EnhancedCustomShapeParameterType::EQUATION,
2611 17, 15
2614 EnhancedCustomShapeParameterType::EQUATION,
2615 EnhancedCustomShapeParameterType::EQUATION,
2616 12, 12
2619 EnhancedCustomShapeParameterType::EQUATION,
2620 EnhancedCustomShapeParameterType::EQUATION,
2621 41, 42
2624 EnhancedCustomShapeParameterType::EQUATION,
2625 EnhancedCustomShapeParameterType::EQUATION,
2626 20, 4
2629 EnhancedCustomShapeParameterType::EQUATION,
2630 EnhancedCustomShapeParameterType::EQUATION,
2631 12, 12
2634 EnhancedCustomShapeParameterType::EQUATION,
2635 EnhancedCustomShapeParameterType::EQUATION,
2636 43, 44
2639 EnhancedCustomShapeParameterType::EQUATION,
2640 EnhancedCustomShapeParameterType::EQUATION,
2641 6, 16
2644 EnhancedCustomShapeParameterType::EQUATION,
2645 EnhancedCustomShapeParameterType::EQUATION,
2646 21, 16
2649 EnhancedCustomShapeParameterType::EQUATION,
2650 EnhancedCustomShapeParameterType::EQUATION,
2651 21, 15
2654 EnhancedCustomShapeParameterType::EQUATION,
2655 EnhancedCustomShapeParameterType::EQUATION,
2656 22, 22
2659 EnhancedCustomShapeParameterType::EQUATION,
2660 EnhancedCustomShapeParameterType::EQUATION,
2661 45, 46
2664 EnhancedCustomShapeParameterType::EQUATION,
2665 EnhancedCustomShapeParameterType::EQUATION,
2666 5, 14
2669 EnhancedCustomShapeParameterType::EQUATION,
2670 EnhancedCustomShapeParameterType::EQUATION,
2671 22, 22
2674 EnhancedCustomShapeParameterType::EQUATION,
2675 EnhancedCustomShapeParameterType::EQUATION,
2676 47, 48
2679 EnhancedCustomShapeParameterType::EQUATION,
2680 EnhancedCustomShapeParameterType::EQUATION,
2681 19, 16
2684 EnhancedCustomShapeParameterType::EQUATION,
2685 EnhancedCustomShapeParameterType::EQUATION,
2686 5, 16
2689 EnhancedCustomShapeParameterType::EQUATION,
2690 EnhancedCustomShapeParameterType::EQUATION,
2691 18, 3
2694 EnhancedCustomShapeParameterType::NORMAL,
2695 EnhancedCustomShapeParameterType::NORMAL,
2696 0, 0
2699 EnhancedCustomShapeParameterType::EQUATION,
2700 EnhancedCustomShapeParameterType::NORMAL,
2701 23, 0
2704 EnhancedCustomShapeParameterType::EQUATION,
2705 EnhancedCustomShapeParameterType::EQUATION,
2706 23, 24
2709 EnhancedCustomShapeParameterType::NORMAL,
2710 EnhancedCustomShapeParameterType::EQUATION,
2711 0, 24
2714 aPropSequence [0].Value = makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData), aData));
2717 aPropSequence [1].Name = "Segments";
2718 static const sal_uInt16 nValues[] = {
2719 // Command, Count
2720 1,1,
2721 2,3,
2722 4,0,
2723 1,1,
2724 2,4,
2725 17,1,
2726 2,1,
2727 17,1,
2728 2,3,
2729 17,1,
2730 2,1,
2731 17,1,
2732 2,1,
2733 4,0,
2734 7,0,
2735 5,0,
2736 1,1,
2737 2,4,
2738 17,1,
2739 2,1,
2740 17,1,
2741 2,3,
2742 17,1,
2743 2,1,
2744 17,1,
2745 2,1,
2746 4,0,
2747 18,0,
2748 7,0,
2749 5,0,
2750 1,1,
2751 2,2,
2752 17,1,
2753 2,1,
2754 17,1,
2755 2,3,
2756 17,1,
2757 2,1,
2758 17,1,
2759 2,3,
2760 4,0,
2761 6,0,
2762 5,0,
2763 1,1,
2764 2,3,
2765 4,0,
2766 6,0,
2769 aPropSequence [1].Value = makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues ), nValues ));
2772 aPropSequence [2].Name = "TextFrames";
2773 Sequence< EnhancedCustomShapeTextFrame > aTextFrameSeq (1);
2775 EnhancedCustomShapeTextFrame aTextFrame;
2777 static const CustomShapeProvider::ParameterPairData aData =
2779 EnhancedCustomShapeParameterType::NORMAL,
2780 EnhancedCustomShapeParameterType::NORMAL,
2781 0, 0
2783 aTextFrame.TopLeft = createParameterPair(&aData);
2786 static const CustomShapeProvider::ParameterPairData aData =
2788 EnhancedCustomShapeParameterType::EQUATION,
2789 EnhancedCustomShapeParameterType::EQUATION,
2790 23, 24
2792 aTextFrame.BottomRight = createParameterPair(&aData);
2794 aTextFrameSeq [0] = aTextFrame;
2796 aPropSequence [2].Value = makeAny (aTextFrameSeq);
2798 aPropertyMap [PROP_Path] <<= aPropSequence;
2801 awt::Rectangle aRectangle;
2802 aRectangle.X = 0;
2803 aRectangle.Y = 0;
2804 aRectangle.Width = 0;
2805 aRectangle.Height = 0;
2806 aPropertyMap [PROP_ViewBox] <<= aRectangle;
2808 aPropertyMap [ PROP_Type ] <<= OUString("ooxml-actionButtonReturn");
2810 return aPropertyMap;
2813 class ShapeCflowChartInputOutput : public CustomShapeProvider
2815 virtual PropertyMap getProperties()
2817 PropertyMap aPropertyMap;
2820 aPropertyMap [PROP_AdjustmentValues] <<= Sequence< OUString >(0);
2823 static const char *aStrings[] = {
2824 "logwidth*2/5",
2825 "logwidth*3/5",
2826 "logwidth*4/5",
2827 "logwidth*9/10",
2828 "logwidth/2",
2829 "logwidth/10",
2830 "logheight/2",
2831 "logheight",
2832 "logwidth/5"
2834 aPropertyMap [PROP_Equations] <<= createStringSequence( SAL_N_ELEMENTS( aStrings ), aStrings );
2837 aPropertyMap [PROP_Handles] <<= Sequence< OUString >(0);
2840 aPropertyMap [PROP_MirroredX] <<= Any ((sal_Bool) sal_False);
2843 aPropertyMap [PROP_MirroredY] <<= Any ((sal_Bool) sal_False);
2846 Sequence< PropertyValue > aPropSequence (4);
2848 aPropSequence [0].Name = "Coordinates";
2849 static const CustomShapeProvider::ParameterPairData aData[] = {
2851 EnhancedCustomShapeParameterType::NORMAL,
2852 EnhancedCustomShapeParameterType::NORMAL,
2853 0, 5
2856 EnhancedCustomShapeParameterType::NORMAL,
2857 EnhancedCustomShapeParameterType::NORMAL,
2858 1, 0
2861 EnhancedCustomShapeParameterType::NORMAL,
2862 EnhancedCustomShapeParameterType::NORMAL,
2863 5, 0
2866 EnhancedCustomShapeParameterType::NORMAL,
2867 EnhancedCustomShapeParameterType::NORMAL,
2868 4, 5
2871 aPropSequence [0].Value = makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData), aData));
2874 aPropSequence [1].Name = "Segments";
2875 static const sal_uInt16 nValues[] = {
2876 // Command, Count
2877 1,1,
2878 2,3,
2879 4,0,
2882 aPropSequence [1].Value = makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues ), nValues ));
2885 aPropSequence [2].Name = "SubViewSize";
2886 Sequence< awt::Size > aSizeSequence (1);
2888 awt::Size aSize;
2889 aSize.Width = 5;
2890 aSize.Height = 5;
2891 aSizeSequence [0] = aSize;
2893 aPropSequence [2].Value = makeAny (aSizeSequence);
2896 aPropSequence [3].Name = "TextFrames";
2897 Sequence< EnhancedCustomShapeTextFrame > aTextFrameSeq (1);
2899 EnhancedCustomShapeTextFrame aTextFrame;
2901 static const CustomShapeProvider::ParameterPairData aData =
2903 EnhancedCustomShapeParameterType::EQUATION,
2904 EnhancedCustomShapeParameterType::NORMAL,
2905 8, 0
2907 aTextFrame.TopLeft = createParameterPair(&aData);
2910 static const CustomShapeProvider::ParameterPairData aData =
2912 EnhancedCustomShapeParameterType::EQUATION,
2913 EnhancedCustomShapeParameterType::EQUATION,
2914 2, 7
2916 aTextFrame.BottomRight = createParameterPair(&aData);
2918 aTextFrameSeq [0] = aTextFrame;
2920 aPropSequence [3].Value = makeAny (aTextFrameSeq);
2922 aPropertyMap [PROP_Path] <<= aPropSequence;
2925 awt::Rectangle aRectangle;
2926 aRectangle.X = 0;
2927 aRectangle.Y = 0;
2928 aRectangle.Width = 0;
2929 aRectangle.Height = 0;
2930 aPropertyMap [PROP_ViewBox] <<= aRectangle;
2932 aPropertyMap [ PROP_Type ] <<= OUString("ooxml-flowChartInputOutput");
2934 return aPropertyMap;
2937 class ShapeCbracketPair : public CustomShapeProvider
2939 virtual PropertyMap getProperties()
2941 PropertyMap aPropertyMap;
2944 Sequence< EnhancedCustomShapeAdjustmentValue > aAdjSequence (1);
2946 Any aAny ((sal_Int32) 16667);
2947 aAdjSequence [0].Value = aAny;
2948 aAdjSequence [0].Name = "adj";
2950 aPropertyMap [PROP_AdjustmentValues] <<= aAdjSequence;
2953 static const char *aStrings[] = {
2954 "if(0-$0 ,0,if(50000-$0 ,$0 ,50000))",
2955 "min(logwidth,logheight)",
2956 "?1 *?0 /100000",
2957 "logwidth+0-?2 ",
2958 "logheight+0-?2 ",
2959 "?2 *29289/100000",
2960 "logwidth+0-?5 ",
2961 "logheight+0-?5 ",
2962 "logwidth/2",
2963 "logheight/2",
2964 "logheight",
2965 "logwidth",
2966 "(10800000)/60000.0",
2967 "(5400000)/60000.0",
2968 "(16200000)/60000.0",
2969 "(5400000)/60000.0",
2970 "(0)/60000.0",
2971 "(5400000)/60000.0",
2972 "(5400000)/60000.0",
2973 "(5400000)/60000.0",
2974 "(5400000)/60000.0",
2975 "(5400000)/60000.0",
2976 "(10800000)/60000.0",
2977 "(5400000)/60000.0",
2978 "(16200000)/60000.0",
2979 "(5400000)/60000.0",
2980 "(0)/60000.0",
2981 "(5400000)/60000.0"
2983 aPropertyMap [PROP_Equations] <<= createStringSequence( SAL_N_ELEMENTS( aStrings ), aStrings );
2986 Sequence< Sequence < PropertyValue > > aPropSequenceSequence (1);
2988 Sequence< PropertyValue > aPropSequence (4);
2990 aPropSequence [0].Name = "Position";
2991 static const CustomShapeProvider::ParameterPairData aData =
2993 EnhancedCustomShapeParameterType::NORMAL,
2994 EnhancedCustomShapeParameterType::EQUATION,
2995 0, 2
2997 aPropSequence [0].Value = makeAny (createParameterPair(&aData));
3000 aPropSequence [1].Name = "RangeYMaximum";
3001 EnhancedCustomShapeParameter aParameter;
3002 Any aAny ((sal_Int32) 50000);
3003 aParameter.Value = aAny;
3004 aParameter.Type = EnhancedCustomShapeParameterType::NORMAL;
3005 aPropSequence [1].Value = makeAny (aParameter);
3008 aPropSequence [2].Name = "RangeYMinimum";
3009 EnhancedCustomShapeParameter aParameter;
3010 Any aAny ((sal_Int32) 0);
3011 aParameter.Value = aAny;
3012 aParameter.Type = EnhancedCustomShapeParameterType::NORMAL;
3013 aPropSequence [2].Value = makeAny (aParameter);
3016 aPropSequence [3].Name = "RefY";
3017 Any aAny ((sal_Int32) 0);
3018 aPropSequence [3].Value = makeAny (aAny);
3020 aPropSequenceSequence [0] = aPropSequence;
3022 aPropertyMap [PROP_Handles] <<= aPropSequenceSequence;
3025 aPropertyMap [PROP_MirroredX] <<= Any ((sal_Bool) sal_False);
3028 aPropertyMap [PROP_MirroredY] <<= Any ((sal_Bool) sal_False);
3031 Sequence< PropertyValue > aPropSequence (3);
3033 aPropSequence [0].Name = "Coordinates";
3034 static const CustomShapeProvider::ParameterPairData aData[] = {
3036 EnhancedCustomShapeParameterType::NORMAL,
3037 EnhancedCustomShapeParameterType::EQUATION,
3038 0, 2
3041 EnhancedCustomShapeParameterType::EQUATION,
3042 EnhancedCustomShapeParameterType::EQUATION,
3043 2, 2
3046 EnhancedCustomShapeParameterType::EQUATION,
3047 EnhancedCustomShapeParameterType::EQUATION,
3048 12, 13
3051 EnhancedCustomShapeParameterType::EQUATION,
3052 EnhancedCustomShapeParameterType::NORMAL,
3053 3, 0
3056 EnhancedCustomShapeParameterType::EQUATION,
3057 EnhancedCustomShapeParameterType::EQUATION,
3058 2, 2
3061 EnhancedCustomShapeParameterType::EQUATION,
3062 EnhancedCustomShapeParameterType::EQUATION,
3063 14, 15
3066 EnhancedCustomShapeParameterType::EQUATION,
3067 EnhancedCustomShapeParameterType::EQUATION,
3068 11, 4
3071 EnhancedCustomShapeParameterType::EQUATION,
3072 EnhancedCustomShapeParameterType::EQUATION,
3073 2, 2
3076 EnhancedCustomShapeParameterType::EQUATION,
3077 EnhancedCustomShapeParameterType::EQUATION,
3078 16, 17
3081 EnhancedCustomShapeParameterType::EQUATION,
3082 EnhancedCustomShapeParameterType::EQUATION,
3083 2, 10
3086 EnhancedCustomShapeParameterType::EQUATION,
3087 EnhancedCustomShapeParameterType::EQUATION,
3088 2, 2
3091 EnhancedCustomShapeParameterType::EQUATION,
3092 EnhancedCustomShapeParameterType::EQUATION,
3093 18, 19
3096 EnhancedCustomShapeParameterType::EQUATION,
3097 EnhancedCustomShapeParameterType::EQUATION,
3098 2, 10
3101 EnhancedCustomShapeParameterType::EQUATION,
3102 EnhancedCustomShapeParameterType::EQUATION,
3103 2, 2
3106 EnhancedCustomShapeParameterType::EQUATION,
3107 EnhancedCustomShapeParameterType::EQUATION,
3108 20, 21
3111 EnhancedCustomShapeParameterType::NORMAL,
3112 EnhancedCustomShapeParameterType::EQUATION,
3113 0, 2
3116 EnhancedCustomShapeParameterType::EQUATION,
3117 EnhancedCustomShapeParameterType::EQUATION,
3118 2, 2
3121 EnhancedCustomShapeParameterType::EQUATION,
3122 EnhancedCustomShapeParameterType::EQUATION,
3123 22, 23
3126 EnhancedCustomShapeParameterType::EQUATION,
3127 EnhancedCustomShapeParameterType::NORMAL,
3128 3, 0
3131 EnhancedCustomShapeParameterType::EQUATION,
3132 EnhancedCustomShapeParameterType::EQUATION,
3133 2, 2
3136 EnhancedCustomShapeParameterType::EQUATION,
3137 EnhancedCustomShapeParameterType::EQUATION,
3138 24, 25
3141 EnhancedCustomShapeParameterType::EQUATION,
3142 EnhancedCustomShapeParameterType::EQUATION,
3143 11, 4
3146 EnhancedCustomShapeParameterType::EQUATION,
3147 EnhancedCustomShapeParameterType::EQUATION,
3148 2, 2
3151 EnhancedCustomShapeParameterType::EQUATION,
3152 EnhancedCustomShapeParameterType::EQUATION,
3153 26, 27
3156 aPropSequence [0].Value = makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData), aData));
3159 aPropSequence [1].Name = "Segments";
3160 static const sal_uInt16 nValues[] = {
3161 // Command, Count
3162 1,1,
3163 17,1,
3164 2,1,
3165 17,1,
3166 2,1,
3167 17,1,
3168 2,1,
3169 17,1,
3170 4,0,
3171 7,0,
3172 5,0,
3173 1,1,
3174 17,1,
3175 2,1,
3176 17,1,
3177 1,1,
3178 17,1,
3179 2,1,
3180 17,1,
3181 6,0,
3184 aPropSequence [1].Value = makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues ), nValues ));
3187 aPropSequence [2].Name = "TextFrames";
3188 Sequence< EnhancedCustomShapeTextFrame > aTextFrameSeq (1);
3190 EnhancedCustomShapeTextFrame aTextFrame;
3192 static const CustomShapeProvider::ParameterPairData aData =
3194 EnhancedCustomShapeParameterType::EQUATION,
3195 EnhancedCustomShapeParameterType::EQUATION,
3196 5, 5
3198 aTextFrame.TopLeft = createParameterPair(&aData);
3201 static const CustomShapeProvider::ParameterPairData aData =
3203 EnhancedCustomShapeParameterType::EQUATION,
3204 EnhancedCustomShapeParameterType::EQUATION,
3205 6, 7
3207 aTextFrame.BottomRight = createParameterPair(&aData);
3209 aTextFrameSeq [0] = aTextFrame;
3211 aPropSequence [2].Value = makeAny (aTextFrameSeq);
3213 aPropertyMap [PROP_Path] <<= aPropSequence;
3216 awt::Rectangle aRectangle;
3217 aRectangle.X = 0;
3218 aRectangle.Y = 0;
3219 aRectangle.Width = 0;
3220 aRectangle.Height = 0;
3221 aPropertyMap [PROP_ViewBox] <<= aRectangle;
3223 aPropertyMap [ PROP_Type ] <<= OUString("ooxml-bracketPair");
3225 return aPropertyMap;
3228 class ShapeCsmileyFace : public CustomShapeProvider
3230 virtual PropertyMap getProperties()
3232 PropertyMap aPropertyMap;
3235 Sequence< EnhancedCustomShapeAdjustmentValue > aAdjSequence (1);
3237 Any aAny ((sal_Int32) 4653);
3238 aAdjSequence [0].Value = aAny;
3239 aAdjSequence [0].Name = "adj";
3241 aPropertyMap [PROP_AdjustmentValues] <<= aAdjSequence;
3244 static const char *aStrings[] = {
3245 "if(-4653-$0 ,-4653,if(4653-$0 ,$0 ,4653))",
3246 "logwidth*4969/21699",
3247 "logwidth*6215/21600",
3248 "logwidth*13135/21600",
3249 "logwidth*16640/21600",
3250 "logheight*7570/21600",
3251 "logheight*16515/21600",
3252 "logheight*?0 /100000",
3253 "?6 +0-?7 ",
3254 "?6 +?7 -0",
3255 "logheight*?0 /50000",
3256 "?9 +?10 -0",
3257 "logwidth/2",
3258 "?12 *cos(pi*(2700000)/10800000)",
3259 "logheight/2",
3260 "?14 *sin(pi*(2700000)/10800000)",
3261 "logwidth/2",
3262 "?16 +0-?13 ",
3263 "?16 +?13 -0",
3264 "logheight/2",
3265 "?19 +0-?15 ",
3266 "?19 +?15 -0",
3267 "logwidth*1125/21600",
3268 "logheight*1125/21600",
3269 "logheight",
3270 "logwidth",
3271 "(10800000)/60000.0",
3272 "(21600000)/60000.0",
3273 "(10800000)/60000.0",
3274 "(21600000)/60000.0",
3275 "(10800000)/60000.0",
3276 "(21600000)/60000.0",
3277 "(10800000)/60000.0",
3278 "(21600000)/60000.0"
3280 aPropertyMap [PROP_Equations] <<= createStringSequence( SAL_N_ELEMENTS( aStrings ), aStrings );
3283 Sequence< Sequence < PropertyValue > > aPropSequenceSequence (1);
3285 Sequence< PropertyValue > aPropSequence (4);
3287 aPropSequence [0].Name = "Position";
3288 static const CustomShapeProvider::ParameterPairData aData =
3290 EnhancedCustomShapeParameterType::EQUATION,
3291 EnhancedCustomShapeParameterType::EQUATION,
3292 16, 9
3294 aPropSequence [0].Value = makeAny (createParameterPair(&aData));
3297 aPropSequence [1].Name = "RangeYMaximum";
3298 EnhancedCustomShapeParameter aParameter;
3299 Any aAny ((sal_Int32) 4653);
3300 aParameter.Value = aAny;
3301 aParameter.Type = EnhancedCustomShapeParameterType::NORMAL;
3302 aPropSequence [1].Value = makeAny (aParameter);
3305 aPropSequence [2].Name = "RangeYMinimum";
3306 EnhancedCustomShapeParameter aParameter;
3307 Any aAny ((sal_Int32) -4653);
3308 aParameter.Value = aAny;
3309 aParameter.Type = EnhancedCustomShapeParameterType::NORMAL;
3310 aPropSequence [2].Value = makeAny (aParameter);
3313 aPropSequence [3].Name = "RefY";
3314 Any aAny ((sal_Int32) 0);
3315 aPropSequence [3].Value = makeAny (aAny);
3317 aPropSequenceSequence [0] = aPropSequence;
3319 aPropertyMap [PROP_Handles] <<= aPropSequenceSequence;
3322 aPropertyMap [PROP_MirroredX] <<= Any ((sal_Bool) sal_False);
3325 aPropertyMap [PROP_MirroredY] <<= Any ((sal_Bool) sal_False);
3328 Sequence< PropertyValue > aPropSequence (3);
3330 aPropSequence [0].Name = "Coordinates";
3331 static const CustomShapeProvider::ParameterPairData aData[] = {
3333 EnhancedCustomShapeParameterType::NORMAL,
3334 EnhancedCustomShapeParameterType::EQUATION,
3335 0, 19
3338 EnhancedCustomShapeParameterType::EQUATION,
3339 EnhancedCustomShapeParameterType::EQUATION,
3340 12, 14
3343 EnhancedCustomShapeParameterType::EQUATION,
3344 EnhancedCustomShapeParameterType::EQUATION,
3345 26, 27
3348 EnhancedCustomShapeParameterType::EQUATION,
3349 EnhancedCustomShapeParameterType::EQUATION,
3350 2, 5
3353 EnhancedCustomShapeParameterType::EQUATION,
3354 EnhancedCustomShapeParameterType::EQUATION,
3355 22, 23
3358 EnhancedCustomShapeParameterType::EQUATION,
3359 EnhancedCustomShapeParameterType::EQUATION,
3360 28, 29
3363 EnhancedCustomShapeParameterType::EQUATION,
3364 EnhancedCustomShapeParameterType::EQUATION,
3365 3, 5
3368 EnhancedCustomShapeParameterType::EQUATION,
3369 EnhancedCustomShapeParameterType::EQUATION,
3370 22, 23
3373 EnhancedCustomShapeParameterType::EQUATION,
3374 EnhancedCustomShapeParameterType::EQUATION,
3375 30, 31
3378 EnhancedCustomShapeParameterType::EQUATION,
3379 EnhancedCustomShapeParameterType::EQUATION,
3380 1, 8
3383 EnhancedCustomShapeParameterType::EQUATION,
3384 EnhancedCustomShapeParameterType::EQUATION,
3385 16, 11
3388 EnhancedCustomShapeParameterType::EQUATION,
3389 EnhancedCustomShapeParameterType::EQUATION,
3390 4, 8
3393 EnhancedCustomShapeParameterType::NORMAL,
3394 EnhancedCustomShapeParameterType::EQUATION,
3395 0, 19
3398 EnhancedCustomShapeParameterType::EQUATION,
3399 EnhancedCustomShapeParameterType::EQUATION,
3400 12, 14
3403 EnhancedCustomShapeParameterType::EQUATION,
3404 EnhancedCustomShapeParameterType::EQUATION,
3405 32, 33
3408 aPropSequence [0].Value = makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData), aData));
3411 aPropSequence [1].Name = "Segments";
3412 static const sal_uInt16 nValues[] = {
3413 // Command, Count
3414 1,1,
3415 17,1,
3416 4,0,
3417 7,0,
3418 5,0,
3419 1,1,
3420 17,1,
3421 1,1,
3422 17,1,
3423 19,0,
3424 5,0,
3425 1,1,
3426 16,1,
3427 6,0,
3428 5,0,
3429 1,1,
3430 17,1,
3431 4,0,
3432 6,0,
3435 aPropSequence [1].Value = makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues ), nValues ));
3438 aPropSequence [2].Name = "TextFrames";
3439 Sequence< EnhancedCustomShapeTextFrame > aTextFrameSeq (1);
3441 EnhancedCustomShapeTextFrame aTextFrame;
3443 static const CustomShapeProvider::ParameterPairData aData =
3445 EnhancedCustomShapeParameterType::EQUATION,
3446 EnhancedCustomShapeParameterType::EQUATION,
3447 17, 20
3449 aTextFrame.TopLeft = createParameterPair(&aData);
3452 static const CustomShapeProvider::ParameterPairData aData =
3454 EnhancedCustomShapeParameterType::EQUATION,
3455 EnhancedCustomShapeParameterType::EQUATION,
3456 18, 21
3458 aTextFrame.BottomRight = createParameterPair(&aData);
3460 aTextFrameSeq [0] = aTextFrame;
3462 aPropSequence [2].Value = makeAny (aTextFrameSeq);
3464 aPropertyMap [PROP_Path] <<= aPropSequence;
3467 awt::Rectangle aRectangle;
3468 aRectangle.X = 0;
3469 aRectangle.Y = 0;
3470 aRectangle.Width = 0;
3471 aRectangle.Height = 0;
3472 aPropertyMap [PROP_ViewBox] <<= aRectangle;
3474 aPropertyMap [ PROP_Type ] <<= OUString("ooxml-smileyFace");
3476 return aPropertyMap;
3479 class ShapeCactionButtonBlank : public CustomShapeProvider
3481 virtual PropertyMap getProperties()
3483 PropertyMap aPropertyMap;
3486 aPropertyMap [PROP_AdjustmentValues] <<= Sequence< OUString >(0);
3489 static const char *aStrings[] = {
3490 "logwidth",
3491 "logheight/2",
3492 "logwidth/2",
3493 "logheight"
3495 aPropertyMap [PROP_Equations] <<= createStringSequence( SAL_N_ELEMENTS( aStrings ), aStrings );
3498 aPropertyMap [PROP_Handles] <<= Sequence< OUString >(0);
3501 aPropertyMap [PROP_MirroredX] <<= Any ((sal_Bool) sal_False);
3504 aPropertyMap [PROP_MirroredY] <<= Any ((sal_Bool) sal_False);
3507 Sequence< PropertyValue > aPropSequence (3);
3509 aPropSequence [0].Name = "Coordinates";
3510 static const CustomShapeProvider::ParameterPairData aData[] = {
3512 EnhancedCustomShapeParameterType::NORMAL,
3513 EnhancedCustomShapeParameterType::NORMAL,
3514 0, 0
3517 EnhancedCustomShapeParameterType::EQUATION,
3518 EnhancedCustomShapeParameterType::NORMAL,
3519 0, 0
3522 EnhancedCustomShapeParameterType::EQUATION,
3523 EnhancedCustomShapeParameterType::EQUATION,
3524 0, 3
3527 EnhancedCustomShapeParameterType::NORMAL,
3528 EnhancedCustomShapeParameterType::EQUATION,
3529 0, 3
3532 aPropSequence [0].Value = makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData), aData));
3535 aPropSequence [1].Name = "Segments";
3536 static const sal_uInt16 nValues[] = {
3537 // Command, Count
3538 1,1,
3539 2,3,
3540 4,0,
3543 aPropSequence [1].Value = makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues ), nValues ));
3546 aPropSequence [2].Name = "TextFrames";
3547 Sequence< EnhancedCustomShapeTextFrame > aTextFrameSeq (1);
3549 EnhancedCustomShapeTextFrame aTextFrame;
3551 static const CustomShapeProvider::ParameterPairData aData =
3553 EnhancedCustomShapeParameterType::NORMAL,
3554 EnhancedCustomShapeParameterType::NORMAL,
3555 0, 0
3557 aTextFrame.TopLeft = createParameterPair(&aData);
3560 static const CustomShapeProvider::ParameterPairData aData =
3562 EnhancedCustomShapeParameterType::EQUATION,
3563 EnhancedCustomShapeParameterType::EQUATION,
3564 0, 3
3566 aTextFrame.BottomRight = createParameterPair(&aData);
3568 aTextFrameSeq [0] = aTextFrame;
3570 aPropSequence [2].Value = makeAny (aTextFrameSeq);
3572 aPropertyMap [PROP_Path] <<= aPropSequence;
3575 awt::Rectangle aRectangle;
3576 aRectangle.X = 0;
3577 aRectangle.Y = 0;
3578 aRectangle.Width = 0;
3579 aRectangle.Height = 0;
3580 aPropertyMap [PROP_ViewBox] <<= aRectangle;
3582 aPropertyMap [ PROP_Type ] <<= OUString("ooxml-actionButtonBlank");
3584 return aPropertyMap;
3587 class ShapeCwave : public CustomShapeProvider
3589 virtual PropertyMap getProperties()
3591 PropertyMap aPropertyMap;
3594 Sequence< EnhancedCustomShapeAdjustmentValue > aAdjSequence (2);
3596 Any aAny ((sal_Int32) 12500);
3597 aAdjSequence [0].Value = aAny;
3598 aAdjSequence [0].Name = "adj1";
3601 Any aAny ((sal_Int32) 0);
3602 aAdjSequence [1].Value = aAny;
3603 aAdjSequence [1].Name = "adj2";
3605 aPropertyMap [PROP_AdjustmentValues] <<= aAdjSequence;
3608 static const char *aStrings[] = {
3609 "if(0-$0 ,0,if(20000-$0 ,$0 ,20000))",
3610 "if(-10000-$1 ,-10000,if(10000-$1 ,$1 ,10000))",
3611 "logheight*?0 /100000",
3612 "?2 *10/3",
3613 "?2 +0-?3 ",
3614 "?2 +?3 -0",
3615 "logheight+0-?2 ",
3616 "?6 +0-?3 ",
3617 "?6 +?3 -0",
3618 "logwidth*?1 /100000",
3619 "logwidth*?1 /50000",
3620 "abs(?9 )",
3621 "if(?10 ,0,?10 )",
3622 "0+0-?12 ",
3623 "if(?10 ,?10 ,0)",
3624 "logwidth+0-?14 ",
3625 "(?12 +?15 )/3",
3626 "?13 +?16 -0",
3627 "(?17 +?15 )/2",
3628 "0+?14 -0",
3629 "logwidth+?12 -0",
3630 "?19 +?16 -0",
3631 "(?21 +?20 )/2",
3632 "logwidth+0-?11 ",
3633 "logwidth/2",
3634 "?24 +?9 -0",
3635 "?24 +0-?9 ",
3636 "max(?13 ,?19 )",
3637 "min(?15 ,?20 )",
3638 "logheight*?0 /50000",
3639 "logheight+0-?29 ",
3640 "logheight",
3641 "logheight/2"
3643 aPropertyMap [PROP_Equations] <<= createStringSequence( SAL_N_ELEMENTS( aStrings ), aStrings );
3646 Sequence< Sequence < PropertyValue > > aPropSequenceSequence (2);
3648 Sequence< PropertyValue > aPropSequence (4);
3650 aPropSequence [0].Name = "Position";
3651 static const CustomShapeProvider::ParameterPairData aData =
3653 EnhancedCustomShapeParameterType::NORMAL,
3654 EnhancedCustomShapeParameterType::EQUATION,
3655 0, 2
3657 aPropSequence [0].Value = makeAny (createParameterPair(&aData));
3660 aPropSequence [1].Name = "RangeYMaximum";
3661 EnhancedCustomShapeParameter aParameter;
3662 Any aAny ((sal_Int32) 20000);
3663 aParameter.Value = aAny;
3664 aParameter.Type = EnhancedCustomShapeParameterType::NORMAL;
3665 aPropSequence [1].Value = makeAny (aParameter);
3668 aPropSequence [2].Name = "RangeYMinimum";
3669 EnhancedCustomShapeParameter aParameter;
3670 Any aAny ((sal_Int32) 0);
3671 aParameter.Value = aAny;
3672 aParameter.Type = EnhancedCustomShapeParameterType::NORMAL;
3673 aPropSequence [2].Value = makeAny (aParameter);
3676 aPropSequence [3].Name = "RefY";
3677 Any aAny ((sal_Int32) 0);
3678 aPropSequence [3].Value = makeAny (aAny);
3680 aPropSequenceSequence [0] = aPropSequence;
3683 Sequence< PropertyValue > aPropSequence (4);
3685 aPropSequence [0].Name = "Position";
3686 static const CustomShapeProvider::ParameterPairData aData =
3688 EnhancedCustomShapeParameterType::EQUATION,
3689 EnhancedCustomShapeParameterType::EQUATION,
3690 25, 31
3692 aPropSequence [0].Value = makeAny (createParameterPair(&aData));
3695 aPropSequence [1].Name = "RangeXMaximum";
3696 EnhancedCustomShapeParameter aParameter;
3697 Any aAny ((sal_Int32) 10000);
3698 aParameter.Value = aAny;
3699 aParameter.Type = EnhancedCustomShapeParameterType::NORMAL;
3700 aPropSequence [1].Value = makeAny (aParameter);
3703 aPropSequence [2].Name = "RangeXMinimum";
3704 EnhancedCustomShapeParameter aParameter;
3705 Any aAny ((sal_Int32) -10000);
3706 aParameter.Value = aAny;
3707 aParameter.Type = EnhancedCustomShapeParameterType::NORMAL;
3708 aPropSequence [2].Value = makeAny (aParameter);
3711 aPropSequence [3].Name = "RefX";
3712 Any aAny ((sal_Int32) 1);
3713 aPropSequence [3].Value = makeAny (aAny);
3715 aPropSequenceSequence [1] = aPropSequence;
3717 aPropertyMap [PROP_Handles] <<= aPropSequenceSequence;
3720 aPropertyMap [PROP_MirroredX] <<= Any ((sal_Bool) sal_False);
3723 aPropertyMap [PROP_MirroredY] <<= Any ((sal_Bool) sal_False);
3726 Sequence< PropertyValue > aPropSequence (3);
3728 aPropSequence [0].Name = "Coordinates";
3729 static const CustomShapeProvider::ParameterPairData aData[] = {
3731 EnhancedCustomShapeParameterType::EQUATION,
3732 EnhancedCustomShapeParameterType::EQUATION,
3733 13, 2
3736 EnhancedCustomShapeParameterType::EQUATION,
3737 EnhancedCustomShapeParameterType::EQUATION,
3738 17, 4
3741 EnhancedCustomShapeParameterType::EQUATION,
3742 EnhancedCustomShapeParameterType::EQUATION,
3743 18, 5
3746 EnhancedCustomShapeParameterType::EQUATION,
3747 EnhancedCustomShapeParameterType::EQUATION,
3748 15, 2
3751 EnhancedCustomShapeParameterType::EQUATION,
3752 EnhancedCustomShapeParameterType::EQUATION,
3753 20, 6
3756 EnhancedCustomShapeParameterType::EQUATION,
3757 EnhancedCustomShapeParameterType::EQUATION,
3758 22, 8
3761 EnhancedCustomShapeParameterType::EQUATION,
3762 EnhancedCustomShapeParameterType::EQUATION,
3763 21, 7
3766 EnhancedCustomShapeParameterType::EQUATION,
3767 EnhancedCustomShapeParameterType::EQUATION,
3768 19, 6
3771 aPropSequence [0].Value = makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData), aData));
3774 aPropSequence [1].Name = "Segments";
3775 static const sal_uInt16 nValues[] = {
3776 // Command, Count
3777 1,1,
3778 3,1,
3779 2,1,
3780 3,1,
3781 4,0,
3784 aPropSequence [1].Value = makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues ), nValues ));
3787 aPropSequence [2].Name = "TextFrames";
3788 Sequence< EnhancedCustomShapeTextFrame > aTextFrameSeq (1);
3790 EnhancedCustomShapeTextFrame aTextFrame;
3792 static const CustomShapeProvider::ParameterPairData aData =
3794 EnhancedCustomShapeParameterType::EQUATION,
3795 EnhancedCustomShapeParameterType::EQUATION,
3796 27, 29
3798 aTextFrame.TopLeft = createParameterPair(&aData);
3801 static const CustomShapeProvider::ParameterPairData aData =
3803 EnhancedCustomShapeParameterType::EQUATION,
3804 EnhancedCustomShapeParameterType::EQUATION,
3805 28, 30
3807 aTextFrame.BottomRight = createParameterPair(&aData);
3809 aTextFrameSeq [0] = aTextFrame;
3811 aPropSequence [2].Value = makeAny (aTextFrameSeq);
3813 aPropertyMap [PROP_Path] <<= aPropSequence;
3816 awt::Rectangle aRectangle;
3817 aRectangle.X = 0;
3818 aRectangle.Y = 0;
3819 aRectangle.Width = 0;
3820 aRectangle.Height = 0;
3821 aPropertyMap [PROP_ViewBox] <<= aRectangle;
3823 aPropertyMap [ PROP_Type ] <<= OUString("ooxml-wave");
3825 return aPropertyMap;
3828 class ShapeCswooshArrow : public CustomShapeProvider
3830 virtual PropertyMap getProperties()
3832 PropertyMap aPropertyMap;
3835 Sequence< EnhancedCustomShapeAdjustmentValue > aAdjSequence (2);
3837 Any aAny ((sal_Int32) 25000);
3838 aAdjSequence [0].Value = aAny;
3839 aAdjSequence [0].Name = "adj1";
3842 Any aAny ((sal_Int32) 16667);
3843 aAdjSequence [1].Value = aAny;
3844 aAdjSequence [1].Name = "adj2";
3846 aPropertyMap [PROP_AdjustmentValues] <<= aAdjSequence;
3849 static const char *aStrings[] = {
3850 "if(1-$0 ,1,if(75000-$0 ,$0 ,75000))",
3851 "min(logwidth,logheight)",
3852 "70000*logwidth/?1 ",
3853 "if(0-$1 ,0,if(?2 -$1 ,$1 ,?2 ))",
3854 "logheight*?0 /100000",
3855 "?1 *?3 /100000",
3856 "logwidth+0-?5 ",
3857 "min(logwidth,logheight)/8",
3858 "0+?7 -0",
3859 "5400000*1/14",
3860 "?7 *tan(pi*(?9 )/10800000)",
3861 "?6 +0-?10 ",
3862 "?4 *tan(pi*(?9 )/10800000)",
3863 "?8 +?4 -0",
3864 "?6 +?12 -0",
3865 "?14 +?10 -0",
3866 "?13 +?7 -0",
3867 "?16 +0-0",
3868 "?17 *1/2",
3869 "logheight*1/20",
3870 "0+?18 -?19 ",
3871 "logheight/6",
3872 "?21 *1/1",
3873 "?21 +?22 -0",
3874 "logwidth/6",
3875 "?24 ",
3876 "?21 *1/2",
3877 "?13 +?26 -0",
3878 "logwidth/4",
3879 "?28 ",
3880 "logheight",
3881 "logwidth"
3883 aPropertyMap [PROP_Equations] <<= createStringSequence( SAL_N_ELEMENTS( aStrings ), aStrings );
3886 Sequence< Sequence < PropertyValue > > aPropSequenceSequence (2);
3888 Sequence< PropertyValue > aPropSequence (4);
3890 aPropSequence [0].Name = "Position";
3891 static const CustomShapeProvider::ParameterPairData aData =
3893 EnhancedCustomShapeParameterType::EQUATION,
3894 EnhancedCustomShapeParameterType::EQUATION,
3895 14, 13
3897 aPropSequence [0].Value = makeAny (createParameterPair(&aData));
3900 aPropSequence [1].Name = "RangeYMaximum";
3901 EnhancedCustomShapeParameter aParameter;
3902 Any aAny ((sal_Int32) 75000);
3903 aParameter.Value = aAny;
3904 aParameter.Type = EnhancedCustomShapeParameterType::NORMAL;
3905 aPropSequence [1].Value = makeAny (aParameter);
3908 aPropSequence [2].Name = "RangeYMinimum";
3909 EnhancedCustomShapeParameter aParameter;
3910 Any aAny ((sal_Int32) 1);
3911 aParameter.Value = aAny;
3912 aParameter.Type = EnhancedCustomShapeParameterType::NORMAL;
3913 aPropSequence [2].Value = makeAny (aParameter);
3916 aPropSequence [3].Name = "RefY";
3917 Any aAny ((sal_Int32) 0);
3918 aPropSequence [3].Value = makeAny (aAny);
3920 aPropSequenceSequence [0] = aPropSequence;
3923 Sequence< PropertyValue > aPropSequence (4);
3925 aPropSequence [0].Name = "Position";
3926 static const CustomShapeProvider::ParameterPairData aData =
3928 EnhancedCustomShapeParameterType::EQUATION,
3929 EnhancedCustomShapeParameterType::EQUATION,
3930 6, 8
3932 aPropSequence [0].Value = makeAny (createParameterPair(&aData));
3935 aPropSequence [1].Name = "RangeXMaximum";
3936 EnhancedCustomShapeParameter aParameter;
3937 Any aAny ((sal_Int32) 2);
3938 aParameter.Value = aAny;
3939 aParameter.Type = EnhancedCustomShapeParameterType::EQUATION;
3940 aPropSequence [1].Value = makeAny (aParameter);
3943 aPropSequence [2].Name = "RangeXMinimum";
3944 EnhancedCustomShapeParameter aParameter;
3945 Any aAny ((sal_Int32) 0);
3946 aParameter.Value = aAny;
3947 aParameter.Type = EnhancedCustomShapeParameterType::NORMAL;
3948 aPropSequence [2].Value = makeAny (aParameter);
3951 aPropSequence [3].Name = "RefX";
3952 Any aAny ((sal_Int32) 1);
3953 aPropSequence [3].Value = makeAny (aAny);
3955 aPropSequenceSequence [1] = aPropSequence;
3957 aPropertyMap [PROP_Handles] <<= aPropSequenceSequence;
3960 aPropertyMap [PROP_MirroredX] <<= Any ((sal_Bool) sal_False);
3963 aPropertyMap [PROP_MirroredY] <<= Any ((sal_Bool) sal_False);
3966 Sequence< PropertyValue > aPropSequence (3);
3968 aPropSequence [0].Name = "Coordinates";
3969 static const CustomShapeProvider::ParameterPairData aData[] = {
3971 EnhancedCustomShapeParameterType::NORMAL,
3972 EnhancedCustomShapeParameterType::EQUATION,
3973 0, 30
3976 EnhancedCustomShapeParameterType::EQUATION,
3977 EnhancedCustomShapeParameterType::EQUATION,
3978 25, 23
3981 EnhancedCustomShapeParameterType::EQUATION,
3982 EnhancedCustomShapeParameterType::EQUATION,
3983 6, 8
3986 EnhancedCustomShapeParameterType::EQUATION,
3987 EnhancedCustomShapeParameterType::NORMAL,
3988 11, 0
3991 EnhancedCustomShapeParameterType::EQUATION,
3992 EnhancedCustomShapeParameterType::EQUATION,
3993 31, 20
3996 EnhancedCustomShapeParameterType::EQUATION,
3997 EnhancedCustomShapeParameterType::EQUATION,
3998 15, 16
4001 EnhancedCustomShapeParameterType::EQUATION,
4002 EnhancedCustomShapeParameterType::EQUATION,
4003 14, 13
4006 EnhancedCustomShapeParameterType::EQUATION,
4007 EnhancedCustomShapeParameterType::EQUATION,
4008 29, 27
4011 EnhancedCustomShapeParameterType::NORMAL,
4012 EnhancedCustomShapeParameterType::EQUATION,
4013 0, 30
4016 aPropSequence [0].Value = makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData), aData));
4019 aPropSequence [1].Name = "Segments";
4020 static const sal_uInt16 nValues[] = {
4021 // Command, Count
4022 1,1,
4023 16,1,
4024 2,4,
4025 16,1,
4026 4,0,
4029 aPropSequence [1].Value = makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues ), nValues ));
4032 aPropSequence [2].Name = "TextFrames";
4033 Sequence< EnhancedCustomShapeTextFrame > aTextFrameSeq (1);
4035 EnhancedCustomShapeTextFrame aTextFrame;
4037 static const CustomShapeProvider::ParameterPairData aData =
4039 EnhancedCustomShapeParameterType::NORMAL,
4040 EnhancedCustomShapeParameterType::NORMAL,
4041 0, 0
4043 aTextFrame.TopLeft = createParameterPair(&aData);
4046 static const CustomShapeProvider::ParameterPairData aData =
4048 EnhancedCustomShapeParameterType::EQUATION,
4049 EnhancedCustomShapeParameterType::EQUATION,
4050 31, 30
4052 aTextFrame.BottomRight = createParameterPair(&aData);
4054 aTextFrameSeq [0] = aTextFrame;
4056 aPropSequence [2].Value = makeAny (aTextFrameSeq);
4058 aPropertyMap [PROP_Path] <<= aPropSequence;
4061 awt::Rectangle aRectangle;
4062 aRectangle.X = 0;
4063 aRectangle.Y = 0;
4064 aRectangle.Width = 0;
4065 aRectangle.Height = 0;
4066 aPropertyMap [PROP_ViewBox] <<= aRectangle;
4068 aPropertyMap [ PROP_Type ] <<= OUString("ooxml-swooshArrow");
4070 return aPropertyMap;
4073 class ShapeCflowChartSummingJunction : public CustomShapeProvider
4075 virtual PropertyMap getProperties()
4077 PropertyMap aPropertyMap;
4080 aPropertyMap [PROP_AdjustmentValues] <<= Sequence< OUString >(0);
4083 static const char *aStrings[] = {
4084 "logwidth/2",
4085 "?0 *cos(pi*(2700000)/10800000)",
4086 "logheight/2",
4087 "?2 *sin(pi*(2700000)/10800000)",
4088 "logwidth/2",
4089 "?4 +0-?1 ",
4090 "?4 +?1 -0",
4091 "logheight/2",
4092 "?7 +0-?3 ",
4093 "?7 +?3 -0",
4094 "logheight",
4095 "logwidth",
4096 "(10800000)/60000.0",
4097 "(5400000)/60000.0",
4098 "(16200000)/60000.0",
4099 "(5400000)/60000.0",
4100 "(0)/60000.0",
4101 "(5400000)/60000.0",
4102 "(5400000)/60000.0",
4103 "(5400000)/60000.0",
4104 "(10800000)/60000.0",
4105 "(5400000)/60000.0",
4106 "(16200000)/60000.0",
4107 "(5400000)/60000.0",
4108 "(0)/60000.0",
4109 "(5400000)/60000.0",
4110 "(5400000)/60000.0",
4111 "(5400000)/60000.0"
4113 aPropertyMap [PROP_Equations] <<= createStringSequence( SAL_N_ELEMENTS( aStrings ), aStrings );
4116 aPropertyMap [PROP_Handles] <<= Sequence< OUString >(0);
4119 aPropertyMap [PROP_MirroredX] <<= Any ((sal_Bool) sal_False);
4122 aPropertyMap [PROP_MirroredY] <<= Any ((sal_Bool) sal_False);
4125 Sequence< PropertyValue > aPropSequence (3);
4127 aPropSequence [0].Name = "Coordinates";
4128 static const CustomShapeProvider::ParameterPairData aData[] = {
4130 EnhancedCustomShapeParameterType::NORMAL,
4131 EnhancedCustomShapeParameterType::EQUATION,
4132 0, 7
4135 EnhancedCustomShapeParameterType::EQUATION,
4136 EnhancedCustomShapeParameterType::EQUATION,
4137 0, 2
4140 EnhancedCustomShapeParameterType::EQUATION,
4141 EnhancedCustomShapeParameterType::EQUATION,
4142 12, 13
4145 EnhancedCustomShapeParameterType::EQUATION,
4146 EnhancedCustomShapeParameterType::EQUATION,
4147 0, 2
4150 EnhancedCustomShapeParameterType::EQUATION,
4151 EnhancedCustomShapeParameterType::EQUATION,
4152 14, 15
4155 EnhancedCustomShapeParameterType::EQUATION,
4156 EnhancedCustomShapeParameterType::EQUATION,
4157 0, 2
4160 EnhancedCustomShapeParameterType::EQUATION,
4161 EnhancedCustomShapeParameterType::EQUATION,
4162 16, 17
4165 EnhancedCustomShapeParameterType::EQUATION,
4166 EnhancedCustomShapeParameterType::EQUATION,
4167 0, 2
4170 EnhancedCustomShapeParameterType::EQUATION,
4171 EnhancedCustomShapeParameterType::EQUATION,
4172 18, 19
4175 EnhancedCustomShapeParameterType::EQUATION,
4176 EnhancedCustomShapeParameterType::EQUATION,
4177 5, 8
4180 EnhancedCustomShapeParameterType::EQUATION,
4181 EnhancedCustomShapeParameterType::EQUATION,
4182 6, 9
4185 EnhancedCustomShapeParameterType::EQUATION,
4186 EnhancedCustomShapeParameterType::EQUATION,
4187 6, 8
4190 EnhancedCustomShapeParameterType::EQUATION,
4191 EnhancedCustomShapeParameterType::EQUATION,
4192 5, 9
4195 EnhancedCustomShapeParameterType::NORMAL,
4196 EnhancedCustomShapeParameterType::EQUATION,
4197 0, 7
4200 EnhancedCustomShapeParameterType::EQUATION,
4201 EnhancedCustomShapeParameterType::EQUATION,
4202 0, 2
4205 EnhancedCustomShapeParameterType::EQUATION,
4206 EnhancedCustomShapeParameterType::EQUATION,
4207 20, 21
4210 EnhancedCustomShapeParameterType::EQUATION,
4211 EnhancedCustomShapeParameterType::EQUATION,
4212 0, 2
4215 EnhancedCustomShapeParameterType::EQUATION,
4216 EnhancedCustomShapeParameterType::EQUATION,
4217 22, 23
4220 EnhancedCustomShapeParameterType::EQUATION,
4221 EnhancedCustomShapeParameterType::EQUATION,
4222 0, 2
4225 EnhancedCustomShapeParameterType::EQUATION,
4226 EnhancedCustomShapeParameterType::EQUATION,
4227 24, 25
4230 EnhancedCustomShapeParameterType::EQUATION,
4231 EnhancedCustomShapeParameterType::EQUATION,
4232 0, 2
4235 EnhancedCustomShapeParameterType::EQUATION,
4236 EnhancedCustomShapeParameterType::EQUATION,
4237 26, 27
4240 aPropSequence [0].Value = makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData), aData));
4243 aPropSequence [1].Name = "Segments";
4244 static const sal_uInt16 nValues[] = {
4245 // Command, Count
4246 1,1,
4247 17,4,
4248 4,0,
4249 7,0,
4250 5,0,
4251 1,1,
4252 2,1,
4253 1,1,
4254 2,1,
4255 6,0,
4256 5,0,
4257 1,1,
4258 17,4,
4259 4,0,
4260 6,0,
4263 aPropSequence [1].Value = makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues ), nValues ));
4266 aPropSequence [2].Name = "TextFrames";
4267 Sequence< EnhancedCustomShapeTextFrame > aTextFrameSeq (1);
4269 EnhancedCustomShapeTextFrame aTextFrame;
4271 static const CustomShapeProvider::ParameterPairData aData =
4273 EnhancedCustomShapeParameterType::EQUATION,
4274 EnhancedCustomShapeParameterType::EQUATION,
4275 5, 8
4277 aTextFrame.TopLeft = createParameterPair(&aData);
4280 static const CustomShapeProvider::ParameterPairData aData =
4282 EnhancedCustomShapeParameterType::EQUATION,
4283 EnhancedCustomShapeParameterType::EQUATION,
4284 6, 9
4286 aTextFrame.BottomRight = createParameterPair(&aData);
4288 aTextFrameSeq [0] = aTextFrame;
4290 aPropSequence [2].Value = makeAny (aTextFrameSeq);
4292 aPropertyMap [PROP_Path] <<= aPropSequence;
4295 awt::Rectangle aRectangle;
4296 aRectangle.X = 0;
4297 aRectangle.Y = 0;
4298 aRectangle.Width = 0;
4299 aRectangle.Height = 0;
4300 aPropertyMap [PROP_ViewBox] <<= aRectangle;
4302 aPropertyMap [ PROP_Type ] <<= OUString("ooxml-flowChartSummingJunction");
4304 return aPropertyMap;
4307 class ShapeClightningBolt : public CustomShapeProvider
4309 virtual PropertyMap getProperties()
4311 PropertyMap aPropertyMap;
4314 aPropertyMap [PROP_AdjustmentValues] <<= Sequence< OUString >(0);
4317 static const char *aStrings[] = {
4318 "logwidth*5022/21600",
4319 "logwidth*8472/21600",
4320 "logwidth*8757/21600",
4321 "logwidth*10012/21600",
4322 "logwidth*12860/21600",
4323 "logwidth*13917/21600",
4324 "logwidth*16577/21600",
4325 "logheight*3890/21600",
4326 "logheight*6080/21600",
4327 "logheight*7437/21600",
4328 "logheight*9705/21600",
4329 "logheight*12007/21600",
4330 "logheight*14277/21600",
4331 "logheight*14915/21600",
4332 "logwidth",
4333 "logheight"
4335 aPropertyMap [PROP_Equations] <<= createStringSequence( SAL_N_ELEMENTS( aStrings ), aStrings );
4338 aPropertyMap [PROP_Handles] <<= Sequence< OUString >(0);
4341 aPropertyMap [PROP_MirroredX] <<= Any ((sal_Bool) sal_False);
4344 aPropertyMap [PROP_MirroredY] <<= Any ((sal_Bool) sal_False);
4347 Sequence< PropertyValue > aPropSequence (4);
4349 aPropSequence [0].Name = "Coordinates";
4350 static const CustomShapeProvider::ParameterPairData aData[] = {
4352 EnhancedCustomShapeParameterType::NORMAL,
4353 EnhancedCustomShapeParameterType::NORMAL,
4354 8472, 0
4357 EnhancedCustomShapeParameterType::NORMAL,
4358 EnhancedCustomShapeParameterType::NORMAL,
4359 12860, 6080
4362 EnhancedCustomShapeParameterType::NORMAL,
4363 EnhancedCustomShapeParameterType::NORMAL,
4364 11050, 6797
4367 EnhancedCustomShapeParameterType::NORMAL,
4368 EnhancedCustomShapeParameterType::NORMAL,
4369 16577, 12007
4372 EnhancedCustomShapeParameterType::NORMAL,
4373 EnhancedCustomShapeParameterType::NORMAL,
4374 14767, 12877
4377 EnhancedCustomShapeParameterType::NORMAL,
4378 EnhancedCustomShapeParameterType::NORMAL,
4379 21600, 21600
4382 EnhancedCustomShapeParameterType::NORMAL,
4383 EnhancedCustomShapeParameterType::NORMAL,
4384 10012, 14915
4387 EnhancedCustomShapeParameterType::NORMAL,
4388 EnhancedCustomShapeParameterType::NORMAL,
4389 12222, 13987
4392 EnhancedCustomShapeParameterType::NORMAL,
4393 EnhancedCustomShapeParameterType::NORMAL,
4394 5022, 9705
4397 EnhancedCustomShapeParameterType::NORMAL,
4398 EnhancedCustomShapeParameterType::NORMAL,
4399 7602, 8382
4402 EnhancedCustomShapeParameterType::NORMAL,
4403 EnhancedCustomShapeParameterType::NORMAL,
4404 0, 3890
4407 aPropSequence [0].Value = makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData), aData));
4410 aPropSequence [1].Name = "Segments";
4411 static const sal_uInt16 nValues[] = {
4412 // Command, Count
4413 1,1,
4414 2,10,
4415 4,0,
4418 aPropSequence [1].Value = makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues ), nValues ));
4421 aPropSequence [2].Name = "SubViewSize";
4422 Sequence< awt::Size > aSizeSequence (1);
4424 awt::Size aSize;
4425 aSize.Width = 21600;
4426 aSize.Height = 21600;
4427 aSizeSequence [0] = aSize;
4429 aPropSequence [2].Value = makeAny (aSizeSequence);
4432 aPropSequence [3].Name = "TextFrames";
4433 Sequence< EnhancedCustomShapeTextFrame > aTextFrameSeq (1);
4435 EnhancedCustomShapeTextFrame aTextFrame;
4437 static const CustomShapeProvider::ParameterPairData aData =
4439 EnhancedCustomShapeParameterType::EQUATION,
4440 EnhancedCustomShapeParameterType::EQUATION,
4441 2, 9
4443 aTextFrame.TopLeft = createParameterPair(&aData);
4446 static const CustomShapeProvider::ParameterPairData aData =
4448 EnhancedCustomShapeParameterType::EQUATION,
4449 EnhancedCustomShapeParameterType::EQUATION,
4450 5, 12
4452 aTextFrame.BottomRight = createParameterPair(&aData);
4454 aTextFrameSeq [0] = aTextFrame;
4456 aPropSequence [3].Value = makeAny (aTextFrameSeq);
4458 aPropertyMap [PROP_Path] <<= aPropSequence;
4461 awt::Rectangle aRectangle;
4462 aRectangle.X = 0;
4463 aRectangle.Y = 0;
4464 aRectangle.Width = 0;
4465 aRectangle.Height = 0;
4466 aPropertyMap [PROP_ViewBox] <<= aRectangle;
4468 aPropertyMap [ PROP_Type ] <<= OUString("ooxml-lightningBolt");
4470 return aPropertyMap;
4473 class ShapeCflowChartDisplay : public CustomShapeProvider
4475 virtual PropertyMap getProperties()
4477 PropertyMap aPropertyMap;
4480 aPropertyMap [PROP_AdjustmentValues] <<= Sequence< OUString >(0);
4483 static const char *aStrings[] = {
4484 "logwidth*5/6",
4485 "logwidth/2",
4486 "logheight/2",
4487 "logheight",
4488 "logwidth",
4489 "logwidth/6",
4490 "(16200000)/60000.0",
4491 "(10800000)/60000.0"
4493 aPropertyMap [PROP_Equations] <<= createStringSequence( SAL_N_ELEMENTS( aStrings ), aStrings );
4496 aPropertyMap [PROP_Handles] <<= Sequence< OUString >(0);
4499 aPropertyMap [PROP_MirroredX] <<= Any ((sal_Bool) sal_False);
4502 aPropertyMap [PROP_MirroredY] <<= Any ((sal_Bool) sal_False);
4505 Sequence< PropertyValue > aPropSequence (4);
4507 aPropSequence [0].Name = "Coordinates";
4508 static const CustomShapeProvider::ParameterPairData aData[] = {
4510 EnhancedCustomShapeParameterType::NORMAL,
4511 EnhancedCustomShapeParameterType::NORMAL,
4512 0, 3
4515 EnhancedCustomShapeParameterType::NORMAL,
4516 EnhancedCustomShapeParameterType::NORMAL,
4517 1, 0
4520 EnhancedCustomShapeParameterType::NORMAL,
4521 EnhancedCustomShapeParameterType::NORMAL,
4522 5, 0
4525 EnhancedCustomShapeParameterType::NORMAL,
4526 EnhancedCustomShapeParameterType::NORMAL,
4527 1, 3
4530 EnhancedCustomShapeParameterType::EQUATION,
4531 EnhancedCustomShapeParameterType::EQUATION,
4532 6, 7
4535 EnhancedCustomShapeParameterType::NORMAL,
4536 EnhancedCustomShapeParameterType::NORMAL,
4537 1, 6
4540 aPropSequence [0].Value = makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData), aData));
4543 aPropSequence [1].Name = "Segments";
4544 static const sal_uInt16 nValues[] = {
4545 // Command, Count
4546 1,1,
4547 2,2,
4548 17,1,
4549 2,1,
4550 4,0,
4553 aPropSequence [1].Value = makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues ), nValues ));
4556 aPropSequence [2].Name = "SubViewSize";
4557 Sequence< awt::Size > aSizeSequence (1);
4559 awt::Size aSize;
4560 aSize.Width = 6;
4561 aSize.Height = 6;
4562 aSizeSequence [0] = aSize;
4564 aPropSequence [2].Value = makeAny (aSizeSequence);
4567 aPropSequence [3].Name = "TextFrames";
4568 Sequence< EnhancedCustomShapeTextFrame > aTextFrameSeq (1);
4570 EnhancedCustomShapeTextFrame aTextFrame;
4572 static const CustomShapeProvider::ParameterPairData aData =
4574 EnhancedCustomShapeParameterType::EQUATION,
4575 EnhancedCustomShapeParameterType::NORMAL,
4576 5, 0
4578 aTextFrame.TopLeft = createParameterPair(&aData);
4581 static const CustomShapeProvider::ParameterPairData aData =
4583 EnhancedCustomShapeParameterType::EQUATION,
4584 EnhancedCustomShapeParameterType::EQUATION,
4585 0, 3
4587 aTextFrame.BottomRight = createParameterPair(&aData);
4589 aTextFrameSeq [0] = aTextFrame;
4591 aPropSequence [3].Value = makeAny (aTextFrameSeq);
4593 aPropertyMap [PROP_Path] <<= aPropSequence;
4596 awt::Rectangle aRectangle;
4597 aRectangle.X = 0;
4598 aRectangle.Y = 0;
4599 aRectangle.Width = 0;
4600 aRectangle.Height = 0;
4601 aPropertyMap [PROP_ViewBox] <<= aRectangle;
4603 aPropertyMap [ PROP_Type ] <<= OUString("ooxml-flowChartDisplay");
4605 return aPropertyMap;
4608 class ShapeCactionButtonBackPrevious : public CustomShapeProvider
4610 virtual PropertyMap getProperties()
4612 PropertyMap aPropertyMap;
4615 aPropertyMap [PROP_AdjustmentValues] <<= Sequence< OUString >(0);
4618 static const char *aStrings[] = {
4619 "min(logwidth,logheight)",
4620 "?0 *3/8",
4621 "logheight/2",
4622 "?2 +0-?1 ",
4623 "?2 +?1 -0",
4624 "logwidth/2",
4625 "?5 +0-?1 ",
4626 "?5 +?1 -0",
4627 "logwidth",
4628 "logheight"
4630 aPropertyMap [PROP_Equations] <<= createStringSequence( SAL_N_ELEMENTS( aStrings ), aStrings );
4633 aPropertyMap [PROP_Handles] <<= Sequence< OUString >(0);
4636 aPropertyMap [PROP_MirroredX] <<= Any ((sal_Bool) sal_False);
4639 aPropertyMap [PROP_MirroredY] <<= Any ((sal_Bool) sal_False);
4642 Sequence< PropertyValue > aPropSequence (3);
4644 aPropSequence [0].Name = "Coordinates";
4645 static const CustomShapeProvider::ParameterPairData aData[] = {
4647 EnhancedCustomShapeParameterType::NORMAL,
4648 EnhancedCustomShapeParameterType::NORMAL,
4649 0, 0
4652 EnhancedCustomShapeParameterType::EQUATION,
4653 EnhancedCustomShapeParameterType::NORMAL,
4654 8, 0
4657 EnhancedCustomShapeParameterType::EQUATION,
4658 EnhancedCustomShapeParameterType::EQUATION,
4659 8, 9
4662 EnhancedCustomShapeParameterType::NORMAL,
4663 EnhancedCustomShapeParameterType::EQUATION,
4664 0, 9
4667 EnhancedCustomShapeParameterType::EQUATION,
4668 EnhancedCustomShapeParameterType::EQUATION,
4669 6, 2
4672 EnhancedCustomShapeParameterType::EQUATION,
4673 EnhancedCustomShapeParameterType::EQUATION,
4674 7, 3
4677 EnhancedCustomShapeParameterType::EQUATION,
4678 EnhancedCustomShapeParameterType::EQUATION,
4679 7, 4
4682 EnhancedCustomShapeParameterType::EQUATION,
4683 EnhancedCustomShapeParameterType::EQUATION,
4684 6, 2
4687 EnhancedCustomShapeParameterType::EQUATION,
4688 EnhancedCustomShapeParameterType::EQUATION,
4689 7, 3
4692 EnhancedCustomShapeParameterType::EQUATION,
4693 EnhancedCustomShapeParameterType::EQUATION,
4694 7, 4
4697 EnhancedCustomShapeParameterType::EQUATION,
4698 EnhancedCustomShapeParameterType::EQUATION,
4699 6, 2
4702 EnhancedCustomShapeParameterType::EQUATION,
4703 EnhancedCustomShapeParameterType::EQUATION,
4704 7, 3
4707 EnhancedCustomShapeParameterType::EQUATION,
4708 EnhancedCustomShapeParameterType::EQUATION,
4709 7, 4
4712 EnhancedCustomShapeParameterType::NORMAL,
4713 EnhancedCustomShapeParameterType::NORMAL,
4714 0, 0
4717 EnhancedCustomShapeParameterType::EQUATION,
4718 EnhancedCustomShapeParameterType::NORMAL,
4719 8, 0
4722 EnhancedCustomShapeParameterType::EQUATION,
4723 EnhancedCustomShapeParameterType::EQUATION,
4724 8, 9
4727 EnhancedCustomShapeParameterType::NORMAL,
4728 EnhancedCustomShapeParameterType::EQUATION,
4729 0, 9
4732 aPropSequence [0].Value = makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData), aData));
4735 aPropSequence [1].Name = "Segments";
4736 static const sal_uInt16 nValues[] = {
4737 // Command, Count
4738 1,1,
4739 2,3,
4740 4,0,
4741 1,1,
4742 2,2,
4743 4,0,
4744 7,0,
4745 5,0,
4746 1,1,
4747 2,2,
4748 4,0,
4749 18,0,
4750 7,0,
4751 5,0,
4752 1,1,
4753 2,2,
4754 4,0,
4755 6,0,
4756 5,0,
4757 1,1,
4758 2,3,
4759 4,0,
4760 6,0,
4763 aPropSequence [1].Value = makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues ), nValues ));
4766 aPropSequence [2].Name = "TextFrames";
4767 Sequence< EnhancedCustomShapeTextFrame > aTextFrameSeq (1);
4769 EnhancedCustomShapeTextFrame aTextFrame;
4771 static const CustomShapeProvider::ParameterPairData aData =
4773 EnhancedCustomShapeParameterType::NORMAL,
4774 EnhancedCustomShapeParameterType::NORMAL,
4775 0, 0
4777 aTextFrame.TopLeft = createParameterPair(&aData);
4780 static const CustomShapeProvider::ParameterPairData aData =
4782 EnhancedCustomShapeParameterType::EQUATION,
4783 EnhancedCustomShapeParameterType::EQUATION,
4784 8, 9
4786 aTextFrame.BottomRight = createParameterPair(&aData);
4788 aTextFrameSeq [0] = aTextFrame;
4790 aPropSequence [2].Value = makeAny (aTextFrameSeq);
4792 aPropertyMap [PROP_Path] <<= aPropSequence;
4795 awt::Rectangle aRectangle;
4796 aRectangle.X = 0;
4797 aRectangle.Y = 0;
4798 aRectangle.Width = 0;
4799 aRectangle.Height = 0;
4800 aPropertyMap [PROP_ViewBox] <<= aRectangle;
4802 aPropertyMap [ PROP_Type ] <<= OUString("ooxml-actionButtonBackPrevious");
4804 return aPropertyMap;
4807 class ShapeCframe : public CustomShapeProvider
4809 virtual PropertyMap getProperties()
4811 PropertyMap aPropertyMap;
4814 Sequence< EnhancedCustomShapeAdjustmentValue > aAdjSequence (1);
4816 Any aAny ((sal_Int32) 12500);
4817 aAdjSequence [0].Value = aAny;
4818 aAdjSequence [0].Name = "adj1";
4820 aPropertyMap [PROP_AdjustmentValues] <<= aAdjSequence;
4823 static const char *aStrings[] = {
4824 "if(0-$0 ,0,if(50000-$0 ,$0 ,50000))",
4825 "min(logwidth,logheight)",
4826 "?1 *?0 /100000",
4827 "logwidth+0-?2 ",
4828 "logheight+0-?2 ",
4829 "logwidth/2",
4830 "logheight/2",
4831 "logheight",
4832 "logwidth"
4834 aPropertyMap [PROP_Equations] <<= createStringSequence( SAL_N_ELEMENTS( aStrings ), aStrings );
4837 Sequence< Sequence < PropertyValue > > aPropSequenceSequence (1);
4839 Sequence< PropertyValue > aPropSequence (4);
4841 aPropSequence [0].Name = "Position";
4842 static const CustomShapeProvider::ParameterPairData aData =
4844 EnhancedCustomShapeParameterType::EQUATION,
4845 EnhancedCustomShapeParameterType::NORMAL,
4846 2, 0
4848 aPropSequence [0].Value = makeAny (createParameterPair(&aData));
4851 aPropSequence [1].Name = "RangeXMaximum";
4852 EnhancedCustomShapeParameter aParameter;
4853 Any aAny ((sal_Int32) 50000);
4854 aParameter.Value = aAny;
4855 aParameter.Type = EnhancedCustomShapeParameterType::NORMAL;
4856 aPropSequence [1].Value = makeAny (aParameter);
4859 aPropSequence [2].Name = "RangeXMinimum";
4860 EnhancedCustomShapeParameter aParameter;
4861 Any aAny ((sal_Int32) 0);
4862 aParameter.Value = aAny;
4863 aParameter.Type = EnhancedCustomShapeParameterType::NORMAL;
4864 aPropSequence [2].Value = makeAny (aParameter);
4867 aPropSequence [3].Name = "RefX";
4868 Any aAny ((sal_Int32) 0);
4869 aPropSequence [3].Value = makeAny (aAny);
4871 aPropSequenceSequence [0] = aPropSequence;
4873 aPropertyMap [PROP_Handles] <<= aPropSequenceSequence;
4876 aPropertyMap [PROP_MirroredX] <<= Any ((sal_Bool) sal_False);
4879 aPropertyMap [PROP_MirroredY] <<= Any ((sal_Bool) sal_False);
4882 Sequence< PropertyValue > aPropSequence (3);
4884 aPropSequence [0].Name = "Coordinates";
4885 static const CustomShapeProvider::ParameterPairData aData[] = {
4887 EnhancedCustomShapeParameterType::NORMAL,
4888 EnhancedCustomShapeParameterType::NORMAL,
4889 0, 0
4892 EnhancedCustomShapeParameterType::EQUATION,
4893 EnhancedCustomShapeParameterType::NORMAL,
4894 8, 0
4897 EnhancedCustomShapeParameterType::EQUATION,
4898 EnhancedCustomShapeParameterType::EQUATION,
4899 8, 7
4902 EnhancedCustomShapeParameterType::NORMAL,
4903 EnhancedCustomShapeParameterType::EQUATION,
4904 0, 7
4907 EnhancedCustomShapeParameterType::EQUATION,
4908 EnhancedCustomShapeParameterType::EQUATION,
4909 2, 2
4912 EnhancedCustomShapeParameterType::EQUATION,
4913 EnhancedCustomShapeParameterType::EQUATION,
4914 2, 4
4917 EnhancedCustomShapeParameterType::EQUATION,
4918 EnhancedCustomShapeParameterType::EQUATION,
4919 3, 4
4922 EnhancedCustomShapeParameterType::EQUATION,
4923 EnhancedCustomShapeParameterType::EQUATION,
4924 3, 2
4927 aPropSequence [0].Value = makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData), aData));
4930 aPropSequence [1].Name = "Segments";
4931 static const sal_uInt16 nValues[] = {
4932 // Command, Count
4933 1,1,
4934 2,3,
4935 4,0,
4936 1,1,
4937 2,3,
4938 4,0,
4941 aPropSequence [1].Value = makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues ), nValues ));
4944 aPropSequence [2].Name = "TextFrames";
4945 Sequence< EnhancedCustomShapeTextFrame > aTextFrameSeq (1);
4947 EnhancedCustomShapeTextFrame aTextFrame;
4949 static const CustomShapeProvider::ParameterPairData aData =
4951 EnhancedCustomShapeParameterType::EQUATION,
4952 EnhancedCustomShapeParameterType::EQUATION,
4953 2, 2
4955 aTextFrame.TopLeft = createParameterPair(&aData);
4958 static const CustomShapeProvider::ParameterPairData aData =
4960 EnhancedCustomShapeParameterType::EQUATION,
4961 EnhancedCustomShapeParameterType::EQUATION,
4962 3, 4
4964 aTextFrame.BottomRight = createParameterPair(&aData);
4966 aTextFrameSeq [0] = aTextFrame;
4968 aPropSequence [2].Value = makeAny (aTextFrameSeq);
4970 aPropertyMap [PROP_Path] <<= aPropSequence;
4973 awt::Rectangle aRectangle;
4974 aRectangle.X = 0;
4975 aRectangle.Y = 0;
4976 aRectangle.Width = 0;
4977 aRectangle.Height = 0;
4978 aPropertyMap [PROP_ViewBox] <<= aRectangle;
4980 aPropertyMap [ PROP_Type ] <<= OUString("ooxml-frame");
4982 return aPropertyMap;
4985 class ShapeCrtTriangle : public CustomShapeProvider
4987 virtual PropertyMap getProperties()
4989 PropertyMap aPropertyMap;
4992 aPropertyMap [PROP_AdjustmentValues] <<= Sequence< OUString >(0);
4995 static const char *aStrings[] = {
4996 "logheight*7/12",
4997 "logwidth*7/12",
4998 "logheight*11/12",
4999 "logheight/2",
5000 "logheight",
5001 "logwidth/2",
5002 "logwidth",
5003 "logwidth/12"
5005 aPropertyMap [PROP_Equations] <<= createStringSequence( SAL_N_ELEMENTS( aStrings ), aStrings );
5008 aPropertyMap [PROP_Handles] <<= Sequence< OUString >(0);
5011 aPropertyMap [PROP_MirroredX] <<= Any ((sal_Bool) sal_False);
5014 aPropertyMap [PROP_MirroredY] <<= Any ((sal_Bool) sal_False);
5017 Sequence< PropertyValue > aPropSequence (3);
5019 aPropSequence [0].Name = "Coordinates";
5020 static const CustomShapeProvider::ParameterPairData aData[] = {
5022 EnhancedCustomShapeParameterType::NORMAL,
5023 EnhancedCustomShapeParameterType::EQUATION,
5024 0, 4
5027 EnhancedCustomShapeParameterType::NORMAL,
5028 EnhancedCustomShapeParameterType::NORMAL,
5029 0, 0
5032 EnhancedCustomShapeParameterType::EQUATION,
5033 EnhancedCustomShapeParameterType::EQUATION,
5034 6, 4
5037 aPropSequence [0].Value = makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData), aData));
5040 aPropSequence [1].Name = "Segments";
5041 static const sal_uInt16 nValues[] = {
5042 // Command, Count
5043 1,1,
5044 2,2,
5045 4,0,
5048 aPropSequence [1].Value = makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues ), nValues ));
5051 aPropSequence [2].Name = "TextFrames";
5052 Sequence< EnhancedCustomShapeTextFrame > aTextFrameSeq (1);
5054 EnhancedCustomShapeTextFrame aTextFrame;
5056 static const CustomShapeProvider::ParameterPairData aData =
5058 EnhancedCustomShapeParameterType::EQUATION,
5059 EnhancedCustomShapeParameterType::EQUATION,
5060 7, 0
5062 aTextFrame.TopLeft = createParameterPair(&aData);
5065 static const CustomShapeProvider::ParameterPairData aData =
5067 EnhancedCustomShapeParameterType::EQUATION,
5068 EnhancedCustomShapeParameterType::EQUATION,
5069 1, 2
5071 aTextFrame.BottomRight = createParameterPair(&aData);
5073 aTextFrameSeq [0] = aTextFrame;
5075 aPropSequence [2].Value = makeAny (aTextFrameSeq);
5077 aPropertyMap [PROP_Path] <<= aPropSequence;
5080 awt::Rectangle aRectangle;
5081 aRectangle.X = 0;
5082 aRectangle.Y = 0;
5083 aRectangle.Width = 0;
5084 aRectangle.Height = 0;
5085 aPropertyMap [PROP_ViewBox] <<= aRectangle;
5087 aPropertyMap [ PROP_Type ] <<= OUString("ooxml-rtTriangle");
5089 return aPropertyMap;
5092 class ShapeCflowChartMagneticTape : public CustomShapeProvider
5094 virtual PropertyMap getProperties()
5096 PropertyMap aPropertyMap;
5099 aPropertyMap [PROP_AdjustmentValues] <<= Sequence< OUString >(0);
5102 static const char *aStrings[] = {
5103 "logwidth/2",
5104 "?0 *cos(pi*(2700000)/10800000)",
5105 "logheight/2",
5106 "?2 *sin(pi*(2700000)/10800000)",
5107 "logwidth/2",
5108 "?4 +0-?1 ",
5109 "?4 +?1 -0",
5110 "logheight/2",
5111 "?7 +0-?3 ",
5112 "?7 +?3 -0",
5113 "(10800000*atan2(logheight,logwidth))/pi",
5114 "logheight",
5115 "logwidth",
5116 "(5400000)/60000.0",
5117 "(5400000)/60000.0",
5118 "(10800000)/60000.0",
5119 "(5400000)/60000.0",
5120 "(16200000)/60000.0",
5121 "(5400000)/60000.0",
5122 "(0)/60000.0",
5123 "(?10 )/60000.0"
5125 aPropertyMap [PROP_Equations] <<= createStringSequence( SAL_N_ELEMENTS( aStrings ), aStrings );
5128 aPropertyMap [PROP_Handles] <<= Sequence< OUString >(0);
5131 aPropertyMap [PROP_MirroredX] <<= Any ((sal_Bool) sal_False);
5134 aPropertyMap [PROP_MirroredY] <<= Any ((sal_Bool) sal_False);
5137 Sequence< PropertyValue > aPropSequence (3);
5139 aPropSequence [0].Name = "Coordinates";
5140 static const CustomShapeProvider::ParameterPairData aData[] = {
5142 EnhancedCustomShapeParameterType::EQUATION,
5143 EnhancedCustomShapeParameterType::EQUATION,
5144 4, 11
5147 EnhancedCustomShapeParameterType::EQUATION,
5148 EnhancedCustomShapeParameterType::EQUATION,
5149 0, 2
5152 EnhancedCustomShapeParameterType::EQUATION,
5153 EnhancedCustomShapeParameterType::EQUATION,
5154 13, 14
5157 EnhancedCustomShapeParameterType::EQUATION,
5158 EnhancedCustomShapeParameterType::EQUATION,
5159 0, 2
5162 EnhancedCustomShapeParameterType::EQUATION,
5163 EnhancedCustomShapeParameterType::EQUATION,
5164 15, 16
5167 EnhancedCustomShapeParameterType::EQUATION,
5168 EnhancedCustomShapeParameterType::EQUATION,
5169 0, 2
5172 EnhancedCustomShapeParameterType::EQUATION,
5173 EnhancedCustomShapeParameterType::EQUATION,
5174 17, 18
5177 EnhancedCustomShapeParameterType::EQUATION,
5178 EnhancedCustomShapeParameterType::EQUATION,
5179 0, 2
5182 EnhancedCustomShapeParameterType::EQUATION,
5183 EnhancedCustomShapeParameterType::EQUATION,
5184 19, 20
5187 EnhancedCustomShapeParameterType::EQUATION,
5188 EnhancedCustomShapeParameterType::EQUATION,
5189 12, 9
5192 EnhancedCustomShapeParameterType::EQUATION,
5193 EnhancedCustomShapeParameterType::EQUATION,
5194 12, 11
5197 aPropSequence [0].Value = makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData), aData));
5200 aPropSequence [1].Name = "Segments";
5201 static const sal_uInt16 nValues[] = {
5202 // Command, Count
5203 1,1,
5204 17,4,
5205 2,2,
5206 4,0,
5209 aPropSequence [1].Value = makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues ), nValues ));
5212 aPropSequence [2].Name = "TextFrames";
5213 Sequence< EnhancedCustomShapeTextFrame > aTextFrameSeq (1);
5215 EnhancedCustomShapeTextFrame aTextFrame;
5217 static const CustomShapeProvider::ParameterPairData aData =
5219 EnhancedCustomShapeParameterType::EQUATION,
5220 EnhancedCustomShapeParameterType::EQUATION,
5221 5, 8
5223 aTextFrame.TopLeft = createParameterPair(&aData);
5226 static const CustomShapeProvider::ParameterPairData aData =
5228 EnhancedCustomShapeParameterType::EQUATION,
5229 EnhancedCustomShapeParameterType::EQUATION,
5230 6, 9
5232 aTextFrame.BottomRight = createParameterPair(&aData);
5234 aTextFrameSeq [0] = aTextFrame;
5236 aPropSequence [2].Value = makeAny (aTextFrameSeq);
5238 aPropertyMap [PROP_Path] <<= aPropSequence;
5241 awt::Rectangle aRectangle;
5242 aRectangle.X = 0;
5243 aRectangle.Y = 0;
5244 aRectangle.Width = 0;
5245 aRectangle.Height = 0;
5246 aPropertyMap [PROP_ViewBox] <<= aRectangle;
5248 aPropertyMap [ PROP_Type ] <<= OUString("ooxml-flowChartMagneticTape");
5250 return aPropertyMap;
5253 class ShapeCcurvedRightArrow : public CustomShapeProvider
5255 virtual PropertyMap getProperties()
5257 PropertyMap aPropertyMap;
5260 Sequence< EnhancedCustomShapeAdjustmentValue > aAdjSequence (3);
5262 Any aAny ((sal_Int32) 25000);
5263 aAdjSequence [0].Value = aAny;
5264 aAdjSequence [0].Name = "adj1";
5267 Any aAny ((sal_Int32) 50000);
5268 aAdjSequence [1].Value = aAny;
5269 aAdjSequence [1].Name = "adj2";
5272 Any aAny ((sal_Int32) 25000);
5273 aAdjSequence [2].Value = aAny;
5274 aAdjSequence [2].Name = "adj3";
5276 aPropertyMap [PROP_AdjustmentValues] <<= aAdjSequence;
5279 static const char *aStrings[] = {
5280 "min(logwidth,logheight)",
5281 "50000*logheight/?0 ",
5282 "if(0-$1 ,0,if(?1 -$1 ,$1 ,?1 ))",
5283 "if(0-$0 ,0,if(?2 -$0 ,$0 ,?2 ))",
5284 "?0 *?3 /100000",
5285 "?0 *?2 /100000",
5286 "(?4 +?5 )/4",
5287 "logheight/2",
5288 "?7 +0-?6 ",
5289 "?8 *2/1",
5290 "?9 *?9 /1",
5291 "?4 *?4 /1",
5292 "?10 +0-?11 ",
5293 "sqrt(?12 )",
5294 "?13 *logwidth/?9 ",
5295 "100000*?14 /?0 ",
5296 "if(0-$2 ,0,if(?15 -$2 ,$2 ,?15 ))",
5297 "?0 *?16 /100000",
5298 "?8 +?4 -0",
5299 "logwidth*logwidth/1",
5300 "?17 *?17 /1",
5301 "?19 +0-?20 ",
5302 "sqrt(?21 )",
5303 "?22 *?8 /logwidth",
5304 "?8 +?23 -0",
5305 "?18 +?23 -0",
5306 "?5 +0-?4 ",
5307 "?26 *1/2",
5308 "?24 +0-?27 ",
5309 "?25 +?27 -0",
5310 "?5 *1/2",
5311 "logheight+0-?30 ",
5312 "logwidth+0-?17 ",
5313 "(10800000*atan2(?23 ,?17 ))/pi",
5314 "10800000+0-?33 ",
5315 "0+0-?33 ",
5316 "logwidth+0-?14 ",
5317 "(?8 +?18 )/2",
5318 "?4 *1/2",
5319 "(10800000*atan2(?38 ,?14 ))/pi",
5320 "?39 +0-5400000",
5321 "5400000+?39 -0",
5322 "10800000+0-?39 ",
5323 "logwidth",
5324 "logheight",
5325 "logwidth",
5326 "(10800000)/60000.0",
5327 "(?35 )/60000.0",
5328 "(?34 )/60000.0",
5329 "(?33 )/60000.0",
5330 "(16200000)/60000.0",
5331 "(?40 )/60000.0",
5332 "(?42 )/60000.0",
5333 "(?41 )/60000.0",
5334 "(10800000)/60000.0",
5335 "(?35 )/60000.0",
5336 "(?34 )/60000.0",
5337 "(?33 )/60000.0",
5338 "(10800000)/60000.0",
5339 "(5400000)/60000.0",
5340 "(16200000)/60000.0",
5341 "(?40 )/60000.0"
5343 aPropertyMap [PROP_Equations] <<= createStringSequence( SAL_N_ELEMENTS( aStrings ), aStrings );
5346 Sequence< Sequence < PropertyValue > > aPropSequenceSequence (3);
5348 Sequence< PropertyValue > aPropSequence (4);
5350 aPropSequence [0].Name = "Position";
5351 static const CustomShapeProvider::ParameterPairData aData =
5353 EnhancedCustomShapeParameterType::EQUATION,
5354 EnhancedCustomShapeParameterType::EQUATION,
5355 32, 24
5357 aPropSequence [0].Value = makeAny (createParameterPair(&aData));
5360 aPropSequence [1].Name = "RangeYMaximum";
5361 EnhancedCustomShapeParameter aParameter;
5362 Any aAny ((sal_Int32) 2);
5363 aParameter.Value = aAny;
5364 aParameter.Type = EnhancedCustomShapeParameterType::EQUATION;
5365 aPropSequence [1].Value = makeAny (aParameter);
5368 aPropSequence [2].Name = "RangeYMinimum";
5369 EnhancedCustomShapeParameter aParameter;
5370 Any aAny ((sal_Int32) 0);
5371 aParameter.Value = aAny;
5372 aParameter.Type = EnhancedCustomShapeParameterType::NORMAL;
5373 aPropSequence [2].Value = makeAny (aParameter);
5376 aPropSequence [3].Name = "RefY";
5377 Any aAny ((sal_Int32) 0);
5378 aPropSequence [3].Value = makeAny (aAny);
5380 aPropSequenceSequence [0] = aPropSequence;
5383 Sequence< PropertyValue > aPropSequence (4);
5385 aPropSequence [0].Name = "Position";
5386 static const CustomShapeProvider::ParameterPairData aData =
5388 EnhancedCustomShapeParameterType::EQUATION,
5389 EnhancedCustomShapeParameterType::EQUATION,
5390 43, 28
5392 aPropSequence [0].Value = makeAny (createParameterPair(&aData));
5395 aPropSequence [1].Name = "RangeYMaximum";
5396 EnhancedCustomShapeParameter aParameter;
5397 Any aAny ((sal_Int32) 1);
5398 aParameter.Value = aAny;
5399 aParameter.Type = EnhancedCustomShapeParameterType::EQUATION;
5400 aPropSequence [1].Value = makeAny (aParameter);
5403 aPropSequence [2].Name = "RangeYMinimum";
5404 EnhancedCustomShapeParameter aParameter;
5405 Any aAny ((sal_Int32) 0);
5406 aParameter.Value = aAny;
5407 aParameter.Type = EnhancedCustomShapeParameterType::NORMAL;
5408 aPropSequence [2].Value = makeAny (aParameter);
5411 aPropSequence [3].Name = "RefY";
5412 Any aAny ((sal_Int32) 1);
5413 aPropSequence [3].Value = makeAny (aAny);
5415 aPropSequenceSequence [1] = aPropSequence;
5418 Sequence< PropertyValue > aPropSequence (4);
5420 aPropSequence [0].Name = "Position";
5421 static const CustomShapeProvider::ParameterPairData aData =
5423 EnhancedCustomShapeParameterType::EQUATION,
5424 EnhancedCustomShapeParameterType::EQUATION,
5425 32, 44
5427 aPropSequence [0].Value = makeAny (createParameterPair(&aData));
5430 aPropSequence [1].Name = "RangeXMaximum";
5431 EnhancedCustomShapeParameter aParameter;
5432 Any aAny ((sal_Int32) 15);
5433 aParameter.Value = aAny;
5434 aParameter.Type = EnhancedCustomShapeParameterType::EQUATION;
5435 aPropSequence [1].Value = makeAny (aParameter);
5438 aPropSequence [2].Name = "RangeXMinimum";
5439 EnhancedCustomShapeParameter aParameter;
5440 Any aAny ((sal_Int32) 0);
5441 aParameter.Value = aAny;
5442 aParameter.Type = EnhancedCustomShapeParameterType::NORMAL;
5443 aPropSequence [2].Value = makeAny (aParameter);
5446 aPropSequence [3].Name = "RefX";
5447 Any aAny ((sal_Int32) 2);
5448 aPropSequence [3].Value = makeAny (aAny);
5450 aPropSequenceSequence [2] = aPropSequence;
5452 aPropertyMap [PROP_Handles] <<= aPropSequenceSequence;
5455 aPropertyMap [PROP_MirroredX] <<= Any ((sal_Bool) sal_False);
5458 aPropertyMap [PROP_MirroredY] <<= Any ((sal_Bool) sal_False);
5461 Sequence< PropertyValue > aPropSequence (3);
5463 aPropSequence [0].Name = "Coordinates";
5464 static const CustomShapeProvider::ParameterPairData aData[] = {
5466 EnhancedCustomShapeParameterType::NORMAL,
5467 EnhancedCustomShapeParameterType::EQUATION,
5468 0, 8
5471 EnhancedCustomShapeParameterType::EQUATION,
5472 EnhancedCustomShapeParameterType::EQUATION,
5473 45, 8
5476 EnhancedCustomShapeParameterType::EQUATION,
5477 EnhancedCustomShapeParameterType::EQUATION,
5478 46, 47
5481 EnhancedCustomShapeParameterType::EQUATION,
5482 EnhancedCustomShapeParameterType::EQUATION,
5483 32, 28
5486 EnhancedCustomShapeParameterType::EQUATION,
5487 EnhancedCustomShapeParameterType::EQUATION,
5488 43, 31
5491 EnhancedCustomShapeParameterType::EQUATION,
5492 EnhancedCustomShapeParameterType::EQUATION,
5493 32, 29
5496 EnhancedCustomShapeParameterType::EQUATION,
5497 EnhancedCustomShapeParameterType::EQUATION,
5498 32, 25
5501 EnhancedCustomShapeParameterType::EQUATION,
5502 EnhancedCustomShapeParameterType::EQUATION,
5503 45, 8
5506 EnhancedCustomShapeParameterType::EQUATION,
5507 EnhancedCustomShapeParameterType::EQUATION,
5508 48, 49
5511 EnhancedCustomShapeParameterType::EQUATION,
5512 EnhancedCustomShapeParameterType::EQUATION,
5513 43, 4
5516 EnhancedCustomShapeParameterType::EQUATION,
5517 EnhancedCustomShapeParameterType::EQUATION,
5518 45, 8
5521 EnhancedCustomShapeParameterType::EQUATION,
5522 EnhancedCustomShapeParameterType::EQUATION,
5523 50, 51
5526 EnhancedCustomShapeParameterType::EQUATION,
5527 EnhancedCustomShapeParameterType::EQUATION,
5528 45, 8
5531 EnhancedCustomShapeParameterType::EQUATION,
5532 EnhancedCustomShapeParameterType::EQUATION,
5533 52, 53
5536 EnhancedCustomShapeParameterType::NORMAL,
5537 EnhancedCustomShapeParameterType::EQUATION,
5538 0, 8
5541 EnhancedCustomShapeParameterType::EQUATION,
5542 EnhancedCustomShapeParameterType::EQUATION,
5543 45, 8
5546 EnhancedCustomShapeParameterType::EQUATION,
5547 EnhancedCustomShapeParameterType::EQUATION,
5548 54, 55
5551 EnhancedCustomShapeParameterType::EQUATION,
5552 EnhancedCustomShapeParameterType::EQUATION,
5553 32, 28
5556 EnhancedCustomShapeParameterType::EQUATION,
5557 EnhancedCustomShapeParameterType::EQUATION,
5558 43, 31
5561 EnhancedCustomShapeParameterType::EQUATION,
5562 EnhancedCustomShapeParameterType::EQUATION,
5563 32, 29
5566 EnhancedCustomShapeParameterType::EQUATION,
5567 EnhancedCustomShapeParameterType::EQUATION,
5568 32, 25
5571 EnhancedCustomShapeParameterType::EQUATION,
5572 EnhancedCustomShapeParameterType::EQUATION,
5573 45, 8
5576 EnhancedCustomShapeParameterType::EQUATION,
5577 EnhancedCustomShapeParameterType::EQUATION,
5578 56, 57
5581 EnhancedCustomShapeParameterType::NORMAL,
5582 EnhancedCustomShapeParameterType::EQUATION,
5583 0, 8
5586 EnhancedCustomShapeParameterType::EQUATION,
5587 EnhancedCustomShapeParameterType::EQUATION,
5588 45, 8
5591 EnhancedCustomShapeParameterType::EQUATION,
5592 EnhancedCustomShapeParameterType::EQUATION,
5593 58, 59
5596 EnhancedCustomShapeParameterType::EQUATION,
5597 EnhancedCustomShapeParameterType::EQUATION,
5598 43, 4
5601 EnhancedCustomShapeParameterType::EQUATION,
5602 EnhancedCustomShapeParameterType::EQUATION,
5603 45, 8
5606 EnhancedCustomShapeParameterType::EQUATION,
5607 EnhancedCustomShapeParameterType::EQUATION,
5608 60, 61
5611 aPropSequence [0].Value = makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData), aData));
5614 aPropSequence [1].Name = "Segments";
5615 static const sal_uInt16 nValues[] = {
5616 // Command, Count
5617 1,1,
5618 17,1,
5619 2,4,
5620 17,1,
5621 4,0,
5622 7,0,
5623 5,0,
5624 1,1,
5625 17,2,
5626 4,0,
5627 19,0,
5628 7,0,
5629 5,0,
5630 1,1,
5631 17,1,
5632 2,4,
5633 17,1,
5634 2,1,
5635 17,1,
5636 2,1,
5637 17,1,
5638 6,0,
5641 aPropSequence [1].Value = makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues ), nValues ));
5644 aPropSequence [2].Name = "TextFrames";
5645 Sequence< EnhancedCustomShapeTextFrame > aTextFrameSeq (1);
5647 EnhancedCustomShapeTextFrame aTextFrame;
5649 static const CustomShapeProvider::ParameterPairData aData =
5651 EnhancedCustomShapeParameterType::NORMAL,
5652 EnhancedCustomShapeParameterType::NORMAL,
5653 0, 0
5655 aTextFrame.TopLeft = createParameterPair(&aData);
5658 static const CustomShapeProvider::ParameterPairData aData =
5660 EnhancedCustomShapeParameterType::EQUATION,
5661 EnhancedCustomShapeParameterType::EQUATION,
5662 43, 44
5664 aTextFrame.BottomRight = createParameterPair(&aData);
5666 aTextFrameSeq [0] = aTextFrame;
5668 aPropSequence [2].Value = makeAny (aTextFrameSeq);
5670 aPropertyMap [PROP_Path] <<= aPropSequence;
5673 awt::Rectangle aRectangle;
5674 aRectangle.X = 0;
5675 aRectangle.Y = 0;
5676 aRectangle.Width = 0;
5677 aRectangle.Height = 0;
5678 aPropertyMap [PROP_ViewBox] <<= aRectangle;
5680 aPropertyMap [ PROP_Type ] <<= OUString("ooxml-curvedRightArrow");
5682 return aPropertyMap;
5685 class ShapeCleftUpArrow : public CustomShapeProvider
5687 virtual PropertyMap getProperties()
5689 PropertyMap aPropertyMap;
5692 Sequence< EnhancedCustomShapeAdjustmentValue > aAdjSequence (3);
5694 Any aAny ((sal_Int32) 25000);
5695 aAdjSequence [0].Value = aAny;
5696 aAdjSequence [0].Name = "adj1";
5699 Any aAny ((sal_Int32) 25000);
5700 aAdjSequence [1].Value = aAny;
5701 aAdjSequence [1].Name = "adj2";
5704 Any aAny ((sal_Int32) 25000);
5705 aAdjSequence [2].Value = aAny;
5706 aAdjSequence [2].Name = "adj3";
5708 aPropertyMap [PROP_AdjustmentValues] <<= aAdjSequence;
5711 static const char *aStrings[] = {
5712 "if(0-$1 ,0,if(50000-$1 ,$1 ,50000))",
5713 "?0 *2/1",
5714 "if(0-$0 ,0,if(?1 -$0 ,$0 ,?1 ))",
5715 "100000+0-?1 ",
5716 "if(0-$2 ,0,if(?3 -$2 ,$2 ,?3 ))",
5717 "min(logwidth,logheight)",
5718 "?5 *?4 /100000",
5719 "?5 *?0 /50000",
5720 "logwidth+0-?7 ",
5721 "logheight+0-?7 ",
5722 "?5 *?0 /100000",
5723 "logwidth+0-?10 ",
5724 "logheight+0-?10 ",
5725 "?5 *?2 /200000",
5726 "?11 +0-?13 ",
5727 "?11 +?13 -0",
5728 "?12 +0-?13 ",
5729 "?12 +?13 -0",
5730 "?13 *?6 /?10 ",
5731 "(?6 +?15 )/2",
5732 "(?6 +?17 )/2",
5733 "logheight",
5734 "logwidth"
5736 aPropertyMap [PROP_Equations] <<= createStringSequence( SAL_N_ELEMENTS( aStrings ), aStrings );
5739 Sequence< Sequence < PropertyValue > > aPropSequenceSequence (3);
5741 Sequence< PropertyValue > aPropSequence (4);
5743 aPropSequence [0].Name = "Position";
5744 static const CustomShapeProvider::ParameterPairData aData =
5746 EnhancedCustomShapeParameterType::EQUATION,
5747 EnhancedCustomShapeParameterType::EQUATION,
5748 14, 16
5750 aPropSequence [0].Value = makeAny (createParameterPair(&aData));
5753 aPropSequence [1].Name = "RangeYMaximum";
5754 EnhancedCustomShapeParameter aParameter;
5755 Any aAny ((sal_Int32) 1);
5756 aParameter.Value = aAny;
5757 aParameter.Type = EnhancedCustomShapeParameterType::EQUATION;
5758 aPropSequence [1].Value = makeAny (aParameter);
5761 aPropSequence [2].Name = "RangeYMinimum";
5762 EnhancedCustomShapeParameter aParameter;
5763 Any aAny ((sal_Int32) 0);
5764 aParameter.Value = aAny;
5765 aParameter.Type = EnhancedCustomShapeParameterType::NORMAL;
5766 aPropSequence [2].Value = makeAny (aParameter);
5769 aPropSequence [3].Name = "RefY";
5770 Any aAny ((sal_Int32) 0);
5771 aPropSequence [3].Value = makeAny (aAny);
5773 aPropSequenceSequence [0] = aPropSequence;
5776 Sequence< PropertyValue > aPropSequence (4);
5778 aPropSequence [0].Name = "Position";
5779 static const CustomShapeProvider::ParameterPairData aData =
5781 EnhancedCustomShapeParameterType::EQUATION,
5782 EnhancedCustomShapeParameterType::NORMAL,
5783 8, 0
5785 aPropSequence [0].Value = makeAny (createParameterPair(&aData));
5788 aPropSequence [1].Name = "RangeXMaximum";
5789 EnhancedCustomShapeParameter aParameter;
5790 Any aAny ((sal_Int32) 50000);
5791 aParameter.Value = aAny;
5792 aParameter.Type = EnhancedCustomShapeParameterType::NORMAL;
5793 aPropSequence [1].Value = makeAny (aParameter);
5796 aPropSequence [2].Name = "RangeXMinimum";
5797 EnhancedCustomShapeParameter aParameter;
5798 Any aAny ((sal_Int32) 0);
5799 aParameter.Value = aAny;
5800 aParameter.Type = EnhancedCustomShapeParameterType::NORMAL;
5801 aPropSequence [2].Value = makeAny (aParameter);
5804 aPropSequence [3].Name = "RefX";
5805 Any aAny ((sal_Int32) 1);
5806 aPropSequence [3].Value = makeAny (aAny);
5808 aPropSequenceSequence [1] = aPropSequence;
5811 Sequence< PropertyValue > aPropSequence (4);
5813 aPropSequence [0].Name = "Position";
5814 static const CustomShapeProvider::ParameterPairData aData =
5816 EnhancedCustomShapeParameterType::EQUATION,
5817 EnhancedCustomShapeParameterType::EQUATION,
5818 14, 6
5820 aPropSequence [0].Value = makeAny (createParameterPair(&aData));
5823 aPropSequence [1].Name = "RangeYMaximum";
5824 EnhancedCustomShapeParameter aParameter;
5825 Any aAny ((sal_Int32) 3);
5826 aParameter.Value = aAny;
5827 aParameter.Type = EnhancedCustomShapeParameterType::EQUATION;
5828 aPropSequence [1].Value = makeAny (aParameter);
5831 aPropSequence [2].Name = "RangeYMinimum";
5832 EnhancedCustomShapeParameter aParameter;
5833 Any aAny ((sal_Int32) 0);
5834 aParameter.Value = aAny;
5835 aParameter.Type = EnhancedCustomShapeParameterType::NORMAL;
5836 aPropSequence [2].Value = makeAny (aParameter);
5839 aPropSequence [3].Name = "RefY";
5840 Any aAny ((sal_Int32) 2);
5841 aPropSequence [3].Value = makeAny (aAny);
5843 aPropSequenceSequence [2] = aPropSequence;
5845 aPropertyMap [PROP_Handles] <<= aPropSequenceSequence;
5848 aPropertyMap [PROP_MirroredX] <<= Any ((sal_Bool) sal_False);
5851 aPropertyMap [PROP_MirroredY] <<= Any ((sal_Bool) sal_False);
5854 Sequence< PropertyValue > aPropSequence (3);
5856 aPropSequence [0].Name = "Coordinates";
5857 static const CustomShapeProvider::ParameterPairData aData[] = {
5859 EnhancedCustomShapeParameterType::NORMAL,
5860 EnhancedCustomShapeParameterType::EQUATION,
5861 0, 12
5864 EnhancedCustomShapeParameterType::EQUATION,
5865 EnhancedCustomShapeParameterType::EQUATION,
5866 6, 9
5869 EnhancedCustomShapeParameterType::EQUATION,
5870 EnhancedCustomShapeParameterType::EQUATION,
5871 6, 16
5874 EnhancedCustomShapeParameterType::EQUATION,
5875 EnhancedCustomShapeParameterType::EQUATION,
5876 14, 16
5879 EnhancedCustomShapeParameterType::EQUATION,
5880 EnhancedCustomShapeParameterType::EQUATION,
5881 14, 6
5884 EnhancedCustomShapeParameterType::EQUATION,
5885 EnhancedCustomShapeParameterType::EQUATION,
5886 8, 6
5889 EnhancedCustomShapeParameterType::EQUATION,
5890 EnhancedCustomShapeParameterType::NORMAL,
5891 11, 0
5894 EnhancedCustomShapeParameterType::EQUATION,
5895 EnhancedCustomShapeParameterType::EQUATION,
5896 22, 6
5899 EnhancedCustomShapeParameterType::EQUATION,
5900 EnhancedCustomShapeParameterType::EQUATION,
5901 15, 6
5904 EnhancedCustomShapeParameterType::EQUATION,
5905 EnhancedCustomShapeParameterType::EQUATION,
5906 15, 17
5909 EnhancedCustomShapeParameterType::EQUATION,
5910 EnhancedCustomShapeParameterType::EQUATION,
5911 6, 17
5914 EnhancedCustomShapeParameterType::EQUATION,
5915 EnhancedCustomShapeParameterType::EQUATION,
5916 6, 21
5919 aPropSequence [0].Value = makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData), aData));
5922 aPropSequence [1].Name = "Segments";
5923 static const sal_uInt16 nValues[] = {
5924 // Command, Count
5925 1,1,
5926 2,11,
5927 4,0,
5930 aPropSequence [1].Value = makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues ), nValues ));
5933 aPropSequence [2].Name = "TextFrames";
5934 Sequence< EnhancedCustomShapeTextFrame > aTextFrameSeq (1);
5936 EnhancedCustomShapeTextFrame aTextFrame;
5938 static const CustomShapeProvider::ParameterPairData aData =
5940 EnhancedCustomShapeParameterType::EQUATION,
5941 EnhancedCustomShapeParameterType::EQUATION,
5942 18, 16
5944 aTextFrame.TopLeft = createParameterPair(&aData);
5947 static const CustomShapeProvider::ParameterPairData aData =
5949 EnhancedCustomShapeParameterType::EQUATION,
5950 EnhancedCustomShapeParameterType::EQUATION,
5951 11, 17
5953 aTextFrame.BottomRight = createParameterPair(&aData);
5955 aTextFrameSeq [0] = aTextFrame;
5957 aPropSequence [2].Value = makeAny (aTextFrameSeq);
5959 aPropertyMap [PROP_Path] <<= aPropSequence;
5962 awt::Rectangle aRectangle;
5963 aRectangle.X = 0;
5964 aRectangle.Y = 0;
5965 aRectangle.Width = 0;
5966 aRectangle.Height = 0;
5967 aPropertyMap [PROP_ViewBox] <<= aRectangle;
5969 aPropertyMap [ PROP_Type ] <<= OUString("ooxml-leftUpArrow");
5971 return aPropertyMap;
5974 class ShapeCwedgeEllipseCallout : public CustomShapeProvider
5976 virtual PropertyMap getProperties()
5978 PropertyMap aPropertyMap;
5981 Sequence< EnhancedCustomShapeAdjustmentValue > aAdjSequence (2);
5983 Any aAny ((sal_Int32) -20833);
5984 aAdjSequence [0].Value = aAny;
5985 aAdjSequence [0].Name = "adj1";
5988 Any aAny ((sal_Int32) 62500);
5989 aAdjSequence [1].Value = aAny;
5990 aAdjSequence [1].Name = "adj2";
5992 aPropertyMap [PROP_AdjustmentValues] <<= aAdjSequence;
5995 static const char *aStrings[] = {
5996 "logwidth*$0 /100000",
5997 "logheight*$1 /100000",
5998 "logwidth/2",
5999 "?2 +?0 -0",
6000 "logheight/2",
6001 "?4 +?1 -0",
6002 "?0 *logheight/1",
6003 "?1 *logwidth/1",
6004 "(10800000*atan2(?7 ,?6 ))/pi",
6005 "?8 +660000-0",
6006 "?8 +0-660000",
6007 "logwidth/2",
6008 "?11 *cos(pi*(?9 )/10800000)",
6009 "logheight/2",
6010 "?13 *sin(pi*(?9 )/10800000)",
6011 "?2 +?12 -0",
6012 "?4 +?14 -0",
6013 "?11 *cos(pi*(?10 )/10800000)",
6014 "?13 *sin(pi*(?10 )/10800000)",
6015 "?2 +?17 -0",
6016 "?4 +?18 -0",
6017 "(10800000*atan2(?14 ,?12 ))/pi",
6018 "(10800000*atan2(?18 ,?17 ))/pi",
6019 "?22 +0-?21 ",
6020 "?23 +21600000-0",
6021 "if(?23 ,?23 ,?24 )",
6022 "?11 *cos(pi*(2700000)/10800000)",
6023 "?13 *sin(pi*(2700000)/10800000)",
6024 "?2 +0-?26 ",
6025 "?2 +?26 -0",
6026 "?4 +0-?27 ",
6027 "?4 +?27 -0",
6028 "logheight",
6029 "logwidth",
6030 "(?21 )/60000.0",
6031 "(?25 )/60000.0"
6033 aPropertyMap [PROP_Equations] <<= createStringSequence( SAL_N_ELEMENTS( aStrings ), aStrings );
6036 Sequence< Sequence < PropertyValue > > aPropSequenceSequence (1);
6038 Sequence< PropertyValue > aPropSequence (7);
6040 aPropSequence [0].Name = "Position";
6041 static const CustomShapeProvider::ParameterPairData aData =
6043 EnhancedCustomShapeParameterType::EQUATION,
6044 EnhancedCustomShapeParameterType::EQUATION,
6045 3, 5
6047 aPropSequence [0].Value = makeAny (createParameterPair(&aData));
6050 aPropSequence [1].Name = "RangeXMaximum";
6051 EnhancedCustomShapeParameter aParameter;
6052 Any aAny ((sal_Int32) 2147483647);
6053 aParameter.Value = aAny;
6054 aParameter.Type = EnhancedCustomShapeParameterType::NORMAL;
6055 aPropSequence [1].Value = makeAny (aParameter);
6058 aPropSequence [2].Name = "RangeXMinimum";
6059 EnhancedCustomShapeParameter aParameter;
6060 Any aAny ((sal_Int32) -2147483647);
6061 aParameter.Value = aAny;
6062 aParameter.Type = EnhancedCustomShapeParameterType::NORMAL;
6063 aPropSequence [2].Value = makeAny (aParameter);
6066 aPropSequence [3].Name = "RangeYMaximum";
6067 EnhancedCustomShapeParameter aParameter;
6068 Any aAny ((sal_Int32) 2147483647);
6069 aParameter.Value = aAny;
6070 aParameter.Type = EnhancedCustomShapeParameterType::NORMAL;
6071 aPropSequence [3].Value = makeAny (aParameter);
6074 aPropSequence [4].Name = "RangeYMinimum";
6075 EnhancedCustomShapeParameter aParameter;
6076 Any aAny ((sal_Int32) -2147483647);
6077 aParameter.Value = aAny;
6078 aParameter.Type = EnhancedCustomShapeParameterType::NORMAL;
6079 aPropSequence [4].Value = makeAny (aParameter);
6082 aPropSequence [5].Name = "RefX";
6083 Any aAny ((sal_Int32) 0);
6084 aPropSequence [5].Value = makeAny (aAny);
6087 aPropSequence [6].Name = "RefY";
6088 Any aAny ((sal_Int32) 1);
6089 aPropSequence [6].Value = makeAny (aAny);
6091 aPropSequenceSequence [0] = aPropSequence;
6093 aPropertyMap [PROP_Handles] <<= aPropSequenceSequence;
6096 aPropertyMap [PROP_MirroredX] <<= Any ((sal_Bool) sal_False);
6099 aPropertyMap [PROP_MirroredY] <<= Any ((sal_Bool) sal_False);
6102 Sequence< PropertyValue > aPropSequence (3);
6104 aPropSequence [0].Name = "Coordinates";
6105 static const CustomShapeProvider::ParameterPairData aData[] = {
6107 EnhancedCustomShapeParameterType::EQUATION,
6108 EnhancedCustomShapeParameterType::EQUATION,
6109 3, 5
6112 EnhancedCustomShapeParameterType::EQUATION,
6113 EnhancedCustomShapeParameterType::EQUATION,
6114 15, 16
6117 EnhancedCustomShapeParameterType::EQUATION,
6118 EnhancedCustomShapeParameterType::EQUATION,
6119 11, 13
6122 EnhancedCustomShapeParameterType::EQUATION,
6123 EnhancedCustomShapeParameterType::EQUATION,
6124 34, 35
6127 aPropSequence [0].Value = makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData), aData));
6130 aPropSequence [1].Name = "Segments";
6131 static const sal_uInt16 nValues[] = {
6132 // Command, Count
6133 1,1,
6134 2,1,
6135 17,1,
6136 4,0,
6139 aPropSequence [1].Value = makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues ), nValues ));
6142 aPropSequence [2].Name = "TextFrames";
6143 Sequence< EnhancedCustomShapeTextFrame > aTextFrameSeq (1);
6145 EnhancedCustomShapeTextFrame aTextFrame;
6147 static const CustomShapeProvider::ParameterPairData aData =
6149 EnhancedCustomShapeParameterType::EQUATION,
6150 EnhancedCustomShapeParameterType::EQUATION,
6151 28, 30
6153 aTextFrame.TopLeft = createParameterPair(&aData);
6156 static const CustomShapeProvider::ParameterPairData aData =
6158 EnhancedCustomShapeParameterType::EQUATION,
6159 EnhancedCustomShapeParameterType::EQUATION,
6160 29, 31
6162 aTextFrame.BottomRight = createParameterPair(&aData);
6164 aTextFrameSeq [0] = aTextFrame;
6166 aPropSequence [2].Value = makeAny (aTextFrameSeq);
6168 aPropertyMap [PROP_Path] <<= aPropSequence;
6171 awt::Rectangle aRectangle;
6172 aRectangle.X = 0;
6173 aRectangle.Y = 0;
6174 aRectangle.Width = 0;
6175 aRectangle.Height = 0;
6176 aPropertyMap [PROP_ViewBox] <<= aRectangle;
6178 aPropertyMap [ PROP_Type ] <<= OUString("ooxml-wedgeEllipseCallout");
6180 return aPropertyMap;
6183 class ShapeCdoubleWave : public CustomShapeProvider
6185 virtual PropertyMap getProperties()
6187 PropertyMap aPropertyMap;
6190 Sequence< EnhancedCustomShapeAdjustmentValue > aAdjSequence (2);
6192 Any aAny ((sal_Int32) 6250);
6193 aAdjSequence [0].Value = aAny;
6194 aAdjSequence [0].Name = "adj1";
6197 Any aAny ((sal_Int32) 0);
6198 aAdjSequence [1].Value = aAny;
6199 aAdjSequence [1].Name = "adj2";
6201 aPropertyMap [PROP_AdjustmentValues] <<= aAdjSequence;
6204 static const char *aStrings[] = {
6205 "if(0-$0 ,0,if(12500-$0 ,$0 ,12500))",
6206 "if(-10000-$1 ,-10000,if(10000-$1 ,$1 ,10000))",
6207 "logheight*?0 /100000",
6208 "?2 *10/3",
6209 "?2 +0-?3 ",
6210 "?2 +?3 -0",
6211 "logheight+0-?2 ",
6212 "?6 +0-?3 ",
6213 "?6 +?3 -0",
6214 "logwidth*?1 /100000",
6215 "logwidth*?1 /50000",
6216 "abs(?9 )",
6217 "if(?10 ,0,?10 )",
6218 "0+0-?12 ",
6219 "if(?10 ,?10 ,0)",
6220 "logwidth+0-?14 ",
6221 "(?12 +?15 )/6",
6222 "?13 +?16 -0",
6223 "(?12 +?15 )/3",
6224 "?13 +?18 -0",
6225 "(?13 +?15 )/2",
6226 "?20 +?16 -0",
6227 "(?21 +?15 )/2",
6228 "0+?14 -0",
6229 "logwidth+?12 -0",
6230 "?23 +?16 -0",
6231 "?23 +?18 -0",
6232 "(?23 +?24 )/2",
6233 "?27 +?16 -0",
6234 "(?28 +?24 )/2",
6235 "logwidth+0-?11 ",
6236 "logwidth/2",
6237 "?31 +?9 -0",
6238 "max(?13 ,?23 )",
6239 "min(?15 ,?24 )",
6240 "logheight*?0 /50000",
6241 "logheight+0-?35 ",
6242 "logheight",
6243 "logheight/2"
6245 aPropertyMap [PROP_Equations] <<= createStringSequence( SAL_N_ELEMENTS( aStrings ), aStrings );
6248 Sequence< Sequence < PropertyValue > > aPropSequenceSequence (2);
6250 Sequence< PropertyValue > aPropSequence (4);
6252 aPropSequence [0].Name = "Position";
6253 static const CustomShapeProvider::ParameterPairData aData =
6255 EnhancedCustomShapeParameterType::NORMAL,
6256 EnhancedCustomShapeParameterType::EQUATION,
6257 0, 2
6259 aPropSequence [0].Value = makeAny (createParameterPair(&aData));
6262 aPropSequence [1].Name = "RangeYMaximum";
6263 EnhancedCustomShapeParameter aParameter;
6264 Any aAny ((sal_Int32) 12500);
6265 aParameter.Value = aAny;
6266 aParameter.Type = EnhancedCustomShapeParameterType::NORMAL;
6267 aPropSequence [1].Value = makeAny (aParameter);
6270 aPropSequence [2].Name = "RangeYMinimum";
6271 EnhancedCustomShapeParameter aParameter;
6272 Any aAny ((sal_Int32) 0);
6273 aParameter.Value = aAny;
6274 aParameter.Type = EnhancedCustomShapeParameterType::NORMAL;
6275 aPropSequence [2].Value = makeAny (aParameter);
6278 aPropSequence [3].Name = "RefY";
6279 Any aAny ((sal_Int32) 0);
6280 aPropSequence [3].Value = makeAny (aAny);
6282 aPropSequenceSequence [0] = aPropSequence;
6285 Sequence< PropertyValue > aPropSequence (4);
6287 aPropSequence [0].Name = "Position";
6288 static const CustomShapeProvider::ParameterPairData aData =
6290 EnhancedCustomShapeParameterType::EQUATION,
6291 EnhancedCustomShapeParameterType::EQUATION,
6292 32, 37
6294 aPropSequence [0].Value = makeAny (createParameterPair(&aData));
6297 aPropSequence [1].Name = "RangeXMaximum";
6298 EnhancedCustomShapeParameter aParameter;
6299 Any aAny ((sal_Int32) 10000);
6300 aParameter.Value = aAny;
6301 aParameter.Type = EnhancedCustomShapeParameterType::NORMAL;
6302 aPropSequence [1].Value = makeAny (aParameter);
6305 aPropSequence [2].Name = "RangeXMinimum";
6306 EnhancedCustomShapeParameter aParameter;
6307 Any aAny ((sal_Int32) -10000);
6308 aParameter.Value = aAny;
6309 aParameter.Type = EnhancedCustomShapeParameterType::NORMAL;
6310 aPropSequence [2].Value = makeAny (aParameter);
6313 aPropSequence [3].Name = "RefX";
6314 Any aAny ((sal_Int32) 1);
6315 aPropSequence [3].Value = makeAny (aAny);
6317 aPropSequenceSequence [1] = aPropSequence;
6319 aPropertyMap [PROP_Handles] <<= aPropSequenceSequence;
6322 aPropertyMap [PROP_MirroredX] <<= Any ((sal_Bool) sal_False);
6325 aPropertyMap [PROP_MirroredY] <<= Any ((sal_Bool) sal_False);
6328 Sequence< PropertyValue > aPropSequence (3);
6330 aPropSequence [0].Name = "Coordinates";
6331 static const CustomShapeProvider::ParameterPairData aData[] = {
6333 EnhancedCustomShapeParameterType::EQUATION,
6334 EnhancedCustomShapeParameterType::EQUATION,
6335 13, 2
6338 EnhancedCustomShapeParameterType::EQUATION,
6339 EnhancedCustomShapeParameterType::EQUATION,
6340 17, 4
6343 EnhancedCustomShapeParameterType::EQUATION,
6344 EnhancedCustomShapeParameterType::EQUATION,
6345 19, 5
6348 EnhancedCustomShapeParameterType::EQUATION,
6349 EnhancedCustomShapeParameterType::EQUATION,
6350 20, 2
6353 EnhancedCustomShapeParameterType::EQUATION,
6354 EnhancedCustomShapeParameterType::EQUATION,
6355 21, 4
6358 EnhancedCustomShapeParameterType::EQUATION,
6359 EnhancedCustomShapeParameterType::EQUATION,
6360 22, 5
6363 EnhancedCustomShapeParameterType::EQUATION,
6364 EnhancedCustomShapeParameterType::EQUATION,
6365 15, 2
6368 EnhancedCustomShapeParameterType::EQUATION,
6369 EnhancedCustomShapeParameterType::EQUATION,
6370 24, 6
6373 EnhancedCustomShapeParameterType::EQUATION,
6374 EnhancedCustomShapeParameterType::EQUATION,
6375 29, 8
6378 EnhancedCustomShapeParameterType::EQUATION,
6379 EnhancedCustomShapeParameterType::EQUATION,
6380 28, 7
6383 EnhancedCustomShapeParameterType::EQUATION,
6384 EnhancedCustomShapeParameterType::EQUATION,
6385 27, 6
6388 EnhancedCustomShapeParameterType::EQUATION,
6389 EnhancedCustomShapeParameterType::EQUATION,
6390 26, 8
6393 EnhancedCustomShapeParameterType::EQUATION,
6394 EnhancedCustomShapeParameterType::EQUATION,
6395 25, 7
6398 EnhancedCustomShapeParameterType::EQUATION,
6399 EnhancedCustomShapeParameterType::EQUATION,
6400 23, 6
6403 aPropSequence [0].Value = makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData), aData));
6406 aPropSequence [1].Name = "Segments";
6407 static const sal_uInt16 nValues[] = {
6408 // Command, Count
6409 1,1,
6410 3,2,
6411 2,1,
6412 3,2,
6413 4,0,
6416 aPropSequence [1].Value = makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues ), nValues ));
6419 aPropSequence [2].Name = "TextFrames";
6420 Sequence< EnhancedCustomShapeTextFrame > aTextFrameSeq (1);
6422 EnhancedCustomShapeTextFrame aTextFrame;
6424 static const CustomShapeProvider::ParameterPairData aData =
6426 EnhancedCustomShapeParameterType::EQUATION,
6427 EnhancedCustomShapeParameterType::EQUATION,
6428 33, 35
6430 aTextFrame.TopLeft = createParameterPair(&aData);
6433 static const CustomShapeProvider::ParameterPairData aData =
6435 EnhancedCustomShapeParameterType::EQUATION,
6436 EnhancedCustomShapeParameterType::EQUATION,
6437 34, 36
6439 aTextFrame.BottomRight = createParameterPair(&aData);
6441 aTextFrameSeq [0] = aTextFrame;
6443 aPropSequence [2].Value = makeAny (aTextFrameSeq);
6445 aPropertyMap [PROP_Path] <<= aPropSequence;
6448 awt::Rectangle aRectangle;
6449 aRectangle.X = 0;
6450 aRectangle.Y = 0;
6451 aRectangle.Width = 0;
6452 aRectangle.Height = 0;
6453 aPropertyMap [PROP_ViewBox] <<= aRectangle;
6455 aPropertyMap [ PROP_Type ] <<= OUString("ooxml-doubleWave");
6457 return aPropertyMap;
6460 class ShapeCbentArrow : public CustomShapeProvider
6462 virtual PropertyMap getProperties()
6464 PropertyMap aPropertyMap;
6467 Sequence< EnhancedCustomShapeAdjustmentValue > aAdjSequence (4);
6469 Any aAny ((sal_Int32) 25000);
6470 aAdjSequence [0].Value = aAny;
6471 aAdjSequence [0].Name = "adj1";
6474 Any aAny ((sal_Int32) 25000);
6475 aAdjSequence [1].Value = aAny;
6476 aAdjSequence [1].Name = "adj2";
6479 Any aAny ((sal_Int32) 25000);
6480 aAdjSequence [2].Value = aAny;
6481 aAdjSequence [2].Name = "adj3";
6484 Any aAny ((sal_Int32) 43750);
6485 aAdjSequence [3].Value = aAny;
6486 aAdjSequence [3].Name = "adj4";
6488 aPropertyMap [PROP_AdjustmentValues] <<= aAdjSequence;
6491 static const char *aStrings[] = {
6492 "if(0-$1 ,0,if(50000-$1 ,$1 ,50000))",
6493 "?0 *2/1",
6494 "if(0-$0 ,0,if(?1 -$0 ,$0 ,?1 ))",
6495 "if(0-$2 ,0,if(50000-$2 ,$2 ,50000))",
6496 "min(logwidth,logheight)",
6497 "?4 *?2 /100000",
6498 "?4 *?0 /100000",
6499 "?5 *1/2",
6500 "?6 +0-?7 ",
6501 "?4 *?3 /100000",
6502 "logwidth+0-?9 ",
6503 "logheight+0-?8 ",
6504 "min(?10 ,?11 )",
6505 "100000*?12 /?4 ",
6506 "if(0-$3 ,0,if(?13 -$3 ,$3 ,?13 ))",
6507 "?4 *?14 /100000",
6508 "?15 +0-?5 ",
6509 "max(?16 ,0)",
6510 "?5 +?17 -0",
6511 "logwidth+0-?9 ",
6512 "?8 +?5 -0",
6513 "?20 +?8 -0",
6514 "?8 +?15 -0",
6515 "?20 +?17 -0",
6516 "logheight",
6517 "logwidth",
6518 "(10800000)/60000.0",
6519 "(5400000)/60000.0",
6520 "(16200000)/60000.0",
6521 "(-5400000)/60000.0"
6523 aPropertyMap [PROP_Equations] <<= createStringSequence( SAL_N_ELEMENTS( aStrings ), aStrings );
6526 Sequence< Sequence < PropertyValue > > aPropSequenceSequence (4);
6528 Sequence< PropertyValue > aPropSequence (4);
6530 aPropSequence [0].Name = "Position";
6531 static const CustomShapeProvider::ParameterPairData aData =
6533 EnhancedCustomShapeParameterType::EQUATION,
6534 EnhancedCustomShapeParameterType::EQUATION,
6535 5, 24
6537 aPropSequence [0].Value = makeAny (createParameterPair(&aData));
6540 aPropSequence [1].Name = "RangeXMaximum";
6541 EnhancedCustomShapeParameter aParameter;
6542 Any aAny ((sal_Int32) 1);
6543 aParameter.Value = aAny;
6544 aParameter.Type = EnhancedCustomShapeParameterType::EQUATION;
6545 aPropSequence [1].Value = makeAny (aParameter);
6548 aPropSequence [2].Name = "RangeXMinimum";
6549 EnhancedCustomShapeParameter aParameter;
6550 Any aAny ((sal_Int32) 0);
6551 aParameter.Value = aAny;
6552 aParameter.Type = EnhancedCustomShapeParameterType::NORMAL;
6553 aPropSequence [2].Value = makeAny (aParameter);
6556 aPropSequence [3].Name = "RefX";
6557 Any aAny ((sal_Int32) 0);
6558 aPropSequence [3].Value = makeAny (aAny);
6560 aPropSequenceSequence [0] = aPropSequence;
6563 Sequence< PropertyValue > aPropSequence (4);
6565 aPropSequence [0].Name = "Position";
6566 static const CustomShapeProvider::ParameterPairData aData =
6568 EnhancedCustomShapeParameterType::EQUATION,
6569 EnhancedCustomShapeParameterType::EQUATION,
6570 25, 21
6572 aPropSequence [0].Value = makeAny (createParameterPair(&aData));
6575 aPropSequence [1].Name = "RangeYMaximum";
6576 EnhancedCustomShapeParameter aParameter;
6577 Any aAny ((sal_Int32) 50000);
6578 aParameter.Value = aAny;
6579 aParameter.Type = EnhancedCustomShapeParameterType::NORMAL;
6580 aPropSequence [1].Value = makeAny (aParameter);
6583 aPropSequence [2].Name = "RangeYMinimum";
6584 EnhancedCustomShapeParameter aParameter;
6585 Any aAny ((sal_Int32) 0);
6586 aParameter.Value = aAny;
6587 aParameter.Type = EnhancedCustomShapeParameterType::NORMAL;
6588 aPropSequence [2].Value = makeAny (aParameter);
6591 aPropSequence [3].Name = "RefY";
6592 Any aAny ((sal_Int32) 1);
6593 aPropSequence [3].Value = makeAny (aAny);
6595 aPropSequenceSequence [1] = aPropSequence;
6598 Sequence< PropertyValue > aPropSequence (4);
6600 aPropSequence [0].Name = "Position";
6601 static const CustomShapeProvider::ParameterPairData aData =
6603 EnhancedCustomShapeParameterType::EQUATION,
6604 EnhancedCustomShapeParameterType::NORMAL,
6605 19, 0
6607 aPropSequence [0].Value = makeAny (createParameterPair(&aData));
6610 aPropSequence [1].Name = "RangeXMaximum";
6611 EnhancedCustomShapeParameter aParameter;
6612 Any aAny ((sal_Int32) 50000);
6613 aParameter.Value = aAny;
6614 aParameter.Type = EnhancedCustomShapeParameterType::NORMAL;
6615 aPropSequence [1].Value = makeAny (aParameter);
6618 aPropSequence [2].Name = "RangeXMinimum";
6619 EnhancedCustomShapeParameter aParameter;
6620 Any aAny ((sal_Int32) 0);
6621 aParameter.Value = aAny;
6622 aParameter.Type = EnhancedCustomShapeParameterType::NORMAL;
6623 aPropSequence [2].Value = makeAny (aParameter);
6626 aPropSequence [3].Name = "RefX";
6627 Any aAny ((sal_Int32) 2);
6628 aPropSequence [3].Value = makeAny (aAny);
6630 aPropSequenceSequence [2] = aPropSequence;
6633 Sequence< PropertyValue > aPropSequence (4);
6635 aPropSequence [0].Name = "Position";
6636 static const CustomShapeProvider::ParameterPairData aData =
6638 EnhancedCustomShapeParameterType::EQUATION,
6639 EnhancedCustomShapeParameterType::NORMAL,
6640 15, 0
6642 aPropSequence [0].Value = makeAny (createParameterPair(&aData));
6645 aPropSequence [1].Name = "RangeXMaximum";
6646 EnhancedCustomShapeParameter aParameter;
6647 Any aAny ((sal_Int32) 13);
6648 aParameter.Value = aAny;
6649 aParameter.Type = EnhancedCustomShapeParameterType::EQUATION;
6650 aPropSequence [1].Value = makeAny (aParameter);
6653 aPropSequence [2].Name = "RangeXMinimum";
6654 EnhancedCustomShapeParameter aParameter;
6655 Any aAny ((sal_Int32) 0);
6656 aParameter.Value = aAny;
6657 aParameter.Type = EnhancedCustomShapeParameterType::NORMAL;
6658 aPropSequence [2].Value = makeAny (aParameter);
6661 aPropSequence [3].Name = "RefX";
6662 Any aAny ((sal_Int32) 3);
6663 aPropSequence [3].Value = makeAny (aAny);
6665 aPropSequenceSequence [3] = aPropSequence;
6667 aPropertyMap [PROP_Handles] <<= aPropSequenceSequence;
6670 aPropertyMap [PROP_MirroredX] <<= Any ((sal_Bool) sal_False);
6673 aPropertyMap [PROP_MirroredY] <<= Any ((sal_Bool) sal_False);
6676 Sequence< PropertyValue > aPropSequence (3);
6678 aPropSequence [0].Name = "Coordinates";
6679 static const CustomShapeProvider::ParameterPairData aData[] = {
6681 EnhancedCustomShapeParameterType::NORMAL,
6682 EnhancedCustomShapeParameterType::EQUATION,
6683 0, 24
6686 EnhancedCustomShapeParameterType::NORMAL,
6687 EnhancedCustomShapeParameterType::EQUATION,
6688 0, 22
6691 EnhancedCustomShapeParameterType::EQUATION,
6692 EnhancedCustomShapeParameterType::EQUATION,
6693 15, 15
6696 EnhancedCustomShapeParameterType::EQUATION,
6697 EnhancedCustomShapeParameterType::EQUATION,
6698 26, 27
6701 EnhancedCustomShapeParameterType::EQUATION,
6702 EnhancedCustomShapeParameterType::EQUATION,
6703 19, 8
6706 EnhancedCustomShapeParameterType::EQUATION,
6707 EnhancedCustomShapeParameterType::NORMAL,
6708 19, 0
6711 EnhancedCustomShapeParameterType::EQUATION,
6712 EnhancedCustomShapeParameterType::EQUATION,
6713 25, 6
6716 EnhancedCustomShapeParameterType::EQUATION,
6717 EnhancedCustomShapeParameterType::EQUATION,
6718 19, 21
6721 EnhancedCustomShapeParameterType::EQUATION,
6722 EnhancedCustomShapeParameterType::EQUATION,
6723 19, 20
6726 EnhancedCustomShapeParameterType::EQUATION,
6727 EnhancedCustomShapeParameterType::EQUATION,
6728 18, 20
6731 EnhancedCustomShapeParameterType::EQUATION,
6732 EnhancedCustomShapeParameterType::EQUATION,
6733 17, 17
6736 EnhancedCustomShapeParameterType::EQUATION,
6737 EnhancedCustomShapeParameterType::EQUATION,
6738 28, 29
6741 EnhancedCustomShapeParameterType::EQUATION,
6742 EnhancedCustomShapeParameterType::EQUATION,
6743 5, 24
6746 aPropSequence [0].Value = makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData), aData));
6749 aPropSequence [1].Name = "Segments";
6750 static const sal_uInt16 nValues[] = {
6751 // Command, Count
6752 1,1,
6753 2,1,
6754 17,1,
6755 2,6,
6756 17,1,
6757 2,1,
6758 4,0,
6761 aPropSequence [1].Value = makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues ), nValues ));
6764 aPropSequence [2].Name = "TextFrames";
6765 Sequence< EnhancedCustomShapeTextFrame > aTextFrameSeq (1);
6767 EnhancedCustomShapeTextFrame aTextFrame;
6769 static const CustomShapeProvider::ParameterPairData aData =
6771 EnhancedCustomShapeParameterType::NORMAL,
6772 EnhancedCustomShapeParameterType::NORMAL,
6773 0, 0
6775 aTextFrame.TopLeft = createParameterPair(&aData);
6778 static const CustomShapeProvider::ParameterPairData aData =
6780 EnhancedCustomShapeParameterType::EQUATION,
6781 EnhancedCustomShapeParameterType::EQUATION,
6782 25, 24
6784 aTextFrame.BottomRight = createParameterPair(&aData);
6786 aTextFrameSeq [0] = aTextFrame;
6788 aPropSequence [2].Value = makeAny (aTextFrameSeq);
6790 aPropertyMap [PROP_Path] <<= aPropSequence;
6793 awt::Rectangle aRectangle;
6794 aRectangle.X = 0;
6795 aRectangle.Y = 0;
6796 aRectangle.Width = 0;
6797 aRectangle.Height = 0;
6798 aPropertyMap [PROP_ViewBox] <<= aRectangle;
6800 aPropertyMap [ PROP_Type ] <<= OUString("ooxml-bentArrow");
6802 return aPropertyMap;
6805 class ShapeCstar10 : public CustomShapeProvider
6807 virtual PropertyMap getProperties()
6809 PropertyMap aPropertyMap;
6812 Sequence< EnhancedCustomShapeAdjustmentValue > aAdjSequence (2);
6814 Any aAny ((sal_Int32) 42533);
6815 aAdjSequence [0].Value = aAny;
6816 aAdjSequence [0].Name = "adj";
6819 Any aAny ((sal_Int32) 105146);
6820 aAdjSequence [1].Value = aAny;
6821 aAdjSequence [1].Name = "hf";
6823 aPropertyMap [PROP_AdjustmentValues] <<= aAdjSequence;
6826 static const char *aStrings[] = {
6827 "if(0-$0 ,0,if(50000-$0 ,$0 ,50000))",
6828 "logwidth/2",
6829 "?1 *$1 /100000",
6830 "?2 *95106/100000",
6831 "?2 *58779/100000",
6832 "logwidth/2",
6833 "?5 +0-?3 ",
6834 "?5 +0-?4 ",
6835 "?5 +?4 -0",
6836 "?5 +?3 -0",
6837 "logheight/2",
6838 "?10 *80902/100000",
6839 "?10 *30902/100000",
6840 "logheight/2",
6841 "?13 +0-?11 ",
6842 "?13 +0-?12 ",
6843 "?13 +?12 -0",
6844 "?13 +?11 -0",
6845 "?2 *?0 /50000",
6846 "?10 *?0 /50000",
6847 "?18 *80902/100000",
6848 "?18 *30902/100000",
6849 "?19 *95106/100000",
6850 "?19 *58779/100000",
6851 "?5 +0-?18 ",
6852 "?5 +0-?20 ",
6853 "?5 +0-?21 ",
6854 "?5 +?21 -0",
6855 "?5 +?20 -0",
6856 "?5 +?18 -0",
6857 "?13 +0-?22 ",
6858 "?13 +0-?23 ",
6859 "?13 +?23 -0",
6860 "?13 +?22 -0",
6861 "?13 +0-?19 ",
6862 "logheight"
6864 aPropertyMap [PROP_Equations] <<= createStringSequence( SAL_N_ELEMENTS( aStrings ), aStrings );
6867 Sequence< Sequence < PropertyValue > > aPropSequenceSequence (1);
6869 Sequence< PropertyValue > aPropSequence (4);
6871 aPropSequence [0].Name = "Position";
6872 static const CustomShapeProvider::ParameterPairData aData =
6874 EnhancedCustomShapeParameterType::EQUATION,
6875 EnhancedCustomShapeParameterType::EQUATION,
6876 5, 34
6878 aPropSequence [0].Value = makeAny (createParameterPair(&aData));
6881 aPropSequence [1].Name = "RangeYMaximum";
6882 EnhancedCustomShapeParameter aParameter;
6883 Any aAny ((sal_Int32) 50000);
6884 aParameter.Value = aAny;
6885 aParameter.Type = EnhancedCustomShapeParameterType::NORMAL;
6886 aPropSequence [1].Value = makeAny (aParameter);
6889 aPropSequence [2].Name = "RangeYMinimum";
6890 EnhancedCustomShapeParameter aParameter;
6891 Any aAny ((sal_Int32) 0);
6892 aParameter.Value = aAny;
6893 aParameter.Type = EnhancedCustomShapeParameterType::NORMAL;
6894 aPropSequence [2].Value = makeAny (aParameter);
6897 aPropSequence [3].Name = "RefY";
6898 Any aAny ((sal_Int32) 0);
6899 aPropSequence [3].Value = makeAny (aAny);
6901 aPropSequenceSequence [0] = aPropSequence;
6903 aPropertyMap [PROP_Handles] <<= aPropSequenceSequence;
6906 aPropertyMap [PROP_MirroredX] <<= Any ((sal_Bool) sal_False);
6909 aPropertyMap [PROP_MirroredY] <<= Any ((sal_Bool) sal_False);
6912 Sequence< PropertyValue > aPropSequence (3);
6914 aPropSequence [0].Name = "Coordinates";
6915 static const CustomShapeProvider::ParameterPairData aData[] = {
6917 EnhancedCustomShapeParameterType::EQUATION,
6918 EnhancedCustomShapeParameterType::EQUATION,
6919 6, 15
6922 EnhancedCustomShapeParameterType::EQUATION,
6923 EnhancedCustomShapeParameterType::EQUATION,
6924 25, 31
6927 EnhancedCustomShapeParameterType::EQUATION,
6928 EnhancedCustomShapeParameterType::EQUATION,
6929 7, 14
6932 EnhancedCustomShapeParameterType::EQUATION,
6933 EnhancedCustomShapeParameterType::EQUATION,
6934 26, 30
6937 EnhancedCustomShapeParameterType::EQUATION,
6938 EnhancedCustomShapeParameterType::NORMAL,
6939 5, 0
6942 EnhancedCustomShapeParameterType::EQUATION,
6943 EnhancedCustomShapeParameterType::EQUATION,
6944 27, 30
6947 EnhancedCustomShapeParameterType::EQUATION,
6948 EnhancedCustomShapeParameterType::EQUATION,
6949 8, 14
6952 EnhancedCustomShapeParameterType::EQUATION,
6953 EnhancedCustomShapeParameterType::EQUATION,
6954 28, 31
6957 EnhancedCustomShapeParameterType::EQUATION,
6958 EnhancedCustomShapeParameterType::EQUATION,
6959 9, 15
6962 EnhancedCustomShapeParameterType::EQUATION,
6963 EnhancedCustomShapeParameterType::EQUATION,
6964 29, 13
6967 EnhancedCustomShapeParameterType::EQUATION,
6968 EnhancedCustomShapeParameterType::EQUATION,
6969 9, 16
6972 EnhancedCustomShapeParameterType::EQUATION,
6973 EnhancedCustomShapeParameterType::EQUATION,
6974 28, 32
6977 EnhancedCustomShapeParameterType::EQUATION,
6978 EnhancedCustomShapeParameterType::EQUATION,
6979 8, 17
6982 EnhancedCustomShapeParameterType::EQUATION,
6983 EnhancedCustomShapeParameterType::EQUATION,
6984 27, 33
6987 EnhancedCustomShapeParameterType::EQUATION,
6988 EnhancedCustomShapeParameterType::EQUATION,
6989 5, 35
6992 EnhancedCustomShapeParameterType::EQUATION,
6993 EnhancedCustomShapeParameterType::EQUATION,
6994 26, 33
6997 EnhancedCustomShapeParameterType::EQUATION,
6998 EnhancedCustomShapeParameterType::EQUATION,
6999 7, 17
7002 EnhancedCustomShapeParameterType::EQUATION,
7003 EnhancedCustomShapeParameterType::EQUATION,
7004 25, 32
7007 EnhancedCustomShapeParameterType::EQUATION,
7008 EnhancedCustomShapeParameterType::EQUATION,
7009 6, 16
7012 EnhancedCustomShapeParameterType::EQUATION,
7013 EnhancedCustomShapeParameterType::EQUATION,
7014 24, 13
7017 aPropSequence [0].Value = makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData), aData));
7020 aPropSequence [1].Name = "Segments";
7021 static const sal_uInt16 nValues[] = {
7022 // Command, Count
7023 1,1,
7024 2,19,
7025 4,0,
7028 aPropSequence [1].Value = makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues ), nValues ));
7031 aPropSequence [2].Name = "TextFrames";
7032 Sequence< EnhancedCustomShapeTextFrame > aTextFrameSeq (1);
7034 EnhancedCustomShapeTextFrame aTextFrame;
7036 static const CustomShapeProvider::ParameterPairData aData =
7038 EnhancedCustomShapeParameterType::EQUATION,
7039 EnhancedCustomShapeParameterType::EQUATION,
7040 25, 31
7042 aTextFrame.TopLeft = createParameterPair(&aData);
7045 static const CustomShapeProvider::ParameterPairData aData =
7047 EnhancedCustomShapeParameterType::EQUATION,
7048 EnhancedCustomShapeParameterType::EQUATION,
7049 28, 32
7051 aTextFrame.BottomRight = createParameterPair(&aData);
7053 aTextFrameSeq [0] = aTextFrame;
7055 aPropSequence [2].Value = makeAny (aTextFrameSeq);
7057 aPropertyMap [PROP_Path] <<= aPropSequence;
7060 awt::Rectangle aRectangle;
7061 aRectangle.X = 0;
7062 aRectangle.Y = 0;
7063 aRectangle.Width = 0;
7064 aRectangle.Height = 0;
7065 aPropertyMap [PROP_ViewBox] <<= aRectangle;
7067 aPropertyMap [ PROP_Type ] <<= OUString("ooxml-star10");
7069 return aPropertyMap;
7072 class ShapeCleftArrow : public CustomShapeProvider
7074 virtual PropertyMap getProperties()
7076 PropertyMap aPropertyMap;
7079 Sequence< EnhancedCustomShapeAdjustmentValue > aAdjSequence (2);
7081 Any aAny ((sal_Int32) 50000);
7082 aAdjSequence [0].Value = aAny;
7083 aAdjSequence [0].Name = "adj1";
7086 Any aAny ((sal_Int32) 50000);
7087 aAdjSequence [1].Value = aAny;
7088 aAdjSequence [1].Name = "adj2";
7090 aPropertyMap [PROP_AdjustmentValues] <<= aAdjSequence;
7093 static const char *aStrings[] = {
7094 "min(logwidth,logheight)",
7095 "100000*logwidth/?0 ",
7096 "if(0-$0 ,0,if(100000-$0 ,$0 ,100000))",
7097 "if(0-$1 ,0,if(?1 -$1 ,$1 ,?1 ))",
7098 "?0 *?3 /100000",
7099 "0+?4 -0",
7100 "logheight*?2 /200000",
7101 "logheight/2",
7102 "?7 +0-?6 ",
7103 "?7 +?6 -0",
7104 "logheight/2",
7105 "?8 *?4 /?10 ",
7106 "?5 +0-?11 ",
7107 "logwidth",
7108 "logheight"
7110 aPropertyMap [PROP_Equations] <<= createStringSequence( SAL_N_ELEMENTS( aStrings ), aStrings );
7113 Sequence< Sequence < PropertyValue > > aPropSequenceSequence (2);
7115 Sequence< PropertyValue > aPropSequence (4);
7117 aPropSequence [0].Name = "Position";
7118 static const CustomShapeProvider::ParameterPairData aData =
7120 EnhancedCustomShapeParameterType::EQUATION,
7121 EnhancedCustomShapeParameterType::EQUATION,
7122 13, 8
7124 aPropSequence [0].Value = makeAny (createParameterPair(&aData));
7127 aPropSequence [1].Name = "RangeYMaximum";
7128 EnhancedCustomShapeParameter aParameter;
7129 Any aAny ((sal_Int32) 100000);
7130 aParameter.Value = aAny;
7131 aParameter.Type = EnhancedCustomShapeParameterType::NORMAL;
7132 aPropSequence [1].Value = makeAny (aParameter);
7135 aPropSequence [2].Name = "RangeYMinimum";
7136 EnhancedCustomShapeParameter aParameter;
7137 Any aAny ((sal_Int32) 0);
7138 aParameter.Value = aAny;
7139 aParameter.Type = EnhancedCustomShapeParameterType::NORMAL;
7140 aPropSequence [2].Value = makeAny (aParameter);
7143 aPropSequence [3].Name = "RefY";
7144 Any aAny ((sal_Int32) 0);
7145 aPropSequence [3].Value = makeAny (aAny);
7147 aPropSequenceSequence [0] = aPropSequence;
7150 Sequence< PropertyValue > aPropSequence (4);
7152 aPropSequence [0].Name = "Position";
7153 static const CustomShapeProvider::ParameterPairData aData =
7155 EnhancedCustomShapeParameterType::EQUATION,
7156 EnhancedCustomShapeParameterType::NORMAL,
7157 5, 0
7159 aPropSequence [0].Value = makeAny (createParameterPair(&aData));
7162 aPropSequence [1].Name = "RangeXMaximum";
7163 EnhancedCustomShapeParameter aParameter;
7164 Any aAny ((sal_Int32) 1);
7165 aParameter.Value = aAny;
7166 aParameter.Type = EnhancedCustomShapeParameterType::EQUATION;
7167 aPropSequence [1].Value = makeAny (aParameter);
7170 aPropSequence [2].Name = "RangeXMinimum";
7171 EnhancedCustomShapeParameter aParameter;
7172 Any aAny ((sal_Int32) 0);
7173 aParameter.Value = aAny;
7174 aParameter.Type = EnhancedCustomShapeParameterType::NORMAL;
7175 aPropSequence [2].Value = makeAny (aParameter);
7178 aPropSequence [3].Name = "RefX";
7179 Any aAny ((sal_Int32) 1);
7180 aPropSequence [3].Value = makeAny (aAny);
7182 aPropSequenceSequence [1] = aPropSequence;
7184 aPropertyMap [PROP_Handles] <<= aPropSequenceSequence;
7187 aPropertyMap [PROP_MirroredX] <<= Any ((sal_Bool) sal_False);
7190 aPropertyMap [PROP_MirroredY] <<= Any ((sal_Bool) sal_False);
7193 Sequence< PropertyValue > aPropSequence (3);
7195 aPropSequence [0].Name = "Coordinates";
7196 static const CustomShapeProvider::ParameterPairData aData[] = {
7198 EnhancedCustomShapeParameterType::NORMAL,
7199 EnhancedCustomShapeParameterType::EQUATION,
7200 0, 7
7203 EnhancedCustomShapeParameterType::EQUATION,
7204 EnhancedCustomShapeParameterType::NORMAL,
7205 5, 0
7208 EnhancedCustomShapeParameterType::EQUATION,
7209 EnhancedCustomShapeParameterType::EQUATION,
7210 5, 8
7213 EnhancedCustomShapeParameterType::EQUATION,
7214 EnhancedCustomShapeParameterType::EQUATION,
7215 13, 8
7218 EnhancedCustomShapeParameterType::EQUATION,
7219 EnhancedCustomShapeParameterType::EQUATION,
7220 13, 9
7223 EnhancedCustomShapeParameterType::EQUATION,
7224 EnhancedCustomShapeParameterType::EQUATION,
7225 5, 9
7228 EnhancedCustomShapeParameterType::EQUATION,
7229 EnhancedCustomShapeParameterType::EQUATION,
7230 5, 14
7233 aPropSequence [0].Value = makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData), aData));
7236 aPropSequence [1].Name = "Segments";
7237 static const sal_uInt16 nValues[] = {
7238 // Command, Count
7239 1,1,
7240 2,6,
7241 4,0,
7244 aPropSequence [1].Value = makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues ), nValues ));
7247 aPropSequence [2].Name = "TextFrames";
7248 Sequence< EnhancedCustomShapeTextFrame > aTextFrameSeq (1);
7250 EnhancedCustomShapeTextFrame aTextFrame;
7252 static const CustomShapeProvider::ParameterPairData aData =
7254 EnhancedCustomShapeParameterType::EQUATION,
7255 EnhancedCustomShapeParameterType::EQUATION,
7256 12, 8
7258 aTextFrame.TopLeft = createParameterPair(&aData);
7261 static const CustomShapeProvider::ParameterPairData aData =
7263 EnhancedCustomShapeParameterType::EQUATION,
7264 EnhancedCustomShapeParameterType::EQUATION,
7265 13, 9
7267 aTextFrame.BottomRight = createParameterPair(&aData);
7269 aTextFrameSeq [0] = aTextFrame;
7271 aPropSequence [2].Value = makeAny (aTextFrameSeq);
7273 aPropertyMap [PROP_Path] <<= aPropSequence;
7276 awt::Rectangle aRectangle;
7277 aRectangle.X = 0;
7278 aRectangle.Y = 0;
7279 aRectangle.Width = 0;
7280 aRectangle.Height = 0;
7281 aPropertyMap [PROP_ViewBox] <<= aRectangle;
7283 aPropertyMap [ PROP_Type ] <<= OUString("ooxml-leftArrow");
7285 return aPropertyMap;
7288 class ShapeCcurvedUpArrow : public CustomShapeProvider
7290 virtual PropertyMap getProperties()
7292 PropertyMap aPropertyMap;
7295 Sequence< EnhancedCustomShapeAdjustmentValue > aAdjSequence (3);
7297 Any aAny ((sal_Int32) 25000);
7298 aAdjSequence [0].Value = aAny;
7299 aAdjSequence [0].Name = "adj1";
7302 Any aAny ((sal_Int32) 50000);
7303 aAdjSequence [1].Value = aAny;
7304 aAdjSequence [1].Name = "adj2";
7307 Any aAny ((sal_Int32) 25000);
7308 aAdjSequence [2].Value = aAny;
7309 aAdjSequence [2].Name = "adj3";
7311 aPropertyMap [PROP_AdjustmentValues] <<= aAdjSequence;
7314 static const char *aStrings[] = {
7315 "min(logwidth,logheight)",
7316 "50000*logwidth/?0 ",
7317 "if(0-$1 ,0,if(?1 -$1 ,$1 ,?1 ))",
7318 "if(0-$0 ,0,if(100000-$0 ,$0 ,100000))",
7319 "?0 *?3 /100000",
7320 "?0 *?2 /100000",
7321 "(?4 +?5 )/4",
7322 "logwidth/2",
7323 "?7 +0-?6 ",
7324 "?8 *2/1",
7325 "?9 *?9 /1",
7326 "?4 *?4 /1",
7327 "?10 +0-?11 ",
7328 "sqrt(?12 )",
7329 "?13 *logheight/?9 ",
7330 "100000*?14 /?0 ",
7331 "if(0-$2 ,0,if(?15 -$2 ,$2 ,?15 ))",
7332 "?0 *$2 /100000",
7333 "?8 +?4 -0",
7334 "logheight*logheight/1",
7335 "?17 *?17 /1",
7336 "?19 +0-?20 ",
7337 "sqrt(?21 )",
7338 "?22 *?8 /logheight",
7339 "?8 +?23 -0",
7340 "?18 +?23 -0",
7341 "?5 +0-?4 ",
7342 "?26 *1/2",
7343 "?24 +0-?27 ",
7344 "?25 +?27 -0",
7345 "?5 *1/2",
7346 "logwidth+0-?30 ",
7347 "0+?17 -0",
7348 "(10800000*atan2(?23 ,?17 ))/pi",
7349 "0+0-?33 ",
7350 "0+?14 -0",
7351 "(?8 +?18 )/2",
7352 "?4 *1/2",
7353 "(10800000*atan2(?37 ,?14 ))/pi",
7354 "?38 +0-?33 ",
7355 "0+0-?39 ",
7356 "5400000+0-?33 ",
7357 "?33 +?38 -0",
7358 "5400000+0-?38 ",
7359 "logwidth",
7360 "logheight",
7361 "logheight",
7362 "(?41 )/60000.0",
7363 "(?42 )/60000.0",
7364 "(?43 )/60000.0",
7365 "(?39 )/60000.0",
7366 "(5400000)/60000.0",
7367 "(5400000)/60000.0",
7368 "(10800000)/60000.0",
7369 "(-5400000)/60000.0",
7370 "(?43 )/60000.0",
7371 "(?39 )/60000.0",
7372 "(?41 )/60000.0",
7373 "(?33 )/60000.0",
7374 "(5400000)/60000.0",
7375 "(5400000)/60000.0",
7376 "(10800000)/60000.0",
7377 "(-5400000)/60000.0"
7379 aPropertyMap [PROP_Equations] <<= createStringSequence( SAL_N_ELEMENTS( aStrings ), aStrings );
7382 Sequence< Sequence < PropertyValue > > aPropSequenceSequence (3);
7384 Sequence< PropertyValue > aPropSequence (4);
7386 aPropSequence [0].Name = "Position";
7387 static const CustomShapeProvider::ParameterPairData aData =
7389 EnhancedCustomShapeParameterType::EQUATION,
7390 EnhancedCustomShapeParameterType::EQUATION,
7391 25, 32
7393 aPropSequence [0].Value = makeAny (createParameterPair(&aData));
7396 aPropSequence [1].Name = "RangeXMaximum";
7397 EnhancedCustomShapeParameter aParameter;
7398 Any aAny ((sal_Int32) 2);
7399 aParameter.Value = aAny;
7400 aParameter.Type = EnhancedCustomShapeParameterType::EQUATION;
7401 aPropSequence [1].Value = makeAny (aParameter);
7404 aPropSequence [2].Name = "RangeXMinimum";
7405 EnhancedCustomShapeParameter aParameter;
7406 Any aAny ((sal_Int32) 0);
7407 aParameter.Value = aAny;
7408 aParameter.Type = EnhancedCustomShapeParameterType::NORMAL;
7409 aPropSequence [2].Value = makeAny (aParameter);
7412 aPropSequence [3].Name = "RefX";
7413 Any aAny ((sal_Int32) 0);
7414 aPropSequence [3].Value = makeAny (aAny);
7416 aPropSequenceSequence [0] = aPropSequence;
7419 Sequence< PropertyValue > aPropSequence (4);
7421 aPropSequence [0].Name = "Position";
7422 static const CustomShapeProvider::ParameterPairData aData =
7424 EnhancedCustomShapeParameterType::EQUATION,
7425 EnhancedCustomShapeParameterType::NORMAL,
7426 28, 0
7428 aPropSequence [0].Value = makeAny (createParameterPair(&aData));
7431 aPropSequence [1].Name = "RangeXMaximum";
7432 EnhancedCustomShapeParameter aParameter;
7433 Any aAny ((sal_Int32) 1);
7434 aParameter.Value = aAny;
7435 aParameter.Type = EnhancedCustomShapeParameterType::EQUATION;
7436 aPropSequence [1].Value = makeAny (aParameter);
7439 aPropSequence [2].Name = "RangeXMinimum";
7440 EnhancedCustomShapeParameter aParameter;
7441 Any aAny ((sal_Int32) 0);
7442 aParameter.Value = aAny;
7443 aParameter.Type = EnhancedCustomShapeParameterType::NORMAL;
7444 aPropSequence [2].Value = makeAny (aParameter);
7447 aPropSequence [3].Name = "RefX";
7448 Any aAny ((sal_Int32) 1);
7449 aPropSequence [3].Value = makeAny (aAny);
7451 aPropSequenceSequence [1] = aPropSequence;
7454 Sequence< PropertyValue > aPropSequence (4);
7456 aPropSequence [0].Name = "Position";
7457 static const CustomShapeProvider::ParameterPairData aData =
7459 EnhancedCustomShapeParameterType::EQUATION,
7460 EnhancedCustomShapeParameterType::EQUATION,
7461 44, 32
7463 aPropSequence [0].Value = makeAny (createParameterPair(&aData));
7466 aPropSequence [1].Name = "RangeYMaximum";
7467 EnhancedCustomShapeParameter aParameter;
7468 Any aAny ((sal_Int32) 15);
7469 aParameter.Value = aAny;
7470 aParameter.Type = EnhancedCustomShapeParameterType::EQUATION;
7471 aPropSequence [1].Value = makeAny (aParameter);
7474 aPropSequence [2].Name = "RangeYMinimum";
7475 EnhancedCustomShapeParameter aParameter;
7476 Any aAny ((sal_Int32) 0);
7477 aParameter.Value = aAny;
7478 aParameter.Type = EnhancedCustomShapeParameterType::NORMAL;
7479 aPropSequence [2].Value = makeAny (aParameter);
7482 aPropSequence [3].Name = "RefY";
7483 Any aAny ((sal_Int32) 2);
7484 aPropSequence [3].Value = makeAny (aAny);
7486 aPropSequenceSequence [2] = aPropSequence;
7488 aPropertyMap [PROP_Handles] <<= aPropSequenceSequence;
7491 aPropertyMap [PROP_MirroredX] <<= Any ((sal_Bool) sal_False);
7494 aPropertyMap [PROP_MirroredY] <<= Any ((sal_Bool) sal_False);
7497 Sequence< PropertyValue > aPropSequence (3);
7499 aPropSequence [0].Name = "Coordinates";
7500 static const CustomShapeProvider::ParameterPairData aData[] = {
7502 EnhancedCustomShapeParameterType::EQUATION,
7503 EnhancedCustomShapeParameterType::NORMAL,
7504 31, 0
7507 EnhancedCustomShapeParameterType::EQUATION,
7508 EnhancedCustomShapeParameterType::EQUATION,
7509 29, 32
7512 EnhancedCustomShapeParameterType::EQUATION,
7513 EnhancedCustomShapeParameterType::EQUATION,
7514 25, 32
7517 EnhancedCustomShapeParameterType::EQUATION,
7518 EnhancedCustomShapeParameterType::EQUATION,
7519 8, 46
7522 EnhancedCustomShapeParameterType::EQUATION,
7523 EnhancedCustomShapeParameterType::EQUATION,
7524 47, 48
7527 EnhancedCustomShapeParameterType::EQUATION,
7528 EnhancedCustomShapeParameterType::EQUATION,
7529 8, 46
7532 EnhancedCustomShapeParameterType::EQUATION,
7533 EnhancedCustomShapeParameterType::EQUATION,
7534 49, 50
7537 EnhancedCustomShapeParameterType::EQUATION,
7538 EnhancedCustomShapeParameterType::EQUATION,
7539 28, 32
7542 EnhancedCustomShapeParameterType::EQUATION,
7543 EnhancedCustomShapeParameterType::EQUATION,
7544 8, 45
7547 EnhancedCustomShapeParameterType::EQUATION,
7548 EnhancedCustomShapeParameterType::EQUATION,
7549 8, 46
7552 EnhancedCustomShapeParameterType::EQUATION,
7553 EnhancedCustomShapeParameterType::EQUATION,
7554 51, 52
7557 EnhancedCustomShapeParameterType::EQUATION,
7558 EnhancedCustomShapeParameterType::NORMAL,
7559 4, 0
7562 EnhancedCustomShapeParameterType::EQUATION,
7563 EnhancedCustomShapeParameterType::EQUATION,
7564 8, 46
7567 EnhancedCustomShapeParameterType::EQUATION,
7568 EnhancedCustomShapeParameterType::EQUATION,
7569 53, 54
7572 EnhancedCustomShapeParameterType::EQUATION,
7573 EnhancedCustomShapeParameterType::EQUATION,
7574 36, 35
7577 EnhancedCustomShapeParameterType::EQUATION,
7578 EnhancedCustomShapeParameterType::EQUATION,
7579 8, 46
7582 EnhancedCustomShapeParameterType::EQUATION,
7583 EnhancedCustomShapeParameterType::EQUATION,
7584 55, 56
7587 EnhancedCustomShapeParameterType::EQUATION,
7588 EnhancedCustomShapeParameterType::EQUATION,
7589 28, 32
7592 EnhancedCustomShapeParameterType::EQUATION,
7593 EnhancedCustomShapeParameterType::NORMAL,
7594 31, 0
7597 EnhancedCustomShapeParameterType::EQUATION,
7598 EnhancedCustomShapeParameterType::EQUATION,
7599 29, 32
7602 EnhancedCustomShapeParameterType::EQUATION,
7603 EnhancedCustomShapeParameterType::EQUATION,
7604 25, 32
7607 EnhancedCustomShapeParameterType::EQUATION,
7608 EnhancedCustomShapeParameterType::EQUATION,
7609 8, 46
7612 EnhancedCustomShapeParameterType::EQUATION,
7613 EnhancedCustomShapeParameterType::EQUATION,
7614 57, 58
7617 EnhancedCustomShapeParameterType::EQUATION,
7618 EnhancedCustomShapeParameterType::EQUATION,
7619 8, 45
7622 EnhancedCustomShapeParameterType::EQUATION,
7623 EnhancedCustomShapeParameterType::EQUATION,
7624 8, 46
7627 EnhancedCustomShapeParameterType::EQUATION,
7628 EnhancedCustomShapeParameterType::EQUATION,
7629 59, 60
7632 EnhancedCustomShapeParameterType::EQUATION,
7633 EnhancedCustomShapeParameterType::NORMAL,
7634 4, 0
7637 EnhancedCustomShapeParameterType::EQUATION,
7638 EnhancedCustomShapeParameterType::EQUATION,
7639 8, 46
7642 EnhancedCustomShapeParameterType::EQUATION,
7643 EnhancedCustomShapeParameterType::EQUATION,
7644 61, 62
7647 aPropSequence [0].Value = makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData), aData));
7650 aPropSequence [1].Name = "Segments";
7651 static const sal_uInt16 nValues[] = {
7652 // Command, Count
7653 1,1,
7654 2,2,
7655 17,2,
7656 2,1,
7657 4,0,
7658 7,0,
7659 5,0,
7660 1,1,
7661 17,1,
7662 2,1,
7663 17,1,
7664 4,0,
7665 19,0,
7666 7,0,
7667 5,0,
7668 1,1,
7669 17,1,
7670 2,4,
7671 17,1,
7672 2,1,
7673 17,1,
7674 2,1,
7675 17,1,
7676 6,0,
7679 aPropSequence [1].Value = makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues ), nValues ));
7682 aPropSequence [2].Name = "TextFrames";
7683 Sequence< EnhancedCustomShapeTextFrame > aTextFrameSeq (1);
7685 EnhancedCustomShapeTextFrame aTextFrame;
7687 static const CustomShapeProvider::ParameterPairData aData =
7689 EnhancedCustomShapeParameterType::NORMAL,
7690 EnhancedCustomShapeParameterType::NORMAL,
7691 0, 0
7693 aTextFrame.TopLeft = createParameterPair(&aData);
7696 static const CustomShapeProvider::ParameterPairData aData =
7698 EnhancedCustomShapeParameterType::EQUATION,
7699 EnhancedCustomShapeParameterType::EQUATION,
7700 44, 45
7702 aTextFrame.BottomRight = createParameterPair(&aData);
7704 aTextFrameSeq [0] = aTextFrame;
7706 aPropSequence [2].Value = makeAny (aTextFrameSeq);
7708 aPropertyMap [PROP_Path] <<= aPropSequence;
7711 awt::Rectangle aRectangle;
7712 aRectangle.X = 0;
7713 aRectangle.Y = 0;
7714 aRectangle.Width = 0;
7715 aRectangle.Height = 0;
7716 aPropertyMap [PROP_ViewBox] <<= aRectangle;
7718 aPropertyMap [ PROP_Type ] <<= OUString("ooxml-curvedUpArrow");
7720 return aPropertyMap;
7723 class ShapeCsnip1Rect : public CustomShapeProvider
7725 virtual PropertyMap getProperties()
7727 PropertyMap aPropertyMap;
7730 Sequence< EnhancedCustomShapeAdjustmentValue > aAdjSequence (1);
7732 Any aAny ((sal_Int32) 16667);
7733 aAdjSequence [0].Value = aAny;
7734 aAdjSequence [0].Name = "adj";
7736 aPropertyMap [PROP_AdjustmentValues] <<= aAdjSequence;
7739 static const char *aStrings[] = {
7740 "if(0-$0 ,0,if(50000-$0 ,$0 ,50000))",
7741 "min(logwidth,logheight)",
7742 "?1 *?0 /100000",
7743 "logwidth+0-?2 ",
7744 "?2 *1/2",
7745 "(?3 +logwidth)/2",
7746 "logwidth",
7747 "logheight/2",
7748 "logwidth/2",
7749 "logheight"
7751 aPropertyMap [PROP_Equations] <<= createStringSequence( SAL_N_ELEMENTS( aStrings ), aStrings );
7754 Sequence< Sequence < PropertyValue > > aPropSequenceSequence (1);
7756 Sequence< PropertyValue > aPropSequence (4);
7758 aPropSequence [0].Name = "Position";
7759 static const CustomShapeProvider::ParameterPairData aData =
7761 EnhancedCustomShapeParameterType::EQUATION,
7762 EnhancedCustomShapeParameterType::NORMAL,
7763 3, 0
7765 aPropSequence [0].Value = makeAny (createParameterPair(&aData));
7768 aPropSequence [1].Name = "RangeXMaximum";
7769 EnhancedCustomShapeParameter aParameter;
7770 Any aAny ((sal_Int32) 50000);
7771 aParameter.Value = aAny;
7772 aParameter.Type = EnhancedCustomShapeParameterType::NORMAL;
7773 aPropSequence [1].Value = makeAny (aParameter);
7776 aPropSequence [2].Name = "RangeXMinimum";
7777 EnhancedCustomShapeParameter aParameter;
7778 Any aAny ((sal_Int32) 0);
7779 aParameter.Value = aAny;
7780 aParameter.Type = EnhancedCustomShapeParameterType::NORMAL;
7781 aPropSequence [2].Value = makeAny (aParameter);
7784 aPropSequence [3].Name = "RefX";
7785 Any aAny ((sal_Int32) 0);
7786 aPropSequence [3].Value = makeAny (aAny);
7788 aPropSequenceSequence [0] = aPropSequence;
7790 aPropertyMap [PROP_Handles] <<= aPropSequenceSequence;
7793 aPropertyMap [PROP_MirroredX] <<= Any ((sal_Bool) sal_False);
7796 aPropertyMap [PROP_MirroredY] <<= Any ((sal_Bool) sal_False);
7799 Sequence< PropertyValue > aPropSequence (3);
7801 aPropSequence [0].Name = "Coordinates";
7802 static const CustomShapeProvider::ParameterPairData aData[] = {
7804 EnhancedCustomShapeParameterType::NORMAL,
7805 EnhancedCustomShapeParameterType::NORMAL,
7806 0, 0
7809 EnhancedCustomShapeParameterType::EQUATION,
7810 EnhancedCustomShapeParameterType::NORMAL,
7811 3, 0
7814 EnhancedCustomShapeParameterType::EQUATION,
7815 EnhancedCustomShapeParameterType::EQUATION,
7816 6, 2
7819 EnhancedCustomShapeParameterType::EQUATION,
7820 EnhancedCustomShapeParameterType::EQUATION,
7821 6, 9
7824 EnhancedCustomShapeParameterType::NORMAL,
7825 EnhancedCustomShapeParameterType::EQUATION,
7826 0, 9
7829 aPropSequence [0].Value = makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData), aData));
7832 aPropSequence [1].Name = "Segments";
7833 static const sal_uInt16 nValues[] = {
7834 // Command, Count
7835 1,1,
7836 2,4,
7837 4,0,
7840 aPropSequence [1].Value = makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues ), nValues ));
7843 aPropSequence [2].Name = "TextFrames";
7844 Sequence< EnhancedCustomShapeTextFrame > aTextFrameSeq (1);
7846 EnhancedCustomShapeTextFrame aTextFrame;
7848 static const CustomShapeProvider::ParameterPairData aData =
7850 EnhancedCustomShapeParameterType::NORMAL,
7851 EnhancedCustomShapeParameterType::EQUATION,
7852 0, 4
7854 aTextFrame.TopLeft = createParameterPair(&aData);
7857 static const CustomShapeProvider::ParameterPairData aData =
7859 EnhancedCustomShapeParameterType::EQUATION,
7860 EnhancedCustomShapeParameterType::EQUATION,
7861 5, 9
7863 aTextFrame.BottomRight = createParameterPair(&aData);
7865 aTextFrameSeq [0] = aTextFrame;
7867 aPropSequence [2].Value = makeAny (aTextFrameSeq);
7869 aPropertyMap [PROP_Path] <<= aPropSequence;
7872 awt::Rectangle aRectangle;
7873 aRectangle.X = 0;
7874 aRectangle.Y = 0;
7875 aRectangle.Width = 0;
7876 aRectangle.Height = 0;
7877 aPropertyMap [PROP_ViewBox] <<= aRectangle;
7879 aPropertyMap [ PROP_Type ] <<= OUString("ooxml-snip1Rect");
7881 return aPropertyMap;
7884 class ShapeCellipseRibbon2 : public CustomShapeProvider
7886 virtual PropertyMap getProperties()
7888 PropertyMap aPropertyMap;
7891 Sequence< EnhancedCustomShapeAdjustmentValue > aAdjSequence (3);
7893 Any aAny ((sal_Int32) 25000);
7894 aAdjSequence [0].Value = aAny;
7895 aAdjSequence [0].Name = "adj1";
7898 Any aAny ((sal_Int32) 50000);
7899 aAdjSequence [1].Value = aAny;
7900 aAdjSequence [1].Name = "adj2";
7903 Any aAny ((sal_Int32) 12500);
7904 aAdjSequence [2].Value = aAny;
7905 aAdjSequence [2].Name = "adj3";
7907 aPropertyMap [PROP_AdjustmentValues] <<= aAdjSequence;
7910 static const char *aStrings[] = {
7911 "if(0-$0 ,0,if(100000-$0 ,$0 ,100000))",
7912 "if(25000-$1 ,25000,if(75000-$1 ,$1 ,75000))",
7913 "100000+0-?0 ",
7914 "?2 *1/2",
7915 "?0 +0-?3 ",
7916 "max(0,?4 )",
7917 "if(?5 -$2 ,?5 ,if(?0 -$2 ,$2 ,?0 ))",
7918 "logwidth*?1 /200000",
7919 "logwidth/2",
7920 "?8 +0-?7 ",
7921 "logwidth/8",
7922 "?9 +?10 -0",
7923 "logwidth+0-?11 ",
7924 "logwidth+0-?9 ",
7925 "logwidth+0-?10 ",
7926 "logheight*?6 /100000",
7927 "4*?15 /logwidth",
7928 "?11 *?11 /logwidth",
7929 "?11 +0-?17 ",
7930 "?16 *?18 /1",
7931 "logheight+0-?19 ",
7932 "?11 *1/2",
7933 "?16 *?21 /1",
7934 "logheight+0-?22 ",
7935 "logwidth+0-?21 ",
7936 "logheight*?0 /100000",
7937 "?25 +0-?15 ",
7938 "?9 *?9 /logwidth",
7939 "?9 +0-?27 ",
7940 "?16 *?28 /1",
7941 "?29 +?26 -0",
7942 "logheight+0-?30 ",
7943 "?15 +?26 -?30 ",
7944 "?32 +?15 -0",
7945 "?33 +?26 -0",
7946 "logheight+0-?34 ",
7947 "logheight+0-?25 ",
7948 "?15 *14/16",
7949 "(?37 +?36 )/2",
7950 "logheight+0-?38 ",
7951 "?29 +?36 -0",
7952 "logheight+0-?40 ",
7953 "?30 +?36 -0",
7954 "logheight+0-?42 ",
7955 "?9 *1/2",
7956 "?16 *?44 /1",
7957 "?45 +?36 -0",
7958 "logheight+0-?46 ",
7959 "logwidth+0-?44 ",
7960 "?34 +?36 -0",
7961 "logheight+0-?49 ",
7962 "?19 +?26 -0",
7963 "logheight+0-?51 ",
7964 "?25 +?25 -?51 ",
7965 "logheight+0-?53 ",
7966 "logheight",
7967 "logwidth"
7969 aPropertyMap [PROP_Equations] <<= createStringSequence( SAL_N_ELEMENTS( aStrings ), aStrings );
7972 Sequence< Sequence < PropertyValue > > aPropSequenceSequence (3);
7974 Sequence< PropertyValue > aPropSequence (4);
7976 aPropSequence [0].Name = "Position";
7977 static const CustomShapeProvider::ParameterPairData aData =
7979 EnhancedCustomShapeParameterType::EQUATION,
7980 EnhancedCustomShapeParameterType::EQUATION,
7981 8, 36
7983 aPropSequence [0].Value = makeAny (createParameterPair(&aData));
7986 aPropSequence [1].Name = "RangeYMaximum";
7987 EnhancedCustomShapeParameter aParameter;
7988 Any aAny ((sal_Int32) 100000);
7989 aParameter.Value = aAny;
7990 aParameter.Type = EnhancedCustomShapeParameterType::NORMAL;
7991 aPropSequence [1].Value = makeAny (aParameter);
7994 aPropSequence [2].Name = "RangeYMinimum";
7995 EnhancedCustomShapeParameter aParameter;
7996 Any aAny ((sal_Int32) 0);
7997 aParameter.Value = aAny;
7998 aParameter.Type = EnhancedCustomShapeParameterType::NORMAL;
7999 aPropSequence [2].Value = makeAny (aParameter);
8002 aPropSequence [3].Name = "RefY";
8003 Any aAny ((sal_Int32) 0);
8004 aPropSequence [3].Value = makeAny (aAny);
8006 aPropSequenceSequence [0] = aPropSequence;
8009 Sequence< PropertyValue > aPropSequence (4);
8011 aPropSequence [0].Name = "Position";
8012 static const CustomShapeProvider::ParameterPairData aData =
8014 EnhancedCustomShapeParameterType::EQUATION,
8015 EnhancedCustomShapeParameterType::NORMAL,
8016 9, 0
8018 aPropSequence [0].Value = makeAny (createParameterPair(&aData));
8021 aPropSequence [1].Name = "RangeXMaximum";
8022 EnhancedCustomShapeParameter aParameter;
8023 Any aAny ((sal_Int32) 100000);
8024 aParameter.Value = aAny;
8025 aParameter.Type = EnhancedCustomShapeParameterType::NORMAL;
8026 aPropSequence [1].Value = makeAny (aParameter);
8029 aPropSequence [2].Name = "RangeXMinimum";
8030 EnhancedCustomShapeParameter aParameter;
8031 Any aAny ((sal_Int32) 25000);
8032 aParameter.Value = aAny;
8033 aParameter.Type = EnhancedCustomShapeParameterType::NORMAL;
8034 aPropSequence [2].Value = makeAny (aParameter);
8037 aPropSequence [3].Name = "RefX";
8038 Any aAny ((sal_Int32) 1);
8039 aPropSequence [3].Value = makeAny (aAny);
8041 aPropSequenceSequence [1] = aPropSequence;
8044 Sequence< PropertyValue > aPropSequence (4);
8046 aPropSequence [0].Name = "Position";
8047 static const CustomShapeProvider::ParameterPairData aData =
8049 EnhancedCustomShapeParameterType::NORMAL,
8050 EnhancedCustomShapeParameterType::EQUATION,
8051 0, 15
8053 aPropSequence [0].Value = makeAny (createParameterPair(&aData));
8056 aPropSequence [1].Name = "RangeYMaximum";
8057 EnhancedCustomShapeParameter aParameter;
8058 Any aAny ((sal_Int32) 0);
8059 aParameter.Value = aAny;
8060 aParameter.Type = EnhancedCustomShapeParameterType::EQUATION;
8061 aPropSequence [1].Value = makeAny (aParameter);
8064 aPropSequence [2].Name = "RangeYMinimum";
8065 EnhancedCustomShapeParameter aParameter;
8066 Any aAny ((sal_Int32) 5);
8067 aParameter.Value = aAny;
8068 aParameter.Type = EnhancedCustomShapeParameterType::EQUATION;
8069 aPropSequence [2].Value = makeAny (aParameter);
8072 aPropSequence [3].Name = "RefY";
8073 Any aAny ((sal_Int32) 2);
8074 aPropSequence [3].Value = makeAny (aAny);
8076 aPropSequenceSequence [2] = aPropSequence;
8078 aPropertyMap [PROP_Handles] <<= aPropSequenceSequence;
8081 aPropertyMap [PROP_MirroredX] <<= Any ((sal_Bool) sal_False);
8084 aPropertyMap [PROP_MirroredY] <<= Any ((sal_Bool) sal_False);
8087 Sequence< PropertyValue > aPropSequence (3);
8089 aPropSequence [0].Name = "Coordinates";
8090 static const CustomShapeProvider::ParameterPairData aData[] = {
8092 EnhancedCustomShapeParameterType::NORMAL,
8093 EnhancedCustomShapeParameterType::EQUATION,
8094 0, 55
8097 EnhancedCustomShapeParameterType::EQUATION,
8098 EnhancedCustomShapeParameterType::EQUATION,
8099 21, 23
8102 EnhancedCustomShapeParameterType::EQUATION,
8103 EnhancedCustomShapeParameterType::EQUATION,
8104 11, 20
8107 EnhancedCustomShapeParameterType::EQUATION,
8108 EnhancedCustomShapeParameterType::EQUATION,
8109 9, 31
8112 EnhancedCustomShapeParameterType::EQUATION,
8113 EnhancedCustomShapeParameterType::EQUATION,
8114 8, 35
8117 EnhancedCustomShapeParameterType::EQUATION,
8118 EnhancedCustomShapeParameterType::EQUATION,
8119 13, 31
8122 EnhancedCustomShapeParameterType::EQUATION,
8123 EnhancedCustomShapeParameterType::EQUATION,
8124 12, 20
8127 EnhancedCustomShapeParameterType::EQUATION,
8128 EnhancedCustomShapeParameterType::EQUATION,
8129 24, 23
8132 EnhancedCustomShapeParameterType::EQUATION,
8133 EnhancedCustomShapeParameterType::EQUATION,
8134 56, 55
8137 EnhancedCustomShapeParameterType::EQUATION,
8138 EnhancedCustomShapeParameterType::EQUATION,
8139 14, 39
8142 EnhancedCustomShapeParameterType::EQUATION,
8143 EnhancedCustomShapeParameterType::EQUATION,
8144 56, 25
8147 EnhancedCustomShapeParameterType::EQUATION,
8148 EnhancedCustomShapeParameterType::EQUATION,
8149 48, 47
8152 EnhancedCustomShapeParameterType::EQUATION,
8153 EnhancedCustomShapeParameterType::EQUATION,
8154 13, 41
8157 EnhancedCustomShapeParameterType::EQUATION,
8158 EnhancedCustomShapeParameterType::EQUATION,
8159 13, 43
8162 EnhancedCustomShapeParameterType::EQUATION,
8163 EnhancedCustomShapeParameterType::EQUATION,
8164 8, 50
8167 EnhancedCustomShapeParameterType::EQUATION,
8168 EnhancedCustomShapeParameterType::EQUATION,
8169 9, 43
8172 EnhancedCustomShapeParameterType::EQUATION,
8173 EnhancedCustomShapeParameterType::EQUATION,
8174 9, 41
8177 EnhancedCustomShapeParameterType::EQUATION,
8178 EnhancedCustomShapeParameterType::EQUATION,
8179 44, 47
8182 EnhancedCustomShapeParameterType::NORMAL,
8183 EnhancedCustomShapeParameterType::EQUATION,
8184 0, 25
8187 EnhancedCustomShapeParameterType::EQUATION,
8188 EnhancedCustomShapeParameterType::EQUATION,
8189 10, 39
8192 EnhancedCustomShapeParameterType::EQUATION,
8193 EnhancedCustomShapeParameterType::EQUATION,
8194 11, 52
8197 EnhancedCustomShapeParameterType::EQUATION,
8198 EnhancedCustomShapeParameterType::EQUATION,
8199 11, 20
8202 EnhancedCustomShapeParameterType::EQUATION,
8203 EnhancedCustomShapeParameterType::EQUATION,
8204 9, 31
8207 EnhancedCustomShapeParameterType::EQUATION,
8208 EnhancedCustomShapeParameterType::EQUATION,
8209 8, 35
8212 EnhancedCustomShapeParameterType::EQUATION,
8213 EnhancedCustomShapeParameterType::EQUATION,
8214 13, 31
8217 EnhancedCustomShapeParameterType::EQUATION,
8218 EnhancedCustomShapeParameterType::EQUATION,
8219 12, 20
8222 EnhancedCustomShapeParameterType::EQUATION,
8223 EnhancedCustomShapeParameterType::EQUATION,
8224 12, 52
8227 EnhancedCustomShapeParameterType::EQUATION,
8228 EnhancedCustomShapeParameterType::EQUATION,
8229 8, 54
8232 EnhancedCustomShapeParameterType::EQUATION,
8233 EnhancedCustomShapeParameterType::EQUATION,
8234 11, 52
8237 EnhancedCustomShapeParameterType::NORMAL,
8238 EnhancedCustomShapeParameterType::EQUATION,
8239 0, 55
8242 EnhancedCustomShapeParameterType::EQUATION,
8243 EnhancedCustomShapeParameterType::EQUATION,
8244 10, 39
8247 EnhancedCustomShapeParameterType::NORMAL,
8248 EnhancedCustomShapeParameterType::EQUATION,
8249 0, 25
8252 EnhancedCustomShapeParameterType::EQUATION,
8253 EnhancedCustomShapeParameterType::EQUATION,
8254 44, 47
8257 EnhancedCustomShapeParameterType::EQUATION,
8258 EnhancedCustomShapeParameterType::EQUATION,
8259 9, 41
8262 EnhancedCustomShapeParameterType::EQUATION,
8263 EnhancedCustomShapeParameterType::EQUATION,
8264 9, 43
8267 EnhancedCustomShapeParameterType::EQUATION,
8268 EnhancedCustomShapeParameterType::EQUATION,
8269 8, 50
8272 EnhancedCustomShapeParameterType::EQUATION,
8273 EnhancedCustomShapeParameterType::EQUATION,
8274 13, 43
8277 EnhancedCustomShapeParameterType::EQUATION,
8278 EnhancedCustomShapeParameterType::EQUATION,
8279 13, 41
8282 EnhancedCustomShapeParameterType::EQUATION,
8283 EnhancedCustomShapeParameterType::EQUATION,
8284 48, 47
8287 EnhancedCustomShapeParameterType::EQUATION,
8288 EnhancedCustomShapeParameterType::EQUATION,
8289 56, 25
8292 EnhancedCustomShapeParameterType::EQUATION,
8293 EnhancedCustomShapeParameterType::EQUATION,
8294 14, 39
8297 EnhancedCustomShapeParameterType::EQUATION,
8298 EnhancedCustomShapeParameterType::EQUATION,
8299 56, 55
8302 EnhancedCustomShapeParameterType::EQUATION,
8303 EnhancedCustomShapeParameterType::EQUATION,
8304 24, 23
8307 EnhancedCustomShapeParameterType::EQUATION,
8308 EnhancedCustomShapeParameterType::EQUATION,
8309 12, 20
8312 EnhancedCustomShapeParameterType::EQUATION,
8313 EnhancedCustomShapeParameterType::EQUATION,
8314 13, 31
8317 EnhancedCustomShapeParameterType::EQUATION,
8318 EnhancedCustomShapeParameterType::EQUATION,
8319 8, 35
8322 EnhancedCustomShapeParameterType::EQUATION,
8323 EnhancedCustomShapeParameterType::EQUATION,
8324 9, 31
8327 EnhancedCustomShapeParameterType::EQUATION,
8328 EnhancedCustomShapeParameterType::EQUATION,
8329 11, 20
8332 EnhancedCustomShapeParameterType::EQUATION,
8333 EnhancedCustomShapeParameterType::EQUATION,
8334 21, 23
8337 EnhancedCustomShapeParameterType::NORMAL,
8338 EnhancedCustomShapeParameterType::EQUATION,
8339 0, 55
8342 EnhancedCustomShapeParameterType::EQUATION,
8343 EnhancedCustomShapeParameterType::EQUATION,
8344 9, 31
8347 EnhancedCustomShapeParameterType::EQUATION,
8348 EnhancedCustomShapeParameterType::EQUATION,
8349 9, 41
8352 EnhancedCustomShapeParameterType::EQUATION,
8353 EnhancedCustomShapeParameterType::EQUATION,
8354 13, 41
8357 EnhancedCustomShapeParameterType::EQUATION,
8358 EnhancedCustomShapeParameterType::EQUATION,
8359 13, 31
8362 EnhancedCustomShapeParameterType::EQUATION,
8363 EnhancedCustomShapeParameterType::EQUATION,
8364 11, 52
8367 EnhancedCustomShapeParameterType::EQUATION,
8368 EnhancedCustomShapeParameterType::EQUATION,
8369 11, 20
8372 EnhancedCustomShapeParameterType::EQUATION,
8373 EnhancedCustomShapeParameterType::EQUATION,
8374 12, 20
8377 EnhancedCustomShapeParameterType::EQUATION,
8378 EnhancedCustomShapeParameterType::EQUATION,
8379 12, 52
8382 aPropSequence [0].Value = makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData), aData));
8385 aPropSequence [1].Name = "Segments";
8386 static const sal_uInt16 nValues[] = {
8387 // Command, Count
8388 1,1,
8389 16,1,
8390 2,1,
8391 16,1,
8392 2,1,
8393 16,1,
8394 2,2,
8395 16,1,
8396 2,1,
8397 16,1,
8398 2,1,
8399 16,1,
8400 2,1,
8401 4,0,
8402 7,0,
8403 5,0,
8404 1,1,
8405 2,2,
8406 16,1,
8407 2,2,
8408 16,1,
8409 4,0,
8410 19,0,
8411 7,0,
8412 5,0,
8413 1,1,
8414 2,2,
8415 16,1,
8416 2,1,
8417 16,1,
8418 2,1,
8419 16,1,
8420 2,2,
8421 16,1,
8422 2,1,
8423 16,1,
8424 2,1,
8425 16,1,
8426 4,0,
8427 1,1,
8428 2,1,
8429 1,1,
8430 2,1,
8431 1,1,
8432 2,1,
8433 1,1,
8434 2,1,
8435 6,0,
8438 aPropSequence [1].Value = makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues ), nValues ));
8441 aPropSequence [2].Name = "TextFrames";
8442 Sequence< EnhancedCustomShapeTextFrame > aTextFrameSeq (1);
8444 EnhancedCustomShapeTextFrame aTextFrame;
8446 static const CustomShapeProvider::ParameterPairData aData =
8448 EnhancedCustomShapeParameterType::EQUATION,
8449 EnhancedCustomShapeParameterType::EQUATION,
8450 9, 43
8452 aTextFrame.TopLeft = createParameterPair(&aData);
8455 static const CustomShapeProvider::ParameterPairData aData =
8457 EnhancedCustomShapeParameterType::EQUATION,
8458 EnhancedCustomShapeParameterType::EQUATION,
8459 13, 36
8461 aTextFrame.BottomRight = createParameterPair(&aData);
8463 aTextFrameSeq [0] = aTextFrame;
8465 aPropSequence [2].Value = makeAny (aTextFrameSeq);
8467 aPropertyMap [PROP_Path] <<= aPropSequence;
8470 awt::Rectangle aRectangle;
8471 aRectangle.X = 0;
8472 aRectangle.Y = 0;
8473 aRectangle.Width = 0;
8474 aRectangle.Height = 0;
8475 aPropertyMap [PROP_ViewBox] <<= aRectangle;
8477 aPropertyMap [ PROP_Type ] <<= OUString("ooxml-ellipseRibbon2");
8479 return aPropertyMap;
8482 class ShapeCplus : public CustomShapeProvider
8484 virtual PropertyMap getProperties()
8486 PropertyMap aPropertyMap;
8489 Sequence< EnhancedCustomShapeAdjustmentValue > aAdjSequence (1);
8491 Any aAny ((sal_Int32) 25000);
8492 aAdjSequence [0].Value = aAny;
8493 aAdjSequence [0].Name = "adj";
8495 aPropertyMap [PROP_AdjustmentValues] <<= aAdjSequence;
8498 static const char *aStrings[] = {
8499 "if(0-$0 ,0,if(50000-$0 ,$0 ,50000))",
8500 "min(logwidth,logheight)",
8501 "?1 *?0 /100000",
8502 "logwidth+0-?2 ",
8503 "logheight+0-?2 ",
8504 "logwidth+0-logheight",
8505 "if(?5 ,0,?2 )",
8506 "if(?5 ,logwidth,?3 )",
8507 "if(?5 ,?2 ,0)",
8508 "if(?5 ,?4 ,logheight)",
8509 "logwidth/2",
8510 "logheight/2",
8511 "logheight",
8512 "logwidth"
8514 aPropertyMap [PROP_Equations] <<= createStringSequence( SAL_N_ELEMENTS( aStrings ), aStrings );
8517 Sequence< Sequence < PropertyValue > > aPropSequenceSequence (1);
8519 Sequence< PropertyValue > aPropSequence (4);
8521 aPropSequence [0].Name = "Position";
8522 static const CustomShapeProvider::ParameterPairData aData =
8524 EnhancedCustomShapeParameterType::EQUATION,
8525 EnhancedCustomShapeParameterType::NORMAL,
8526 2, 0
8528 aPropSequence [0].Value = makeAny (createParameterPair(&aData));
8531 aPropSequence [1].Name = "RangeXMaximum";
8532 EnhancedCustomShapeParameter aParameter;
8533 Any aAny ((sal_Int32) 50000);
8534 aParameter.Value = aAny;
8535 aParameter.Type = EnhancedCustomShapeParameterType::NORMAL;
8536 aPropSequence [1].Value = makeAny (aParameter);
8539 aPropSequence [2].Name = "RangeXMinimum";
8540 EnhancedCustomShapeParameter aParameter;
8541 Any aAny ((sal_Int32) 0);
8542 aParameter.Value = aAny;
8543 aParameter.Type = EnhancedCustomShapeParameterType::NORMAL;
8544 aPropSequence [2].Value = makeAny (aParameter);
8547 aPropSequence [3].Name = "RefX";
8548 Any aAny ((sal_Int32) 0);
8549 aPropSequence [3].Value = makeAny (aAny);
8551 aPropSequenceSequence [0] = aPropSequence;
8553 aPropertyMap [PROP_Handles] <<= aPropSequenceSequence;
8556 aPropertyMap [PROP_MirroredX] <<= Any ((sal_Bool) sal_False);
8559 aPropertyMap [PROP_MirroredY] <<= Any ((sal_Bool) sal_False);
8562 Sequence< PropertyValue > aPropSequence (3);
8564 aPropSequence [0].Name = "Coordinates";
8565 static const CustomShapeProvider::ParameterPairData aData[] = {
8567 EnhancedCustomShapeParameterType::NORMAL,
8568 EnhancedCustomShapeParameterType::EQUATION,
8569 0, 2
8572 EnhancedCustomShapeParameterType::EQUATION,
8573 EnhancedCustomShapeParameterType::EQUATION,
8574 2, 2
8577 EnhancedCustomShapeParameterType::EQUATION,
8578 EnhancedCustomShapeParameterType::NORMAL,
8579 2, 0
8582 EnhancedCustomShapeParameterType::EQUATION,
8583 EnhancedCustomShapeParameterType::NORMAL,
8584 3, 0
8587 EnhancedCustomShapeParameterType::EQUATION,
8588 EnhancedCustomShapeParameterType::EQUATION,
8589 3, 2
8592 EnhancedCustomShapeParameterType::EQUATION,
8593 EnhancedCustomShapeParameterType::EQUATION,
8594 13, 2
8597 EnhancedCustomShapeParameterType::EQUATION,
8598 EnhancedCustomShapeParameterType::EQUATION,
8599 13, 4
8602 EnhancedCustomShapeParameterType::EQUATION,
8603 EnhancedCustomShapeParameterType::EQUATION,
8604 3, 4
8607 EnhancedCustomShapeParameterType::EQUATION,
8608 EnhancedCustomShapeParameterType::EQUATION,
8609 3, 12
8612 EnhancedCustomShapeParameterType::EQUATION,
8613 EnhancedCustomShapeParameterType::EQUATION,
8614 2, 12
8617 EnhancedCustomShapeParameterType::EQUATION,
8618 EnhancedCustomShapeParameterType::EQUATION,
8619 2, 4
8622 EnhancedCustomShapeParameterType::NORMAL,
8623 EnhancedCustomShapeParameterType::EQUATION,
8624 0, 4
8627 aPropSequence [0].Value = makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData), aData));
8630 aPropSequence [1].Name = "Segments";
8631 static const sal_uInt16 nValues[] = {
8632 // Command, Count
8633 1,1,
8634 2,11,
8635 4,0,
8638 aPropSequence [1].Value = makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues ), nValues ));
8641 aPropSequence [2].Name = "TextFrames";
8642 Sequence< EnhancedCustomShapeTextFrame > aTextFrameSeq (1);
8644 EnhancedCustomShapeTextFrame aTextFrame;
8646 static const CustomShapeProvider::ParameterPairData aData =
8648 EnhancedCustomShapeParameterType::EQUATION,
8649 EnhancedCustomShapeParameterType::EQUATION,
8650 6, 8
8652 aTextFrame.TopLeft = createParameterPair(&aData);
8655 static const CustomShapeProvider::ParameterPairData aData =
8657 EnhancedCustomShapeParameterType::EQUATION,
8658 EnhancedCustomShapeParameterType::EQUATION,
8659 7, 9
8661 aTextFrame.BottomRight = createParameterPair(&aData);
8663 aTextFrameSeq [0] = aTextFrame;
8665 aPropSequence [2].Value = makeAny (aTextFrameSeq);
8667 aPropertyMap [PROP_Path] <<= aPropSequence;
8670 awt::Rectangle aRectangle;
8671 aRectangle.X = 0;
8672 aRectangle.Y = 0;
8673 aRectangle.Width = 0;
8674 aRectangle.Height = 0;
8675 aPropertyMap [PROP_ViewBox] <<= aRectangle;
8677 aPropertyMap [ PROP_Type ] <<= OUString("ooxml-plus");
8679 return aPropertyMap;
8682 } // anonymous namespace
8683 void CustomShapeProperties::initializePresetsMap4()
8685 maPresetsMap [ StaticTokenMap::get().getTokenFromUnicode( "teardrop" ) ] = new ShapeCteardrop();
8686 maPresetsMap [ StaticTokenMap::get().getTokenFromUnicode( "flowChartDocument" ) ] = new ShapeCflowChartDocument();
8687 maPresetsMap [ StaticTokenMap::get().getTokenFromUnicode( "rightArrowCallout" ) ] = new ShapeCrightArrowCallout();
8688 maPresetsMap [ StaticTokenMap::get().getTokenFromUnicode( "rightBrace" ) ] = new ShapeCrightBrace();
8689 maPresetsMap [ StaticTokenMap::get().getTokenFromUnicode( "chartPlus" ) ] = new ShapeCchartPlus();
8690 maPresetsMap [ StaticTokenMap::get().getTokenFromUnicode( "flowChartManualInput" ) ] = new ShapeCflowChartManualInput();
8691 maPresetsMap [ StaticTokenMap::get().getTokenFromUnicode( "flowChartMerge" ) ] = new ShapeCflowChartMerge();
8692 maPresetsMap [ StaticTokenMap::get().getTokenFromUnicode( "line" ) ] = new ShapeCline();
8693 maPresetsMap [ StaticTokenMap::get().getTokenFromUnicode( "downArrow" ) ] = new ShapeCdownArrow();
8694 maPresetsMap [ StaticTokenMap::get().getTokenFromUnicode( "upArrow" ) ] = new ShapeCupArrow();
8695 maPresetsMap [ StaticTokenMap::get().getTokenFromUnicode( "curvedDownArrow" ) ] = new ShapeCcurvedDownArrow();
8696 maPresetsMap [ StaticTokenMap::get().getTokenFromUnicode( "actionButtonReturn" ) ] = new ShapeCactionButtonReturn();
8697 maPresetsMap [ StaticTokenMap::get().getTokenFromUnicode( "flowChartInputOutput" ) ] = new ShapeCflowChartInputOutput();
8698 maPresetsMap [ StaticTokenMap::get().getTokenFromUnicode( "bracketPair" ) ] = new ShapeCbracketPair();
8699 maPresetsMap [ StaticTokenMap::get().getTokenFromUnicode( "smileyFace" ) ] = new ShapeCsmileyFace();
8700 maPresetsMap [ StaticTokenMap::get().getTokenFromUnicode( "actionButtonBlank" ) ] = new ShapeCactionButtonBlank();
8701 maPresetsMap [ StaticTokenMap::get().getTokenFromUnicode( "wave" ) ] = new ShapeCwave();
8702 maPresetsMap [ StaticTokenMap::get().getTokenFromUnicode( "swooshArrow" ) ] = new ShapeCswooshArrow();
8703 maPresetsMap [ StaticTokenMap::get().getTokenFromUnicode( "flowChartSummingJunction" ) ] = new ShapeCflowChartSummingJunction();
8704 maPresetsMap [ StaticTokenMap::get().getTokenFromUnicode( "lightningBolt" ) ] = new ShapeClightningBolt();
8705 maPresetsMap [ StaticTokenMap::get().getTokenFromUnicode( "flowChartDisplay" ) ] = new ShapeCflowChartDisplay();
8706 maPresetsMap [ StaticTokenMap::get().getTokenFromUnicode( "actionButtonBackPrevious" ) ] = new ShapeCactionButtonBackPrevious();
8707 maPresetsMap [ StaticTokenMap::get().getTokenFromUnicode( "frame" ) ] = new ShapeCframe();
8708 maPresetsMap [ StaticTokenMap::get().getTokenFromUnicode( "rtTriangle" ) ] = new ShapeCrtTriangle();
8709 maPresetsMap [ StaticTokenMap::get().getTokenFromUnicode( "flowChartMagneticTape" ) ] = new ShapeCflowChartMagneticTape();
8710 maPresetsMap [ StaticTokenMap::get().getTokenFromUnicode( "curvedRightArrow" ) ] = new ShapeCcurvedRightArrow();
8711 maPresetsMap [ StaticTokenMap::get().getTokenFromUnicode( "leftUpArrow" ) ] = new ShapeCleftUpArrow();
8712 maPresetsMap [ StaticTokenMap::get().getTokenFromUnicode( "wedgeEllipseCallout" ) ] = new ShapeCwedgeEllipseCallout();
8713 maPresetsMap [ StaticTokenMap::get().getTokenFromUnicode( "doubleWave" ) ] = new ShapeCdoubleWave();
8714 maPresetsMap [ StaticTokenMap::get().getTokenFromUnicode( "bentArrow" ) ] = new ShapeCbentArrow();
8715 maPresetsMap [ StaticTokenMap::get().getTokenFromUnicode( "star10" ) ] = new ShapeCstar10();
8716 maPresetsMap [ StaticTokenMap::get().getTokenFromUnicode( "leftArrow" ) ] = new ShapeCleftArrow();
8717 maPresetsMap [ StaticTokenMap::get().getTokenFromUnicode( "curvedUpArrow" ) ] = new ShapeCcurvedUpArrow();
8718 maPresetsMap [ StaticTokenMap::get().getTokenFromUnicode( "snip1Rect" ) ] = new ShapeCsnip1Rect();
8719 maPresetsMap [ StaticTokenMap::get().getTokenFromUnicode( "ellipseRibbon2" ) ] = new ShapeCellipseRibbon2();
8720 maPresetsMap [ StaticTokenMap::get().getTokenFromUnicode( "plus" ) ] = new ShapeCplus();
8723 } } // oox // drawingml