sw/source/core/doc/fmtcol.cxx | 5 +++++ 1 file changed, 5 insertions(+)
New commits: commit 4499e123614be1de2c021c0c4f5f80d5c3e18401 Author: Miklos Vajna <[email protected]> AuthorDate: Fri Jun 21 16:22:56 2024 +0200 Commit: Miklos Vajna <[email protected]> CommitDate: Fri Jun 21 17:28:41 2024 +0200 sw doc model xml dump: show parent of para styles At some stage needs an SwFormat::dumpAsXml() but that's not yet done here. Change-Id: I10d2e0f653fc6d0e351bc0aa17f98de8f01766fb Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169337 Reviewed-by: Miklos Vajna <[email protected]> Tested-by: Jenkins diff --git a/sw/source/core/doc/fmtcol.cxx b/sw/source/core/doc/fmtcol.cxx index 96274bb5b5d3..055ab5fbabe2 100644 --- a/sw/source/core/doc/fmtcol.cxx +++ b/sw/source/core/doc/fmtcol.cxx @@ -551,6 +551,11 @@ void SwTextFormatColl::dumpAsXml(xmlTextWriterPtr pWriter) const (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())); + if (SwFormat* pDerivedFrom = DerivedFrom()) + { + (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("derived-from"), + BAD_CAST(pDerivedFrom->GetName().toUtf8().getStr())); + } if (mpNextTextFormatColl) { (void)xmlTextWriterWriteAttribute(
