implement linecolor

This commit is contained in:
Miklos Vajna 2011-07-06 11:19:27 +02:00
parent 9203d3a382
commit 635b75c9a3

View file

@ -2441,7 +2441,7 @@ void RTFDocumentImpl::resolveShapeProperties(std::vector< std::pair<rtl::OUStrin
// Defaults
uno::Any aColor;
aColor <<= (sal_uInt32)0xffffff; // White
aColor <<= (sal_uInt32)0xffffff; // White in Word, kind of blue in Writer.
xPropertySet->setPropertyValue(OUString(RTL_CONSTASCII_USTRINGPARAM("FillColor")), aColor);
for (std::vector< std::pair<rtl::OUString, rtl::OUString> >::iterator i = rShapeProperties.begin(); i != rShapeProperties.end(); ++i)
@ -2471,6 +2471,11 @@ void RTFDocumentImpl::resolveShapeProperties(std::vector< std::pair<rtl::OUStrin
aColor <<= lcl_BGRToRGB(i->second.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(),