implement linecolor
This commit is contained in:
parent
9203d3a382
commit
635b75c9a3
1 changed files with 6 additions and 1 deletions
|
@ -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(),
|
||||
|
|
Loading…
Reference in a new issue