summaryrefslogtreecommitdiff
path: root/oox/inc/oox/drawingml/customshapeproperties.hxx
diff options
context:
space:
mode:
authorMichael Meeks <michael.meeks@suse.com>2012-03-02 21:42:18 +0000
committerMichael Meeks <michael.meeks@suse.com>2012-03-02 22:14:24 +0000
commit40b30c31ff9e53e233799bdb18971c43b9b77dc8 (patch)
treea09802c84d12ed475819fca164e7d7123bc6ca9c /oox/inc/oox/drawingml/customshapeproperties.hxx
parentf59733657fdffbc66b2cc3531791aa0bb7a96b51 (diff)
customshapes: special case EnhancedCustomShapeParameterPair to win
Gives a 50% shrink in compile time, and a ~1Mb shrink in binary size
Diffstat (limited to 'oox/inc/oox/drawingml/customshapeproperties.hxx')
-rw-r--r--oox/inc/oox/drawingml/customshapeproperties.hxx10
1 files changed, 9 insertions, 1 deletions
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;
};