summaryrefslogtreecommitdiff
path: root/oox/source/drawingml/customshapepresets5.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'oox/source/drawingml/customshapepresets5.cxx')
-rw-r--r--oox/source/drawingml/customshapepresets5.cxx201
1 files changed, 163 insertions, 38 deletions
diff --git a/oox/source/drawingml/customshapepresets5.cxx b/oox/source/drawingml/customshapepresets5.cxx
index 015cc6f54a05..a495162aa12d 100644
--- a/oox/source/drawingml/customshapepresets5.cxx
+++ b/oox/source/drawingml/customshapepresets5.cxx
@@ -4,6 +4,7 @@
#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>
#include <com/sun/star/drawing/EnhancedCustomShapeSegment.hpp>
#include <com/sun/star/drawing/EnhancedCustomShapeParameterPair.hpp>
@@ -1725,7 +1726,7 @@ void CustomShapeProperties::initializePresetsMap5()
aPropertyMap [PROP_MirroredY] <<= Any ((sal_Bool) sal_False);
}
{
- Sequence< PropertyValue > aPropSequence (3);
+ Sequence< PropertyValue > aPropSequence (4);
{
aPropSequence [0].Name = CREATE_OUSTRING ("Coordinates");
Sequence< EnhancedCustomShapeParameterPair > aParameterPairSeq (5);
@@ -1851,7 +1852,18 @@ void CustomShapeProperties::initializePresetsMap5()
aPropSequence [1].Value = makeAny (aSegmentSeq);
}
{
- aPropSequence [2].Name = CREATE_OUSTRING ("TextFrames");
+ aPropSequence [2].Name = CREATE_OUSTRING ("SubViewSize");
+ Sequence< awt::Size > aSizeSequence (1);
+ {
+ awt::Size aSize;
+ aSize.Width = 5;
+ aSize.Height = 5;
+ aSizeSequence [0] = aSize;
+ }
+ aPropSequence [2].Value = makeAny (aSizeSequence);
+ }
+ {
+ aPropSequence [3].Name = CREATE_OUSTRING ("TextFrames");
Sequence< EnhancedCustomShapeTextFrame > aTextFrameSeq (1);
{
EnhancedCustomShapeTextFrame aTextFrame;
@@ -1893,7 +1905,7 @@ void CustomShapeProperties::initializePresetsMap5()
}
aTextFrameSeq [0] = aTextFrame;
}
- aPropSequence [2].Value = makeAny (aTextFrameSeq);
+ aPropSequence [3].Value = makeAny (aTextFrameSeq);
}
aPropertyMap [PROP_Path] <<= aPropSequence;
}
@@ -1901,8 +1913,8 @@ void CustomShapeProperties::initializePresetsMap5()
awt::Rectangle aRectangle;
aRectangle.X = 0;
aRectangle.Y = 0;
- aRectangle.Width = 5;
- aRectangle.Height = 5;
+ aRectangle.Width = 0;
+ aRectangle.Height = 0;
aPropertyMap [PROP_ViewBox] <<= aRectangle;
}
aPropertyMap [ PROP_Type ] <<= CREATE_OUSTRING("ooxml-flowChartPunchedCard");
@@ -4368,7 +4380,7 @@ void CustomShapeProperties::initializePresetsMap5()
aPropertyMap [PROP_MirroredY] <<= Any ((sal_Bool) sal_False);
}
{
- Sequence< PropertyValue > aPropSequence (2);
+ Sequence< PropertyValue > aPropSequence (3);
{
aPropSequence [0].Name = CREATE_OUSTRING ("Coordinates");
Sequence< EnhancedCustomShapeParameterPair > aParameterPairSeq (8);
@@ -4589,14 +4601,31 @@ void CustomShapeProperties::initializePresetsMap5()
}
aPropSequence [1].Value = makeAny (aSegmentSeq);
}
+ {
+ aPropSequence [2].Name = CREATE_OUSTRING ("SubViewSize");
+ Sequence< awt::Size > aSizeSequence (2);
+ {
+ awt::Size aSize;
+ aSize.Width = 10;
+ aSize.Height = 10;
+ aSizeSequence [0] = aSize;
+ }
+ {
+ awt::Size aSize;
+ aSize.Width = 10;
+ aSize.Height = 10;
+ aSizeSequence [1] = aSize;
+ }
+ aPropSequence [2].Value = makeAny (aSizeSequence);
+ }
aPropertyMap [PROP_Path] <<= aPropSequence;
}
{
awt::Rectangle aRectangle;
aRectangle.X = 0;
aRectangle.Y = 0;
- aRectangle.Width = 10;
- aRectangle.Height = 10;
+ aRectangle.Width = 0;
+ aRectangle.Height = 0;
aPropertyMap [PROP_ViewBox] <<= aRectangle;
}
aPropertyMap [ PROP_Type ] <<= CREATE_OUSTRING("ooxml-chartX");
@@ -4679,7 +4708,7 @@ void CustomShapeProperties::initializePresetsMap5()
aPropertyMap [PROP_MirroredY] <<= Any ((sal_Bool) sal_False);
}
{
- Sequence< PropertyValue > aPropSequence (3);
+ Sequence< PropertyValue > aPropSequence (4);
{
aPropSequence [0].Name = CREATE_OUSTRING ("Coordinates");
Sequence< EnhancedCustomShapeParameterPair > aParameterPairSeq (56);
@@ -5867,7 +5896,24 @@ void CustomShapeProperties::initializePresetsMap5()
aPropSequence [1].Value = makeAny (aSegmentSeq);
}
{
- aPropSequence [2].Name = CREATE_OUSTRING ("TextFrames");
+ aPropSequence [2].Name = CREATE_OUSTRING ("SubViewSize");
+ Sequence< awt::Size > aSizeSequence (2);
+ {
+ awt::Size aSize;
+ aSize.Width = 43200;
+ aSize.Height = 43200;
+ aSizeSequence [0] = aSize;
+ }
+ {
+ awt::Size aSize;
+ aSize.Width = 43200;
+ aSize.Height = 43200;
+ aSizeSequence [1] = aSize;
+ }
+ aPropSequence [2].Value = makeAny (aSizeSequence);
+ }
+ {
+ aPropSequence [3].Name = CREATE_OUSTRING ("TextFrames");
Sequence< EnhancedCustomShapeTextFrame > aTextFrameSeq (1);
{
EnhancedCustomShapeTextFrame aTextFrame;
@@ -5909,7 +5955,7 @@ void CustomShapeProperties::initializePresetsMap5()
}
aTextFrameSeq [0] = aTextFrame;
}
- aPropSequence [2].Value = makeAny (aTextFrameSeq);
+ aPropSequence [3].Value = makeAny (aTextFrameSeq);
}
aPropertyMap [PROP_Path] <<= aPropSequence;
}
@@ -5917,8 +5963,8 @@ void CustomShapeProperties::initializePresetsMap5()
awt::Rectangle aRectangle;
aRectangle.X = 0;
aRectangle.Y = 0;
- aRectangle.Width = 43200;
- aRectangle.Height = 43200;
+ aRectangle.Width = 0;
+ aRectangle.Height = 0;
aPropertyMap [PROP_ViewBox] <<= aRectangle;
}
aPropertyMap [ PROP_Type ] <<= CREATE_OUSTRING("ooxml-cloud");
@@ -7189,7 +7235,7 @@ void CustomShapeProperties::initializePresetsMap5()
aPropertyMap [PROP_MirroredY] <<= Any ((sal_Bool) sal_False);
}
{
- Sequence< PropertyValue > aPropSequence (3);
+ Sequence< PropertyValue > aPropSequence (4);
{
aPropSequence [0].Name = CREATE_OUSTRING ("Coordinates");
Sequence< EnhancedCustomShapeParameterPair > aParameterPairSeq (60);
@@ -8515,7 +8561,30 @@ void CustomShapeProperties::initializePresetsMap5()
aPropSequence [1].Value = makeAny (aSegmentSeq);
}
{
- aPropSequence [2].Name = CREATE_OUSTRING ("TextFrames");
+ aPropSequence [2].Name = CREATE_OUSTRING ("SubViewSize");
+ Sequence< awt::Size > aSizeSequence (3);
+ {
+ awt::Size aSize;
+ aSize.Width = 21600;
+ aSize.Height = 21600;
+ aSizeSequence [0] = aSize;
+ }
+ {
+ awt::Size aSize;
+ aSize.Width = 21600;
+ aSize.Height = 21600;
+ aSizeSequence [1] = aSize;
+ }
+ {
+ awt::Size aSize;
+ aSize.Width = 21600;
+ aSize.Height = 21600;
+ aSizeSequence [2] = aSize;
+ }
+ aPropSequence [2].Value = makeAny (aSizeSequence);
+ }
+ {
+ aPropSequence [3].Name = CREATE_OUSTRING ("TextFrames");
Sequence< EnhancedCustomShapeTextFrame > aTextFrameSeq (1);
{
EnhancedCustomShapeTextFrame aTextFrame;
@@ -8557,7 +8626,7 @@ void CustomShapeProperties::initializePresetsMap5()
}
aTextFrameSeq [0] = aTextFrame;
}
- aPropSequence [2].Value = makeAny (aTextFrameSeq);
+ aPropSequence [3].Value = makeAny (aTextFrameSeq);
}
aPropertyMap [PROP_Path] <<= aPropSequence;
}
@@ -8565,8 +8634,8 @@ void CustomShapeProperties::initializePresetsMap5()
awt::Rectangle aRectangle;
aRectangle.X = 0;
aRectangle.Y = 0;
- aRectangle.Width = 21600;
- aRectangle.Height = 21600;
+ aRectangle.Width = 0;
+ aRectangle.Height = 0;
aPropertyMap [PROP_ViewBox] <<= aRectangle;
}
aPropertyMap [ PROP_Type ] <<= CREATE_OUSTRING("ooxml-flowChartMultidocument");
@@ -9445,7 +9514,7 @@ void CustomShapeProperties::initializePresetsMap5()
aPropertyMap [PROP_MirroredY] <<= Any ((sal_Bool) sal_False);
}
{
- Sequence< PropertyValue > aPropSequence (3);
+ Sequence< PropertyValue > aPropSequence (4);
{
aPropSequence [0].Name = CREATE_OUSTRING ("Coordinates");
Sequence< EnhancedCustomShapeParameterPair > aParameterPairSeq (7);
@@ -9625,7 +9694,18 @@ void CustomShapeProperties::initializePresetsMap5()
aPropSequence [1].Value = makeAny (aSegmentSeq);
}
{
- aPropSequence [2].Name = CREATE_OUSTRING ("TextFrames");
+ aPropSequence [2].Name = CREATE_OUSTRING ("SubViewSize");
+ Sequence< awt::Size > aSizeSequence (1);
+ {
+ awt::Size aSize;
+ aSize.Width = 21600;
+ aSize.Height = 21600;
+ aSizeSequence [0] = aSize;
+ }
+ aPropSequence [2].Value = makeAny (aSizeSequence);
+ }
+ {
+ aPropSequence [3].Name = CREATE_OUSTRING ("TextFrames");
Sequence< EnhancedCustomShapeTextFrame > aTextFrameSeq (1);
{
EnhancedCustomShapeTextFrame aTextFrame;
@@ -9667,7 +9747,7 @@ void CustomShapeProperties::initializePresetsMap5()
}
aTextFrameSeq [0] = aTextFrame;
}
- aPropSequence [2].Value = makeAny (aTextFrameSeq);
+ aPropSequence [3].Value = makeAny (aTextFrameSeq);
}
aPropertyMap [PROP_Path] <<= aPropSequence;
}
@@ -9675,8 +9755,8 @@ void CustomShapeProperties::initializePresetsMap5()
awt::Rectangle aRectangle;
aRectangle.X = 0;
aRectangle.Y = 0;
- aRectangle.Width = 21600;
- aRectangle.Height = 21600;
+ aRectangle.Width = 0;
+ aRectangle.Height = 0;
aPropertyMap [PROP_ViewBox] <<= aRectangle;
}
aPropertyMap [ PROP_Type ] <<= CREATE_OUSTRING("ooxml-flowChartTerminator");
@@ -14176,7 +14256,7 @@ void CustomShapeProperties::initializePresetsMap5()
aPropertyMap [PROP_MirroredY] <<= Any ((sal_Bool) sal_False);
}
{
- Sequence< PropertyValue > aPropSequence (3);
+ Sequence< PropertyValue > aPropSequence (4);
{
aPropSequence [0].Name = CREATE_OUSTRING ("Coordinates");
Sequence< EnhancedCustomShapeParameterPair > aParameterPairSeq (17);
@@ -14614,7 +14694,30 @@ void CustomShapeProperties::initializePresetsMap5()
aPropSequence [1].Value = makeAny (aSegmentSeq);
}
{
- aPropSequence [2].Name = CREATE_OUSTRING ("TextFrames");
+ aPropSequence [2].Name = CREATE_OUSTRING ("SubViewSize");
+ Sequence< awt::Size > aSizeSequence (3);
+ {
+ awt::Size aSize;
+ aSize.Width = 6;
+ aSize.Height = 6;
+ aSizeSequence [0] = aSize;
+ }
+ {
+ awt::Size aSize;
+ aSize.Width = 6;
+ aSize.Height = 6;
+ aSizeSequence [1] = aSize;
+ }
+ {
+ awt::Size aSize;
+ aSize.Width = 6;
+ aSize.Height = 6;
+ aSizeSequence [2] = aSize;
+ }
+ aPropSequence [2].Value = makeAny (aSizeSequence);
+ }
+ {
+ aPropSequence [3].Name = CREATE_OUSTRING ("TextFrames");
Sequence< EnhancedCustomShapeTextFrame > aTextFrameSeq (1);
{
EnhancedCustomShapeTextFrame aTextFrame;
@@ -14656,7 +14759,7 @@ void CustomShapeProperties::initializePresetsMap5()
}
aTextFrameSeq [0] = aTextFrame;
}
- aPropSequence [2].Value = makeAny (aTextFrameSeq);
+ aPropSequence [3].Value = makeAny (aTextFrameSeq);
}
aPropertyMap [PROP_Path] <<= aPropSequence;
}
@@ -14664,8 +14767,8 @@ void CustomShapeProperties::initializePresetsMap5()
awt::Rectangle aRectangle;
aRectangle.X = 0;
aRectangle.Y = 0;
- aRectangle.Width = 6;
- aRectangle.Height = 6;
+ aRectangle.Width = 0;
+ aRectangle.Height = 0;
aPropertyMap [PROP_ViewBox] <<= aRectangle;
}
aPropertyMap [ PROP_Type ] <<= CREATE_OUSTRING("ooxml-flowChartMagneticDrum");
@@ -16067,7 +16170,7 @@ void CustomShapeProperties::initializePresetsMap5()
aPropertyMap [PROP_MirroredY] <<= Any ((sal_Bool) sal_False);
}
{
- Sequence< PropertyValue > aPropSequence (3);
+ Sequence< PropertyValue > aPropSequence (4);
{
aPropSequence [0].Name = CREATE_OUSTRING ("Coordinates");
Sequence< EnhancedCustomShapeParameterPair > aParameterPairSeq (6);
@@ -16211,7 +16314,18 @@ void CustomShapeProperties::initializePresetsMap5()
aPropSequence [1].Value = makeAny (aSegmentSeq);
}
{
- aPropSequence [2].Name = CREATE_OUSTRING ("TextFrames");
+ aPropSequence [2].Name = CREATE_OUSTRING ("SubViewSize");
+ Sequence< awt::Size > aSizeSequence (1);
+ {
+ awt::Size aSize;
+ aSize.Width = 2;
+ aSize.Height = 2;
+ aSizeSequence [0] = aSize;
+ }
+ aPropSequence [2].Value = makeAny (aSizeSequence);
+ }
+ {
+ aPropSequence [3].Name = CREATE_OUSTRING ("TextFrames");
Sequence< EnhancedCustomShapeTextFrame > aTextFrameSeq (1);
{
EnhancedCustomShapeTextFrame aTextFrame;
@@ -16253,7 +16367,7 @@ void CustomShapeProperties::initializePresetsMap5()
}
aTextFrameSeq [0] = aTextFrame;
}
- aPropSequence [2].Value = makeAny (aTextFrameSeq);
+ aPropSequence [3].Value = makeAny (aTextFrameSeq);
}
aPropertyMap [PROP_Path] <<= aPropSequence;
}
@@ -16261,8 +16375,8 @@ void CustomShapeProperties::initializePresetsMap5()
awt::Rectangle aRectangle;
aRectangle.X = 0;
aRectangle.Y = 0;
- aRectangle.Width = 2;
- aRectangle.Height = 2;
+ aRectangle.Width = 0;
+ aRectangle.Height = 0;
aPropertyMap [PROP_ViewBox] <<= aRectangle;
}
aPropertyMap [ PROP_Type ] <<= CREATE_OUSTRING("ooxml-flowChartCollate");
@@ -19294,7 +19408,7 @@ void CustomShapeProperties::initializePresetsMap5()
aPropertyMap [PROP_MirroredY] <<= Any ((sal_Bool) sal_False);
}
{
- Sequence< PropertyValue > aPropSequence (3);
+ Sequence< PropertyValue > aPropSequence (4);
{
aPropSequence [0].Name = CREATE_OUSTRING ("Coordinates");
Sequence< EnhancedCustomShapeParameterPair > aParameterPairSeq (4);
@@ -19402,7 +19516,18 @@ void CustomShapeProperties::initializePresetsMap5()
aPropSequence [1].Value = makeAny (aSegmentSeq);
}
{
- aPropSequence [2].Name = CREATE_OUSTRING ("TextFrames");
+ aPropSequence [2].Name = CREATE_OUSTRING ("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 = CREATE_OUSTRING ("TextFrames");
Sequence< EnhancedCustomShapeTextFrame > aTextFrameSeq (1);
{
EnhancedCustomShapeTextFrame aTextFrame;
@@ -19444,7 +19569,7 @@ void CustomShapeProperties::initializePresetsMap5()
}
aTextFrameSeq [0] = aTextFrame;
}
- aPropSequence [2].Value = makeAny (aTextFrameSeq);
+ aPropSequence [3].Value = makeAny (aTextFrameSeq);
}
aPropertyMap [PROP_Path] <<= aPropSequence;
}
@@ -19452,8 +19577,8 @@ void CustomShapeProperties::initializePresetsMap5()
awt::Rectangle aRectangle;
aRectangle.X = 0;
aRectangle.Y = 0;
- aRectangle.Width = 1;
- aRectangle.Height = 1;
+ aRectangle.Width = 0;
+ aRectangle.Height = 0;
aPropertyMap [PROP_ViewBox] <<= aRectangle;
}
aPropertyMap [ PROP_Type ] <<= CREATE_OUSTRING("ooxml-flowChartProcess");