diff options
Diffstat (limited to 'chart2/source/model/main/ChartModel.cxx')
-rw-r--r-- | chart2/source/model/main/ChartModel.cxx | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/chart2/source/model/main/ChartModel.cxx b/chart2/source/model/main/ChartModel.cxx index 96c49fb56655..4f1d055f6a13 100644 --- a/chart2/source/model/main/ChartModel.cxx +++ b/chart2/source/model/main/ChartModel.cxx @@ -56,6 +56,7 @@ #include <sal/log.hxx> #include <svl/zforlist.hxx> #include <tools/diagnose_ex.h> +#include <libxml/xmlwriter.h> using ::com::sun::star::uno::Sequence; using ::com::sun::star::uno::Reference; @@ -738,6 +739,19 @@ void ChartModel::removeDataProviders() m_xDataProvider.clear(); } +void ChartModel::dumpAsXml(xmlTextWriterPtr pWriter) const +{ + xmlTextWriterStartElement(pWriter, BAD_CAST("ChartModel")); + xmlTextWriterWriteFormatAttribute(pWriter, BAD_CAST("ptr"), "%p", this); + + if (mxChartView.is()) + { + mxChartView->dumpAsXml(pWriter); + } + + xmlTextWriterEndElement(pWriter); +} + sal_Bool SAL_CALL ChartModel::hasInternalDataProvider() { return m_xDataProvider.is() && m_xInternalDataProvider.is(); |