diff options
author | gt <gt@openoffice.org> | 2002-05-24 14:03:55 +0000 |
---|---|---|
committer | gt <gt@openoffice.org> | 2002-05-24 14:03:55 +0000 |
commit | e96aaca07c9329f52719c0096f3e6ab13ec2954a (patch) | |
tree | 34669d3a99bba00dee93b9a808e9081ec13e7e06 /svx/source/dialog/fntctrl.cxx | |
parent | c8f814aba0df85e67c7093a6225f4d39ef21c6cb (diff) |
#99483# handle auto color for font preview
Diffstat (limited to 'svx/source/dialog/fntctrl.cxx')
-rw-r--r-- | svx/source/dialog/fntctrl.cxx | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/svx/source/dialog/fntctrl.cxx b/svx/source/dialog/fntctrl.cxx index 1bb9dad8cc..607930c28f 100644 --- a/svx/source/dialog/fntctrl.cxx +++ b/svx/source/dialog/fntctrl.cxx @@ -2,9 +2,9 @@ * * $RCSfile: fntctrl.cxx,v $ * - * $Revision: 1.8 $ + * $Revision: 1.9 $ * - * last change: $Author: hr $ $Date: 2001-10-12 13:00:07 $ + * last change: $Author: gt $ $Date: 2002-05-24 15:03:55 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -714,3 +714,15 @@ void SvxFontPrevWindow::SetFontWidthScale( UINT16 n ) Invalidate(); } +// ----------------------------------------------------------------------- + +void SvxFontPrevWindow::AutoCorrectFontColor( void ) +{ + Color aFontColor( GetTextColor() ); + + if( COL_AUTO == pImpl->aFont.GetColor().GetColor() ) + pImpl->aFont.SetColor( aFontColor ); + + if( COL_AUTO == pImpl->aCJKFont.GetColor().GetColor() ) + pImpl->aCJKFont.SetColor( aFontColor ); +} |