summaryrefslogtreecommitdiff
path: root/svx/source/sdr
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2020-04-21 12:00:50 +0300
committerMike Kaganski <mike.kaganski@collabora.com>2020-05-06 14:05:41 +0200
commit65f3aea4727123a75dbd471592fe711998b5209b (patch)
treec4c69d7d1339a4cffc4d7455ea3677a6aa688a49 /svx/source/sdr
parentb8fb2f0b136e688e76ef8d6f09fd75f61ed4c99f (diff)
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>
Diffstat (limited to 'svx/source/sdr')
-rw-r--r--svx/source/sdr/primitive2d/sdrgrafprimitive2d.cxx6
-rw-r--r--svx/source/sdr/properties/graphicproperties.cxx2
2 files changed, 8 insertions, 0 deletions
diff --git a/svx/source/sdr/primitive2d/sdrgrafprimitive2d.cxx b/svx/source/sdr/primitive2d/sdrgrafprimitive2d.cxx
index 77dc73145e33..9f15f4d9fc41 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 ec19696c2d78..35d8e832679a 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>{});
}