diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2014-11-28 09:05:16 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2014-11-28 11:24:49 +0100 |
commit | c25aa2ad4306d011df03100aa54d0b3b72a7a9f5 (patch) | |
tree | 6449cea564250762b8740b83e2c668e43102046a /sw | |
parent | 1e514c8da8e37fc3cb26af6ddaf95a3ed8093a41 (diff) |
Factor out SdrObject::dumpAsXml() from SwDoc::dumpAsXml()
Change-Id: I043f740c73f1b39d81383f4f1eab2aae009ac2ba
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/docnode/nodedump.cxx | 17 |
1 files changed, 2 insertions, 15 deletions
diff --git a/sw/source/core/docnode/nodedump.cxx b/sw/source/core/docnode/nodedump.cxx index 87a2ae4819be..7e7795cc7834 100644 --- a/sw/source/core/docnode/nodedump.cxx +++ b/sw/source/core/docnode/nodedump.cxx @@ -147,21 +147,8 @@ void lcl_dumpSdrModel(WriterHelper& writer, const SdrModel* pModel) const size_t nObjCount = pPage->GetObjCount(); for (size_t i = 0; i < nObjCount; ++i) { - const SdrObject* pObject = pPage->GetObj(i); - writer.startElement("sdrObject"); - writer.writeFormatAttribute("ptr", "%p", pObject); - if (pObject) - { - writer.writeFormatAttribute("symbol", "%s", BAD_CAST(typeid(*pObject).name())); - writer.writeFormatAttribute("name", "%s", BAD_CAST(OUStringToOString(pObject->GetName(), RTL_TEXTENCODING_UTF8).getStr())); - writer.writeFormatAttribute("title", "%s", BAD_CAST(OUStringToOString(pObject->GetTitle(), RTL_TEXTENCODING_UTF8).getStr())); - writer.writeFormatAttribute("description", "%s", BAD_CAST(OUStringToOString(pObject->GetDescription(), RTL_TEXTENCODING_UTF8).getStr())); - writer.writeFormatAttribute("nOrdNum", TMP_FORMAT, pObject->GetOrdNumDirect()); - - if (const OutlinerParaObject* pOutliner = pObject->GetOutlinerParaObject()) - pOutliner->dumpAsXml(writer); - } - writer.endElement(); + if (const SdrObject* pObject = pPage->GetObj(i)) + pObject->dumpAsXml(writer); } } writer.endElement(); |