summaryrefslogtreecommitdiff
path: root/oox/source/drawingml/customshapeproperties.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'oox/source/drawingml/customshapeproperties.cxx')
-rw-r--r--oox/source/drawingml/customshapeproperties.cxx14
1 files changed, 13 insertions, 1 deletions
diff --git a/oox/source/drawingml/customshapeproperties.cxx b/oox/source/drawingml/customshapeproperties.cxx
index a5e31dd2772e..1382ead59c87 100644
--- a/oox/source/drawingml/customshapeproperties.cxx
+++ b/oox/source/drawingml/customshapeproperties.cxx
@@ -380,7 +380,8 @@ Any CustomShapeProvider::createStringSequence( size_t nStrings, const char **pSt
return makeAny( aStringSequence );
}
-com::sun::star::uno::Sequence< com::sun::star::drawing::EnhancedCustomShapeSegment > CustomShapeProvider::createCustomShapeSegmentSequence( size_t nElems, const sal_uInt16 *pValues )
+com::sun::star::uno::Sequence< com::sun::star::drawing::EnhancedCustomShapeSegment >
+CustomShapeProvider::createSegmentSequence( size_t nElems, const sal_uInt16 *pValues )
{
Sequence< EnhancedCustomShapeSegment > aSequence( (nElems + 1) / 2 );
for (size_t i = 0, j = 0; i < nElems / 2; i++)
@@ -391,6 +392,17 @@ com::sun::star::uno::Sequence< com::sun::star::drawing::EnhancedCustomShapeSegme
return aSequence;
}
+com::sun::star::drawing::EnhancedCustomShapeParameterPair
+CustomShapeProvider::createParameterPair( const ParameterPairData *pData )
+{
+ EnhancedCustomShapeParameterPair aParameterPair;
+ aParameterPair.First.Type = pData->nFirstType;
+ aParameterPair.First.Value = makeAny(pData->nFirstValue);
+ aParameterPair.Second.Type = pData->nSecondType;
+ aParameterPair.Second.Value = makeAny(pData->nSecondValue);
+ return aParameterPair;
+}
+
} }
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */