summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.com>2021-04-09 14:34:02 +0200
committerMiklos Vajna <vmiklos@collabora.com>2021-04-09 15:37:01 +0200
commit25528082a91bd2a3f4b3a3773e999ffd5da85d83 (patch)
treeaecfaec2c827ac63bef3db3ef0d51f61511d6c89 /sw
parentc2eae4998b3ae79210ef0b5c064e9833218c22de (diff)
sw doc model xml dump: show if a text format is conditional
Text body is typically conditional, but not always, make it easier to spot this unusual case. Change-Id: I27c63f86c773324b258c6dd7e06097aa857fa9aa Reviewed-on: https://gerrit.libreoffice.org/c/core/+/113848 Reviewed-by: Miklos Vajna <vmiklos@collabora.com> Tested-by: Jenkins
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/doc/fmtcol.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/sw/source/core/doc/fmtcol.cxx b/sw/source/core/doc/fmtcol.cxx
index c31c406cd60a..6a91ac469294 100644
--- a/sw/source/core/doc/fmtcol.cxx
+++ b/sw/source/core/doc/fmtcol.cxx
@@ -472,6 +472,8 @@ bool SwTextFormatColl::AreListLevelIndentsApplicable() const
void SwTextFormatColl::dumpAsXml(xmlTextWriterPtr pWriter) const
{
(void)xmlTextWriterStartElement(pWriter, BAD_CAST("SwTextFormatColl"));
+ (void)xmlTextWriterWriteFormatAttribute(pWriter, BAD_CAST("ptr"), "%p", this);
+ (void)xmlTextWriterWriteFormatAttribute(pWriter, BAD_CAST("symbol"), "%s", BAD_CAST(typeid(*this).name()));
(void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("name"), BAD_CAST(GetName().toUtf8().getStr()));
GetAttrSet().dumpAsXml(pWriter);
(void)xmlTextWriterEndElement(pWriter);