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>
This commit is contained in:
Caolán McNamara
2017-01-05 17:07:25 +00:00
parent 6b89bcf85a
commit 3e7bf7dc10

View File

@@ -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);