From 4e9a52c7f5ed12e4bb2a716d992edff7aa6c2a7d Mon Sep 17 00:00:00 2001 From: Miklos Vajna Date: Thu, 17 Feb 2022 08:33:04 +0100 Subject: svtools: extract EmbeddedObjectRef::dumpAsXml() from SwOLEObj Because sw/ doesn't have access to the internals, but dumping should show the state as-is, without calling getters that change the state. Especially GetGraphic() is not a trivial wrapper around mpImpl->pGraphic. Change-Id: I2cf43130d4eeab63611e37b4a978bb7aa546c7f7 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/130056 Reviewed-by: Miklos Vajna Tested-by: Jenkins --- include/svtools/embedhlp.hxx | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include/svtools') diff --git a/include/svtools/embedhlp.hxx b/include/svtools/embedhlp.hxx index 05b0b5644122..9ba2a0166c2b 100644 --- a/include/svtools/embedhlp.hxx +++ b/include/svtools/embedhlp.hxx @@ -37,6 +37,7 @@ namespace com::sun::star::embed { } class OutputDevice; +typedef struct _xmlTextWriter* xmlTextWriterPtr; namespace svt { @@ -122,6 +123,8 @@ public: // fetching the Graphic what would be too expensive e.g. for charts sal_uInt32 getGraphicVersion() const; void SetDefaultSizeForChart( const Size& rSizeIn_100TH_MM );//#i103460# charts do not necessarily have an own size within ODF files, in this case they need to use the size settings from the surrounding frame, which is made available with this method + + void dumpAsXml(xmlTextWriterPtr pWriter) const; }; } -- cgit