fdo#74697 Add Bluez 5 support for impress remote.
[LibreOffice.git] / oox / source / drawingml / customshapepresets2.cxx
blob023588a1fd365599034a54bf34121108cfaf1f69
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 ShapeCleftRightArrowCallout : public CustomShapeProvider
24 virtual PropertyMap getProperties()
26 PropertyMap aPropertyMap;
29 Sequence< EnhancedCustomShapeAdjustmentValue > aAdjSequence (4);
31 Any aAny ((sal_Int32) 25000);
32 aAdjSequence [0].Value = aAny;
33 aAdjSequence [0].Name = "adj1";
36 Any aAny ((sal_Int32) 25000);
37 aAdjSequence [1].Value = aAny;
38 aAdjSequence [1].Name = "adj2";
41 Any aAny ((sal_Int32) 25000);
42 aAdjSequence [2].Value = aAny;
43 aAdjSequence [2].Name = "adj3";
46 Any aAny ((sal_Int32) 48123);
47 aAdjSequence [3].Value = aAny;
48 aAdjSequence [3].Name = "adj4";
50 aPropertyMap [PROP_AdjustmentValues] <<= aAdjSequence;
53 static const char *aStrings[] = {
54 "min(logwidth,logheight)",
55 "50000*logheight/?0 ",
56 "if(0-$1 ,0,if(?1 -$1 ,$1 ,?1 ))",
57 "?2 *2/1",
58 "if(0-$0 ,0,if(?3 -$0 ,$0 ,?3 ))",
59 "50000*logwidth/?0 ",
60 "if(0-$2 ,0,if(?5 -$2 ,$2 ,?5 ))",
61 "logwidth/2",
62 "?6 *?0 /?7 ",
63 "100000+0-?8 ",
64 "if(0-$3 ,0,if(?9 -$3 ,$3 ,?9 ))",
65 "?0 *?2 /100000",
66 "?0 *?4 /200000",
67 "logheight/2",
68 "?13 +0-?11 ",
69 "?13 +0-?12 ",
70 "?13 +?12 -0",
71 "?13 +?11 -0",
72 "?0 *?6 /100000",
73 "logwidth+0-?18 ",
74 "logwidth*?10 /200000",
75 "logwidth/2",
76 "?21 +0-?20 ",
77 "?21 +?20 -0",
78 "logheight",
79 "logwidth"
81 aPropertyMap [PROP_Equations] <<= createStringSequence( SAL_N_ELEMENTS( aStrings ), aStrings );
84 Sequence< Sequence < PropertyValue > > aPropSequenceSequence (4);
86 Sequence< PropertyValue > aPropSequence (4);
88 aPropSequence [0].Name = "Position";
89 static const CustomShapeProvider::ParameterPairData aData =
91 EnhancedCustomShapeParameterType::EQUATION,
92 EnhancedCustomShapeParameterType::EQUATION,
93 18, 15
95 aPropSequence [0].Value = makeAny (createParameterPair(&aData));
98 aPropSequence [1].Name = "RangeYMaximum";
99 EnhancedCustomShapeParameter aParameter;
100 Any aAny ((sal_Int32) 3);
101 aParameter.Value = aAny;
102 aParameter.Type = EnhancedCustomShapeParameterType::EQUATION;
103 aPropSequence [1].Value = makeAny (aParameter);
106 aPropSequence [2].Name = "RangeYMinimum";
107 EnhancedCustomShapeParameter aParameter;
108 Any aAny ((sal_Int32) 0);
109 aParameter.Value = aAny;
110 aParameter.Type = EnhancedCustomShapeParameterType::NORMAL;
111 aPropSequence [2].Value = makeAny (aParameter);
114 aPropSequence [3].Name = "RefY";
115 Any aAny ((sal_Int32) 0);
116 aPropSequence [3].Value = makeAny (aAny);
118 aPropSequenceSequence [0] = aPropSequence;
121 Sequence< PropertyValue > aPropSequence (4);
123 aPropSequence [0].Name = "Position";
124 static const CustomShapeProvider::ParameterPairData aData =
126 EnhancedCustomShapeParameterType::NORMAL,
127 EnhancedCustomShapeParameterType::EQUATION,
128 0, 14
130 aPropSequence [0].Value = makeAny (createParameterPair(&aData));
133 aPropSequence [1].Name = "RangeYMaximum";
134 EnhancedCustomShapeParameter aParameter;
135 Any aAny ((sal_Int32) 1);
136 aParameter.Value = aAny;
137 aParameter.Type = EnhancedCustomShapeParameterType::EQUATION;
138 aPropSequence [1].Value = makeAny (aParameter);
141 aPropSequence [2].Name = "RangeYMinimum";
142 EnhancedCustomShapeParameter aParameter;
143 Any aAny ((sal_Int32) 0);
144 aParameter.Value = aAny;
145 aParameter.Type = EnhancedCustomShapeParameterType::NORMAL;
146 aPropSequence [2].Value = makeAny (aParameter);
149 aPropSequence [3].Name = "RefY";
150 Any aAny ((sal_Int32) 1);
151 aPropSequence [3].Value = makeAny (aAny);
153 aPropSequenceSequence [1] = aPropSequence;
156 Sequence< PropertyValue > aPropSequence (4);
158 aPropSequence [0].Name = "Position";
159 static const CustomShapeProvider::ParameterPairData aData =
161 EnhancedCustomShapeParameterType::EQUATION,
162 EnhancedCustomShapeParameterType::NORMAL,
163 18, 0
165 aPropSequence [0].Value = makeAny (createParameterPair(&aData));
168 aPropSequence [1].Name = "RangeXMaximum";
169 EnhancedCustomShapeParameter aParameter;
170 Any aAny ((sal_Int32) 5);
171 aParameter.Value = aAny;
172 aParameter.Type = EnhancedCustomShapeParameterType::EQUATION;
173 aPropSequence [1].Value = makeAny (aParameter);
176 aPropSequence [2].Name = "RangeXMinimum";
177 EnhancedCustomShapeParameter aParameter;
178 Any aAny ((sal_Int32) 0);
179 aParameter.Value = aAny;
180 aParameter.Type = EnhancedCustomShapeParameterType::NORMAL;
181 aPropSequence [2].Value = makeAny (aParameter);
184 aPropSequence [3].Name = "RefX";
185 Any aAny ((sal_Int32) 2);
186 aPropSequence [3].Value = makeAny (aAny);
188 aPropSequenceSequence [2] = aPropSequence;
191 Sequence< PropertyValue > aPropSequence (4);
193 aPropSequence [0].Name = "Position";
194 static const CustomShapeProvider::ParameterPairData aData =
196 EnhancedCustomShapeParameterType::EQUATION,
197 EnhancedCustomShapeParameterType::EQUATION,
198 22, 24
200 aPropSequence [0].Value = makeAny (createParameterPair(&aData));
203 aPropSequence [1].Name = "RangeXMaximum";
204 EnhancedCustomShapeParameter aParameter;
205 Any aAny ((sal_Int32) 9);
206 aParameter.Value = aAny;
207 aParameter.Type = EnhancedCustomShapeParameterType::EQUATION;
208 aPropSequence [1].Value = makeAny (aParameter);
211 aPropSequence [2].Name = "RangeXMinimum";
212 EnhancedCustomShapeParameter aParameter;
213 Any aAny ((sal_Int32) 0);
214 aParameter.Value = aAny;
215 aParameter.Type = EnhancedCustomShapeParameterType::NORMAL;
216 aPropSequence [2].Value = makeAny (aParameter);
219 aPropSequence [3].Name = "RefX";
220 Any aAny ((sal_Int32) 3);
221 aPropSequence [3].Value = makeAny (aAny);
223 aPropSequenceSequence [3] = aPropSequence;
225 aPropertyMap [PROP_Handles] <<= aPropSequenceSequence;
228 aPropertyMap [PROP_MirroredX] <<= Any ((sal_Bool) sal_False);
231 aPropertyMap [PROP_MirroredY] <<= Any ((sal_Bool) sal_False);
234 Sequence< PropertyValue > aPropSequence (3);
236 aPropSequence [0].Name = "Coordinates";
237 static const CustomShapeProvider::ParameterPairData aData[] = {
239 EnhancedCustomShapeParameterType::NORMAL,
240 EnhancedCustomShapeParameterType::EQUATION,
241 0, 13
244 EnhancedCustomShapeParameterType::EQUATION,
245 EnhancedCustomShapeParameterType::EQUATION,
246 18, 14
249 EnhancedCustomShapeParameterType::EQUATION,
250 EnhancedCustomShapeParameterType::EQUATION,
251 18, 15
254 EnhancedCustomShapeParameterType::EQUATION,
255 EnhancedCustomShapeParameterType::EQUATION,
256 22, 15
259 EnhancedCustomShapeParameterType::EQUATION,
260 EnhancedCustomShapeParameterType::NORMAL,
261 22, 0
264 EnhancedCustomShapeParameterType::EQUATION,
265 EnhancedCustomShapeParameterType::NORMAL,
266 23, 0
269 EnhancedCustomShapeParameterType::EQUATION,
270 EnhancedCustomShapeParameterType::EQUATION,
271 23, 15
274 EnhancedCustomShapeParameterType::EQUATION,
275 EnhancedCustomShapeParameterType::EQUATION,
276 19, 15
279 EnhancedCustomShapeParameterType::EQUATION,
280 EnhancedCustomShapeParameterType::EQUATION,
281 19, 14
284 EnhancedCustomShapeParameterType::EQUATION,
285 EnhancedCustomShapeParameterType::EQUATION,
286 25, 13
289 EnhancedCustomShapeParameterType::EQUATION,
290 EnhancedCustomShapeParameterType::EQUATION,
291 19, 17
294 EnhancedCustomShapeParameterType::EQUATION,
295 EnhancedCustomShapeParameterType::EQUATION,
296 19, 16
299 EnhancedCustomShapeParameterType::EQUATION,
300 EnhancedCustomShapeParameterType::EQUATION,
301 23, 16
304 EnhancedCustomShapeParameterType::EQUATION,
305 EnhancedCustomShapeParameterType::EQUATION,
306 23, 24
309 EnhancedCustomShapeParameterType::EQUATION,
310 EnhancedCustomShapeParameterType::EQUATION,
311 22, 24
314 EnhancedCustomShapeParameterType::EQUATION,
315 EnhancedCustomShapeParameterType::EQUATION,
316 22, 16
319 EnhancedCustomShapeParameterType::EQUATION,
320 EnhancedCustomShapeParameterType::EQUATION,
321 18, 16
324 EnhancedCustomShapeParameterType::EQUATION,
325 EnhancedCustomShapeParameterType::EQUATION,
326 18, 17
329 aPropSequence [0].Value = makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData), aData));
332 aPropSequence [1].Name = "Segments";
333 static const sal_uInt16 nValues[] = {
334 // Command, Count
335 1,1,
336 2,17,
337 4,0,
340 aPropSequence [1].Value = makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues ), nValues ));
343 aPropSequence [2].Name = "TextFrames";
344 Sequence< EnhancedCustomShapeTextFrame > aTextFrameSeq (1);
346 EnhancedCustomShapeTextFrame aTextFrame;
348 static const CustomShapeProvider::ParameterPairData aData =
350 EnhancedCustomShapeParameterType::EQUATION,
351 EnhancedCustomShapeParameterType::NORMAL,
352 22, 0
354 aTextFrame.TopLeft = createParameterPair(&aData);
357 static const CustomShapeProvider::ParameterPairData aData =
359 EnhancedCustomShapeParameterType::EQUATION,
360 EnhancedCustomShapeParameterType::EQUATION,
361 23, 24
363 aTextFrame.BottomRight = createParameterPair(&aData);
365 aTextFrameSeq [0] = aTextFrame;
367 aPropSequence [2].Value = makeAny (aTextFrameSeq);
369 aPropertyMap [PROP_Path] <<= aPropSequence;
372 awt::Rectangle aRectangle;
373 aRectangle.X = 0;
374 aRectangle.Y = 0;
375 aRectangle.Width = 0;
376 aRectangle.Height = 0;
377 aPropertyMap [PROP_ViewBox] <<= aRectangle;
379 aPropertyMap [ PROP_Type ] <<= OUString("ooxml-leftRightArrowCallout");
381 return aPropertyMap;
384 class ShapeCflowChartManualOperation : public CustomShapeProvider
386 virtual PropertyMap getProperties()
388 PropertyMap aPropertyMap;
391 aPropertyMap [PROP_AdjustmentValues] <<= Sequence< OUString >(0);
394 static const char *aStrings[] = {
395 "logwidth*4/5",
396 "logwidth*9/10",
397 "logwidth/2",
398 "logwidth/10",
399 "logheight/2",
400 "logheight",
401 "logwidth/5"
403 aPropertyMap [PROP_Equations] <<= createStringSequence( SAL_N_ELEMENTS( aStrings ), aStrings );
406 aPropertyMap [PROP_Handles] <<= Sequence< OUString >(0);
409 aPropertyMap [PROP_MirroredX] <<= Any ((sal_Bool) sal_False);
412 aPropertyMap [PROP_MirroredY] <<= Any ((sal_Bool) sal_False);
415 Sequence< PropertyValue > aPropSequence (4);
417 aPropSequence [0].Name = "Coordinates";
418 static const CustomShapeProvider::ParameterPairData aData[] = {
420 EnhancedCustomShapeParameterType::NORMAL,
421 EnhancedCustomShapeParameterType::NORMAL,
422 0, 0
425 EnhancedCustomShapeParameterType::NORMAL,
426 EnhancedCustomShapeParameterType::NORMAL,
427 5, 0
430 EnhancedCustomShapeParameterType::NORMAL,
431 EnhancedCustomShapeParameterType::NORMAL,
432 4, 5
435 EnhancedCustomShapeParameterType::NORMAL,
436 EnhancedCustomShapeParameterType::NORMAL,
437 1, 5
440 aPropSequence [0].Value = makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData), aData));
443 aPropSequence [1].Name = "Segments";
444 static const sal_uInt16 nValues[] = {
445 // Command, Count
446 1,1,
447 2,3,
448 4,0,
451 aPropSequence [1].Value = makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues ), nValues ));
454 aPropSequence [2].Name = "SubViewSize";
455 Sequence< awt::Size > aSizeSequence (1);
457 awt::Size aSize;
458 aSize.Width = 5;
459 aSize.Height = 5;
460 aSizeSequence [0] = aSize;
462 aPropSequence [2].Value = makeAny (aSizeSequence);
465 aPropSequence [3].Name = "TextFrames";
466 Sequence< EnhancedCustomShapeTextFrame > aTextFrameSeq (1);
468 EnhancedCustomShapeTextFrame aTextFrame;
470 static const CustomShapeProvider::ParameterPairData aData =
472 EnhancedCustomShapeParameterType::EQUATION,
473 EnhancedCustomShapeParameterType::NORMAL,
474 6, 0
476 aTextFrame.TopLeft = createParameterPair(&aData);
479 static const CustomShapeProvider::ParameterPairData aData =
481 EnhancedCustomShapeParameterType::EQUATION,
482 EnhancedCustomShapeParameterType::EQUATION,
483 0, 5
485 aTextFrame.BottomRight = createParameterPair(&aData);
487 aTextFrameSeq [0] = aTextFrame;
489 aPropSequence [3].Value = makeAny (aTextFrameSeq);
491 aPropertyMap [PROP_Path] <<= aPropSequence;
494 awt::Rectangle aRectangle;
495 aRectangle.X = 0;
496 aRectangle.Y = 0;
497 aRectangle.Width = 0;
498 aRectangle.Height = 0;
499 aPropertyMap [PROP_ViewBox] <<= aRectangle;
501 aPropertyMap [ PROP_Type ] <<= OUString("ooxml-flowChartManualOperation");
503 return aPropertyMap;
506 class ShapeCsnipRoundRect : public CustomShapeProvider
508 virtual PropertyMap getProperties()
510 PropertyMap aPropertyMap;
513 Sequence< EnhancedCustomShapeAdjustmentValue > aAdjSequence (2);
515 Any aAny ((sal_Int32) 16667);
516 aAdjSequence [0].Value = aAny;
517 aAdjSequence [0].Name = "adj1";
520 Any aAny ((sal_Int32) 16667);
521 aAdjSequence [1].Value = aAny;
522 aAdjSequence [1].Name = "adj2";
524 aPropertyMap [PROP_AdjustmentValues] <<= aAdjSequence;
527 static const char *aStrings[] = {
528 "if(0-$0 ,0,if(50000-$0 ,$0 ,50000))",
529 "if(0-$1 ,0,if(50000-$1 ,$1 ,50000))",
530 "min(logwidth,logheight)",
531 "?2 *?0 /100000",
532 "?2 *?1 /100000",
533 "logwidth+0-?4 ",
534 "?3 *29289/100000",
535 "(?5 +logwidth)/2",
536 "logwidth",
537 "logheight/2",
538 "logwidth/2",
539 "logheight",
540 "(10800000)/60000.0",
541 "(5400000)/60000.0"
543 aPropertyMap [PROP_Equations] <<= createStringSequence( SAL_N_ELEMENTS( aStrings ), aStrings );
546 Sequence< Sequence < PropertyValue > > aPropSequenceSequence (2);
548 Sequence< PropertyValue > aPropSequence (4);
550 aPropSequence [0].Name = "Position";
551 static const CustomShapeProvider::ParameterPairData aData =
553 EnhancedCustomShapeParameterType::EQUATION,
554 EnhancedCustomShapeParameterType::NORMAL,
555 3, 0
557 aPropSequence [0].Value = makeAny (createParameterPair(&aData));
560 aPropSequence [1].Name = "RangeXMaximum";
561 EnhancedCustomShapeParameter aParameter;
562 Any aAny ((sal_Int32) 50000);
563 aParameter.Value = aAny;
564 aParameter.Type = EnhancedCustomShapeParameterType::NORMAL;
565 aPropSequence [1].Value = makeAny (aParameter);
568 aPropSequence [2].Name = "RangeXMinimum";
569 EnhancedCustomShapeParameter aParameter;
570 Any aAny ((sal_Int32) 0);
571 aParameter.Value = aAny;
572 aParameter.Type = EnhancedCustomShapeParameterType::NORMAL;
573 aPropSequence [2].Value = makeAny (aParameter);
576 aPropSequence [3].Name = "RefX";
577 Any aAny ((sal_Int32) 0);
578 aPropSequence [3].Value = makeAny (aAny);
580 aPropSequenceSequence [0] = aPropSequence;
583 Sequence< PropertyValue > aPropSequence (4);
585 aPropSequence [0].Name = "Position";
586 static const CustomShapeProvider::ParameterPairData aData =
588 EnhancedCustomShapeParameterType::EQUATION,
589 EnhancedCustomShapeParameterType::NORMAL,
590 5, 0
592 aPropSequence [0].Value = makeAny (createParameterPair(&aData));
595 aPropSequence [1].Name = "RangeXMaximum";
596 EnhancedCustomShapeParameter aParameter;
597 Any aAny ((sal_Int32) 50000);
598 aParameter.Value = aAny;
599 aParameter.Type = EnhancedCustomShapeParameterType::NORMAL;
600 aPropSequence [1].Value = makeAny (aParameter);
603 aPropSequence [2].Name = "RangeXMinimum";
604 EnhancedCustomShapeParameter aParameter;
605 Any aAny ((sal_Int32) 0);
606 aParameter.Value = aAny;
607 aParameter.Type = EnhancedCustomShapeParameterType::NORMAL;
608 aPropSequence [2].Value = makeAny (aParameter);
611 aPropSequence [3].Name = "RefX";
612 Any aAny ((sal_Int32) 1);
613 aPropSequence [3].Value = makeAny (aAny);
615 aPropSequenceSequence [1] = aPropSequence;
617 aPropertyMap [PROP_Handles] <<= aPropSequenceSequence;
620 aPropertyMap [PROP_MirroredX] <<= Any ((sal_Bool) sal_False);
623 aPropertyMap [PROP_MirroredY] <<= Any ((sal_Bool) sal_False);
626 Sequence< PropertyValue > aPropSequence (3);
628 aPropSequence [0].Name = "Coordinates";
629 static const CustomShapeProvider::ParameterPairData aData[] = {
631 EnhancedCustomShapeParameterType::EQUATION,
632 EnhancedCustomShapeParameterType::NORMAL,
633 3, 0
636 EnhancedCustomShapeParameterType::EQUATION,
637 EnhancedCustomShapeParameterType::NORMAL,
638 5, 0
641 EnhancedCustomShapeParameterType::EQUATION,
642 EnhancedCustomShapeParameterType::EQUATION,
643 8, 4
646 EnhancedCustomShapeParameterType::EQUATION,
647 EnhancedCustomShapeParameterType::EQUATION,
648 8, 11
651 EnhancedCustomShapeParameterType::NORMAL,
652 EnhancedCustomShapeParameterType::EQUATION,
653 0, 11
656 EnhancedCustomShapeParameterType::NORMAL,
657 EnhancedCustomShapeParameterType::EQUATION,
658 0, 3
661 EnhancedCustomShapeParameterType::EQUATION,
662 EnhancedCustomShapeParameterType::EQUATION,
663 3, 3
666 EnhancedCustomShapeParameterType::EQUATION,
667 EnhancedCustomShapeParameterType::EQUATION,
668 12, 13
671 aPropSequence [0].Value = makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData), aData));
674 aPropSequence [1].Name = "Segments";
675 static const sal_uInt16 nValues[] = {
676 // Command, Count
677 1,1,
678 2,5,
679 17,1,
680 4,0,
683 aPropSequence [1].Value = makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues ), nValues ));
686 aPropSequence [2].Name = "TextFrames";
687 Sequence< EnhancedCustomShapeTextFrame > aTextFrameSeq (1);
689 EnhancedCustomShapeTextFrame aTextFrame;
691 static const CustomShapeProvider::ParameterPairData aData =
693 EnhancedCustomShapeParameterType::EQUATION,
694 EnhancedCustomShapeParameterType::EQUATION,
695 6, 6
697 aTextFrame.TopLeft = createParameterPair(&aData);
700 static const CustomShapeProvider::ParameterPairData aData =
702 EnhancedCustomShapeParameterType::EQUATION,
703 EnhancedCustomShapeParameterType::EQUATION,
704 7, 11
706 aTextFrame.BottomRight = createParameterPair(&aData);
708 aTextFrameSeq [0] = aTextFrame;
710 aPropSequence [2].Value = makeAny (aTextFrameSeq);
712 aPropertyMap [PROP_Path] <<= aPropSequence;
715 awt::Rectangle aRectangle;
716 aRectangle.X = 0;
717 aRectangle.Y = 0;
718 aRectangle.Width = 0;
719 aRectangle.Height = 0;
720 aPropertyMap [PROP_ViewBox] <<= aRectangle;
722 aPropertyMap [ PROP_Type ] <<= OUString("ooxml-snipRoundRect");
724 return aPropertyMap;
727 class ShapeCmathPlus : public CustomShapeProvider
729 virtual PropertyMap getProperties()
731 PropertyMap aPropertyMap;
734 Sequence< EnhancedCustomShapeAdjustmentValue > aAdjSequence (1);
736 Any aAny ((sal_Int32) 23520);
737 aAdjSequence [0].Value = aAny;
738 aAdjSequence [0].Name = "adj1";
740 aPropertyMap [PROP_AdjustmentValues] <<= aAdjSequence;
743 static const char *aStrings[] = {
744 "if(0-$0 ,0,if(73490-$0 ,$0 ,73490))",
745 "logwidth*73490/200000",
746 "logheight*73490/200000",
747 "min(logwidth,logheight)",
748 "?3 *?0 /200000",
749 "logwidth/2",
750 "?5 +0-?1 ",
751 "?5 +0-?4 ",
752 "?5 +?4 -0",
753 "?5 +?1 -0",
754 "logheight/2",
755 "?10 +0-?2 ",
756 "?10 +0-?4 ",
757 "?10 +?4 -0",
758 "?10 +?2 -0"
760 aPropertyMap [PROP_Equations] <<= createStringSequence( SAL_N_ELEMENTS( aStrings ), aStrings );
763 Sequence< Sequence < PropertyValue > > aPropSequenceSequence (1);
765 Sequence< PropertyValue > aPropSequence (4);
767 aPropSequence [0].Name = "Position";
768 static const CustomShapeProvider::ParameterPairData aData =
770 EnhancedCustomShapeParameterType::NORMAL,
771 EnhancedCustomShapeParameterType::EQUATION,
772 0, 12
774 aPropSequence [0].Value = makeAny (createParameterPair(&aData));
777 aPropSequence [1].Name = "RangeYMaximum";
778 EnhancedCustomShapeParameter aParameter;
779 Any aAny ((sal_Int32) 73490);
780 aParameter.Value = aAny;
781 aParameter.Type = EnhancedCustomShapeParameterType::NORMAL;
782 aPropSequence [1].Value = makeAny (aParameter);
785 aPropSequence [2].Name = "RangeYMinimum";
786 EnhancedCustomShapeParameter aParameter;
787 Any aAny ((sal_Int32) 0);
788 aParameter.Value = aAny;
789 aParameter.Type = EnhancedCustomShapeParameterType::NORMAL;
790 aPropSequence [2].Value = makeAny (aParameter);
793 aPropSequence [3].Name = "RefY";
794 Any aAny ((sal_Int32) 0);
795 aPropSequence [3].Value = makeAny (aAny);
797 aPropSequenceSequence [0] = aPropSequence;
799 aPropertyMap [PROP_Handles] <<= aPropSequenceSequence;
802 aPropertyMap [PROP_MirroredX] <<= Any ((sal_Bool) sal_False);
805 aPropertyMap [PROP_MirroredY] <<= Any ((sal_Bool) sal_False);
808 Sequence< PropertyValue > aPropSequence (3);
810 aPropSequence [0].Name = "Coordinates";
811 static const CustomShapeProvider::ParameterPairData aData[] = {
813 EnhancedCustomShapeParameterType::EQUATION,
814 EnhancedCustomShapeParameterType::EQUATION,
815 6, 12
818 EnhancedCustomShapeParameterType::EQUATION,
819 EnhancedCustomShapeParameterType::EQUATION,
820 7, 12
823 EnhancedCustomShapeParameterType::EQUATION,
824 EnhancedCustomShapeParameterType::EQUATION,
825 7, 11
828 EnhancedCustomShapeParameterType::EQUATION,
829 EnhancedCustomShapeParameterType::EQUATION,
830 8, 11
833 EnhancedCustomShapeParameterType::EQUATION,
834 EnhancedCustomShapeParameterType::EQUATION,
835 8, 12
838 EnhancedCustomShapeParameterType::EQUATION,
839 EnhancedCustomShapeParameterType::EQUATION,
840 9, 12
843 EnhancedCustomShapeParameterType::EQUATION,
844 EnhancedCustomShapeParameterType::EQUATION,
845 9, 13
848 EnhancedCustomShapeParameterType::EQUATION,
849 EnhancedCustomShapeParameterType::EQUATION,
850 8, 13
853 EnhancedCustomShapeParameterType::EQUATION,
854 EnhancedCustomShapeParameterType::EQUATION,
855 8, 14
858 EnhancedCustomShapeParameterType::EQUATION,
859 EnhancedCustomShapeParameterType::EQUATION,
860 7, 14
863 EnhancedCustomShapeParameterType::EQUATION,
864 EnhancedCustomShapeParameterType::EQUATION,
865 7, 13
868 EnhancedCustomShapeParameterType::EQUATION,
869 EnhancedCustomShapeParameterType::EQUATION,
870 6, 13
873 aPropSequence [0].Value = makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData), aData));
876 aPropSequence [1].Name = "Segments";
877 static const sal_uInt16 nValues[] = {
878 // Command, Count
879 1,1,
880 2,11,
881 4,0,
884 aPropSequence [1].Value = makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues ), nValues ));
887 aPropSequence [2].Name = "TextFrames";
888 Sequence< EnhancedCustomShapeTextFrame > aTextFrameSeq (1);
890 EnhancedCustomShapeTextFrame aTextFrame;
892 static const CustomShapeProvider::ParameterPairData aData =
894 EnhancedCustomShapeParameterType::EQUATION,
895 EnhancedCustomShapeParameterType::EQUATION,
896 6, 12
898 aTextFrame.TopLeft = createParameterPair(&aData);
901 static const CustomShapeProvider::ParameterPairData aData =
903 EnhancedCustomShapeParameterType::EQUATION,
904 EnhancedCustomShapeParameterType::EQUATION,
905 9, 13
907 aTextFrame.BottomRight = createParameterPair(&aData);
909 aTextFrameSeq [0] = aTextFrame;
911 aPropSequence [2].Value = makeAny (aTextFrameSeq);
913 aPropertyMap [PROP_Path] <<= aPropSequence;
916 awt::Rectangle aRectangle;
917 aRectangle.X = 0;
918 aRectangle.Y = 0;
919 aRectangle.Width = 0;
920 aRectangle.Height = 0;
921 aPropertyMap [PROP_ViewBox] <<= aRectangle;
923 aPropertyMap [ PROP_Type ] <<= OUString("ooxml-mathPlus");
925 return aPropertyMap;
928 class ShapeCactionButtonForwardNext : public CustomShapeProvider
930 virtual PropertyMap getProperties()
932 PropertyMap aPropertyMap;
935 aPropertyMap [PROP_AdjustmentValues] <<= Sequence< OUString >(0);
938 static const char *aStrings[] = {
939 "min(logwidth,logheight)",
940 "?0 *3/8",
941 "logheight/2",
942 "?2 +0-?1 ",
943 "?2 +?1 -0",
944 "logwidth/2",
945 "?5 +0-?1 ",
946 "?5 +?1 -0",
947 "logwidth",
948 "logheight"
950 aPropertyMap [PROP_Equations] <<= createStringSequence( SAL_N_ELEMENTS( aStrings ), aStrings );
953 aPropertyMap [PROP_Handles] <<= Sequence< OUString >(0);
956 aPropertyMap [PROP_MirroredX] <<= Any ((sal_Bool) sal_False);
959 aPropertyMap [PROP_MirroredY] <<= Any ((sal_Bool) sal_False);
962 Sequence< PropertyValue > aPropSequence (3);
964 aPropSequence [0].Name = "Coordinates";
965 static const CustomShapeProvider::ParameterPairData aData[] = {
967 EnhancedCustomShapeParameterType::NORMAL,
968 EnhancedCustomShapeParameterType::NORMAL,
969 0, 0
972 EnhancedCustomShapeParameterType::EQUATION,
973 EnhancedCustomShapeParameterType::NORMAL,
974 8, 0
977 EnhancedCustomShapeParameterType::EQUATION,
978 EnhancedCustomShapeParameterType::EQUATION,
979 8, 9
982 EnhancedCustomShapeParameterType::NORMAL,
983 EnhancedCustomShapeParameterType::EQUATION,
984 0, 9
987 EnhancedCustomShapeParameterType::EQUATION,
988 EnhancedCustomShapeParameterType::EQUATION,
989 7, 2
992 EnhancedCustomShapeParameterType::EQUATION,
993 EnhancedCustomShapeParameterType::EQUATION,
994 6, 3
997 EnhancedCustomShapeParameterType::EQUATION,
998 EnhancedCustomShapeParameterType::EQUATION,
999 6, 4
1002 EnhancedCustomShapeParameterType::EQUATION,
1003 EnhancedCustomShapeParameterType::EQUATION,
1004 7, 2
1007 EnhancedCustomShapeParameterType::EQUATION,
1008 EnhancedCustomShapeParameterType::EQUATION,
1009 6, 3
1012 EnhancedCustomShapeParameterType::EQUATION,
1013 EnhancedCustomShapeParameterType::EQUATION,
1014 6, 4
1017 EnhancedCustomShapeParameterType::EQUATION,
1018 EnhancedCustomShapeParameterType::EQUATION,
1019 7, 2
1022 EnhancedCustomShapeParameterType::EQUATION,
1023 EnhancedCustomShapeParameterType::EQUATION,
1024 6, 4
1027 EnhancedCustomShapeParameterType::EQUATION,
1028 EnhancedCustomShapeParameterType::EQUATION,
1029 6, 3
1032 EnhancedCustomShapeParameterType::NORMAL,
1033 EnhancedCustomShapeParameterType::NORMAL,
1034 0, 0
1037 EnhancedCustomShapeParameterType::EQUATION,
1038 EnhancedCustomShapeParameterType::NORMAL,
1039 8, 0
1042 EnhancedCustomShapeParameterType::EQUATION,
1043 EnhancedCustomShapeParameterType::EQUATION,
1044 8, 9
1047 EnhancedCustomShapeParameterType::NORMAL,
1048 EnhancedCustomShapeParameterType::EQUATION,
1049 0, 9
1052 aPropSequence [0].Value = makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData), aData));
1055 aPropSequence [1].Name = "Segments";
1056 static const sal_uInt16 nValues[] = {
1057 // Command, Count
1058 1,1,
1059 2,3,
1060 4,0,
1061 1,1,
1062 2,2,
1063 4,0,
1064 7,0,
1065 5,0,
1066 1,1,
1067 2,2,
1068 4,0,
1069 18,0,
1070 7,0,
1071 5,0,
1072 1,1,
1073 2,2,
1074 4,0,
1075 6,0,
1076 5,0,
1077 1,1,
1078 2,3,
1079 4,0,
1080 6,0,
1083 aPropSequence [1].Value = makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues ), nValues ));
1086 aPropSequence [2].Name = "TextFrames";
1087 Sequence< EnhancedCustomShapeTextFrame > aTextFrameSeq (1);
1089 EnhancedCustomShapeTextFrame aTextFrame;
1091 static const CustomShapeProvider::ParameterPairData aData =
1093 EnhancedCustomShapeParameterType::NORMAL,
1094 EnhancedCustomShapeParameterType::NORMAL,
1095 0, 0
1097 aTextFrame.TopLeft = createParameterPair(&aData);
1100 static const CustomShapeProvider::ParameterPairData aData =
1102 EnhancedCustomShapeParameterType::EQUATION,
1103 EnhancedCustomShapeParameterType::EQUATION,
1104 8, 9
1106 aTextFrame.BottomRight = createParameterPair(&aData);
1108 aTextFrameSeq [0] = aTextFrame;
1110 aPropSequence [2].Value = makeAny (aTextFrameSeq);
1112 aPropertyMap [PROP_Path] <<= aPropSequence;
1115 awt::Rectangle aRectangle;
1116 aRectangle.X = 0;
1117 aRectangle.Y = 0;
1118 aRectangle.Width = 0;
1119 aRectangle.Height = 0;
1120 aPropertyMap [PROP_ViewBox] <<= aRectangle;
1122 aPropertyMap [ PROP_Type ] <<= OUString("ooxml-actionButtonForwardNext");
1124 return aPropertyMap;
1127 class ShapeCcan : public CustomShapeProvider
1129 virtual PropertyMap getProperties()
1131 PropertyMap aPropertyMap;
1134 Sequence< EnhancedCustomShapeAdjustmentValue > aAdjSequence (1);
1136 Any aAny ((sal_Int32) 25000);
1137 aAdjSequence [0].Value = aAny;
1138 aAdjSequence [0].Name = "adj";
1140 aPropertyMap [PROP_AdjustmentValues] <<= aAdjSequence;
1143 static const char *aStrings[] = {
1144 "min(logwidth,logheight)",
1145 "50000*logheight/?0 ",
1146 "if(0-$0 ,0,if(?1 -$0 ,$0 ,?1 ))",
1147 "?0 *?2 /200000",
1148 "?3 +?3 -0",
1149 "logheight+0-?3 ",
1150 "logwidth/2",
1151 "logheight/2",
1152 "logheight",
1153 "logwidth",
1154 "logwidth/2",
1155 "(10800000)/60000.0",
1156 "(-10800000)/60000.0",
1157 "(0)/60000.0",
1158 "(10800000)/60000.0",
1159 "(10800000)/60000.0",
1160 "(10800000)/60000.0",
1161 "(0)/60000.0",
1162 "(10800000)/60000.0",
1163 "(0)/60000.0",
1164 "(10800000)/60000.0",
1165 "(10800000)/60000.0",
1166 "(10800000)/60000.0",
1167 "(0)/60000.0",
1168 "(10800000)/60000.0"
1170 aPropertyMap [PROP_Equations] <<= createStringSequence( SAL_N_ELEMENTS( aStrings ), aStrings );
1173 Sequence< Sequence < PropertyValue > > aPropSequenceSequence (1);
1175 Sequence< PropertyValue > aPropSequence (4);
1177 aPropSequence [0].Name = "Position";
1178 static const CustomShapeProvider::ParameterPairData aData =
1180 EnhancedCustomShapeParameterType::EQUATION,
1181 EnhancedCustomShapeParameterType::EQUATION,
1182 6, 4
1184 aPropSequence [0].Value = makeAny (createParameterPair(&aData));
1187 aPropSequence [1].Name = "RangeYMaximum";
1188 EnhancedCustomShapeParameter aParameter;
1189 Any aAny ((sal_Int32) 1);
1190 aParameter.Value = aAny;
1191 aParameter.Type = EnhancedCustomShapeParameterType::EQUATION;
1192 aPropSequence [1].Value = makeAny (aParameter);
1195 aPropSequence [2].Name = "RangeYMinimum";
1196 EnhancedCustomShapeParameter aParameter;
1197 Any aAny ((sal_Int32) 0);
1198 aParameter.Value = aAny;
1199 aParameter.Type = EnhancedCustomShapeParameterType::NORMAL;
1200 aPropSequence [2].Value = makeAny (aParameter);
1203 aPropSequence [3].Name = "RefY";
1204 Any aAny ((sal_Int32) 0);
1205 aPropSequence [3].Value = makeAny (aAny);
1207 aPropSequenceSequence [0] = aPropSequence;
1209 aPropertyMap [PROP_Handles] <<= aPropSequenceSequence;
1212 aPropertyMap [PROP_MirroredX] <<= Any ((sal_Bool) sal_False);
1215 aPropertyMap [PROP_MirroredY] <<= Any ((sal_Bool) sal_False);
1218 Sequence< PropertyValue > aPropSequence (3);
1220 aPropSequence [0].Name = "Coordinates";
1221 static const CustomShapeProvider::ParameterPairData aData[] = {
1223 EnhancedCustomShapeParameterType::NORMAL,
1224 EnhancedCustomShapeParameterType::EQUATION,
1225 0, 3
1228 EnhancedCustomShapeParameterType::EQUATION,
1229 EnhancedCustomShapeParameterType::EQUATION,
1230 10, 3
1233 EnhancedCustomShapeParameterType::EQUATION,
1234 EnhancedCustomShapeParameterType::EQUATION,
1235 11, 12
1238 EnhancedCustomShapeParameterType::EQUATION,
1239 EnhancedCustomShapeParameterType::EQUATION,
1240 9, 5
1243 EnhancedCustomShapeParameterType::EQUATION,
1244 EnhancedCustomShapeParameterType::EQUATION,
1245 10, 3
1248 EnhancedCustomShapeParameterType::EQUATION,
1249 EnhancedCustomShapeParameterType::EQUATION,
1250 13, 14
1253 EnhancedCustomShapeParameterType::NORMAL,
1254 EnhancedCustomShapeParameterType::EQUATION,
1255 0, 3
1258 EnhancedCustomShapeParameterType::EQUATION,
1259 EnhancedCustomShapeParameterType::EQUATION,
1260 10, 3
1263 EnhancedCustomShapeParameterType::EQUATION,
1264 EnhancedCustomShapeParameterType::EQUATION,
1265 15, 16
1268 EnhancedCustomShapeParameterType::EQUATION,
1269 EnhancedCustomShapeParameterType::EQUATION,
1270 10, 3
1273 EnhancedCustomShapeParameterType::EQUATION,
1274 EnhancedCustomShapeParameterType::EQUATION,
1275 17, 18
1278 EnhancedCustomShapeParameterType::EQUATION,
1279 EnhancedCustomShapeParameterType::EQUATION,
1280 9, 3
1283 EnhancedCustomShapeParameterType::EQUATION,
1284 EnhancedCustomShapeParameterType::EQUATION,
1285 10, 3
1288 EnhancedCustomShapeParameterType::EQUATION,
1289 EnhancedCustomShapeParameterType::EQUATION,
1290 19, 20
1293 EnhancedCustomShapeParameterType::EQUATION,
1294 EnhancedCustomShapeParameterType::EQUATION,
1295 10, 3
1298 EnhancedCustomShapeParameterType::EQUATION,
1299 EnhancedCustomShapeParameterType::EQUATION,
1300 21, 22
1303 EnhancedCustomShapeParameterType::EQUATION,
1304 EnhancedCustomShapeParameterType::EQUATION,
1305 9, 5
1308 EnhancedCustomShapeParameterType::EQUATION,
1309 EnhancedCustomShapeParameterType::EQUATION,
1310 10, 3
1313 EnhancedCustomShapeParameterType::EQUATION,
1314 EnhancedCustomShapeParameterType::EQUATION,
1315 23, 24
1318 EnhancedCustomShapeParameterType::NORMAL,
1319 EnhancedCustomShapeParameterType::EQUATION,
1320 0, 3
1323 aPropSequence [0].Value = makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData), aData));
1326 aPropSequence [1].Name = "Segments";
1327 static const sal_uInt16 nValues[] = {
1328 // Command, Count
1329 1,1,
1330 17,1,
1331 2,1,
1332 17,1,
1333 4,0,
1334 7,0,
1335 5,0,
1336 1,1,
1337 17,2,
1338 4,0,
1339 20,0,
1340 7,0,
1341 5,0,
1342 1,1,
1343 17,2,
1344 2,1,
1345 17,1,
1346 2,1,
1347 6,0,
1350 aPropSequence [1].Value = makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues ), nValues ));
1353 aPropSequence [2].Name = "TextFrames";
1354 Sequence< EnhancedCustomShapeTextFrame > aTextFrameSeq (1);
1356 EnhancedCustomShapeTextFrame aTextFrame;
1358 static const CustomShapeProvider::ParameterPairData aData =
1360 EnhancedCustomShapeParameterType::NORMAL,
1361 EnhancedCustomShapeParameterType::EQUATION,
1362 0, 4
1364 aTextFrame.TopLeft = createParameterPair(&aData);
1367 static const CustomShapeProvider::ParameterPairData aData =
1369 EnhancedCustomShapeParameterType::EQUATION,
1370 EnhancedCustomShapeParameterType::EQUATION,
1371 9, 5
1373 aTextFrame.BottomRight = createParameterPair(&aData);
1375 aTextFrameSeq [0] = aTextFrame;
1377 aPropSequence [2].Value = makeAny (aTextFrameSeq);
1379 aPropertyMap [PROP_Path] <<= aPropSequence;
1382 awt::Rectangle aRectangle;
1383 aRectangle.X = 0;
1384 aRectangle.Y = 0;
1385 aRectangle.Width = 0;
1386 aRectangle.Height = 0;
1387 aPropertyMap [PROP_ViewBox] <<= aRectangle;
1389 aPropertyMap [ PROP_Type ] <<= OUString("ooxml-can");
1391 return aPropertyMap;
1394 class ShapeCfoldedCorner : public CustomShapeProvider
1396 virtual PropertyMap getProperties()
1398 PropertyMap aPropertyMap;
1401 Sequence< EnhancedCustomShapeAdjustmentValue > aAdjSequence (1);
1403 Any aAny ((sal_Int32) 16667);
1404 aAdjSequence [0].Value = aAny;
1405 aAdjSequence [0].Name = "adj";
1407 aPropertyMap [PROP_AdjustmentValues] <<= aAdjSequence;
1410 static const char *aStrings[] = {
1411 "if(0-$0 ,0,if(50000-$0 ,$0 ,50000))",
1412 "min(logwidth,logheight)",
1413 "?1 *?0 /100000",
1414 "?2 *1/5",
1415 "logwidth+0-?2 ",
1416 "?4 +?3 -0",
1417 "logheight+0-?2 ",
1418 "?6 +?3 -0",
1419 "logheight",
1420 "logwidth/2",
1421 "logheight/2",
1422 "logwidth"
1424 aPropertyMap [PROP_Equations] <<= createStringSequence( SAL_N_ELEMENTS( aStrings ), aStrings );
1427 Sequence< Sequence < PropertyValue > > aPropSequenceSequence (1);
1429 Sequence< PropertyValue > aPropSequence (4);
1431 aPropSequence [0].Name = "Position";
1432 static const CustomShapeProvider::ParameterPairData aData =
1434 EnhancedCustomShapeParameterType::EQUATION,
1435 EnhancedCustomShapeParameterType::EQUATION,
1436 4, 8
1438 aPropSequence [0].Value = makeAny (createParameterPair(&aData));
1441 aPropSequence [1].Name = "RangeXMaximum";
1442 EnhancedCustomShapeParameter aParameter;
1443 Any aAny ((sal_Int32) 50000);
1444 aParameter.Value = aAny;
1445 aParameter.Type = EnhancedCustomShapeParameterType::NORMAL;
1446 aPropSequence [1].Value = makeAny (aParameter);
1449 aPropSequence [2].Name = "RangeXMinimum";
1450 EnhancedCustomShapeParameter aParameter;
1451 Any aAny ((sal_Int32) 0);
1452 aParameter.Value = aAny;
1453 aParameter.Type = EnhancedCustomShapeParameterType::NORMAL;
1454 aPropSequence [2].Value = makeAny (aParameter);
1457 aPropSequence [3].Name = "RefX";
1458 Any aAny ((sal_Int32) 0);
1459 aPropSequence [3].Value = makeAny (aAny);
1461 aPropSequenceSequence [0] = aPropSequence;
1463 aPropertyMap [PROP_Handles] <<= aPropSequenceSequence;
1466 aPropertyMap [PROP_MirroredX] <<= Any ((sal_Bool) sal_False);
1469 aPropertyMap [PROP_MirroredY] <<= Any ((sal_Bool) sal_False);
1472 Sequence< PropertyValue > aPropSequence (3);
1474 aPropSequence [0].Name = "Coordinates";
1475 static const CustomShapeProvider::ParameterPairData aData[] = {
1477 EnhancedCustomShapeParameterType::NORMAL,
1478 EnhancedCustomShapeParameterType::NORMAL,
1479 0, 0
1482 EnhancedCustomShapeParameterType::EQUATION,
1483 EnhancedCustomShapeParameterType::NORMAL,
1484 11, 0
1487 EnhancedCustomShapeParameterType::EQUATION,
1488 EnhancedCustomShapeParameterType::EQUATION,
1489 11, 6
1492 EnhancedCustomShapeParameterType::EQUATION,
1493 EnhancedCustomShapeParameterType::EQUATION,
1494 4, 8
1497 EnhancedCustomShapeParameterType::NORMAL,
1498 EnhancedCustomShapeParameterType::EQUATION,
1499 0, 8
1502 EnhancedCustomShapeParameterType::EQUATION,
1503 EnhancedCustomShapeParameterType::EQUATION,
1504 4, 8
1507 EnhancedCustomShapeParameterType::EQUATION,
1508 EnhancedCustomShapeParameterType::EQUATION,
1509 5, 7
1512 EnhancedCustomShapeParameterType::EQUATION,
1513 EnhancedCustomShapeParameterType::EQUATION,
1514 11, 6
1517 EnhancedCustomShapeParameterType::EQUATION,
1518 EnhancedCustomShapeParameterType::EQUATION,
1519 4, 8
1522 EnhancedCustomShapeParameterType::EQUATION,
1523 EnhancedCustomShapeParameterType::EQUATION,
1524 5, 7
1527 EnhancedCustomShapeParameterType::EQUATION,
1528 EnhancedCustomShapeParameterType::EQUATION,
1529 11, 6
1532 EnhancedCustomShapeParameterType::EQUATION,
1533 EnhancedCustomShapeParameterType::EQUATION,
1534 4, 8
1537 EnhancedCustomShapeParameterType::NORMAL,
1538 EnhancedCustomShapeParameterType::EQUATION,
1539 0, 8
1542 EnhancedCustomShapeParameterType::NORMAL,
1543 EnhancedCustomShapeParameterType::NORMAL,
1544 0, 0
1547 EnhancedCustomShapeParameterType::EQUATION,
1548 EnhancedCustomShapeParameterType::NORMAL,
1549 11, 0
1552 EnhancedCustomShapeParameterType::EQUATION,
1553 EnhancedCustomShapeParameterType::EQUATION,
1554 11, 6
1557 aPropSequence [0].Value = makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData), aData));
1560 aPropSequence [1].Name = "Segments";
1561 static const sal_uInt16 nValues[] = {
1562 // Command, Count
1563 1,1,
1564 2,4,
1565 4,0,
1566 7,0,
1567 5,0,
1568 1,1,
1569 2,2,
1570 4,0,
1571 19,0,
1572 7,0,
1573 5,0,
1574 1,1,
1575 2,7,
1576 6,0,
1579 aPropSequence [1].Value = makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues ), nValues ));
1582 aPropSequence [2].Name = "TextFrames";
1583 Sequence< EnhancedCustomShapeTextFrame > aTextFrameSeq (1);
1585 EnhancedCustomShapeTextFrame aTextFrame;
1587 static const CustomShapeProvider::ParameterPairData aData =
1589 EnhancedCustomShapeParameterType::NORMAL,
1590 EnhancedCustomShapeParameterType::NORMAL,
1591 0, 0
1593 aTextFrame.TopLeft = createParameterPair(&aData);
1596 static const CustomShapeProvider::ParameterPairData aData =
1598 EnhancedCustomShapeParameterType::EQUATION,
1599 EnhancedCustomShapeParameterType::EQUATION,
1600 11, 6
1602 aTextFrame.BottomRight = createParameterPair(&aData);
1604 aTextFrameSeq [0] = aTextFrame;
1606 aPropSequence [2].Value = makeAny (aTextFrameSeq);
1608 aPropertyMap [PROP_Path] <<= aPropSequence;
1611 awt::Rectangle aRectangle;
1612 aRectangle.X = 0;
1613 aRectangle.Y = 0;
1614 aRectangle.Width = 0;
1615 aRectangle.Height = 0;
1616 aPropertyMap [PROP_ViewBox] <<= aRectangle;
1618 aPropertyMap [ PROP_Type ] <<= OUString("ooxml-foldedCorner");
1620 return aPropertyMap;
1623 class ShapeCstar32 : public CustomShapeProvider
1625 virtual PropertyMap getProperties()
1627 PropertyMap aPropertyMap;
1630 Sequence< EnhancedCustomShapeAdjustmentValue > aAdjSequence (1);
1632 Any aAny ((sal_Int32) 37500);
1633 aAdjSequence [0].Value = aAny;
1634 aAdjSequence [0].Name = "adj";
1636 aPropertyMap [PROP_AdjustmentValues] <<= aAdjSequence;
1639 static const char *aStrings[] = {
1640 "if(0-$0 ,0,if(50000-$0 ,$0 ,50000))",
1641 "logwidth/2",
1642 "?1 *98079/100000",
1643 "?1 *92388/100000",
1644 "?1 *83147/100000",
1645 "?1 *cos(pi*(2700000)/10800000)",
1646 "?1 *55557/100000",
1647 "?1 *38268/100000",
1648 "?1 *19509/100000",
1649 "logheight/2",
1650 "?9 *98079/100000",
1651 "?9 *92388/100000",
1652 "?9 *83147/100000",
1653 "?9 *sin(pi*(2700000)/10800000)",
1654 "?9 *55557/100000",
1655 "?9 *38268/100000",
1656 "?9 *19509/100000",
1657 "logwidth/2",
1658 "?17 +0-?2 ",
1659 "?17 +0-?3 ",
1660 "?17 +0-?4 ",
1661 "?17 +0-?5 ",
1662 "?17 +0-?6 ",
1663 "?17 +0-?7 ",
1664 "?17 +0-?8 ",
1665 "?17 +?8 -0",
1666 "?17 +?7 -0",
1667 "?17 +?6 -0",
1668 "?17 +?5 -0",
1669 "?17 +?4 -0",
1670 "?17 +?3 -0",
1671 "?17 +?2 -0",
1672 "logheight/2",
1673 "?32 +0-?10 ",
1674 "?32 +0-?11 ",
1675 "?32 +0-?12 ",
1676 "?32 +0-?13 ",
1677 "?32 +0-?14 ",
1678 "?32 +0-?15 ",
1679 "?32 +0-?16 ",
1680 "?32 +?16 -0",
1681 "?32 +?15 -0",
1682 "?32 +?14 -0",
1683 "?32 +?13 -0",
1684 "?32 +?12 -0",
1685 "?32 +?11 -0",
1686 "?32 +?10 -0",
1687 "?1 *?0 /50000",
1688 "?9 *?0 /50000",
1689 "?47 *99518/100000",
1690 "?47 *95694/100000",
1691 "?47 *88192/100000",
1692 "?47 *77301/100000",
1693 "?47 *63439/100000",
1694 "?47 *47140/100000",
1695 "?47 *29028/100000",
1696 "?47 *9802/100000",
1697 "?48 *99518/100000",
1698 "?48 *95694/100000",
1699 "?48 *88192/100000",
1700 "?48 *77301/100000",
1701 "?48 *63439/100000",
1702 "?48 *47140/100000",
1703 "?48 *29028/100000",
1704 "?48 *9802/100000",
1705 "?17 +0-?49 ",
1706 "?17 +0-?50 ",
1707 "?17 +0-?51 ",
1708 "?17 +0-?52 ",
1709 "?17 +0-?53 ",
1710 "?17 +0-?54 ",
1711 "?17 +0-?55 ",
1712 "?17 +0-?56 ",
1713 "?17 +?56 -0",
1714 "?17 +?55 -0",
1715 "?17 +?54 -0",
1716 "?17 +?53 -0",
1717 "?17 +?52 -0",
1718 "?17 +?51 -0",
1719 "?17 +?50 -0",
1720 "?17 +?49 -0",
1721 "?32 +0-?57 ",
1722 "?32 +0-?58 ",
1723 "?32 +0-?59 ",
1724 "?32 +0-?60 ",
1725 "?32 +0-?61 ",
1726 "?32 +0-?62 ",
1727 "?32 +0-?63 ",
1728 "?32 +0-?64 ",
1729 "?32 +?64 -0",
1730 "?32 +?63 -0",
1731 "?32 +?62 -0",
1732 "?32 +?61 -0",
1733 "?32 +?60 -0",
1734 "?32 +?59 -0",
1735 "?32 +?58 -0",
1736 "?32 +?57 -0",
1737 "?47 *cos(pi*(2700000)/10800000)",
1738 "?48 *sin(pi*(2700000)/10800000)",
1739 "?17 +0-?97 ",
1740 "?32 +0-?98 ",
1741 "?17 +?97 -0",
1742 "?32 +?98 -0",
1743 "?32 +0-?48 ",
1744 "min(logwidth,logheight)/2",
1745 "logheight",
1746 "logwidth"
1748 aPropertyMap [PROP_Equations] <<= createStringSequence( SAL_N_ELEMENTS( aStrings ), aStrings );
1751 Sequence< Sequence < PropertyValue > > aPropSequenceSequence (1);
1753 Sequence< PropertyValue > aPropSequence (4);
1755 aPropSequence [0].Name = "Position";
1756 static const CustomShapeProvider::ParameterPairData aData =
1758 EnhancedCustomShapeParameterType::EQUATION,
1759 EnhancedCustomShapeParameterType::EQUATION,
1760 17, 103
1762 aPropSequence [0].Value = makeAny (createParameterPair(&aData));
1765 aPropSequence [1].Name = "RangeYMaximum";
1766 EnhancedCustomShapeParameter aParameter;
1767 Any aAny ((sal_Int32) 104);
1768 aParameter.Value = aAny;
1769 aParameter.Type = EnhancedCustomShapeParameterType::EQUATION;
1770 aPropSequence [1].Value = makeAny (aParameter);
1773 aPropSequence [2].Name = "RangeYMinimum";
1774 EnhancedCustomShapeParameter aParameter;
1775 Any aAny ((sal_Int32) 0);
1776 aParameter.Value = aAny;
1777 aParameter.Type = EnhancedCustomShapeParameterType::NORMAL;
1778 aPropSequence [2].Value = makeAny (aParameter);
1781 aPropSequence [3].Name = "RefY";
1782 Any aAny ((sal_Int32) 0);
1783 aPropSequence [3].Value = makeAny (aAny);
1785 aPropSequenceSequence [0] = aPropSequence;
1787 aPropertyMap [PROP_Handles] <<= aPropSequenceSequence;
1790 aPropertyMap [PROP_MirroredX] <<= Any ((sal_Bool) sal_False);
1793 aPropertyMap [PROP_MirroredY] <<= Any ((sal_Bool) sal_False);
1796 Sequence< PropertyValue > aPropSequence (3);
1798 aPropSequence [0].Name = "Coordinates";
1799 static const CustomShapeProvider::ParameterPairData aData[] = {
1801 EnhancedCustomShapeParameterType::NORMAL,
1802 EnhancedCustomShapeParameterType::EQUATION,
1803 0, 32
1806 EnhancedCustomShapeParameterType::EQUATION,
1807 EnhancedCustomShapeParameterType::EQUATION,
1808 65, 88
1811 EnhancedCustomShapeParameterType::EQUATION,
1812 EnhancedCustomShapeParameterType::EQUATION,
1813 18, 39
1816 EnhancedCustomShapeParameterType::EQUATION,
1817 EnhancedCustomShapeParameterType::EQUATION,
1818 66, 87
1821 EnhancedCustomShapeParameterType::EQUATION,
1822 EnhancedCustomShapeParameterType::EQUATION,
1823 19, 38
1826 EnhancedCustomShapeParameterType::EQUATION,
1827 EnhancedCustomShapeParameterType::EQUATION,
1828 67, 86
1831 EnhancedCustomShapeParameterType::EQUATION,
1832 EnhancedCustomShapeParameterType::EQUATION,
1833 20, 37
1836 EnhancedCustomShapeParameterType::EQUATION,
1837 EnhancedCustomShapeParameterType::EQUATION,
1838 68, 85
1841 EnhancedCustomShapeParameterType::EQUATION,
1842 EnhancedCustomShapeParameterType::EQUATION,
1843 21, 36
1846 EnhancedCustomShapeParameterType::EQUATION,
1847 EnhancedCustomShapeParameterType::EQUATION,
1848 69, 84
1851 EnhancedCustomShapeParameterType::EQUATION,
1852 EnhancedCustomShapeParameterType::EQUATION,
1853 22, 35
1856 EnhancedCustomShapeParameterType::EQUATION,
1857 EnhancedCustomShapeParameterType::EQUATION,
1858 70, 83
1861 EnhancedCustomShapeParameterType::EQUATION,
1862 EnhancedCustomShapeParameterType::EQUATION,
1863 23, 34
1866 EnhancedCustomShapeParameterType::EQUATION,
1867 EnhancedCustomShapeParameterType::EQUATION,
1868 71, 82
1871 EnhancedCustomShapeParameterType::EQUATION,
1872 EnhancedCustomShapeParameterType::EQUATION,
1873 24, 33
1876 EnhancedCustomShapeParameterType::EQUATION,
1877 EnhancedCustomShapeParameterType::EQUATION,
1878 72, 81
1881 EnhancedCustomShapeParameterType::EQUATION,
1882 EnhancedCustomShapeParameterType::NORMAL,
1883 17, 0
1886 EnhancedCustomShapeParameterType::EQUATION,
1887 EnhancedCustomShapeParameterType::EQUATION,
1888 73, 81
1891 EnhancedCustomShapeParameterType::EQUATION,
1892 EnhancedCustomShapeParameterType::EQUATION,
1893 25, 33
1896 EnhancedCustomShapeParameterType::EQUATION,
1897 EnhancedCustomShapeParameterType::EQUATION,
1898 74, 82
1901 EnhancedCustomShapeParameterType::EQUATION,
1902 EnhancedCustomShapeParameterType::EQUATION,
1903 26, 34
1906 EnhancedCustomShapeParameterType::EQUATION,
1907 EnhancedCustomShapeParameterType::EQUATION,
1908 75, 83
1911 EnhancedCustomShapeParameterType::EQUATION,
1912 EnhancedCustomShapeParameterType::EQUATION,
1913 27, 35
1916 EnhancedCustomShapeParameterType::EQUATION,
1917 EnhancedCustomShapeParameterType::EQUATION,
1918 76, 84
1921 EnhancedCustomShapeParameterType::EQUATION,
1922 EnhancedCustomShapeParameterType::EQUATION,
1923 28, 36
1926 EnhancedCustomShapeParameterType::EQUATION,
1927 EnhancedCustomShapeParameterType::EQUATION,
1928 77, 85
1931 EnhancedCustomShapeParameterType::EQUATION,
1932 EnhancedCustomShapeParameterType::EQUATION,
1933 29, 37
1936 EnhancedCustomShapeParameterType::EQUATION,
1937 EnhancedCustomShapeParameterType::EQUATION,
1938 78, 86
1941 EnhancedCustomShapeParameterType::EQUATION,
1942 EnhancedCustomShapeParameterType::EQUATION,
1943 30, 38
1946 EnhancedCustomShapeParameterType::EQUATION,
1947 EnhancedCustomShapeParameterType::EQUATION,
1948 79, 87
1951 EnhancedCustomShapeParameterType::EQUATION,
1952 EnhancedCustomShapeParameterType::EQUATION,
1953 31, 39
1956 EnhancedCustomShapeParameterType::EQUATION,
1957 EnhancedCustomShapeParameterType::EQUATION,
1958 80, 88
1961 EnhancedCustomShapeParameterType::EQUATION,
1962 EnhancedCustomShapeParameterType::EQUATION,
1963 106, 32
1966 EnhancedCustomShapeParameterType::EQUATION,
1967 EnhancedCustomShapeParameterType::EQUATION,
1968 80, 89
1971 EnhancedCustomShapeParameterType::EQUATION,
1972 EnhancedCustomShapeParameterType::EQUATION,
1973 31, 40
1976 EnhancedCustomShapeParameterType::EQUATION,
1977 EnhancedCustomShapeParameterType::EQUATION,
1978 79, 90
1981 EnhancedCustomShapeParameterType::EQUATION,
1982 EnhancedCustomShapeParameterType::EQUATION,
1983 30, 41
1986 EnhancedCustomShapeParameterType::EQUATION,
1987 EnhancedCustomShapeParameterType::EQUATION,
1988 78, 91
1991 EnhancedCustomShapeParameterType::EQUATION,
1992 EnhancedCustomShapeParameterType::EQUATION,
1993 29, 42
1996 EnhancedCustomShapeParameterType::EQUATION,
1997 EnhancedCustomShapeParameterType::EQUATION,
1998 77, 92
2001 EnhancedCustomShapeParameterType::EQUATION,
2002 EnhancedCustomShapeParameterType::EQUATION,
2003 28, 43
2006 EnhancedCustomShapeParameterType::EQUATION,
2007 EnhancedCustomShapeParameterType::EQUATION,
2008 76, 93
2011 EnhancedCustomShapeParameterType::EQUATION,
2012 EnhancedCustomShapeParameterType::EQUATION,
2013 27, 44
2016 EnhancedCustomShapeParameterType::EQUATION,
2017 EnhancedCustomShapeParameterType::EQUATION,
2018 75, 94
2021 EnhancedCustomShapeParameterType::EQUATION,
2022 EnhancedCustomShapeParameterType::EQUATION,
2023 26, 45
2026 EnhancedCustomShapeParameterType::EQUATION,
2027 EnhancedCustomShapeParameterType::EQUATION,
2028 74, 95
2031 EnhancedCustomShapeParameterType::EQUATION,
2032 EnhancedCustomShapeParameterType::EQUATION,
2033 25, 46
2036 EnhancedCustomShapeParameterType::EQUATION,
2037 EnhancedCustomShapeParameterType::EQUATION,
2038 73, 96
2041 EnhancedCustomShapeParameterType::EQUATION,
2042 EnhancedCustomShapeParameterType::EQUATION,
2043 17, 105
2046 EnhancedCustomShapeParameterType::EQUATION,
2047 EnhancedCustomShapeParameterType::EQUATION,
2048 72, 96
2051 EnhancedCustomShapeParameterType::EQUATION,
2052 EnhancedCustomShapeParameterType::EQUATION,
2053 24, 46
2056 EnhancedCustomShapeParameterType::EQUATION,
2057 EnhancedCustomShapeParameterType::EQUATION,
2058 71, 95
2061 EnhancedCustomShapeParameterType::EQUATION,
2062 EnhancedCustomShapeParameterType::EQUATION,
2063 23, 45
2066 EnhancedCustomShapeParameterType::EQUATION,
2067 EnhancedCustomShapeParameterType::EQUATION,
2068 70, 94
2071 EnhancedCustomShapeParameterType::EQUATION,
2072 EnhancedCustomShapeParameterType::EQUATION,
2073 22, 44
2076 EnhancedCustomShapeParameterType::EQUATION,
2077 EnhancedCustomShapeParameterType::EQUATION,
2078 69, 93
2081 EnhancedCustomShapeParameterType::EQUATION,
2082 EnhancedCustomShapeParameterType::EQUATION,
2083 21, 43
2086 EnhancedCustomShapeParameterType::EQUATION,
2087 EnhancedCustomShapeParameterType::EQUATION,
2088 68, 92
2091 EnhancedCustomShapeParameterType::EQUATION,
2092 EnhancedCustomShapeParameterType::EQUATION,
2093 20, 42
2096 EnhancedCustomShapeParameterType::EQUATION,
2097 EnhancedCustomShapeParameterType::EQUATION,
2098 67, 91
2101 EnhancedCustomShapeParameterType::EQUATION,
2102 EnhancedCustomShapeParameterType::EQUATION,
2103 19, 41
2106 EnhancedCustomShapeParameterType::EQUATION,
2107 EnhancedCustomShapeParameterType::EQUATION,
2108 66, 90
2111 EnhancedCustomShapeParameterType::EQUATION,
2112 EnhancedCustomShapeParameterType::EQUATION,
2113 18, 40
2116 EnhancedCustomShapeParameterType::EQUATION,
2117 EnhancedCustomShapeParameterType::EQUATION,
2118 65, 89
2121 aPropSequence [0].Value = makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData), aData));
2124 aPropSequence [1].Name = "Segments";
2125 static const sal_uInt16 nValues[] = {
2126 // Command, Count
2127 1,1,
2128 2,63,
2129 4,0,
2132 aPropSequence [1].Value = makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues ), nValues ));
2135 aPropSequence [2].Name = "TextFrames";
2136 Sequence< EnhancedCustomShapeTextFrame > aTextFrameSeq (1);
2138 EnhancedCustomShapeTextFrame aTextFrame;
2140 static const CustomShapeProvider::ParameterPairData aData =
2142 EnhancedCustomShapeParameterType::EQUATION,
2143 EnhancedCustomShapeParameterType::EQUATION,
2144 99, 100
2146 aTextFrame.TopLeft = createParameterPair(&aData);
2149 static const CustomShapeProvider::ParameterPairData aData =
2151 EnhancedCustomShapeParameterType::EQUATION,
2152 EnhancedCustomShapeParameterType::EQUATION,
2153 101, 102
2155 aTextFrame.BottomRight = createParameterPair(&aData);
2157 aTextFrameSeq [0] = aTextFrame;
2159 aPropSequence [2].Value = makeAny (aTextFrameSeq);
2161 aPropertyMap [PROP_Path] <<= aPropSequence;
2164 awt::Rectangle aRectangle;
2165 aRectangle.X = 0;
2166 aRectangle.Y = 0;
2167 aRectangle.Width = 0;
2168 aRectangle.Height = 0;
2169 aPropertyMap [PROP_ViewBox] <<= aRectangle;
2171 aPropertyMap [ PROP_Type ] <<= OUString("ooxml-star32");
2173 return aPropertyMap;
2176 class ShapeCflowChartInternalStorage : public CustomShapeProvider
2178 virtual PropertyMap getProperties()
2180 PropertyMap aPropertyMap;
2183 aPropertyMap [PROP_AdjustmentValues] <<= Sequence< OUString >(0);
2186 static const char *aStrings[] = {
2187 "logwidth/2",
2188 "logheight/2",
2189 "logheight",
2190 "logwidth",
2191 "logwidth/8",
2192 "logheight/8"
2194 aPropertyMap [PROP_Equations] <<= createStringSequence( SAL_N_ELEMENTS( aStrings ), aStrings );
2197 aPropertyMap [PROP_Handles] <<= Sequence< OUString >(0);
2200 aPropertyMap [PROP_MirroredX] <<= Any ((sal_Bool) sal_False);
2203 aPropertyMap [PROP_MirroredY] <<= Any ((sal_Bool) sal_False);
2206 Sequence< PropertyValue > aPropSequence (4);
2208 aPropSequence [0].Name = "Coordinates";
2209 static const CustomShapeProvider::ParameterPairData aData[] = {
2211 EnhancedCustomShapeParameterType::NORMAL,
2212 EnhancedCustomShapeParameterType::NORMAL,
2213 0, 0
2216 EnhancedCustomShapeParameterType::NORMAL,
2217 EnhancedCustomShapeParameterType::NORMAL,
2218 1, 0
2221 EnhancedCustomShapeParameterType::NORMAL,
2222 EnhancedCustomShapeParameterType::NORMAL,
2223 1, 1
2226 EnhancedCustomShapeParameterType::NORMAL,
2227 EnhancedCustomShapeParameterType::NORMAL,
2228 0, 1
2231 EnhancedCustomShapeParameterType::NORMAL,
2232 EnhancedCustomShapeParameterType::NORMAL,
2233 1, 0
2236 EnhancedCustomShapeParameterType::NORMAL,
2237 EnhancedCustomShapeParameterType::NORMAL,
2238 1, 8
2241 EnhancedCustomShapeParameterType::NORMAL,
2242 EnhancedCustomShapeParameterType::NORMAL,
2243 0, 1
2246 EnhancedCustomShapeParameterType::NORMAL,
2247 EnhancedCustomShapeParameterType::NORMAL,
2248 8, 1
2251 EnhancedCustomShapeParameterType::NORMAL,
2252 EnhancedCustomShapeParameterType::NORMAL,
2253 0, 0
2256 EnhancedCustomShapeParameterType::NORMAL,
2257 EnhancedCustomShapeParameterType::NORMAL,
2258 1, 0
2261 EnhancedCustomShapeParameterType::NORMAL,
2262 EnhancedCustomShapeParameterType::NORMAL,
2263 1, 1
2266 EnhancedCustomShapeParameterType::NORMAL,
2267 EnhancedCustomShapeParameterType::NORMAL,
2268 0, 1
2271 aPropSequence [0].Value = makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData), aData));
2274 aPropSequence [1].Name = "Segments";
2275 static const sal_uInt16 nValues[] = {
2276 // Command, Count
2277 1,1,
2278 2,3,
2279 4,0,
2280 7,0,
2281 5,0,
2282 1,1,
2283 2,1,
2284 1,1,
2285 2,1,
2286 6,0,
2287 5,0,
2288 1,1,
2289 2,3,
2290 4,0,
2291 6,0,
2294 aPropSequence [1].Value = makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues ), nValues ));
2297 aPropSequence [2].Name = "SubViewSize";
2298 Sequence< awt::Size > aSizeSequence (3);
2300 awt::Size aSize;
2301 aSize.Width = 1;
2302 aSize.Height = 1;
2303 aSizeSequence [0] = aSize;
2306 awt::Size aSize;
2307 aSize.Width = 8;
2308 aSize.Height = 8;
2309 aSizeSequence [1] = aSize;
2312 awt::Size aSize;
2313 aSize.Width = 1;
2314 aSize.Height = 1;
2315 aSizeSequence [2] = aSize;
2317 aPropSequence [2].Value = makeAny (aSizeSequence);
2320 aPropSequence [3].Name = "TextFrames";
2321 Sequence< EnhancedCustomShapeTextFrame > aTextFrameSeq (1);
2323 EnhancedCustomShapeTextFrame aTextFrame;
2325 static const CustomShapeProvider::ParameterPairData aData =
2327 EnhancedCustomShapeParameterType::EQUATION,
2328 EnhancedCustomShapeParameterType::EQUATION,
2329 4, 5
2331 aTextFrame.TopLeft = createParameterPair(&aData);
2334 static const CustomShapeProvider::ParameterPairData aData =
2336 EnhancedCustomShapeParameterType::EQUATION,
2337 EnhancedCustomShapeParameterType::EQUATION,
2338 3, 2
2340 aTextFrame.BottomRight = createParameterPair(&aData);
2342 aTextFrameSeq [0] = aTextFrame;
2344 aPropSequence [3].Value = makeAny (aTextFrameSeq);
2346 aPropertyMap [PROP_Path] <<= aPropSequence;
2349 awt::Rectangle aRectangle;
2350 aRectangle.X = 0;
2351 aRectangle.Y = 0;
2352 aRectangle.Width = 0;
2353 aRectangle.Height = 0;
2354 aPropertyMap [PROP_ViewBox] <<= aRectangle;
2356 aPropertyMap [ PROP_Type ] <<= OUString("ooxml-flowChartInternalStorage");
2358 return aPropertyMap;
2361 class ShapeCupDownArrow : public CustomShapeProvider
2363 virtual PropertyMap getProperties()
2365 PropertyMap aPropertyMap;
2368 Sequence< EnhancedCustomShapeAdjustmentValue > aAdjSequence (2);
2370 Any aAny ((sal_Int32) 50000);
2371 aAdjSequence [0].Value = aAny;
2372 aAdjSequence [0].Name = "adj1";
2375 Any aAny ((sal_Int32) 50000);
2376 aAdjSequence [1].Value = aAny;
2377 aAdjSequence [1].Name = "adj2";
2379 aPropertyMap [PROP_AdjustmentValues] <<= aAdjSequence;
2382 static const char *aStrings[] = {
2383 "min(logwidth,logheight)",
2384 "50000*logheight/?0 ",
2385 "if(0-$0 ,0,if(100000-$0 ,$0 ,100000))",
2386 "if(0-$1 ,0,if(?1 -$1 ,$1 ,?1 ))",
2387 "?0 *?3 /100000",
2388 "logheight+0-?4 ",
2389 "logwidth*?2 /200000",
2390 "logwidth/2",
2391 "?7 +0-?6 ",
2392 "?7 +?6 -0",
2393 "logwidth/2",
2394 "?8 *?4 /?10 ",
2395 "?4 +0-?11 ",
2396 "?5 +?11 -0",
2397 "logheight/2",
2398 "logheight",
2399 "logwidth"
2401 aPropertyMap [PROP_Equations] <<= createStringSequence( SAL_N_ELEMENTS( aStrings ), aStrings );
2404 Sequence< Sequence < PropertyValue > > aPropSequenceSequence (2);
2406 Sequence< PropertyValue > aPropSequence (4);
2408 aPropSequence [0].Name = "Position";
2409 static const CustomShapeProvider::ParameterPairData aData =
2411 EnhancedCustomShapeParameterType::EQUATION,
2412 EnhancedCustomShapeParameterType::EQUATION,
2413 8, 5
2415 aPropSequence [0].Value = makeAny (createParameterPair(&aData));
2418 aPropSequence [1].Name = "RangeXMaximum";
2419 EnhancedCustomShapeParameter aParameter;
2420 Any aAny ((sal_Int32) 100000);
2421 aParameter.Value = aAny;
2422 aParameter.Type = EnhancedCustomShapeParameterType::NORMAL;
2423 aPropSequence [1].Value = makeAny (aParameter);
2426 aPropSequence [2].Name = "RangeXMinimum";
2427 EnhancedCustomShapeParameter aParameter;
2428 Any aAny ((sal_Int32) 0);
2429 aParameter.Value = aAny;
2430 aParameter.Type = EnhancedCustomShapeParameterType::NORMAL;
2431 aPropSequence [2].Value = makeAny (aParameter);
2434 aPropSequence [3].Name = "RefX";
2435 Any aAny ((sal_Int32) 0);
2436 aPropSequence [3].Value = makeAny (aAny);
2438 aPropSequenceSequence [0] = aPropSequence;
2441 Sequence< PropertyValue > aPropSequence (4);
2443 aPropSequence [0].Name = "Position";
2444 static const CustomShapeProvider::ParameterPairData aData =
2446 EnhancedCustomShapeParameterType::NORMAL,
2447 EnhancedCustomShapeParameterType::EQUATION,
2448 0, 4
2450 aPropSequence [0].Value = makeAny (createParameterPair(&aData));
2453 aPropSequence [1].Name = "RangeYMaximum";
2454 EnhancedCustomShapeParameter aParameter;
2455 Any aAny ((sal_Int32) 1);
2456 aParameter.Value = aAny;
2457 aParameter.Type = EnhancedCustomShapeParameterType::EQUATION;
2458 aPropSequence [1].Value = makeAny (aParameter);
2461 aPropSequence [2].Name = "RangeYMinimum";
2462 EnhancedCustomShapeParameter aParameter;
2463 Any aAny ((sal_Int32) 0);
2464 aParameter.Value = aAny;
2465 aParameter.Type = EnhancedCustomShapeParameterType::NORMAL;
2466 aPropSequence [2].Value = makeAny (aParameter);
2469 aPropSequence [3].Name = "RefY";
2470 Any aAny ((sal_Int32) 1);
2471 aPropSequence [3].Value = makeAny (aAny);
2473 aPropSequenceSequence [1] = aPropSequence;
2475 aPropertyMap [PROP_Handles] <<= aPropSequenceSequence;
2478 aPropertyMap [PROP_MirroredX] <<= Any ((sal_Bool) sal_False);
2481 aPropertyMap [PROP_MirroredY] <<= Any ((sal_Bool) sal_False);
2484 Sequence< PropertyValue > aPropSequence (3);
2486 aPropSequence [0].Name = "Coordinates";
2487 static const CustomShapeProvider::ParameterPairData aData[] = {
2489 EnhancedCustomShapeParameterType::NORMAL,
2490 EnhancedCustomShapeParameterType::EQUATION,
2491 0, 4
2494 EnhancedCustomShapeParameterType::EQUATION,
2495 EnhancedCustomShapeParameterType::NORMAL,
2496 7, 0
2499 EnhancedCustomShapeParameterType::EQUATION,
2500 EnhancedCustomShapeParameterType::EQUATION,
2501 16, 4
2504 EnhancedCustomShapeParameterType::EQUATION,
2505 EnhancedCustomShapeParameterType::EQUATION,
2506 9, 4
2509 EnhancedCustomShapeParameterType::EQUATION,
2510 EnhancedCustomShapeParameterType::EQUATION,
2511 9, 5
2514 EnhancedCustomShapeParameterType::EQUATION,
2515 EnhancedCustomShapeParameterType::EQUATION,
2516 16, 5
2519 EnhancedCustomShapeParameterType::EQUATION,
2520 EnhancedCustomShapeParameterType::EQUATION,
2521 7, 15
2524 EnhancedCustomShapeParameterType::NORMAL,
2525 EnhancedCustomShapeParameterType::EQUATION,
2526 0, 5
2529 EnhancedCustomShapeParameterType::EQUATION,
2530 EnhancedCustomShapeParameterType::EQUATION,
2531 8, 5
2534 EnhancedCustomShapeParameterType::EQUATION,
2535 EnhancedCustomShapeParameterType::EQUATION,
2536 8, 4
2539 aPropSequence [0].Value = makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData), aData));
2542 aPropSequence [1].Name = "Segments";
2543 static const sal_uInt16 nValues[] = {
2544 // Command, Count
2545 1,1,
2546 2,9,
2547 4,0,
2550 aPropSequence [1].Value = makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues ), nValues ));
2553 aPropSequence [2].Name = "TextFrames";
2554 Sequence< EnhancedCustomShapeTextFrame > aTextFrameSeq (1);
2556 EnhancedCustomShapeTextFrame aTextFrame;
2558 static const CustomShapeProvider::ParameterPairData aData =
2560 EnhancedCustomShapeParameterType::EQUATION,
2561 EnhancedCustomShapeParameterType::EQUATION,
2562 8, 12
2564 aTextFrame.TopLeft = createParameterPair(&aData);
2567 static const CustomShapeProvider::ParameterPairData aData =
2569 EnhancedCustomShapeParameterType::EQUATION,
2570 EnhancedCustomShapeParameterType::EQUATION,
2571 9, 13
2573 aTextFrame.BottomRight = createParameterPair(&aData);
2575 aTextFrameSeq [0] = aTextFrame;
2577 aPropSequence [2].Value = makeAny (aTextFrameSeq);
2579 aPropertyMap [PROP_Path] <<= aPropSequence;
2582 awt::Rectangle aRectangle;
2583 aRectangle.X = 0;
2584 aRectangle.Y = 0;
2585 aRectangle.Width = 0;
2586 aRectangle.Height = 0;
2587 aPropertyMap [PROP_ViewBox] <<= aRectangle;
2589 aPropertyMap [ PROP_Type ] <<= OUString("ooxml-upDownArrow");
2591 return aPropertyMap;
2594 class ShapeCirregularSeal2 : public CustomShapeProvider
2596 virtual PropertyMap getProperties()
2598 PropertyMap aPropertyMap;
2601 aPropertyMap [PROP_AdjustmentValues] <<= Sequence< OUString >(0);
2604 static const char *aStrings[] = {
2605 "logwidth*9722/21600",
2606 "logwidth*5372/21600",
2607 "logwidth*11612/21600",
2608 "logwidth*14640/21600",
2609 "logheight*1887/21600",
2610 "logheight*6382/21600",
2611 "logheight*12877/21600",
2612 "logheight*19712/21600",
2613 "logheight*18842/21600",
2614 "logheight*15935/21600",
2615 "logheight*6645/21600",
2616 "logwidth"
2618 aPropertyMap [PROP_Equations] <<= createStringSequence( SAL_N_ELEMENTS( aStrings ), aStrings );
2621 aPropertyMap [PROP_Handles] <<= Sequence< OUString >(0);
2624 aPropertyMap [PROP_MirroredX] <<= Any ((sal_Bool) sal_False);
2627 aPropertyMap [PROP_MirroredY] <<= Any ((sal_Bool) sal_False);
2630 Sequence< PropertyValue > aPropSequence (4);
2632 aPropSequence [0].Name = "Coordinates";
2633 static const CustomShapeProvider::ParameterPairData aData[] = {
2635 EnhancedCustomShapeParameterType::NORMAL,
2636 EnhancedCustomShapeParameterType::NORMAL,
2637 11462, 4342
2640 EnhancedCustomShapeParameterType::NORMAL,
2641 EnhancedCustomShapeParameterType::NORMAL,
2642 14790, 0
2645 EnhancedCustomShapeParameterType::NORMAL,
2646 EnhancedCustomShapeParameterType::NORMAL,
2647 14525, 5777
2650 EnhancedCustomShapeParameterType::NORMAL,
2651 EnhancedCustomShapeParameterType::NORMAL,
2652 18007, 3172
2655 EnhancedCustomShapeParameterType::NORMAL,
2656 EnhancedCustomShapeParameterType::NORMAL,
2657 16380, 6532
2660 EnhancedCustomShapeParameterType::NORMAL,
2661 EnhancedCustomShapeParameterType::NORMAL,
2662 21600, 6645
2665 EnhancedCustomShapeParameterType::NORMAL,
2666 EnhancedCustomShapeParameterType::NORMAL,
2667 16985, 9402
2670 EnhancedCustomShapeParameterType::NORMAL,
2671 EnhancedCustomShapeParameterType::NORMAL,
2672 18270, 11290
2675 EnhancedCustomShapeParameterType::NORMAL,
2676 EnhancedCustomShapeParameterType::NORMAL,
2677 16380, 12310
2680 EnhancedCustomShapeParameterType::NORMAL,
2681 EnhancedCustomShapeParameterType::NORMAL,
2682 18877, 15632
2685 EnhancedCustomShapeParameterType::NORMAL,
2686 EnhancedCustomShapeParameterType::NORMAL,
2687 14640, 14350
2690 EnhancedCustomShapeParameterType::NORMAL,
2691 EnhancedCustomShapeParameterType::NORMAL,
2692 14942, 17370
2695 EnhancedCustomShapeParameterType::NORMAL,
2696 EnhancedCustomShapeParameterType::NORMAL,
2697 12180, 15935
2700 EnhancedCustomShapeParameterType::NORMAL,
2701 EnhancedCustomShapeParameterType::NORMAL,
2702 11612, 18842
2705 EnhancedCustomShapeParameterType::NORMAL,
2706 EnhancedCustomShapeParameterType::NORMAL,
2707 9872, 17370
2710 EnhancedCustomShapeParameterType::NORMAL,
2711 EnhancedCustomShapeParameterType::NORMAL,
2712 8700, 19712
2715 EnhancedCustomShapeParameterType::NORMAL,
2716 EnhancedCustomShapeParameterType::NORMAL,
2717 7527, 18125
2720 EnhancedCustomShapeParameterType::NORMAL,
2721 EnhancedCustomShapeParameterType::NORMAL,
2722 4917, 21600
2725 EnhancedCustomShapeParameterType::NORMAL,
2726 EnhancedCustomShapeParameterType::NORMAL,
2727 4805, 18240
2730 EnhancedCustomShapeParameterType::NORMAL,
2731 EnhancedCustomShapeParameterType::NORMAL,
2732 1285, 17825
2735 EnhancedCustomShapeParameterType::NORMAL,
2736 EnhancedCustomShapeParameterType::NORMAL,
2737 3330, 15370
2740 EnhancedCustomShapeParameterType::NORMAL,
2741 EnhancedCustomShapeParameterType::NORMAL,
2742 0, 12877
2745 EnhancedCustomShapeParameterType::NORMAL,
2746 EnhancedCustomShapeParameterType::NORMAL,
2747 3935, 11592
2750 EnhancedCustomShapeParameterType::NORMAL,
2751 EnhancedCustomShapeParameterType::NORMAL,
2752 1172, 8270
2755 EnhancedCustomShapeParameterType::NORMAL,
2756 EnhancedCustomShapeParameterType::NORMAL,
2757 5372, 7817
2760 EnhancedCustomShapeParameterType::NORMAL,
2761 EnhancedCustomShapeParameterType::NORMAL,
2762 4502, 3625
2765 EnhancedCustomShapeParameterType::NORMAL,
2766 EnhancedCustomShapeParameterType::NORMAL,
2767 8550, 6382
2770 EnhancedCustomShapeParameterType::NORMAL,
2771 EnhancedCustomShapeParameterType::NORMAL,
2772 9722, 1887
2775 aPropSequence [0].Value = makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData), aData));
2778 aPropSequence [1].Name = "Segments";
2779 static const sal_uInt16 nValues[] = {
2780 // Command, Count
2781 1,1,
2782 2,27,
2783 4,0,
2786 aPropSequence [1].Value = makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues ), nValues ));
2789 aPropSequence [2].Name = "SubViewSize";
2790 Sequence< awt::Size > aSizeSequence (1);
2792 awt::Size aSize;
2793 aSize.Width = 21600;
2794 aSize.Height = 21600;
2795 aSizeSequence [0] = aSize;
2797 aPropSequence [2].Value = makeAny (aSizeSequence);
2800 aPropSequence [3].Name = "TextFrames";
2801 Sequence< EnhancedCustomShapeTextFrame > aTextFrameSeq (1);
2803 EnhancedCustomShapeTextFrame aTextFrame;
2805 static const CustomShapeProvider::ParameterPairData aData =
2807 EnhancedCustomShapeParameterType::EQUATION,
2808 EnhancedCustomShapeParameterType::EQUATION,
2809 1, 5
2811 aTextFrame.TopLeft = createParameterPair(&aData);
2814 static const CustomShapeProvider::ParameterPairData aData =
2816 EnhancedCustomShapeParameterType::EQUATION,
2817 EnhancedCustomShapeParameterType::EQUATION,
2818 3, 9
2820 aTextFrame.BottomRight = createParameterPair(&aData);
2822 aTextFrameSeq [0] = aTextFrame;
2824 aPropSequence [3].Value = makeAny (aTextFrameSeq);
2826 aPropertyMap [PROP_Path] <<= aPropSequence;
2829 awt::Rectangle aRectangle;
2830 aRectangle.X = 0;
2831 aRectangle.Y = 0;
2832 aRectangle.Width = 0;
2833 aRectangle.Height = 0;
2834 aPropertyMap [PROP_ViewBox] <<= aRectangle;
2836 aPropertyMap [ PROP_Type ] <<= OUString("ooxml-irregularSeal2");
2838 return aPropertyMap;
2841 class ShapeCmathEqual : public CustomShapeProvider
2843 virtual PropertyMap getProperties()
2845 PropertyMap aPropertyMap;
2848 Sequence< EnhancedCustomShapeAdjustmentValue > aAdjSequence (2);
2850 Any aAny ((sal_Int32) 23520);
2851 aAdjSequence [0].Value = aAny;
2852 aAdjSequence [0].Name = "adj1";
2855 Any aAny ((sal_Int32) 11760);
2856 aAdjSequence [1].Value = aAny;
2857 aAdjSequence [1].Name = "adj2";
2859 aPropertyMap [PROP_AdjustmentValues] <<= aAdjSequence;
2862 static const char *aStrings[] = {
2863 "if(0-$0 ,0,if(36745-$0 ,$0 ,36745))",
2864 "?0 *2/1",
2865 "100000+0-2",
2866 "if(0-$1 ,0,if(?2 -$1 ,$1 ,?2 ))",
2867 "logheight*?0 /100000",
2868 "logheight*?3 /200000",
2869 "logwidth*73490/200000",
2870 "logheight/2",
2871 "?7 +0-?5 ",
2872 "?7 +?5 -0",
2873 "?8 +0-?4 ",
2874 "?9 +?4 -0",
2875 "logwidth/2",
2876 "?12 +0-?6 ",
2877 "?12 +?6 -0",
2878 "(?10 +?8 )/2",
2879 "(?9 +?11 )/2",
2880 "logwidth"
2882 aPropertyMap [PROP_Equations] <<= createStringSequence( SAL_N_ELEMENTS( aStrings ), aStrings );
2885 Sequence< Sequence < PropertyValue > > aPropSequenceSequence (2);
2887 Sequence< PropertyValue > aPropSequence (4);
2889 aPropSequence [0].Name = "Position";
2890 static const CustomShapeProvider::ParameterPairData aData =
2892 EnhancedCustomShapeParameterType::NORMAL,
2893 EnhancedCustomShapeParameterType::EQUATION,
2894 0, 10
2896 aPropSequence [0].Value = makeAny (createParameterPair(&aData));
2899 aPropSequence [1].Name = "RangeYMaximum";
2900 EnhancedCustomShapeParameter aParameter;
2901 Any aAny ((sal_Int32) 36745);
2902 aParameter.Value = aAny;
2903 aParameter.Type = EnhancedCustomShapeParameterType::NORMAL;
2904 aPropSequence [1].Value = makeAny (aParameter);
2907 aPropSequence [2].Name = "RangeYMinimum";
2908 EnhancedCustomShapeParameter aParameter;
2909 Any aAny ((sal_Int32) 0);
2910 aParameter.Value = aAny;
2911 aParameter.Type = EnhancedCustomShapeParameterType::NORMAL;
2912 aPropSequence [2].Value = makeAny (aParameter);
2915 aPropSequence [3].Name = "RefY";
2916 Any aAny ((sal_Int32) 0);
2917 aPropSequence [3].Value = makeAny (aAny);
2919 aPropSequenceSequence [0] = aPropSequence;
2922 Sequence< PropertyValue > aPropSequence (4);
2924 aPropSequence [0].Name = "Position";
2925 static const CustomShapeProvider::ParameterPairData aData =
2927 EnhancedCustomShapeParameterType::EQUATION,
2928 EnhancedCustomShapeParameterType::EQUATION,
2929 17, 8
2931 aPropSequence [0].Value = makeAny (createParameterPair(&aData));
2934 aPropSequence [1].Name = "RangeYMaximum";
2935 EnhancedCustomShapeParameter aParameter;
2936 Any aAny ((sal_Int32) 2);
2937 aParameter.Value = aAny;
2938 aParameter.Type = EnhancedCustomShapeParameterType::EQUATION;
2939 aPropSequence [1].Value = makeAny (aParameter);
2942 aPropSequence [2].Name = "RangeYMinimum";
2943 EnhancedCustomShapeParameter aParameter;
2944 Any aAny ((sal_Int32) 0);
2945 aParameter.Value = aAny;
2946 aParameter.Type = EnhancedCustomShapeParameterType::NORMAL;
2947 aPropSequence [2].Value = makeAny (aParameter);
2950 aPropSequence [3].Name = "RefY";
2951 Any aAny ((sal_Int32) 1);
2952 aPropSequence [3].Value = makeAny (aAny);
2954 aPropSequenceSequence [1] = aPropSequence;
2956 aPropertyMap [PROP_Handles] <<= aPropSequenceSequence;
2959 aPropertyMap [PROP_MirroredX] <<= Any ((sal_Bool) sal_False);
2962 aPropertyMap [PROP_MirroredY] <<= Any ((sal_Bool) sal_False);
2965 Sequence< PropertyValue > aPropSequence (3);
2967 aPropSequence [0].Name = "Coordinates";
2968 static const CustomShapeProvider::ParameterPairData aData[] = {
2970 EnhancedCustomShapeParameterType::EQUATION,
2971 EnhancedCustomShapeParameterType::EQUATION,
2972 13, 10
2975 EnhancedCustomShapeParameterType::EQUATION,
2976 EnhancedCustomShapeParameterType::EQUATION,
2977 14, 10
2980 EnhancedCustomShapeParameterType::EQUATION,
2981 EnhancedCustomShapeParameterType::EQUATION,
2982 14, 8
2985 EnhancedCustomShapeParameterType::EQUATION,
2986 EnhancedCustomShapeParameterType::EQUATION,
2987 13, 8
2990 EnhancedCustomShapeParameterType::EQUATION,
2991 EnhancedCustomShapeParameterType::EQUATION,
2992 13, 9
2995 EnhancedCustomShapeParameterType::EQUATION,
2996 EnhancedCustomShapeParameterType::EQUATION,
2997 14, 9
3000 EnhancedCustomShapeParameterType::EQUATION,
3001 EnhancedCustomShapeParameterType::EQUATION,
3002 14, 11
3005 EnhancedCustomShapeParameterType::EQUATION,
3006 EnhancedCustomShapeParameterType::EQUATION,
3007 13, 11
3010 aPropSequence [0].Value = makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData), aData));
3013 aPropSequence [1].Name = "Segments";
3014 static const sal_uInt16 nValues[] = {
3015 // Command, Count
3016 1,1,
3017 2,3,
3018 4,0,
3019 1,1,
3020 2,3,
3021 4,0,
3024 aPropSequence [1].Value = makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues ), nValues ));
3027 aPropSequence [2].Name = "TextFrames";
3028 Sequence< EnhancedCustomShapeTextFrame > aTextFrameSeq (1);
3030 EnhancedCustomShapeTextFrame aTextFrame;
3032 static const CustomShapeProvider::ParameterPairData aData =
3034 EnhancedCustomShapeParameterType::EQUATION,
3035 EnhancedCustomShapeParameterType::EQUATION,
3036 13, 10
3038 aTextFrame.TopLeft = createParameterPair(&aData);
3041 static const CustomShapeProvider::ParameterPairData aData =
3043 EnhancedCustomShapeParameterType::EQUATION,
3044 EnhancedCustomShapeParameterType::EQUATION,
3045 14, 11
3047 aTextFrame.BottomRight = createParameterPair(&aData);
3049 aTextFrameSeq [0] = aTextFrame;
3051 aPropSequence [2].Value = makeAny (aTextFrameSeq);
3053 aPropertyMap [PROP_Path] <<= aPropSequence;
3056 awt::Rectangle aRectangle;
3057 aRectangle.X = 0;
3058 aRectangle.Y = 0;
3059 aRectangle.Width = 0;
3060 aRectangle.Height = 0;
3061 aPropertyMap [PROP_ViewBox] <<= aRectangle;
3063 aPropertyMap [ PROP_Type ] <<= OUString("ooxml-mathEqual");
3065 return aPropertyMap;
3068 class ShapeCstar12 : public CustomShapeProvider
3070 virtual PropertyMap getProperties()
3072 PropertyMap aPropertyMap;
3075 Sequence< EnhancedCustomShapeAdjustmentValue > aAdjSequence (1);
3077 Any aAny ((sal_Int32) 37500);
3078 aAdjSequence [0].Value = aAny;
3079 aAdjSequence [0].Name = "adj";
3081 aPropertyMap [PROP_AdjustmentValues] <<= aAdjSequence;
3084 static const char *aStrings[] = {
3085 "if(0-$0 ,0,if(50000-$0 ,$0 ,50000))",
3086 "logwidth/2",
3087 "?1 *cos(pi*(1800000)/10800000)",
3088 "logheight/2",
3089 "?3 *sin(pi*(3600000)/10800000)",
3090 "logwidth/2",
3091 "?5 +0-?2 ",
3092 "logwidth*3/4",
3093 "?5 +?2 -0",
3094 "logheight/2",
3095 "?9 +0-?4 ",
3096 "logheight*3/4",
3097 "?9 +?4 -0",
3098 "?1 *?0 /50000",
3099 "?3 *?0 /50000",
3100 "?13 *cos(pi*(900000)/10800000)",
3101 "?13 *cos(pi*(2700000)/10800000)",
3102 "?13 *cos(pi*(4500000)/10800000)",
3103 "?14 *sin(pi*(4500000)/10800000)",
3104 "?14 *sin(pi*(2700000)/10800000)",
3105 "?14 *sin(pi*(900000)/10800000)",
3106 "?5 +0-?15 ",
3107 "?5 +0-?16 ",
3108 "?5 +0-?17 ",
3109 "?5 +?17 -0",
3110 "?5 +?16 -0",
3111 "?5 +?15 -0",
3112 "?9 +0-?18 ",
3113 "?9 +0-?19 ",
3114 "?9 +0-?20 ",
3115 "?9 +?20 -0",
3116 "?9 +?19 -0",
3117 "?9 +?18 -0",
3118 "?9 +0-?14 ",
3119 "logheight/4",
3120 "logwidth",
3121 "logheight",
3122 "logwidth/4"
3124 aPropertyMap [PROP_Equations] <<= createStringSequence( SAL_N_ELEMENTS( aStrings ), aStrings );
3127 Sequence< Sequence < PropertyValue > > aPropSequenceSequence (1);
3129 Sequence< PropertyValue > aPropSequence (4);
3131 aPropSequence [0].Name = "Position";
3132 static const CustomShapeProvider::ParameterPairData aData =
3134 EnhancedCustomShapeParameterType::EQUATION,
3135 EnhancedCustomShapeParameterType::EQUATION,
3136 5, 33
3138 aPropSequence [0].Value = makeAny (createParameterPair(&aData));
3141 aPropSequence [1].Name = "RangeYMaximum";
3142 EnhancedCustomShapeParameter aParameter;
3143 Any aAny ((sal_Int32) 50000);
3144 aParameter.Value = aAny;
3145 aParameter.Type = EnhancedCustomShapeParameterType::NORMAL;
3146 aPropSequence [1].Value = makeAny (aParameter);
3149 aPropSequence [2].Name = "RangeYMinimum";
3150 EnhancedCustomShapeParameter aParameter;
3151 Any aAny ((sal_Int32) 0);
3152 aParameter.Value = aAny;
3153 aParameter.Type = EnhancedCustomShapeParameterType::NORMAL;
3154 aPropSequence [2].Value = makeAny (aParameter);
3157 aPropSequence [3].Name = "RefY";
3158 Any aAny ((sal_Int32) 0);
3159 aPropSequence [3].Value = makeAny (aAny);
3161 aPropSequenceSequence [0] = aPropSequence;
3163 aPropertyMap [PROP_Handles] <<= aPropSequenceSequence;
3166 aPropertyMap [PROP_MirroredX] <<= Any ((sal_Bool) sal_False);
3169 aPropertyMap [PROP_MirroredY] <<= Any ((sal_Bool) sal_False);
3172 Sequence< PropertyValue > aPropSequence (3);
3174 aPropSequence [0].Name = "Coordinates";
3175 static const CustomShapeProvider::ParameterPairData aData[] = {
3177 EnhancedCustomShapeParameterType::NORMAL,
3178 EnhancedCustomShapeParameterType::EQUATION,
3179 0, 9
3182 EnhancedCustomShapeParameterType::EQUATION,
3183 EnhancedCustomShapeParameterType::EQUATION,
3184 21, 29
3187 EnhancedCustomShapeParameterType::EQUATION,
3188 EnhancedCustomShapeParameterType::EQUATION,
3189 6, 34
3192 EnhancedCustomShapeParameterType::EQUATION,
3193 EnhancedCustomShapeParameterType::EQUATION,
3194 22, 28
3197 EnhancedCustomShapeParameterType::EQUATION,
3198 EnhancedCustomShapeParameterType::EQUATION,
3199 37, 10
3202 EnhancedCustomShapeParameterType::EQUATION,
3203 EnhancedCustomShapeParameterType::EQUATION,
3204 23, 27
3207 EnhancedCustomShapeParameterType::EQUATION,
3208 EnhancedCustomShapeParameterType::NORMAL,
3209 5, 0
3212 EnhancedCustomShapeParameterType::EQUATION,
3213 EnhancedCustomShapeParameterType::EQUATION,
3214 24, 27
3217 EnhancedCustomShapeParameterType::EQUATION,
3218 EnhancedCustomShapeParameterType::EQUATION,
3219 7, 10
3222 EnhancedCustomShapeParameterType::EQUATION,
3223 EnhancedCustomShapeParameterType::EQUATION,
3224 25, 28
3227 EnhancedCustomShapeParameterType::EQUATION,
3228 EnhancedCustomShapeParameterType::EQUATION,
3229 8, 34
3232 EnhancedCustomShapeParameterType::EQUATION,
3233 EnhancedCustomShapeParameterType::EQUATION,
3234 26, 29
3237 EnhancedCustomShapeParameterType::EQUATION,
3238 EnhancedCustomShapeParameterType::EQUATION,
3239 35, 9
3242 EnhancedCustomShapeParameterType::EQUATION,
3243 EnhancedCustomShapeParameterType::EQUATION,
3244 26, 30
3247 EnhancedCustomShapeParameterType::EQUATION,
3248 EnhancedCustomShapeParameterType::EQUATION,
3249 8, 11
3252 EnhancedCustomShapeParameterType::EQUATION,
3253 EnhancedCustomShapeParameterType::EQUATION,
3254 25, 31
3257 EnhancedCustomShapeParameterType::EQUATION,
3258 EnhancedCustomShapeParameterType::EQUATION,
3259 7, 12
3262 EnhancedCustomShapeParameterType::EQUATION,
3263 EnhancedCustomShapeParameterType::EQUATION,
3264 24, 32
3267 EnhancedCustomShapeParameterType::EQUATION,
3268 EnhancedCustomShapeParameterType::EQUATION,
3269 5, 36
3272 EnhancedCustomShapeParameterType::EQUATION,
3273 EnhancedCustomShapeParameterType::EQUATION,
3274 23, 32
3277 EnhancedCustomShapeParameterType::EQUATION,
3278 EnhancedCustomShapeParameterType::EQUATION,
3279 37, 12
3282 EnhancedCustomShapeParameterType::EQUATION,
3283 EnhancedCustomShapeParameterType::EQUATION,
3284 22, 31
3287 EnhancedCustomShapeParameterType::EQUATION,
3288 EnhancedCustomShapeParameterType::EQUATION,
3289 6, 11
3292 EnhancedCustomShapeParameterType::EQUATION,
3293 EnhancedCustomShapeParameterType::EQUATION,
3294 21, 30
3297 aPropSequence [0].Value = makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData), aData));
3300 aPropSequence [1].Name = "Segments";
3301 static const sal_uInt16 nValues[] = {
3302 // Command, Count
3303 1,1,
3304 2,23,
3305 4,0,
3308 aPropSequence [1].Value = makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues ), nValues ));
3311 aPropSequence [2].Name = "TextFrames";
3312 Sequence< EnhancedCustomShapeTextFrame > aTextFrameSeq (1);
3314 EnhancedCustomShapeTextFrame aTextFrame;
3316 static const CustomShapeProvider::ParameterPairData aData =
3318 EnhancedCustomShapeParameterType::EQUATION,
3319 EnhancedCustomShapeParameterType::EQUATION,
3320 22, 28
3322 aTextFrame.TopLeft = createParameterPair(&aData);
3325 static const CustomShapeProvider::ParameterPairData aData =
3327 EnhancedCustomShapeParameterType::EQUATION,
3328 EnhancedCustomShapeParameterType::EQUATION,
3329 25, 31
3331 aTextFrame.BottomRight = createParameterPair(&aData);
3333 aTextFrameSeq [0] = aTextFrame;
3335 aPropSequence [2].Value = makeAny (aTextFrameSeq);
3337 aPropertyMap [PROP_Path] <<= aPropSequence;
3340 awt::Rectangle aRectangle;
3341 aRectangle.X = 0;
3342 aRectangle.Y = 0;
3343 aRectangle.Width = 0;
3344 aRectangle.Height = 0;
3345 aPropertyMap [PROP_ViewBox] <<= aRectangle;
3347 aPropertyMap [ PROP_Type ] <<= OUString("ooxml-star12");
3349 return aPropertyMap;
3352 class ShapeCuturnArrow : public CustomShapeProvider
3354 virtual PropertyMap getProperties()
3356 PropertyMap aPropertyMap;
3359 Sequence< EnhancedCustomShapeAdjustmentValue > aAdjSequence (5);
3361 Any aAny ((sal_Int32) 25000);
3362 aAdjSequence [0].Value = aAny;
3363 aAdjSequence [0].Name = "adj1";
3366 Any aAny ((sal_Int32) 25000);
3367 aAdjSequence [1].Value = aAny;
3368 aAdjSequence [1].Name = "adj2";
3371 Any aAny ((sal_Int32) 25000);
3372 aAdjSequence [2].Value = aAny;
3373 aAdjSequence [2].Name = "adj3";
3376 Any aAny ((sal_Int32) 43750);
3377 aAdjSequence [3].Value = aAny;
3378 aAdjSequence [3].Name = "adj4";
3381 Any aAny ((sal_Int32) 75000);
3382 aAdjSequence [4].Value = aAny;
3383 aAdjSequence [4].Name = "adj5";
3385 aPropertyMap [PROP_AdjustmentValues] <<= aAdjSequence;
3388 static const char *aStrings[] = {
3389 "if(0-$1 ,0,if(25000-$1 ,$1 ,25000))",
3390 "?0 *2/1",
3391 "if(0-$0 ,0,if(?1 -$0 ,$0 ,?1 ))",
3392 "min(logwidth,logheight)",
3393 "?2 *?3 /logheight",
3394 "100000+0-?4 ",
3395 "?5 *logheight/?3 ",
3396 "if(0-$2 ,0,if(?6 -$2 ,$2 ,?6 ))",
3397 "?7 +?2 -0",
3398 "?8 *?3 /logheight",
3399 "if(?9 -$4 ,?9 ,if(100000-$4 ,$4 ,100000))",
3400 "?3 *?2 /100000",
3401 "?3 *?0 /100000",
3402 "?11 *1/2",
3403 "?12 +0-?13 ",
3404 "logheight*?10 /100000",
3405 "?3 *?7 /100000",
3406 "?15 +0-?16 ",
3407 "logwidth+0-?14 ",
3408 "?18 *1/2",
3409 "min(?19 ,?17 )",
3410 "?20 *100000/?3 ",
3411 "if(0-$3 ,0,if(?21 -$3 ,$3 ,?21 ))",
3412 "?3 *?22 /100000",
3413 "?23 +0-?11 ",
3414 "max(?24 ,0)",
3415 "?11 +?25 -0",
3416 "logwidth+0-?12 ",
3417 "?27 +0-?12 ",
3418 "?28 +?14 -0",
3419 "?18 +0-?23 ",
3420 "?29 +0-?25 ",
3421 "(?11 +?29 )/2",
3422 "logheight",
3423 "logwidth",
3424 "(10800000)/60000.0",
3425 "(5400000)/60000.0",
3426 "(16200000)/60000.0",
3427 "(5400000)/60000.0",
3428 "(0)/60000.0",
3429 "(-5400000)/60000.0",
3430 "(16200000)/60000.0",
3431 "(-5400000)/60000.0"
3433 aPropertyMap [PROP_Equations] <<= createStringSequence( SAL_N_ELEMENTS( aStrings ), aStrings );
3436 Sequence< Sequence < PropertyValue > > aPropSequenceSequence (5);
3438 Sequence< PropertyValue > aPropSequence (4);
3440 aPropSequence [0].Name = "Position";
3441 static const CustomShapeProvider::ParameterPairData aData =
3443 EnhancedCustomShapeParameterType::EQUATION,
3444 EnhancedCustomShapeParameterType::EQUATION,
3445 11, 33
3447 aPropSequence [0].Value = makeAny (createParameterPair(&aData));
3450 aPropSequence [1].Name = "RangeXMaximum";
3451 EnhancedCustomShapeParameter aParameter;
3452 Any aAny ((sal_Int32) 1);
3453 aParameter.Value = aAny;
3454 aParameter.Type = EnhancedCustomShapeParameterType::EQUATION;
3455 aPropSequence [1].Value = makeAny (aParameter);
3458 aPropSequence [2].Name = "RangeXMinimum";
3459 EnhancedCustomShapeParameter aParameter;
3460 Any aAny ((sal_Int32) 0);
3461 aParameter.Value = aAny;
3462 aParameter.Type = EnhancedCustomShapeParameterType::NORMAL;
3463 aPropSequence [2].Value = makeAny (aParameter);
3466 aPropSequence [3].Name = "RefX";
3467 Any aAny ((sal_Int32) 0);
3468 aPropSequence [3].Value = makeAny (aAny);
3470 aPropSequenceSequence [0] = aPropSequence;
3473 Sequence< PropertyValue > aPropSequence (4);
3475 aPropSequence [0].Name = "Position";
3476 static const CustomShapeProvider::ParameterPairData aData =
3478 EnhancedCustomShapeParameterType::EQUATION,
3479 EnhancedCustomShapeParameterType::EQUATION,
3480 28, 33
3482 aPropSequence [0].Value = makeAny (createParameterPair(&aData));
3485 aPropSequence [1].Name = "RangeXMaximum";
3486 EnhancedCustomShapeParameter aParameter;
3487 Any aAny ((sal_Int32) 25000);
3488 aParameter.Value = aAny;
3489 aParameter.Type = EnhancedCustomShapeParameterType::NORMAL;
3490 aPropSequence [1].Value = makeAny (aParameter);
3493 aPropSequence [2].Name = "RangeXMinimum";
3494 EnhancedCustomShapeParameter aParameter;
3495 Any aAny ((sal_Int32) 0);
3496 aParameter.Value = aAny;
3497 aParameter.Type = EnhancedCustomShapeParameterType::NORMAL;
3498 aPropSequence [2].Value = makeAny (aParameter);
3501 aPropSequence [3].Name = "RefX";
3502 Any aAny ((sal_Int32) 1);
3503 aPropSequence [3].Value = makeAny (aAny);
3505 aPropSequenceSequence [1] = aPropSequence;
3508 Sequence< PropertyValue > aPropSequence (4);
3510 aPropSequence [0].Name = "Position";
3511 static const CustomShapeProvider::ParameterPairData aData =
3513 EnhancedCustomShapeParameterType::EQUATION,
3514 EnhancedCustomShapeParameterType::EQUATION,
3515 28, 17
3517 aPropSequence [0].Value = makeAny (createParameterPair(&aData));
3520 aPropSequence [1].Name = "RangeYMaximum";
3521 EnhancedCustomShapeParameter aParameter;
3522 Any aAny ((sal_Int32) 6);
3523 aParameter.Value = aAny;
3524 aParameter.Type = EnhancedCustomShapeParameterType::EQUATION;
3525 aPropSequence [1].Value = makeAny (aParameter);
3528 aPropSequence [2].Name = "RangeYMinimum";
3529 EnhancedCustomShapeParameter aParameter;
3530 Any aAny ((sal_Int32) 0);
3531 aParameter.Value = aAny;
3532 aParameter.Type = EnhancedCustomShapeParameterType::NORMAL;
3533 aPropSequence [2].Value = makeAny (aParameter);
3536 aPropSequence [3].Name = "RefY";
3537 Any aAny ((sal_Int32) 2);
3538 aPropSequence [3].Value = makeAny (aAny);
3540 aPropSequenceSequence [2] = aPropSequence;
3543 Sequence< PropertyValue > aPropSequence (4);
3545 aPropSequence [0].Name = "Position";
3546 static const CustomShapeProvider::ParameterPairData aData =
3548 EnhancedCustomShapeParameterType::EQUATION,
3549 EnhancedCustomShapeParameterType::NORMAL,
3550 23, 0
3552 aPropSequence [0].Value = makeAny (createParameterPair(&aData));
3555 aPropSequence [1].Name = "RangeXMaximum";
3556 EnhancedCustomShapeParameter aParameter;
3557 Any aAny ((sal_Int32) 21);
3558 aParameter.Value = aAny;
3559 aParameter.Type = EnhancedCustomShapeParameterType::EQUATION;
3560 aPropSequence [1].Value = makeAny (aParameter);
3563 aPropSequence [2].Name = "RangeXMinimum";
3564 EnhancedCustomShapeParameter aParameter;
3565 Any aAny ((sal_Int32) 0);
3566 aParameter.Value = aAny;
3567 aParameter.Type = EnhancedCustomShapeParameterType::NORMAL;
3568 aPropSequence [2].Value = makeAny (aParameter);
3571 aPropSequence [3].Name = "RefX";
3572 Any aAny ((sal_Int32) 3);
3573 aPropSequence [3].Value = makeAny (aAny);
3575 aPropSequenceSequence [3] = aPropSequence;
3578 Sequence< PropertyValue > aPropSequence (4);
3580 aPropSequence [0].Name = "Position";
3581 static const CustomShapeProvider::ParameterPairData aData =
3583 EnhancedCustomShapeParameterType::EQUATION,
3584 EnhancedCustomShapeParameterType::EQUATION,
3585 34, 15
3587 aPropSequence [0].Value = makeAny (createParameterPair(&aData));
3590 aPropSequence [1].Name = "RangeYMaximum";
3591 EnhancedCustomShapeParameter aParameter;
3592 Any aAny ((sal_Int32) 100000);
3593 aParameter.Value = aAny;
3594 aParameter.Type = EnhancedCustomShapeParameterType::NORMAL;
3595 aPropSequence [1].Value = makeAny (aParameter);
3598 aPropSequence [2].Name = "RangeYMinimum";
3599 EnhancedCustomShapeParameter aParameter;
3600 Any aAny ((sal_Int32) 9);
3601 aParameter.Value = aAny;
3602 aParameter.Type = EnhancedCustomShapeParameterType::EQUATION;
3603 aPropSequence [2].Value = makeAny (aParameter);
3606 aPropSequence [3].Name = "RefY";
3607 Any aAny ((sal_Int32) 4);
3608 aPropSequence [3].Value = makeAny (aAny);
3610 aPropSequenceSequence [4] = aPropSequence;
3612 aPropertyMap [PROP_Handles] <<= aPropSequenceSequence;
3615 aPropertyMap [PROP_MirroredX] <<= Any ((sal_Bool) sal_False);
3618 aPropertyMap [PROP_MirroredY] <<= Any ((sal_Bool) sal_False);
3621 Sequence< PropertyValue > aPropSequence (3);
3623 aPropSequence [0].Name = "Coordinates";
3624 static const CustomShapeProvider::ParameterPairData aData[] = {
3626 EnhancedCustomShapeParameterType::NORMAL,
3627 EnhancedCustomShapeParameterType::EQUATION,
3628 0, 33
3631 EnhancedCustomShapeParameterType::NORMAL,
3632 EnhancedCustomShapeParameterType::EQUATION,
3633 0, 23
3636 EnhancedCustomShapeParameterType::EQUATION,
3637 EnhancedCustomShapeParameterType::EQUATION,
3638 23, 23
3641 EnhancedCustomShapeParameterType::EQUATION,
3642 EnhancedCustomShapeParameterType::EQUATION,
3643 35, 36
3646 EnhancedCustomShapeParameterType::EQUATION,
3647 EnhancedCustomShapeParameterType::NORMAL,
3648 30, 0
3651 EnhancedCustomShapeParameterType::EQUATION,
3652 EnhancedCustomShapeParameterType::EQUATION,
3653 23, 23
3656 EnhancedCustomShapeParameterType::EQUATION,
3657 EnhancedCustomShapeParameterType::EQUATION,
3658 37, 38
3661 EnhancedCustomShapeParameterType::EQUATION,
3662 EnhancedCustomShapeParameterType::EQUATION,
3663 18, 17
3666 EnhancedCustomShapeParameterType::EQUATION,
3667 EnhancedCustomShapeParameterType::EQUATION,
3668 34, 17
3671 EnhancedCustomShapeParameterType::EQUATION,
3672 EnhancedCustomShapeParameterType::EQUATION,
3673 27, 15
3676 EnhancedCustomShapeParameterType::EQUATION,
3677 EnhancedCustomShapeParameterType::EQUATION,
3678 28, 17
3681 EnhancedCustomShapeParameterType::EQUATION,
3682 EnhancedCustomShapeParameterType::EQUATION,
3683 29, 17
3686 EnhancedCustomShapeParameterType::EQUATION,
3687 EnhancedCustomShapeParameterType::EQUATION,
3688 29, 26
3691 EnhancedCustomShapeParameterType::EQUATION,
3692 EnhancedCustomShapeParameterType::EQUATION,
3693 25, 25
3696 EnhancedCustomShapeParameterType::EQUATION,
3697 EnhancedCustomShapeParameterType::EQUATION,
3698 39, 40
3701 EnhancedCustomShapeParameterType::EQUATION,
3702 EnhancedCustomShapeParameterType::EQUATION,
3703 26, 11
3706 EnhancedCustomShapeParameterType::EQUATION,
3707 EnhancedCustomShapeParameterType::EQUATION,
3708 25, 25
3711 EnhancedCustomShapeParameterType::EQUATION,
3712 EnhancedCustomShapeParameterType::EQUATION,
3713 41, 42
3716 EnhancedCustomShapeParameterType::EQUATION,
3717 EnhancedCustomShapeParameterType::EQUATION,
3718 11, 33
3721 aPropSequence [0].Value = makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData), aData));
3724 aPropSequence [1].Name = "Segments";
3725 static const sal_uInt16 nValues[] = {
3726 // Command, Count
3727 1,1,
3728 2,1,
3729 17,1,
3730 2,1,
3731 17,1,
3732 2,6,
3733 17,1,
3734 2,1,
3735 17,1,
3736 2,1,
3737 4,0,
3740 aPropSequence [1].Value = makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues ), nValues ));
3743 aPropSequence [2].Name = "TextFrames";
3744 Sequence< EnhancedCustomShapeTextFrame > aTextFrameSeq (1);
3746 EnhancedCustomShapeTextFrame aTextFrame;
3748 static const CustomShapeProvider::ParameterPairData aData =
3750 EnhancedCustomShapeParameterType::NORMAL,
3751 EnhancedCustomShapeParameterType::NORMAL,
3752 0, 0
3754 aTextFrame.TopLeft = createParameterPair(&aData);
3757 static const CustomShapeProvider::ParameterPairData aData =
3759 EnhancedCustomShapeParameterType::EQUATION,
3760 EnhancedCustomShapeParameterType::EQUATION,
3761 34, 33
3763 aTextFrame.BottomRight = createParameterPair(&aData);
3765 aTextFrameSeq [0] = aTextFrame;
3767 aPropSequence [2].Value = makeAny (aTextFrameSeq);
3769 aPropertyMap [PROP_Path] <<= aPropSequence;
3772 awt::Rectangle aRectangle;
3773 aRectangle.X = 0;
3774 aRectangle.Y = 0;
3775 aRectangle.Width = 0;
3776 aRectangle.Height = 0;
3777 aPropertyMap [PROP_ViewBox] <<= aRectangle;
3779 aPropertyMap [ PROP_Type ] <<= OUString("ooxml-uturnArrow");
3781 return aPropertyMap;
3784 class ShapeCsquareTabs : public CustomShapeProvider
3786 virtual PropertyMap getProperties()
3788 PropertyMap aPropertyMap;
3791 aPropertyMap [PROP_AdjustmentValues] <<= Sequence< OUString >(0);
3794 static const char *aStrings[] = {
3795 "sqrt(logwidth*logwidth+logheight*logheight+0*0)",
3796 "1*?0 /20",
3797 "0+logheight-?1 ",
3798 "0+logwidth-?1 ",
3799 "logheight",
3800 "logwidth"
3802 aPropertyMap [PROP_Equations] <<= createStringSequence( SAL_N_ELEMENTS( aStrings ), aStrings );
3805 aPropertyMap [PROP_Handles] <<= Sequence< OUString >(0);
3808 aPropertyMap [PROP_MirroredX] <<= Any ((sal_Bool) sal_False);
3811 aPropertyMap [PROP_MirroredY] <<= Any ((sal_Bool) sal_False);
3814 Sequence< PropertyValue > aPropSequence (3);
3816 aPropSequence [0].Name = "Coordinates";
3817 static const CustomShapeProvider::ParameterPairData aData[] = {
3819 EnhancedCustomShapeParameterType::NORMAL,
3820 EnhancedCustomShapeParameterType::NORMAL,
3821 0, 0
3824 EnhancedCustomShapeParameterType::EQUATION,
3825 EnhancedCustomShapeParameterType::NORMAL,
3826 1, 0
3829 EnhancedCustomShapeParameterType::EQUATION,
3830 EnhancedCustomShapeParameterType::EQUATION,
3831 1, 1
3834 EnhancedCustomShapeParameterType::NORMAL,
3835 EnhancedCustomShapeParameterType::EQUATION,
3836 0, 1
3839 EnhancedCustomShapeParameterType::NORMAL,
3840 EnhancedCustomShapeParameterType::EQUATION,
3841 0, 2
3844 EnhancedCustomShapeParameterType::EQUATION,
3845 EnhancedCustomShapeParameterType::EQUATION,
3846 1, 2
3849 EnhancedCustomShapeParameterType::EQUATION,
3850 EnhancedCustomShapeParameterType::EQUATION,
3851 1, 4
3854 EnhancedCustomShapeParameterType::NORMAL,
3855 EnhancedCustomShapeParameterType::EQUATION,
3856 0, 4
3859 EnhancedCustomShapeParameterType::EQUATION,
3860 EnhancedCustomShapeParameterType::NORMAL,
3861 3, 0
3864 EnhancedCustomShapeParameterType::EQUATION,
3865 EnhancedCustomShapeParameterType::NORMAL,
3866 5, 0
3869 EnhancedCustomShapeParameterType::EQUATION,
3870 EnhancedCustomShapeParameterType::EQUATION,
3871 5, 1
3874 EnhancedCustomShapeParameterType::EQUATION,
3875 EnhancedCustomShapeParameterType::EQUATION,
3876 3, 1
3879 EnhancedCustomShapeParameterType::EQUATION,
3880 EnhancedCustomShapeParameterType::EQUATION,
3881 3, 2
3884 EnhancedCustomShapeParameterType::EQUATION,
3885 EnhancedCustomShapeParameterType::EQUATION,
3886 5, 2
3889 EnhancedCustomShapeParameterType::EQUATION,
3890 EnhancedCustomShapeParameterType::EQUATION,
3891 5, 4
3894 EnhancedCustomShapeParameterType::EQUATION,
3895 EnhancedCustomShapeParameterType::EQUATION,
3896 3, 4
3899 aPropSequence [0].Value = makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData), aData));
3902 aPropSequence [1].Name = "Segments";
3903 static const sal_uInt16 nValues[] = {
3904 // Command, Count
3905 1,1,
3906 2,3,
3907 4,0,
3908 5,0,
3909 1,1,
3910 2,3,
3911 4,0,
3912 5,0,
3913 1,1,
3914 2,3,
3915 4,0,
3916 5,0,
3917 1,1,
3918 2,3,
3919 4,0,
3922 aPropSequence [1].Value = makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues ), nValues ));
3925 aPropSequence [2].Name = "TextFrames";
3926 Sequence< EnhancedCustomShapeTextFrame > aTextFrameSeq (1);
3928 EnhancedCustomShapeTextFrame aTextFrame;
3930 static const CustomShapeProvider::ParameterPairData aData =
3932 EnhancedCustomShapeParameterType::EQUATION,
3933 EnhancedCustomShapeParameterType::EQUATION,
3934 1, 1
3936 aTextFrame.TopLeft = createParameterPair(&aData);
3939 static const CustomShapeProvider::ParameterPairData aData =
3941 EnhancedCustomShapeParameterType::EQUATION,
3942 EnhancedCustomShapeParameterType::EQUATION,
3943 3, 2
3945 aTextFrame.BottomRight = createParameterPair(&aData);
3947 aTextFrameSeq [0] = aTextFrame;
3949 aPropSequence [2].Value = makeAny (aTextFrameSeq);
3951 aPropertyMap [PROP_Path] <<= aPropSequence;
3954 awt::Rectangle aRectangle;
3955 aRectangle.X = 0;
3956 aRectangle.Y = 0;
3957 aRectangle.Width = 0;
3958 aRectangle.Height = 0;
3959 aPropertyMap [PROP_ViewBox] <<= aRectangle;
3961 aPropertyMap [ PROP_Type ] <<= OUString("ooxml-squareTabs");
3963 return aPropertyMap;
3966 class ShapeCleftRightUpArrow : public CustomShapeProvider
3968 virtual PropertyMap getProperties()
3970 PropertyMap aPropertyMap;
3973 Sequence< EnhancedCustomShapeAdjustmentValue > aAdjSequence (3);
3975 Any aAny ((sal_Int32) 25000);
3976 aAdjSequence [0].Value = aAny;
3977 aAdjSequence [0].Name = "adj1";
3980 Any aAny ((sal_Int32) 25000);
3981 aAdjSequence [1].Value = aAny;
3982 aAdjSequence [1].Name = "adj2";
3985 Any aAny ((sal_Int32) 25000);
3986 aAdjSequence [2].Value = aAny;
3987 aAdjSequence [2].Name = "adj3";
3989 aPropertyMap [PROP_AdjustmentValues] <<= aAdjSequence;
3992 static const char *aStrings[] = {
3993 "if(0-$1 ,0,if(50000-$1 ,$1 ,50000))",
3994 "?0 *2/1",
3995 "if(0-$0 ,0,if(?1 -$0 ,$0 ,?1 ))",
3996 "100000+0-?1 ",
3997 "?3 *1/2",
3998 "if(0-$2 ,0,if(?4 -$2 ,$2 ,?4 ))",
3999 "min(logwidth,logheight)",
4000 "?6 *?5 /100000",
4001 "?6 *?0 /100000",
4002 "logwidth/2",
4003 "?9 +0-?8 ",
4004 "?9 +?8 -0",
4005 "?6 *?2 /200000",
4006 "?9 +0-?12 ",
4007 "?9 +?12 -0",
4008 "logwidth+0-?7 ",
4009 "?6 *?0 /50000",
4010 "logheight+0-?16 ",
4011 "logheight+0-?8 ",
4012 "?18 +0-?12 ",
4013 "?18 +?12 -0",
4014 "?12 *?7 /?8 ",
4015 "logwidth+0-?21 ",
4016 "logwidth",
4017 "logheight"
4019 aPropertyMap [PROP_Equations] <<= createStringSequence( SAL_N_ELEMENTS( aStrings ), aStrings );
4022 Sequence< Sequence < PropertyValue > > aPropSequenceSequence (3);
4024 Sequence< PropertyValue > aPropSequence (4);
4026 aPropSequence [0].Name = "Position";
4027 static const CustomShapeProvider::ParameterPairData aData =
4029 EnhancedCustomShapeParameterType::EQUATION,
4030 EnhancedCustomShapeParameterType::EQUATION,
4031 13, 7
4033 aPropSequence [0].Value = makeAny (createParameterPair(&aData));
4036 aPropSequence [1].Name = "RangeXMaximum";
4037 EnhancedCustomShapeParameter aParameter;
4038 Any aAny ((sal_Int32) 1);
4039 aParameter.Value = aAny;
4040 aParameter.Type = EnhancedCustomShapeParameterType::EQUATION;
4041 aPropSequence [1].Value = makeAny (aParameter);
4044 aPropSequence [2].Name = "RangeXMinimum";
4045 EnhancedCustomShapeParameter aParameter;
4046 Any aAny ((sal_Int32) 0);
4047 aParameter.Value = aAny;
4048 aParameter.Type = EnhancedCustomShapeParameterType::NORMAL;
4049 aPropSequence [2].Value = makeAny (aParameter);
4052 aPropSequence [3].Name = "RefX";
4053 Any aAny ((sal_Int32) 0);
4054 aPropSequence [3].Value = makeAny (aAny);
4056 aPropSequenceSequence [0] = aPropSequence;
4059 Sequence< PropertyValue > aPropSequence (4);
4061 aPropSequence [0].Name = "Position";
4062 static const CustomShapeProvider::ParameterPairData aData =
4064 EnhancedCustomShapeParameterType::EQUATION,
4065 EnhancedCustomShapeParameterType::NORMAL,
4066 10, 0
4068 aPropSequence [0].Value = makeAny (createParameterPair(&aData));
4071 aPropSequence [1].Name = "RangeXMaximum";
4072 EnhancedCustomShapeParameter aParameter;
4073 Any aAny ((sal_Int32) 50000);
4074 aParameter.Value = aAny;
4075 aParameter.Type = EnhancedCustomShapeParameterType::NORMAL;
4076 aPropSequence [1].Value = makeAny (aParameter);
4079 aPropSequence [2].Name = "RangeXMinimum";
4080 EnhancedCustomShapeParameter aParameter;
4081 Any aAny ((sal_Int32) 0);
4082 aParameter.Value = aAny;
4083 aParameter.Type = EnhancedCustomShapeParameterType::NORMAL;
4084 aPropSequence [2].Value = makeAny (aParameter);
4087 aPropSequence [3].Name = "RefX";
4088 Any aAny ((sal_Int32) 1);
4089 aPropSequence [3].Value = makeAny (aAny);
4091 aPropSequenceSequence [1] = aPropSequence;
4094 Sequence< PropertyValue > aPropSequence (4);
4096 aPropSequence [0].Name = "Position";
4097 static const CustomShapeProvider::ParameterPairData aData =
4099 EnhancedCustomShapeParameterType::EQUATION,
4100 EnhancedCustomShapeParameterType::EQUATION,
4101 23, 7
4103 aPropSequence [0].Value = makeAny (createParameterPair(&aData));
4106 aPropSequence [1].Name = "RangeYMaximum";
4107 EnhancedCustomShapeParameter aParameter;
4108 Any aAny ((sal_Int32) 4);
4109 aParameter.Value = aAny;
4110 aParameter.Type = EnhancedCustomShapeParameterType::EQUATION;
4111 aPropSequence [1].Value = makeAny (aParameter);
4114 aPropSequence [2].Name = "RangeYMinimum";
4115 EnhancedCustomShapeParameter aParameter;
4116 Any aAny ((sal_Int32) 0);
4117 aParameter.Value = aAny;
4118 aParameter.Type = EnhancedCustomShapeParameterType::NORMAL;
4119 aPropSequence [2].Value = makeAny (aParameter);
4122 aPropSequence [3].Name = "RefY";
4123 Any aAny ((sal_Int32) 2);
4124 aPropSequence [3].Value = makeAny (aAny);
4126 aPropSequenceSequence [2] = aPropSequence;
4128 aPropertyMap [PROP_Handles] <<= aPropSequenceSequence;
4131 aPropertyMap [PROP_MirroredX] <<= Any ((sal_Bool) sal_False);
4134 aPropertyMap [PROP_MirroredY] <<= Any ((sal_Bool) sal_False);
4137 Sequence< PropertyValue > aPropSequence (3);
4139 aPropSequence [0].Name = "Coordinates";
4140 static const CustomShapeProvider::ParameterPairData aData[] = {
4142 EnhancedCustomShapeParameterType::NORMAL,
4143 EnhancedCustomShapeParameterType::EQUATION,
4144 0, 18
4147 EnhancedCustomShapeParameterType::EQUATION,
4148 EnhancedCustomShapeParameterType::EQUATION,
4149 7, 17
4152 EnhancedCustomShapeParameterType::EQUATION,
4153 EnhancedCustomShapeParameterType::EQUATION,
4154 7, 19
4157 EnhancedCustomShapeParameterType::EQUATION,
4158 EnhancedCustomShapeParameterType::EQUATION,
4159 13, 19
4162 EnhancedCustomShapeParameterType::EQUATION,
4163 EnhancedCustomShapeParameterType::EQUATION,
4164 13, 7
4167 EnhancedCustomShapeParameterType::EQUATION,
4168 EnhancedCustomShapeParameterType::EQUATION,
4169 10, 7
4172 EnhancedCustomShapeParameterType::EQUATION,
4173 EnhancedCustomShapeParameterType::NORMAL,
4174 9, 0
4177 EnhancedCustomShapeParameterType::EQUATION,
4178 EnhancedCustomShapeParameterType::EQUATION,
4179 11, 7
4182 EnhancedCustomShapeParameterType::EQUATION,
4183 EnhancedCustomShapeParameterType::EQUATION,
4184 14, 7
4187 EnhancedCustomShapeParameterType::EQUATION,
4188 EnhancedCustomShapeParameterType::EQUATION,
4189 14, 19
4192 EnhancedCustomShapeParameterType::EQUATION,
4193 EnhancedCustomShapeParameterType::EQUATION,
4194 15, 19
4197 EnhancedCustomShapeParameterType::EQUATION,
4198 EnhancedCustomShapeParameterType::EQUATION,
4199 15, 17
4202 EnhancedCustomShapeParameterType::EQUATION,
4203 EnhancedCustomShapeParameterType::EQUATION,
4204 23, 18
4207 EnhancedCustomShapeParameterType::EQUATION,
4208 EnhancedCustomShapeParameterType::EQUATION,
4209 15, 24
4212 EnhancedCustomShapeParameterType::EQUATION,
4213 EnhancedCustomShapeParameterType::EQUATION,
4214 15, 20
4217 EnhancedCustomShapeParameterType::EQUATION,
4218 EnhancedCustomShapeParameterType::EQUATION,
4219 7, 20
4222 EnhancedCustomShapeParameterType::EQUATION,
4223 EnhancedCustomShapeParameterType::EQUATION,
4224 7, 24
4227 aPropSequence [0].Value = makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData), aData));
4230 aPropSequence [1].Name = "Segments";
4231 static const sal_uInt16 nValues[] = {
4232 // Command, Count
4233 1,1,
4234 2,16,
4235 4,0,
4238 aPropSequence [1].Value = makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues ), nValues ));
4241 aPropSequence [2].Name = "TextFrames";
4242 Sequence< EnhancedCustomShapeTextFrame > aTextFrameSeq (1);
4244 EnhancedCustomShapeTextFrame aTextFrame;
4246 static const CustomShapeProvider::ParameterPairData aData =
4248 EnhancedCustomShapeParameterType::EQUATION,
4249 EnhancedCustomShapeParameterType::EQUATION,
4250 21, 19
4252 aTextFrame.TopLeft = createParameterPair(&aData);
4255 static const CustomShapeProvider::ParameterPairData aData =
4257 EnhancedCustomShapeParameterType::EQUATION,
4258 EnhancedCustomShapeParameterType::EQUATION,
4259 22, 20
4261 aTextFrame.BottomRight = createParameterPair(&aData);
4263 aTextFrameSeq [0] = aTextFrame;
4265 aPropSequence [2].Value = makeAny (aTextFrameSeq);
4267 aPropertyMap [PROP_Path] <<= aPropSequence;
4270 awt::Rectangle aRectangle;
4271 aRectangle.X = 0;
4272 aRectangle.Y = 0;
4273 aRectangle.Width = 0;
4274 aRectangle.Height = 0;
4275 aPropertyMap [PROP_ViewBox] <<= aRectangle;
4277 aPropertyMap [ PROP_Type ] <<= OUString("ooxml-leftRightUpArrow");
4279 return aPropertyMap;
4282 class ShapeChomePlate : public CustomShapeProvider
4284 virtual PropertyMap getProperties()
4286 PropertyMap aPropertyMap;
4289 Sequence< EnhancedCustomShapeAdjustmentValue > aAdjSequence (1);
4291 Any aAny ((sal_Int32) 50000);
4292 aAdjSequence [0].Value = aAny;
4293 aAdjSequence [0].Name = "adj";
4295 aPropertyMap [PROP_AdjustmentValues] <<= aAdjSequence;
4298 static const char *aStrings[] = {
4299 "min(logwidth,logheight)",
4300 "100000*logwidth/?0 ",
4301 "if(0-$0 ,0,if(?1 -$0 ,$0 ,?1 ))",
4302 "?0 *?2 /100000",
4303 "logwidth+0-?3 ",
4304 "(?4 +logwidth)/2",
4305 "?4 *1/2",
4306 "logheight/2",
4307 "logheight",
4308 "logwidth"
4310 aPropertyMap [PROP_Equations] <<= createStringSequence( SAL_N_ELEMENTS( aStrings ), aStrings );
4313 Sequence< Sequence < PropertyValue > > aPropSequenceSequence (1);
4315 Sequence< PropertyValue > aPropSequence (4);
4317 aPropSequence [0].Name = "Position";
4318 static const CustomShapeProvider::ParameterPairData aData =
4320 EnhancedCustomShapeParameterType::EQUATION,
4321 EnhancedCustomShapeParameterType::NORMAL,
4322 4, 0
4324 aPropSequence [0].Value = makeAny (createParameterPair(&aData));
4327 aPropSequence [1].Name = "RangeXMaximum";
4328 EnhancedCustomShapeParameter aParameter;
4329 Any aAny ((sal_Int32) 1);
4330 aParameter.Value = aAny;
4331 aParameter.Type = EnhancedCustomShapeParameterType::EQUATION;
4332 aPropSequence [1].Value = makeAny (aParameter);
4335 aPropSequence [2].Name = "RangeXMinimum";
4336 EnhancedCustomShapeParameter aParameter;
4337 Any aAny ((sal_Int32) 0);
4338 aParameter.Value = aAny;
4339 aParameter.Type = EnhancedCustomShapeParameterType::NORMAL;
4340 aPropSequence [2].Value = makeAny (aParameter);
4343 aPropSequence [3].Name = "RefX";
4344 Any aAny ((sal_Int32) 0);
4345 aPropSequence [3].Value = makeAny (aAny);
4347 aPropSequenceSequence [0] = aPropSequence;
4349 aPropertyMap [PROP_Handles] <<= aPropSequenceSequence;
4352 aPropertyMap [PROP_MirroredX] <<= Any ((sal_Bool) sal_False);
4355 aPropertyMap [PROP_MirroredY] <<= Any ((sal_Bool) sal_False);
4358 Sequence< PropertyValue > aPropSequence (3);
4360 aPropSequence [0].Name = "Coordinates";
4361 static const CustomShapeProvider::ParameterPairData aData[] = {
4363 EnhancedCustomShapeParameterType::NORMAL,
4364 EnhancedCustomShapeParameterType::NORMAL,
4365 0, 0
4368 EnhancedCustomShapeParameterType::EQUATION,
4369 EnhancedCustomShapeParameterType::NORMAL,
4370 4, 0
4373 EnhancedCustomShapeParameterType::EQUATION,
4374 EnhancedCustomShapeParameterType::EQUATION,
4375 9, 7
4378 EnhancedCustomShapeParameterType::EQUATION,
4379 EnhancedCustomShapeParameterType::EQUATION,
4380 4, 8
4383 EnhancedCustomShapeParameterType::NORMAL,
4384 EnhancedCustomShapeParameterType::EQUATION,
4385 0, 8
4388 aPropSequence [0].Value = makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData), aData));
4391 aPropSequence [1].Name = "Segments";
4392 static const sal_uInt16 nValues[] = {
4393 // Command, Count
4394 1,1,
4395 2,4,
4396 4,0,
4399 aPropSequence [1].Value = makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues ), nValues ));
4402 aPropSequence [2].Name = "TextFrames";
4403 Sequence< EnhancedCustomShapeTextFrame > aTextFrameSeq (1);
4405 EnhancedCustomShapeTextFrame aTextFrame;
4407 static const CustomShapeProvider::ParameterPairData aData =
4409 EnhancedCustomShapeParameterType::NORMAL,
4410 EnhancedCustomShapeParameterType::NORMAL,
4411 0, 0
4413 aTextFrame.TopLeft = createParameterPair(&aData);
4416 static const CustomShapeProvider::ParameterPairData aData =
4418 EnhancedCustomShapeParameterType::EQUATION,
4419 EnhancedCustomShapeParameterType::EQUATION,
4420 5, 8
4422 aTextFrame.BottomRight = createParameterPair(&aData);
4424 aTextFrameSeq [0] = aTextFrame;
4426 aPropSequence [2].Value = makeAny (aTextFrameSeq);
4428 aPropertyMap [PROP_Path] <<= aPropSequence;
4431 awt::Rectangle aRectangle;
4432 aRectangle.X = 0;
4433 aRectangle.Y = 0;
4434 aRectangle.Width = 0;
4435 aRectangle.Height = 0;
4436 aPropertyMap [PROP_ViewBox] <<= aRectangle;
4438 aPropertyMap [ PROP_Type ] <<= OUString("ooxml-homePlate");
4440 return aPropertyMap;
4443 class ShapeCdodecagon : public CustomShapeProvider
4445 virtual PropertyMap getProperties()
4447 PropertyMap aPropertyMap;
4450 aPropertyMap [PROP_AdjustmentValues] <<= Sequence< OUString >(0);
4453 static const char *aStrings[] = {
4454 "logwidth*2894/21600",
4455 "logwidth*7906/21600",
4456 "logwidth*13694/21600",
4457 "logwidth*18706/21600",
4458 "logheight*2894/21600",
4459 "logheight*7906/21600",
4460 "logheight*13694/21600",
4461 "logheight*18706/21600",
4462 "logwidth",
4463 "logheight"
4465 aPropertyMap [PROP_Equations] <<= createStringSequence( SAL_N_ELEMENTS( aStrings ), aStrings );
4468 aPropertyMap [PROP_Handles] <<= Sequence< OUString >(0);
4471 aPropertyMap [PROP_MirroredX] <<= Any ((sal_Bool) sal_False);
4474 aPropertyMap [PROP_MirroredY] <<= Any ((sal_Bool) sal_False);
4477 Sequence< PropertyValue > aPropSequence (3);
4479 aPropSequence [0].Name = "Coordinates";
4480 static const CustomShapeProvider::ParameterPairData aData[] = {
4482 EnhancedCustomShapeParameterType::NORMAL,
4483 EnhancedCustomShapeParameterType::EQUATION,
4484 0, 5
4487 EnhancedCustomShapeParameterType::EQUATION,
4488 EnhancedCustomShapeParameterType::EQUATION,
4489 0, 4
4492 EnhancedCustomShapeParameterType::EQUATION,
4493 EnhancedCustomShapeParameterType::NORMAL,
4494 1, 0
4497 EnhancedCustomShapeParameterType::EQUATION,
4498 EnhancedCustomShapeParameterType::NORMAL,
4499 2, 0
4502 EnhancedCustomShapeParameterType::EQUATION,
4503 EnhancedCustomShapeParameterType::EQUATION,
4504 3, 4
4507 EnhancedCustomShapeParameterType::EQUATION,
4508 EnhancedCustomShapeParameterType::EQUATION,
4509 8, 5
4512 EnhancedCustomShapeParameterType::EQUATION,
4513 EnhancedCustomShapeParameterType::EQUATION,
4514 8, 6
4517 EnhancedCustomShapeParameterType::EQUATION,
4518 EnhancedCustomShapeParameterType::EQUATION,
4519 3, 7
4522 EnhancedCustomShapeParameterType::EQUATION,
4523 EnhancedCustomShapeParameterType::EQUATION,
4524 2, 9
4527 EnhancedCustomShapeParameterType::EQUATION,
4528 EnhancedCustomShapeParameterType::EQUATION,
4529 1, 9
4532 EnhancedCustomShapeParameterType::EQUATION,
4533 EnhancedCustomShapeParameterType::EQUATION,
4534 0, 7
4537 EnhancedCustomShapeParameterType::NORMAL,
4538 EnhancedCustomShapeParameterType::EQUATION,
4539 0, 6
4542 aPropSequence [0].Value = makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData), aData));
4545 aPropSequence [1].Name = "Segments";
4546 static const sal_uInt16 nValues[] = {
4547 // Command, Count
4548 1,1,
4549 2,11,
4550 4,0,
4553 aPropSequence [1].Value = makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues ), nValues ));
4556 aPropSequence [2].Name = "TextFrames";
4557 Sequence< EnhancedCustomShapeTextFrame > aTextFrameSeq (1);
4559 EnhancedCustomShapeTextFrame aTextFrame;
4561 static const CustomShapeProvider::ParameterPairData aData =
4563 EnhancedCustomShapeParameterType::EQUATION,
4564 EnhancedCustomShapeParameterType::EQUATION,
4565 0, 4
4567 aTextFrame.TopLeft = createParameterPair(&aData);
4570 static const CustomShapeProvider::ParameterPairData aData =
4572 EnhancedCustomShapeParameterType::EQUATION,
4573 EnhancedCustomShapeParameterType::EQUATION,
4574 3, 7
4576 aTextFrame.BottomRight = createParameterPair(&aData);
4578 aTextFrameSeq [0] = aTextFrame;
4580 aPropSequence [2].Value = makeAny (aTextFrameSeq);
4582 aPropertyMap [PROP_Path] <<= aPropSequence;
4585 awt::Rectangle aRectangle;
4586 aRectangle.X = 0;
4587 aRectangle.Y = 0;
4588 aRectangle.Width = 0;
4589 aRectangle.Height = 0;
4590 aPropertyMap [PROP_ViewBox] <<= aRectangle;
4592 aPropertyMap [ PROP_Type ] <<= OUString("ooxml-dodecagon");
4594 return aPropertyMap;
4597 class ShapeCleftArrowCallout : public CustomShapeProvider
4599 virtual PropertyMap getProperties()
4601 PropertyMap aPropertyMap;
4604 Sequence< EnhancedCustomShapeAdjustmentValue > aAdjSequence (4);
4606 Any aAny ((sal_Int32) 25000);
4607 aAdjSequence [0].Value = aAny;
4608 aAdjSequence [0].Name = "adj1";
4611 Any aAny ((sal_Int32) 25000);
4612 aAdjSequence [1].Value = aAny;
4613 aAdjSequence [1].Name = "adj2";
4616 Any aAny ((sal_Int32) 25000);
4617 aAdjSequence [2].Value = aAny;
4618 aAdjSequence [2].Name = "adj3";
4621 Any aAny ((sal_Int32) 64977);
4622 aAdjSequence [3].Value = aAny;
4623 aAdjSequence [3].Name = "adj4";
4625 aPropertyMap [PROP_AdjustmentValues] <<= aAdjSequence;
4628 static const char *aStrings[] = {
4629 "min(logwidth,logheight)",
4630 "50000*logheight/?0 ",
4631 "if(0-$1 ,0,if(?1 -$1 ,$1 ,?1 ))",
4632 "?2 *2/1",
4633 "if(0-$0 ,0,if(?3 -$0 ,$0 ,?3 ))",
4634 "100000*logwidth/?0 ",
4635 "if(0-$2 ,0,if(?5 -$2 ,$2 ,?5 ))",
4636 "?6 *?0 /logwidth",
4637 "100000+0-?7 ",
4638 "if(0-$3 ,0,if(?8 -$3 ,$3 ,?8 ))",
4639 "?0 *?2 /100000",
4640 "?0 *?4 /200000",
4641 "logheight/2",
4642 "?12 +0-?10 ",
4643 "?12 +0-?11 ",
4644 "?12 +?11 -0",
4645 "?12 +?10 -0",
4646 "?0 *?6 /100000",
4647 "logwidth*?9 /100000",
4648 "logwidth+0-?18 ",
4649 "(?19 +logwidth)/2",
4650 "logheight",
4651 "logwidth"
4653 aPropertyMap [PROP_Equations] <<= createStringSequence( SAL_N_ELEMENTS( aStrings ), aStrings );
4656 Sequence< Sequence < PropertyValue > > aPropSequenceSequence (4);
4658 Sequence< PropertyValue > aPropSequence (4);
4660 aPropSequence [0].Name = "Position";
4661 static const CustomShapeProvider::ParameterPairData aData =
4663 EnhancedCustomShapeParameterType::EQUATION,
4664 EnhancedCustomShapeParameterType::EQUATION,
4665 17, 14
4667 aPropSequence [0].Value = makeAny (createParameterPair(&aData));
4670 aPropSequence [1].Name = "RangeYMaximum";
4671 EnhancedCustomShapeParameter aParameter;
4672 Any aAny ((sal_Int32) 3);
4673 aParameter.Value = aAny;
4674 aParameter.Type = EnhancedCustomShapeParameterType::EQUATION;
4675 aPropSequence [1].Value = makeAny (aParameter);
4678 aPropSequence [2].Name = "RangeYMinimum";
4679 EnhancedCustomShapeParameter aParameter;
4680 Any aAny ((sal_Int32) 0);
4681 aParameter.Value = aAny;
4682 aParameter.Type = EnhancedCustomShapeParameterType::NORMAL;
4683 aPropSequence [2].Value = makeAny (aParameter);
4686 aPropSequence [3].Name = "RefY";
4687 Any aAny ((sal_Int32) 0);
4688 aPropSequence [3].Value = makeAny (aAny);
4690 aPropSequenceSequence [0] = aPropSequence;
4693 Sequence< PropertyValue > aPropSequence (4);
4695 aPropSequence [0].Name = "Position";
4696 static const CustomShapeProvider::ParameterPairData aData =
4698 EnhancedCustomShapeParameterType::NORMAL,
4699 EnhancedCustomShapeParameterType::EQUATION,
4700 0, 13
4702 aPropSequence [0].Value = makeAny (createParameterPair(&aData));
4705 aPropSequence [1].Name = "RangeYMaximum";
4706 EnhancedCustomShapeParameter aParameter;
4707 Any aAny ((sal_Int32) 1);
4708 aParameter.Value = aAny;
4709 aParameter.Type = EnhancedCustomShapeParameterType::EQUATION;
4710 aPropSequence [1].Value = makeAny (aParameter);
4713 aPropSequence [2].Name = "RangeYMinimum";
4714 EnhancedCustomShapeParameter aParameter;
4715 Any aAny ((sal_Int32) 0);
4716 aParameter.Value = aAny;
4717 aParameter.Type = EnhancedCustomShapeParameterType::NORMAL;
4718 aPropSequence [2].Value = makeAny (aParameter);
4721 aPropSequence [3].Name = "RefY";
4722 Any aAny ((sal_Int32) 1);
4723 aPropSequence [3].Value = makeAny (aAny);
4725 aPropSequenceSequence [1] = aPropSequence;
4728 Sequence< PropertyValue > aPropSequence (4);
4730 aPropSequence [0].Name = "Position";
4731 static const CustomShapeProvider::ParameterPairData aData =
4733 EnhancedCustomShapeParameterType::EQUATION,
4734 EnhancedCustomShapeParameterType::NORMAL,
4735 17, 0
4737 aPropSequence [0].Value = makeAny (createParameterPair(&aData));
4740 aPropSequence [1].Name = "RangeXMaximum";
4741 EnhancedCustomShapeParameter aParameter;
4742 Any aAny ((sal_Int32) 5);
4743 aParameter.Value = aAny;
4744 aParameter.Type = EnhancedCustomShapeParameterType::EQUATION;
4745 aPropSequence [1].Value = makeAny (aParameter);
4748 aPropSequence [2].Name = "RangeXMinimum";
4749 EnhancedCustomShapeParameter aParameter;
4750 Any aAny ((sal_Int32) 0);
4751 aParameter.Value = aAny;
4752 aParameter.Type = EnhancedCustomShapeParameterType::NORMAL;
4753 aPropSequence [2].Value = makeAny (aParameter);
4756 aPropSequence [3].Name = "RefX";
4757 Any aAny ((sal_Int32) 2);
4758 aPropSequence [3].Value = makeAny (aAny);
4760 aPropSequenceSequence [2] = aPropSequence;
4763 Sequence< PropertyValue > aPropSequence (4);
4765 aPropSequence [0].Name = "Position";
4766 static const CustomShapeProvider::ParameterPairData aData =
4768 EnhancedCustomShapeParameterType::EQUATION,
4769 EnhancedCustomShapeParameterType::EQUATION,
4770 19, 21
4772 aPropSequence [0].Value = makeAny (createParameterPair(&aData));
4775 aPropSequence [1].Name = "RangeXMaximum";
4776 EnhancedCustomShapeParameter aParameter;
4777 Any aAny ((sal_Int32) 8);
4778 aParameter.Value = aAny;
4779 aParameter.Type = EnhancedCustomShapeParameterType::EQUATION;
4780 aPropSequence [1].Value = makeAny (aParameter);
4783 aPropSequence [2].Name = "RangeXMinimum";
4784 EnhancedCustomShapeParameter aParameter;
4785 Any aAny ((sal_Int32) 0);
4786 aParameter.Value = aAny;
4787 aParameter.Type = EnhancedCustomShapeParameterType::NORMAL;
4788 aPropSequence [2].Value = makeAny (aParameter);
4791 aPropSequence [3].Name = "RefX";
4792 Any aAny ((sal_Int32) 3);
4793 aPropSequence [3].Value = makeAny (aAny);
4795 aPropSequenceSequence [3] = aPropSequence;
4797 aPropertyMap [PROP_Handles] <<= aPropSequenceSequence;
4800 aPropertyMap [PROP_MirroredX] <<= Any ((sal_Bool) sal_False);
4803 aPropertyMap [PROP_MirroredY] <<= Any ((sal_Bool) sal_False);
4806 Sequence< PropertyValue > aPropSequence (3);
4808 aPropSequence [0].Name = "Coordinates";
4809 static const CustomShapeProvider::ParameterPairData aData[] = {
4811 EnhancedCustomShapeParameterType::NORMAL,
4812 EnhancedCustomShapeParameterType::EQUATION,
4813 0, 12
4816 EnhancedCustomShapeParameterType::EQUATION,
4817 EnhancedCustomShapeParameterType::EQUATION,
4818 17, 13
4821 EnhancedCustomShapeParameterType::EQUATION,
4822 EnhancedCustomShapeParameterType::EQUATION,
4823 17, 14
4826 EnhancedCustomShapeParameterType::EQUATION,
4827 EnhancedCustomShapeParameterType::EQUATION,
4828 19, 14
4831 EnhancedCustomShapeParameterType::EQUATION,
4832 EnhancedCustomShapeParameterType::NORMAL,
4833 19, 0
4836 EnhancedCustomShapeParameterType::EQUATION,
4837 EnhancedCustomShapeParameterType::NORMAL,
4838 22, 0
4841 EnhancedCustomShapeParameterType::EQUATION,
4842 EnhancedCustomShapeParameterType::EQUATION,
4843 22, 21
4846 EnhancedCustomShapeParameterType::EQUATION,
4847 EnhancedCustomShapeParameterType::EQUATION,
4848 19, 21
4851 EnhancedCustomShapeParameterType::EQUATION,
4852 EnhancedCustomShapeParameterType::EQUATION,
4853 19, 15
4856 EnhancedCustomShapeParameterType::EQUATION,
4857 EnhancedCustomShapeParameterType::EQUATION,
4858 17, 15
4861 EnhancedCustomShapeParameterType::EQUATION,
4862 EnhancedCustomShapeParameterType::EQUATION,
4863 17, 16
4866 aPropSequence [0].Value = makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData), aData));
4869 aPropSequence [1].Name = "Segments";
4870 static const sal_uInt16 nValues[] = {
4871 // Command, Count
4872 1,1,
4873 2,10,
4874 4,0,
4877 aPropSequence [1].Value = makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues ), nValues ));
4880 aPropSequence [2].Name = "TextFrames";
4881 Sequence< EnhancedCustomShapeTextFrame > aTextFrameSeq (1);
4883 EnhancedCustomShapeTextFrame aTextFrame;
4885 static const CustomShapeProvider::ParameterPairData aData =
4887 EnhancedCustomShapeParameterType::EQUATION,
4888 EnhancedCustomShapeParameterType::NORMAL,
4889 19, 0
4891 aTextFrame.TopLeft = createParameterPair(&aData);
4894 static const CustomShapeProvider::ParameterPairData aData =
4896 EnhancedCustomShapeParameterType::EQUATION,
4897 EnhancedCustomShapeParameterType::EQUATION,
4898 22, 21
4900 aTextFrame.BottomRight = createParameterPair(&aData);
4902 aTextFrameSeq [0] = aTextFrame;
4904 aPropSequence [2].Value = makeAny (aTextFrameSeq);
4906 aPropertyMap [PROP_Path] <<= aPropSequence;
4909 awt::Rectangle aRectangle;
4910 aRectangle.X = 0;
4911 aRectangle.Y = 0;
4912 aRectangle.Width = 0;
4913 aRectangle.Height = 0;
4914 aPropertyMap [PROP_ViewBox] <<= aRectangle;
4916 aPropertyMap [ PROP_Type ] <<= OUString("ooxml-leftArrowCallout");
4918 return aPropertyMap;
4921 class ShapeCchord : public CustomShapeProvider
4923 virtual PropertyMap getProperties()
4925 PropertyMap aPropertyMap;
4928 Sequence< EnhancedCustomShapeAdjustmentValue > aAdjSequence (2);
4930 Any aAny ((sal_Int32) 2700000);
4931 aAdjSequence [0].Value = aAny;
4932 aAdjSequence [0].Name = "adj1";
4935 Any aAny ((sal_Int32) 16200000);
4936 aAdjSequence [1].Value = aAny;
4937 aAdjSequence [1].Name = "adj2";
4939 aPropertyMap [PROP_AdjustmentValues] <<= aAdjSequence;
4942 static const char *aStrings[] = {
4943 "if(0-$0 ,0,if(21599999-$0 ,$0 ,21599999))",
4944 "if(0-$1 ,0,if(21599999-$1 ,$1 ,21599999))",
4945 "?1 +0-?0 ",
4946 "?2 +21600000-0",
4947 "if(?2 ,?2 ,?3 )",
4948 "logwidth/2",
4949 "?5 *sin(pi*(?0 )/10800000)",
4950 "logheight/2",
4951 "?7 *cos(pi*(?0 )/10800000)",
4952 "?5 *(cos(atan2(?6 ,?8 )))",
4953 "?7 *(sin(atan2(?6 ,?8 )))",
4954 "?5 *sin(pi*(?1 )/10800000)",
4955 "?7 *cos(pi*(?1 )/10800000)",
4956 "?5 *(cos(atan2(?11 ,?12 )))",
4957 "?7 *(sin(atan2(?11 ,?12 )))",
4958 "logwidth/2",
4959 "?15 +?9 -0",
4960 "logheight/2",
4961 "?17 +?10 -0",
4962 "?15 +?13 -0",
4963 "?17 +?14 -0",
4964 "(?16 +?19 )/2",
4965 "(?18 +?20 )/2",
4966 "?4 *1/2",
4967 "?0 +?23 -10800000",
4968 "?5 *cos(pi*(2700000)/10800000)",
4969 "?7 *sin(pi*(2700000)/10800000)",
4970 "?15 +0-?25 ",
4971 "?15 +?25 -0",
4972 "?17 +0-?26 ",
4973 "?17 +?26 -0",
4974 "(?0 )/60000.0",
4975 "(?4 )/60000.0"
4977 aPropertyMap [PROP_Equations] <<= createStringSequence( SAL_N_ELEMENTS( aStrings ), aStrings );
4980 Sequence< Sequence < PropertyValue > > aPropSequenceSequence (2);
4982 Sequence< PropertyValue > aPropSequence (1);
4984 aPropSequence [0].Name = "Position";
4985 static const CustomShapeProvider::ParameterPairData aData =
4987 EnhancedCustomShapeParameterType::EQUATION,
4988 EnhancedCustomShapeParameterType::EQUATION,
4989 16, 18
4991 aPropSequence [0].Value = makeAny (createParameterPair(&aData));
4993 aPropSequenceSequence [0] = aPropSequence;
4996 Sequence< PropertyValue > aPropSequence (1);
4998 aPropSequence [0].Name = "Position";
4999 static const CustomShapeProvider::ParameterPairData aData =
5001 EnhancedCustomShapeParameterType::EQUATION,
5002 EnhancedCustomShapeParameterType::EQUATION,
5003 19, 20
5005 aPropSequence [0].Value = makeAny (createParameterPair(&aData));
5007 aPropSequenceSequence [1] = aPropSequence;
5009 aPropertyMap [PROP_Handles] <<= aPropSequenceSequence;
5012 aPropertyMap [PROP_MirroredX] <<= Any ((sal_Bool) sal_False);
5015 aPropertyMap [PROP_MirroredY] <<= Any ((sal_Bool) sal_False);
5018 Sequence< PropertyValue > aPropSequence (3);
5020 aPropSequence [0].Name = "Coordinates";
5021 static const CustomShapeProvider::ParameterPairData aData[] = {
5023 EnhancedCustomShapeParameterType::EQUATION,
5024 EnhancedCustomShapeParameterType::EQUATION,
5025 16, 18
5028 EnhancedCustomShapeParameterType::EQUATION,
5029 EnhancedCustomShapeParameterType::EQUATION,
5030 5, 7
5033 EnhancedCustomShapeParameterType::EQUATION,
5034 EnhancedCustomShapeParameterType::EQUATION,
5035 31, 32
5038 aPropSequence [0].Value = makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData), aData));
5041 aPropSequence [1].Name = "Segments";
5042 static const sal_uInt16 nValues[] = {
5043 // Command, Count
5044 1,1,
5045 17,1,
5046 4,0,
5049 aPropSequence [1].Value = makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues ), nValues ));
5052 aPropSequence [2].Name = "TextFrames";
5053 Sequence< EnhancedCustomShapeTextFrame > aTextFrameSeq (1);
5055 EnhancedCustomShapeTextFrame aTextFrame;
5057 static const CustomShapeProvider::ParameterPairData aData =
5059 EnhancedCustomShapeParameterType::EQUATION,
5060 EnhancedCustomShapeParameterType::EQUATION,
5061 27, 29
5063 aTextFrame.TopLeft = createParameterPair(&aData);
5066 static const CustomShapeProvider::ParameterPairData aData =
5068 EnhancedCustomShapeParameterType::EQUATION,
5069 EnhancedCustomShapeParameterType::EQUATION,
5070 28, 30
5072 aTextFrame.BottomRight = createParameterPair(&aData);
5074 aTextFrameSeq [0] = aTextFrame;
5076 aPropSequence [2].Value = makeAny (aTextFrameSeq);
5078 aPropertyMap [PROP_Path] <<= aPropSequence;
5081 awt::Rectangle aRectangle;
5082 aRectangle.X = 0;
5083 aRectangle.Y = 0;
5084 aRectangle.Width = 0;
5085 aRectangle.Height = 0;
5086 aPropertyMap [PROP_ViewBox] <<= aRectangle;
5088 aPropertyMap [ PROP_Type ] <<= OUString("ooxml-chord");
5090 return aPropertyMap;
5093 class ShapeCquadArrowCallout : public CustomShapeProvider
5095 virtual PropertyMap getProperties()
5097 PropertyMap aPropertyMap;
5100 Sequence< EnhancedCustomShapeAdjustmentValue > aAdjSequence (4);
5102 Any aAny ((sal_Int32) 18515);
5103 aAdjSequence [0].Value = aAny;
5104 aAdjSequence [0].Name = "adj1";
5107 Any aAny ((sal_Int32) 18515);
5108 aAdjSequence [1].Value = aAny;
5109 aAdjSequence [1].Name = "adj2";
5112 Any aAny ((sal_Int32) 18515);
5113 aAdjSequence [2].Value = aAny;
5114 aAdjSequence [2].Name = "adj3";
5117 Any aAny ((sal_Int32) 48123);
5118 aAdjSequence [3].Value = aAny;
5119 aAdjSequence [3].Name = "adj4";
5121 aPropertyMap [PROP_AdjustmentValues] <<= aAdjSequence;
5124 static const char *aStrings[] = {
5125 "if(0-$1 ,0,if(50000-$1 ,$1 ,50000))",
5126 "?0 *2/1",
5127 "if(0-$0 ,0,if(?1 -$0 ,$0 ,?1 ))",
5128 "50000+0-?0 ",
5129 "if(0-$2 ,0,if(?3 -$2 ,$2 ,?3 ))",
5130 "?4 *2/1",
5131 "100000+0-?5 ",
5132 "if(?2 -$3 ,?2 ,if(?6 -$3 ,$3 ,?6 ))",
5133 "min(logwidth,logheight)",
5134 "?8 *?0 /100000",
5135 "?8 *?2 /200000",
5136 "?8 *?4 /100000",
5137 "logwidth*?7 /200000",
5138 "logheight*?7 /200000",
5139 "logwidth+0-?11 ",
5140 "logwidth/2",
5141 "?15 +0-?12 ",
5142 "?15 +?12 -0",
5143 "?15 +0-?9 ",
5144 "?15 +?9 -0",
5145 "?15 +0-?10 ",
5146 "?15 +?10 -0",
5147 "logheight+0-?11 ",
5148 "logheight/2",
5149 "?23 +0-?13 ",
5150 "?23 +?13 -0",
5151 "?23 +0-?9 ",
5152 "?23 +?9 -0",
5153 "?23 +0-?10 ",
5154 "?23 +?10 -0",
5155 "logwidth",
5156 "logheight"
5158 aPropertyMap [PROP_Equations] <<= createStringSequence( SAL_N_ELEMENTS( aStrings ), aStrings );
5161 Sequence< Sequence < PropertyValue > > aPropSequenceSequence (4);
5163 Sequence< PropertyValue > aPropSequence (4);
5165 aPropSequence [0].Name = "Position";
5166 static const CustomShapeProvider::ParameterPairData aData =
5168 EnhancedCustomShapeParameterType::EQUATION,
5169 EnhancedCustomShapeParameterType::EQUATION,
5170 20, 11
5172 aPropSequence [0].Value = makeAny (createParameterPair(&aData));
5175 aPropSequence [1].Name = "RangeXMaximum";
5176 EnhancedCustomShapeParameter aParameter;
5177 Any aAny ((sal_Int32) 1);
5178 aParameter.Value = aAny;
5179 aParameter.Type = EnhancedCustomShapeParameterType::EQUATION;
5180 aPropSequence [1].Value = makeAny (aParameter);
5183 aPropSequence [2].Name = "RangeXMinimum";
5184 EnhancedCustomShapeParameter aParameter;
5185 Any aAny ((sal_Int32) 0);
5186 aParameter.Value = aAny;
5187 aParameter.Type = EnhancedCustomShapeParameterType::NORMAL;
5188 aPropSequence [2].Value = makeAny (aParameter);
5191 aPropSequence [3].Name = "RefX";
5192 Any aAny ((sal_Int32) 0);
5193 aPropSequence [3].Value = makeAny (aAny);
5195 aPropSequenceSequence [0] = aPropSequence;
5198 Sequence< PropertyValue > aPropSequence (4);
5200 aPropSequence [0].Name = "Position";
5201 static const CustomShapeProvider::ParameterPairData aData =
5203 EnhancedCustomShapeParameterType::EQUATION,
5204 EnhancedCustomShapeParameterType::NORMAL,
5205 18, 0
5207 aPropSequence [0].Value = makeAny (createParameterPair(&aData));
5210 aPropSequence [1].Name = "RangeXMaximum";
5211 EnhancedCustomShapeParameter aParameter;
5212 Any aAny ((sal_Int32) 50000);
5213 aParameter.Value = aAny;
5214 aParameter.Type = EnhancedCustomShapeParameterType::NORMAL;
5215 aPropSequence [1].Value = makeAny (aParameter);
5218 aPropSequence [2].Name = "RangeXMinimum";
5219 EnhancedCustomShapeParameter aParameter;
5220 Any aAny ((sal_Int32) 0);
5221 aParameter.Value = aAny;
5222 aParameter.Type = EnhancedCustomShapeParameterType::NORMAL;
5223 aPropSequence [2].Value = makeAny (aParameter);
5226 aPropSequence [3].Name = "RefX";
5227 Any aAny ((sal_Int32) 1);
5228 aPropSequence [3].Value = makeAny (aAny);
5230 aPropSequenceSequence [1] = aPropSequence;
5233 Sequence< PropertyValue > aPropSequence (4);
5235 aPropSequence [0].Name = "Position";
5236 static const CustomShapeProvider::ParameterPairData aData =
5238 EnhancedCustomShapeParameterType::EQUATION,
5239 EnhancedCustomShapeParameterType::EQUATION,
5240 30, 11
5242 aPropSequence [0].Value = makeAny (createParameterPair(&aData));
5245 aPropSequence [1].Name = "RangeYMaximum";
5246 EnhancedCustomShapeParameter aParameter;
5247 Any aAny ((sal_Int32) 3);
5248 aParameter.Value = aAny;
5249 aParameter.Type = EnhancedCustomShapeParameterType::EQUATION;
5250 aPropSequence [1].Value = makeAny (aParameter);
5253 aPropSequence [2].Name = "RangeYMinimum";
5254 EnhancedCustomShapeParameter aParameter;
5255 Any aAny ((sal_Int32) 0);
5256 aParameter.Value = aAny;
5257 aParameter.Type = EnhancedCustomShapeParameterType::NORMAL;
5258 aPropSequence [2].Value = makeAny (aParameter);
5261 aPropSequence [3].Name = "RefY";
5262 Any aAny ((sal_Int32) 2);
5263 aPropSequence [3].Value = makeAny (aAny);
5265 aPropSequenceSequence [2] = aPropSequence;
5268 Sequence< PropertyValue > aPropSequence (4);
5270 aPropSequence [0].Name = "Position";
5271 static const CustomShapeProvider::ParameterPairData aData =
5273 EnhancedCustomShapeParameterType::NORMAL,
5274 EnhancedCustomShapeParameterType::EQUATION,
5275 0, 24
5277 aPropSequence [0].Value = makeAny (createParameterPair(&aData));
5280 aPropSequence [1].Name = "RangeYMaximum";
5281 EnhancedCustomShapeParameter aParameter;
5282 Any aAny ((sal_Int32) 6);
5283 aParameter.Value = aAny;
5284 aParameter.Type = EnhancedCustomShapeParameterType::EQUATION;
5285 aPropSequence [1].Value = makeAny (aParameter);
5288 aPropSequence [2].Name = "RangeYMinimum";
5289 EnhancedCustomShapeParameter aParameter;
5290 Any aAny ((sal_Int32) 2);
5291 aParameter.Value = aAny;
5292 aParameter.Type = EnhancedCustomShapeParameterType::EQUATION;
5293 aPropSequence [2].Value = makeAny (aParameter);
5296 aPropSequence [3].Name = "RefY";
5297 Any aAny ((sal_Int32) 3);
5298 aPropSequence [3].Value = makeAny (aAny);
5300 aPropSequenceSequence [3] = aPropSequence;
5302 aPropertyMap [PROP_Handles] <<= aPropSequenceSequence;
5305 aPropertyMap [PROP_MirroredX] <<= Any ((sal_Bool) sal_False);
5308 aPropertyMap [PROP_MirroredY] <<= Any ((sal_Bool) sal_False);
5311 Sequence< PropertyValue > aPropSequence (3);
5313 aPropSequence [0].Name = "Coordinates";
5314 static const CustomShapeProvider::ParameterPairData aData[] = {
5316 EnhancedCustomShapeParameterType::NORMAL,
5317 EnhancedCustomShapeParameterType::EQUATION,
5318 0, 23
5321 EnhancedCustomShapeParameterType::EQUATION,
5322 EnhancedCustomShapeParameterType::EQUATION,
5323 11, 26
5326 EnhancedCustomShapeParameterType::EQUATION,
5327 EnhancedCustomShapeParameterType::EQUATION,
5328 11, 28
5331 EnhancedCustomShapeParameterType::EQUATION,
5332 EnhancedCustomShapeParameterType::EQUATION,
5333 16, 28
5336 EnhancedCustomShapeParameterType::EQUATION,
5337 EnhancedCustomShapeParameterType::EQUATION,
5338 16, 24
5341 EnhancedCustomShapeParameterType::EQUATION,
5342 EnhancedCustomShapeParameterType::EQUATION,
5343 20, 24
5346 EnhancedCustomShapeParameterType::EQUATION,
5347 EnhancedCustomShapeParameterType::EQUATION,
5348 20, 11
5351 EnhancedCustomShapeParameterType::EQUATION,
5352 EnhancedCustomShapeParameterType::EQUATION,
5353 18, 11
5356 EnhancedCustomShapeParameterType::EQUATION,
5357 EnhancedCustomShapeParameterType::NORMAL,
5358 15, 0
5361 EnhancedCustomShapeParameterType::EQUATION,
5362 EnhancedCustomShapeParameterType::EQUATION,
5363 19, 11
5366 EnhancedCustomShapeParameterType::EQUATION,
5367 EnhancedCustomShapeParameterType::EQUATION,
5368 21, 11
5371 EnhancedCustomShapeParameterType::EQUATION,
5372 EnhancedCustomShapeParameterType::EQUATION,
5373 21, 24
5376 EnhancedCustomShapeParameterType::EQUATION,
5377 EnhancedCustomShapeParameterType::EQUATION,
5378 17, 24
5381 EnhancedCustomShapeParameterType::EQUATION,
5382 EnhancedCustomShapeParameterType::EQUATION,
5383 17, 28
5386 EnhancedCustomShapeParameterType::EQUATION,
5387 EnhancedCustomShapeParameterType::EQUATION,
5388 14, 28
5391 EnhancedCustomShapeParameterType::EQUATION,
5392 EnhancedCustomShapeParameterType::EQUATION,
5393 14, 26
5396 EnhancedCustomShapeParameterType::EQUATION,
5397 EnhancedCustomShapeParameterType::EQUATION,
5398 30, 23
5401 EnhancedCustomShapeParameterType::EQUATION,
5402 EnhancedCustomShapeParameterType::EQUATION,
5403 14, 27
5406 EnhancedCustomShapeParameterType::EQUATION,
5407 EnhancedCustomShapeParameterType::EQUATION,
5408 14, 29
5411 EnhancedCustomShapeParameterType::EQUATION,
5412 EnhancedCustomShapeParameterType::EQUATION,
5413 17, 29
5416 EnhancedCustomShapeParameterType::EQUATION,
5417 EnhancedCustomShapeParameterType::EQUATION,
5418 17, 25
5421 EnhancedCustomShapeParameterType::EQUATION,
5422 EnhancedCustomShapeParameterType::EQUATION,
5423 21, 25
5426 EnhancedCustomShapeParameterType::EQUATION,
5427 EnhancedCustomShapeParameterType::EQUATION,
5428 21, 22
5431 EnhancedCustomShapeParameterType::EQUATION,
5432 EnhancedCustomShapeParameterType::EQUATION,
5433 19, 22
5436 EnhancedCustomShapeParameterType::EQUATION,
5437 EnhancedCustomShapeParameterType::EQUATION,
5438 15, 31
5441 EnhancedCustomShapeParameterType::EQUATION,
5442 EnhancedCustomShapeParameterType::EQUATION,
5443 18, 22
5446 EnhancedCustomShapeParameterType::EQUATION,
5447 EnhancedCustomShapeParameterType::EQUATION,
5448 20, 22
5451 EnhancedCustomShapeParameterType::EQUATION,
5452 EnhancedCustomShapeParameterType::EQUATION,
5453 20, 25
5456 EnhancedCustomShapeParameterType::EQUATION,
5457 EnhancedCustomShapeParameterType::EQUATION,
5458 16, 25
5461 EnhancedCustomShapeParameterType::EQUATION,
5462 EnhancedCustomShapeParameterType::EQUATION,
5463 16, 29
5466 EnhancedCustomShapeParameterType::EQUATION,
5467 EnhancedCustomShapeParameterType::EQUATION,
5468 11, 29
5471 EnhancedCustomShapeParameterType::EQUATION,
5472 EnhancedCustomShapeParameterType::EQUATION,
5473 11, 27
5476 aPropSequence [0].Value = makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData), aData));
5479 aPropSequence [1].Name = "Segments";
5480 static const sal_uInt16 nValues[] = {
5481 // Command, Count
5482 1,1,
5483 2,31,
5484 4,0,
5487 aPropSequence [1].Value = makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues ), nValues ));
5490 aPropSequence [2].Name = "TextFrames";
5491 Sequence< EnhancedCustomShapeTextFrame > aTextFrameSeq (1);
5493 EnhancedCustomShapeTextFrame aTextFrame;
5495 static const CustomShapeProvider::ParameterPairData aData =
5497 EnhancedCustomShapeParameterType::EQUATION,
5498 EnhancedCustomShapeParameterType::EQUATION,
5499 16, 24
5501 aTextFrame.TopLeft = createParameterPair(&aData);
5504 static const CustomShapeProvider::ParameterPairData aData =
5506 EnhancedCustomShapeParameterType::EQUATION,
5507 EnhancedCustomShapeParameterType::EQUATION,
5508 17, 25
5510 aTextFrame.BottomRight = createParameterPair(&aData);
5512 aTextFrameSeq [0] = aTextFrame;
5514 aPropSequence [2].Value = makeAny (aTextFrameSeq);
5516 aPropertyMap [PROP_Path] <<= aPropSequence;
5519 awt::Rectangle aRectangle;
5520 aRectangle.X = 0;
5521 aRectangle.Y = 0;
5522 aRectangle.Width = 0;
5523 aRectangle.Height = 0;
5524 aPropertyMap [PROP_ViewBox] <<= aRectangle;
5526 aPropertyMap [ PROP_Type ] <<= OUString("ooxml-quadArrowCallout");
5528 return aPropertyMap;
5531 class ShapeCactionButtonBeginning : public CustomShapeProvider
5533 virtual PropertyMap getProperties()
5535 PropertyMap aPropertyMap;
5538 aPropertyMap [PROP_AdjustmentValues] <<= Sequence< OUString >(0);
5541 static const char *aStrings[] = {
5542 "min(logwidth,logheight)",
5543 "?0 *3/8",
5544 "logheight/2",
5545 "?2 +0-?1 ",
5546 "?2 +?1 -0",
5547 "logwidth/2",
5548 "?5 +0-?1 ",
5549 "?5 +?1 -0",
5550 "?0 *3/4",
5551 "?8 *1/8",
5552 "?8 *1/4",
5553 "?6 +?9 -0",
5554 "?6 +?10 -0",
5555 "logwidth",
5556 "logheight"
5558 aPropertyMap [PROP_Equations] <<= createStringSequence( SAL_N_ELEMENTS( aStrings ), aStrings );
5561 aPropertyMap [PROP_Handles] <<= Sequence< OUString >(0);
5564 aPropertyMap [PROP_MirroredX] <<= Any ((sal_Bool) sal_False);
5567 aPropertyMap [PROP_MirroredY] <<= Any ((sal_Bool) sal_False);
5570 Sequence< PropertyValue > aPropSequence (3);
5572 aPropSequence [0].Name = "Coordinates";
5573 static const CustomShapeProvider::ParameterPairData aData[] = {
5575 EnhancedCustomShapeParameterType::NORMAL,
5576 EnhancedCustomShapeParameterType::NORMAL,
5577 0, 0
5580 EnhancedCustomShapeParameterType::EQUATION,
5581 EnhancedCustomShapeParameterType::NORMAL,
5582 13, 0
5585 EnhancedCustomShapeParameterType::EQUATION,
5586 EnhancedCustomShapeParameterType::EQUATION,
5587 13, 14
5590 EnhancedCustomShapeParameterType::NORMAL,
5591 EnhancedCustomShapeParameterType::EQUATION,
5592 0, 14
5595 EnhancedCustomShapeParameterType::EQUATION,
5596 EnhancedCustomShapeParameterType::EQUATION,
5597 12, 2
5600 EnhancedCustomShapeParameterType::EQUATION,
5601 EnhancedCustomShapeParameterType::EQUATION,
5602 7, 3
5605 EnhancedCustomShapeParameterType::EQUATION,
5606 EnhancedCustomShapeParameterType::EQUATION,
5607 7, 4
5610 EnhancedCustomShapeParameterType::EQUATION,
5611 EnhancedCustomShapeParameterType::EQUATION,
5612 11, 3
5615 EnhancedCustomShapeParameterType::EQUATION,
5616 EnhancedCustomShapeParameterType::EQUATION,
5617 6, 3
5620 EnhancedCustomShapeParameterType::EQUATION,
5621 EnhancedCustomShapeParameterType::EQUATION,
5622 6, 4
5625 EnhancedCustomShapeParameterType::EQUATION,
5626 EnhancedCustomShapeParameterType::EQUATION,
5627 11, 4
5630 EnhancedCustomShapeParameterType::EQUATION,
5631 EnhancedCustomShapeParameterType::EQUATION,
5632 12, 2
5635 EnhancedCustomShapeParameterType::EQUATION,
5636 EnhancedCustomShapeParameterType::EQUATION,
5637 7, 3
5640 EnhancedCustomShapeParameterType::EQUATION,
5641 EnhancedCustomShapeParameterType::EQUATION,
5642 7, 4
5645 EnhancedCustomShapeParameterType::EQUATION,
5646 EnhancedCustomShapeParameterType::EQUATION,
5647 11, 3
5650 EnhancedCustomShapeParameterType::EQUATION,
5651 EnhancedCustomShapeParameterType::EQUATION,
5652 6, 3
5655 EnhancedCustomShapeParameterType::EQUATION,
5656 EnhancedCustomShapeParameterType::EQUATION,
5657 6, 4
5660 EnhancedCustomShapeParameterType::EQUATION,
5661 EnhancedCustomShapeParameterType::EQUATION,
5662 11, 4
5665 EnhancedCustomShapeParameterType::EQUATION,
5666 EnhancedCustomShapeParameterType::EQUATION,
5667 12, 2
5670 EnhancedCustomShapeParameterType::EQUATION,
5671 EnhancedCustomShapeParameterType::EQUATION,
5672 7, 3
5675 EnhancedCustomShapeParameterType::EQUATION,
5676 EnhancedCustomShapeParameterType::EQUATION,
5677 7, 4
5680 EnhancedCustomShapeParameterType::EQUATION,
5681 EnhancedCustomShapeParameterType::EQUATION,
5682 11, 3
5685 EnhancedCustomShapeParameterType::EQUATION,
5686 EnhancedCustomShapeParameterType::EQUATION,
5687 11, 4
5690 EnhancedCustomShapeParameterType::EQUATION,
5691 EnhancedCustomShapeParameterType::EQUATION,
5692 6, 4
5695 EnhancedCustomShapeParameterType::EQUATION,
5696 EnhancedCustomShapeParameterType::EQUATION,
5697 6, 3
5700 EnhancedCustomShapeParameterType::NORMAL,
5701 EnhancedCustomShapeParameterType::NORMAL,
5702 0, 0
5705 EnhancedCustomShapeParameterType::EQUATION,
5706 EnhancedCustomShapeParameterType::NORMAL,
5707 13, 0
5710 EnhancedCustomShapeParameterType::EQUATION,
5711 EnhancedCustomShapeParameterType::EQUATION,
5712 13, 14
5715 EnhancedCustomShapeParameterType::NORMAL,
5716 EnhancedCustomShapeParameterType::EQUATION,
5717 0, 14
5720 aPropSequence [0].Value = makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData), aData));
5723 aPropSequence [1].Name = "Segments";
5724 static const sal_uInt16 nValues[] = {
5725 // Command, Count
5726 1,1,
5727 2,3,
5728 4,0,
5729 1,1,
5730 2,2,
5731 4,0,
5732 1,1,
5733 2,3,
5734 4,0,
5735 7,0,
5736 5,0,
5737 1,1,
5738 2,2,
5739 4,0,
5740 1,1,
5741 2,3,
5742 4,0,
5743 18,0,
5744 7,0,
5745 5,0,
5746 1,1,
5747 2,2,
5748 4,0,
5749 1,1,
5750 2,3,
5751 4,0,
5752 6,0,
5753 5,0,
5754 1,1,
5755 2,3,
5756 4,0,
5757 6,0,
5760 aPropSequence [1].Value = makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues ), nValues ));
5763 aPropSequence [2].Name = "TextFrames";
5764 Sequence< EnhancedCustomShapeTextFrame > aTextFrameSeq (1);
5766 EnhancedCustomShapeTextFrame aTextFrame;
5768 static const CustomShapeProvider::ParameterPairData aData =
5770 EnhancedCustomShapeParameterType::NORMAL,
5771 EnhancedCustomShapeParameterType::NORMAL,
5772 0, 0
5774 aTextFrame.TopLeft = createParameterPair(&aData);
5777 static const CustomShapeProvider::ParameterPairData aData =
5779 EnhancedCustomShapeParameterType::EQUATION,
5780 EnhancedCustomShapeParameterType::EQUATION,
5781 13, 14
5783 aTextFrame.BottomRight = createParameterPair(&aData);
5785 aTextFrameSeq [0] = aTextFrame;
5787 aPropSequence [2].Value = makeAny (aTextFrameSeq);
5789 aPropertyMap [PROP_Path] <<= aPropSequence;
5792 awt::Rectangle aRectangle;
5793 aRectangle.X = 0;
5794 aRectangle.Y = 0;
5795 aRectangle.Width = 0;
5796 aRectangle.Height = 0;
5797 aPropertyMap [PROP_ViewBox] <<= aRectangle;
5799 aPropertyMap [ PROP_Type ] <<= OUString("ooxml-actionButtonBeginning");
5801 return aPropertyMap;
5804 class ShapeCellipse : public CustomShapeProvider
5806 virtual PropertyMap getProperties()
5808 PropertyMap aPropertyMap;
5811 aPropertyMap [PROP_AdjustmentValues] <<= Sequence< OUString >(0);
5814 static const char *aStrings[] = {
5815 "logwidth/2",
5816 "?0 *cos(pi*(2700000)/10800000)",
5817 "logheight/2",
5818 "?2 *sin(pi*(2700000)/10800000)",
5819 "logwidth/2",
5820 "?4 +0-?1 ",
5821 "?4 +?1 -0",
5822 "logheight/2",
5823 "?7 +0-?3 ",
5824 "?7 +?3 -0",
5825 "logheight",
5826 "logwidth",
5827 "(10800000)/60000.0",
5828 "(5400000)/60000.0",
5829 "(16200000)/60000.0",
5830 "(5400000)/60000.0",
5831 "(0)/60000.0",
5832 "(5400000)/60000.0",
5833 "(5400000)/60000.0",
5834 "(5400000)/60000.0"
5836 aPropertyMap [PROP_Equations] <<= createStringSequence( SAL_N_ELEMENTS( aStrings ), aStrings );
5839 aPropertyMap [PROP_Handles] <<= Sequence< OUString >(0);
5842 aPropertyMap [PROP_MirroredX] <<= Any ((sal_Bool) sal_False);
5845 aPropertyMap [PROP_MirroredY] <<= Any ((sal_Bool) sal_False);
5848 Sequence< PropertyValue > aPropSequence (3);
5850 aPropSequence [0].Name = "Coordinates";
5851 static const CustomShapeProvider::ParameterPairData aData[] = {
5853 EnhancedCustomShapeParameterType::NORMAL,
5854 EnhancedCustomShapeParameterType::EQUATION,
5855 0, 7
5858 EnhancedCustomShapeParameterType::EQUATION,
5859 EnhancedCustomShapeParameterType::EQUATION,
5860 0, 2
5863 EnhancedCustomShapeParameterType::EQUATION,
5864 EnhancedCustomShapeParameterType::EQUATION,
5865 12, 13
5868 EnhancedCustomShapeParameterType::EQUATION,
5869 EnhancedCustomShapeParameterType::EQUATION,
5870 0, 2
5873 EnhancedCustomShapeParameterType::EQUATION,
5874 EnhancedCustomShapeParameterType::EQUATION,
5875 14, 15
5878 EnhancedCustomShapeParameterType::EQUATION,
5879 EnhancedCustomShapeParameterType::EQUATION,
5880 0, 2
5883 EnhancedCustomShapeParameterType::EQUATION,
5884 EnhancedCustomShapeParameterType::EQUATION,
5885 16, 17
5888 EnhancedCustomShapeParameterType::EQUATION,
5889 EnhancedCustomShapeParameterType::EQUATION,
5890 0, 2
5893 EnhancedCustomShapeParameterType::EQUATION,
5894 EnhancedCustomShapeParameterType::EQUATION,
5895 18, 19
5898 aPropSequence [0].Value = makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData), aData));
5901 aPropSequence [1].Name = "Segments";
5902 static const sal_uInt16 nValues[] = {
5903 // Command, Count
5904 1,1,
5905 17,4,
5906 4,0,
5909 aPropSequence [1].Value = makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues ), nValues ));
5912 aPropSequence [2].Name = "TextFrames";
5913 Sequence< EnhancedCustomShapeTextFrame > aTextFrameSeq (1);
5915 EnhancedCustomShapeTextFrame aTextFrame;
5917 static const CustomShapeProvider::ParameterPairData aData =
5919 EnhancedCustomShapeParameterType::EQUATION,
5920 EnhancedCustomShapeParameterType::EQUATION,
5921 5, 8
5923 aTextFrame.TopLeft = createParameterPair(&aData);
5926 static const CustomShapeProvider::ParameterPairData aData =
5928 EnhancedCustomShapeParameterType::EQUATION,
5929 EnhancedCustomShapeParameterType::EQUATION,
5930 6, 9
5932 aTextFrame.BottomRight = createParameterPair(&aData);
5934 aTextFrameSeq [0] = aTextFrame;
5936 aPropSequence [2].Value = makeAny (aTextFrameSeq);
5938 aPropertyMap [PROP_Path] <<= aPropSequence;
5941 awt::Rectangle aRectangle;
5942 aRectangle.X = 0;
5943 aRectangle.Y = 0;
5944 aRectangle.Width = 0;
5945 aRectangle.Height = 0;
5946 aPropertyMap [PROP_ViewBox] <<= aRectangle;
5948 aPropertyMap [ PROP_Type ] <<= OUString("ooxml-ellipse");
5950 return aPropertyMap;
5953 class ShapeCactionButtonEnd : public CustomShapeProvider
5955 virtual PropertyMap getProperties()
5957 PropertyMap aPropertyMap;
5960 aPropertyMap [PROP_AdjustmentValues] <<= Sequence< OUString >(0);
5963 static const char *aStrings[] = {
5964 "min(logwidth,logheight)",
5965 "?0 *3/8",
5966 "logheight/2",
5967 "?2 +0-?1 ",
5968 "?2 +?1 -0",
5969 "logwidth/2",
5970 "?5 +0-?1 ",
5971 "?5 +?1 -0",
5972 "?0 *3/4",
5973 "?8 *3/4",
5974 "?8 *7/8",
5975 "?6 +?9 -0",
5976 "?6 +?10 -0",
5977 "logwidth",
5978 "logheight"
5980 aPropertyMap [PROP_Equations] <<= createStringSequence( SAL_N_ELEMENTS( aStrings ), aStrings );
5983 aPropertyMap [PROP_Handles] <<= Sequence< OUString >(0);
5986 aPropertyMap [PROP_MirroredX] <<= Any ((sal_Bool) sal_False);
5989 aPropertyMap [PROP_MirroredY] <<= Any ((sal_Bool) sal_False);
5992 Sequence< PropertyValue > aPropSequence (3);
5994 aPropSequence [0].Name = "Coordinates";
5995 static const CustomShapeProvider::ParameterPairData aData[] = {
5997 EnhancedCustomShapeParameterType::NORMAL,
5998 EnhancedCustomShapeParameterType::NORMAL,
5999 0, 0
6002 EnhancedCustomShapeParameterType::EQUATION,
6003 EnhancedCustomShapeParameterType::NORMAL,
6004 13, 0
6007 EnhancedCustomShapeParameterType::EQUATION,
6008 EnhancedCustomShapeParameterType::EQUATION,
6009 13, 14
6012 EnhancedCustomShapeParameterType::NORMAL,
6013 EnhancedCustomShapeParameterType::EQUATION,
6014 0, 14
6017 EnhancedCustomShapeParameterType::EQUATION,
6018 EnhancedCustomShapeParameterType::EQUATION,
6019 11, 2
6022 EnhancedCustomShapeParameterType::EQUATION,
6023 EnhancedCustomShapeParameterType::EQUATION,
6024 6, 3
6027 EnhancedCustomShapeParameterType::EQUATION,
6028 EnhancedCustomShapeParameterType::EQUATION,
6029 6, 4
6032 EnhancedCustomShapeParameterType::EQUATION,
6033 EnhancedCustomShapeParameterType::EQUATION,
6034 12, 3
6037 EnhancedCustomShapeParameterType::EQUATION,
6038 EnhancedCustomShapeParameterType::EQUATION,
6039 7, 3
6042 EnhancedCustomShapeParameterType::EQUATION,
6043 EnhancedCustomShapeParameterType::EQUATION,
6044 7, 4
6047 EnhancedCustomShapeParameterType::EQUATION,
6048 EnhancedCustomShapeParameterType::EQUATION,
6049 12, 4
6052 EnhancedCustomShapeParameterType::EQUATION,
6053 EnhancedCustomShapeParameterType::EQUATION,
6054 11, 2
6057 EnhancedCustomShapeParameterType::EQUATION,
6058 EnhancedCustomShapeParameterType::EQUATION,
6059 6, 3
6062 EnhancedCustomShapeParameterType::EQUATION,
6063 EnhancedCustomShapeParameterType::EQUATION,
6064 6, 4
6067 EnhancedCustomShapeParameterType::EQUATION,
6068 EnhancedCustomShapeParameterType::EQUATION,
6069 12, 3
6072 EnhancedCustomShapeParameterType::EQUATION,
6073 EnhancedCustomShapeParameterType::EQUATION,
6074 7, 3
6077 EnhancedCustomShapeParameterType::EQUATION,
6078 EnhancedCustomShapeParameterType::EQUATION,
6079 7, 4
6082 EnhancedCustomShapeParameterType::EQUATION,
6083 EnhancedCustomShapeParameterType::EQUATION,
6084 12, 4
6087 EnhancedCustomShapeParameterType::EQUATION,
6088 EnhancedCustomShapeParameterType::EQUATION,
6089 11, 2
6092 EnhancedCustomShapeParameterType::EQUATION,
6093 EnhancedCustomShapeParameterType::EQUATION,
6094 6, 4
6097 EnhancedCustomShapeParameterType::EQUATION,
6098 EnhancedCustomShapeParameterType::EQUATION,
6099 6, 3
6102 EnhancedCustomShapeParameterType::EQUATION,
6103 EnhancedCustomShapeParameterType::EQUATION,
6104 12, 3
6107 EnhancedCustomShapeParameterType::EQUATION,
6108 EnhancedCustomShapeParameterType::EQUATION,
6109 7, 3
6112 EnhancedCustomShapeParameterType::EQUATION,
6113 EnhancedCustomShapeParameterType::EQUATION,
6114 7, 4
6117 EnhancedCustomShapeParameterType::EQUATION,
6118 EnhancedCustomShapeParameterType::EQUATION,
6119 12, 4
6122 EnhancedCustomShapeParameterType::NORMAL,
6123 EnhancedCustomShapeParameterType::NORMAL,
6124 0, 0
6127 EnhancedCustomShapeParameterType::EQUATION,
6128 EnhancedCustomShapeParameterType::NORMAL,
6129 13, 0
6132 EnhancedCustomShapeParameterType::EQUATION,
6133 EnhancedCustomShapeParameterType::EQUATION,
6134 13, 14
6137 EnhancedCustomShapeParameterType::NORMAL,
6138 EnhancedCustomShapeParameterType::EQUATION,
6139 0, 14
6142 aPropSequence [0].Value = makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData), aData));
6145 aPropSequence [1].Name = "Segments";
6146 static const sal_uInt16 nValues[] = {
6147 // Command, Count
6148 1,1,
6149 2,3,
6150 4,0,
6151 1,1,
6152 2,2,
6153 4,0,
6154 1,1,
6155 2,3,
6156 4,0,
6157 7,0,
6158 5,0,
6159 1,1,
6160 2,2,
6161 4,0,
6162 1,1,
6163 2,3,
6164 4,0,
6165 18,0,
6166 7,0,
6167 5,0,
6168 1,1,
6169 2,2,
6170 4,0,
6171 1,1,
6172 2,3,
6173 4,0,
6174 6,0,
6175 5,0,
6176 1,1,
6177 2,3,
6178 4,0,
6179 6,0,
6182 aPropSequence [1].Value = makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues ), nValues ));
6185 aPropSequence [2].Name = "TextFrames";
6186 Sequence< EnhancedCustomShapeTextFrame > aTextFrameSeq (1);
6188 EnhancedCustomShapeTextFrame aTextFrame;
6190 static const CustomShapeProvider::ParameterPairData aData =
6192 EnhancedCustomShapeParameterType::NORMAL,
6193 EnhancedCustomShapeParameterType::NORMAL,
6194 0, 0
6196 aTextFrame.TopLeft = createParameterPair(&aData);
6199 static const CustomShapeProvider::ParameterPairData aData =
6201 EnhancedCustomShapeParameterType::EQUATION,
6202 EnhancedCustomShapeParameterType::EQUATION,
6203 13, 14
6205 aTextFrame.BottomRight = createParameterPair(&aData);
6207 aTextFrameSeq [0] = aTextFrame;
6209 aPropSequence [2].Value = makeAny (aTextFrameSeq);
6211 aPropertyMap [PROP_Path] <<= aPropSequence;
6214 awt::Rectangle aRectangle;
6215 aRectangle.X = 0;
6216 aRectangle.Y = 0;
6217 aRectangle.Width = 0;
6218 aRectangle.Height = 0;
6219 aPropertyMap [PROP_ViewBox] <<= aRectangle;
6221 aPropertyMap [ PROP_Type ] <<= OUString("ooxml-actionButtonEnd");
6223 return aPropertyMap;
6226 class ShapeCarc : public CustomShapeProvider
6228 virtual PropertyMap getProperties()
6230 PropertyMap aPropertyMap;
6233 Sequence< EnhancedCustomShapeAdjustmentValue > aAdjSequence (2);
6235 Any aAny ((sal_Int32) 16200000);
6236 aAdjSequence [0].Value = aAny;
6237 aAdjSequence [0].Name = "adj1";
6240 Any aAny ((sal_Int32) 0);
6241 aAdjSequence [1].Value = aAny;
6242 aAdjSequence [1].Name = "adj2";
6244 aPropertyMap [PROP_AdjustmentValues] <<= aAdjSequence;
6247 static const char *aStrings[] = {
6248 "if(0-$0 ,0,if(21599999-$0 ,$0 ,21599999))",
6249 "if(0-$1 ,0,if(21599999-$1 ,$1 ,21599999))",
6250 "?1 +0-?0 ",
6251 "?2 +21600000-0",
6252 "if(?2 ,?2 ,?3 )",
6253 "logwidth/2",
6254 "?5 *sin(pi*(?0 )/10800000)",
6255 "logheight/2",
6256 "?7 *cos(pi*(?0 )/10800000)",
6257 "?5 *(cos(atan2(?6 ,?8 )))",
6258 "?7 *(sin(atan2(?6 ,?8 )))",
6259 "?5 *sin(pi*(?1 )/10800000)",
6260 "?7 *cos(pi*(?1 )/10800000)",
6261 "?5 *(cos(atan2(?11 ,?12 )))",
6262 "?7 *(sin(atan2(?11 ,?12 )))",
6263 "logwidth/2",
6264 "?15 +?9 -0",
6265 "logheight/2",
6266 "?17 +?10 -0",
6267 "?15 +?13 -0",
6268 "?17 +?14 -0",
6269 "21600000+0-?0 ",
6270 "?4 +0-?21 ",
6271 "max(?16 ,?19 )",
6272 "if(?22 ,logwidth,?23 )",
6273 "5400000+0-?0 ",
6274 "27000000+0-?0 ",
6275 "if(?25 ,?25 ,?26 )",
6276 "?4 +0-?27 ",
6277 "max(?18 ,?20 )",
6278 "if(?28 ,logheight,?29 )",
6279 "10800000+0-?0 ",
6280 "32400000+0-?0 ",
6281 "if(?31 ,?31 ,?32 )",
6282 "?4 +0-?33 ",
6283 "min(?16 ,?19 )",
6284 "if(?34 ,0,?35 )",
6285 "16200000+0-?0 ",
6286 "37800000+0-?0 ",
6287 "if(?37 ,?37 ,?38 )",
6288 "?4 +0-?39 ",
6289 "min(?18 ,?20 )",
6290 "if(?40 ,0,?41 )",
6291 "?0 +0-5400000",
6292 "?1 +5400000-0",
6293 "(?43 +?44 )/2",
6294 "(?0 )/60000.0",
6295 "(?4 )/60000.0",
6296 "(?0 )/60000.0",
6297 "(?4 )/60000.0"
6299 aPropertyMap [PROP_Equations] <<= createStringSequence( SAL_N_ELEMENTS( aStrings ), aStrings );
6302 Sequence< Sequence < PropertyValue > > aPropSequenceSequence (2);
6304 Sequence< PropertyValue > aPropSequence (1);
6306 aPropSequence [0].Name = "Position";
6307 static const CustomShapeProvider::ParameterPairData aData =
6309 EnhancedCustomShapeParameterType::EQUATION,
6310 EnhancedCustomShapeParameterType::EQUATION,
6311 16, 18
6313 aPropSequence [0].Value = makeAny (createParameterPair(&aData));
6315 aPropSequenceSequence [0] = aPropSequence;
6318 Sequence< PropertyValue > aPropSequence (1);
6320 aPropSequence [0].Name = "Position";
6321 static const CustomShapeProvider::ParameterPairData aData =
6323 EnhancedCustomShapeParameterType::EQUATION,
6324 EnhancedCustomShapeParameterType::EQUATION,
6325 19, 20
6327 aPropSequence [0].Value = makeAny (createParameterPair(&aData));
6329 aPropSequenceSequence [1] = aPropSequence;
6331 aPropertyMap [PROP_Handles] <<= aPropSequenceSequence;
6334 aPropertyMap [PROP_MirroredX] <<= Any ((sal_Bool) sal_False);
6337 aPropertyMap [PROP_MirroredY] <<= Any ((sal_Bool) sal_False);
6340 Sequence< PropertyValue > aPropSequence (3);
6342 aPropSequence [0].Name = "Coordinates";
6343 static const CustomShapeProvider::ParameterPairData aData[] = {
6345 EnhancedCustomShapeParameterType::EQUATION,
6346 EnhancedCustomShapeParameterType::EQUATION,
6347 16, 18
6350 EnhancedCustomShapeParameterType::EQUATION,
6351 EnhancedCustomShapeParameterType::EQUATION,
6352 5, 7
6355 EnhancedCustomShapeParameterType::EQUATION,
6356 EnhancedCustomShapeParameterType::EQUATION,
6357 46, 47
6360 EnhancedCustomShapeParameterType::EQUATION,
6361 EnhancedCustomShapeParameterType::EQUATION,
6362 15, 17
6365 EnhancedCustomShapeParameterType::EQUATION,
6366 EnhancedCustomShapeParameterType::EQUATION,
6367 16, 18
6370 EnhancedCustomShapeParameterType::EQUATION,
6371 EnhancedCustomShapeParameterType::EQUATION,
6372 5, 7
6375 EnhancedCustomShapeParameterType::EQUATION,
6376 EnhancedCustomShapeParameterType::EQUATION,
6377 48, 49
6380 aPropSequence [0].Value = makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData), aData));
6383 aPropSequence [1].Name = "Segments";
6384 static const sal_uInt16 nValues[] = {
6385 // Command, Count
6386 1,1,
6387 17,1,
6388 2,1,
6389 4,0,
6390 7,0,
6391 5,0,
6392 1,1,
6393 17,1,
6394 6,0,
6397 aPropSequence [1].Value = makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues ), nValues ));
6400 aPropSequence [2].Name = "TextFrames";
6401 Sequence< EnhancedCustomShapeTextFrame > aTextFrameSeq (1);
6403 EnhancedCustomShapeTextFrame aTextFrame;
6405 static const CustomShapeProvider::ParameterPairData aData =
6407 EnhancedCustomShapeParameterType::EQUATION,
6408 EnhancedCustomShapeParameterType::EQUATION,
6409 36, 42
6411 aTextFrame.TopLeft = createParameterPair(&aData);
6414 static const CustomShapeProvider::ParameterPairData aData =
6416 EnhancedCustomShapeParameterType::EQUATION,
6417 EnhancedCustomShapeParameterType::EQUATION,
6418 24, 30
6420 aTextFrame.BottomRight = createParameterPair(&aData);
6422 aTextFrameSeq [0] = aTextFrame;
6424 aPropSequence [2].Value = makeAny (aTextFrameSeq);
6426 aPropertyMap [PROP_Path] <<= aPropSequence;
6429 awt::Rectangle aRectangle;
6430 aRectangle.X = 0;
6431 aRectangle.Y = 0;
6432 aRectangle.Width = 0;
6433 aRectangle.Height = 0;
6434 aPropertyMap [PROP_ViewBox] <<= aRectangle;
6436 aPropertyMap [ PROP_Type ] <<= OUString("ooxml-arc");
6438 return aPropertyMap;
6441 class ShapeCstar16 : public CustomShapeProvider
6443 virtual PropertyMap getProperties()
6445 PropertyMap aPropertyMap;
6448 Sequence< EnhancedCustomShapeAdjustmentValue > aAdjSequence (1);
6450 Any aAny ((sal_Int32) 37500);
6451 aAdjSequence [0].Value = aAny;
6452 aAdjSequence [0].Name = "adj";
6454 aPropertyMap [PROP_AdjustmentValues] <<= aAdjSequence;
6457 static const char *aStrings[] = {
6458 "if(0-$0 ,0,if(50000-$0 ,$0 ,50000))",
6459 "logwidth/2",
6460 "?1 *92388/100000",
6461 "?1 *70711/100000",
6462 "?1 *38268/100000",
6463 "logheight/2",
6464 "?5 *92388/100000",
6465 "?5 *70711/100000",
6466 "?5 *38268/100000",
6467 "logwidth/2",
6468 "?9 +0-?2 ",
6469 "?9 +0-?3 ",
6470 "?9 +0-?4 ",
6471 "?9 +?4 -0",
6472 "?9 +?3 -0",
6473 "?9 +?2 -0",
6474 "logheight/2",
6475 "?16 +0-?6 ",
6476 "?16 +0-?7 ",
6477 "?16 +0-?8 ",
6478 "?16 +?8 -0",
6479 "?16 +?7 -0",
6480 "?16 +?6 -0",
6481 "?1 *?0 /50000",
6482 "?5 *?0 /50000",
6483 "?23 *98079/100000",
6484 "?23 *83147/100000",
6485 "?23 *55557/100000",
6486 "?23 *19509/100000",
6487 "?24 *98079/100000",
6488 "?24 *83147/100000",
6489 "?24 *55557/100000",
6490 "?24 *19509/100000",
6491 "?9 +0-?25 ",
6492 "?9 +0-?26 ",
6493 "?9 +0-?27 ",
6494 "?9 +0-?28 ",
6495 "?9 +?28 -0",
6496 "?9 +?27 -0",
6497 "?9 +?26 -0",
6498 "?9 +?25 -0",
6499 "?16 +0-?29 ",
6500 "?16 +0-?30 ",
6501 "?16 +0-?31 ",
6502 "?16 +0-?32 ",
6503 "?16 +?32 -0",
6504 "?16 +?31 -0",
6505 "?16 +?30 -0",
6506 "?16 +?29 -0",
6507 "?23 *cos(pi*(2700000)/10800000)",
6508 "?24 *sin(pi*(2700000)/10800000)",
6509 "?9 +0-?49 ",
6510 "?16 +0-?50 ",
6511 "?9 +?49 -0",
6512 "?16 +?50 -0",
6513 "?16 +0-?24 ",
6514 "logwidth",
6515 "logheight"
6517 aPropertyMap [PROP_Equations] <<= createStringSequence( SAL_N_ELEMENTS( aStrings ), aStrings );
6520 Sequence< Sequence < PropertyValue > > aPropSequenceSequence (1);
6522 Sequence< PropertyValue > aPropSequence (4);
6524 aPropSequence [0].Name = "Position";
6525 static const CustomShapeProvider::ParameterPairData aData =
6527 EnhancedCustomShapeParameterType::EQUATION,
6528 EnhancedCustomShapeParameterType::EQUATION,
6529 9, 55
6531 aPropSequence [0].Value = makeAny (createParameterPair(&aData));
6534 aPropSequence [1].Name = "RangeYMaximum";
6535 EnhancedCustomShapeParameter aParameter;
6536 Any aAny ((sal_Int32) 50000);
6537 aParameter.Value = aAny;
6538 aParameter.Type = EnhancedCustomShapeParameterType::NORMAL;
6539 aPropSequence [1].Value = makeAny (aParameter);
6542 aPropSequence [2].Name = "RangeYMinimum";
6543 EnhancedCustomShapeParameter aParameter;
6544 Any aAny ((sal_Int32) 0);
6545 aParameter.Value = aAny;
6546 aParameter.Type = EnhancedCustomShapeParameterType::NORMAL;
6547 aPropSequence [2].Value = makeAny (aParameter);
6550 aPropSequence [3].Name = "RefY";
6551 Any aAny ((sal_Int32) 0);
6552 aPropSequence [3].Value = makeAny (aAny);
6554 aPropSequenceSequence [0] = aPropSequence;
6556 aPropertyMap [PROP_Handles] <<= aPropSequenceSequence;
6559 aPropertyMap [PROP_MirroredX] <<= Any ((sal_Bool) sal_False);
6562 aPropertyMap [PROP_MirroredY] <<= Any ((sal_Bool) sal_False);
6565 Sequence< PropertyValue > aPropSequence (3);
6567 aPropSequence [0].Name = "Coordinates";
6568 static const CustomShapeProvider::ParameterPairData aData[] = {
6570 EnhancedCustomShapeParameterType::NORMAL,
6571 EnhancedCustomShapeParameterType::EQUATION,
6572 0, 16
6575 EnhancedCustomShapeParameterType::EQUATION,
6576 EnhancedCustomShapeParameterType::EQUATION,
6577 33, 44
6580 EnhancedCustomShapeParameterType::EQUATION,
6581 EnhancedCustomShapeParameterType::EQUATION,
6582 10, 19
6585 EnhancedCustomShapeParameterType::EQUATION,
6586 EnhancedCustomShapeParameterType::EQUATION,
6587 34, 43
6590 EnhancedCustomShapeParameterType::EQUATION,
6591 EnhancedCustomShapeParameterType::EQUATION,
6592 11, 18
6595 EnhancedCustomShapeParameterType::EQUATION,
6596 EnhancedCustomShapeParameterType::EQUATION,
6597 35, 42
6600 EnhancedCustomShapeParameterType::EQUATION,
6601 EnhancedCustomShapeParameterType::EQUATION,
6602 12, 17
6605 EnhancedCustomShapeParameterType::EQUATION,
6606 EnhancedCustomShapeParameterType::EQUATION,
6607 36, 41
6610 EnhancedCustomShapeParameterType::EQUATION,
6611 EnhancedCustomShapeParameterType::NORMAL,
6612 9, 0
6615 EnhancedCustomShapeParameterType::EQUATION,
6616 EnhancedCustomShapeParameterType::EQUATION,
6617 37, 41
6620 EnhancedCustomShapeParameterType::EQUATION,
6621 EnhancedCustomShapeParameterType::EQUATION,
6622 13, 17
6625 EnhancedCustomShapeParameterType::EQUATION,
6626 EnhancedCustomShapeParameterType::EQUATION,
6627 38, 42
6630 EnhancedCustomShapeParameterType::EQUATION,
6631 EnhancedCustomShapeParameterType::EQUATION,
6632 14, 18
6635 EnhancedCustomShapeParameterType::EQUATION,
6636 EnhancedCustomShapeParameterType::EQUATION,
6637 39, 43
6640 EnhancedCustomShapeParameterType::EQUATION,
6641 EnhancedCustomShapeParameterType::EQUATION,
6642 15, 19
6645 EnhancedCustomShapeParameterType::EQUATION,
6646 EnhancedCustomShapeParameterType::EQUATION,
6647 40, 44
6650 EnhancedCustomShapeParameterType::EQUATION,
6651 EnhancedCustomShapeParameterType::EQUATION,
6652 56, 16
6655 EnhancedCustomShapeParameterType::EQUATION,
6656 EnhancedCustomShapeParameterType::EQUATION,
6657 40, 45
6660 EnhancedCustomShapeParameterType::EQUATION,
6661 EnhancedCustomShapeParameterType::EQUATION,
6662 15, 20
6665 EnhancedCustomShapeParameterType::EQUATION,
6666 EnhancedCustomShapeParameterType::EQUATION,
6667 39, 46
6670 EnhancedCustomShapeParameterType::EQUATION,
6671 EnhancedCustomShapeParameterType::EQUATION,
6672 14, 21
6675 EnhancedCustomShapeParameterType::EQUATION,
6676 EnhancedCustomShapeParameterType::EQUATION,
6677 38, 47
6680 EnhancedCustomShapeParameterType::EQUATION,
6681 EnhancedCustomShapeParameterType::EQUATION,
6682 13, 22
6685 EnhancedCustomShapeParameterType::EQUATION,
6686 EnhancedCustomShapeParameterType::EQUATION,
6687 37, 48
6690 EnhancedCustomShapeParameterType::EQUATION,
6691 EnhancedCustomShapeParameterType::EQUATION,
6692 9, 57
6695 EnhancedCustomShapeParameterType::EQUATION,
6696 EnhancedCustomShapeParameterType::EQUATION,
6697 36, 48
6700 EnhancedCustomShapeParameterType::EQUATION,
6701 EnhancedCustomShapeParameterType::EQUATION,
6702 12, 22
6705 EnhancedCustomShapeParameterType::EQUATION,
6706 EnhancedCustomShapeParameterType::EQUATION,
6707 35, 47
6710 EnhancedCustomShapeParameterType::EQUATION,
6711 EnhancedCustomShapeParameterType::EQUATION,
6712 11, 21
6715 EnhancedCustomShapeParameterType::EQUATION,
6716 EnhancedCustomShapeParameterType::EQUATION,
6717 34, 46
6720 EnhancedCustomShapeParameterType::EQUATION,
6721 EnhancedCustomShapeParameterType::EQUATION,
6722 10, 20
6725 EnhancedCustomShapeParameterType::EQUATION,
6726 EnhancedCustomShapeParameterType::EQUATION,
6727 33, 45
6730 aPropSequence [0].Value = makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData), aData));
6733 aPropSequence [1].Name = "Segments";
6734 static const sal_uInt16 nValues[] = {
6735 // Command, Count
6736 1,1,
6737 2,31,
6738 4,0,
6741 aPropSequence [1].Value = makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues ), nValues ));
6744 aPropSequence [2].Name = "TextFrames";
6745 Sequence< EnhancedCustomShapeTextFrame > aTextFrameSeq (1);
6747 EnhancedCustomShapeTextFrame aTextFrame;
6749 static const CustomShapeProvider::ParameterPairData aData =
6751 EnhancedCustomShapeParameterType::EQUATION,
6752 EnhancedCustomShapeParameterType::EQUATION,
6753 51, 52
6755 aTextFrame.TopLeft = createParameterPair(&aData);
6758 static const CustomShapeProvider::ParameterPairData aData =
6760 EnhancedCustomShapeParameterType::EQUATION,
6761 EnhancedCustomShapeParameterType::EQUATION,
6762 53, 54
6764 aTextFrame.BottomRight = createParameterPair(&aData);
6766 aTextFrameSeq [0] = aTextFrame;
6768 aPropSequence [2].Value = makeAny (aTextFrameSeq);
6770 aPropertyMap [PROP_Path] <<= aPropSequence;
6773 awt::Rectangle aRectangle;
6774 aRectangle.X = 0;
6775 aRectangle.Y = 0;
6776 aRectangle.Width = 0;
6777 aRectangle.Height = 0;
6778 aPropertyMap [PROP_ViewBox] <<= aRectangle;
6780 aPropertyMap [ PROP_Type ] <<= OUString("ooxml-star16");
6782 return aPropertyMap;
6785 class ShapeCparallelogram : public CustomShapeProvider
6787 virtual PropertyMap getProperties()
6789 PropertyMap aPropertyMap;
6792 Sequence< EnhancedCustomShapeAdjustmentValue > aAdjSequence (1);
6794 Any aAny ((sal_Int32) 25000);
6795 aAdjSequence [0].Value = aAny;
6796 aAdjSequence [0].Name = "adj";
6798 aPropertyMap [PROP_AdjustmentValues] <<= aAdjSequence;
6801 static const char *aStrings[] = {
6802 "min(logwidth,logheight)",
6803 "100000*logwidth/?0 ",
6804 "if(0-$0 ,0,if(?1 -$0 ,$0 ,?1 ))",
6805 "?0 *?2 /200000",
6806 "?0 *?2 /100000",
6807 "logwidth+0-?3 ",
6808 "logwidth+0-?4 ",
6809 "?6 *1/2",
6810 "logwidth+0-?7 ",
6811 "logwidth/2",
6812 "?9 *?2 /?1 ",
6813 "5*?2 /?1 ",
6814 "(1+?11 )/12",
6815 "?12 *logwidth/1",
6816 "?12 *logheight/1",
6817 "logwidth+0-?13 ",
6818 "logheight+0-?14 ",
6819 "logwidth/2",
6820 "logheight*?17 /?4 ",
6821 "if(0-?18 ,0,if(logheight-?18 ,?18 ,logheight))",
6822 "logheight+0-?19 ",
6823 "logheight/2",
6824 "logheight",
6825 "logwidth"
6827 aPropertyMap [PROP_Equations] <<= createStringSequence( SAL_N_ELEMENTS( aStrings ), aStrings );
6830 Sequence< Sequence < PropertyValue > > aPropSequenceSequence (1);
6832 Sequence< PropertyValue > aPropSequence (4);
6834 aPropSequence [0].Name = "Position";
6835 static const CustomShapeProvider::ParameterPairData aData =
6837 EnhancedCustomShapeParameterType::EQUATION,
6838 EnhancedCustomShapeParameterType::NORMAL,
6839 4, 0
6841 aPropSequence [0].Value = makeAny (createParameterPair(&aData));
6844 aPropSequence [1].Name = "RangeXMaximum";
6845 EnhancedCustomShapeParameter aParameter;
6846 Any aAny ((sal_Int32) 1);
6847 aParameter.Value = aAny;
6848 aParameter.Type = EnhancedCustomShapeParameterType::EQUATION;
6849 aPropSequence [1].Value = makeAny (aParameter);
6852 aPropSequence [2].Name = "RangeXMinimum";
6853 EnhancedCustomShapeParameter aParameter;
6854 Any aAny ((sal_Int32) 0);
6855 aParameter.Value = aAny;
6856 aParameter.Type = EnhancedCustomShapeParameterType::NORMAL;
6857 aPropSequence [2].Value = makeAny (aParameter);
6860 aPropSequence [3].Name = "RefX";
6861 Any aAny ((sal_Int32) 0);
6862 aPropSequence [3].Value = makeAny (aAny);
6864 aPropSequenceSequence [0] = aPropSequence;
6866 aPropertyMap [PROP_Handles] <<= aPropSequenceSequence;
6869 aPropertyMap [PROP_MirroredX] <<= Any ((sal_Bool) sal_False);
6872 aPropertyMap [PROP_MirroredY] <<= Any ((sal_Bool) sal_False);
6875 Sequence< PropertyValue > aPropSequence (3);
6877 aPropSequence [0].Name = "Coordinates";
6878 static const CustomShapeProvider::ParameterPairData aData[] = {
6880 EnhancedCustomShapeParameterType::NORMAL,
6881 EnhancedCustomShapeParameterType::EQUATION,
6882 0, 22
6885 EnhancedCustomShapeParameterType::EQUATION,
6886 EnhancedCustomShapeParameterType::NORMAL,
6887 4, 0
6890 EnhancedCustomShapeParameterType::EQUATION,
6891 EnhancedCustomShapeParameterType::NORMAL,
6892 23, 0
6895 EnhancedCustomShapeParameterType::EQUATION,
6896 EnhancedCustomShapeParameterType::EQUATION,
6897 6, 22
6900 aPropSequence [0].Value = makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData), aData));
6903 aPropSequence [1].Name = "Segments";
6904 static const sal_uInt16 nValues[] = {
6905 // Command, Count
6906 1,1,
6907 2,3,
6908 4,0,
6911 aPropSequence [1].Value = makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues ), nValues ));
6914 aPropSequence [2].Name = "TextFrames";
6915 Sequence< EnhancedCustomShapeTextFrame > aTextFrameSeq (1);
6917 EnhancedCustomShapeTextFrame aTextFrame;
6919 static const CustomShapeProvider::ParameterPairData aData =
6921 EnhancedCustomShapeParameterType::EQUATION,
6922 EnhancedCustomShapeParameterType::EQUATION,
6923 13, 14
6925 aTextFrame.TopLeft = createParameterPair(&aData);
6928 static const CustomShapeProvider::ParameterPairData aData =
6930 EnhancedCustomShapeParameterType::EQUATION,
6931 EnhancedCustomShapeParameterType::EQUATION,
6932 15, 16
6934 aTextFrame.BottomRight = createParameterPair(&aData);
6936 aTextFrameSeq [0] = aTextFrame;
6938 aPropSequence [2].Value = makeAny (aTextFrameSeq);
6940 aPropertyMap [PROP_Path] <<= aPropSequence;
6943 awt::Rectangle aRectangle;
6944 aRectangle.X = 0;
6945 aRectangle.Y = 0;
6946 aRectangle.Width = 0;
6947 aRectangle.Height = 0;
6948 aPropertyMap [PROP_ViewBox] <<= aRectangle;
6950 aPropertyMap [ PROP_Type ] <<= OUString("ooxml-parallelogram");
6952 return aPropertyMap;
6955 class ShapeCbevel : public CustomShapeProvider
6957 virtual PropertyMap getProperties()
6959 PropertyMap aPropertyMap;
6962 Sequence< EnhancedCustomShapeAdjustmentValue > aAdjSequence (1);
6964 Any aAny ((sal_Int32) 12500);
6965 aAdjSequence [0].Value = aAny;
6966 aAdjSequence [0].Name = "adj";
6968 aPropertyMap [PROP_AdjustmentValues] <<= aAdjSequence;
6971 static const char *aStrings[] = {
6972 "if(0-$0 ,0,if(50000-$0 ,$0 ,50000))",
6973 "min(logwidth,logheight)",
6974 "?1 *?0 /100000",
6975 "logwidth+0-?2 ",
6976 "logheight+0-?2 ",
6977 "logwidth",
6978 "logheight/2",
6979 "logwidth/2",
6980 "logheight"
6982 aPropertyMap [PROP_Equations] <<= createStringSequence( SAL_N_ELEMENTS( aStrings ), aStrings );
6985 Sequence< Sequence < PropertyValue > > aPropSequenceSequence (1);
6987 Sequence< PropertyValue > aPropSequence (4);
6989 aPropSequence [0].Name = "Position";
6990 static const CustomShapeProvider::ParameterPairData aData =
6992 EnhancedCustomShapeParameterType::EQUATION,
6993 EnhancedCustomShapeParameterType::NORMAL,
6994 2, 0
6996 aPropSequence [0].Value = makeAny (createParameterPair(&aData));
6999 aPropSequence [1].Name = "RangeXMaximum";
7000 EnhancedCustomShapeParameter aParameter;
7001 Any aAny ((sal_Int32) 50000);
7002 aParameter.Value = aAny;
7003 aParameter.Type = EnhancedCustomShapeParameterType::NORMAL;
7004 aPropSequence [1].Value = makeAny (aParameter);
7007 aPropSequence [2].Name = "RangeXMinimum";
7008 EnhancedCustomShapeParameter aParameter;
7009 Any aAny ((sal_Int32) 0);
7010 aParameter.Value = aAny;
7011 aParameter.Type = EnhancedCustomShapeParameterType::NORMAL;
7012 aPropSequence [2].Value = makeAny (aParameter);
7015 aPropSequence [3].Name = "RefX";
7016 Any aAny ((sal_Int32) 0);
7017 aPropSequence [3].Value = makeAny (aAny);
7019 aPropSequenceSequence [0] = aPropSequence;
7021 aPropertyMap [PROP_Handles] <<= aPropSequenceSequence;
7024 aPropertyMap [PROP_MirroredX] <<= Any ((sal_Bool) sal_False);
7027 aPropertyMap [PROP_MirroredY] <<= Any ((sal_Bool) sal_False);
7030 Sequence< PropertyValue > aPropSequence (3);
7032 aPropSequence [0].Name = "Coordinates";
7033 static const CustomShapeProvider::ParameterPairData aData[] = {
7035 EnhancedCustomShapeParameterType::EQUATION,
7036 EnhancedCustomShapeParameterType::EQUATION,
7037 2, 2
7040 EnhancedCustomShapeParameterType::EQUATION,
7041 EnhancedCustomShapeParameterType::EQUATION,
7042 3, 2
7045 EnhancedCustomShapeParameterType::EQUATION,
7046 EnhancedCustomShapeParameterType::EQUATION,
7047 3, 4
7050 EnhancedCustomShapeParameterType::EQUATION,
7051 EnhancedCustomShapeParameterType::EQUATION,
7052 2, 4
7055 EnhancedCustomShapeParameterType::NORMAL,
7056 EnhancedCustomShapeParameterType::NORMAL,
7057 0, 0
7060 EnhancedCustomShapeParameterType::EQUATION,
7061 EnhancedCustomShapeParameterType::NORMAL,
7062 5, 0
7065 EnhancedCustomShapeParameterType::EQUATION,
7066 EnhancedCustomShapeParameterType::EQUATION,
7067 3, 2
7070 EnhancedCustomShapeParameterType::EQUATION,
7071 EnhancedCustomShapeParameterType::EQUATION,
7072 2, 2
7075 EnhancedCustomShapeParameterType::NORMAL,
7076 EnhancedCustomShapeParameterType::EQUATION,
7077 0, 8
7080 EnhancedCustomShapeParameterType::EQUATION,
7081 EnhancedCustomShapeParameterType::EQUATION,
7082 2, 4
7085 EnhancedCustomShapeParameterType::EQUATION,
7086 EnhancedCustomShapeParameterType::EQUATION,
7087 3, 4
7090 EnhancedCustomShapeParameterType::EQUATION,
7091 EnhancedCustomShapeParameterType::EQUATION,
7092 5, 8
7095 EnhancedCustomShapeParameterType::NORMAL,
7096 EnhancedCustomShapeParameterType::NORMAL,
7097 0, 0
7100 EnhancedCustomShapeParameterType::EQUATION,
7101 EnhancedCustomShapeParameterType::EQUATION,
7102 2, 2
7105 EnhancedCustomShapeParameterType::EQUATION,
7106 EnhancedCustomShapeParameterType::EQUATION,
7107 2, 4
7110 EnhancedCustomShapeParameterType::NORMAL,
7111 EnhancedCustomShapeParameterType::EQUATION,
7112 0, 8
7115 EnhancedCustomShapeParameterType::EQUATION,
7116 EnhancedCustomShapeParameterType::NORMAL,
7117 5, 0
7120 EnhancedCustomShapeParameterType::EQUATION,
7121 EnhancedCustomShapeParameterType::EQUATION,
7122 5, 8
7125 EnhancedCustomShapeParameterType::EQUATION,
7126 EnhancedCustomShapeParameterType::EQUATION,
7127 3, 4
7130 EnhancedCustomShapeParameterType::EQUATION,
7131 EnhancedCustomShapeParameterType::EQUATION,
7132 3, 2
7135 EnhancedCustomShapeParameterType::NORMAL,
7136 EnhancedCustomShapeParameterType::NORMAL,
7137 0, 0
7140 EnhancedCustomShapeParameterType::EQUATION,
7141 EnhancedCustomShapeParameterType::NORMAL,
7142 5, 0
7145 EnhancedCustomShapeParameterType::EQUATION,
7146 EnhancedCustomShapeParameterType::EQUATION,
7147 5, 8
7150 EnhancedCustomShapeParameterType::NORMAL,
7151 EnhancedCustomShapeParameterType::EQUATION,
7152 0, 8
7155 EnhancedCustomShapeParameterType::EQUATION,
7156 EnhancedCustomShapeParameterType::EQUATION,
7157 2, 2
7160 EnhancedCustomShapeParameterType::EQUATION,
7161 EnhancedCustomShapeParameterType::EQUATION,
7162 3, 2
7165 EnhancedCustomShapeParameterType::EQUATION,
7166 EnhancedCustomShapeParameterType::EQUATION,
7167 3, 4
7170 EnhancedCustomShapeParameterType::EQUATION,
7171 EnhancedCustomShapeParameterType::EQUATION,
7172 2, 4
7175 EnhancedCustomShapeParameterType::NORMAL,
7176 EnhancedCustomShapeParameterType::NORMAL,
7177 0, 0
7180 EnhancedCustomShapeParameterType::EQUATION,
7181 EnhancedCustomShapeParameterType::EQUATION,
7182 2, 2
7185 EnhancedCustomShapeParameterType::NORMAL,
7186 EnhancedCustomShapeParameterType::EQUATION,
7187 0, 8
7190 EnhancedCustomShapeParameterType::EQUATION,
7191 EnhancedCustomShapeParameterType::EQUATION,
7192 2, 4
7195 EnhancedCustomShapeParameterType::EQUATION,
7196 EnhancedCustomShapeParameterType::NORMAL,
7197 5, 0
7200 EnhancedCustomShapeParameterType::EQUATION,
7201 EnhancedCustomShapeParameterType::EQUATION,
7202 3, 2
7205 EnhancedCustomShapeParameterType::EQUATION,
7206 EnhancedCustomShapeParameterType::EQUATION,
7207 5, 8
7210 EnhancedCustomShapeParameterType::EQUATION,
7211 EnhancedCustomShapeParameterType::EQUATION,
7212 3, 4
7215 aPropSequence [0].Value = makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData), aData));
7218 aPropSequence [1].Name = "Segments";
7219 static const sal_uInt16 nValues[] = {
7220 // Command, Count
7221 1,1,
7222 2,3,
7223 4,0,
7224 7,0,
7225 5,0,
7226 1,1,
7227 2,3,
7228 4,0,
7229 21,0,
7230 7,0,
7231 5,0,
7232 1,1,
7233 2,3,
7234 4,0,
7235 19,0,
7236 7,0,
7237 5,0,
7238 1,1,
7239 2,3,
7240 4,0,
7241 20,0,
7242 7,0,
7243 5,0,
7244 1,1,
7245 2,3,
7246 4,0,
7247 18,0,
7248 7,0,
7249 5,0,
7250 1,1,
7251 2,3,
7252 4,0,
7253 1,1,
7254 2,3,
7255 4,0,
7256 1,1,
7257 2,1,
7258 1,1,
7259 2,1,
7260 1,1,
7261 2,1,
7262 1,1,
7263 2,1,
7264 6,0,
7267 aPropSequence [1].Value = makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues ), nValues ));
7270 aPropSequence [2].Name = "TextFrames";
7271 Sequence< EnhancedCustomShapeTextFrame > aTextFrameSeq (1);
7273 EnhancedCustomShapeTextFrame aTextFrame;
7275 static const CustomShapeProvider::ParameterPairData aData =
7277 EnhancedCustomShapeParameterType::EQUATION,
7278 EnhancedCustomShapeParameterType::EQUATION,
7279 2, 2
7281 aTextFrame.TopLeft = createParameterPair(&aData);
7284 static const CustomShapeProvider::ParameterPairData aData =
7286 EnhancedCustomShapeParameterType::EQUATION,
7287 EnhancedCustomShapeParameterType::EQUATION,
7288 3, 4
7290 aTextFrame.BottomRight = createParameterPair(&aData);
7292 aTextFrameSeq [0] = aTextFrame;
7294 aPropSequence [2].Value = makeAny (aTextFrameSeq);
7296 aPropertyMap [PROP_Path] <<= aPropSequence;
7299 awt::Rectangle aRectangle;
7300 aRectangle.X = 0;
7301 aRectangle.Y = 0;
7302 aRectangle.Width = 0;
7303 aRectangle.Height = 0;
7304 aPropertyMap [PROP_ViewBox] <<= aRectangle;
7306 aPropertyMap [ PROP_Type ] <<= OUString("ooxml-bevel");
7308 return aPropertyMap;
7311 class ShapeCroundRect : public CustomShapeProvider
7313 virtual PropertyMap getProperties()
7315 PropertyMap aPropertyMap;
7318 Sequence< EnhancedCustomShapeAdjustmentValue > aAdjSequence (1);
7320 Any aAny ((sal_Int32) 16667);
7321 aAdjSequence [0].Value = aAny;
7322 aAdjSequence [0].Name = "adj";
7324 aPropertyMap [PROP_AdjustmentValues] <<= aAdjSequence;
7327 static const char *aStrings[] = {
7328 "if(0-$0 ,0,if(50000-$0 ,$0 ,50000))",
7329 "min(logwidth,logheight)",
7330 "?1 *?0 /100000",
7331 "logwidth+0-?2 ",
7332 "logheight+0-?2 ",
7333 "?2 *29289/100000",
7334 "logwidth+0-?5 ",
7335 "logheight+0-?5 ",
7336 "logwidth/2",
7337 "logheight/2",
7338 "logheight",
7339 "logwidth",
7340 "(10800000)/60000.0",
7341 "(5400000)/60000.0",
7342 "(16200000)/60000.0",
7343 "(5400000)/60000.0",
7344 "(0)/60000.0",
7345 "(5400000)/60000.0",
7346 "(5400000)/60000.0",
7347 "(5400000)/60000.0"
7349 aPropertyMap [PROP_Equations] <<= createStringSequence( SAL_N_ELEMENTS( aStrings ), aStrings );
7352 Sequence< Sequence < PropertyValue > > aPropSequenceSequence (1);
7354 Sequence< PropertyValue > aPropSequence (4);
7356 aPropSequence [0].Name = "Position";
7357 static const CustomShapeProvider::ParameterPairData aData =
7359 EnhancedCustomShapeParameterType::EQUATION,
7360 EnhancedCustomShapeParameterType::NORMAL,
7361 2, 0
7363 aPropSequence [0].Value = makeAny (createParameterPair(&aData));
7366 aPropSequence [1].Name = "RangeXMaximum";
7367 EnhancedCustomShapeParameter aParameter;
7368 Any aAny ((sal_Int32) 50000);
7369 aParameter.Value = aAny;
7370 aParameter.Type = EnhancedCustomShapeParameterType::NORMAL;
7371 aPropSequence [1].Value = makeAny (aParameter);
7374 aPropSequence [2].Name = "RangeXMinimum";
7375 EnhancedCustomShapeParameter aParameter;
7376 Any aAny ((sal_Int32) 0);
7377 aParameter.Value = aAny;
7378 aParameter.Type = EnhancedCustomShapeParameterType::NORMAL;
7379 aPropSequence [2].Value = makeAny (aParameter);
7382 aPropSequence [3].Name = "RefX";
7383 Any aAny ((sal_Int32) 0);
7384 aPropSequence [3].Value = makeAny (aAny);
7386 aPropSequenceSequence [0] = aPropSequence;
7388 aPropertyMap [PROP_Handles] <<= aPropSequenceSequence;
7391 aPropertyMap [PROP_MirroredX] <<= Any ((sal_Bool) sal_False);
7394 aPropertyMap [PROP_MirroredY] <<= Any ((sal_Bool) sal_False);
7397 Sequence< PropertyValue > aPropSequence (3);
7399 aPropSequence [0].Name = "Coordinates";
7400 static const CustomShapeProvider::ParameterPairData aData[] = {
7402 EnhancedCustomShapeParameterType::NORMAL,
7403 EnhancedCustomShapeParameterType::EQUATION,
7404 0, 2
7407 EnhancedCustomShapeParameterType::EQUATION,
7408 EnhancedCustomShapeParameterType::EQUATION,
7409 2, 2
7412 EnhancedCustomShapeParameterType::EQUATION,
7413 EnhancedCustomShapeParameterType::EQUATION,
7414 12, 13
7417 EnhancedCustomShapeParameterType::EQUATION,
7418 EnhancedCustomShapeParameterType::NORMAL,
7419 3, 0
7422 EnhancedCustomShapeParameterType::EQUATION,
7423 EnhancedCustomShapeParameterType::EQUATION,
7424 2, 2
7427 EnhancedCustomShapeParameterType::EQUATION,
7428 EnhancedCustomShapeParameterType::EQUATION,
7429 14, 15
7432 EnhancedCustomShapeParameterType::EQUATION,
7433 EnhancedCustomShapeParameterType::EQUATION,
7434 11, 4
7437 EnhancedCustomShapeParameterType::EQUATION,
7438 EnhancedCustomShapeParameterType::EQUATION,
7439 2, 2
7442 EnhancedCustomShapeParameterType::EQUATION,
7443 EnhancedCustomShapeParameterType::EQUATION,
7444 16, 17
7447 EnhancedCustomShapeParameterType::EQUATION,
7448 EnhancedCustomShapeParameterType::EQUATION,
7449 2, 10
7452 EnhancedCustomShapeParameterType::EQUATION,
7453 EnhancedCustomShapeParameterType::EQUATION,
7454 2, 2
7457 EnhancedCustomShapeParameterType::EQUATION,
7458 EnhancedCustomShapeParameterType::EQUATION,
7459 18, 19
7462 aPropSequence [0].Value = makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData), aData));
7465 aPropSequence [1].Name = "Segments";
7466 static const sal_uInt16 nValues[] = {
7467 // Command, Count
7468 1,1,
7469 17,1,
7470 2,1,
7471 17,1,
7472 2,1,
7473 17,1,
7474 2,1,
7475 17,1,
7476 4,0,
7479 aPropSequence [1].Value = makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues ), nValues ));
7482 aPropSequence [2].Name = "TextFrames";
7483 Sequence< EnhancedCustomShapeTextFrame > aTextFrameSeq (1);
7485 EnhancedCustomShapeTextFrame aTextFrame;
7487 static const CustomShapeProvider::ParameterPairData aData =
7489 EnhancedCustomShapeParameterType::EQUATION,
7490 EnhancedCustomShapeParameterType::EQUATION,
7491 5, 5
7493 aTextFrame.TopLeft = createParameterPair(&aData);
7496 static const CustomShapeProvider::ParameterPairData aData =
7498 EnhancedCustomShapeParameterType::EQUATION,
7499 EnhancedCustomShapeParameterType::EQUATION,
7500 6, 7
7502 aTextFrame.BottomRight = createParameterPair(&aData);
7504 aTextFrameSeq [0] = aTextFrame;
7506 aPropSequence [2].Value = makeAny (aTextFrameSeq);
7508 aPropertyMap [PROP_Path] <<= aPropSequence;
7511 awt::Rectangle aRectangle;
7512 aRectangle.X = 0;
7513 aRectangle.Y = 0;
7514 aRectangle.Width = 0;
7515 aRectangle.Height = 0;
7516 aPropertyMap [PROP_ViewBox] <<= aRectangle;
7518 aPropertyMap [ PROP_Type ] <<= OUString("ooxml-roundRect");
7520 return aPropertyMap;
7523 class ShapeCaccentCallout1 : public CustomShapeProvider
7525 virtual PropertyMap getProperties()
7527 PropertyMap aPropertyMap;
7530 Sequence< EnhancedCustomShapeAdjustmentValue > aAdjSequence (4);
7532 Any aAny ((sal_Int32) 18750);
7533 aAdjSequence [0].Value = aAny;
7534 aAdjSequence [0].Name = "adj1";
7537 Any aAny ((sal_Int32) -8333);
7538 aAdjSequence [1].Value = aAny;
7539 aAdjSequence [1].Name = "adj2";
7542 Any aAny ((sal_Int32) 112500);
7543 aAdjSequence [2].Value = aAny;
7544 aAdjSequence [2].Name = "adj3";
7547 Any aAny ((sal_Int32) -38333);
7548 aAdjSequence [3].Value = aAny;
7549 aAdjSequence [3].Name = "adj4";
7551 aPropertyMap [PROP_AdjustmentValues] <<= aAdjSequence;
7554 static const char *aStrings[] = {
7555 "logheight*$0 /100000",
7556 "logwidth*$1 /100000",
7557 "logheight*$2 /100000",
7558 "logwidth*$3 /100000",
7559 "logwidth",
7560 "logheight/2",
7561 "logwidth/2",
7562 "logheight"
7564 aPropertyMap [PROP_Equations] <<= createStringSequence( SAL_N_ELEMENTS( aStrings ), aStrings );
7567 Sequence< Sequence < PropertyValue > > aPropSequenceSequence (2);
7569 Sequence< PropertyValue > aPropSequence (7);
7571 aPropSequence [0].Name = "Position";
7572 static const CustomShapeProvider::ParameterPairData aData =
7574 EnhancedCustomShapeParameterType::EQUATION,
7575 EnhancedCustomShapeParameterType::EQUATION,
7576 1, 0
7578 aPropSequence [0].Value = makeAny (createParameterPair(&aData));
7581 aPropSequence [1].Name = "RangeXMaximum";
7582 EnhancedCustomShapeParameter aParameter;
7583 Any aAny ((sal_Int32) 2147483647);
7584 aParameter.Value = aAny;
7585 aParameter.Type = EnhancedCustomShapeParameterType::NORMAL;
7586 aPropSequence [1].Value = makeAny (aParameter);
7589 aPropSequence [2].Name = "RangeXMinimum";
7590 EnhancedCustomShapeParameter aParameter;
7591 Any aAny ((sal_Int32) -2147483647);
7592 aParameter.Value = aAny;
7593 aParameter.Type = EnhancedCustomShapeParameterType::NORMAL;
7594 aPropSequence [2].Value = makeAny (aParameter);
7597 aPropSequence [3].Name = "RangeYMaximum";
7598 EnhancedCustomShapeParameter aParameter;
7599 Any aAny ((sal_Int32) 2147483647);
7600 aParameter.Value = aAny;
7601 aParameter.Type = EnhancedCustomShapeParameterType::NORMAL;
7602 aPropSequence [3].Value = makeAny (aParameter);
7605 aPropSequence [4].Name = "RangeYMinimum";
7606 EnhancedCustomShapeParameter aParameter;
7607 Any aAny ((sal_Int32) -2147483647);
7608 aParameter.Value = aAny;
7609 aParameter.Type = EnhancedCustomShapeParameterType::NORMAL;
7610 aPropSequence [4].Value = makeAny (aParameter);
7613 aPropSequence [5].Name = "RefX";
7614 Any aAny ((sal_Int32) 1);
7615 aPropSequence [5].Value = makeAny (aAny);
7618 aPropSequence [6].Name = "RefY";
7619 Any aAny ((sal_Int32) 0);
7620 aPropSequence [6].Value = makeAny (aAny);
7622 aPropSequenceSequence [0] = aPropSequence;
7625 Sequence< PropertyValue > aPropSequence (7);
7627 aPropSequence [0].Name = "Position";
7628 static const CustomShapeProvider::ParameterPairData aData =
7630 EnhancedCustomShapeParameterType::EQUATION,
7631 EnhancedCustomShapeParameterType::EQUATION,
7632 3, 2
7634 aPropSequence [0].Value = makeAny (createParameterPair(&aData));
7637 aPropSequence [1].Name = "RangeXMaximum";
7638 EnhancedCustomShapeParameter aParameter;
7639 Any aAny ((sal_Int32) 2147483647);
7640 aParameter.Value = aAny;
7641 aParameter.Type = EnhancedCustomShapeParameterType::NORMAL;
7642 aPropSequence [1].Value = makeAny (aParameter);
7645 aPropSequence [2].Name = "RangeXMinimum";
7646 EnhancedCustomShapeParameter aParameter;
7647 Any aAny ((sal_Int32) -2147483647);
7648 aParameter.Value = aAny;
7649 aParameter.Type = EnhancedCustomShapeParameterType::NORMAL;
7650 aPropSequence [2].Value = makeAny (aParameter);
7653 aPropSequence [3].Name = "RangeYMaximum";
7654 EnhancedCustomShapeParameter aParameter;
7655 Any aAny ((sal_Int32) 2147483647);
7656 aParameter.Value = aAny;
7657 aParameter.Type = EnhancedCustomShapeParameterType::NORMAL;
7658 aPropSequence [3].Value = makeAny (aParameter);
7661 aPropSequence [4].Name = "RangeYMinimum";
7662 EnhancedCustomShapeParameter aParameter;
7663 Any aAny ((sal_Int32) -2147483647);
7664 aParameter.Value = aAny;
7665 aParameter.Type = EnhancedCustomShapeParameterType::NORMAL;
7666 aPropSequence [4].Value = makeAny (aParameter);
7669 aPropSequence [5].Name = "RefX";
7670 Any aAny ((sal_Int32) 3);
7671 aPropSequence [5].Value = makeAny (aAny);
7674 aPropSequence [6].Name = "RefY";
7675 Any aAny ((sal_Int32) 2);
7676 aPropSequence [6].Value = makeAny (aAny);
7678 aPropSequenceSequence [1] = aPropSequence;
7680 aPropertyMap [PROP_Handles] <<= aPropSequenceSequence;
7683 aPropertyMap [PROP_MirroredX] <<= Any ((sal_Bool) sal_False);
7686 aPropertyMap [PROP_MirroredY] <<= Any ((sal_Bool) sal_False);
7689 Sequence< PropertyValue > aPropSequence (3);
7691 aPropSequence [0].Name = "Coordinates";
7692 static const CustomShapeProvider::ParameterPairData aData[] = {
7694 EnhancedCustomShapeParameterType::NORMAL,
7695 EnhancedCustomShapeParameterType::NORMAL,
7696 0, 0
7699 EnhancedCustomShapeParameterType::EQUATION,
7700 EnhancedCustomShapeParameterType::NORMAL,
7701 4, 0
7704 EnhancedCustomShapeParameterType::EQUATION,
7705 EnhancedCustomShapeParameterType::EQUATION,
7706 4, 7
7709 EnhancedCustomShapeParameterType::NORMAL,
7710 EnhancedCustomShapeParameterType::EQUATION,
7711 0, 7
7714 EnhancedCustomShapeParameterType::EQUATION,
7715 EnhancedCustomShapeParameterType::NORMAL,
7716 1, 0
7719 EnhancedCustomShapeParameterType::EQUATION,
7720 EnhancedCustomShapeParameterType::EQUATION,
7721 1, 7
7724 EnhancedCustomShapeParameterType::EQUATION,
7725 EnhancedCustomShapeParameterType::EQUATION,
7726 1, 0
7729 EnhancedCustomShapeParameterType::EQUATION,
7730 EnhancedCustomShapeParameterType::EQUATION,
7731 3, 2
7734 aPropSequence [0].Value = makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData), aData));
7737 aPropSequence [1].Name = "Segments";
7738 static const sal_uInt16 nValues[] = {
7739 // Command, Count
7740 1,1,
7741 2,3,
7742 4,0,
7743 7,0,
7744 5,0,
7745 1,1,
7746 2,1,
7747 6,0,
7748 5,0,
7749 1,1,
7750 2,1,
7751 6,0,
7754 aPropSequence [1].Value = makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues ), nValues ));
7757 aPropSequence [2].Name = "TextFrames";
7758 Sequence< EnhancedCustomShapeTextFrame > aTextFrameSeq (1);
7760 EnhancedCustomShapeTextFrame aTextFrame;
7762 static const CustomShapeProvider::ParameterPairData aData =
7764 EnhancedCustomShapeParameterType::NORMAL,
7765 EnhancedCustomShapeParameterType::NORMAL,
7766 0, 0
7768 aTextFrame.TopLeft = createParameterPair(&aData);
7771 static const CustomShapeProvider::ParameterPairData aData =
7773 EnhancedCustomShapeParameterType::EQUATION,
7774 EnhancedCustomShapeParameterType::EQUATION,
7775 4, 7
7777 aTextFrame.BottomRight = createParameterPair(&aData);
7779 aTextFrameSeq [0] = aTextFrame;
7781 aPropSequence [2].Value = makeAny (aTextFrameSeq);
7783 aPropertyMap [PROP_Path] <<= aPropSequence;
7786 awt::Rectangle aRectangle;
7787 aRectangle.X = 0;
7788 aRectangle.Y = 0;
7789 aRectangle.Width = 0;
7790 aRectangle.Height = 0;
7791 aPropertyMap [PROP_ViewBox] <<= aRectangle;
7793 aPropertyMap [ PROP_Type ] <<= OUString("ooxml-accentCallout1");
7795 return aPropertyMap;
7798 class ShapeCflowChartSort : public CustomShapeProvider
7800 virtual PropertyMap getProperties()
7802 PropertyMap aPropertyMap;
7805 aPropertyMap [PROP_AdjustmentValues] <<= Sequence< OUString >(0);
7808 static const char *aStrings[] = {
7809 "logwidth*3/4",
7810 "logheight*3/4",
7811 "logwidth/2",
7812 "logheight/2",
7813 "logheight",
7814 "logwidth",
7815 "logwidth/4",
7816 "logheight/4"
7818 aPropertyMap [PROP_Equations] <<= createStringSequence( SAL_N_ELEMENTS( aStrings ), aStrings );
7821 aPropertyMap [PROP_Handles] <<= Sequence< OUString >(0);
7824 aPropertyMap [PROP_MirroredX] <<= Any ((sal_Bool) sal_False);
7827 aPropertyMap [PROP_MirroredY] <<= Any ((sal_Bool) sal_False);
7830 Sequence< PropertyValue > aPropSequence (4);
7832 aPropSequence [0].Name = "Coordinates";
7833 static const CustomShapeProvider::ParameterPairData aData[] = {
7835 EnhancedCustomShapeParameterType::NORMAL,
7836 EnhancedCustomShapeParameterType::NORMAL,
7837 0, 1
7840 EnhancedCustomShapeParameterType::NORMAL,
7841 EnhancedCustomShapeParameterType::NORMAL,
7842 1, 0
7845 EnhancedCustomShapeParameterType::NORMAL,
7846 EnhancedCustomShapeParameterType::NORMAL,
7847 2, 1
7850 EnhancedCustomShapeParameterType::NORMAL,
7851 EnhancedCustomShapeParameterType::NORMAL,
7852 1, 2
7855 EnhancedCustomShapeParameterType::NORMAL,
7856 EnhancedCustomShapeParameterType::NORMAL,
7857 0, 1
7860 EnhancedCustomShapeParameterType::NORMAL,
7861 EnhancedCustomShapeParameterType::NORMAL,
7862 2, 1
7865 EnhancedCustomShapeParameterType::NORMAL,
7866 EnhancedCustomShapeParameterType::NORMAL,
7867 0, 1
7870 EnhancedCustomShapeParameterType::NORMAL,
7871 EnhancedCustomShapeParameterType::NORMAL,
7872 1, 0
7875 EnhancedCustomShapeParameterType::NORMAL,
7876 EnhancedCustomShapeParameterType::NORMAL,
7877 2, 1
7880 EnhancedCustomShapeParameterType::NORMAL,
7881 EnhancedCustomShapeParameterType::NORMAL,
7882 1, 2
7885 aPropSequence [0].Value = makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData), aData));
7888 aPropSequence [1].Name = "Segments";
7889 static const sal_uInt16 nValues[] = {
7890 // Command, Count
7891 1,1,
7892 2,3,
7893 4,0,
7894 7,0,
7895 5,0,
7896 1,1,
7897 2,1,
7898 6,0,
7899 5,0,
7900 1,1,
7901 2,3,
7902 4,0,
7903 6,0,
7906 aPropSequence [1].Value = makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues ), nValues ));
7909 aPropSequence [2].Name = "SubViewSize";
7910 Sequence< awt::Size > aSizeSequence (3);
7912 awt::Size aSize;
7913 aSize.Width = 2;
7914 aSize.Height = 2;
7915 aSizeSequence [0] = aSize;
7918 awt::Size aSize;
7919 aSize.Width = 2;
7920 aSize.Height = 2;
7921 aSizeSequence [1] = aSize;
7924 awt::Size aSize;
7925 aSize.Width = 2;
7926 aSize.Height = 2;
7927 aSizeSequence [2] = aSize;
7929 aPropSequence [2].Value = makeAny (aSizeSequence);
7932 aPropSequence [3].Name = "TextFrames";
7933 Sequence< EnhancedCustomShapeTextFrame > aTextFrameSeq (1);
7935 EnhancedCustomShapeTextFrame aTextFrame;
7937 static const CustomShapeProvider::ParameterPairData aData =
7939 EnhancedCustomShapeParameterType::EQUATION,
7940 EnhancedCustomShapeParameterType::EQUATION,
7941 6, 7
7943 aTextFrame.TopLeft = createParameterPair(&aData);
7946 static const CustomShapeProvider::ParameterPairData aData =
7948 EnhancedCustomShapeParameterType::EQUATION,
7949 EnhancedCustomShapeParameterType::EQUATION,
7950 0, 1
7952 aTextFrame.BottomRight = createParameterPair(&aData);
7954 aTextFrameSeq [0] = aTextFrame;
7956 aPropSequence [3].Value = makeAny (aTextFrameSeq);
7958 aPropertyMap [PROP_Path] <<= aPropSequence;
7961 awt::Rectangle aRectangle;
7962 aRectangle.X = 0;
7963 aRectangle.Y = 0;
7964 aRectangle.Width = 0;
7965 aRectangle.Height = 0;
7966 aPropertyMap [PROP_ViewBox] <<= aRectangle;
7968 aPropertyMap [ PROP_Type ] <<= OUString("ooxml-flowChartSort");
7970 return aPropertyMap;
7973 class ShapeCstar8 : public CustomShapeProvider
7975 virtual PropertyMap getProperties()
7977 PropertyMap aPropertyMap;
7980 Sequence< EnhancedCustomShapeAdjustmentValue > aAdjSequence (1);
7982 Any aAny ((sal_Int32) 37500);
7983 aAdjSequence [0].Value = aAny;
7984 aAdjSequence [0].Name = "adj";
7986 aPropertyMap [PROP_AdjustmentValues] <<= aAdjSequence;
7989 static const char *aStrings[] = {
7990 "if(0-$0 ,0,if(50000-$0 ,$0 ,50000))",
7991 "logwidth/2",
7992 "?1 *cos(pi*(2700000)/10800000)",
7993 "logwidth/2",
7994 "?3 +0-?2 ",
7995 "?3 +?2 -0",
7996 "logheight/2",
7997 "?6 *sin(pi*(2700000)/10800000)",
7998 "logheight/2",
7999 "?8 +0-?7 ",
8000 "?8 +?7 -0",
8001 "?1 *?0 /50000",
8002 "?6 *?0 /50000",
8003 "?11 *92388/100000",
8004 "?11 *38268/100000",
8005 "?12 *92388/100000",
8006 "?12 *38268/100000",
8007 "?3 +0-?13 ",
8008 "?3 +0-?14 ",
8009 "?3 +?14 -0",
8010 "?3 +?13 -0",
8011 "?8 +0-?15 ",
8012 "?8 +0-?16 ",
8013 "?8 +?16 -0",
8014 "?8 +?15 -0",
8015 "?8 +0-?12 ",
8016 "logwidth",
8017 "logheight"
8019 aPropertyMap [PROP_Equations] <<= createStringSequence( SAL_N_ELEMENTS( aStrings ), aStrings );
8022 Sequence< Sequence < PropertyValue > > aPropSequenceSequence (1);
8024 Sequence< PropertyValue > aPropSequence (4);
8026 aPropSequence [0].Name = "Position";
8027 static const CustomShapeProvider::ParameterPairData aData =
8029 EnhancedCustomShapeParameterType::EQUATION,
8030 EnhancedCustomShapeParameterType::EQUATION,
8031 3, 25
8033 aPropSequence [0].Value = makeAny (createParameterPair(&aData));
8036 aPropSequence [1].Name = "RangeYMaximum";
8037 EnhancedCustomShapeParameter aParameter;
8038 Any aAny ((sal_Int32) 50000);
8039 aParameter.Value = aAny;
8040 aParameter.Type = EnhancedCustomShapeParameterType::NORMAL;
8041 aPropSequence [1].Value = makeAny (aParameter);
8044 aPropSequence [2].Name = "RangeYMinimum";
8045 EnhancedCustomShapeParameter aParameter;
8046 Any aAny ((sal_Int32) 0);
8047 aParameter.Value = aAny;
8048 aParameter.Type = EnhancedCustomShapeParameterType::NORMAL;
8049 aPropSequence [2].Value = makeAny (aParameter);
8052 aPropSequence [3].Name = "RefY";
8053 Any aAny ((sal_Int32) 0);
8054 aPropSequence [3].Value = makeAny (aAny);
8056 aPropSequenceSequence [0] = aPropSequence;
8058 aPropertyMap [PROP_Handles] <<= aPropSequenceSequence;
8061 aPropertyMap [PROP_MirroredX] <<= Any ((sal_Bool) sal_False);
8064 aPropertyMap [PROP_MirroredY] <<= Any ((sal_Bool) sal_False);
8067 Sequence< PropertyValue > aPropSequence (3);
8069 aPropSequence [0].Name = "Coordinates";
8070 static const CustomShapeProvider::ParameterPairData aData[] = {
8072 EnhancedCustomShapeParameterType::NORMAL,
8073 EnhancedCustomShapeParameterType::EQUATION,
8074 0, 8
8077 EnhancedCustomShapeParameterType::EQUATION,
8078 EnhancedCustomShapeParameterType::EQUATION,
8079 17, 22
8082 EnhancedCustomShapeParameterType::EQUATION,
8083 EnhancedCustomShapeParameterType::EQUATION,
8084 4, 9
8087 EnhancedCustomShapeParameterType::EQUATION,
8088 EnhancedCustomShapeParameterType::EQUATION,
8089 18, 21
8092 EnhancedCustomShapeParameterType::EQUATION,
8093 EnhancedCustomShapeParameterType::NORMAL,
8094 3, 0
8097 EnhancedCustomShapeParameterType::EQUATION,
8098 EnhancedCustomShapeParameterType::EQUATION,
8099 19, 21
8102 EnhancedCustomShapeParameterType::EQUATION,
8103 EnhancedCustomShapeParameterType::EQUATION,
8104 5, 9
8107 EnhancedCustomShapeParameterType::EQUATION,
8108 EnhancedCustomShapeParameterType::EQUATION,
8109 20, 22
8112 EnhancedCustomShapeParameterType::EQUATION,
8113 EnhancedCustomShapeParameterType::EQUATION,
8114 26, 8
8117 EnhancedCustomShapeParameterType::EQUATION,
8118 EnhancedCustomShapeParameterType::EQUATION,
8119 20, 23
8122 EnhancedCustomShapeParameterType::EQUATION,
8123 EnhancedCustomShapeParameterType::EQUATION,
8124 5, 10
8127 EnhancedCustomShapeParameterType::EQUATION,
8128 EnhancedCustomShapeParameterType::EQUATION,
8129 19, 24
8132 EnhancedCustomShapeParameterType::EQUATION,
8133 EnhancedCustomShapeParameterType::EQUATION,
8134 3, 27
8137 EnhancedCustomShapeParameterType::EQUATION,
8138 EnhancedCustomShapeParameterType::EQUATION,
8139 18, 24
8142 EnhancedCustomShapeParameterType::EQUATION,
8143 EnhancedCustomShapeParameterType::EQUATION,
8144 4, 10
8147 EnhancedCustomShapeParameterType::EQUATION,
8148 EnhancedCustomShapeParameterType::EQUATION,
8149 17, 23
8152 aPropSequence [0].Value = makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData), aData));
8155 aPropSequence [1].Name = "Segments";
8156 static const sal_uInt16 nValues[] = {
8157 // Command, Count
8158 1,1,
8159 2,15,
8160 4,0,
8163 aPropSequence [1].Value = makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues ), nValues ));
8166 aPropSequence [2].Name = "TextFrames";
8167 Sequence< EnhancedCustomShapeTextFrame > aTextFrameSeq (1);
8169 EnhancedCustomShapeTextFrame aTextFrame;
8171 static const CustomShapeProvider::ParameterPairData aData =
8173 EnhancedCustomShapeParameterType::EQUATION,
8174 EnhancedCustomShapeParameterType::EQUATION,
8175 17, 21
8177 aTextFrame.TopLeft = createParameterPair(&aData);
8180 static const CustomShapeProvider::ParameterPairData aData =
8182 EnhancedCustomShapeParameterType::EQUATION,
8183 EnhancedCustomShapeParameterType::EQUATION,
8184 20, 24
8186 aTextFrame.BottomRight = createParameterPair(&aData);
8188 aTextFrameSeq [0] = aTextFrame;
8190 aPropSequence [2].Value = makeAny (aTextFrameSeq);
8192 aPropertyMap [PROP_Path] <<= aPropSequence;
8195 awt::Rectangle aRectangle;
8196 aRectangle.X = 0;
8197 aRectangle.Y = 0;
8198 aRectangle.Width = 0;
8199 aRectangle.Height = 0;
8200 aPropertyMap [PROP_ViewBox] <<= aRectangle;
8202 aPropertyMap [ PROP_Type ] <<= OUString("ooxml-star8");
8204 return aPropertyMap;
8207 class ShapeCflowChartAlternateProcess : public CustomShapeProvider
8209 virtual PropertyMap getProperties()
8211 PropertyMap aPropertyMap;
8214 aPropertyMap [PROP_AdjustmentValues] <<= Sequence< OUString >(0);
8217 static const char *aStrings[] = {
8218 "min(logwidth,logheight)/6",
8219 "logwidth+0-?0 ",
8220 "logheight+0-?0 ",
8221 "?0 *29289/100000",
8222 "logwidth+0-?3 ",
8223 "logheight+0-?3 ",
8224 "logwidth/2",
8225 "logheight/2",
8226 "logheight",
8227 "logwidth",
8228 "(10800000)/60000.0",
8229 "(5400000)/60000.0",
8230 "(16200000)/60000.0",
8231 "(5400000)/60000.0",
8232 "(0)/60000.0",
8233 "(5400000)/60000.0",
8234 "(5400000)/60000.0",
8235 "(5400000)/60000.0"
8237 aPropertyMap [PROP_Equations] <<= createStringSequence( SAL_N_ELEMENTS( aStrings ), aStrings );
8240 aPropertyMap [PROP_Handles] <<= Sequence< OUString >(0);
8243 aPropertyMap [PROP_MirroredX] <<= Any ((sal_Bool) sal_False);
8246 aPropertyMap [PROP_MirroredY] <<= Any ((sal_Bool) sal_False);
8249 Sequence< PropertyValue > aPropSequence (3);
8251 aPropSequence [0].Name = "Coordinates";
8252 static const CustomShapeProvider::ParameterPairData aData[] = {
8254 EnhancedCustomShapeParameterType::NORMAL,
8255 EnhancedCustomShapeParameterType::EQUATION,
8256 0, 0
8259 EnhancedCustomShapeParameterType::EQUATION,
8260 EnhancedCustomShapeParameterType::EQUATION,
8261 0, 0
8264 EnhancedCustomShapeParameterType::EQUATION,
8265 EnhancedCustomShapeParameterType::EQUATION,
8266 10, 11
8269 EnhancedCustomShapeParameterType::EQUATION,
8270 EnhancedCustomShapeParameterType::NORMAL,
8271 1, 0
8274 EnhancedCustomShapeParameterType::EQUATION,
8275 EnhancedCustomShapeParameterType::EQUATION,
8276 0, 0
8279 EnhancedCustomShapeParameterType::EQUATION,
8280 EnhancedCustomShapeParameterType::EQUATION,
8281 12, 13
8284 EnhancedCustomShapeParameterType::EQUATION,
8285 EnhancedCustomShapeParameterType::EQUATION,
8286 9, 2
8289 EnhancedCustomShapeParameterType::EQUATION,
8290 EnhancedCustomShapeParameterType::EQUATION,
8291 0, 0
8294 EnhancedCustomShapeParameterType::EQUATION,
8295 EnhancedCustomShapeParameterType::EQUATION,
8296 14, 15
8299 EnhancedCustomShapeParameterType::EQUATION,
8300 EnhancedCustomShapeParameterType::EQUATION,
8301 0, 8
8304 EnhancedCustomShapeParameterType::EQUATION,
8305 EnhancedCustomShapeParameterType::EQUATION,
8306 0, 0
8309 EnhancedCustomShapeParameterType::EQUATION,
8310 EnhancedCustomShapeParameterType::EQUATION,
8311 16, 17
8314 aPropSequence [0].Value = makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData), aData));
8317 aPropSequence [1].Name = "Segments";
8318 static const sal_uInt16 nValues[] = {
8319 // Command, Count
8320 1,1,
8321 17,1,
8322 2,1,
8323 17,1,
8324 2,1,
8325 17,1,
8326 2,1,
8327 17,1,
8328 4,0,
8331 aPropSequence [1].Value = makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues ), nValues ));
8334 aPropSequence [2].Name = "TextFrames";
8335 Sequence< EnhancedCustomShapeTextFrame > aTextFrameSeq (1);
8337 EnhancedCustomShapeTextFrame aTextFrame;
8339 static const CustomShapeProvider::ParameterPairData aData =
8341 EnhancedCustomShapeParameterType::EQUATION,
8342 EnhancedCustomShapeParameterType::EQUATION,
8343 3, 3
8345 aTextFrame.TopLeft = createParameterPair(&aData);
8348 static const CustomShapeProvider::ParameterPairData aData =
8350 EnhancedCustomShapeParameterType::EQUATION,
8351 EnhancedCustomShapeParameterType::EQUATION,
8352 4, 5
8354 aTextFrame.BottomRight = createParameterPair(&aData);
8356 aTextFrameSeq [0] = aTextFrame;
8358 aPropSequence [2].Value = makeAny (aTextFrameSeq);
8360 aPropertyMap [PROP_Path] <<= aPropSequence;
8363 awt::Rectangle aRectangle;
8364 aRectangle.X = 0;
8365 aRectangle.Y = 0;
8366 aRectangle.Width = 0;
8367 aRectangle.Height = 0;
8368 aPropertyMap [PROP_ViewBox] <<= aRectangle;
8370 aPropertyMap [ PROP_Type ] <<= OUString("ooxml-flowChartAlternateProcess");
8372 return aPropertyMap;
8375 class ShapeCmoon : public CustomShapeProvider
8377 virtual PropertyMap getProperties()
8379 PropertyMap aPropertyMap;
8382 Sequence< EnhancedCustomShapeAdjustmentValue > aAdjSequence (1);
8384 Any aAny ((sal_Int32) 50000);
8385 aAdjSequence [0].Value = aAny;
8386 aAdjSequence [0].Name = "adj";
8388 aPropertyMap [PROP_AdjustmentValues] <<= aAdjSequence;
8391 static const char *aStrings[] = {
8392 "if(0-$0 ,0,if(87500-$0 ,$0 ,87500))",
8393 "min(logwidth,logheight)",
8394 "?1 *?0 /100000",
8395 "?2 *logwidth/?1 ",
8396 "?1 +0-?2 ",
8397 "?2 *?2 /?4 ",
8398 "?1 *?1 /?4 ",
8399 "?6 *2/1",
8400 "?7 +0-?5 ",
8401 "?8 +0-?2 ",
8402 "?9 *logwidth/?1 ",
8403 "?8 *1/2",
8404 "?11 +0-?2 ",
8405 "logheight/2",
8406 "?12 *?13 /?1 ",
8407 "logheight/2",
8408 "?15 +0-?14 ",
8409 "?15 +?14 -0",
8410 "?2 *9598/32768",
8411 "?18 *logwidth/?1 ",
8412 "?1 +0-?18 ",
8413 "?1 *?1 /1",
8414 "?20 *?20 /1",
8415 "?21 +0-?22 ",
8416 "sqrt(?23 )",
8417 "?24 *?13 /?1 ",
8418 "?15 +0-?25 ",
8419 "?15 +?25 -0",
8420 "?10 +0-?3 ",
8421 "?28 *1/2",
8422 "?3 +?29 -logwidth",
8423 "?30 *-1/1",
8424 "?13 *-1/1",
8425 "(10800000*atan2(?32 ,?31 ))/pi",
8426 "(10800000*atan2(?13 ,?31 ))/pi",
8427 "?34 +0-21600000",
8428 "?35 +0-?33 ",
8429 "logwidth",
8430 "logheight",
8431 "logwidth",
8432 "(5400000)/60000.0",
8433 "(10800000)/60000.0",
8434 "(?33 )/60000.0",
8435 "(?36 )/60000.0"
8437 aPropertyMap [PROP_Equations] <<= createStringSequence( SAL_N_ELEMENTS( aStrings ), aStrings );
8440 Sequence< Sequence < PropertyValue > > aPropSequenceSequence (1);
8442 Sequence< PropertyValue > aPropSequence (4);
8444 aPropSequence [0].Name = "Position";
8445 static const CustomShapeProvider::ParameterPairData aData =
8447 EnhancedCustomShapeParameterType::EQUATION,
8448 EnhancedCustomShapeParameterType::EQUATION,
8449 3, 15
8451 aPropSequence [0].Value = makeAny (createParameterPair(&aData));
8454 aPropSequence [1].Name = "RangeXMaximum";
8455 EnhancedCustomShapeParameter aParameter;
8456 Any aAny ((sal_Int32) 87500);
8457 aParameter.Value = aAny;
8458 aParameter.Type = EnhancedCustomShapeParameterType::NORMAL;
8459 aPropSequence [1].Value = makeAny (aParameter);
8462 aPropSequence [2].Name = "RangeXMinimum";
8463 EnhancedCustomShapeParameter aParameter;
8464 Any aAny ((sal_Int32) 0);
8465 aParameter.Value = aAny;
8466 aParameter.Type = EnhancedCustomShapeParameterType::NORMAL;
8467 aPropSequence [2].Value = makeAny (aParameter);
8470 aPropSequence [3].Name = "RefX";
8471 Any aAny ((sal_Int32) 0);
8472 aPropSequence [3].Value = makeAny (aAny);
8474 aPropSequenceSequence [0] = aPropSequence;
8476 aPropertyMap [PROP_Handles] <<= aPropSequenceSequence;
8479 aPropertyMap [PROP_MirroredX] <<= Any ((sal_Bool) sal_False);
8482 aPropertyMap [PROP_MirroredY] <<= Any ((sal_Bool) sal_False);
8485 Sequence< PropertyValue > aPropSequence (3);
8487 aPropSequence [0].Name = "Coordinates";
8488 static const CustomShapeProvider::ParameterPairData aData[] = {
8490 EnhancedCustomShapeParameterType::EQUATION,
8491 EnhancedCustomShapeParameterType::EQUATION,
8492 37, 38
8495 EnhancedCustomShapeParameterType::EQUATION,
8496 EnhancedCustomShapeParameterType::EQUATION,
8497 39, 13
8500 EnhancedCustomShapeParameterType::EQUATION,
8501 EnhancedCustomShapeParameterType::EQUATION,
8502 40, 41
8505 EnhancedCustomShapeParameterType::EQUATION,
8506 EnhancedCustomShapeParameterType::EQUATION,
8507 29, 14
8510 EnhancedCustomShapeParameterType::EQUATION,
8511 EnhancedCustomShapeParameterType::EQUATION,
8512 42, 43
8515 aPropSequence [0].Value = makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData), aData));
8518 aPropSequence [1].Name = "Segments";
8519 static const sal_uInt16 nValues[] = {
8520 // Command, Count
8521 1,1,
8522 17,2,
8523 4,0,
8526 aPropSequence [1].Value = makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues ), nValues ));
8529 aPropSequence [2].Name = "TextFrames";
8530 Sequence< EnhancedCustomShapeTextFrame > aTextFrameSeq (1);
8532 EnhancedCustomShapeTextFrame aTextFrame;
8534 static const CustomShapeProvider::ParameterPairData aData =
8536 EnhancedCustomShapeParameterType::EQUATION,
8537 EnhancedCustomShapeParameterType::EQUATION,
8538 19, 26
8540 aTextFrame.TopLeft = createParameterPair(&aData);
8543 static const CustomShapeProvider::ParameterPairData aData =
8545 EnhancedCustomShapeParameterType::EQUATION,
8546 EnhancedCustomShapeParameterType::EQUATION,
8547 3, 27
8549 aTextFrame.BottomRight = createParameterPair(&aData);
8551 aTextFrameSeq [0] = aTextFrame;
8553 aPropSequence [2].Value = makeAny (aTextFrameSeq);
8555 aPropertyMap [PROP_Path] <<= aPropSequence;
8558 awt::Rectangle aRectangle;
8559 aRectangle.X = 0;
8560 aRectangle.Y = 0;
8561 aRectangle.Width = 0;
8562 aRectangle.Height = 0;
8563 aPropertyMap [PROP_ViewBox] <<= aRectangle;
8565 aPropertyMap [ PROP_Type ] <<= OUString("ooxml-moon");
8567 return aPropertyMap;
8570 class ShapeCstar6 : public CustomShapeProvider
8572 virtual PropertyMap getProperties()
8574 PropertyMap aPropertyMap;
8577 Sequence< EnhancedCustomShapeAdjustmentValue > aAdjSequence (2);
8579 Any aAny ((sal_Int32) 28868);
8580 aAdjSequence [0].Value = aAny;
8581 aAdjSequence [0].Name = "adj";
8584 Any aAny ((sal_Int32) 115470);
8585 aAdjSequence [1].Value = aAny;
8586 aAdjSequence [1].Name = "hf";
8588 aPropertyMap [PROP_AdjustmentValues] <<= aAdjSequence;
8591 static const char *aStrings[] = {
8592 "if(0-$0 ,0,if(50000-$0 ,$0 ,50000))",
8593 "logwidth/2",
8594 "?1 *$1 /100000",
8595 "?2 *cos(pi*(1800000)/10800000)",
8596 "logwidth/2",
8597 "?4 +0-?3 ",
8598 "?4 +?3 -0",
8599 "logheight/2",
8600 "logheight/4",
8601 "?7 +?8 -0",
8602 "?2 *?0 /50000",
8603 "logheight/2",
8604 "?11 *?0 /50000",
8605 "?10 *1/2",
8606 "?4 +0-?10 ",
8607 "?4 +0-?13 ",
8608 "?4 +?13 -0",
8609 "?4 +?10 -0",
8610 "?12 *sin(pi*(3600000)/10800000)",
8611 "?7 +0-?18 ",
8612 "?7 +?18 -0",
8613 "?7 +0-?12 ",
8614 "logheight"
8616 aPropertyMap [PROP_Equations] <<= createStringSequence( SAL_N_ELEMENTS( aStrings ), aStrings );
8619 Sequence< Sequence < PropertyValue > > aPropSequenceSequence (1);
8621 Sequence< PropertyValue > aPropSequence (4);
8623 aPropSequence [0].Name = "Position";
8624 static const CustomShapeProvider::ParameterPairData aData =
8626 EnhancedCustomShapeParameterType::EQUATION,
8627 EnhancedCustomShapeParameterType::EQUATION,
8628 4, 21
8630 aPropSequence [0].Value = makeAny (createParameterPair(&aData));
8633 aPropSequence [1].Name = "RangeYMaximum";
8634 EnhancedCustomShapeParameter aParameter;
8635 Any aAny ((sal_Int32) 50000);
8636 aParameter.Value = aAny;
8637 aParameter.Type = EnhancedCustomShapeParameterType::NORMAL;
8638 aPropSequence [1].Value = makeAny (aParameter);
8641 aPropSequence [2].Name = "RangeYMinimum";
8642 EnhancedCustomShapeParameter aParameter;
8643 Any aAny ((sal_Int32) 0);
8644 aParameter.Value = aAny;
8645 aParameter.Type = EnhancedCustomShapeParameterType::NORMAL;
8646 aPropSequence [2].Value = makeAny (aParameter);
8649 aPropSequence [3].Name = "RefY";
8650 Any aAny ((sal_Int32) 0);
8651 aPropSequence [3].Value = makeAny (aAny);
8653 aPropSequenceSequence [0] = aPropSequence;
8655 aPropertyMap [PROP_Handles] <<= aPropSequenceSequence;
8658 aPropertyMap [PROP_MirroredX] <<= Any ((sal_Bool) sal_False);
8661 aPropertyMap [PROP_MirroredY] <<= Any ((sal_Bool) sal_False);
8664 Sequence< PropertyValue > aPropSequence (3);
8666 aPropSequence [0].Name = "Coordinates";
8667 static const CustomShapeProvider::ParameterPairData aData[] = {
8669 EnhancedCustomShapeParameterType::EQUATION,
8670 EnhancedCustomShapeParameterType::EQUATION,
8671 5, 8
8674 EnhancedCustomShapeParameterType::EQUATION,
8675 EnhancedCustomShapeParameterType::EQUATION,
8676 15, 19
8679 EnhancedCustomShapeParameterType::EQUATION,
8680 EnhancedCustomShapeParameterType::NORMAL,
8681 4, 0
8684 EnhancedCustomShapeParameterType::EQUATION,
8685 EnhancedCustomShapeParameterType::EQUATION,
8686 16, 19
8689 EnhancedCustomShapeParameterType::EQUATION,
8690 EnhancedCustomShapeParameterType::EQUATION,
8691 6, 8
8694 EnhancedCustomShapeParameterType::EQUATION,
8695 EnhancedCustomShapeParameterType::EQUATION,
8696 17, 7
8699 EnhancedCustomShapeParameterType::EQUATION,
8700 EnhancedCustomShapeParameterType::EQUATION,
8701 6, 9
8704 EnhancedCustomShapeParameterType::EQUATION,
8705 EnhancedCustomShapeParameterType::EQUATION,
8706 16, 20
8709 EnhancedCustomShapeParameterType::EQUATION,
8710 EnhancedCustomShapeParameterType::EQUATION,
8711 4, 22
8714 EnhancedCustomShapeParameterType::EQUATION,
8715 EnhancedCustomShapeParameterType::EQUATION,
8716 15, 20
8719 EnhancedCustomShapeParameterType::EQUATION,
8720 EnhancedCustomShapeParameterType::EQUATION,
8721 5, 9
8724 EnhancedCustomShapeParameterType::EQUATION,
8725 EnhancedCustomShapeParameterType::EQUATION,
8726 14, 7
8729 aPropSequence [0].Value = makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData), aData));
8732 aPropSequence [1].Name = "Segments";
8733 static const sal_uInt16 nValues[] = {
8734 // Command, Count
8735 1,1,
8736 2,11,
8737 4,0,
8740 aPropSequence [1].Value = makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues ), nValues ));
8743 aPropSequence [2].Name = "TextFrames";
8744 Sequence< EnhancedCustomShapeTextFrame > aTextFrameSeq (1);
8746 EnhancedCustomShapeTextFrame aTextFrame;
8748 static const CustomShapeProvider::ParameterPairData aData =
8750 EnhancedCustomShapeParameterType::EQUATION,
8751 EnhancedCustomShapeParameterType::EQUATION,
8752 14, 19
8754 aTextFrame.TopLeft = createParameterPair(&aData);
8757 static const CustomShapeProvider::ParameterPairData aData =
8759 EnhancedCustomShapeParameterType::EQUATION,
8760 EnhancedCustomShapeParameterType::EQUATION,
8761 17, 20
8763 aTextFrame.BottomRight = createParameterPair(&aData);
8765 aTextFrameSeq [0] = aTextFrame;
8767 aPropSequence [2].Value = makeAny (aTextFrameSeq);
8769 aPropertyMap [PROP_Path] <<= aPropSequence;
8772 awt::Rectangle aRectangle;
8773 aRectangle.X = 0;
8774 aRectangle.Y = 0;
8775 aRectangle.Width = 0;
8776 aRectangle.Height = 0;
8777 aPropertyMap [PROP_ViewBox] <<= aRectangle;
8779 aPropertyMap [ PROP_Type ] <<= OUString("ooxml-star6");
8781 return aPropertyMap;
8784 } // anonymous namespace
8785 void CustomShapeProperties::initializePresetsMap2()
8787 maPresetsMap [ StaticTokenMap::get().getTokenFromUnicode( "leftRightArrowCallout" ) ] = new ShapeCleftRightArrowCallout();
8788 maPresetsMap [ StaticTokenMap::get().getTokenFromUnicode( "flowChartManualOperation" ) ] = new ShapeCflowChartManualOperation();
8789 maPresetsMap [ StaticTokenMap::get().getTokenFromUnicode( "snipRoundRect" ) ] = new ShapeCsnipRoundRect();
8790 maPresetsMap [ StaticTokenMap::get().getTokenFromUnicode( "mathPlus" ) ] = new ShapeCmathPlus();
8791 maPresetsMap [ StaticTokenMap::get().getTokenFromUnicode( "actionButtonForwardNext" ) ] = new ShapeCactionButtonForwardNext();
8792 maPresetsMap [ StaticTokenMap::get().getTokenFromUnicode( "can" ) ] = new ShapeCcan();
8793 maPresetsMap [ StaticTokenMap::get().getTokenFromUnicode( "foldedCorner" ) ] = new ShapeCfoldedCorner();
8794 maPresetsMap [ StaticTokenMap::get().getTokenFromUnicode( "star32" ) ] = new ShapeCstar32();
8795 maPresetsMap [ StaticTokenMap::get().getTokenFromUnicode( "flowChartInternalStorage" ) ] = new ShapeCflowChartInternalStorage();
8796 maPresetsMap [ StaticTokenMap::get().getTokenFromUnicode( "upDownArrow" ) ] = new ShapeCupDownArrow();
8797 maPresetsMap [ StaticTokenMap::get().getTokenFromUnicode( "irregularSeal2" ) ] = new ShapeCirregularSeal2();
8798 maPresetsMap [ StaticTokenMap::get().getTokenFromUnicode( "mathEqual" ) ] = new ShapeCmathEqual();
8799 maPresetsMap [ StaticTokenMap::get().getTokenFromUnicode( "star12" ) ] = new ShapeCstar12();
8800 maPresetsMap [ StaticTokenMap::get().getTokenFromUnicode( "uturnArrow" ) ] = new ShapeCuturnArrow();
8801 maPresetsMap [ StaticTokenMap::get().getTokenFromUnicode( "squareTabs" ) ] = new ShapeCsquareTabs();
8802 maPresetsMap [ StaticTokenMap::get().getTokenFromUnicode( "leftRightUpArrow" ) ] = new ShapeCleftRightUpArrow();
8803 maPresetsMap [ StaticTokenMap::get().getTokenFromUnicode( "homePlate" ) ] = new ShapeChomePlate();
8804 maPresetsMap [ StaticTokenMap::get().getTokenFromUnicode( "dodecagon" ) ] = new ShapeCdodecagon();
8805 maPresetsMap [ StaticTokenMap::get().getTokenFromUnicode( "leftArrowCallout" ) ] = new ShapeCleftArrowCallout();
8806 maPresetsMap [ StaticTokenMap::get().getTokenFromUnicode( "chord" ) ] = new ShapeCchord();
8807 maPresetsMap [ StaticTokenMap::get().getTokenFromUnicode( "quadArrowCallout" ) ] = new ShapeCquadArrowCallout();
8808 maPresetsMap [ StaticTokenMap::get().getTokenFromUnicode( "actionButtonBeginning" ) ] = new ShapeCactionButtonBeginning();
8809 maPresetsMap [ StaticTokenMap::get().getTokenFromUnicode( "ellipse" ) ] = new ShapeCellipse();
8810 maPresetsMap [ StaticTokenMap::get().getTokenFromUnicode( "actionButtonEnd" ) ] = new ShapeCactionButtonEnd();
8811 maPresetsMap [ StaticTokenMap::get().getTokenFromUnicode( "arc" ) ] = new ShapeCarc();
8812 maPresetsMap [ StaticTokenMap::get().getTokenFromUnicode( "star16" ) ] = new ShapeCstar16();
8813 maPresetsMap [ StaticTokenMap::get().getTokenFromUnicode( "parallelogram" ) ] = new ShapeCparallelogram();
8814 maPresetsMap [ StaticTokenMap::get().getTokenFromUnicode( "bevel" ) ] = new ShapeCbevel();
8815 maPresetsMap [ StaticTokenMap::get().getTokenFromUnicode( "roundRect" ) ] = new ShapeCroundRect();
8816 maPresetsMap [ StaticTokenMap::get().getTokenFromUnicode( "accentCallout1" ) ] = new ShapeCaccentCallout1();
8817 maPresetsMap [ StaticTokenMap::get().getTokenFromUnicode( "flowChartSort" ) ] = new ShapeCflowChartSort();
8818 maPresetsMap [ StaticTokenMap::get().getTokenFromUnicode( "star8" ) ] = new ShapeCstar8();
8819 maPresetsMap [ StaticTokenMap::get().getTokenFromUnicode( "flowChartAlternateProcess" ) ] = new ShapeCflowChartAlternateProcess();
8820 maPresetsMap [ StaticTokenMap::get().getTokenFromUnicode( "moon" ) ] = new ShapeCmoon();
8821 maPresetsMap [ StaticTokenMap::get().getTokenFromUnicode( "star6" ) ] = new ShapeCstar6();
8824 } } // oox // drawingml