diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2015-11-10 11:33:03 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2015-11-10 14:10:00 +0100 |
commit | 9b504ad3ae9f71ea02df2ab6f2c2fbd59d38ae9a (patch) | |
tree | aae9a06a869b8bbe61956a90ea763afd835ca425 /sw/source/core/txtnode | |
parent | 7a87e9718ce8b455c0780ef7606b1c219bf228b5 (diff) |
sw doc model xml dump: show comment text
Change-Id: If15ca89f2b7c54441f076eb233c4e1414dac25c0
Diffstat (limited to 'sw/source/core/txtnode')
-rw-r--r-- | sw/source/core/txtnode/atrfld.cxx | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/sw/source/core/txtnode/atrfld.cxx b/sw/source/core/txtnode/atrfld.cxx index 43f12917d220..89649a0cb06c 100644 --- a/sw/source/core/txtnode/atrfld.cxx +++ b/sw/source/core/txtnode/atrfld.cxx @@ -17,8 +17,11 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#include "fldbas.hxx" #include <fmtfld.hxx> + +#include <libxml/xmlwriter.h> + +#include "fldbas.hxx" #include <txtfld.hxx> #include <txtannotationfld.hxx> #include <docfld.hxx> @@ -329,6 +332,18 @@ bool SwFormatField::IsProtect() const && mpTextField->GetpTextNode()->IsProtect(); } +void SwFormatField::dumpAsXml(xmlTextWriterPtr pWriter) const +{ + xmlTextWriterStartElement(pWriter, BAD_CAST("swFormatField")); + xmlTextWriterWriteFormatAttribute(pWriter, BAD_CAST("ptr"), "%p", this); + xmlTextWriterWriteFormatAttribute(pWriter, BAD_CAST("mpTextField"), "%p", mpTextField); + + SfxPoolItem::dumpAsXml(pWriter); + GetField()->dumpAsXml(pWriter); + + xmlTextWriterEndElement(pWriter); +} + // class SwTextField //////////////////////////////////////////////////// SwTextField::SwTextField( |