summaryrefslogtreecommitdiff
path: root/xmloff
diff options
context:
space:
mode:
authorA_GAN <ganzouri97@gmail.com>2020-06-22 23:39:16 +0200
committerTomaž Vajngerl <quikee@gmail.com>2020-06-29 18:32:57 +0200
commit2803b09ec024cb0b8cf25ec6fe08412649f40d5e (patch)
treea548fde334adfec3435a70a189b97698e5d78d13 /xmloff
parentcb0c7e26e5708010b1fe941ae2f66134f31ed876 (diff)
OOXML/ODF Support for Shadow blur radius
Adding export support for OOXML. Adding import/export support for ODF Changing some values in test cases as convertEMUtoHmm round the fraction. Add two test functions for OOXML and ODF export. Change-Id: Ie5d862b46b5264ead4954f407fee2837b5151cd7 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/96907 Tested-by: Jenkins Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'xmloff')
-rw-r--r--xmloff/source/core/xmltoken.cxx1
-rw-r--r--xmloff/source/draw/sdpropls.cxx1
-rw-r--r--xmloff/source/token/tokens.txt1
3 files changed, 3 insertions, 0 deletions
diff --git a/xmloff/source/core/xmltoken.cxx b/xmloff/source/core/xmltoken.cxx
index 8d9a70f5e082..7773ac8ebcc6 100644
--- a/xmloff/source/core/xmltoken.cxx
+++ b/xmloff/source/core/xmltoken.cxx
@@ -1661,6 +1661,7 @@ namespace xmloff::token {
TOKEN( "shadow-offset-y", XML_SHADOW_OFFSET_Y ),
TOKEN( "shadow-slant", XML_SHADOW_SLANT ),
TOKEN( "shadow-transparency", XML_SHADOW_TRANSPARENCY ),
+ TOKEN( "shadow-blur", XML_SHADOW_BLUR ),
TOKEN( "shape", XML_SHAPE ),
TOKEN( "shape-id", XML_SHAPE_ID ),
TOKEN( "shapes", XML_SHAPES ),
diff --git a/xmloff/source/draw/sdpropls.cxx b/xmloff/source/draw/sdpropls.cxx
index 2adc5da00c6d..3f6c1a70a817 100644
--- a/xmloff/source/draw/sdpropls.cxx
+++ b/xmloff/source/draw/sdpropls.cxx
@@ -151,6 +151,7 @@ const XMLPropertyMapEntry aXMLSDProperties[] =
GMAP( "ShadowYDistance", XML_NAMESPACE_DRAW, XML_SHADOW_OFFSET_Y, XML_TYPE_MEASURE, 0 ),
GMAP( "ShadowColor", XML_NAMESPACE_DRAW, XML_SHADOW_COLOR, XML_TYPE_COLOR, 0 ),
GMAP( "ShadowTransparence", XML_NAMESPACE_DRAW, XML_SHADOW_OPACITY, XML_TYPE_NEG_PERCENT, 0 ),
+ GMAPV( "ShadowBlur", XML_NAMESPACE_LO_EXT, XML_SHADOW_BLUR, XML_TYPE_MEASURE, 0, SvtSaveOptions::ODFSVER_FUTURE_EXTENDED),
// glow attributes
GMAPV( "GlowEffectRadius", XML_NAMESPACE_LO_EXT, XML_GLOW_RADIUS, XML_TYPE_MEASURE , 0, SvtSaveOptions::ODFSVER_FUTURE_EXTENDED),
diff --git a/xmloff/source/token/tokens.txt b/xmloff/source/token/tokens.txt
index 34b9af91e03c..0c67e23c3b50 100644
--- a/xmloff/source/token/tokens.txt
+++ b/xmloff/source/token/tokens.txt
@@ -1571,6 +1571,7 @@ shadow-offset-x
shadow-offset-y
shadow-slant
shadow-transparency
+shadow-blur
shape
shape-id
shapes