diff options
author | Miklos Vajna <vmiklos@collabora.com> | 2020-07-01 12:03:20 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.com> | 2020-07-01 14:56:23 +0200 |
commit | 3b7c81b9536d8155f4134010aee61d27764f1a5f (patch) | |
tree | d4ba01c8ef4be5d6ceede264917994e91e20a0d4 /chart2/inc | |
parent | 5ab5f2d8656a1a0f3c9631e767687f9bb51a6913 (diff) |
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 <vmiklos@collabora.com>
Tested-by: Jenkins
Diffstat (limited to 'chart2/inc')
-rw-r--r-- | chart2/inc/ChartModel.hxx | 6 | ||||
-rw-r--r-- | chart2/inc/ChartView.hxx | 5 |
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 ); |