From 40b30c31ff9e53e233799bdb18971c43b9b77dc8 Mon Sep 17 00:00:00 2001 From: Michael Meeks Date: Fri, 2 Mar 2012 21:42:18 +0000 Subject: customshapes: special case EnhancedCustomShapeParameterPair to win Gives a 50% shrink in compile time, and a ~1Mb shrink in binary size --- oox/inc/oox/drawingml/customshapeproperties.hxx | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'oox/inc/oox/drawingml/customshapeproperties.hxx') diff --git a/oox/inc/oox/drawingml/customshapeproperties.hxx b/oox/inc/oox/drawingml/customshapeproperties.hxx index a2d72e8c69e1..b811efc0998b 100644 --- a/oox/inc/oox/drawingml/customshapeproperties.hxx +++ b/oox/inc/oox/drawingml/customshapeproperties.hxx @@ -115,8 +115,16 @@ struct Path2D class CustomShapeProvider { protected: + struct ParameterPairData { + sal_uInt16 nFirstType; + sal_uInt16 nSecondType; + sal_uInt32 nFirstValue; + sal_uInt32 nSecondValue; + }; static com::sun::star::uno::Any createStringSequence( size_t nStrings, const char **pStrings ); - static com::sun::star::uno::Sequence< com::sun::star::drawing::EnhancedCustomShapeSegment > createCustomShapeSegmentSequence( size_t nElems, const sal_uInt16 *pValues ); + static com::sun::star::uno::Sequence< com::sun::star::drawing::EnhancedCustomShapeSegment > createSegmentSequence( size_t nElems, const sal_uInt16 *pValues ); + static com::sun::star::uno::Sequence< com::sun::star::drawing::EnhancedCustomShapeSegment > createCustomShapeSegmentSequence( size_t nElems, const sal_uInt16 *pValues ) { return createSegmentSequence( nElems, pValues ); } + static com::sun::star::drawing::EnhancedCustomShapeParameterPair createParameterPair( const ParameterPairData *pData ); public: virtual PropertyMap getProperties() = 0; }; -- cgit v1.2.3