Kaydet (Commit) 29fe8b41 authored tarafından Tomaž Vajngerl's avatar Tomaž Vajngerl Kaydeden (comit) Tomaž Vajngerl

remove some whitespace shapepropertymap.hxx

Change-Id: I8e756b43606a32b95f6192f40a5f32d13a65eec1
Reviewed-on: https://gerrit.libreoffice.org/47522Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarTomaž Vajngerl <quikee@gmail.com>
üst 0189792b
...@@ -88,23 +88,24 @@ struct OOX_DLLPUBLIC ShapePropertyInfo ...@@ -88,23 +88,24 @@ struct OOX_DLLPUBLIC ShapePropertyInfo
static ShapePropertyInfo DEFAULT; /// Default property info (used as default parameter of other methods). static ShapePropertyInfo DEFAULT; /// Default property info (used as default parameter of other methods).
explicit ShapePropertyInfo( explicit ShapePropertyInfo(const ShapePropertyIds& rnPropertyIds,
const ShapePropertyIds& rnPropertyIds, bool bNamedLineMarker, bool bNamedLineDash,
bool bNamedLineMarker, bool bNamedFillGradient, bool bNamedFillBitmapUrl);
bool bNamedLineDash,
bool bNamedFillGradient, bool has(ShapeProperty ePropId) const
bool bNamedFillBitmapUrl ); {
return mrPropertyIds[ePropId] >= 0;
bool has( ShapeProperty ePropId ) const { return mrPropertyIds[ ePropId ] >= 0; } }
sal_Int32 operator[]( ShapeProperty ePropId ) const { return mrPropertyIds[ ePropId ]; } sal_Int32 operator[](ShapeProperty ePropId) const
{
return mrPropertyIds[ePropId];
}
}; };
class OOX_DLLPUBLIC ShapePropertyMap : public PropertyMap class OOX_DLLPUBLIC ShapePropertyMap : public PropertyMap
{ {
public: public:
explicit ShapePropertyMap( explicit ShapePropertyMap(ModelObjectHelper& rModelObjHelper,
ModelObjectHelper& rModelObjHelper,
const ShapePropertyInfo& rShapePropInfo = ShapePropertyInfo::DEFAULT ); const ShapePropertyInfo& rShapePropInfo = ShapePropertyInfo::DEFAULT );
/** Returns true, if the specified property is supported. */ /** Returns true, if the specified property is supported. */
...@@ -118,9 +119,11 @@ public: ...@@ -118,9 +119,11 @@ public:
bool setAnyProperty( ShapeProperty ePropId, const css::uno::Any& rValue ); bool setAnyProperty( ShapeProperty ePropId, const css::uno::Any& rValue );
/** Sets the specified shape property to the passed value. */ /** Sets the specified shape property to the passed value. */
template< typename Type > template<typename Type>
bool setProperty( ShapeProperty ePropId, const Type& rValue ) bool setProperty(ShapeProperty ePropId, const Type& rValue)
{ return setAnyProperty( ePropId, css::uno::Any( rValue ) ); } {
return setAnyProperty(ePropId, css::uno::Any(rValue));
}
using PropertyMap::setAnyProperty; using PropertyMap::setAnyProperty;
using PropertyMap::setProperty; using PropertyMap::setProperty;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment