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 | |
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')
26 files changed, 54 insertions, 54 deletions
diff --git a/sw/qa/extras/ooxmlexport/ooxmlexport.cxx b/sw/qa/extras/ooxmlexport/ooxmlexport.cxx index b05770bed228..ef5857a6224e 100644 --- a/sw/qa/extras/ooxmlexport/ooxmlexport.cxx +++ b/sw/qa/extras/ooxmlexport/ooxmlexport.cxx @@ -687,7 +687,7 @@ DECLARE_OOXMLEXPORT_TEST(testNumOverrideLvltext, "num-override-lvltext.docx") CPPUNIT_ASSERT_EQUAL(sal_Int16(2), comphelper::SequenceAsHashMap(xRules->getByIndex(1))["ParentNumbering"].get<sal_Int16>()); // The paragraph marker's red font color was inherited by the number portion, this was ff0000. - CPPUNIT_ASSERT_EQUAL(OUString("00000a"), parseDump("//Special[@nType='POR_NUMBER']/pFont", "color")); + CPPUNIT_ASSERT_EQUAL(OUString("00000a"), parseDump("//Special[@nType='POR_NUMBER']/SwFont", "color")); } DECLARE_OOXMLEXPORT_TEST(testNumOverrideStart, "num-override-start.docx") diff --git a/sw/qa/extras/uiwriter/uiwriter.cxx b/sw/qa/extras/uiwriter/uiwriter.cxx index e58093f4c870..f001fc646595 100644 --- a/sw/qa/extras/uiwriter/uiwriter.cxx +++ b/sw/qa/extras/uiwriter/uiwriter.cxx @@ -3742,13 +3742,13 @@ void SwUiWriterTest::testTdf98987() createDoc("tdf98987.docx"); calcLayout(); xmlDocPtr pXmlDoc = parseLayoutDump(); - assertXPath(pXmlDoc, "/root/page/body/txt/anchored/SwAnchoredDrawObject[2]/sdrObject", "name", "Rectangle 1"); + assertXPath(pXmlDoc, "/root/page/body/txt/anchored/SwAnchoredDrawObject[2]/SdrObject", "name", "Rectangle 1"); sal_Int32 nRectangle1 = getXPath(pXmlDoc, "/root/page/body/txt/anchored/SwAnchoredDrawObject[2]/bounds", "top").toInt32(); - assertXPath(pXmlDoc, "/root/page/body/txt/anchored/SwAnchoredDrawObject[1]/sdrObject", "name", "Rectangle 2"); + assertXPath(pXmlDoc, "/root/page/body/txt/anchored/SwAnchoredDrawObject[1]/SdrObject", "name", "Rectangle 2"); sal_Int32 nRectangle2 = getXPath(pXmlDoc, "/root/page/body/txt/anchored/SwAnchoredDrawObject[1]/bounds", "top").toInt32(); CPPUNIT_ASSERT(nRectangle1 < nRectangle2); - assertXPath(pXmlDoc, "/root/page/body/txt/anchored/SwAnchoredDrawObject[3]/sdrObject", "name", "Rectangle 3"); + assertXPath(pXmlDoc, "/root/page/body/txt/anchored/SwAnchoredDrawObject[3]/SdrObject", "name", "Rectangle 3"); sal_Int32 nRectangle3 = getXPath(pXmlDoc, "/root/page/body/txt/anchored/SwAnchoredDrawObject[3]/bounds", "top").toInt32(); // This failed: the 3rd rectangle had a smaller "top" value than the 2nd one, it even overlapped with the 1st one. CPPUNIT_ASSERT(nRectangle2 < nRectangle3); @@ -3763,7 +3763,7 @@ void SwUiWriterTest::testTdf99004() sal_Int32 nTextBox1Height = getXPath(pXmlDoc, "/root/page/body/txt/anchored/fly/infos/bounds", "height").toInt32(); sal_Int32 nTextBox1Bottom = nTextbox1Top + nTextBox1Height; - assertXPath(pXmlDoc, "/root/page/body/txt/anchored/SwAnchoredDrawObject[1]/sdrObject", "name", "Rectangle 2"); + assertXPath(pXmlDoc, "/root/page/body/txt/anchored/SwAnchoredDrawObject[1]/SdrObject", "name", "Rectangle 2"); sal_Int32 nRectangle2Top = getXPath(pXmlDoc, "/root/page/body/txt/anchored/SwAnchoredDrawObject[1]/bounds", "top").toInt32(); // This was 3291 and 2531, should be now around 2472 and 2531, i.e. the two rectangles should not overlap anymore. CPPUNIT_ASSERT(nTextBox1Bottom < nRectangle2Top); diff --git a/sw/source/core/attr/fmtwrapinfluenceonobjpos.cxx b/sw/source/core/attr/fmtwrapinfluenceonobjpos.cxx index dc27d270926e..3e1d92b9a397 100644 --- a/sw/source/core/attr/fmtwrapinfluenceonobjpos.cxx +++ b/sw/source/core/attr/fmtwrapinfluenceonobjpos.cxx @@ -140,7 +140,7 @@ sal_Int16 SwFormatWrapInfluenceOnObjPos::GetWrapInfluenceOnObjPos( void SwFormatWrapInfluenceOnObjPos::dumpAsXml(xmlTextWriterPtr pWriter) const { - xmlTextWriterStartElement(pWriter, BAD_CAST("swFormatWrapInfluenceOnObjPos")); + xmlTextWriterStartElement(pWriter, BAD_CAST("SwFormatWrapInfluenceOnObjPos")); xmlTextWriterWriteAttribute(pWriter, BAD_CAST("whichId"), BAD_CAST(OString::number(Which()).getStr())); xmlTextWriterWriteAttribute(pWriter, BAD_CAST("nWrapInfluenceOnPosition"), BAD_CAST(OString::number(mnWrapInfluenceOnPosition).getStr())); xmlTextWriterEndElement(pWriter); diff --git a/sw/source/core/crsr/bookmrk.cxx b/sw/source/core/crsr/bookmrk.cxx index 3b93e30592b8..bb3f7626c590 100644 --- a/sw/source/core/crsr/bookmrk.cxx +++ b/sw/source/core/crsr/bookmrk.cxx @@ -178,7 +178,7 @@ namespace sw { namespace mark void MarkBase::dumpAsXml(xmlTextWriterPtr pWriter) const { - xmlTextWriterStartElement(pWriter, BAD_CAST("markBase")); + xmlTextWriterStartElement(pWriter, BAD_CAST("MarkBase")); xmlTextWriterWriteAttribute(pWriter, BAD_CAST("name"), BAD_CAST(m_aName.toUtf8().getStr())); xmlTextWriterStartElement(pWriter, BAD_CAST("markPos")); GetMarkPos().dumpAsXml(pWriter); @@ -379,7 +379,7 @@ namespace sw { namespace mark void Fieldmark::dumpAsXml(xmlTextWriterPtr pWriter) const { - xmlTextWriterStartElement(pWriter, BAD_CAST("fieldmark")); + xmlTextWriterStartElement(pWriter, BAD_CAST("Fieldmark")); xmlTextWriterWriteAttribute(pWriter, BAD_CAST("fieldname"), BAD_CAST(m_aFieldname.toUtf8().getStr())); xmlTextWriterWriteAttribute(pWriter, BAD_CAST("fieldHelptext"), BAD_CAST(m_aFieldHelptext.toUtf8().getStr())); MarkBase::dumpAsXml(pWriter); diff --git a/sw/source/core/crsr/crsrsh.cxx b/sw/source/core/crsr/crsrsh.cxx index d91d954138f5..480c80e5e73c 100644 --- a/sw/source/core/crsr/crsrsh.cxx +++ b/sw/source/core/crsr/crsrsh.cxx @@ -3357,7 +3357,7 @@ OUString SwCursorShell::GetCursorDescr() const void SwCursorShell::dumpAsXml(xmlTextWriterPtr pWriter) const { - xmlTextWriterStartElement(pWriter, BAD_CAST("swCursorShell")); + xmlTextWriterStartElement(pWriter, BAD_CAST("SwCursorShell")); SwViewShell::dumpAsXml(pWriter); diff --git a/sw/source/core/crsr/pam.cxx b/sw/source/core/crsr/pam.cxx index 8c423847d0db..a71e910f64ea 100644 --- a/sw/source/core/crsr/pam.cxx +++ b/sw/source/core/crsr/pam.cxx @@ -180,7 +180,7 @@ SwDoc * SwPosition::GetDoc() const void SwPosition::dumpAsXml(xmlTextWriterPtr pWriter) const { - xmlTextWriterStartElement(pWriter, BAD_CAST("swPosition")); + xmlTextWriterStartElement(pWriter, BAD_CAST("SwPosition")); xmlTextWriterWriteAttribute(pWriter, BAD_CAST("nNode"), BAD_CAST(OString::number(nNode.GetIndex()).getStr())); xmlTextWriterWriteAttribute(pWriter, BAD_CAST("nContent"), BAD_CAST(OString::number(nContent.GetIndex()).getStr())); xmlTextWriterEndElement(pWriter); @@ -1045,7 +1045,7 @@ void SwPaM::InvalidatePaM() void SwPaM::dumpAsXml(xmlTextWriterPtr pWriter) const { - xmlTextWriterStartElement(pWriter, BAD_CAST("swPaM")); + xmlTextWriterStartElement(pWriter, BAD_CAST("SwPaM")); xmlTextWriterStartElement(pWriter, BAD_CAST("point")); GetPoint()->dumpAsXml(pWriter); diff --git a/sw/source/core/doc/docbm.cxx b/sw/source/core/doc/docbm.cxx index 854ad5e1f1ec..07bf1100beef 100644 --- a/sw/source/core/doc/docbm.cxx +++ b/sw/source/core/doc/docbm.cxx @@ -1165,7 +1165,7 @@ void MarkManager::dumpAsXml(xmlTextWriterPtr pWriter) const {"annotationmarks", &m_vAnnotationMarks} }; - xmlTextWriterStartElement(pWriter, BAD_CAST("markManager")); + xmlTextWriterStartElement(pWriter, BAD_CAST("MarkManager")); for (const auto & rContainer : aContainers) { if (!rContainer.pContainer->empty()) diff --git a/sw/source/core/doc/docfmt.cxx b/sw/source/core/doc/docfmt.cxx index ac85fe589b96..025ab9274f15 100644 --- a/sw/source/core/doc/docfmt.cxx +++ b/sw/source/core/doc/docfmt.cxx @@ -1925,7 +1925,7 @@ void SwDoc::dumpAsXml(xmlTextWriterPtr pWriter) const xmlTextWriterStartDocument(pWriter, nullptr, nullptr, nullptr); bOwns = true; } - xmlTextWriterStartElement(pWriter, BAD_CAST("swDoc")); + xmlTextWriterStartElement(pWriter, BAD_CAST("SwDoc")); xmlTextWriterWriteFormatAttribute(pWriter, BAD_CAST("ptr"), "%p", this); m_pNodes->dumpAsXml(pWriter); @@ -1958,7 +1958,7 @@ void SwDoc::dumpAsXml(xmlTextWriterPtr pWriter) const void SwDBData::dumpAsXml(xmlTextWriterPtr pWriter) const { - xmlTextWriterStartElement(pWriter, BAD_CAST("swDBData")); + xmlTextWriterStartElement(pWriter, BAD_CAST("SwDBData")); xmlTextWriterWriteAttribute(pWriter, BAD_CAST("sDataSource"), BAD_CAST(sDataSource.toUtf8().getStr())); xmlTextWriterWriteAttribute(pWriter, BAD_CAST("sCommand"), BAD_CAST(sCommand.toUtf8().getStr())); diff --git a/sw/source/core/doc/docredln.cxx b/sw/source/core/doc/docredln.cxx index a3d3bb18f0ae..fe20071a3441 100644 --- a/sw/source/core/doc/docredln.cxx +++ b/sw/source/core/doc/docredln.cxx @@ -87,13 +87,13 @@ SwExtraRedlineTable::~SwExtraRedlineTable() void SwExtraRedlineTable::dumpAsXml(xmlTextWriterPtr pWriter) const { - xmlTextWriterStartElement(pWriter, BAD_CAST("swExtraRedlineTable")); + xmlTextWriterStartElement(pWriter, BAD_CAST("SwExtraRedlineTable")); xmlTextWriterWriteFormatAttribute(pWriter, BAD_CAST("ptr"), "%p", this); for (sal_uInt16 nCurExtraRedlinePos = 0; nCurExtraRedlinePos < GetSize(); ++nCurExtraRedlinePos) { const SwExtraRedline* pExtraRedline = GetRedline(nCurExtraRedlinePos); - xmlTextWriterStartElement(pWriter, BAD_CAST("swExtraRedline")); + xmlTextWriterStartElement(pWriter, BAD_CAST("SwExtraRedline")); xmlTextWriterWriteFormatAttribute(pWriter, BAD_CAST("ptr"), "%p", this); xmlTextWriterWriteFormatAttribute(pWriter, BAD_CAST("symbol"), "%s", BAD_CAST(typeid(*pExtraRedline).name())); xmlTextWriterEndElement(pWriter); @@ -625,7 +625,7 @@ const SwRangeRedline* SwRedlineTable::FindAtPosition( const SwPosition& rSttPos, void SwRedlineTable::dumpAsXml(xmlTextWriterPtr pWriter) const { - xmlTextWriterStartElement(pWriter, BAD_CAST("swRedlineTable")); + xmlTextWriterStartElement(pWriter, BAD_CAST("SwRedlineTable")); xmlTextWriterWriteFormatAttribute(pWriter, BAD_CAST("ptr"), "%p", this); for (SwRedlineTable::size_type nCurRedlinePos = 0; nCurRedlinePos < size(); ++nCurRedlinePos) @@ -1699,7 +1699,7 @@ OUString SwRangeRedline::GetDescr() void SwRangeRedline::dumpAsXml(xmlTextWriterPtr pWriter) const { - xmlTextWriterStartElement(pWriter, BAD_CAST("swRangeRedline")); + xmlTextWriterStartElement(pWriter, BAD_CAST("SwRangeRedline")); xmlTextWriterWriteFormatAttribute(pWriter, BAD_CAST("ptr"), "%p", this); xmlTextWriterWriteAttribute(pWriter, BAD_CAST("id"), BAD_CAST(OString::number(GetSeqNo()).getStr())); diff --git a/sw/source/core/doc/fmtcol.cxx b/sw/source/core/doc/fmtcol.cxx index 509b55ee1137..f0b91d829788 100644 --- a/sw/source/core/doc/fmtcol.cxx +++ b/sw/source/core/doc/fmtcol.cxx @@ -461,7 +461,7 @@ bool SwTextFormatColl::AreListLevelIndentsApplicable() const void SwTextFormatColl::dumpAsXml(xmlTextWriterPtr pWriter) const { - xmlTextWriterStartElement(pWriter, BAD_CAST("swTextFormatColl")); + xmlTextWriterStartElement(pWriter, BAD_CAST("SwTextFormatColl")); xmlTextWriterWriteAttribute(pWriter, BAD_CAST("name"), BAD_CAST(GetName().toUtf8().getStr())); GetAttrSet().dumpAsXml(pWriter); xmlTextWriterEndElement(pWriter); @@ -469,7 +469,7 @@ void SwTextFormatColl::dumpAsXml(xmlTextWriterPtr pWriter) const void SwTextFormatColls::dumpAsXml(xmlTextWriterPtr pWriter) const { - xmlTextWriterStartElement(pWriter, BAD_CAST("swTextFormatColls")); + xmlTextWriterStartElement(pWriter, BAD_CAST("SwTextFormatColls")); for (size_t i = 0; i < size(); ++i) GetFormat(i)->dumpAsXml(pWriter); xmlTextWriterEndElement(pWriter); diff --git a/sw/source/core/doc/number.cxx b/sw/source/core/doc/number.cxx index ddb844013bff..441461f3ea2a 100644 --- a/sw/source/core/doc/number.cxx +++ b/sw/source/core/doc/number.cxx @@ -1011,7 +1011,7 @@ void SwNumRule::RemoveParagraphStyle( SwTextFormatColl& rTextFormatColl ) void SwNumRule::dumpAsXml(xmlTextWriterPtr pWriter) const { - xmlTextWriterStartElement(pWriter, BAD_CAST("swNumRule")); + xmlTextWriterStartElement(pWriter, BAD_CAST("SwNumRule")); xmlTextWriterWriteAttribute(pWriter, BAD_CAST("msName"), BAD_CAST(msName.toUtf8().getStr())); xmlTextWriterWriteAttribute(pWriter, BAD_CAST("mnPoolFormatId"), BAD_CAST(OString::number(mnPoolFormatId).getStr())); xmlTextWriterWriteAttribute(pWriter, BAD_CAST("mbAutoRuleFlag"), BAD_CAST(OString::boolean(mbAutoRuleFlag).getStr())); @@ -1414,7 +1414,7 @@ namespace numfunc void SwNumRuleTable::dumpAsXml(xmlTextWriterPtr pWriter) const { - xmlTextWriterStartElement(pWriter, BAD_CAST("swNumRuleTable")); + xmlTextWriterStartElement(pWriter, BAD_CAST("SwNumRuleTable")); for (SwNumRule* pNumRule : *this) pNumRule->dumpAsXml(pWriter); xmlTextWriterEndElement(pWriter); diff --git a/sw/source/core/docnode/nodes.cxx b/sw/source/core/docnode/nodes.cxx index 2186a0add942..e5846b55c16d 100644 --- a/sw/source/core/docnode/nodes.cxx +++ b/sw/source/core/docnode/nodes.cxx @@ -2356,7 +2356,7 @@ bool SwNodes::IsDocNodes() const void SwNodes::dumpAsXml(xmlTextWriterPtr pWriter) const { - xmlTextWriterStartElement(pWriter, BAD_CAST("swNodes")); + xmlTextWriterStartElement(pWriter, BAD_CAST("SwNodes")); for (sal_uLong i = 0; i < Count(); ++i) (*this)[i]->dumpAsXml(pWriter); xmlTextWriterEndElement(pWriter); diff --git a/sw/source/core/docnode/section.cxx b/sw/source/core/docnode/section.cxx index 9504b745df24..c47dd97e2096 100644 --- a/sw/source/core/docnode/section.cxx +++ b/sw/source/core/docnode/section.cxx @@ -1079,7 +1079,7 @@ SwSectionFormat::MakeUnoObject() void SwSectionFormat::dumpAsXml(xmlTextWriterPtr pWriter) const { - xmlTextWriterStartElement(pWriter, BAD_CAST("swSectionFormat")); + xmlTextWriterStartElement(pWriter, BAD_CAST("SwSectionFormat")); xmlTextWriterWriteAttribute(pWriter, BAD_CAST("name"), BAD_CAST(GetName().toUtf8().getStr())); GetAttrSet().dumpAsXml(pWriter); xmlTextWriterEndElement(pWriter); @@ -1087,7 +1087,7 @@ void SwSectionFormat::dumpAsXml(xmlTextWriterPtr pWriter) const void SwSectionFormats::dumpAsXml(xmlTextWriterPtr pWriter) const { - xmlTextWriterStartElement(pWriter, BAD_CAST("swSectionFormats")); + xmlTextWriterStartElement(pWriter, BAD_CAST("SwSectionFormats")); for (size_t i = 0; i < size(); ++i) GetFormat(i)->dumpAsXml(pWriter); xmlTextWriterEndElement(pWriter); diff --git a/sw/source/core/fields/docufld.cxx b/sw/source/core/fields/docufld.cxx index def0027360b2..9fce93766773 100644 --- a/sw/source/core/fields/docufld.cxx +++ b/sw/source/core/fields/docufld.cxx @@ -1837,7 +1837,7 @@ bool SwPostItField::PutValue( const uno::Any& rAny, sal_uInt16 nWhichId ) void SwPostItField::dumpAsXml(xmlTextWriterPtr pWriter) const { - xmlTextWriterStartElement(pWriter, BAD_CAST("swPostItField")); + xmlTextWriterStartElement(pWriter, BAD_CAST("SwPostItField")); xmlTextWriterWriteAttribute(pWriter, BAD_CAST("name"), BAD_CAST(GetName().toUtf8().getStr())); SwField::dumpAsXml(pWriter); diff --git a/sw/source/core/fields/fldbas.cxx b/sw/source/core/fields/fldbas.cxx index cfc3a80bf1fe..1de006cf0f5a 100644 --- a/sw/source/core/fields/fldbas.cxx +++ b/sw/source/core/fields/fldbas.cxx @@ -156,7 +156,7 @@ bool SwFieldType::PutValue( const uno::Any& , sal_uInt16 ) void SwFieldTypes::dumpAsXml(xmlTextWriterPtr pWriter) const { - xmlTextWriterStartElement(pWriter, BAD_CAST("swFieldTypes")); + xmlTextWriterStartElement(pWriter, BAD_CAST("SwFieldTypes")); sal_uInt16 nCount = size(); for (sal_uInt16 nType = 0; nType < nCount; ++nType) { @@ -760,7 +760,7 @@ bool SwField::IsClickable() const void SwField::dumpAsXml(xmlTextWriterPtr pWriter) const { - xmlTextWriterStartElement(pWriter, BAD_CAST("swField")); + xmlTextWriterStartElement(pWriter, BAD_CAST("SwField")); xmlTextWriterWriteFormatAttribute(pWriter, BAD_CAST("symbol"), "%s", BAD_CAST(typeid(*this).name())); xmlTextWriterWriteFormatAttribute(pWriter, BAD_CAST("ptr"), "%p", this); diff --git a/sw/source/core/layout/atrfrm.cxx b/sw/source/core/layout/atrfrm.cxx index 15449a0cce27..1a9168d257ee 100644 --- a/sw/source/core/layout/atrfrm.cxx +++ b/sw/source/core/layout/atrfrm.cxx @@ -405,7 +405,7 @@ bool SwFormatFrameSize::PutValue( const uno::Any& rVal, sal_uInt8 nMemberId ) void SwFormatFrameSize::dumpAsXml(xmlTextWriterPtr pWriter) const { - xmlTextWriterStartElement(pWriter, BAD_CAST("swFormatFrameSize")); + xmlTextWriterStartElement(pWriter, BAD_CAST("SwFormatFrameSize")); xmlTextWriterWriteAttribute(pWriter, BAD_CAST("whichId"), BAD_CAST(OString::number(Which()).getStr())); std::stringstream aSize; @@ -568,7 +568,7 @@ SfxPoolItem* SwFormatContent::Clone( SfxItemPool* ) const void SwFormatContent::dumpAsXml(xmlTextWriterPtr pWriter) const { - xmlTextWriterStartElement(pWriter, BAD_CAST("swFormatContent")); + xmlTextWriterStartElement(pWriter, BAD_CAST("SwFormatContent")); xmlTextWriterWriteAttribute(pWriter, BAD_CAST("whichId"), BAD_CAST(OString::number(Which()).getStr())); xmlTextWriterWriteAttribute(pWriter, BAD_CAST("startNode"), BAD_CAST(OString::number(pStartNode->GetNode().GetIndex()).getStr())); xmlTextWriterEndElement(pWriter); @@ -761,7 +761,7 @@ bool SwFormatPageDesc::PutValue( const uno::Any& rVal, sal_uInt8 nMemberId ) void SwFormatPageDesc::dumpAsXml(xmlTextWriterPtr pWriter) const { - xmlTextWriterStartElement(pWriter, BAD_CAST("swFormatPageDesc")); + xmlTextWriterStartElement(pWriter, BAD_CAST("SwFormatPageDesc")); xmlTextWriterWriteAttribute(pWriter, BAD_CAST("whichId"), BAD_CAST(OString::number(Which()).getStr())); if (oNumOffset) xmlTextWriterWriteAttribute(pWriter, BAD_CAST("oNumOffset"), BAD_CAST(OString::number(*oNumOffset).getStr())); @@ -792,7 +792,7 @@ bool SwColumn::operator==( const SwColumn &rCmp ) const void SwColumn::dumpAsXml(xmlTextWriterPtr pWriter) const { - xmlTextWriterStartElement(pWriter, BAD_CAST("swColumn")); + xmlTextWriterStartElement(pWriter, BAD_CAST("SwColumn")); xmlTextWriterWriteAttribute(pWriter, BAD_CAST("nWish"), BAD_CAST(OString::number(m_nWish).getStr())); xmlTextWriterWriteAttribute(pWriter, BAD_CAST("nUpper"), BAD_CAST(OString::number(0).getStr())); xmlTextWriterWriteAttribute(pWriter, BAD_CAST("nLower"), BAD_CAST(OString::number(0).getStr())); @@ -1126,7 +1126,7 @@ bool SwFormatCol::PutValue( const uno::Any& rVal, sal_uInt8 nMemberId ) void SwFormatCol::dumpAsXml(xmlTextWriterPtr pWriter) const { - xmlTextWriterStartElement(pWriter, BAD_CAST("swFormatCol")); + xmlTextWriterStartElement(pWriter, BAD_CAST("SwFormatCol")); xmlTextWriterWriteAttribute(pWriter, BAD_CAST("whichId"), BAD_CAST(OString::number(Which()).getStr())); xmlTextWriterWriteAttribute(pWriter, BAD_CAST("eLineStyle"), BAD_CAST(OString::number(m_eLineStyle).getStr())); xmlTextWriterWriteAttribute(pWriter, BAD_CAST("nLineWidth"), BAD_CAST(OString::number(m_nLineWidth).getStr())); @@ -1272,7 +1272,7 @@ bool SwFormatSurround::PutValue( const uno::Any& rVal, sal_uInt8 nMemberId ) void SwFormatSurround::dumpAsXml(xmlTextWriterPtr pWriter) const { - xmlTextWriterStartElement(pWriter, BAD_CAST("swFormatSurround")); + xmlTextWriterStartElement(pWriter, BAD_CAST("SwFormatSurround")); xmlTextWriterWriteAttribute(pWriter, BAD_CAST("whichId"), BAD_CAST(OString::number(Which()).getStr())); xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"), BAD_CAST(OString::number(GetValue()).getStr())); @@ -1401,7 +1401,7 @@ bool SwFormatVertOrient::PutValue( const uno::Any& rVal, sal_uInt8 nMemberId ) void SwFormatVertOrient::dumpAsXml(xmlTextWriterPtr pWriter) const { - xmlTextWriterStartElement(pWriter, BAD_CAST("swFormatVertOrient")); + xmlTextWriterStartElement(pWriter, BAD_CAST("SwFormatVertOrient")); xmlTextWriterWriteAttribute(pWriter, BAD_CAST("whichId"), BAD_CAST(OString::number(Which()).getStr())); xmlTextWriterWriteAttribute(pWriter, BAD_CAST("nYPos"), BAD_CAST(OString::number(m_nYPos).getStr())); xmlTextWriterWriteAttribute(pWriter, BAD_CAST("eOrient"), BAD_CAST(OString::number(m_eOrient).getStr())); @@ -1502,7 +1502,7 @@ bool SwFormatHoriOrient::PutValue( const uno::Any& rVal, sal_uInt8 nMemberId ) void SwFormatHoriOrient::dumpAsXml(xmlTextWriterPtr pWriter) const { - xmlTextWriterStartElement(pWriter, BAD_CAST("swFormatHoriOrient")); + xmlTextWriterStartElement(pWriter, BAD_CAST("SwFormatHoriOrient")); xmlTextWriterWriteAttribute(pWriter, BAD_CAST("whichId"), BAD_CAST(OString::number(Which()).getStr())); xmlTextWriterWriteAttribute(pWriter, BAD_CAST("nXPos"), BAD_CAST(OString::number(m_nXPos).getStr())); xmlTextWriterWriteAttribute(pWriter, BAD_CAST("eOrient"), BAD_CAST(OString::number(m_eOrient).getStr())); @@ -1714,7 +1714,7 @@ bool SwFormatAnchor::PutValue( const uno::Any& rVal, sal_uInt8 nMemberId ) void SwFormatAnchor::dumpAsXml(xmlTextWriterPtr pWriter) const { - xmlTextWriterStartElement(pWriter, BAD_CAST("swFormatAnchor")); + xmlTextWriterStartElement(pWriter, BAD_CAST("SwFormatAnchor")); xmlTextWriterWriteAttribute(pWriter, BAD_CAST("whichId"), BAD_CAST(OString::number(Which()).getStr())); if (m_pContentAnchor) @@ -1911,7 +1911,7 @@ SfxPoolItem* SwFormatNoBalancedColumns::Clone( SfxItemPool* ) const void SwFormatNoBalancedColumns::dumpAsXml(xmlTextWriterPtr pWriter) const { - xmlTextWriterStartElement(pWriter, BAD_CAST("swFormatNoBalancedColumns")); + xmlTextWriterStartElement(pWriter, BAD_CAST("SwFormatNoBalancedColumns")); xmlTextWriterWriteAttribute(pWriter, BAD_CAST("whichId"), BAD_CAST(OString::number(Which()).getStr())); xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"), BAD_CAST(OString::boolean(GetValue()).getStr())); xmlTextWriterEndElement(pWriter); @@ -2846,7 +2846,7 @@ OUString SwFrameFormat::GetDescription() const void SwFrameFormat::dumpAsXml(xmlTextWriterPtr pWriter) const { - xmlTextWriterStartElement(pWriter, BAD_CAST("swFrameFormat")); + xmlTextWriterStartElement(pWriter, BAD_CAST("SwFrameFormat")); xmlTextWriterWriteFormatAttribute(pWriter, BAD_CAST("ptr"), "%p", this); xmlTextWriterWriteAttribute(pWriter, BAD_CAST("name"), BAD_CAST(GetName().toUtf8().getStr())); xmlTextWriterWriteFormatAttribute(pWriter, BAD_CAST("whichId"), "%d", Which()); diff --git a/sw/source/core/para/paratr.cxx b/sw/source/core/para/paratr.cxx index 54a84683e1bb..ad86bc250192 100644 --- a/sw/source/core/para/paratr.cxx +++ b/sw/source/core/para/paratr.cxx @@ -238,7 +238,7 @@ bool SwNumRuleItem::PutValue( const uno::Any& rVal, sal_uInt8 ) void SwNumRuleItem::dumpAsXml(xmlTextWriterPtr pWriter) const { - xmlTextWriterStartElement(pWriter, BAD_CAST("swNumRuleItem")); + xmlTextWriterStartElement(pWriter, BAD_CAST("SwNumRuleItem")); xmlTextWriterWriteAttribute(pWriter, BAD_CAST("whichId"), BAD_CAST(OString::number(Which()).getStr())); xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"), BAD_CAST(GetValue().toUtf8().getStr())); xmlTextWriterEndElement(pWriter); diff --git a/sw/source/core/text/xmldump.cxx b/sw/source/core/text/xmldump.cxx index 32b11961f6eb..7161ac719b78 100644 --- a/sw/source/core/text/xmldump.cxx +++ b/sw/source/core/text/xmldump.cxx @@ -441,7 +441,7 @@ void SwAnchoredObject::dumpAsXml( xmlTextWriterPtr writer ) const void SwFont::dumpAsXml(xmlTextWriterPtr writer) const { - xmlTextWriterStartElement(writer, BAD_CAST("pFont")); + xmlTextWriterStartElement(writer, BAD_CAST("SwFont")); xmlTextWriterWriteFormatAttribute(writer, BAD_CAST("ptr"), "%p", this); xmlTextWriterWriteFormatAttribute(writer, BAD_CAST("color"), "%s", GetColor().AsRGBHexString().toUtf8().getStr()); xmlTextWriterEndElement(writer); 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()) diff --git a/sw/source/core/view/viewsh.cxx b/sw/source/core/view/viewsh.cxx index 1849c4caaeab..9d94244d7729 100644 --- a/sw/source/core/view/viewsh.cxx +++ b/sw/source/core/view/viewsh.cxx @@ -127,7 +127,7 @@ bool SwViewShell::isOutputToWindow() const void SwViewShell::dumpAsXml(xmlTextWriterPtr pWriter) const { - xmlTextWriterStartElement(pWriter, BAD_CAST("swViewShell")); + xmlTextWriterStartElement(pWriter, BAD_CAST("SwViewShell")); xmlTextWriterEndElement(pWriter); } diff --git a/sw/source/uibase/uiview/viewprt.cxx b/sw/source/uibase/uiview/viewprt.cxx index 213e0f928a58..5a0ff3d15fbd 100644 --- a/sw/source/uibase/uiview/viewprt.cxx +++ b/sw/source/uibase/uiview/viewprt.cxx @@ -262,7 +262,7 @@ int SwView::getPart() const void SwView::dumpAsXml(xmlTextWriterPtr pWriter) const { - xmlTextWriterStartElement(pWriter, BAD_CAST("swView")); + xmlTextWriterStartElement(pWriter, BAD_CAST("SwView")); SfxViewShell::dumpAsXml(pWriter); if (m_pWrtShell) m_pWrtShell->dumpAsXml(pWriter); diff --git a/sw/source/uibase/utlui/attrdesc.cxx b/sw/source/uibase/utlui/attrdesc.cxx index 3fee54c3e7ae..2f04918f51eb 100644 --- a/sw/source/uibase/utlui/attrdesc.cxx +++ b/sw/source/uibase/utlui/attrdesc.cxx @@ -548,7 +548,7 @@ bool SwFormatEditInReadonly::GetPresentation void SwFormatEditInReadonly::dumpAsXml(xmlTextWriterPtr pWriter) const { - xmlTextWriterStartElement(pWriter, BAD_CAST("swFormatEditInReadonly")); + xmlTextWriterStartElement(pWriter, BAD_CAST("SwFormatEditInReadonly")); xmlTextWriterWriteAttribute(pWriter, BAD_CAST("whichId"), BAD_CAST(OString::number(Which()).getStr())); xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"), BAD_CAST(OString::boolean(GetValue()).getStr())); xmlTextWriterEndElement(pWriter); @@ -842,7 +842,7 @@ bool SwFormatFollowTextFlow::GetPresentation( SfxItemPresentation ePres, void SwFormatFollowTextFlow::dumpAsXml(xmlTextWriterPtr pWriter) const { - xmlTextWriterStartElement(pWriter, BAD_CAST("swFormatFollowTextFlow")); + xmlTextWriterStartElement(pWriter, BAD_CAST("SwFormatFollowTextFlow")); xmlTextWriterWriteAttribute(pWriter, BAD_CAST("whichId"), BAD_CAST(OString::number(Which()).getStr())); xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"), BAD_CAST(OString::boolean(GetValue()).getStr())); xmlTextWriterEndElement(pWriter); |