diff options
author | Daniel Rentz <dr@openoffice.org> | 2001-06-15 15:58:27 +0000 |
---|---|---|
committer | Daniel Rentz <dr@openoffice.org> | 2001-06-15 15:58:27 +0000 |
commit | ad0c71176495105bf53309aeec308eec3591e6f8 (patch) | |
tree | 334a3766ada1cdc32156fbdf63da95e4c06f48e3 /svx/source/dialog/dlgctrl.cxx | |
parent | #86986#added support for new filepicker api (diff) | |
download | core-ad0c71176495105bf53309aeec308eec3591e6f8.tar.gz core-ad0c71176495105bf53309aeec308eec3591e6f8.zip |
#86988# dialog redesign, misc fixes
Diffstat (limited to 'svx/source/dialog/dlgctrl.cxx')
-rw-r--r-- | svx/source/dialog/dlgctrl.cxx | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/svx/source/dialog/dlgctrl.cxx b/svx/source/dialog/dlgctrl.cxx index db8760df0d7d..3ce092ead36d 100644 --- a/svx/source/dialog/dlgctrl.cxx +++ b/svx/source/dialog/dlgctrl.cxx @@ -2,9 +2,9 @@ * * $RCSfile: dlgctrl.cxx,v $ * - * $Revision: 1.7 $ + * $Revision: 1.8 $ * - * last change: $Author: dr $ $Date: 2001-06-14 16:14:55 $ + * last change: $Author: dr $ $Date: 2001-06-15 16:58:27 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -1812,16 +1812,9 @@ SvxXRectPreview::SvxXRectPreview( Window* pParent, const ResId& rResId, XOutputD pXOutDev( pXOut ) { + SetBorderStyle( WINDOW_BORDER_MONO ); SetMapMode( MAP_100TH_MM ); - Size aSize = GetOutputSize(); - - Size aTmp(1, 1); - aTmp = PixelToLogic(aTmp); - aSize.Width() -= aTmp.Width() /2; - aSize.Height() -= aTmp.Height() /2; - - aRect = Rectangle( Point(), aSize ); - + aRect = Rectangle( Point(), GetOutputSize() ); InitSettings( TRUE, TRUE ); } @@ -1854,6 +1847,7 @@ void SvxXRectPreview::InitSettings( BOOL bForeground, BOOL bBackground ) void SvxXRectPreview::Paint( const Rectangle& rRect ) { + pXOutDev->SetLineColor( Color( COL_TRANSPARENT ) ); pXOutDev->DrawRect( aRect ); } |