summaryrefslogtreecommitdiff
path: root/drawinglayer
diff options
context:
space:
mode:
authorXisco Fauli <xiscofauli@libreoffice.org>2023-06-06 19:04:50 +0200
committerXisco Fauli <xiscofauli@libreoffice.org>2023-06-07 14:49:42 +0200
commit77354ba8695f66331bfc6cc3f5e3f2e9d15f1740 (patch)
tree58794916319f20cf045293fc4a8b7b50e56565cc /drawinglayer
parent225f79a068a1b5a51b82f9d1a6b1fc756b572873 (diff)
tdf#132246: add basic support for feGaussianBlur
for now only apply it if in="SourceGraphic" is explicitly used Change-Id: I3daea354f61ba5f6b3d13da1e7a71e99d51f6729 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/152684 Tested-by: Jenkins Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Diffstat (limited to 'drawinglayer')
-rw-r--r--drawinglayer/source/tools/primitive2dxmldump.cxx13
1 files changed, 13 insertions, 0 deletions
diff --git a/drawinglayer/source/tools/primitive2dxmldump.cxx b/drawinglayer/source/tools/primitive2dxmldump.cxx
index 2267a1080c13..7edb5bce5c89 100644
--- a/drawinglayer/source/tools/primitive2dxmldump.cxx
+++ b/drawinglayer/source/tools/primitive2dxmldump.cxx
@@ -28,6 +28,7 @@
#include <drawinglayer/primitive2d/PolyPolygonStrokePrimitive2D.hxx>
#include <drawinglayer/primitive2d/PolyPolygonColorPrimitive2D.hxx>
#include <drawinglayer/primitive2d/hiddengeometryprimitive2d.hxx>
+#include <drawinglayer/primitive2d/softedgeprimitive2d.hxx>
#include <drawinglayer/primitive2d/textdecoratedprimitive2d.hxx>
#include <primitive2d/textlineprimitive2d.hxx>
#include <drawinglayer/primitive2d/textprimitive2d.hxx>
@@ -1134,6 +1135,18 @@ void Primitive2dXmlDump::decomposeAndWrite(
rWriter.endElement();
break;
}
+ case PRIMITIVE2D_ID_SOFTEDGEPRIMITIVE2D:
+ {
+ // SoftEdgePrimitive2D.
+ const SoftEdgePrimitive2D& rSoftEdgePrimitive2D
+ = dynamic_cast<const SoftEdgePrimitive2D&>(*pBasePrimitive);
+ rWriter.startElement("softedge");
+ rWriter.attribute("radius", OUString::number(rSoftEdgePrimitive2D.getRadius()));
+
+ decomposeAndWrite(rSoftEdgePrimitive2D.getChildren(), rWriter);
+ rWriter.endElement();
+ break;
+ }
case PRIMITIVE2D_ID_SCENEPRIMITIVE2D:
{