diff options
author | Tor Lillqvist <tml@iki.fi> | 2013-08-15 17:12:02 +0300 |
---|---|---|
committer | Tor Lillqvist <tml@iki.fi> | 2013-08-15 22:53:36 +0300 |
commit | f1567edb7fc2661e1e05b95243bee65fc268984d (patch) | |
tree | 16068c12b6801aeebfb2092f683e87732c3794dc /oox | |
parent | 8b1af0d6f476c8953611cbc9bd3510fa6913badc (diff) |
Update the custom shape preset source files to actually be generated
They had been edited manually a couple of times...
(Instead in the previous commits I edited the generating script and the input
data.)
Change-Id: I3c89d021450a3c3e64055991450c205251fdd41f
Diffstat (limited to 'oox')
-rw-r--r-- | oox/source/drawingml/customshapepresets1.cxx | 14 | ||||
-rw-r--r-- | oox/source/drawingml/customshapepresets2.cxx | 444 | ||||
-rw-r--r-- | oox/source/drawingml/customshapepresets3.cxx | 1047 | ||||
-rw-r--r-- | oox/source/drawingml/customshapepresets4.cxx | 580 | ||||
-rw-r--r-- | oox/source/drawingml/customshapepresets5.cxx | 333 | ||||
-rw-r--r-- | oox/source/drawingml/customshapepresets6.cxx | 132 |
6 files changed, 1287 insertions, 1263 deletions
diff --git a/oox/source/drawingml/customshapepresets1.cxx b/oox/source/drawingml/customshapepresets1.cxx index f2bcb4baa119..9e7371f6fa15 100644 --- a/oox/source/drawingml/customshapepresets1.cxx +++ b/oox/source/drawingml/customshapepresets1.cxx @@ -1,8 +1,12 @@ -// this file was generated by: ./generatePresetsCXX.pl -// please do not edit +// +// This file was generated by: ./generatePresetsCXX.pl +// +// Please, DO NOT EDIT. +// +// We mean it. -#include "oox/drawingml/customshapeproperties.hxx" -#include "oox/token/tokenmap.hxx" +#include <oox/drawingml/customshapeproperties.hxx> +#include <oox/token/tokenmap.hxx> #include <com/sun/star/awt/Rectangle.hpp> #include <com/sun/star/awt/Size.hpp> #include <com/sun/star/drawing/EnhancedCustomShapeAdjustmentValue.hpp> @@ -9649,7 +9653,7 @@ void CustomShapeProperties::initializePresetsMap1() maPresetsMap [ StaticTokenMap::get().getTokenFromUnicode( "octagon" ) ] = new ShapeCoctagon(); maPresetsMap [ StaticTokenMap::get().getTokenFromUnicode( "leftRightRibbon" ) ] = new ShapeCleftRightRibbon(); maPresetsMap [ StaticTokenMap::get().getTokenFromUnicode( "actionButtonInformation" ) ] = new ShapeCactionButtonInformation(); - maPresetsMap [ StaticTokenMap::get().getTokenFromUnicode( "bentConnector5" ) ] = new ShapeCbentConnector5(); + maPresetsMap [ StaticTokenMap::get().getTokenFromUnicode( "bentConnector5" ) ] = new ShapeCbentConnector5(); maPresetsMap [ StaticTokenMap::get().getTokenFromUnicode( "circularArrow" ) ] = new ShapeCcircularArrow(); maPresetsMap [ StaticTokenMap::get().getTokenFromUnicode( "downArrowCallout" ) ] = new ShapeCdownArrowCallout(); maPresetsMap [ StaticTokenMap::get().getTokenFromUnicode( "mathMinus" ) ] = new ShapeCmathMinus(); diff --git a/oox/source/drawingml/customshapepresets2.cxx b/oox/source/drawingml/customshapepresets2.cxx index 023588a1fd36..315660de32c9 100644 --- a/oox/source/drawingml/customshapepresets2.cxx +++ b/oox/source/drawingml/customshapepresets2.cxx @@ -1,8 +1,12 @@ -// this file was generated by: ./generatePresetsCXX.pl -// please do not edit +// +// This file was generated by: ./generatePresetsCXX.pl +// +// Please, DO NOT EDIT. +// +// We mean it. -#include "oox/drawingml/customshapeproperties.hxx" -#include "oox/token/tokenmap.hxx" +#include <oox/drawingml/customshapeproperties.hxx> +#include <oox/token/tokenmap.hxx> #include <com/sun/star/awt/Rectangle.hpp> #include <com/sun/star/awt/Size.hpp> #include <com/sun/star/drawing/EnhancedCustomShapeAdjustmentValue.hpp> @@ -4279,6 +4283,222 @@ class ShapeCleftRightUpArrow : public CustomShapeProvider return aPropertyMap; } }; +class ShapeCupArrow : public CustomShapeProvider +{ + virtual PropertyMap getProperties() + { + PropertyMap aPropertyMap; + + { + Sequence< EnhancedCustomShapeAdjustmentValue > aAdjSequence (2); + { + Any aAny ((sal_Int32) 50000); + aAdjSequence [0].Value = aAny; + aAdjSequence [0].Name = "adj1"; + } + { + Any aAny ((sal_Int32) 50000); + aAdjSequence [1].Value = aAny; + aAdjSequence [1].Name = "adj2"; + } + aPropertyMap [PROP_AdjustmentValues] <<= aAdjSequence; + } + { + static const char *aStrings[] = { + "min(logwidth,logheight)", + "100000*logheight/?0 ", + "if(0-$0 ,0,if(100000-$0 ,$0 ,100000))", + "if(0-$1 ,0,if(?1 -$1 ,$1 ,?1 ))", + "?0 *?3 /100000", + "0+?4 -0", + "logwidth*?2 /200000", + "logwidth/2", + "?7 +0-?6 ", + "?7 +?6 -0", + "logwidth/2", + "?8 *?4 /?10 ", + "?5 +0-?11 ", + "logheight", + "logwidth" + }; + aPropertyMap [PROP_Equations] <<= createStringSequence( SAL_N_ELEMENTS( aStrings ), aStrings ); + } + { + Sequence< Sequence < PropertyValue > > aPropSequenceSequence (2); + { + Sequence< PropertyValue > aPropSequence (4); + { + aPropSequence [0].Name = "Position"; + static const CustomShapeProvider::ParameterPairData aData = + { + EnhancedCustomShapeParameterType::EQUATION, + EnhancedCustomShapeParameterType::EQUATION, + 8, 13 + }; + aPropSequence [0].Value = makeAny (createParameterPair(&aData)); + } + { + aPropSequence [1].Name = "RangeXMaximum"; + EnhancedCustomShapeParameter aParameter; + Any aAny ((sal_Int32) 100000); + aParameter.Value = aAny; + aParameter.Type = EnhancedCustomShapeParameterType::NORMAL; + aPropSequence [1].Value = makeAny (aParameter); + } + { + aPropSequence [2].Name = "RangeXMinimum"; + EnhancedCustomShapeParameter aParameter; + Any aAny ((sal_Int32) 0); + aParameter.Value = aAny; + aParameter.Type = EnhancedCustomShapeParameterType::NORMAL; + aPropSequence [2].Value = makeAny (aParameter); + } + { + aPropSequence [3].Name = "RefX"; + Any aAny ((sal_Int32) 0); + aPropSequence [3].Value = makeAny (aAny); + } + aPropSequenceSequence [0] = aPropSequence; + } + { + Sequence< PropertyValue > aPropSequence (4); + { + aPropSequence [0].Name = "Position"; + static const CustomShapeProvider::ParameterPairData aData = + { + EnhancedCustomShapeParameterType::NORMAL, + EnhancedCustomShapeParameterType::EQUATION, + 0, 5 + }; + aPropSequence [0].Value = makeAny (createParameterPair(&aData)); + } + { + aPropSequence [1].Name = "RangeYMaximum"; + EnhancedCustomShapeParameter aParameter; + Any aAny ((sal_Int32) 1); + aParameter.Value = aAny; + aParameter.Type = EnhancedCustomShapeParameterType::EQUATION; + aPropSequence [1].Value = makeAny (aParameter); + } + { + aPropSequence [2].Name = "RangeYMinimum"; + EnhancedCustomShapeParameter aParameter; + Any aAny ((sal_Int32) 0); + aParameter.Value = aAny; + aParameter.Type = EnhancedCustomShapeParameterType::NORMAL; + aPropSequence [2].Value = makeAny (aParameter); + } + { + aPropSequence [3].Name = "RefY"; + Any aAny ((sal_Int32) 1); + aPropSequence [3].Value = makeAny (aAny); + } + aPropSequenceSequence [1] = aPropSequence; + } + aPropertyMap [PROP_Handles] <<= aPropSequenceSequence; + } + { + aPropertyMap [PROP_MirroredX] <<= Any ((sal_Bool) sal_False); + } + { + aPropertyMap [PROP_MirroredY] <<= Any ((sal_Bool) sal_False); + } + { + Sequence< PropertyValue > aPropSequence (3); + { + aPropSequence [0].Name = "Coordinates"; + static const CustomShapeProvider::ParameterPairData aData[] = { + { + EnhancedCustomShapeParameterType::NORMAL, + EnhancedCustomShapeParameterType::EQUATION, + 0, 5 + }, + { + EnhancedCustomShapeParameterType::EQUATION, + EnhancedCustomShapeParameterType::NORMAL, + 7, 0 + }, + { + EnhancedCustomShapeParameterType::EQUATION, + EnhancedCustomShapeParameterType::EQUATION, + 14, 5 + }, + { + EnhancedCustomShapeParameterType::EQUATION, + EnhancedCustomShapeParameterType::EQUATION, + 9, 5 + }, + { + EnhancedCustomShapeParameterType::EQUATION, + EnhancedCustomShapeParameterType::EQUATION, + 9, 13 + }, + { + EnhancedCustomShapeParameterType::EQUATION, + EnhancedCustomShapeParameterType::EQUATION, + 8, 13 + }, + { + EnhancedCustomShapeParameterType::EQUATION, + EnhancedCustomShapeParameterType::EQUATION, + 8, 5 + } + }; + aPropSequence [0].Value = makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData), aData)); + } + { + aPropSequence [1].Name = "Segments"; + static const sal_uInt16 nValues[] = { + // Command, Count + 1,1, + 2,6, + 4,0, + 5,0 + }; + aPropSequence [1].Value = makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues ), nValues )); + } + { + aPropSequence [2].Name = "TextFrames"; + Sequence< EnhancedCustomShapeTextFrame > aTextFrameSeq (1); + { + EnhancedCustomShapeTextFrame aTextFrame; + { + static const CustomShapeProvider::ParameterPairData aData = + { + EnhancedCustomShapeParameterType::EQUATION, + EnhancedCustomShapeParameterType::EQUATION, + 8, 12 + }; + aTextFrame.TopLeft = createParameterPair(&aData); + } + { + static const CustomShapeProvider::ParameterPairData aData = + { + EnhancedCustomShapeParameterType::EQUATION, + EnhancedCustomShapeParameterType::EQUATION, + 9, 13 + }; + aTextFrame.BottomRight = createParameterPair(&aData); + } + aTextFrameSeq [0] = aTextFrame; + } + aPropSequence [2].Value = makeAny (aTextFrameSeq); + } + aPropertyMap [PROP_Path] <<= aPropSequence; + } + { + awt::Rectangle aRectangle; + aRectangle.X = 0; + aRectangle.Y = 0; + aRectangle.Width = 0; + aRectangle.Height = 0; + aPropertyMap [PROP_ViewBox] <<= aRectangle; + } + aPropertyMap [ PROP_Type ] <<= OUString("ooxml-upArrow"); + + return aPropertyMap; + } +}; class ShapeChomePlate : public CustomShapeProvider { virtual PropertyMap getProperties() @@ -8567,220 +8787,6 @@ class ShapeCmoon : public CustomShapeProvider return aPropertyMap; } }; -class ShapeCstar6 : public CustomShapeProvider -{ - virtual PropertyMap getProperties() - { - PropertyMap aPropertyMap; - - { - Sequence< EnhancedCustomShapeAdjustmentValue > aAdjSequence (2); - { - Any aAny ((sal_Int32) 28868); - aAdjSequence [0].Value = aAny; - aAdjSequence [0].Name = "adj"; - } - { - Any aAny ((sal_Int32) 115470); - aAdjSequence [1].Value = aAny; - aAdjSequence [1].Name = "hf"; - } - aPropertyMap [PROP_AdjustmentValues] <<= aAdjSequence; - } - { - static const char *aStrings[] = { - "if(0-$0 ,0,if(50000-$0 ,$0 ,50000))", - "logwidth/2", - "?1 *$1 /100000", - "?2 *cos(pi*(1800000)/10800000)", - "logwidth/2", - "?4 +0-?3 ", - "?4 +?3 -0", - "logheight/2", - "logheight/4", - "?7 +?8 -0", - "?2 *?0 /50000", - "logheight/2", - "?11 *?0 /50000", - "?10 *1/2", - "?4 +0-?10 ", - "?4 +0-?13 ", - "?4 +?13 -0", - "?4 +?10 -0", - "?12 *sin(pi*(3600000)/10800000)", - "?7 +0-?18 ", - "?7 +?18 -0", - "?7 +0-?12 ", - "logheight" - }; - aPropertyMap [PROP_Equations] <<= createStringSequence( SAL_N_ELEMENTS( aStrings ), aStrings ); - } - { - Sequence< Sequence < PropertyValue > > aPropSequenceSequence (1); - { - Sequence< PropertyValue > aPropSequence (4); - { - aPropSequence [0].Name = "Position"; - static const CustomShapeProvider::ParameterPairData aData = - { - EnhancedCustomShapeParameterType::EQUATION, - EnhancedCustomShapeParameterType::EQUATION, - 4, 21 - }; - aPropSequence [0].Value = makeAny (createParameterPair(&aData)); - } - { - aPropSequence [1].Name = "RangeYMaximum"; - EnhancedCustomShapeParameter aParameter; - Any aAny ((sal_Int32) 50000); - aParameter.Value = aAny; - aParameter.Type = EnhancedCustomShapeParameterType::NORMAL; - aPropSequence [1].Value = makeAny (aParameter); - } - { - aPropSequence [2].Name = "RangeYMinimum"; - EnhancedCustomShapeParameter aParameter; - Any aAny ((sal_Int32) 0); - aParameter.Value = aAny; - aParameter.Type = EnhancedCustomShapeParameterType::NORMAL; - aPropSequence [2].Value = makeAny (aParameter); - } - { - aPropSequence [3].Name = "RefY"; - Any aAny ((sal_Int32) 0); - aPropSequence [3].Value = makeAny (aAny); - } - aPropSequenceSequence [0] = aPropSequence; - } - aPropertyMap [PROP_Handles] <<= aPropSequenceSequence; - } - { - aPropertyMap [PROP_MirroredX] <<= Any ((sal_Bool) sal_False); - } - { - aPropertyMap [PROP_MirroredY] <<= Any ((sal_Bool) sal_False); - } - { - Sequence< PropertyValue > aPropSequence (3); - { - aPropSequence [0].Name = "Coordinates"; - static const CustomShapeProvider::ParameterPairData aData[] = { - { - EnhancedCustomShapeParameterType::EQUATION, - EnhancedCustomShapeParameterType::EQUATION, - 5, 8 - }, - { - EnhancedCustomShapeParameterType::EQUATION, - EnhancedCustomShapeParameterType::EQUATION, - 15, 19 - }, - { - EnhancedCustomShapeParameterType::EQUATION, - EnhancedCustomShapeParameterType::NORMAL, - 4, 0 - }, - { - EnhancedCustomShapeParameterType::EQUATION, - EnhancedCustomShapeParameterType::EQUATION, - 16, 19 - }, - { - EnhancedCustomShapeParameterType::EQUATION, - EnhancedCustomShapeParameterType::EQUATION, - 6, 8 - }, - { - EnhancedCustomShapeParameterType::EQUATION, - EnhancedCustomShapeParameterType::EQUATION, - 17, 7 - }, - { - EnhancedCustomShapeParameterType::EQUATION, - EnhancedCustomShapeParameterType::EQUATION, - 6, 9 - }, - { - EnhancedCustomShapeParameterType::EQUATION, - EnhancedCustomShapeParameterType::EQUATION, - 16, 20 - }, - { - EnhancedCustomShapeParameterType::EQUATION, - EnhancedCustomShapeParameterType::EQUATION, - 4, 22 - }, - { - EnhancedCustomShapeParameterType::EQUATION, - EnhancedCustomShapeParameterType::EQUATION, - 15, 20 - }, - { - EnhancedCustomShapeParameterType::EQUATION, - EnhancedCustomShapeParameterType::EQUATION, - 5, 9 - }, - { - EnhancedCustomShapeParameterType::EQUATION, - EnhancedCustomShapeParameterType::EQUATION, - 14, 7 - } - }; - aPropSequence [0].Value = makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData), aData)); - } - { - aPropSequence [1].Name = "Segments"; - static const sal_uInt16 nValues[] = { - // Command, Count - 1,1, - 2,11, - 4,0, - 5,0 - }; - aPropSequence [1].Value = makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues ), nValues )); - } - { - aPropSequence [2].Name = "TextFrames"; - Sequence< EnhancedCustomShapeTextFrame > aTextFrameSeq (1); - { - EnhancedCustomShapeTextFrame aTextFrame; - { - static const CustomShapeProvider::ParameterPairData aData = - { - EnhancedCustomShapeParameterType::EQUATION, - EnhancedCustomShapeParameterType::EQUATION, - 14, 19 - }; - aTextFrame.TopLeft = createParameterPair(&aData); - } - { - static const CustomShapeProvider::ParameterPairData aData = - { - EnhancedCustomShapeParameterType::EQUATION, - EnhancedCustomShapeParameterType::EQUATION, - 17, 20 - }; - aTextFrame.BottomRight = createParameterPair(&aData); - } - aTextFrameSeq [0] = aTextFrame; - } - aPropSequence [2].Value = makeAny (aTextFrameSeq); - } - aPropertyMap [PROP_Path] <<= aPropSequence; - } - { - awt::Rectangle aRectangle; - aRectangle.X = 0; - aRectangle.Y = 0; - aRectangle.Width = 0; - aRectangle.Height = 0; - aPropertyMap [PROP_ViewBox] <<= aRectangle; - } - aPropertyMap [ PROP_Type ] <<= OUString("ooxml-star6"); - - return aPropertyMap; - } -}; } // anonymous namespace void CustomShapeProperties::initializePresetsMap2() { @@ -8800,6 +8806,7 @@ void CustomShapeProperties::initializePresetsMap2() maPresetsMap [ StaticTokenMap::get().getTokenFromUnicode( "uturnArrow" ) ] = new ShapeCuturnArrow(); maPresetsMap [ StaticTokenMap::get().getTokenFromUnicode( "squareTabs" ) ] = new ShapeCsquareTabs(); maPresetsMap [ StaticTokenMap::get().getTokenFromUnicode( "leftRightUpArrow" ) ] = new ShapeCleftRightUpArrow(); + maPresetsMap [ StaticTokenMap::get().getTokenFromUnicode( "upArrow" ) ] = new ShapeCupArrow(); maPresetsMap [ StaticTokenMap::get().getTokenFromUnicode( "homePlate" ) ] = new ShapeChomePlate(); maPresetsMap [ StaticTokenMap::get().getTokenFromUnicode( "dodecagon" ) ] = new ShapeCdodecagon(); maPresetsMap [ StaticTokenMap::get().getTokenFromUnicode( "leftArrowCallout" ) ] = new ShapeCleftArrowCallout(); @@ -8818,7 +8825,6 @@ void CustomShapeProperties::initializePresetsMap2() maPresetsMap [ StaticTokenMap::get().getTokenFromUnicode( "star8" ) ] = new ShapeCstar8(); maPresetsMap [ StaticTokenMap::get().getTokenFromUnicode( "flowChartAlternateProcess" ) ] = new ShapeCflowChartAlternateProcess(); maPresetsMap [ StaticTokenMap::get().getTokenFromUnicode( "moon" ) ] = new ShapeCmoon(); - maPresetsMap [ StaticTokenMap::get().getTokenFromUnicode( "star6" ) ] = new ShapeCstar6(); } } } // oox // drawingml diff --git a/oox/source/drawingml/customshapepresets3.cxx b/oox/source/drawingml/customshapepresets3.cxx index 7208cf125a53..171225abd167 100644 --- a/oox/source/drawingml/customshapepresets3.cxx +++ b/oox/source/drawingml/customshapepresets3.cxx @@ -1,8 +1,12 @@ -// this file was generated by: ./generatePresetsCXX.pl -// please do not edit +// +// This file was generated by: ./generatePresetsCXX.pl +// +// Please, DO NOT EDIT. +// +// We mean it. -#include "oox/drawingml/customshapeproperties.hxx" -#include "oox/token/tokenmap.hxx" +#include <oox/drawingml/customshapeproperties.hxx> +#include <oox/token/tokenmap.hxx> #include <com/sun/star/awt/Rectangle.hpp> #include <com/sun/star/awt/Size.hpp> #include <com/sun/star/drawing/EnhancedCustomShapeAdjustmentValue.hpp> @@ -19,6 +23,220 @@ namespace oox { namespace drawingml { namespace { +class ShapeCstar6 : public CustomShapeProvider +{ + virtual PropertyMap getProperties() + { + PropertyMap aPropertyMap; + + { + Sequence< EnhancedCustomShapeAdjustmentValue > aAdjSequence (2); + { + Any aAny ((sal_Int32) 28868); + aAdjSequence [0].Value = aAny; + aAdjSequence [0].Name = "adj"; + } + { + Any aAny ((sal_Int32) 115470); + aAdjSequence [1].Value = aAny; + aAdjSequence [1].Name = "hf"; + } + aPropertyMap [PROP_AdjustmentValues] <<= aAdjSequence; + } + { + static const char *aStrings[] = { + "if(0-$0 ,0,if(50000-$0 ,$0 ,50000))", + "logwidth/2", + "?1 *$1 /100000", + "?2 *cos(pi*(1800000)/10800000)", + "logwidth/2", + "?4 +0-?3 ", + "?4 +?3 -0", + "logheight/2", + "logheight/4", + "?7 +?8 -0", + "?2 *?0 /50000", + "logheight/2", + "?11 *?0 /50000", + "?10 *1/2", + "?4 +0-?10 ", + "?4 +0-?13 ", + "?4 +?13 -0", + "?4 +?10 -0", + "?12 *sin(pi*(3600000)/10800000)", + "?7 +0-?18 ", + "?7 +?18 -0", + "?7 +0-?12 ", + "logheight" + }; + aPropertyMap [PROP_Equations] <<= createStringSequence( SAL_N_ELEMENTS( aStrings ), aStrings ); + } + { + Sequence< Sequence < PropertyValue > > aPropSequenceSequence (1); + { + Sequence< PropertyValue > aPropSequence (4); + { + aPropSequence [0].Name = "Position"; + static const CustomShapeProvider::ParameterPairData aData = + { + EnhancedCustomShapeParameterType::EQUATION, + EnhancedCustomShapeParameterType::EQUATION, + 4, 21 + }; + aPropSequence [0].Value = makeAny (createParameterPair(&aData)); + } + { + aPropSequence [1].Name = "RangeYMaximum"; + EnhancedCustomShapeParameter aParameter; + Any aAny ((sal_Int32) 50000); + aParameter.Value = aAny; + aParameter.Type = EnhancedCustomShapeParameterType::NORMAL; + aPropSequence [1].Value = makeAny (aParameter); + } + { + aPropSequence [2].Name = "RangeYMinimum"; + EnhancedCustomShapeParameter aParameter; + Any aAny ((sal_Int32) 0); + aParameter.Value = aAny; + aParameter.Type = EnhancedCustomShapeParameterType::NORMAL; + aPropSequence [2].Value = makeAny (aParameter); + } + { + aPropSequence [3].Name = "RefY"; + Any aAny ((sal_Int32) 0); + aPropSequence [3].Value = makeAny (aAny); + } + aPropSequenceSequence [0] = aPropSequence; + } + aPropertyMap [PROP_Handles] <<= aPropSequenceSequence; + } + { + aPropertyMap [PROP_MirroredX] <<= Any ((sal_Bool) sal_False); + } + { + aPropertyMap [PROP_MirroredY] <<= Any ((sal_Bool) sal_False); + } + { + Sequence< PropertyValue > aPropSequence (3); + { + aPropSequence [0].Name = "Coordinates"; + static const CustomShapeProvider::ParameterPairData aData[] = { + { + EnhancedCustomShapeParameterType::EQUATION, + EnhancedCustomShapeParameterType::EQUATION, + 5, 8 + }, + { + EnhancedCustomShapeParameterType::EQUATION, + EnhancedCustomShapeParameterType::EQUATION, + 15, 19 + }, + { + EnhancedCustomShapeParameterType::EQUATION, + EnhancedCustomShapeParameterType::NORMAL, + 4, 0 + }, + { + EnhancedCustomShapeParameterType::EQUATION, + EnhancedCustomShapeParameterType::EQUATION, + 16, 19 + }, + { + EnhancedCustomShapeParameterType::EQUATION, + EnhancedCustomShapeParameterType::EQUATION, + 6, 8 + }, + { + EnhancedCustomShapeParameterType::EQUATION, + EnhancedCustomShapeParameterType::EQUATION, + 17, 7 + }, + { + EnhancedCustomShapeParameterType::EQUATION, + EnhancedCustomShapeParameterType::EQUATION, + 6, 9 + }, + { + EnhancedCustomShapeParameterType::EQUATION, + EnhancedCustomShapeParameterType::EQUATION, + 16, 20 + }, + { + EnhancedCustomShapeParameterType::EQUATION, + EnhancedCustomShapeParameterType::EQUATION, + 4, 22 + }, + { + EnhancedCustomShapeParameterType::EQUATION, + EnhancedCustomShapeParameterType::EQUATION, + 15, 20 + }, + { + EnhancedCustomShapeParameterType::EQUATION, + EnhancedCustomShapeParameterType::EQUATION, + 5, 9 + }, + { + EnhancedCustomShapeParameterType::EQUATION, + EnhancedCustomShapeParameterType::EQUATION, + 14, 7 + } + }; + aPropSequence [0].Value = makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData), aData)); + } + { + aPropSequence [1].Name = "Segments"; + static const sal_uInt16 nValues[] = { + // Command, Count + 1,1, + 2,11, + 4,0, + 5,0 + }; + aPropSequence [1].Value = makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues ), nValues )); + } + { + aPropSequence [2].Name = "TextFrames"; + Sequence< EnhancedCustomShapeTextFrame > aTextFrameSeq (1); + { + EnhancedCustomShapeTextFrame aTextFrame; + { + static const CustomShapeProvider::ParameterPairData aData = + { + EnhancedCustomShapeParameterType::EQUATION, + EnhancedCustomShapeParameterType::EQUATION, + 14, 19 + }; + aTextFrame.TopLeft = createParameterPair(&aData); + } + { + static const CustomShapeProvider::ParameterPairData aData = + { + EnhancedCustomShapeParameterType::EQUATION, + EnhancedCustomShapeParameterType::EQUATION, + 17, 20 + }; + aTextFrame.BottomRight = createParameterPair(&aData); + } + aTextFrameSeq [0] = aTextFrame; + } + aPropSequence [2].Value = makeAny (aTextFrameSeq); + } + aPropertyMap [PROP_Path] <<= aPropSequence; + } + { + awt::Rectangle aRectangle; + aRectangle.X = 0; + aRectangle.Y = 0; + aRectangle.Width = 0; + aRectangle.Height = 0; + aPropertyMap [PROP_ViewBox] <<= aRectangle; + } + aPropertyMap [ PROP_Type ] <<= OUString("ooxml-star6"); + + return aPropertyMap; + } +}; class ShapeCround2SameRect : public CustomShapeProvider { virtual PropertyMap getProperties() @@ -601,6 +819,340 @@ class ShapeCdiamond : public CustomShapeProvider return aPropertyMap; } }; +class ShapeCcallout2 : public CustomShapeProvider +{ + virtual PropertyMap getProperties() + { + PropertyMap aPropertyMap; + + { + Sequence< EnhancedCustomShapeAdjustmentValue > aAdjSequence (6); + { + Any aAny ((sal_Int32) 18750); + aAdjSequence [0].Value = aAny; + aAdjSequence [0].Name = "adj1"; + } + { + Any aAny ((sal_Int32) -8333); + aAdjSequence [1].Value = aAny; + aAdjSequence [1].Name = "adj2"; + } + { + Any aAny ((sal_Int32) 18750); + aAdjSequence [2].Value = aAny; + aAdjSequence [2].Name = "adj3"; + } + { + Any aAny ((sal_Int32) -16667); + aAdjSequence [3].Value = aAny; + aAdjSequence [3].Name = "adj4"; + } + { + Any aAny ((sal_Int32) 112500); + aAdjSequence [4].Value = aAny; + aAdjSequence [4].Name = "adj5"; + } + { + Any aAny ((sal_Int32) -46667); + aAdjSequence [5].Value = aAny; + aAdjSequence [5].Name = "adj6"; + } + aPropertyMap [PROP_AdjustmentValues] <<= aAdjSequence; + } + { + static const char *aStrings[] = { + "logheight*$0 /100000", + "logwidth*$1 /100000", + "logheight*$2 /100000", + "logwidth*$3 /100000", + "logheight*$4 /100000", + "logwidth*$5 /100000", + "logwidth", + "logheight/2", + "logwidth/2", + "logheight" + }; + aPropertyMap [PROP_Equations] <<= createStringSequence( SAL_N_ELEMENTS( aStrings ), aStrings ); + } + { + Sequence< Sequence < PropertyValue > > aPropSequenceSequence (3); + { + Sequence< PropertyValue > aPropSequence (7); + { + aPropSequence [0].Name = "Position"; + static const CustomShapeProvider::ParameterPairData aData = + { + EnhancedCustomShapeParameterType::EQUATION, + EnhancedCustomShapeParameterType::EQUATION, + 1, 0 + }; + aPropSequence [0].Value = makeAny (createParameterPair(&aData)); + } + { + aPropSequence [1].Name = "RangeXMaximum"; + EnhancedCustomShapeParameter aParameter; + Any aAny ((sal_Int32) 2147483647); + aParameter.Value = aAny; + aParameter.Type = EnhancedCustomShapeParameterType::NORMAL; + aPropSequence [1].Value = makeAny (aParameter); + } + { + aPropSequence [2].Name = "RangeXMinimum"; + EnhancedCustomShapeParameter aParameter; + Any aAny ((sal_Int32) -2147483647); + aParameter.Value = aAny; + aParameter.Type = EnhancedCustomShapeParameterType::NORMAL; + aPropSequence [2].Value = makeAny (aParameter); + } + { + aPropSequence [3].Name = "RangeYMaximum"; + EnhancedCustomShapeParameter aParameter; + Any aAny ((sal_Int32) 2147483647); + aParameter.Value = aAny; + aParameter.Type = EnhancedCustomShapeParameterType::NORMAL; + aPropSequence [3].Value = makeAny (aParameter); + } + { + aPropSequence [4].Name = "RangeYMinimum"; + EnhancedCustomShapeParameter aParameter; + Any aAny ((sal_Int32) -2147483647); + aParameter.Value = aAny; + aParameter.Type = EnhancedCustomShapeParameterType::NORMAL; + aPropSequence [4].Value = makeAny (aParameter); + } + { + aPropSequence [5].Name = "RefX"; + Any aAny ((sal_Int32) 1); + aPropSequence [5].Value = makeAny (aAny); + } + { + aPropSequence [6].Name = "RefY"; + Any aAny ((sal_Int32) 0); + aPropSequence [6].Value = makeAny (aAny); + } + aPropSequenceSequence [0] = aPropSequence; + } + { + Sequence< PropertyValue > aPropSequence (7); + { + aPropSequence [0].Name = "Position"; + static const CustomShapeProvider::ParameterPairData aData = + { + EnhancedCustomShapeParameterType::EQUATION, + EnhancedCustomShapeParameterType::EQUATION, + 3, 2 + }; + aPropSequence [0].Value = makeAny (createParameterPair(&aData)); + } + { + aPropSequence [1].Name = "RangeXMaximum"; + EnhancedCustomShapeParameter aParameter; + Any aAny ((sal_Int32) 2147483647); + aParameter.Value = aAny; + aParameter.Type = EnhancedCustomShapeParameterType::NORMAL; + aPropSequence [1].Value = makeAny (aParameter); + } + { + aPropSequence [2].Name = "RangeXMinimum"; + EnhancedCustomShapeParameter aParameter; + Any aAny ((sal_Int32) -2147483647); + aParameter.Value = aAny; + aParameter.Type = EnhancedCustomShapeParameterType::NORMAL; + aPropSequence [2].Value = makeAny (aParameter); + } + { + aPropSequence [3].Name = "RangeYMaximum"; + EnhancedCustomShapeParameter aParameter; + Any aAny ((sal_Int32) 2147483647); + aParameter.Value = aAny; + aParameter.Type = EnhancedCustomShapeParameterType::NORMAL; + aPropSequence [3].Value = makeAny (aParameter); + } + { + aPropSequence [4].Name = "RangeYMinimum"; + EnhancedCustomShapeParameter aParameter; + Any aAny ((sal_Int32) -2147483647); + aParameter.Value = aAny; + aParameter.Type = EnhancedCustomShapeParameterType::NORMAL; + aPropSequence [4].Value = makeAny (aParameter); + } + { + aPropSequence [5].Name = "RefX"; + Any aAny ((sal_Int32) 3); + aPropSequence [5].Value = makeAny (aAny); + } + { + aPropSequence [6].Name = "RefY"; + Any aAny ((sal_Int32) 2); + aPropSequence [6].Value = makeAny (aAny); + } + aPropSequenceSequence [1] = aPropSequence; + } + { + Sequence< PropertyValue > aPropSequence (7); + { + aPropSequence [0].Name = "Position"; + static const CustomShapeProvider::ParameterPairData aData = + { + EnhancedCustomShapeParameterType::EQUATION, + EnhancedCustomShapeParameterType::EQUATION, + 5, 4 + }; + aPropSequence [0].Value = makeAny (createParameterPair(&aData)); + } + { + aPropSequence [1].Name = "RangeXMaximum"; + EnhancedCustomShapeParameter aParameter; + Any aAny ((sal_Int32) 2147483647); + aParameter.Value = aAny; + aParameter.Type = EnhancedCustomShapeParameterType::NORMAL; + aPropSequence [1].Value = makeAny (aParameter); + } + { + aPropSequence [2].Name = "RangeXMinimum"; + EnhancedCustomShapeParameter aParameter; + Any aAny ((sal_Int32) -2147483647); + aParameter.Value = aAny; + aParameter.Type = EnhancedCustomShapeParameterType::NORMAL; + aPropSequence [2].Value = makeAny (aParameter); + } + { + aPropSequence [3].Name = "RangeYMaximum"; + EnhancedCustomShapeParameter aParameter; + Any aAny ((sal_Int32) 2147483647); + aParameter.Value = aAny; + aParameter.Type = EnhancedCustomShapeParameterType::NORMAL; + aPropSequence [3].Value = makeAny (aParameter); + } + { + aPropSequence [4].Name = "RangeYMinimum"; + EnhancedCustomShapeParameter aParameter; + Any aAny ((sal_Int32) -2147483647); + aParameter.Value = aAny; + aParameter.Type = EnhancedCustomShapeParameterType::NORMAL; + aPropSequence [4].Value = makeAny (aParameter); + } + { + aPropSequence [5].Name = "RefX"; + Any aAny ((sal_Int32) 5); + aPropSequence [5].Value = makeAny (aAny); + } + { + aPropSequence [6].Name = "RefY"; + Any aAny ((sal_Int32) 4); + aPropSequence [6].Value = makeAny (aAny); + } + aPropSequenceSequence [2] = aPropSequence; + } + aPropertyMap [PROP_Handles] <<= aPropSequenceSequence; + } + { + aPropertyMap [PROP_MirroredX] <<= Any ((sal_Bool) sal_False); + } + { + aPropertyMap [PROP_MirroredY] <<= Any ((sal_Bool) sal_False); + } + { + Sequence< PropertyValue > aPropSequence (3); + { + aPropSequence [0].Name = "Coordinates"; + static const CustomShapeProvider::ParameterPairData aData[] = { + { + EnhancedCustomShapeParameterType::NORMAL, + EnhancedCustomShapeParameterType::NORMAL, + 0, 0 + }, + { + EnhancedCustomShapeParameterType::EQUATION, + EnhancedCustomShapeParameterType::NORMAL, + 6, 0 + }, + { + EnhancedCustomShapeParameterType::EQUATION, + EnhancedCustomShapeParameterType::EQUATION, + 6, 9 + }, + { + EnhancedCustomShapeParameterType::NORMAL, + EnhancedCustomShapeParameterType::EQUATION, + 0, 9 + }, + { + EnhancedCustomShapeParameterType::EQUATION, + EnhancedCustomShapeParameterType::EQUATION, + 1, 0 + }, + { + EnhancedCustomShapeParameterType::EQUATION, + EnhancedCustomShapeParameterType::EQUATION, + 3, 2 + }, + { + EnhancedCustomShapeParameterType::EQUATION, + EnhancedCustomShapeParameterType::EQUATION, + 5, 4 + } + }; + aPropSequence [0].Value = makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData), aData)); + } + { + aPropSequence [1].Name = "Segments"; + static const sal_uInt16 nValues[] = { + // Command, Count + 1,1, + 2,3, + 4,0, + 7,0, + 5,0, + 1,1, + 2,2, + 6,0, + 5,0 + }; + aPropSequence [1].Value = makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues ), nValues )); + } + { + aPropSequence [2].Name = "TextFrames"; + Sequence< EnhancedCustomShapeTextFrame > aTextFrameSeq (1); + { + EnhancedCustomShapeTextFrame aTextFrame; + { + static const CustomShapeProvider::ParameterPairData aData = + { + EnhancedCustomShapeParameterType::NORMAL, + EnhancedCustomShapeParameterType::NORMAL, + 0, 0 + }; + aTextFrame.TopLeft = createParameterPair(&aData); + } + { + static const CustomShapeProvider::ParameterPairData aData = + { + EnhancedCustomShapeParameterType::EQUATION, + EnhancedCustomShapeParameterType::EQUATION, + 6, 9 + }; + aTextFrame.BottomRight = createParameterPair(&aData); + } + aTextFrameSeq [0] = aTextFrame; + } + aPropSequence [2].Value = makeAny (aTextFrameSeq); + } + aPropertyMap [PROP_Path] <<= aPropSequence; + } + { + awt::Rectangle aRectangle; + aRectangle.X = 0; + aRectangle.Y = 0; + aRectangle.Width = 0; + aRectangle.Height = 0; + aPropertyMap [PROP_ViewBox] <<= aRectangle; + } + aPropertyMap [ PROP_Type ] <<= OUString("ooxml-callout2"); + + return aPropertyMap; + } +}; class ShapeCellipseRibbon : public CustomShapeProvider { virtual PropertyMap getProperties() @@ -1184,340 +1736,6 @@ class ShapeCellipseRibbon : public CustomShapeProvider return aPropertyMap; } }; -class ShapeCcallout2 : public CustomShapeProvider -{ - virtual PropertyMap getProperties() - { - PropertyMap aPropertyMap; - - { - Sequence< EnhancedCustomShapeAdjustmentValue > aAdjSequence (6); - { - Any aAny ((sal_Int32) 18750); - aAdjSequence [0].Value = aAny; - aAdjSequence [0].Name = "adj1"; - } - { - Any aAny ((sal_Int32) -8333); - aAdjSequence [1].Value = aAny; - aAdjSequence [1].Name = "adj2"; - } - { - Any aAny ((sal_Int32) 18750); - aAdjSequence [2].Value = aAny; - aAdjSequence [2].Name = "adj3"; - } - { - Any aAny ((sal_Int32) -16667); - aAdjSequence [3].Value = aAny; - aAdjSequence [3].Name = "adj4"; - } - { - Any aAny ((sal_Int32) 112500); - aAdjSequence [4].Value = aAny; - aAdjSequence [4].Name = "adj5"; - } - { - Any aAny ((sal_Int32) -46667); - aAdjSequence [5].Value = aAny; - aAdjSequence [5].Name = "adj6"; - } - aPropertyMap [PROP_AdjustmentValues] <<= aAdjSequence; - } - { - static const char *aStrings[] = { - "logheight*$0 /100000", - "logwidth*$1 /100000", - "logheight*$2 /100000", - "logwidth*$3 /100000", - "logheight*$4 /100000", - "logwidth*$5 /100000", - "logwidth", - "logheight/2", - "logwidth/2", - "logheight" - }; - aPropertyMap [PROP_Equations] <<= createStringSequence( SAL_N_ELEMENTS( aStrings ), aStrings ); - } - { - Sequence< Sequence < PropertyValue > > aPropSequenceSequence (3); - { - Sequence< PropertyValue > aPropSequence (7); - { - aPropSequence [0].Name = "Position"; - static const CustomShapeProvider::ParameterPairData aData = - { - EnhancedCustomShapeParameterType::EQUATION, - EnhancedCustomShapeParameterType::EQUATION, - 1, 0 - }; - aPropSequence [0].Value = makeAny (createParameterPair(&aData)); - } - { - aPropSequence [1].Name = "RangeXMaximum"; - EnhancedCustomShapeParameter aParameter; - Any aAny ((sal_Int32) 2147483647); - aParameter.Value = aAny; - aParameter.Type = EnhancedCustomShapeParameterType::NORMAL; - aPropSequence [1].Value = makeAny (aParameter); - } - { - aPropSequence [2].Name = "RangeXMinimum"; - EnhancedCustomShapeParameter aParameter; - Any aAny ((sal_Int32) -2147483647); - aParameter.Value = aAny; - aParameter.Type = EnhancedCustomShapeParameterType::NORMAL; - aPropSequence [2].Value = makeAny (aParameter); - } - { - aPropSequence [3].Name = "RangeYMaximum"; - EnhancedCustomShapeParameter aParameter; - Any aAny ((sal_Int32) 2147483647); - aParameter.Value = aAny; - aParameter.Type = EnhancedCustomShapeParameterType::NORMAL; - aPropSequence [3].Value = makeAny (aParameter); - } - { - aPropSequence [4].Name = "RangeYMinimum"; - EnhancedCustomShapeParameter aParameter; - Any aAny ((sal_Int32) -2147483647); - aParameter.Value = aAny; - aParameter.Type = EnhancedCustomShapeParameterType::NORMAL; - aPropSequence [4].Value = makeAny (aParameter); - } - { - aPropSequence [5].Name = "RefX"; - Any aAny ((sal_Int32) 1); - aPropSequence [5].Value = makeAny (aAny); - } - { - aPropSequence [6].Name = "RefY"; - Any aAny ((sal_Int32) 0); - aPropSequence [6].Value = makeAny (aAny); - } - aPropSequenceSequence [0] = aPropSequence; - } - { - Sequence< PropertyValue > aPropSequence (7); - { - aPropSequence [0].Name = "Position"; - static const CustomShapeProvider::ParameterPairData aData = - { - EnhancedCustomShapeParameterType::EQUATION, - EnhancedCustomShapeParameterType::EQUATION, - 3, 2 - }; - aPropSequence [0].Value = makeAny (createParameterPair(&aData)); - } - { - aPropSequence [1].Name = "RangeXMaximum"; - EnhancedCustomShapeParameter aParameter; - Any aAny ((sal_Int32) 2147483647); - aParameter.Value = aAny; - aParameter.Type = EnhancedCustomShapeParameterType::NORMAL; - aPropSequence [1].Value = makeAny (aParameter); - } - { - aPropSequence [2].Name = "RangeXMinimum"; - EnhancedCustomShapeParameter aParameter; - Any aAny ((sal_Int32) -2147483647); - aParameter.Value = aAny; - aParameter.Type = EnhancedCustomShapeParameterType::NORMAL; - aPropSequence [2].Value = makeAny (aParameter); - } - { - aPropSequence [3].Name = "RangeYMaximum"; - EnhancedCustomShapeParameter aParameter; - Any aAny ((sal_Int32) 2147483647); - aParameter.Value = aAny; - aParameter.Type = EnhancedCustomShapeParameterType::NORMAL; - aPropSequence [3].Value = makeAny (aParameter); - } - { - aPropSequence [4].Name = "RangeYMinimum"; - EnhancedCustomShapeParameter aParameter; - Any aAny ((sal_Int32) -2147483647); - aParameter.Value = aAny; - aParameter.Type = EnhancedCustomShapeParameterType::NORMAL; - aPropSequence [4].Value = makeAny (aParameter); - } - { - aPropSequence [5].Name = "RefX"; - Any aAny ((sal_Int32) 3); - aPropSequence [5].Value = makeAny (aAny); - } - { - aPropSequence [6].Name = "RefY"; - Any aAny ((sal_Int32) 2); - aPropSequence [6].Value = makeAny (aAny); - } - aPropSequenceSequence [1] = aPropSequence; - } - { - Sequence< PropertyValue > aPropSequence (7); - { - aPropSequence [0].Name = "Position"; - static const CustomShapeProvider::ParameterPairData aData = - { - EnhancedCustomShapeParameterType::EQUATION, - EnhancedCustomShapeParameterType::EQUATION, - 5, 4 - }; - aPropSequence [0].Value = makeAny (createParameterPair(&aData)); - } - { - aPropSequence [1].Name = "RangeXMaximum"; - EnhancedCustomShapeParameter aParameter; - Any aAny ((sal_Int32) 2147483647); - aParameter.Value = aAny; - aParameter.Type = EnhancedCustomShapeParameterType::NORMAL; - aPropSequence [1].Value = makeAny (aParameter); - } - { - aPropSequence [2].Name = "RangeXMinimum"; - EnhancedCustomShapeParameter aParameter; - Any aAny ((sal_Int32) -2147483647); - aParameter.Value = aAny; - aParameter.Type = EnhancedCustomShapeParameterType::NORMAL; - aPropSequence [2].Value = makeAny (aParameter); - } - { - aPropSequence [3].Name = "RangeYMaximum"; - EnhancedCustomShapeParameter aParameter; - Any aAny ((sal_Int32) 2147483647); - aParameter.Value = aAny; - aParameter.Type = EnhancedCustomShapeParameterType::NORMAL; - aPropSequence [3].Value = makeAny (aParameter); - } - { - aPropSequence [4].Name = "RangeYMinimum"; - EnhancedCustomShapeParameter aParameter; - Any aAny ((sal_Int32) -2147483647); - aParameter.Value = aAny; - aParameter.Type = EnhancedCustomShapeParameterType::NORMAL; - aPropSequence [4].Value = makeAny (aParameter); - } - { - aPropSequence [5].Name = "RefX"; - Any aAny ((sal_Int32) 5); - aPropSequence [5].Value = makeAny (aAny); - } - { - aPropSequence [6].Name = "RefY"; - Any aAny ((sal_Int32) 4); - aPropSequence [6].Value = makeAny (aAny); - } - aPropSequenceSequence [2] = aPropSequence; - } - aPropertyMap [PROP_Handles] <<= aPropSequenceSequence; - } - { - aPropertyMap [PROP_MirroredX] <<= Any ((sal_Bool) sal_False); - } - { - aPropertyMap [PROP_MirroredY] <<= Any ((sal_Bool) sal_False); - } - { - Sequence< PropertyValue > aPropSequence (3); - { - aPropSequence [0].Name = "Coordinates"; - static const CustomShapeProvider::ParameterPairData aData[] = { - { - EnhancedCustomShapeParameterType::NORMAL, - EnhancedCustomShapeParameterType::NORMAL, - 0, 0 - }, - { - EnhancedCustomShapeParameterType::EQUATION, - EnhancedCustomShapeParameterType::NORMAL, - 6, 0 - }, - { - EnhancedCustomShapeParameterType::EQUATION, - EnhancedCustomShapeParameterType::EQUATION, - 6, 9 - }, - { - EnhancedCustomShapeParameterType::NORMAL, - EnhancedCustomShapeParameterType::EQUATION, - 0, 9 - }, - { - EnhancedCustomShapeParameterType::EQUATION, - EnhancedCustomShapeParameterType::EQUATION, - 1, 0 - }, - { - EnhancedCustomShapeParameterType::EQUATION, - EnhancedCustomShapeParameterType::EQUATION, - 3, 2 - }, - { - EnhancedCustomShapeParameterType::EQUATION, - EnhancedCustomShapeParameterType::EQUATION, - 5, 4 - } - }; - aPropSequence [0].Value = makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData), aData)); - } - { - aPropSequence [1].Name = "Segments"; - static const sal_uInt16 nValues[] = { - // Command, Count - 1,1, - 2,3, - 4,0, - 7,0, - 5,0, - 1,1, - 2,2, - 6,0, - 5,0 - }; - aPropSequence [1].Value = makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues ), nValues )); - } - { - aPropSequence [2].Name = "TextFrames"; - Sequence< EnhancedCustomShapeTextFrame > aTextFrameSeq (1); - { - EnhancedCustomShapeTextFrame aTextFrame; - { - static const CustomShapeProvider::ParameterPairData aData = - { - EnhancedCustomShapeParameterType::NORMAL, - EnhancedCustomShapeParameterType::NORMAL, - 0, 0 - }; - aTextFrame.TopLeft = createParameterPair(&aData); - } - { - static const CustomShapeProvider::ParameterPairData aData = - { - EnhancedCustomShapeParameterType::EQUATION, - EnhancedCustomShapeParameterType::EQUATION, - 6, 9 - }; - aTextFrame.BottomRight = createParameterPair(&aData); - } - aTextFrameSeq [0] = aTextFrame; - } - aPropSequence [2].Value = makeAny (aTextFrameSeq); - } - aPropertyMap [PROP_Path] <<= aPropSequence; - } - { - awt::Rectangle aRectangle; - aRectangle.X = 0; - aRectangle.Y = 0; - aRectangle.Width = 0; - aRectangle.Height = 0; - aPropertyMap [PROP_ViewBox] <<= aRectangle; - } - aPropertyMap [ PROP_Type ] <<= OUString("ooxml-callout2"); - - return aPropertyMap; - } -}; class ShapeCpie : public CustomShapeProvider { virtual PropertyMap getProperties() @@ -8921,163 +9139,15 @@ class ShapeCsnip2SameRect : public CustomShapeProvider return aPropertyMap; } }; -class ShapeCtriangle : public CustomShapeProvider -{ - virtual PropertyMap getProperties() - { - PropertyMap aPropertyMap; - - { - Sequence< EnhancedCustomShapeAdjustmentValue > aAdjSequence (1); - { - Any aAny ((sal_Int32) 50000); - aAdjSequence [0].Value = aAny; - aAdjSequence [0].Name = "adj"; - } - aPropertyMap [PROP_AdjustmentValues] <<= aAdjSequence; - } - { - static const char *aStrings[] = { - "if(0-$0 ,0,if(100000-$0 ,$0 ,100000))", - "logwidth*?0 /200000", - "logwidth*?0 /100000", - "logwidth/2", - "?1 +?3 -0", - "logheight/2", - "logheight", - "logwidth" - }; - aPropertyMap [PROP_Equations] <<= createStringSequence( SAL_N_ELEMENTS( aStrings ), aStrings ); - } - { - Sequence< Sequence < PropertyValue > > aPropSequenceSequence (1); - { - Sequence< PropertyValue > aPropSequence (4); - { - aPropSequence [0].Name = "Position"; - static const CustomShapeProvider::ParameterPairData aData = - { - EnhancedCustomShapeParameterType::EQUATION, - EnhancedCustomShapeParameterType::NORMAL, - 2, 0 - }; - aPropSequence [0].Value = makeAny (createParameterPair(&aData)); - } - { - aPropSequence [1].Name = "RangeXMaximum"; - EnhancedCustomShapeParameter aParameter; - Any aAny ((sal_Int32) 100000); - aParameter.Value = aAny; - aParameter.Type = EnhancedCustomShapeParameterType::NORMAL; - aPropSequence [1].Value = makeAny (aParameter); - } - { - aPropSequence [2].Name = "RangeXMinimum"; - EnhancedCustomShapeParameter aParameter; - Any aAny ((sal_Int32) 0); - aParameter.Value = aAny; - aParameter.Type = EnhancedCustomShapeParameterType::NORMAL; - aPropSequence [2].Value = makeAny (aParameter); - } - { - aPropSequence [3].Name = "RefX"; - Any aAny ((sal_Int32) 0); - aPropSequence [3].Value = makeAny (aAny); - } - aPropSequenceSequence [0] = aPropSequence; - } - aPropertyMap [PROP_Handles] <<= aPropSequenceSequence; - } - { - aPropertyMap [PROP_MirroredX] <<= Any ((sal_Bool) sal_False); - } - { - aPropertyMap [PROP_MirroredY] <<= Any ((sal_Bool) sal_False); - } - { - Sequence< PropertyValue > aPropSequence (3); - { - aPropSequence [0].Name = "Coordinates"; - static const CustomShapeProvider::ParameterPairData aData[] = { - { - EnhancedCustomShapeParameterType::NORMAL, - EnhancedCustomShapeParameterType::EQUATION, - 0, 6 - }, - { - EnhancedCustomShapeParameterType::EQUATION, - EnhancedCustomShapeParameterType::NORMAL, - 2, 0 - }, - { - EnhancedCustomShapeParameterType::EQUATION, - EnhancedCustomShapeParameterType::EQUATION, - 7, 6 - } - }; - aPropSequence [0].Value = makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData), aData)); - } - { - aPropSequence [1].Name = "Segments"; - static const sal_uInt16 nValues[] = { - // Command, Count - 1,1, - 2,2, - 4,0, - 5,0 - }; - aPropSequence [1].Value = makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues ), nValues )); - } - { - aPropSequence [2].Name = "TextFrames"; - Sequence< EnhancedCustomShapeTextFrame > aTextFrameSeq (1); - { - EnhancedCustomShapeTextFrame aTextFrame; - { - static const CustomShapeProvider::ParameterPairData aData = - { - EnhancedCustomShapeParameterType::EQUATION, - EnhancedCustomShapeParameterType::EQUATION, - 1, 5 - }; - aTextFrame.TopLeft = createParameterPair(&aData); - } - { - static const CustomShapeProvider::ParameterPairData aData = - { - EnhancedCustomShapeParameterType::EQUATION, - EnhancedCustomShapeParameterType::EQUATION, - 4, 6 - }; - aTextFrame.BottomRight = createParameterPair(&aData); - } - aTextFrameSeq [0] = aTextFrame; - } - aPropSequence [2].Value = makeAny (aTextFrameSeq); - } - aPropertyMap [PROP_Path] <<= aPropSequence; - } - { - awt::Rectangle aRectangle; - aRectangle.X = 0; - aRectangle.Y = 0; - aRectangle.Width = 0; - aRectangle.Height = 0; - aPropertyMap [PROP_ViewBox] <<= aRectangle; - } - aPropertyMap [ PROP_Type ] <<= OUString("ooxml-triangle"); - - return aPropertyMap; - } -}; } // anonymous namespace void CustomShapeProperties::initializePresetsMap3() { + maPresetsMap [ StaticTokenMap::get().getTokenFromUnicode( "star6" ) ] = new ShapeCstar6(); maPresetsMap [ StaticTokenMap::get().getTokenFromUnicode( "round2SameRect" ) ] = new ShapeCround2SameRect(); maPresetsMap [ StaticTokenMap::get().getTokenFromUnicode( "nonIsoscelesTrapezoid" ) ] = new ShapeCnonIsoscelesTrapezoid(); maPresetsMap [ StaticTokenMap::get().getTokenFromUnicode( "diamond" ) ] = new ShapeCdiamond(); - maPresetsMap [ StaticTokenMap::get().getTokenFromUnicode( "ellipseRibbon" ) ] = new ShapeCellipseRibbon(); maPresetsMap [ StaticTokenMap::get().getTokenFromUnicode( "callout2" ) ] = new ShapeCcallout2(); + maPresetsMap [ StaticTokenMap::get().getTokenFromUnicode( "ellipseRibbon" ) ] = new ShapeCellipseRibbon(); maPresetsMap [ StaticTokenMap::get().getTokenFromUnicode( "pie" ) ] = new ShapeCpie(); maPresetsMap [ StaticTokenMap::get().getTokenFromUnicode( "star4" ) ] = new ShapeCstar4(); maPresetsMap [ StaticTokenMap::get().getTokenFromUnicode( "flowChartPredefinedProcess" ) ] = new ShapeCflowChartPredefinedProcess(); @@ -9107,7 +9177,6 @@ void CustomShapeProperties::initializePresetsMap3() maPresetsMap [ StaticTokenMap::get().getTokenFromUnicode( "gear6" ) ] = new ShapeCgear6(); maPresetsMap [ StaticTokenMap::get().getTokenFromUnicode( "halfFrame" ) ] = new ShapeChalfFrame(); maPresetsMap [ StaticTokenMap::get().getTokenFromUnicode( "snip2SameRect" ) ] = new ShapeCsnip2SameRect(); - maPresetsMap [ StaticTokenMap::get().getTokenFromUnicode( "triangle" ) ] = new ShapeCtriangle(); } } } // oox // drawingml diff --git a/oox/source/drawingml/customshapepresets4.cxx b/oox/source/drawingml/customshapepresets4.cxx index f79fb8e53e5f..7a01d6d29420 100644 --- a/oox/source/drawingml/customshapepresets4.cxx +++ b/oox/source/drawingml/customshapepresets4.cxx @@ -1,8 +1,12 @@ -// this file was generated by: ./generatePresetsCXX.pl -// please do not edit +// +// This file was generated by: ./generatePresetsCXX.pl +// +// Please, DO NOT EDIT. +// +// We mean it. -#include "oox/drawingml/customshapeproperties.hxx" -#include "oox/token/tokenmap.hxx" +#include <oox/drawingml/customshapeproperties.hxx> +#include <oox/token/tokenmap.hxx> #include <com/sun/star/awt/Rectangle.hpp> #include <com/sun/star/awt/Size.hpp> #include <com/sun/star/drawing/EnhancedCustomShapeAdjustmentValue.hpp> @@ -19,6 +23,155 @@ namespace oox { namespace drawingml { namespace { +class ShapeCtriangle : public CustomShapeProvider +{ + virtual PropertyMap getProperties() + { + PropertyMap aPropertyMap; + + { + Sequence< EnhancedCustomShapeAdjustmentValue > aAdjSequence (1); + { + Any aAny ((sal_Int32) 50000); + aAdjSequence [0].Value = aAny; + aAdjSequence [0].Name = "adj"; + } + aPropertyMap [PROP_AdjustmentValues] <<= aAdjSequence; + } + { + static const char *aStrings[] = { + "if(0-$0 ,0,if(100000-$0 ,$0 ,100000))", + "logwidth*?0 /200000", + "logwidth*?0 /100000", + "logwidth/2", + "?1 +?3 -0", + "logheight/2", + "logheight", + "logwidth" + }; + aPropertyMap [PROP_Equations] <<= createStringSequence( SAL_N_ELEMENTS( aStrings ), aStrings ); + } + { + Sequence< Sequence < PropertyValue > > aPropSequenceSequence (1); + { + Sequence< PropertyValue > aPropSequence (4); + { + aPropSequence [0].Name = "Position"; + static const CustomShapeProvider::ParameterPairData aData = + { + EnhancedCustomShapeParameterType::EQUATION, + EnhancedCustomShapeParameterType::NORMAL, + 2, 0 + }; + aPropSequence [0].Value = makeAny (createParameterPair(&aData)); + } + { + aPropSequence [1].Name = "RangeXMaximum"; + EnhancedCustomShapeParameter aParameter; + Any aAny ((sal_Int32) 100000); + aParameter.Value = aAny; + aParameter.Type = EnhancedCustomShapeParameterType::NORMAL; + aPropSequence [1].Value = makeAny (aParameter); + } + { + aPropSequence [2].Name = "RangeXMinimum"; + EnhancedCustomShapeParameter aParameter; + Any aAny ((sal_Int32) 0); + aParameter.Value = aAny; + aParameter.Type = EnhancedCustomShapeParameterType::NORMAL; + aPropSequence [2].Value = makeAny (aParameter); + } + { + aPropSequence [3].Name = "RefX"; + Any aAny ((sal_Int32) 0); + aPropSequence [3].Value = makeAny (aAny); + } + aPropSequenceSequence [0] = aPropSequence; + } + aPropertyMap [PROP_Handles] <<= aPropSequenceSequence; + } + { + aPropertyMap [PROP_MirroredX] <<= Any ((sal_Bool) sal_False); + } + { + aPropertyMap [PROP_MirroredY] <<= Any ((sal_Bool) sal_False); + } + { + Sequence< PropertyValue > aPropSequence (3); + { + aPropSequence [0].Name = "Coordinates"; + static const CustomShapeProvider::ParameterPairData aData[] = { + { + EnhancedCustomShapeParameterType::NORMAL, + EnhancedCustomShapeParameterType::EQUATION, + 0, 6 + }, + { + EnhancedCustomShapeParameterType::EQUATION, + EnhancedCustomShapeParameterType::NORMAL, + 2, 0 + }, + { + EnhancedCustomShapeParameterType::EQUATION, + EnhancedCustomShapeParameterType::EQUATION, + 7, 6 + } + }; + aPropSequence [0].Value = makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData), aData)); + } + { + aPropSequence [1].Name = "Segments"; + static const sal_uInt16 nValues[] = { + // Command, Count + 1,1, + 2,2, + 4,0, + 5,0 + }; + aPropSequence [1].Value = makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues ), nValues )); + } + { + aPropSequence [2].Name = "TextFrames"; + Sequence< EnhancedCustomShapeTextFrame > aTextFrameSeq (1); + { + EnhancedCustomShapeTextFrame aTextFrame; + { + static const CustomShapeProvider::ParameterPairData aData = + { + EnhancedCustomShapeParameterType::EQUATION, + EnhancedCustomShapeParameterType::EQUATION, + 1, 5 + }; + aTextFrame.TopLeft = createParameterPair(&aData); + } + { + static const CustomShapeProvider::ParameterPairData aData = + { + EnhancedCustomShapeParameterType::EQUATION, + EnhancedCustomShapeParameterType::EQUATION, + 4, 6 + }; + aTextFrame.BottomRight = createParameterPair(&aData); + } + aTextFrameSeq [0] = aTextFrame; + } + aPropSequence [2].Value = makeAny (aTextFrameSeq); + } + aPropertyMap [PROP_Path] <<= aPropSequence; + } + { + awt::Rectangle aRectangle; + aRectangle.X = 0; + aRectangle.Y = 0; + aRectangle.Width = 0; + aRectangle.Height = 0; + aPropertyMap [PROP_ViewBox] <<= aRectangle; + } + aPropertyMap [ PROP_Type ] <<= OUString("ooxml-triangle"); + + return aPropertyMap; + } +}; class ShapeCteardrop : public CustomShapeProvider { virtual PropertyMap getProperties() @@ -1651,222 +1804,6 @@ class ShapeCdownArrow : public CustomShapeProvider return aPropertyMap; } }; -class ShapeCupArrow : public CustomShapeProvider -{ - virtual PropertyMap getProperties() - { - PropertyMap aPropertyMap; - - { - Sequence< EnhancedCustomShapeAdjustmentValue > aAdjSequence (2); - { - Any aAny ((sal_Int32) 50000); - aAdjSequence [0].Value = aAny; - aAdjSequence [0].Name = "adj1"; - } - { - Any aAny ((sal_Int32) 50000); - aAdjSequence [1].Value = aAny; - aAdjSequence [1].Name = "adj2"; - } - aPropertyMap [PROP_AdjustmentValues] <<= aAdjSequence; - } - { - static const char *aStrings[] = { - "min(logwidth,logheight)", - "100000*logheight/?0 ", - "if(0-$0 ,0,if(100000-$0 ,$0 ,100000))", - "if(0-$1 ,0,if(?1 -$1 ,$1 ,?1 ))", - "?0 *?3 /100000", - "0+?4 -0", - "logwidth*?2 /200000", - "logwidth/2", - "?7 +0-?6 ", - "?7 +?6 -0", - "logwidth/2", - "?8 *?4 /?10 ", - "?5 +0 -?11", - "logwidth", - "logheight" - }; - aPropertyMap [PROP_Equations] <<= createStringSequence( SAL_N_ELEMENTS( aStrings ), aStrings ); - } - { - Sequence< Sequence < PropertyValue > > aPropSequenceSequence (2); - { - Sequence< PropertyValue > aPropSequence (4); - { - aPropSequence [0].Name = "Position"; - static const CustomShapeProvider::ParameterPairData aData = - { - EnhancedCustomShapeParameterType::EQUATION, - EnhancedCustomShapeParameterType::EQUATION, - 8, 14 - }; - aPropSequence [0].Value = makeAny (createParameterPair(&aData)); - } - { - aPropSequence [1].Name = "RangeXMaximum"; - EnhancedCustomShapeParameter aParameter; - Any aAny ((sal_Int32) 100000); - aParameter.Value = aAny; - aParameter.Type = EnhancedCustomShapeParameterType::NORMAL; - aPropSequence [1].Value = makeAny (aParameter); - } - { - aPropSequence [2].Name = "RangeXMinimum"; - EnhancedCustomShapeParameter aParameter; - Any aAny ((sal_Int32) 0); - aParameter.Value = aAny; - aParameter.Type = EnhancedCustomShapeParameterType::NORMAL; - aPropSequence [2].Value = makeAny (aParameter); - } - { - aPropSequence [3].Name = "RefX"; - Any aAny ((sal_Int32) 0); - aPropSequence [3].Value = makeAny (aAny); - } - aPropSequenceSequence [0] = aPropSequence; - } - { - Sequence< PropertyValue > aPropSequence (4); - { - aPropSequence [0].Name = "Position"; - static const CustomShapeProvider::ParameterPairData aData = - { - EnhancedCustomShapeParameterType::NORMAL, - EnhancedCustomShapeParameterType::EQUATION, - 0, 5 - }; - aPropSequence [0].Value = makeAny (createParameterPair(&aData)); - } - { - aPropSequence [1].Name = "RangeYMaximum"; - EnhancedCustomShapeParameter aParameter; - Any aAny ((sal_Int32) 1); - aParameter.Value = aAny; - aParameter.Type = EnhancedCustomShapeParameterType::EQUATION; - aPropSequence [1].Value = makeAny (aParameter); - } - { - aPropSequence [2].Name = "RangeYMinimum"; - EnhancedCustomShapeParameter aParameter; - Any aAny ((sal_Int32) 0); - aParameter.Value = aAny; - aParameter.Type = EnhancedCustomShapeParameterType::NORMAL; - aPropSequence [2].Value = makeAny (aParameter); - } - { - aPropSequence [3].Name = "RefY"; - Any aAny ((sal_Int32) 1); - aPropSequence [3].Value = makeAny (aAny); - } - aPropSequenceSequence [1] = aPropSequence; - } - aPropertyMap [PROP_Handles] <<= aPropSequenceSequence; - } - { - aPropertyMap [PROP_MirroredX] <<= Any ((sal_Bool) sal_False); - } - { - aPropertyMap [PROP_MirroredY] <<= Any ((sal_Bool) sal_False); - } - { - Sequence< PropertyValue > aPropSequence (3); - { - aPropSequence [0].Name = "Coordinates"; - static const CustomShapeProvider::ParameterPairData aData[] = { - { - EnhancedCustomShapeParameterType::EQUATION, - EnhancedCustomShapeParameterType::EQUATION, - 8, 5 - }, - { - EnhancedCustomShapeParameterType::NORMAL, - EnhancedCustomShapeParameterType::EQUATION, - 0, 5 - }, - { - EnhancedCustomShapeParameterType::EQUATION, - EnhancedCustomShapeParameterType::NORMAL, - 7, 0 - }, - { - EnhancedCustomShapeParameterType::EQUATION, - EnhancedCustomShapeParameterType::EQUATION, - 13, 5 - }, - { - EnhancedCustomShapeParameterType::EQUATION, - EnhancedCustomShapeParameterType::EQUATION, - 9, 5 - }, - { - EnhancedCustomShapeParameterType::EQUATION, - EnhancedCustomShapeParameterType::EQUATION, - 9, 14 - }, - { - EnhancedCustomShapeParameterType::EQUATION, - EnhancedCustomShapeParameterType::EQUATION, - 8, 14 - } - }; - aPropSequence [0].Value = makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData), aData)); - } - { - aPropSequence [1].Name = "Segments"; - static const sal_uInt16 nValues[] = { - // Command, Count - 1,1, - 2,6, - 4,0, - 5,0 - }; - aPropSequence [1].Value = makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues ), nValues )); - } - { - aPropSequence [2].Name = "TextFrames"; - Sequence< EnhancedCustomShapeTextFrame > aTextFrameSeq (1); - { - EnhancedCustomShapeTextFrame aTextFrame; - { - static const CustomShapeProvider::ParameterPairData aData = - { - EnhancedCustomShapeParameterType::EQUATION, - EnhancedCustomShapeParameterType::EQUATION, - 8, 12 - }; - aTextFrame.TopLeft = createParameterPair(&aData); - } - { - static const CustomShapeProvider::ParameterPairData aData = - { - EnhancedCustomShapeParameterType::EQUATION, - EnhancedCustomShapeParameterType::EQUATION, - 9, 13 - }; - aTextFrame.BottomRight = createParameterPair(&aData); - } - aTextFrameSeq [0] = aTextFrame; - } - aPropSequence [2].Value = makeAny (aTextFrameSeq); - } - aPropertyMap [PROP_Path] <<= aPropSequence; - } - { - awt::Rectangle aRectangle; - aRectangle.X = 0; - aRectangle.Y = 0; - aRectangle.Width = 0; - aRectangle.Height = 0; - aPropertyMap [PROP_ViewBox] <<= aRectangle; - } - aPropertyMap [ PROP_Type ] <<= OUString("ooxml-upArrow"); - - return aPropertyMap; - } -}; class ShapeCcurvedDownArrow : public CustomShapeProvider { virtual PropertyMap getProperties() @@ -8479,209 +8416,10 @@ class ShapeCellipseRibbon2 : public CustomShapeProvider return aPropertyMap; } }; -class ShapeCplus : public CustomShapeProvider -{ - virtual PropertyMap getProperties() - { - PropertyMap aPropertyMap; - - { - Sequence< EnhancedCustomShapeAdjustmentValue > aAdjSequence (1); - { - Any aAny ((sal_Int32) 25000); - aAdjSequence [0].Value = aAny; - aAdjSequence [0].Name = "adj"; - } - aPropertyMap [PROP_AdjustmentValues] <<= aAdjSequence; - } - { - static const char *aStrings[] = { - "if(0-$0 ,0,if(50000-$0 ,$0 ,50000))", - "min(logwidth,logheight)", - "?1 *?0 /100000", - "logwidth+0-?2 ", - "logheight+0-?2 ", - "logwidth+0-logheight", - "if(?5 ,0,?2 )", - "if(?5 ,logwidth,?3 )", - "if(?5 ,?2 ,0)", - "if(?5 ,?4 ,logheight)", - "logwidth/2", - "logheight/2", - "logheight", - "logwidth" - }; - aPropertyMap [PROP_Equations] <<= createStringSequence( SAL_N_ELEMENTS( aStrings ), aStrings ); - } - { - Sequence< Sequence < PropertyValue > > aPropSequenceSequence (1); - { - Sequence< PropertyValue > aPropSequence (4); - { - aPropSequence [0].Name = "Position"; - static const CustomShapeProvider::ParameterPairData aData = - { - EnhancedCustomShapeParameterType::EQUATION, - EnhancedCustomShapeParameterType::NORMAL, - 2, 0 - }; - aPropSequence [0].Value = makeAny (createParameterPair(&aData)); - } - { - aPropSequence [1].Name = "RangeXMaximum"; - EnhancedCustomShapeParameter aParameter; - Any aAny ((sal_Int32) 50000); - aParameter.Value = aAny; - aParameter.Type = EnhancedCustomShapeParameterType::NORMAL; - aPropSequence [1].Value = makeAny (aParameter); - } - { - aPropSequence [2].Name = "RangeXMinimum"; - EnhancedCustomShapeParameter aParameter; - Any aAny ((sal_Int32) 0); - aParameter.Value = aAny; - aParameter.Type = EnhancedCustomShapeParameterType::NORMAL; - aPropSequence [2].Value = makeAny (aParameter); - } - { - aPropSequence [3].Name = "RefX"; - Any aAny ((sal_Int32) 0); - aPropSequence [3].Value = makeAny (aAny); - } - aPropSequenceSequence [0] = aPropSequence; - } - aPropertyMap [PROP_Handles] <<= aPropSequenceSequence; - } - { - aPropertyMap [PROP_MirroredX] <<= Any ((sal_Bool) sal_False); - } - { - aPropertyMap [PROP_MirroredY] <<= Any ((sal_Bool) sal_False); - } - { - Sequence< PropertyValue > aPropSequence (3); - { - aPropSequence [0].Name = "Coordinates"; - static const CustomShapeProvider::ParameterPairData aData[] = { - { - EnhancedCustomShapeParameterType::NORMAL, - EnhancedCustomShapeParameterType::EQUATION, - 0, 2 - }, - { - EnhancedCustomShapeParameterType::EQUATION, - EnhancedCustomShapeParameterType::EQUATION, - 2, 2 - }, - { - EnhancedCustomShapeParameterType::EQUATION, - EnhancedCustomShapeParameterType::NORMAL, - 2, 0 - }, - { - EnhancedCustomShapeParameterType::EQUATION, - EnhancedCustomShapeParameterType::NORMAL, - 3, 0 - }, - { - EnhancedCustomShapeParameterType::EQUATION, - EnhancedCustomShapeParameterType::EQUATION, - 3, 2 - }, - { - EnhancedCustomShapeParameterType::EQUATION, - EnhancedCustomShapeParameterType::EQUATION, - 13, 2 - }, - { - EnhancedCustomShapeParameterType::EQUATION, - EnhancedCustomShapeParameterType::EQUATION, - 13, 4 - }, - { - EnhancedCustomShapeParameterType::EQUATION, - EnhancedCustomShapeParameterType::EQUATION, - 3, 4 - }, - { - EnhancedCustomShapeParameterType::EQUATION, - EnhancedCustomShapeParameterType::EQUATION, - 3, 12 - }, - { - EnhancedCustomShapeParameterType::EQUATION, - EnhancedCustomShapeParameterType::EQUATION, - 2, 12 - }, - { - EnhancedCustomShapeParameterType::EQUATION, - EnhancedCustomShapeParameterType::EQUATION, - 2, 4 - }, - { - EnhancedCustomShapeParameterType::NORMAL, - EnhancedCustomShapeParameterType::EQUATION, - 0, 4 - } - }; - aPropSequence [0].Value = makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData), aData)); - } - { - aPropSequence [1].Name = "Segments"; - static const sal_uInt16 nValues[] = { - // Command, Count - 1,1, - 2,11, - 4,0, - 5,0 - }; - aPropSequence [1].Value = makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues ), nValues )); - } - { - aPropSequence [2].Name = "TextFrames"; - Sequence< EnhancedCustomShapeTextFrame > aTextFrameSeq (1); - { - EnhancedCustomShapeTextFrame aTextFrame; - { - static const CustomShapeProvider::ParameterPairData aData = - { - EnhancedCustomShapeParameterType::EQUATION, - EnhancedCustomShapeParameterType::EQUATION, - 6, 8 - }; - aTextFrame.TopLeft = createParameterPair(&aData); - } - { - static const CustomShapeProvider::ParameterPairData aData = - { - EnhancedCustomShapeParameterType::EQUATION, - EnhancedCustomShapeParameterType::EQUATION, - 7, 9 - }; - aTextFrame.BottomRight = createParameterPair(&aData); - } - aTextFrameSeq [0] = aTextFrame; - } - aPropSequence [2].Value = makeAny (aTextFrameSeq); - } - aPropertyMap [PROP_Path] <<= aPropSequence; - } - { - awt::Rectangle aRectangle; - aRectangle.X = 0; - aRectangle.Y = 0; - aRectangle.Width = 0; - aRectangle.Height = 0; - aPropertyMap [PROP_ViewBox] <<= aRectangle; - } - aPropertyMap [ PROP_Type ] <<= OUString("ooxml-plus"); - - return aPropertyMap; - } -}; } // anonymous namespace void CustomShapeProperties::initializePresetsMap4() { + maPresetsMap [ StaticTokenMap::get().getTokenFromUnicode( "triangle" ) ] = new ShapeCtriangle(); maPresetsMap [ StaticTokenMap::get().getTokenFromUnicode( "teardrop" ) ] = new ShapeCteardrop(); maPresetsMap [ StaticTokenMap::get().getTokenFromUnicode( "flowChartDocument" ) ] = new ShapeCflowChartDocument(); maPresetsMap [ StaticTokenMap::get().getTokenFromUnicode( "rightArrowCallout" ) ] = new ShapeCrightArrowCallout(); @@ -8691,7 +8429,6 @@ void CustomShapeProperties::initializePresetsMap4() maPresetsMap [ StaticTokenMap::get().getTokenFromUnicode( "flowChartMerge" ) ] = new ShapeCflowChartMerge(); maPresetsMap [ StaticTokenMap::get().getTokenFromUnicode( "line" ) ] = new ShapeCline(); maPresetsMap [ StaticTokenMap::get().getTokenFromUnicode( "downArrow" ) ] = new ShapeCdownArrow(); - maPresetsMap [ StaticTokenMap::get().getTokenFromUnicode( "upArrow" ) ] = new ShapeCupArrow(); maPresetsMap [ StaticTokenMap::get().getTokenFromUnicode( "curvedDownArrow" ) ] = new ShapeCcurvedDownArrow(); maPresetsMap [ StaticTokenMap::get().getTokenFromUnicode( "actionButtonReturn" ) ] = new ShapeCactionButtonReturn(); maPresetsMap [ StaticTokenMap::get().getTokenFromUnicode( "flowChartInputOutput" ) ] = new ShapeCflowChartInputOutput(); @@ -8717,7 +8454,6 @@ void CustomShapeProperties::initializePresetsMap4() maPresetsMap [ StaticTokenMap::get().getTokenFromUnicode( "curvedUpArrow" ) ] = new ShapeCcurvedUpArrow(); maPresetsMap [ StaticTokenMap::get().getTokenFromUnicode( "snip1Rect" ) ] = new ShapeCsnip1Rect(); maPresetsMap [ StaticTokenMap::get().getTokenFromUnicode( "ellipseRibbon2" ) ] = new ShapeCellipseRibbon2(); - maPresetsMap [ StaticTokenMap::get().getTokenFromUnicode( "plus" ) ] = new ShapeCplus(); } } } // oox // drawingml diff --git a/oox/source/drawingml/customshapepresets5.cxx b/oox/source/drawingml/customshapepresets5.cxx index 1f69833b1c11..a2001c2b6125 100644 --- a/oox/source/drawingml/customshapepresets5.cxx +++ b/oox/source/drawingml/customshapepresets5.cxx @@ -1,8 +1,12 @@ -// this file was generated by: ./generatePresetsCXX.pl -// please do not edit +// +// This file was generated by: ./generatePresetsCXX.pl +// +// Please, DO NOT EDIT. +// +// We mean it. -#include "oox/drawingml/customshapeproperties.hxx" -#include "oox/token/tokenmap.hxx" +#include <oox/drawingml/customshapeproperties.hxx> +#include <oox/token/tokenmap.hxx> #include <com/sun/star/awt/Rectangle.hpp> #include <com/sun/star/awt/Size.hpp> #include <com/sun/star/drawing/EnhancedCustomShapeAdjustmentValue.hpp> @@ -19,6 +23,206 @@ namespace oox { namespace drawingml { namespace { +class ShapeCplus : public CustomShapeProvider +{ + virtual PropertyMap getProperties() + { + PropertyMap aPropertyMap; + + { + Sequence< EnhancedCustomShapeAdjustmentValue > aAdjSequence (1); + { + Any aAny ((sal_Int32) 25000); + aAdjSequence [0].Value = aAny; + aAdjSequence [0].Name = "adj"; + } + aPropertyMap [PROP_AdjustmentValues] <<= aAdjSequence; + } + { + static const char *aStrings[] = { + "if(0-$0 ,0,if(50000-$0 ,$0 ,50000))", + "min(logwidth,logheight)", + "?1 *?0 /100000", + "logwidth+0-?2 ", + "logheight+0-?2 ", + "logwidth+0-logheight", + "if(?5 ,0,?2 )", + "if(?5 ,logwidth,?3 )", + "if(?5 ,?2 ,0)", + "if(?5 ,?4 ,logheight)", + "logwidth/2", + "logheight/2", + "logheight", + "logwidth" + }; + aPropertyMap [PROP_Equations] <<= createStringSequence( SAL_N_ELEMENTS( aStrings ), aStrings ); + } + { + Sequence< Sequence < PropertyValue > > aPropSequenceSequence (1); + { + Sequence< PropertyValue > aPropSequence (4); + { + aPropSequence [0].Name = "Position"; + static const CustomShapeProvider::ParameterPairData aData = + { + EnhancedCustomShapeParameterType::EQUATION, + EnhancedCustomShapeParameterType::NORMAL, + 2, 0 + }; + aPropSequence [0].Value = makeAny (createParameterPair(&aData)); + } + { + aPropSequence [1].Name = "RangeXMaximum"; + EnhancedCustomShapeParameter aParameter; + Any aAny ((sal_Int32) 50000); + aParameter.Value = aAny; + aParameter.Type = EnhancedCustomShapeParameterType::NORMAL; + aPropSequence [1].Value = makeAny (aParameter); + } + { + aPropSequence [2].Name = "RangeXMinimum"; + EnhancedCustomShapeParameter aParameter; + Any aAny ((sal_Int32) 0); + aParameter.Value = aAny; + aParameter.Type = EnhancedCustomShapeParameterType::NORMAL; + aPropSequence [2].Value = makeAny (aParameter); + } + { + aPropSequence [3].Name = "RefX"; + Any aAny ((sal_Int32) 0); + aPropSequence [3].Value = makeAny (aAny); + } + aPropSequenceSequence [0] = aPropSequence; + } + aPropertyMap [PROP_Handles] <<= aPropSequenceSequence; + } + { + aPropertyMap [PROP_MirroredX] <<= Any ((sal_Bool) sal_False); + } + { + aPropertyMap [PROP_MirroredY] <<= Any ((sal_Bool) sal_False); + } + { + Sequence< PropertyValue > aPropSequence (3); + { + aPropSequence [0].Name = "Coordinates"; + static const CustomShapeProvider::ParameterPairData aData[] = { + { + EnhancedCustomShapeParameterType::NORMAL, + EnhancedCustomShapeParameterType::EQUATION, + 0, 2 + }, + { + EnhancedCustomShapeParameterType::EQUATION, + EnhancedCustomShapeParameterType::EQUATION, + 2, 2 + }, + { + EnhancedCustomShapeParameterType::EQUATION, + EnhancedCustomShapeParameterType::NORMAL, + 2, 0 + }, + { + EnhancedCustomShapeParameterType::EQUATION, + EnhancedCustomShapeParameterType::NORMAL, + 3, 0 + }, + { + EnhancedCustomShapeParameterType::EQUATION, + EnhancedCustomShapeParameterType::EQUATION, + 3, 2 + }, + { + EnhancedCustomShapeParameterType::EQUATION, + EnhancedCustomShapeParameterType::EQUATION, + 13, 2 + }, + { + EnhancedCustomShapeParameterType::EQUATION, + EnhancedCustomShapeParameterType::EQUATION, + 13, 4 + }, + { + EnhancedCustomShapeParameterType::EQUATION, + EnhancedCustomShapeParameterType::EQUATION, + 3, 4 + }, + { + EnhancedCustomShapeParameterType::EQUATION, + EnhancedCustomShapeParameterType::EQUATION, + 3, 12 + }, + { + EnhancedCustomShapeParameterType::EQUATION, + EnhancedCustomShapeParameterType::EQUATION, + 2, 12 + }, + { + EnhancedCustomShapeParameterType::EQUATION, + EnhancedCustomShapeParameterType::EQUATION, + 2, 4 + }, + { + EnhancedCustomShapeParameterType::NORMAL, + EnhancedCustomShapeParameterType::EQUATION, + 0, 4 + } + }; + aPropSequence [0].Value = makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData), aData)); + } + { + aPropSequence [1].Name = "Segments"; + static const sal_uInt16 nValues[] = { + // Command, Count + 1,1, + 2,11, + 4,0, + 5,0 + }; + aPropSequence [1].Value = makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues ), nValues )); + } + { + aPropSequence [2].Name = "TextFrames"; + Sequence< EnhancedCustomShapeTextFrame > aTextFrameSeq (1); + { + EnhancedCustomShapeTextFrame aTextFrame; + { + static const CustomShapeProvider::ParameterPairData aData = + { + EnhancedCustomShapeParameterType::EQUATION, + EnhancedCustomShapeParameterType::EQUATION, + 6, 8 + }; + aTextFrame.TopLeft = createParameterPair(&aData); + } + { + static const CustomShapeProvider::ParameterPairData aData = + { + EnhancedCustomShapeParameterType::EQUATION, + EnhancedCustomShapeParameterType::EQUATION, + 7, 9 + }; + aTextFrame.BottomRight = createParameterPair(&aData); + } + aTextFrameSeq [0] = aTextFrame; + } + aPropSequence [2].Value = makeAny (aTextFrameSeq); + } + aPropertyMap [PROP_Path] <<= aPropSequence; + } + { + awt::Rectangle aRectangle; + aRectangle.X = 0; + aRectangle.Y = 0; + aRectangle.Width = 0; + aRectangle.Height = 0; + aPropertyMap [PROP_ViewBox] <<= aRectangle; + } + aPropertyMap [ PROP_Type ] <<= OUString("ooxml-plus"); + + return aPropertyMap; + } +}; class ShapeCaccentCallout3 : public CustomShapeProvider { virtual PropertyMap getProperties() @@ -9361,128 +9565,10 @@ class ShapeCupArrowCallout : public CustomShapeProvider return aPropertyMap; } }; -class ShapeCflowChartProcess : public CustomShapeProvider -{ - virtual PropertyMap getProperties() - { - PropertyMap aPropertyMap; - - { - aPropertyMap [PROP_AdjustmentValues] <<= Sequence< OUString >(0); - } - { - static const char *aStrings[] = { - "logwidth/2", - "logheight/2", - "logheight", - "logwidth" - }; - aPropertyMap [PROP_Equations] <<= createStringSequence( SAL_N_ELEMENTS( aStrings ), aStrings ); - } - { - aPropertyMap [PROP_Handles] <<= Sequence< OUString >(0); - } - { - aPropertyMap [PROP_MirroredX] <<= Any ((sal_Bool) sal_False); - } - { - aPropertyMap [PROP_MirroredY] <<= Any ((sal_Bool) sal_False); - } - { - Sequence< PropertyValue > aPropSequence (4); - { - aPropSequence [0].Name = "Coordinates"; - static const CustomShapeProvider::ParameterPairData aData[] = { - { - EnhancedCustomShapeParameterType::NORMAL, - EnhancedCustomShapeParameterType::NORMAL, - 0, 0 - }, - { - EnhancedCustomShapeParameterType::NORMAL, - EnhancedCustomShapeParameterType::NORMAL, - 1, 0 - }, - { - EnhancedCustomShapeParameterType::NORMAL, - EnhancedCustomShapeParameterType::NORMAL, - 1, 1 - }, - { - EnhancedCustomShapeParameterType::NORMAL, - EnhancedCustomShapeParameterType::NORMAL, - 0, 1 - } - }; - aPropSequence [0].Value = makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData), aData)); - } - { - aPropSequence [1].Name = "Segments"; - static const sal_uInt16 nValues[] = { - // Command, Count - 1,1, - 2,3, - 4,0, - 5,0 - }; - aPropSequence [1].Value = makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues ), nValues )); - } - { - aPropSequence [2].Name = "SubViewSize"; - Sequence< awt::Size > aSizeSequence (1); - { - awt::Size aSize; - aSize.Width = 1; - aSize.Height = 1; - aSizeSequence [0] = aSize; - } - aPropSequence [2].Value = makeAny (aSizeSequence); - } - { - aPropSequence [3].Name = "TextFrames"; - Sequence< EnhancedCustomShapeTextFrame > aTextFrameSeq (1); - { - EnhancedCustomShapeTextFrame aTextFrame; - { - static const CustomShapeProvider::ParameterPairData aData = - { - EnhancedCustomShapeParameterType::NORMAL, - EnhancedCustomShapeParameterType::NORMAL, - 0, 0 - }; - aTextFrame.TopLeft = createParameterPair(&aData); - } - { - static const CustomShapeProvider::ParameterPairData aData = - { - EnhancedCustomShapeParameterType::EQUATION, - EnhancedCustomShapeParameterType::EQUATION, - 3, 2 - }; - aTextFrame.BottomRight = createParameterPair(&aData); - } - aTextFrameSeq [0] = aTextFrame; - } - aPropSequence [3].Value = makeAny (aTextFrameSeq); - } - aPropertyMap [PROP_Path] <<= aPropSequence; - } - { - awt::Rectangle aRectangle; - aRectangle.X = 0; - aRectangle.Y = 0; - aRectangle.Width = 0; - aRectangle.Height = 0; - aPropertyMap [PROP_ViewBox] <<= aRectangle; - } - aPropertyMap [ PROP_Type ] <<= OUString("ooxml-flowChartProcess"); - - return aPropertyMap; - } -}; } // anonymous namespace void CustomShapeProperties::initializePresetsMap5() { + maPresetsMap [ StaticTokenMap::get().getTokenFromUnicode( "plus" ) ] = new ShapeCplus(); maPresetsMap [ StaticTokenMap::get().getTokenFromUnicode( "accentCallout3" ) ] = new ShapeCaccentCallout3(); maPresetsMap [ StaticTokenMap::get().getTokenFromUnicode( "leftCircularArrow" ) ] = new ShapeCleftCircularArrow(); maPresetsMap [ StaticTokenMap::get().getTokenFromUnicode( "rightArrow" ) ] = new ShapeCrightArrow(); @@ -9517,7 +9603,6 @@ void CustomShapeProperties::initializePresetsMap5() maPresetsMap [ StaticTokenMap::get().getTokenFromUnicode( "accentBorderCallout2" ) ] = new ShapeCaccentBorderCallout2(); maPresetsMap [ StaticTokenMap::get().getTokenFromUnicode( "pieWedge" ) ] = new ShapeCpieWedge(); maPresetsMap [ StaticTokenMap::get().getTokenFromUnicode( "upArrowCallout" ) ] = new ShapeCupArrowCallout(); - maPresetsMap [ StaticTokenMap::get().getTokenFromUnicode( "flowChartProcess" ) ] = new ShapeCflowChartProcess(); } } } // oox // drawingml diff --git a/oox/source/drawingml/customshapepresets6.cxx b/oox/source/drawingml/customshapepresets6.cxx index bd1a51dc866d..a252113037f5 100644 --- a/oox/source/drawingml/customshapepresets6.cxx +++ b/oox/source/drawingml/customshapepresets6.cxx @@ -1,8 +1,12 @@ -// this file was generated by: ./generatePresetsCXX.pl -// please do not edit +// +// This file was generated by: ./generatePresetsCXX.pl +// +// Please, DO NOT EDIT. +// +// We mean it. -#include "oox/drawingml/customshapeproperties.hxx" -#include "oox/token/tokenmap.hxx" +#include <oox/drawingml/customshapeproperties.hxx> +#include <oox/token/tokenmap.hxx> #include <com/sun/star/awt/Rectangle.hpp> #include <com/sun/star/awt/Size.hpp> #include <com/sun/star/drawing/EnhancedCustomShapeAdjustmentValue.hpp> @@ -19,6 +23,125 @@ namespace oox { namespace drawingml { namespace { +class ShapeCflowChartProcess : public CustomShapeProvider +{ + virtual PropertyMap getProperties() + { + PropertyMap aPropertyMap; + + { + aPropertyMap [PROP_AdjustmentValues] <<= Sequence< OUString >(0); + } + { + static const char *aStrings[] = { + "logwidth/2", + "logheight/2", + "logheight", + "logwidth" + }; + aPropertyMap [PROP_Equations] <<= createStringSequence( SAL_N_ELEMENTS( aStrings ), aStrings ); + } + { + aPropertyMap [PROP_Handles] <<= Sequence< OUString >(0); + } + { + aPropertyMap [PROP_MirroredX] <<= Any ((sal_Bool) sal_False); + } + { + aPropertyMap [PROP_MirroredY] <<= Any ((sal_Bool) sal_False); + } + { + Sequence< PropertyValue > aPropSequence (4); + { + aPropSequence [0].Name = "Coordinates"; + static const CustomShapeProvider::ParameterPairData aData[] = { + { + EnhancedCustomShapeParameterType::NORMAL, + EnhancedCustomShapeParameterType::NORMAL, + 0, 0 + }, + { + EnhancedCustomShapeParameterType::NORMAL, + EnhancedCustomShapeParameterType::NORMAL, + 1, 0 + }, + { + EnhancedCustomShapeParameterType::NORMAL, + EnhancedCustomShapeParameterType::NORMAL, + 1, 1 + }, + { + EnhancedCustomShapeParameterType::NORMAL, + EnhancedCustomShapeParameterType::NORMAL, + 0, 1 + } + }; + aPropSequence [0].Value = makeAny (createParameterPairSequence(SAL_N_ELEMENTS(aData), aData)); + } + { + aPropSequence [1].Name = "Segments"; + static const sal_uInt16 nValues[] = { + // Command, Count + 1,1, + 2,3, + 4,0, + 5,0 + }; + aPropSequence [1].Value = makeAny (createSegmentSequence( SAL_N_ELEMENTS( nValues ), nValues )); + } + { + aPropSequence [2].Name = "SubViewSize"; + Sequence< awt::Size > aSizeSequence (1); + { + awt::Size aSize; + aSize.Width = 1; + aSize.Height = 1; + aSizeSequence [0] = aSize; + } + aPropSequence [2].Value = makeAny (aSizeSequence); + } + { + aPropSequence [3].Name = "TextFrames"; + Sequence< EnhancedCustomShapeTextFrame > aTextFrameSeq (1); + { + EnhancedCustomShapeTextFrame aTextFrame; + { + static const CustomShapeProvider::ParameterPairData aData = + { + EnhancedCustomShapeParameterType::NORMAL, + EnhancedCustomShapeParameterType::NORMAL, + 0, 0 + }; + aTextFrame.TopLeft = createParameterPair(&aData); + } + { + static const CustomShapeProvider::ParameterPairData aData = + { + EnhancedCustomShapeParameterType::EQUATION, + EnhancedCustomShapeParameterType::EQUATION, + 3, 2 + }; + aTextFrame.BottomRight = createParameterPair(&aData); + } + aTextFrameSeq [0] = aTextFrame; + } + aPropSequence [3].Value = makeAny (aTextFrameSeq); + } + aPropertyMap [PROP_Path] <<= aPropSequence; + } + { + awt::Rectangle aRectangle; + aRectangle.X = 0; + aRectangle.Y = 0; + aRectangle.Width = 0; + aRectangle.Height = 0; + aPropertyMap [PROP_ViewBox] <<= aRectangle; + } + aPropertyMap [ PROP_Type ] <<= OUString("ooxml-flowChartProcess"); + + return aPropertyMap; + } +}; class ShapeCstar5 : public CustomShapeProvider { virtual PropertyMap getProperties() @@ -3314,6 +3437,7 @@ class ShapeCribbon : public CustomShapeProvider } // anonymous namespace void CustomShapeProperties::initializePresetsMap6() { + maPresetsMap [ StaticTokenMap::get().getTokenFromUnicode( "flowChartProcess" ) ] = new ShapeCflowChartProcess(); maPresetsMap [ StaticTokenMap::get().getTokenFromUnicode( "star5" ) ] = new ShapeCstar5(); maPresetsMap [ StaticTokenMap::get().getTokenFromUnicode( "lineInv" ) ] = new ShapeClineInv(); maPresetsMap [ StaticTokenMap::get().getTokenFromUnicode( "straightConnector1" ) ] = new ShapeCstraightConnector1(); |