diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2016-11-16 08:59:00 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2016-11-16 09:20:59 +0000 |
commit | 72ffa98e892ad1b64ff3a00b1e26a995cba3076f (patch) | |
tree | 7e3965fc48d5254a5e71dc96bab0f00521c015ee /sw/source/core/txtnode | |
parent | 7cca2c7fb328e64f1779993b60809eff6974b970 (diff) |
make the element names in dumpAsXml match the class names
Change-Id: I955facfe3e901fcb76798dab342f96a67d5ac63f
Reviewed-on: https://gerrit.libreoffice.org/30894
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/core/txtnode')
-rw-r--r-- | sw/source/core/txtnode/atrfld.cxx | 2 | ||||
-rw-r--r-- | sw/source/core/txtnode/chrfmt.cxx | 4 | ||||
-rw-r--r-- | sw/source/core/txtnode/fmtatr2.cxx | 2 | ||||
-rw-r--r-- | sw/source/core/txtnode/ndtxt.cxx | 8 | ||||
-rw-r--r-- | sw/source/core/txtnode/txatbase.cxx | 2 |
5 files changed, 9 insertions, 9 deletions
diff --git a/sw/source/core/txtnode/atrfld.cxx b/sw/source/core/txtnode/atrfld.cxx index cd434dc7a910..ed8f0dbf5024 100644 --- a/sw/source/core/txtnode/atrfld.cxx +++ b/sw/source/core/txtnode/atrfld.cxx @@ -333,7 +333,7 @@ bool SwFormatField::IsProtect() const void SwFormatField::dumpAsXml(xmlTextWriterPtr pWriter) const { - xmlTextWriterStartElement(pWriter, BAD_CAST("swFormatField")); + xmlTextWriterStartElement(pWriter, BAD_CAST("SwFormatField")); xmlTextWriterWriteFormatAttribute(pWriter, BAD_CAST("ptr"), "%p", this); xmlTextWriterWriteFormatAttribute(pWriter, BAD_CAST("mpTextField"), "%p", mpTextField); diff --git a/sw/source/core/txtnode/chrfmt.cxx b/sw/source/core/txtnode/chrfmt.cxx index f8776f540d68..b5fac1e16855 100644 --- a/sw/source/core/txtnode/chrfmt.cxx +++ b/sw/source/core/txtnode/chrfmt.cxx @@ -25,7 +25,7 @@ void SwCharFormat::dumpAsXml(xmlTextWriterPtr pWriter) const { - xmlTextWriterStartElement(pWriter, BAD_CAST("swCharFormat")); + xmlTextWriterStartElement(pWriter, BAD_CAST("SwCharFormat")); xmlTextWriterWriteAttribute(pWriter, BAD_CAST("name"), BAD_CAST(GetName().toUtf8().getStr())); GetAttrSet().dumpAsXml(pWriter); xmlTextWriterEndElement(pWriter); @@ -33,7 +33,7 @@ void SwCharFormat::dumpAsXml(xmlTextWriterPtr pWriter) const void SwCharFormats::dumpAsXml(xmlTextWriterPtr pWriter) const { - xmlTextWriterStartElement(pWriter, BAD_CAST("swCharFormats")); + xmlTextWriterStartElement(pWriter, BAD_CAST("SwCharFormats")); for (size_t i = 0; i < size(); ++i) GetFormat(i)->dumpAsXml(pWriter); xmlTextWriterEndElement(pWriter); diff --git a/sw/source/core/txtnode/fmtatr2.cxx b/sw/source/core/txtnode/fmtatr2.cxx index ec463aec97a0..51bb40a07fee 100644 --- a/sw/source/core/txtnode/fmtatr2.cxx +++ b/sw/source/core/txtnode/fmtatr2.cxx @@ -151,7 +151,7 @@ bool SwFormatAutoFormat::PutValue( const uno::Any& , sal_uInt8 ) void SwFormatAutoFormat::dumpAsXml(xmlTextWriterPtr pWriter) const { - xmlTextWriterStartElement(pWriter, BAD_CAST("swFormatAutoFormat")); + xmlTextWriterStartElement(pWriter, BAD_CAST("SwFormatAutoFormat")); xmlTextWriterWriteFormatAttribute(pWriter, BAD_CAST("ptr"), "%p", this); xmlTextWriterWriteAttribute(pWriter, BAD_CAST("whichId"), BAD_CAST(OString::number(Which()).getStr())); mpHandle->dumpAsXml(pWriter); diff --git a/sw/source/core/txtnode/ndtxt.cxx b/sw/source/core/txtnode/ndtxt.cxx index bc7f3014f8b5..5e78fc0abd7b 100644 --- a/sw/source/core/txtnode/ndtxt.cxx +++ b/sw/source/core/txtnode/ndtxt.cxx @@ -4846,7 +4846,7 @@ sal_uInt16 SwTextNode::ResetAllAttr() void SwTextNode::dumpAsXml(xmlTextWriterPtr pWriter) const { - xmlTextWriterStartElement(pWriter, BAD_CAST("swTextNode")); + xmlTextWriterStartElement(pWriter, BAD_CAST("SwTextNode")); xmlTextWriterWriteFormatAttribute(pWriter, BAD_CAST("ptr"), "%p", this); xmlTextWriterWriteAttribute(pWriter, BAD_CAST("index"), BAD_CAST(OString::number(GetIndex()).getStr())); @@ -4859,21 +4859,21 @@ void SwTextNode::dumpAsXml(xmlTextWriterPtr pWriter) const if (GetFormatColl()) { - xmlTextWriterStartElement(pWriter, BAD_CAST("swTextFormatColl")); + xmlTextWriterStartElement(pWriter, BAD_CAST("SwTextFormatColl")); xmlTextWriterWriteAttribute(pWriter, BAD_CAST("name"), BAD_CAST(GetFormatColl()->GetName().toUtf8().getStr())); xmlTextWriterEndElement(pWriter); } if (HasSwAttrSet()) { - xmlTextWriterStartElement(pWriter, BAD_CAST("swAttrSet")); + xmlTextWriterStartElement(pWriter, BAD_CAST("SwAttrSet")); GetSwAttrSet().dumpAsXml(pWriter); xmlTextWriterEndElement(pWriter); } if (HasHints()) { - xmlTextWriterStartElement(pWriter, BAD_CAST("swpHints")); + xmlTextWriterStartElement(pWriter, BAD_CAST("SwpHints")); const SwpHints& rHints = GetSwpHints(); for (size_t i = 0; i < rHints.Count(); ++i) rHints.Get(i)->dumpAsXml(pWriter); diff --git a/sw/source/core/txtnode/txatbase.cxx b/sw/source/core/txtnode/txatbase.cxx index 3538be5d622c..41179576cadf 100644 --- a/sw/source/core/txtnode/txatbase.cxx +++ b/sw/source/core/txtnode/txatbase.cxx @@ -77,7 +77,7 @@ sal_Int32* SwTextAttrEnd::GetEnd() void SwTextAttr::dumpAsXml(xmlTextWriterPtr pWriter) const { - xmlTextWriterStartElement(pWriter, BAD_CAST("swTextAttr")); + xmlTextWriterStartElement(pWriter, BAD_CAST("SwTextAttr")); xmlTextWriterWriteAttribute(pWriter, BAD_CAST("start"), BAD_CAST(OString::number(m_nStart).getStr())); if (End()) |