tdf#101181: implement glow effect also for SdrGrafPrimitive2D
... using the implementation from f9fc420dceb1ece2c98767da16a21aaff771f140
that is already functional for SdrCustomShapePrimitive2D. For now, only for
Draw/Impress.
Change-Id: I4936e8276df2b21cb5c438e89c215b819e9b8a40
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/92636
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
diff --git a/officecfg/registry/data/org/openoffice/Office/UI/Sidebar.xcu b/officecfg/registry/data/org/openoffice/Office/UI/Sidebar.xcu
index d0ceb28..ddf07b3 100644
--- a/officecfg/registry/data/org/openoffice/Office/UI/Sidebar.xcu
+++ b/officecfg/registry/data/org/openoffice/Office/UI/Sidebar.xcu
@@ -549,6 +549,7 @@
<value oor:separator=";">
Calc, Draw, hidden ;
DrawImpress, Draw, hidden ;
DrawImpress, Graphic, hidden ;
WriterVariants, Draw, hidden ;
</value>
</prop>
diff --git a/svx/source/sdr/primitive2d/sdrgrafprimitive2d.cxx b/svx/source/sdr/primitive2d/sdrgrafprimitive2d.cxx
index 77dc731..9f15f4d 100644
--- a/svx/source/sdr/primitive2d/sdrgrafprimitive2d.cxx
+++ b/svx/source/sdr/primitive2d/sdrgrafprimitive2d.cxx
@@ -125,6 +125,12 @@ namespace drawinglayer::primitive2d
aTranslateGrf.getY());
}
if (!aRetval.empty() && !getSdrLFSTAttribute().getGlow().isDefault())
{
// glow
aRetval = createEmbeddedGlowPrimitive(aRetval, getSdrLFSTAttribute().getGlow());
}
rContainer.insert(rContainer.end(), aRetval.begin(), aRetval.end());
}
diff --git a/svx/source/sdr/properties/graphicproperties.cxx b/svx/source/sdr/properties/graphicproperties.cxx
index ec19696..35d8e83 100644
--- a/svx/source/sdr/properties/graphicproperties.cxx
+++ b/svx/source/sdr/properties/graphicproperties.cxx
@@ -67,6 +67,8 @@ namespace sdr::properties
// range from SdrGrafObj
SDRATTR_GRAF_FIRST, SDRATTR_GRAF_LAST,
SDRATTR_GLOW_FIRST, SDRATTR_GLOW_LAST,
// range from SdrTextObj
EE_ITEMS_START, EE_ITEMS_END>{});
}