diff options
author | Miklos Vajna <vmiklos@collabora.com> | 2019-03-11 16:11:03 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.com> | 2019-03-11 19:28:53 +0100 |
commit | 99f25bc344e931e66366e20664a23dc263fe3113 (patch) | |
tree | e238e1190b576ff41b15a30b1927da4852888f70 | |
parent | 9ccdb944a6bfde317febbf7cfc37ae8e6e6df8c9 (diff) |
sw doc model xml dump: show text node's field hints
Change-Id: I17927231da389ce54d2fb8ade0091c7e7033a808
Reviewed-on: https://gerrit.libreoffice.org/69049
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins
-rw-r--r-- | sw/source/core/txtnode/txatbase.cxx | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/sw/source/core/txtnode/txatbase.cxx b/sw/source/core/txtnode/txatbase.cxx index 82015ad57df2..8497116f1d7f 100644 --- a/sw/source/core/txtnode/txatbase.cxx +++ b/sw/source/core/txtnode/txatbase.cxx @@ -122,6 +122,11 @@ void SwTextAttr::dumpAsXml(xmlTextWriterPtr pWriter) const pWhich = "meta"; break; } + case RES_TXTATR_FIELD: + { + pWhich = "field"; + break; + } default: break; } @@ -129,8 +134,17 @@ void SwTextAttr::dumpAsXml(xmlTextWriterPtr pWriter) const xmlTextWriterWriteAttribute(pWriter, BAD_CAST("which"), BAD_CAST(pWhich)); if (oValue) xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"), BAD_CAST(oValue->getStr())); - if (Which() == RES_TXTATR_AUTOFMT) - GetAutoFormat().dumpAsXml(pWriter); + switch (Which()) + { + case RES_TXTATR_AUTOFMT: + GetAutoFormat().dumpAsXml(pWriter); + break; + case RES_TXTATR_FIELD: + GetFormatField().dumpAsXml(pWriter); + break; + default: + break; + } xmlTextWriterEndElement(pWriter); } |