diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2014-12-08 09:15:41 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2014-12-08 09:17:56 +0100 |
commit | 193c7ba9be48f00b46f9e789f233db577e7b3303 (patch) | |
tree | 92877b8baef043fa3467a9d09d3a81ff12cf0695 /sw/source | |
parent | 2ecec9d08cdb61494ca7d6b72e9342a3a01171f7 (diff) |
Factor out SvxWeightItem::dumpAsXml() from sw
Change-Id: I97ccc04190b1f75c54e725e0612724a2ef62fe3e
Diffstat (limited to 'sw/source')
-rw-r--r-- | sw/source/core/docnode/nodedump.cxx | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/sw/source/core/docnode/nodedump.cxx b/sw/source/core/docnode/nodedump.cxx index f0be0e27f263..ab35ecb0d11c 100644 --- a/sw/source/core/docnode/nodedump.cxx +++ b/sw/source/core/docnode/nodedump.cxx @@ -46,6 +46,7 @@ #include <editeng/editobj.hxx> #include <editeng/outlobj.hxx> #include <editeng/postitem.hxx> +#include <editeng/wghtitem.hxx> #include <svx/xdef.hxx> #include <svx/svdpage.hxx> #include <svx/svdmodel.hxx> @@ -395,6 +396,11 @@ void lcl_dumpSfxItemSet(WriterHelper& writer, const SfxItemSet* pSet) case RES_CHRATR_CTL_POSTURE: static_cast<const SvxPostureItem*>(pItem)->dumpAsXml(writer); break; + case RES_CHRATR_WEIGHT: + case RES_CHRATR_CJK_WEIGHT: + case RES_CHRATR_CTL_WEIGHT: + static_cast<const SvxWeightItem*>(pItem)->dumpAsXml(writer); + break; default: bDone = false; break; } if (bDone) @@ -409,9 +415,6 @@ void lcl_dumpSfxItemSet(WriterHelper& writer, const SfxItemSet* pSet) boost::optional<OString> oValue; switch (pItem->Which()) { - case RES_CHRATR_WEIGHT: pWhich = "character weight"; break; - case RES_CHRATR_CJK_WEIGHT: pWhich = "character cjk weight"; break; - case RES_CHRATR_CTL_WEIGHT: pWhich = "character ctl weight"; break; case RES_CHRATR_RSID: { pWhich = "character rsid"; |