summaryrefslogtreecommitdiff
path: root/test/source
diff options
context:
space:
mode:
authorXisco Fauli <anistenis@gmail.com>2016-02-07 23:37:13 +0100
committerjan iversen <jani@documentfoundation.org>2016-02-09 17:23:00 +0000
commit05554bc47840659e1b9826523c100edfbc8a4ecd (patch)
treed0fd43b27dc9991f5b1ffac8915a62ea62f2149f /test/source
parent44503ecd59d5bc6b96e7948eede240c0314e5dcf (diff)
SVGIO: tdf#79163: Add import test
Change-Id: I891425f331e9be21c160eb0b11f05dba280bef23 Reviewed-on: https://gerrit.libreoffice.org/22196 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: jan iversen <jani@documentfoundation.org> Tested-by: jan iversen <jani@documentfoundation.org>
Diffstat (limited to 'test/source')
-rw-r--r--test/source/primitive2dxmldump.cxx23
1 files changed, 23 insertions, 0 deletions
diff --git a/test/source/primitive2dxmldump.cxx b/test/source/primitive2dxmldump.cxx
index 48fa0d0d2b72..84cef39aa822 100644
--- a/test/source/primitive2dxmldump.cxx
+++ b/test/source/primitive2dxmldump.cxx
@@ -22,6 +22,8 @@
#include <drawinglayer/primitive2d/hiddengeometryprimitive2d.hxx>
#include <drawinglayer/primitive2d/polygonprimitive2d.hxx>
#include <drawinglayer/primitive2d/textprimitive2d.hxx>
+#include <drawinglayer/primitive2d/maskprimitive2d.hxx>
+#include <drawinglayer/primitive2d/unifiedtransparenceprimitive2d.hxx>
#include <drawinglayer/attribute/lineattribute.hxx>
@@ -184,6 +186,27 @@ void Primitive2dXmlDump::decomposeAndWrite(
}
break;
+ case PRIMITIVE2D_ID_MASKPRIMITIVE2D:
+ {
+ const MaskPrimitive2D* pMaskPrimitive2D = dynamic_cast<const MaskPrimitive2D*>(pBasePrimitive);
+ rWriter.startElement("mask");
+
+ decomposeAndWrite(pMaskPrimitive2D->getChildren(), rWriter);
+ rWriter.endElement();
+ }
+ break;
+
+ case PRIMITIVE2D_ID_UNIFIEDTRANSPARENCEPRIMITIVE2D:
+ {
+ const UnifiedTransparencePrimitive2D* pUnifiedTransparencePrimitive2D = dynamic_cast<const UnifiedTransparencePrimitive2D*>(pBasePrimitive);
+ rWriter.startElement("unifiedtransparence");
+
+ rWriter.attribute("transparence", pUnifiedTransparencePrimitive2D->getTransparence());
+
+ rWriter.endElement();
+ }
+ break;
+
default:
{
rWriter.element(OUStringToOString(sCurrentElementTag, RTL_TEXTENCODING_UTF8));