diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2014-12-16 09:06:05 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2014-12-16 09:06:41 +0100 |
commit | d54e21eaa2d4baf85484063476d0aa1769b50583 (patch) | |
tree | 1e7f5e9b1f9fe42c19774c20448885e032481456 /sw | |
parent | ab431b632e1e329372b8058bebdb69e1815840c2 (diff) |
Factor out SvxFontItem::dumpAsXml() from sw
Change-Id: I8283ddd868639e6535e27798d91a7273d77f048c
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 877a41f2e98f..17540bca3647 100644 --- a/sw/source/core/docnode/nodedump.cxx +++ b/sw/source/core/docnode/nodedump.cxx @@ -413,6 +413,9 @@ void lcl_dumpSfxItemSet(WriterHelper& writer, const SfxItemSet* pSet) case RES_PARATR_NUMRULE: static_cast<const SwNumRuleItem*>(pItem)->dumpAsXml(writer); break; + case RES_CHRATR_FONT: + static_cast<const SvxFontItem*>(pItem)->dumpAsXml(writer); + break; default: bDone = false; break; } if (bDone) @@ -427,7 +430,6 @@ void lcl_dumpSfxItemSet(WriterHelper& writer, const SfxItemSet* pSet) boost::optional<OString> oValue; switch (pItem->Which()) { - 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; case RES_CHRATR_CTL_FONT: pWhich = "character ctl font"; break; case RES_CHRATR_FONTSIZE: |