summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2014-11-27 08:04:28 +0100
committerMiklos Vajna <vmiklos@collabora.co.uk>2014-11-27 08:04:59 +0100
commit855c94a46a8810780dacce178b533ab6ceb4d19b (patch)
tree3a16fd7fff79b2ffc5c32828bb5e573df1692a07 /sw
parent90fe751ab381cf59e87b79d921b3773567774af2 (diff)
Factor out OutlinerParaObject::dumpAsXml() from SwDoc::dumpAsXml()
Change-Id: I5e805aa98f643b5a034cdeadb4718af528af022c
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/docnode/nodedump.cxx8
1 files changed, 2 insertions, 6 deletions
diff --git a/sw/source/core/docnode/nodedump.cxx b/sw/source/core/docnode/nodedump.cxx
index 9268d7f9b1cb..87a2ae4819be 100644
--- a/sw/source/core/docnode/nodedump.cxx
+++ b/sw/source/core/docnode/nodedump.cxx
@@ -158,12 +158,8 @@ void lcl_dumpSdrModel(WriterHelper& writer, const SdrModel* pModel)
writer.writeFormatAttribute("description", "%s", BAD_CAST(OUStringToOString(pObject->GetDescription(), RTL_TEXTENCODING_UTF8).getStr()));
writer.writeFormatAttribute("nOrdNum", TMP_FORMAT, pObject->GetOrdNumDirect());
- const OutlinerParaObject* pOutliner = pObject->GetOutlinerParaObject();
- writer.startElement("outliner");
- writer.writeFormatAttribute("ptr", "%p", pOutliner);
- if (pOutliner)
- pOutliner->GetTextObject().dumpAsXml(writer);
- writer.endElement();
+ if (const OutlinerParaObject* pOutliner = pObject->GetOutlinerParaObject())
+ pOutliner->dumpAsXml(writer);
}
writer.endElement();
}