diff options
Diffstat (limited to 'chart2/source/view/main/ChartView.cxx')
-rw-r--r-- | chart2/source/view/main/ChartView.cxx | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/chart2/source/view/main/ChartView.cxx b/chart2/source/view/main/ChartView.cxx index 4b6b1fa9b48f..faa7fbe3511a 100644 --- a/chart2/source/view/main/ChartView.cxx +++ b/chart2/source/view/main/ChartView.cxx @@ -103,6 +103,7 @@ #include <tools/stream.hxx> #include <memory> +#include <libxml/xmlwriter.h> namespace com::sun::star::chart2 { class XChartDocument; } namespace chart { @@ -2890,6 +2891,19 @@ OUString ChartView::dump() #endif } +void ChartView::dumpAsXml(xmlTextWriterPtr pWriter) const +{ + xmlTextWriterStartElement(pWriter, BAD_CAST("ChartView")); + xmlTextWriterWriteFormatAttribute(pWriter, BAD_CAST("ptr"), "%p", this); + + if (m_pDrawModelWrapper) + { + m_pDrawModelWrapper->dumpAsXml(pWriter); + } + + xmlTextWriterEndElement(pWriter); +} + void ChartView::setViewDirty() { osl::MutexGuard aGuard(maTimeMutex); |