From 3b7c81b9536d8155f4134010aee61d27764f1a5f Mon Sep 17 00:00:00 2001 From: Miklos Vajna Date: Wed, 1 Jul 2020 12:03:20 +0200 Subject: sw doc model xml dump: show SdrModel of embedded charts Change-Id: Iae9daefb9b2173736c039d6177d7356c27eb7a33 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/97605 Reviewed-by: Miklos Vajna Tested-by: Jenkins --- chart2/inc/ChartModel.hxx | 6 +++++- chart2/inc/ChartView.hxx | 5 +++++ 2 files changed, 10 insertions(+), 1 deletion(-) (limited to 'chart2/inc') 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 #include #include +#include #include @@ -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 #include +#include 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 ); -- cgit