summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorTomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>2020-02-03 18:00:29 +0100
committerTomaž Vajngerl <quikee@gmail.com>2020-02-04 08:35:42 +0100
commitf31b00b1a43f0d2fab2762ada230cd6dc267b6a4 (patch)
treeff71b8955ef50d51f02032ac2ac0300a335d8004 /include
parente8614c7f4dc78c8c2fb5417d7193c6f9325de5cf (diff)
remove backgroundcolorprimitive2d.hxx from clang-format blacklist
Change-Id: I8ad988dd0eb6a4bbbe9fc9bbc773c692cab4401f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87936 Tested-by: Jenkins Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'include')
-rw-r--r--include/drawinglayer/primitive2d/backgroundcolorprimitive2d.hxx103
1 files changed, 53 insertions, 50 deletions
diff --git a/include/drawinglayer/primitive2d/backgroundcolorprimitive2d.hxx b/include/drawinglayer/primitive2d/backgroundcolorprimitive2d.hxx
index b88a43f4d26e..127353581212 100644
--- a/include/drawinglayer/primitive2d/backgroundcolorprimitive2d.hxx
+++ b/include/drawinglayer/primitive2d/backgroundcolorprimitive2d.hxx
@@ -24,60 +24,63 @@
#include <drawinglayer/primitive2d/baseprimitive2d.hxx>
#include <basegfx/color/bcolor.hxx>
-
// BackgroundColorPrimitive2D class
namespace drawinglayer
{
- namespace primitive2d
- {
- /** BackgroundColorPrimitive2D class
-
- This primitive is defined to fill the whole visible Viewport with
- the given color (and thus decomposes to a filled polygon). This
- makes it a view-dependent primitive by definition. It only has
- a valid decomposition if a valid Viewport is given in the
- ViewInformation2D at decomposition time.
-
- It will try to buffer its last decomposition using maLastViewport
- to detect changes in the get2DDecomposition call.
- */
- class DRAWINGLAYER_DLLPUBLIC BackgroundColorPrimitive2D final : public BufferedDecompositionPrimitive2D
- {
- private:
- /// the fill color to use
- basegfx::BColor maBColor;
- double mfTransparency;
-
- /// the last used viewInformation, used from getDecomposition for buffering
- basegfx::B2DRange maLastViewport;
-
- /// create local decomposition
- virtual void create2DDecomposition(Primitive2DContainer& rContainer, const geometry::ViewInformation2D& rViewInformation) const override;
-
- public:
- /// constructor
- explicit BackgroundColorPrimitive2D(
- const basegfx::BColor& rBColor,
- double fTransparency = 0);
-
- /// data read access
- const basegfx::BColor& getBColor() const { return maBColor; }
- double getTransparency() const { return mfTransparency; }
-
- /// compare operator
- virtual bool operator==(const BasePrimitive2D& rPrimitive) const override;
-
- /// get B2Drange
- virtual basegfx::B2DRange getB2DRange(const geometry::ViewInformation2D& rViewInformation) const override;
-
- /// provide unique ID
- virtual sal_uInt32 getPrimitive2DID() const override;
-
- /// Override standard getDecomposition call to be view-dependent here
- virtual void get2DDecomposition(Primitive2DDecompositionVisitor& rVisitor, const geometry::ViewInformation2D& rViewInformation) const override;
- };
- } // end of namespace primitive2d
+namespace primitive2d
+{
+/** BackgroundColorPrimitive2D class
+
+ This primitive is defined to fill the whole visible Viewport with
+ the given color (and thus decomposes to a filled polygon). This
+ makes it a view-dependent primitive by definition. It only has
+ a valid decomposition if a valid Viewport is given in the
+ ViewInformation2D at decomposition time.
+
+ It will try to buffer its last decomposition using maLastViewport
+ to detect changes in the get2DDecomposition call.
+ */
+class DRAWINGLAYER_DLLPUBLIC BackgroundColorPrimitive2D final
+ : public BufferedDecompositionPrimitive2D
+{
+private:
+ /// the fill color to use
+ basegfx::BColor maBColor;
+ double mfTransparency;
+
+ /// the last used viewInformation, used from getDecomposition for buffering
+ basegfx::B2DRange maLastViewport;
+
+ /// create local decomposition
+ virtual void
+ create2DDecomposition(Primitive2DContainer& rContainer,
+ const geometry::ViewInformation2D& rViewInformation) const override;
+
+public:
+ /// constructor
+ explicit BackgroundColorPrimitive2D(const basegfx::BColor& rBColor, double fTransparency = 0);
+
+ /// data read access
+ const basegfx::BColor& getBColor() const { return maBColor; }
+ double getTransparency() const { return mfTransparency; }
+
+ /// compare operator
+ virtual bool operator==(const BasePrimitive2D& rPrimitive) const override;
+
+ /// get B2Drange
+ virtual basegfx::B2DRange
+ getB2DRange(const geometry::ViewInformation2D& rViewInformation) const override;
+
+ /// provide unique ID
+ virtual sal_uInt32 getPrimitive2DID() const override;
+
+ /// Override standard getDecomposition call to be view-dependent here
+ virtual void
+ get2DDecomposition(Primitive2DDecompositionVisitor& rVisitor,
+ const geometry::ViewInformation2D& rViewInformation) const override;
+};
+} // end of namespace primitive2d
} // end of namespace drawinglayer
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */