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 | |
parent | 69c0ef8b56cbcac2cfed23a0897392dd3fa9fff2 (diff) |
#101857# set border for ruby preview window
Diffstat (limited to 'svx/source')
-rw-r--r-- | svx/source/dialog/rubydialog.cxx | 14 | ||||
-rw-r--r-- | svx/source/dialog/rubydialog.src | 5 |
2 files changed, 11 insertions, 8 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); diff --git a/svx/source/dialog/rubydialog.src b/svx/source/dialog/rubydialog.src index 7facf2ebd988..68eb7b30a910 100644 --- a/svx/source/dialog/rubydialog.src +++ b/svx/source/dialog/rubydialog.src @@ -2,9 +2,9 @@ * * $RCSfile: rubydialog.src,v $ * - * $Revision: 1.26 $ + * $Revision: 1.27 $ * - * last change: $Author: kz $ $Date: 2001-07-14 20:28:03 $ + * last change: $Author: gt $ $Date: 2002-08-12 09:35:38 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -672,6 +672,7 @@ ModelessDialog RID_SVXDLG_RUBY { Pos = MAP_APPFONT ( 6 , 121 ) ; Size = MAP_APPFONT ( 215 , 50 ) ; + Border = TRUE ; }; OKButton PB_APPLY { |