From 635b75c9a32a50e4be2868b2c21bbdab82ca3272 Mon Sep 17 00:00:00 2001 From: Miklos Vajna Date: Wed, 6 Jul 2011 11:19:27 +0200 Subject: [PATCH] implement linecolor --- writerfilter/source/rtftok/rtfdocumentimpl.cxx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/writerfilter/source/rtftok/rtfdocumentimpl.cxx b/writerfilter/source/rtftok/rtfdocumentimpl.cxx index 061d5998e382..f237e2207e99 100644 --- a/writerfilter/source/rtftok/rtfdocumentimpl.cxx +++ b/writerfilter/source/rtftok/rtfdocumentimpl.cxx @@ -2441,7 +2441,7 @@ void RTFDocumentImpl::resolveShapeProperties(std::vector< std::pairsetPropertyValue(OUString(RTL_CONSTASCII_USTRINGPARAM("FillColor")), aColor); for (std::vector< std::pair >::iterator i = rShapeProperties.begin(); i != rShapeProperties.end(); ++i) @@ -2471,6 +2471,11 @@ void RTFDocumentImpl::resolveShapeProperties(std::vector< std::pairsecond.toInt32()); xPropertySet->setPropertyValue(OUString(RTL_CONSTASCII_USTRINGPARAM("FillColor")), aColor); } + else if (i->first.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("lineColor"))) + { + aColor <<= lcl_BGRToRGB(i->second.toInt32()); + xPropertySet->setPropertyValue(OUString(RTL_CONSTASCII_USTRINGPARAM("LineColor")), aColor); + } else OSL_TRACE("%s: TODO handle shape property '%s':'%s'", OSL_THIS_FUNC, OUStringToOString( i->first, RTL_TEXTENCODING_UTF8 ).getStr(),