[Libreoffice-commits] core.git: include/oox

Tomaž Vajngerl tomaz.vajngerl at collabora.co.uk
Sun Jan 7 04:45:23 UTC 2018


 include/oox/drawingml/shapepropertymap.hxx |   55 +++++++++++++++--------------
 1 file changed, 29 insertions(+), 26 deletions(-)

New commits:
commit 29fe8b41428c72f8dc20b44c56caac057c1b6759
Author: Tomaž Vajngerl <tomaz.vajngerl at collabora.co.uk>
Date:   Sun Jan 7 11:46:53 2018 +0900

    remove some whitespace shapepropertymap.hxx
    
    Change-Id: I8e756b43606a32b95f6192f40a5f32d13a65eec1
    Reviewed-on: https://gerrit.libreoffice.org/47522
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Tomaž Vajngerl <quikee at gmail.com>

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;


More information about the Libreoffice-commits mailing list