diff options
author | Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk> | 2020-04-11 12:12:19 +0200 |
---|---|---|
committer | Tomaž Vajngerl <quikee@gmail.com> | 2020-04-12 11:33:44 +0200 |
commit | 65f5484dd7ad8036f617685f2a76e5e2c24be298 (patch) | |
tree | 579d5f03570ede4dfedf33ec5aecc5d41bf60371 /include/drawinglayer | |
parent | graphic: use UCBContentHelper to delete files (diff) | |
download | core-65f5484dd7ad8036f617685f2a76e5e2c24be298.tar.gz core-65f5484dd7ad8036f617685f2a76e5e2c24be298.zip |
remove {line,stroke}attribute.hxx from clang-format blacklist
Change-Id: I4826b94da3982be8807c4eba63971cb7d3df9d8a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/92070
Tested-by: Jenkins
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'include/drawinglayer')
-rw-r--r-- | include/drawinglayer/attribute/lineattribute.hxx | 67 | ||||
-rw-r--r-- | include/drawinglayer/attribute/strokeattribute.hxx | 55 |
2 files changed, 60 insertions, 62 deletions
diff --git a/include/drawinglayer/attribute/lineattribute.hxx b/include/drawinglayer/attribute/lineattribute.hxx index 90c50f904fe9..77828a15d21e 100644 --- a/include/drawinglayer/attribute/lineattribute.hxx +++ b/include/drawinglayer/attribute/lineattribute.hxx @@ -26,51 +26,50 @@ #include <com/sun/star/drawing/LineCap.hpp> #include <o3tl/cow_wrapper.hxx> -namespace basegfx { - class BColor; +namespace basegfx +{ +class BColor; } -namespace drawinglayer::attribute { - class ImpLineAttribute; +namespace drawinglayer::attribute +{ +class ImpLineAttribute; } namespace drawinglayer::attribute { - class DRAWINGLAYER_DLLPUBLIC LineAttribute - { - public: - typedef o3tl::cow_wrapper< ImpLineAttribute > ImplType; +class DRAWINGLAYER_DLLPUBLIC LineAttribute +{ +public: + typedef o3tl::cow_wrapper<ImpLineAttribute> ImplType; - private: - ImplType mpLineAttribute; +private: + ImplType mpLineAttribute; - public: - /// constructors/assignmentoperator/destructor - explicit LineAttribute( - const basegfx::BColor& rColor, - double fWidth = 0.0, - basegfx::B2DLineJoin aB2DLineJoin = basegfx::B2DLineJoin::Round, - css::drawing::LineCap aLineCap = css::drawing::LineCap_BUTT, - double fMiterMinimumAngle = basegfx::deg2rad(15.0)); - LineAttribute(); - LineAttribute(const LineAttribute&); - LineAttribute& operator=(const LineAttribute&); - ~LineAttribute(); +public: + /// constructors/assignmentoperator/destructor + explicit LineAttribute(const basegfx::BColor& rColor, double fWidth = 0.0, + basegfx::B2DLineJoin aB2DLineJoin = basegfx::B2DLineJoin::Round, + css::drawing::LineCap aLineCap = css::drawing::LineCap_BUTT, + double fMiterMinimumAngle = basegfx::deg2rad(15.0)); + LineAttribute(); + LineAttribute(const LineAttribute&); + LineAttribute& operator=(const LineAttribute&); + ~LineAttribute(); - // checks if the incarnation is default constructed - bool isDefault() const; + // checks if the incarnation is default constructed + bool isDefault() const; - // compare operator - bool operator==(const LineAttribute& rCandidate) const; + // compare operator + bool operator==(const LineAttribute& rCandidate) const; - // data read access - const basegfx::BColor& getColor() const; - double getWidth() const; - basegfx::B2DLineJoin getLineJoin() const; - css::drawing::LineCap getLineCap() const; - double getMiterMinimumAngle() const; - }; + // data read access + const basegfx::BColor& getColor() const; + double getWidth() const; + basegfx::B2DLineJoin getLineJoin() const; + css::drawing::LineCap getLineCap() const; + double getMiterMinimumAngle() const; +}; } // end of namespace drawinglayer - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/include/drawinglayer/attribute/strokeattribute.hxx b/include/drawinglayer/attribute/strokeattribute.hxx index fd9409e9519d..d5d825c54710 100644 --- a/include/drawinglayer/attribute/strokeattribute.hxx +++ b/include/drawinglayer/attribute/strokeattribute.hxx @@ -23,43 +23,42 @@ #include <o3tl/cow_wrapper.hxx> #include <vector> -namespace drawinglayer::attribute { - class ImpStrokeAttribute; +namespace drawinglayer::attribute +{ +class ImpStrokeAttribute; } namespace drawinglayer::attribute { - class DRAWINGLAYER_DLLPUBLIC StrokeAttribute - { - public: - typedef o3tl::cow_wrapper< ImpStrokeAttribute > ImplType; +class DRAWINGLAYER_DLLPUBLIC StrokeAttribute +{ +public: + typedef o3tl::cow_wrapper<ImpStrokeAttribute> ImplType; - private: - ImplType mpStrokeAttribute; +private: + ImplType mpStrokeAttribute; - public: - /// constructors/assignmentoperator/destructor - explicit StrokeAttribute( - const ::std::vector< double >& rDotDashArray, - double fFullDotDashLen = 0.0); - StrokeAttribute(); - StrokeAttribute(const StrokeAttribute&); - StrokeAttribute(StrokeAttribute&&); - StrokeAttribute& operator=(const StrokeAttribute&); - StrokeAttribute& operator=(StrokeAttribute&&); - ~StrokeAttribute(); +public: + /// constructors/assignmentoperator/destructor + explicit StrokeAttribute(const ::std::vector<double>& rDotDashArray, + double fFullDotDashLen = 0.0); + StrokeAttribute(); + StrokeAttribute(const StrokeAttribute&); + StrokeAttribute(StrokeAttribute&&); + StrokeAttribute& operator=(const StrokeAttribute&); + StrokeAttribute& operator=(StrokeAttribute&&); + ~StrokeAttribute(); - // checks if the incarnation is default constructed - bool isDefault() const; + // checks if the incarnation is default constructed + bool isDefault() const; - // compare operator - bool operator==(const StrokeAttribute& rCandidate) const; + // compare operator + bool operator==(const StrokeAttribute& rCandidate) const; - // data read access - const ::std::vector< double >& getDotDashArray() const; - double getFullDotDashLen() const; - }; + // data read access + const ::std::vector<double>& getDotDashArray() const; + double getFullDotDashLen() const; +}; } // end of namespace drawinglayer::attribute - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |