Kaydet (Commit) ddc363b2 authored tarafından Michael Stahl's avatar Michael Stahl

test: dump MetaPolyPolygonAction too

Change-Id: I3ecafc104c91d7f4e93805b2e03359cf60d2db4b
üst 632804b1
...@@ -535,6 +535,30 @@ void MetafileXmlDump::writeXml(const GDIMetaFile& rMetaFile, XmlWriter& rWriter) ...@@ -535,6 +535,30 @@ void MetafileXmlDump::writeXml(const GDIMetaFile& rMetaFile, XmlWriter& rWriter)
} }
break; break;
case MetaActionType::POLYPOLYGON:
{
MetaPolyPolygonAction *const pMPPAction(
static_cast<MetaPolyPolygonAction*>(pAction));
rWriter.startElement(sCurrentElementTag);
tools::PolyPolygon const& rPoly(pMPPAction->GetPolyPolygon());
for (sal_uInt16 j = 0; j < rPoly.Count(); ++j)
{
rWriter.startElement("polygon");
for (sal_uInt16 i = 0; i < rPoly[j].GetSize(); i++)
{
rWriter.startElement("point");
rWriter.attribute("x", rPoly[j][i].X());
rWriter.attribute("y", rPoly[j][i].Y());
rWriter.endElement();
}
rWriter.endElement();
}
rWriter.endElement();
}
break;
case MetaActionType::COMMENT: case MetaActionType::COMMENT:
{ {
MetaCommentAction* pMetaCommentAction = static_cast<MetaCommentAction*>(pAction); MetaCommentAction* pMetaCommentAction = static_cast<MetaCommentAction*>(pAction);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment