From 2eb4bd3c8ce8d4ac76680e5179364b12a656ae94 Mon Sep 17 00:00:00 2001 From: Miklos Vajna Date: Mon, 5 Jan 2015 18:39:47 +0100 Subject: Factor out XFillStyleItem::dumpAsXml() from sw Change-Id: I04aed56c1e32f98f8920530e3ba313765baa1bba --- sw/source/core/docnode/nodedump.cxx | 28 +++------------------------- 1 file changed, 3 insertions(+), 25 deletions(-) (limited to 'sw') diff --git a/sw/source/core/docnode/nodedump.cxx b/sw/source/core/docnode/nodedump.cxx index 8ebd230120f5..c887f2aaea1d 100644 --- a/sw/source/core/docnode/nodedump.cxx +++ b/sw/source/core/docnode/nodedump.cxx @@ -452,6 +452,9 @@ void lcl_dumpSfxItemSet(WriterHelper& writer, const SfxItemSet* pSet) case RES_COL: static_cast(pItem)->dumpAsXml(writer); break; + case XATTR_FILLSTYLE: + static_cast(pItem)->dumpAsXml(writer); + break; default: bDone = false; break; } if (bDone) @@ -466,31 +469,6 @@ void lcl_dumpSfxItemSet(WriterHelper& writer, const SfxItemSet* pSet) boost::optional oValue; switch (pItem->Which()) { - case XATTR_FILLSTYLE: - { - pWhich = "fill style"; - const XFillStyleItem* pFillStyleItem = static_cast(pItem); - switch (pFillStyleItem->GetValue()) - { - default: - case drawing::FillStyle_NONE: - oValue = "none"; - break; - case drawing::FillStyle_SOLID: - oValue = "solid"; - break; - case drawing::FillStyle_GRADIENT: - oValue = "gradient"; - break; - case drawing::FillStyle_HATCH: - oValue = "hatch"; - break; - case drawing::FillStyle_BITMAP: - oValue = "bitmap"; - break; - } - break; - } case XATTR_FILLCOLOR: pWhich = "fill color"; break; -- cgit