diff options
author | Miklos Vajna <vmiklos@collabora.com> | 2019-07-18 12:12:48 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.com> | 2019-07-18 17:18:59 +0200 |
commit | 83a615c568a7a23a3aae7ca52012bc947d4cb5de (patch) | |
tree | b04562dddf611785a6c7e7008afb448dff8295d3 /svx | |
parent | e9a13d06f300cc653d2d1b19e5764bcf836a9d4b (diff) |
svx xml dump: show the SdrObject's properties / item set
Shows items usually accessed using GetMergedItemSet(), to help
debugging.
Change-Id: Id3c20e99c33d5e5762c3b58e2f76ab5686031734
Reviewed-on: https://gerrit.libreoffice.org/75852
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/sdr/properties/defaultproperties.cxx | 1 | ||||
-rw-r--r-- | svx/source/sdr/properties/properties.cxx | 8 | ||||
-rw-r--r-- | svx/source/svdraw/svdobj.cxx | 5 |
3 files changed, 14 insertions, 0 deletions
diff --git a/svx/source/sdr/properties/defaultproperties.cxx b/svx/source/sdr/properties/defaultproperties.cxx index 60c1d5a00b0c..f9461f796b53 100644 --- a/svx/source/sdr/properties/defaultproperties.cxx +++ b/svx/source/sdr/properties/defaultproperties.cxx @@ -233,6 +233,7 @@ namespace sdr void DefaultProperties::dumpAsXml(xmlTextWriterPtr pWriter) const { xmlTextWriterStartElement(pWriter, BAD_CAST("DefaultProperties")); + BaseProperties::dumpAsXml(pWriter); mpItemSet->dumpAsXml(pWriter); xmlTextWriterEndElement(pWriter); } diff --git a/svx/source/sdr/properties/properties.cxx b/svx/source/sdr/properties/properties.cxx index 457db8e38b3f..c76ecba49c8a 100644 --- a/svx/source/sdr/properties/properties.cxx +++ b/svx/source/sdr/properties/properties.cxx @@ -17,6 +17,8 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ +#include <libxml/xmlwriter.h> + #include <svx/sdr/properties/properties.hxx> #include <sdr/properties/itemsettools.hxx> #include <svl/itemset.hxx> @@ -154,6 +156,12 @@ namespace sdr return 0; } + void BaseProperties::dumpAsXml(xmlTextWriterPtr pWriter) const + { + xmlTextWriterStartElement(pWriter, BAD_CAST("BaseProperties")); + xmlTextWriterEndElement(pWriter); + } + void CleanupFillProperties( SfxItemSet& rItemSet ) { const bool bFillBitmap = rItemSet.GetItemState(XATTR_FILLBITMAP, false) == SfxItemState::SET; diff --git a/svx/source/svdraw/svdobj.cxx b/svx/source/svdraw/svdobj.cxx index 753caf3edd8a..65e8492145fe 100644 --- a/svx/source/svdraw/svdobj.cxx +++ b/svx/source/svdraw/svdobj.cxx @@ -1726,6 +1726,11 @@ void SdrObject::dumpAsXml(xmlTextWriterPtr pWriter) const xmlTextWriterWriteFormatAttribute(pWriter, BAD_CAST("nOrdNum"), "%" SAL_PRIuUINT32, GetOrdNumDirect()); xmlTextWriterWriteAttribute(pWriter, BAD_CAST("aOutRect"), BAD_CAST(aOutRect.toString().getStr())); + if (mpProperties) + { + mpProperties->dumpAsXml(pWriter); + } + if (const OutlinerParaObject* pOutliner = GetOutlinerParaObject()) pOutliner->dumpAsXml(pWriter); |