Kaydet (Commit) 74fa26c8 authored tarafından matteocam's avatar matteocam

VclProcessor's text rendering looks at fill color

Change-Id: I96dcafd01fb6d8a5e873719ee617008b5f2cbc13
üst d4c1c038
......@@ -187,6 +187,16 @@ namespace drawinglayer
if( eFontStrikeout != STRIKEOUT_NONE )
aFont.SetStrikeout( eFontStrikeout );
// set FillColor Attribute
// FIXME(matteocam)
// XXX: is "Color" the right type
const Color aFillColor(pTCPP->getFillColor() );
if( aFillColor != COL_TRANSPARENT )
{
aFont.SetFillColor(aFillColor);
aFont.SetTransparent(false);
}
// set EmphasisMark attribute
FontEmphasisMark eFontEmphasisMark = EMPHASISMARK_NONE;
switch( pTCPP->getTextEmphasisMark() )
......
......@@ -246,6 +246,8 @@ EditCharAttribBackgroundColor::EditCharAttribBackgroundColor(
void EditCharAttribBackgroundColor::SetFont( SvxFont& rFont, OutputDevice* )
{
#define BREAK_BKG_COLOR_SET_FONT 0
assert(BREAK_BKG_COLOR_SET_FONT); // XXX: checking if this is being called // FIXME(matteocam)
Color aColor = ((const SvxBackgroundColorItem*)GetItem())->GetValue();
rFont.SetFillColor( aColor); // XXX: Is it SetFillColor we want?
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment