diff options
Diffstat (limited to 'drawinglayer/source/tools/primitive2dxmldump.cxx')
-rw-r--r-- | drawinglayer/source/tools/primitive2dxmldump.cxx | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/drawinglayer/source/tools/primitive2dxmldump.cxx b/drawinglayer/source/tools/primitive2dxmldump.cxx index e16e2a5e6e0c..55c581dab510 100644 --- a/drawinglayer/source/tools/primitive2dxmldump.cxx +++ b/drawinglayer/source/tools/primitive2dxmldump.cxx @@ -42,6 +42,7 @@ #include <drawinglayer/primitive2d/modifiedcolorprimitive2d.hxx> #include <drawinglayer/primitive2d/sceneprimitive2d.hxx> #include <drawinglayer/primitive2d/shadowprimitive2d.hxx> +#include <drawinglayer/primitive2d/PolyPolygonRGBAPrimitive2D.hxx> #include <drawinglayer/geometry/viewinformation2d.hxx> #include <drawinglayer/attribute/lineattribute.hxx> #include <drawinglayer/attribute/fontattribute.hxx> @@ -1214,6 +1215,20 @@ void Primitive2dXmlDump::decomposeAndWrite( break; } + case PRIMITIVE2D_ID_POLYPOLYGONRGBAPRIMITIVE2D: + { + const PolyPolygonRGBAPrimitive2D& rPolyPolygonRGBAPrimitive2D + = dynamic_cast<const PolyPolygonRGBAPrimitive2D&>(*pBasePrimitive); + rWriter.startElement("polypolygonrgba"); + rWriter.attribute("color", + convertColorToString(rPolyPolygonRGBAPrimitive2D.getBColor())); + rWriter.attribute("transparence", + std::lround(100 * rPolyPolygonRGBAPrimitive2D.getTransparency())); + writePolyPolygon(rWriter, rPolyPolygonRGBAPrimitive2D.getB2DPolyPolygon()); + rWriter.endElement(); + break; + } + default: { rWriter.startElement("unhandled"); |