summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2014-12-11 08:52:06 +0100
committerMiklos Vajna <vmiklos@collabora.co.uk>2014-12-11 08:52:41 +0100
commit3dee6c74c37d1667c1d56767896e9578e2836e29 (patch)
treef283fee549f0f96f9ffbf0de83f82b2e534c6fa8 /sw
parent94899de91c6adee0dab7218adbbd2d75c565a3ce (diff)
Factor out SvxCharRotateItem::dumpAsXml() from sw
Change-Id: I52bca77e8ff0d4fccf8423f01dac9b6a7498f8d1
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/docnode/nodedump.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/sw/source/core/docnode/nodedump.cxx b/sw/source/core/docnode/nodedump.cxx
index d97bdcfb36db..b2053cd9ef8c 100644
--- a/sw/source/core/docnode/nodedump.cxx
+++ b/sw/source/core/docnode/nodedump.cxx
@@ -404,6 +404,9 @@ void lcl_dumpSfxItemSet(WriterHelper& writer, const SfxItemSet* pSet)
case RES_CHRATR_RSID:
static_cast<const SvxRsidItem*>(pItem)->dumpAsXml(writer);
break;
+ case RES_CHRATR_ROTATE:
+ static_cast<const SvxCharRotateItem*>(pItem)->dumpAsXml(writer);
+ break;
default: bDone = false; break;
}
if (bDone)
@@ -418,7 +421,6 @@ void lcl_dumpSfxItemSet(WriterHelper& writer, const SfxItemSet* pSet)
boost::optional<OString> oValue;
switch (pItem->Which())
{
- case RES_CHRATR_ROTATE: pWhich = "character rotation"; oValue = OString::number(static_cast<const SvxCharRotateItem*>(pItem)->GetValue()); break;
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;