summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/gdi/gdimtf.cxx8
1 files changed, 8 insertions, 0 deletions
diff --git a/vcl/source/gdi/gdimtf.cxx b/vcl/source/gdi/gdimtf.cxx
index c1f2b9e92e42..13b57d27e1e0 100644
--- a/vcl/source/gdi/gdimtf.cxx
+++ b/vcl/source/gdi/gdimtf.cxx
@@ -37,6 +37,7 @@
#include <comphelper/fileformat.h>
#include <basegfx/polygon/b2dpolygon.hxx>
#include <vcl/canvastools.hxx>
+#include <vcl/mtfxmldump.hxx>
#include <svmconverter.hxx>
@@ -2834,4 +2835,11 @@ void GDIMetaFile::UseCanvas( bool _bUseCanvas )
m_bUseCanvas = _bUseCanvas;
}
+void GDIMetaFile::dumpAsXml() const
+{
+ SvFileStream aStream("metafile.xml", StreamMode::STD_READWRITE | StreamMode::TRUNC);
+ MetafileXmlDump aDumper;
+ aDumper.dump(*this, aStream);
+}
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */