summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.com>2020-07-01 12:03:20 +0200
committerMiklos Vajna <vmiklos@collabora.com>2020-07-01 14:56:23 +0200
commit3b7c81b9536d8155f4134010aee61d27764f1a5f (patch)
treed4ba01c8ef4be5d6ceede264917994e91e20a0d4 /sw
parent5ab5f2d8656a1a0f3c9631e767687f9bb51a6913 (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 'sw')
-rw-r--r--sw/source/core/ole/ndole.cxx9
1 files changed, 9 insertions, 0 deletions
diff --git a/sw/source/core/ole/ndole.cxx b/sw/source/core/ole/ndole.cxx
index 3c32309efef9..a480f0a9bae5 100644
--- a/sw/source/core/ole/ndole.cxx
+++ b/sw/source/core/ole/ndole.cxx
@@ -54,6 +54,7 @@
#include <atomic>
#include <deque>
#include <libxml/xmlwriter.h>
+#include <sfx2/xmldump.hxx>
using namespace utl;
using namespace com::sun::star::uno;
@@ -1138,6 +1139,14 @@ void SwOLEObj::dumpAsXml(xmlTextWriterPtr pWriter) const
xmlTextWriterStartElement(pWriter, BAD_CAST("m_xOLERef"));
xmlTextWriterWriteAttribute(pWriter, BAD_CAST("symbol"),
BAD_CAST(typeid(*m_xOLERef.GetObject()).name()));
+
+ uno::Reference<embed::XEmbeddedObject> xIP = m_xOLERef.GetObject();
+ auto pComponent = dynamic_cast<sfx2::XmlDump*>(xIP->getComponent().get());
+ if (pComponent)
+ {
+ pComponent->dumpAsXml(pWriter);
+ }
+
xmlTextWriterEndElement(pWriter);
xmlTextWriterEndElement(pWriter);