officecfg/registry/data/org/openoffice/Office/UI/Sidebar.xcu | 1 + svx/source/sdr/primitive2d/sdrgrafprimitive2d.cxx | 6 ++++++ svx/source/sdr/properties/graphicproperties.cxx | 2 ++ 3 files changed, 9 insertions(+)
New commits: commit 65f3aea4727123a75dbd471592fe711998b5209b Author: Mike Kaganski <mike.kagan...@collabora.com> AuthorDate: Tue Apr 21 12:00:50 2020 +0300 Commit: Mike Kaganski <mike.kagan...@collabora.com> CommitDate: Wed May 6 14:05:41 2020 +0200 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.kagan...@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 d0ceb287d714..ddf07b32f5a2 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 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>{}); } _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits