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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user