summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2016-03-02 13:03:52 +0100
committerMichael Stahl <mstahl@redhat.com>2016-03-02 15:07:03 +0100
commitddc363b2b2496dfe72775650d8929901ca8be5a2 (patch)
tree9217271f00802146ad1d83f4f2e6d6dabd675691 /test
parent632804b1f9066f5ac701338e500ae5c0ed1875dd (diff)
test: dump MetaPolyPolygonAction too
Change-Id: I3ecafc104c91d7f4e93805b2e03359cf60d2db4b
Diffstat (limited to 'test')
-rw-r--r--test/source/mtfxmldump.cxx24
1 files changed, 24 insertions, 0 deletions
diff --git a/test/source/mtfxmldump.cxx b/test/source/mtfxmldump.cxx
index 2aab2fa03726..c955fccd12bf 100644
--- a/test/source/mtfxmldump.cxx
+++ b/test/source/mtfxmldump.cxx
@@ -535,6 +535,30 @@ void MetafileXmlDump::writeXml(const GDIMetaFile& rMetaFile, XmlWriter& rWriter)
}
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:
{
MetaCommentAction* pMetaCommentAction = static_cast<MetaCommentAction*>(pAction);