summaryrefslogtreecommitdiff
path: root/svx/inc
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.com>2020-12-02 14:09:31 +0100
committerMiklos Vajna <vmiklos@collabora.com>2020-12-02 17:19:47 +0100
commita75bf43a8d6c5dec6dcc86908c142ceec541aa8c (patch)
tree8a88986f2f6620ccd6f707c93125d94716274ae1 /svx/inc
parent5b464179c19310504e5a6f900811b7cc523120b6 (diff)
tdf#129961 svx: add rendering for table shadow as direct format
There was already shadow support in ViewContactOfTableObj::createViewIndependentPrimitive2DSequence(), but the UNO API and UI could only set the shadow properties on a shape style, so shadow-as-direct-format is new. One difference between the PowerPoint shadow and our shadow is that we draw shadow for table text as well, while PowerPoint only does it for the borders / cell fill style. This means we're either backwards-compatible or compatible with PowerPoint. Solve this problem by leaving the style case unchanged, but render direct formatting like PowerPoint. Change-Id: I2bc64fea8062f9d8162b95d1eaccb49c3466b5c5 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/107073 Reviewed-by: Miklos Vajna <vmiklos@collabora.com> Tested-by: Jenkins
Diffstat (limited to 'svx/inc')
-rw-r--r--svx/inc/sdr/primitive2d/sdrdecompositiontools.hxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/svx/inc/sdr/primitive2d/sdrdecompositiontools.hxx b/svx/inc/sdr/primitive2d/sdrdecompositiontools.hxx
index 202354332b55..db1c94c1b7fa 100644
--- a/svx/inc/sdr/primitive2d/sdrdecompositiontools.hxx
+++ b/svx/inc/sdr/primitive2d/sdrdecompositiontools.hxx
@@ -71,7 +71,8 @@ namespace drawinglayer::primitive2d
Primitive2DContainer SVXCORE_DLLPUBLIC createEmbeddedShadowPrimitive(
const Primitive2DContainer& rContent,
const attribute::SdrShadowAttribute& rShadow,
- const basegfx::B2DHomMatrix& rObjectMatrix = basegfx::B2DHomMatrix());
+ const basegfx::B2DHomMatrix& rObjectMatrix = basegfx::B2DHomMatrix(),
+ const Primitive2DContainer* pContentForShadow = nullptr);
Primitive2DContainer SVXCORE_DLLPUBLIC createEmbeddedGlowPrimitive(
const Primitive2DContainer& rContent,