summaryrefslogtreecommitdiff
path: root/include/drawinglayer/primitive2d
diff options
context:
space:
mode:
authorArmin Le Grand (Collabora) <Armin.Le.Grand@me.com>2024-08-15 17:30:23 +0200
committerArmin Le Grand <Armin.Le.Grand@me.com>2024-08-16 14:44:11 +0200
commitcd6529a0501d49e0cd6344523d509fa7186687c9 (patch)
tree5aeb72b40935d11de2bb1bce97e0fe2640cc9266 /include/drawinglayer/primitive2d
parent4f5d694e5840b0b9bda15dc120e8b07d18d4cbd0 (diff)
CairoSDPR: Add support for Relief for Text Rendering
Change-Id: Idcb33e0f799b2219a4e737d0421bc21d85b5c7aa Reviewed-on: https://gerrit.libreoffice.org/c/core/+/171915 Reviewed-by: Armin Le Grand <Armin.Le.Grand@me.com> Tested-by: Jenkins
Diffstat (limited to 'include/drawinglayer/primitive2d')
-rw-r--r--include/drawinglayer/primitive2d/textdecoratedprimitive2d.hxx5
-rw-r--r--include/drawinglayer/primitive2d/textprimitive2d.hxx6
2 files changed, 11 insertions, 0 deletions
diff --git a/include/drawinglayer/primitive2d/textdecoratedprimitive2d.hxx b/include/drawinglayer/primitive2d/textdecoratedprimitive2d.hxx
index 73cfb45349ca..07b780b24922 100644
--- a/include/drawinglayer/primitive2d/textdecoratedprimitive2d.hxx
+++ b/include/drawinglayer/primitive2d/textdecoratedprimitive2d.hxx
@@ -129,6 +129,11 @@ namespace drawinglayer::primitive2d
/// helper for break-up text if needed
const Primitive2DContainer& getOrCreateBrokenUpText() const;
+ /// helpers for determining various decoration states
+ virtual bool hasTextRelief() const override;
+ virtual bool hasShadow() const override;
+ virtual bool hasTextDecoration() const override;
+
/// compare operator
virtual bool operator==( const BasePrimitive2D& rPrimitive ) const override;
diff --git a/include/drawinglayer/primitive2d/textprimitive2d.hxx b/include/drawinglayer/primitive2d/textprimitive2d.hxx
index 44c59ae47828..a71c24732d45 100644
--- a/include/drawinglayer/primitive2d/textprimitive2d.hxx
+++ b/include/drawinglayer/primitive2d/textprimitive2d.hxx
@@ -175,6 +175,12 @@ public:
const basegfx::BColor& getFontColor() const { return maFontColor; }
const Color& getTextFillColor() const { return maTextFillColor; }
+ /// helpers for determining various decoration states
+ virtual bool hasTextRelief() const;
+ virtual bool hasShadow() const;
+ virtual bool hasTextDecoration() const;
+ virtual bool hasOutline() const;
+
/// compare operator
virtual bool operator==(const BasePrimitive2D& rPrimitive) const override;