summaryrefslogtreecommitdiff
path: root/sw/source/filter/ww8
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2015-02-02 10:27:28 +0100
committerMiklos Vajna <vmiklos@collabora.co.uk>2015-02-02 09:54:09 +0000
commit87a5cf7db1f070cbc4a674a1c12c805a2c950856 (patch)
tree3ca7acba46cbbdf67ce73385ede4f3aa704b19b5 /sw/source/filter/ww8
parent72546d4492137aadabd46e8c7fffcdbb07a3e6c5 (diff)
RTF export: need to take care of fill attributes when building the color table
Change-Id: Iab7b4941e9b41249f2a30fa6139313239a98c501 Reviewed-on: https://gerrit.libreoffice.org/14276 Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> Tested-by: Miklos Vajna <vmiklos@collabora.co.uk>
Diffstat (limited to 'sw/source/filter/ww8')
-rw-r--r--sw/source/filter/ww8/rtfexport.cxx9
1 files changed, 9 insertions, 0 deletions
diff --git a/sw/source/filter/ww8/rtfexport.cxx b/sw/source/filter/ww8/rtfexport.cxx
index e39b18e01266..ffc60d8849de 100644
--- a/sw/source/filter/ww8/rtfexport.cxx
+++ b/sw/source/filter/ww8/rtfexport.cxx
@@ -45,6 +45,7 @@
#if OSL_DEBUG_LEVEL > 1
#include <iostream>
#endif
+#include <svx/xflclit.hxx>
using ::editeng::SvxBorderLine;
using namespace ::comphelper;
@@ -1041,6 +1042,14 @@ void RtfExport::OutColorTable()
}
}
+ // TextFrame or paragraph background solid fill.
+ nMaxItem = rPool.GetItemCount2(XATTR_FILLCOLOR);
+ for (sal_uInt32 i = 0; i < nMaxItem; ++i)
+ {
+ if (const XFillColorItem* pItem = static_cast<const XFillColorItem*>(rPool.GetItem2(XATTR_FILLCOLOR, i)))
+ InsColor(pItem->GetColorValue());
+ }
+
for (size_t n = 0; n < m_aColTbl.size(); ++n)
{
const Color& rCol = m_aColTbl[ n ];