summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@suse.cz>2013-04-15 13:01:22 +0200
committerMiklos Vajna <vmiklos@suse.cz>2013-04-15 13:36:56 +0200
commitd74ba0c4147f33abd9d0c03883cc88f15e160ee5 (patch)
tree7736366900197bf64d611609101ac06e2b5dde54
parentd897033777400e029de8751df98f2fc0b0cf34f5 (diff)
RtfAttributeOutput::FormatBackground: export fillColor
Change-Id: I9d187fc5b52a27ff5b8bc847a52fe95c63558a40
-rw-r--r--sw/source/filter/ww8/rtfattributeoutput.cxx8
1 files changed, 7 insertions, 1 deletions
diff --git a/sw/source/filter/ww8/rtfattributeoutput.cxx b/sw/source/filter/ww8/rtfattributeoutput.cxx
index 5c92b3ab0278..f645c873296b 100644
--- a/sw/source/filter/ww8/rtfattributeoutput.cxx
+++ b/sw/source/filter/ww8/rtfattributeoutput.cxx
@@ -2950,7 +2950,13 @@ void RtfAttributeOutput::FormatBackground( const SvxBrushItem& rBrush )
{
SAL_INFO("sw.rtf", OSL_THIS_FUNC);
- if( !rBrush.GetColor().GetTransparency() )
+ if (m_rExport.bRTFFlySyntax)
+ {
+ const Color& rColor = rBrush.GetColor();
+ // We in fact need RGB to BGR, but the transformation is symmetric.
+ m_aFlyProperties.push_back(std::make_pair<OString, OString>("fillColor", OString::number(msfilter::util::BGRToRGB(rColor.GetColor()))));
+ }
+ else if( !rBrush.GetColor().GetTransparency() )
{
m_aStyles.append(OOO_STRING_SVTOOLS_RTF_CBPAT);
m_aStyles.append((sal_Int32)m_rExport.GetColor(rBrush.GetColor()));