diff options
author | gt <gt@openoffice.org> | 2002-08-12 08:35:38 +0000 |
---|---|---|
committer | gt <gt@openoffice.org> | 2002-08-12 08:35:38 +0000 |
commit | dc91cc37be26501661137f06c7e0ea4b35bab585 (patch) | |
tree | d0620ffeeef5e38da8b380ff7eac8386708b2199 /svx/source/dialog/rubydialog.cxx | |
parent | #102226# added support of BiDi import (diff) | |
download | core-dc91cc37be26501661137f06c7e0ea4b35bab585.tar.gz core-dc91cc37be26501661137f06c7e0ea4b35bab585.zip |
#101857# set border for ruby preview window
Diffstat (limited to 'svx/source/dialog/rubydialog.cxx')
-rw-r--r-- | svx/source/dialog/rubydialog.cxx | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/svx/source/dialog/rubydialog.cxx b/svx/source/dialog/rubydialog.cxx index 5140fd97dfff..a0ac046632db 100644 --- a/svx/source/dialog/rubydialog.cxx +++ b/svx/source/dialog/rubydialog.cxx @@ -2,9 +2,9 @@ * * $RCSfile: rubydialog.cxx,v $ * - * $Revision: 1.19 $ + * $Revision: 1.20 $ * - * last change: $Author: gt $ $Date: 2002-08-07 14:18:10 $ + * last change: $Author: gt $ $Date: 2002-08-12 09:33:35 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -848,9 +848,9 @@ void SvxRubyDialog::AssertOneEntry() void SvxRubyDialog::UpdateColors( void ) { const StyleSettings& rStyleSettings = GetSettings().GetStyleSettings(); - Font aFnt( aPreviewWin.GetFont() ); - Color aNewTextCol( rStyleSettings.GetWindowTextColor() ); - Color aNewFillCol( rStyleSettings.GetWindowColor() ); + Font aFnt( aPreviewWin.GetFont() ); + Color aNewTextCol( rStyleSettings.GetWindowTextColor() ); + Color aNewFillCol( rStyleSettings.GetWindowColor() ); if( aNewFillCol != aFnt.GetFillColor() || aNewTextCol != aFnt.GetColor() ) { @@ -894,13 +894,14 @@ RubyPreview::RubyPreview(SvxRubyDialog& rParent, const ResId& rResId) : Window(&rParent, rResId), rParentDlg(rParent) { - SetStyle( GetStyle() | WB_3DLOOK | WB_BORDER ); SetMapMode(MAP_TWIP); Size aWinSize = GetOutputSize(); Font aFont = GetFont(); aFont.SetHeight(aWinSize.Height() / 4); SetFont(aFont); + + SetBorderStyle( WINDOW_BORDER_MONO ); } /* -----------------------------29.01.01 14:05-------------------------------- @@ -913,6 +914,7 @@ void RubyPreview::Paint( const Rectangle& rRect ) Size aWinSize = GetOutputSize(); Rectangle aRect(Point(0, 0), aWinSize); + SetLineColor(); SetFillColor( aSaveFont.GetFillColor() ); DrawRect(aRect); |