summaryrefslogtreecommitdiff
path: root/chart2/inc
diff options
context:
space:
mode:
Diffstat (limited to 'chart2/inc')
-rw-r--r--chart2/inc/ChartModel.hxx6
-rw-r--r--chart2/inc/ChartView.hxx5
2 files changed, 10 insertions, 1 deletions
diff --git a/chart2/inc/ChartModel.hxx b/chart2/inc/ChartModel.hxx
index 8c9c4ad69344..8f1defa197be 100644
--- a/chart2/inc/ChartModel.hxx
+++ b/chart2/inc/ChartModel.hxx
@@ -52,6 +52,7 @@
#include <cppuhelper/implbase.hxx>
#include <comphelper/interfacecontainer2.hxx>
#include <vcl/GraphicObject.hxx>
+#include <sfx2/xmldump.hxx>
#include <memory>
@@ -105,7 +106,7 @@ typedef cppu::WeakImplHelper<
class UndoManager;
class ChartView;
-class OOO_DLLPUBLIC_CHARTTOOLS ChartModel final : public impl::ChartModel_Base
+class OOO_DLLPUBLIC_CHARTTOOLS ChartModel final : public impl::ChartModel_Base, public sfx2::XmlDump
{
private:
@@ -465,6 +466,9 @@ public:
void removeDataProviders();
+ /// See sfx2::XmlDump::dumpAsXml().
+ void dumpAsXml(xmlTextWriterPtr pWriter) const override;
+
private:
sal_Int32 mnStart;
sal_Int32 mnEnd;
diff --git a/chart2/inc/ChartView.hxx b/chart2/inc/ChartView.hxx
index de9459ed6573..437d49527974 100644
--- a/chart2/inc/ChartView.hxx
+++ b/chart2/inc/ChartView.hxx
@@ -39,6 +39,7 @@
#include <memory>
#include <vcl/timer.hxx>
+#include <sfx2/xmldump.hxx>
namespace com::sun::star::drawing { class XDrawPage; }
namespace com::sun::star::drawing { class XShapes; }
@@ -92,6 +93,7 @@ class ChartView final : public ::cppu::WeakImplHelper<
>
, public ExplicitValueProvider
, private SfxListener
+ , public sfx2::XmlDump
{
private:
void init();
@@ -179,6 +181,9 @@ public:
void setViewDirty();
+ /// See sfx2::XmlDump::dumpAsXml().
+ void dumpAsXml(xmlTextWriterPtr pWriter) const override;
+
private: //methods
void createShapes();
void createShapes2D( const css::awt::Size& rPageSize );