diff options
author | Miklos Vajna <vmiklos@suse.cz> | 2013-04-15 13:01:22 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@suse.cz> | 2013-04-15 13:36:56 +0200 |
commit | d74ba0c4147f33abd9d0c03883cc88f15e160ee5 (patch) | |
tree | 7736366900197bf64d611609101ac06e2b5dde54 /sw | |
parent | d897033777400e029de8751df98f2fc0b0cf34f5 (diff) |
RtfAttributeOutput::FormatBackground: export fillColor
Change-Id: I9d187fc5b52a27ff5b8bc847a52fe95c63558a40
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/filter/ww8/rtfattributeoutput.cxx | 8 |
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())); |