[Libreoffice-commits] core.git: test/source
Caolán McNamara
caolanm at redhat.com
Thu Jan 5 20:14:38 UTC 2017
test/source/mtfxmldump.cxx | 18 ++++++++++++++++++
1 file changed, 18 insertions(+)
New commits:
commit 3e7bf7dc10f65f51dfd0bb29a67de4653d5902c9
Author: Caolán McNamara <caolanm at 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 <ci at libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm at redhat.com>
Tested-by: Caolán McNamara <caolanm at 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);
More information about the Libreoffice-commits
mailing list