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 --- sw/source/core/ole/ndole.cxx | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'sw') 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 #include #include +#include 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 xIP = m_xOLERef.GetObject(); + auto pComponent = dynamic_cast(xIP->getComponent().get()); + if (pComponent) + { + pComponent->dumpAsXml(pWriter); + } + xmlTextWriterEndElement(pWriter); xmlTextWriterEndElement(pWriter); -- cgit v1.2.3