diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2014-12-18 10:49:35 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2014-12-18 10:50:02 +0100 |
commit | 2a6dc39ba96648a296fcad29a7a0a44f7e749e2a (patch) | |
tree | ea59f02dccc417f4e9e887b47d5e8b30a20db79d /sw | |
parent | ae177f5b9965684c1a358aa43e5957cff218210b (diff) |
Factor out SvxFontHeightItem::dumpAsXml() from sw
Change-Id: I8dc3a0ed7bfce62b0d20c6bff143d77c0f26963f
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/docnode/nodedump.cxx | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/sw/source/core/docnode/nodedump.cxx b/sw/source/core/docnode/nodedump.cxx index a83799b526f8..f6cd7f85eafb 100644 --- a/sw/source/core/docnode/nodedump.cxx +++ b/sw/source/core/docnode/nodedump.cxx @@ -414,11 +414,15 @@ void lcl_dumpSfxItemSet(WriterHelper& writer, const SfxItemSet* pSet) static_cast<const SwNumRuleItem*>(pItem)->dumpAsXml(writer); break; case RES_CHRATR_FONT: + case RES_CHRATR_CTL_FONT: static_cast<const SvxFontItem*>(pItem)->dumpAsXml(writer); break; case RES_CHRATR_BACKGROUND: static_cast<const SvxBrushItem*>(pItem)->dumpAsXml(writer); break; + case RES_CHRATR_FONTSIZE: + static_cast<const SvxFontHeightItem*>(pItem)->dumpAsXml(writer); + break; default: bDone = false; break; } if (bDone) @@ -433,14 +437,6 @@ void lcl_dumpSfxItemSet(WriterHelper& writer, const SfxItemSet* pSet) boost::optional<OString> oValue; switch (pItem->Which()) { - case RES_CHRATR_CTL_FONT: pWhich = "character ctl font"; break; - case RES_CHRATR_FONTSIZE: - { - pWhich = "character font size"; - const SvxFontHeightItem* pFontHeightItem = static_cast<const SvxFontHeightItem*>(pItem); - oValue = "nHeight: " + OString::number(pFontHeightItem->GetHeight()) + ", nProp: " + OString::number(pFontHeightItem->GetProp()); - break; - } case RES_CNTNT: { pWhich = "content"; |