diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2014-12-14 22:18:11 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2014-12-14 22:33:16 +0100 |
commit | 68b8f008c8893b6b7d2314c21679bf2dbcd1b4e5 (patch) | |
tree | a11dac23e400e99b8fb3746d2dce7ad1feaab402 /sw | |
parent | a818cda870ecf0e2a13949c29063812ecbbdc6b7 (diff) |
Factor out SfxUInt16Item::dumpAsXml() from sw
Change-Id: Ia58bed9c4a0be4b909789e8bdcd64f06230c0f43
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/docnode/nodedump.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
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<const SvxCharRotateItem*>(pItem)->dumpAsXml(writer); break; + case RES_PARATR_OUTLINELEVEL: + static_cast<const SfxUInt16Item*>(pItem)->dumpAsXml(writer); + break; default: bDone = false; break; } if (bDone) @@ -421,7 +424,6 @@ void lcl_dumpSfxItemSet(WriterHelper& writer, const SfxItemSet* pSet) boost::optional<OString> oValue; switch (pItem->Which()) { - case RES_PARATR_OUTLINELEVEL: pWhich = "paragraph outline level"; oValue = OString::number(static_cast<const SfxUInt16Item*>(pItem)->GetValue()); break; case RES_PARATR_NUMRULE: pWhich = "paragraph numbering rule"; oValue = OUStringToOString(static_cast<const SwNumRuleItem*>(pItem)->GetValue(), RTL_TEXTENCODING_UTF8); break; case RES_CHRATR_FONT: pWhich = "character font"; oValue = OUStringToOString(static_cast<const SvxFontItem*>(pItem)->GetFamilyName(), RTL_TEXTENCODING_UTF8); break; case RES_CHRATR_BACKGROUND: pWhich = "character background"; break; |