diff options
-rw-r--r-- | sw/source/core/docnode/nodedump.cxx | 25 | ||||
-rw-r--r-- | sw/source/core/layout/atrfrm.cxx | 25 |
2 files changed, 25 insertions, 25 deletions
diff --git a/sw/source/core/docnode/nodedump.cxx b/sw/source/core/docnode/nodedump.cxx index f291c7896a84..3eed9fa06202 100644 --- a/sw/source/core/docnode/nodedump.cxx +++ b/sw/source/core/docnode/nodedump.cxx @@ -264,31 +264,6 @@ void SwFrmFmts::dumpAsXml(xmlTextWriterPtr w, const char* pName) const } } -void SwFrmFmt::dumpAsXml(xmlTextWriterPtr pWriter) const -{ - xmlTextWriterStartElement(pWriter, BAD_CAST("swFrmFmt")); - xmlTextWriterWriteFormatAttribute(pWriter, BAD_CAST("ptr"), "%p", this); - xmlTextWriterWriteAttribute(pWriter, BAD_CAST("name"), BAD_CAST(GetName().toUtf8().getStr())); - xmlTextWriterWriteFormatAttribute(pWriter, BAD_CAST("whichId"), "%d", Which()); - - const char* pWhich = 0; - switch (Which()) - { - case RES_FLYFRMFMT: - pWhich = "fly frame format"; - break; - case RES_DRAWFRMFMT: - pWhich = "draw frame format"; - break; - } - if (pWhich) - xmlTextWriterWriteAttribute(pWriter, BAD_CAST("which"), BAD_CAST(pWhich)); - - GetAttrSet().dumpAsXml(pWriter); - - xmlTextWriterEndElement(pWriter); -} - void SwCharFmts::dumpAsXml(xmlTextWriterPtr w) const { WriterHelper writer(w); diff --git a/sw/source/core/layout/atrfrm.cxx b/sw/source/core/layout/atrfrm.cxx index 1e224c7cde18..083f884b9d78 100644 --- a/sw/source/core/layout/atrfrm.cxx +++ b/sw/source/core/layout/atrfrm.cxx @@ -2810,6 +2810,31 @@ OUString SwFrmFmt::GetDescription() const return SW_RES(STR_FRAME); } +void SwFrmFmt::dumpAsXml(xmlTextWriterPtr pWriter) const +{ + xmlTextWriterStartElement(pWriter, BAD_CAST("swFrmFmt")); + xmlTextWriterWriteFormatAttribute(pWriter, BAD_CAST("ptr"), "%p", this); + xmlTextWriterWriteAttribute(pWriter, BAD_CAST("name"), BAD_CAST(GetName().toUtf8().getStr())); + xmlTextWriterWriteFormatAttribute(pWriter, BAD_CAST("whichId"), "%d", Which()); + + const char* pWhich = 0; + switch (Which()) + { + case RES_FLYFRMFMT: + pWhich = "fly frame format"; + break; + case RES_DRAWFRMFMT: + pWhich = "draw frame format"; + break; + } + if (pWhich) + xmlTextWriterWriteAttribute(pWriter, BAD_CAST("which"), BAD_CAST(pWhich)); + + GetAttrSet().dumpAsXml(pWriter); + + xmlTextWriterEndElement(pWriter); +} + // class SwFlyFrmFmt // Partially implemented inline in hxx |