test/source/mtfxmldump.cxx | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+)
New commits: commit 3e7bf7dc10f65f51dfd0bb29a67de4653d5902c9 Author: Caolán McNamara <caol...@redhat.com> Date: Thu Jan 5 17:07:25 2017 +0000 add ISECTREGIONCLIPREGION to dumper Change-Id: If60e84031cfa8aa3cbbdbb99281d784dcd9e6432 Reviewed-on: https://gerrit.libreoffice.org/32757 Tested-by: Jenkins <c...@libreoffice.org> Reviewed-by: Caolán McNamara <caol...@redhat.com> Tested-by: Caolán McNamara <caol...@redhat.com> diff --git a/test/source/mtfxmldump.cxx b/test/source/mtfxmldump.cxx index 3b20875..e2225e8 100644 --- a/test/source/mtfxmldump.cxx +++ b/test/source/mtfxmldump.cxx @@ -495,6 +495,24 @@ void MetafileXmlDump::writeXml(const GDIMetaFile& rMetaFile, XmlWriter& rWriter) } break; + case MetaActionType::ISECTREGIONCLIPREGION: + { + MetaISectRegionClipRegionAction* pMetaISectRegionClipRegionAction = static_cast<MetaISectRegionClipRegionAction*>(pAction); + rWriter.startElement(sCurrentElementTag); + + // FIXME for now we dump only the bounding box; this is + // enough for the tests we have, but may need extending to + // dumping the real polypolygon in the future + Rectangle aRectangle = pMetaISectRegionClipRegionAction->GetRegion().GetBoundRect(); + rWriter.attribute("top", aRectangle.Top()); + rWriter.attribute("left", aRectangle.Left()); + rWriter.attribute("bottom", aRectangle.Bottom()); + rWriter.attribute("right", aRectangle.Right()); + + rWriter.endElement(); + } + break; + case MetaActionType::POLYLINE: { MetaPolyLineAction* pMetaPolyLineAction = static_cast<MetaPolyLineAction*>(pAction);
_______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits