diff options
author | Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk> | 2018-01-07 11:46:53 +0900 |
---|---|---|
committer | Tomaž Vajngerl <quikee@gmail.com> | 2018-01-07 05:44:55 +0100 |
commit | 29fe8b41428c72f8dc20b44c56caac057c1b6759 (patch) | |
tree | e9021b99330f374e49ca24f2e39d673eecef5c7c /include | |
parent | 0189792bd8837057e853a48499b4d59f9149490f (diff) |
remove some whitespace shapepropertymap.hxx
Change-Id: I8e756b43606a32b95f6192f40a5f32d13a65eec1
Reviewed-on: https://gerrit.libreoffice.org/47522
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/oox/drawingml/shapepropertymap.hxx | 55 |
1 files changed, 29 insertions, 26 deletions
diff --git a/include/oox/drawingml/shapepropertymap.hxx b/include/oox/drawingml/shapepropertymap.hxx index 382b77b56810..2ff40651ec33 100644 --- a/include/oox/drawingml/shapepropertymap.hxx +++ b/include/oox/drawingml/shapepropertymap.hxx @@ -81,31 +81,32 @@ typedef o3tl::enumarray<ShapeProperty, sal_Int32> ShapePropertyIds; struct OOX_DLLPUBLIC ShapePropertyInfo { const ShapePropertyIds& mrPropertyIds; - bool mbNamedLineMarker; /// True = use named line marker instead of explicit line marker. - bool mbNamedLineDash; /// True = use named line dash instead of explicit line dash. - bool mbNamedFillGradient; /// True = use named fill gradient instead of explicit fill gradient. - bool mbNamedFillBitmapUrl; /// True = use named fill bitmap URL instead of explicit fill bitmap URL. + bool mbNamedLineMarker; /// True = use named line marker instead of explicit line marker. + bool mbNamedLineDash; /// True = use named line dash instead of explicit line dash. + bool mbNamedFillGradient; /// True = use named fill gradient instead of explicit fill gradient. + bool mbNamedFillBitmapUrl; /// True = use named fill bitmap URL instead of explicit fill bitmap URL. static ShapePropertyInfo DEFAULT; /// Default property info (used as default parameter of other methods). - explicit ShapePropertyInfo( - const ShapePropertyIds& rnPropertyIds, - bool bNamedLineMarker, - bool bNamedLineDash, - bool bNamedFillGradient, - bool bNamedFillBitmapUrl ); - - bool has( ShapeProperty ePropId ) const { return mrPropertyIds[ ePropId ] >= 0; } - sal_Int32 operator[]( ShapeProperty ePropId ) const { return mrPropertyIds[ ePropId ]; } + explicit ShapePropertyInfo(const ShapePropertyIds& rnPropertyIds, + bool bNamedLineMarker, bool bNamedLineDash, + bool bNamedFillGradient, bool bNamedFillBitmapUrl); + + bool has(ShapeProperty ePropId) const + { + return mrPropertyIds[ePropId] >= 0; + } + sal_Int32 operator[](ShapeProperty ePropId) const + { + return mrPropertyIds[ePropId]; + } }; - class OOX_DLLPUBLIC ShapePropertyMap : public PropertyMap { public: - explicit ShapePropertyMap( - ModelObjectHelper& rModelObjHelper, - const ShapePropertyInfo& rShapePropInfo = ShapePropertyInfo::DEFAULT ); + explicit ShapePropertyMap(ModelObjectHelper& rModelObjHelper, + const ShapePropertyInfo& rShapePropInfo = ShapePropertyInfo::DEFAULT ); /** Returns true, if the specified property is supported. */ bool supportsProperty( ShapeProperty ePropId ) const; @@ -118,26 +119,28 @@ public: bool setAnyProperty( ShapeProperty ePropId, const css::uno::Any& rValue ); /** Sets the specified shape property to the passed value. */ - template< typename Type > - bool setProperty( ShapeProperty ePropId, const Type& rValue ) - { return setAnyProperty( ePropId, css::uno::Any( rValue ) ); } + template<typename Type> + bool setProperty(ShapeProperty ePropId, const Type& rValue) + { + return setAnyProperty(ePropId, css::uno::Any(rValue)); + } using PropertyMap::setAnyProperty; using PropertyMap::setProperty; private: /** Sets an explicit line marker, or creates a named line marker. */ - bool setLineMarker( sal_Int32 nPropId, const css::uno::Any& rValue ); + bool setLineMarker( sal_Int32 nPropId, const css::uno::Any& rValue ); /** Sets an explicit line dash, or creates a named line dash. */ - bool setLineDash( sal_Int32 nPropId, const css::uno::Any& rValue ); + bool setLineDash( sal_Int32 nPropId, const css::uno::Any& rValue ); /** Sets an explicit fill gradient, or creates a named fill gradient. */ - bool setFillGradient( sal_Int32 nPropId, const css::uno::Any& rValue ); + bool setFillGradient( sal_Int32 nPropId, const css::uno::Any& rValue ); /** Creates a named transparency gradient. */ - bool setGradientTrans( sal_Int32 nPropId, const css::uno::Any& rValue ); + bool setGradientTrans( sal_Int32 nPropId, const css::uno::Any& rValue ); /** Sets an explicit fill bitmap URL, or creates a named fill bitmap URL. */ - bool setFillBitmapUrl( sal_Int32 nPropId, const css::uno::Any& rValue ); + bool setFillBitmapUrl( sal_Int32 nPropId, const css::uno::Any& rValue ); /** Sets an explicit fill bitmap URL and pushes the name to FillBitmapName */ - bool setFillBitmapNameFromUrl( const css::uno::Any& rValue ); + bool setFillBitmapNameFromUrl( const css::uno::Any& rValue ); // not implemented, to prevent implicit conversion from enum to int css::uno::Any& operator[]( ShapeProperty ePropId ) = delete; |