From 68b8f008c8893b6b7d2314c21679bf2dbcd1b4e5 Mon Sep 17 00:00:00 2001 From: Miklos Vajna Date: Sun, 14 Dec 2014 22:18:11 +0100 Subject: Factor out SfxUInt16Item::dumpAsXml() from sw Change-Id: Ia58bed9c4a0be4b909789e8bdcd64f06230c0f43 --- sw/source/core/docnode/nodedump.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'sw') diff --git a/sw/source/core/docnode/nodedump.cxx b/sw/source/core/docnode/nodedump.cxx index b2053cd9ef8c..7104951a8b8a 100644 --- a/sw/source/core/docnode/nodedump.cxx +++ b/sw/source/core/docnode/nodedump.cxx @@ -407,6 +407,9 @@ void lcl_dumpSfxItemSet(WriterHelper& writer, const SfxItemSet* pSet) case RES_CHRATR_ROTATE: static_cast(pItem)->dumpAsXml(writer); break; + case RES_PARATR_OUTLINELEVEL: + static_cast(pItem)->dumpAsXml(writer); + break; default: bDone = false; break; } if (bDone) @@ -421,7 +424,6 @@ void lcl_dumpSfxItemSet(WriterHelper& writer, const SfxItemSet* pSet) boost::optional oValue; switch (pItem->Which()) { - case RES_PARATR_OUTLINELEVEL: pWhich = "paragraph outline level"; oValue = OString::number(static_cast(pItem)->GetValue()); break; case RES_PARATR_NUMRULE: pWhich = "paragraph numbering rule"; oValue = OUStringToOString(static_cast(pItem)->GetValue(), RTL_TEXTENCODING_UTF8); break; case RES_CHRATR_FONT: pWhich = "character font"; oValue = OUStringToOString(static_cast(pItem)->GetFamilyName(), RTL_TEXTENCODING_UTF8); break; case RES_CHRATR_BACKGROUND: pWhich = "character background"; break; -- cgit