summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2017-01-05 17:07:25 +0000
committerCaolán McNamara <caolanm@redhat.com>2017-01-05 20:14:16 +0000
commit3e7bf7dc10f65f51dfd0bb29a67de4653d5902c9 (patch)
tree805a82a8510ecdcd237c627242c557c5514e5e54 /test
parent6b89bcf85a911d043c9d93e843be12e6f23adedd (diff)
add ISECTREGIONCLIPREGION to dumper
Change-Id: If60e84031cfa8aa3cbbdbb99281d784dcd9e6432 Reviewed-on: https://gerrit.libreoffice.org/32757 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'test')
-rw-r--r--test/source/mtfxmldump.cxx18
1 files changed, 18 insertions, 0 deletions
diff --git a/test/source/mtfxmldump.cxx b/test/source/mtfxmldump.cxx
index 3b208753b6e2..e2225e8b3bb9 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);