diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2015-01-05 18:39:47 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2015-01-05 18:56:53 +0100 |
commit | 2eb4bd3c8ce8d4ac76680e5179364b12a656ae94 (patch) | |
tree | 4017c647549679c907b7c25b8ba6d0fe02bdec22 /sw | |
parent | 3fab95491940160a1ee288491090b2f8b5875731 (diff) |
Factor out XFillStyleItem::dumpAsXml() from sw
Change-Id: I04aed56c1e32f98f8920530e3ba313765baa1bba
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/docnode/nodedump.cxx | 28 |
1 files changed, 3 insertions, 25 deletions
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<const SwFmtCol*>(pItem)->dumpAsXml(writer); break; + case XATTR_FILLSTYLE: + static_cast<const XFillStyleItem*>(pItem)->dumpAsXml(writer); + break; default: bDone = false; break; } if (bDone) @@ -466,31 +469,6 @@ void lcl_dumpSfxItemSet(WriterHelper& writer, const SfxItemSet* pSet) boost::optional<OString> oValue; switch (pItem->Which()) { - case XATTR_FILLSTYLE: - { - pWhich = "fill style"; - const XFillStyleItem* pFillStyleItem = static_cast<const XFillStyleItem*>(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; |