summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2014-12-09 09:05:14 +0100
committerMiklos Vajna <vmiklos@collabora.co.uk>2014-12-09 09:06:47 +0100
commit4dbbf535e7f2abfbcdcb3f513e03bdaaeed75d43 (patch)
tree8dd811d06f7a955bf15eb2cbd7d48f9a45eb6c6c /sw
parent5f6af01f13460909e7c3819e14edb2eb04788156 (diff)
Factor out SvxRsidItem::dumpAsXml() from sw
Change-Id: I60c57fa6a9f3619de717e7b2383dc420706b2886
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/docnode/nodedump.cxx11
1 files changed, 3 insertions, 8 deletions
diff --git a/sw/source/core/docnode/nodedump.cxx b/sw/source/core/docnode/nodedump.cxx
index ab35ecb0d11c..d97bdcfb36db 100644
--- a/sw/source/core/docnode/nodedump.cxx
+++ b/sw/source/core/docnode/nodedump.cxx
@@ -401,6 +401,9 @@ void lcl_dumpSfxItemSet(WriterHelper& writer, const SfxItemSet* pSet)
case RES_CHRATR_CTL_WEIGHT:
static_cast<const SvxWeightItem*>(pItem)->dumpAsXml(writer);
break;
+ case RES_CHRATR_RSID:
+ static_cast<const SvxRsidItem*>(pItem)->dumpAsXml(writer);
+ break;
default: bDone = false; break;
}
if (bDone)
@@ -415,14 +418,6 @@ void lcl_dumpSfxItemSet(WriterHelper& writer, const SfxItemSet* pSet)
boost::optional<OString> oValue;
switch (pItem->Which())
{
- case RES_CHRATR_RSID:
- {
- pWhich = "character rsid";
- css::uno::Any aAny;
- static_cast<const SvxRsidItem*>(pItem)->QueryValue(aAny);
- oValue = OString::number(aAny.get<sal_uInt32>());
- break;
- }
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;