diff options
author | Xiaofei Zhang <Zhangxiaofei@openoffice.org> | 2010-09-29 15:46:40 +0800 |
---|---|---|
committer | Xiaofei Zhang <Zhangxiaofei@openoffice.org> | 2010-09-29 15:46:40 +0800 |
commit | 94ff531ca59a495547530f5c080d8e04e1f34ace (patch) | |
tree | 50597c12e13de7688d1eb42a7bb72e5fbd25f3eb /vcl/source/control/imgctrl.cxx | |
parent | af9614943d37f8e7c6a068cde7497dd7f6248451 (diff) |
removetooltypes: #i112600# some more changes in vcl and tools, reverted config strings in l10ntools and rsc
Diffstat (limited to 'vcl/source/control/imgctrl.cxx')
-rw-r--r-- | vcl/source/control/imgctrl.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/vcl/source/control/imgctrl.cxx b/vcl/source/control/imgctrl.cxx index 075a8b1b95e2..0fb5879ce724 100644 --- a/vcl/source/control/imgctrl.cxx +++ b/vcl/source/control/imgctrl.cxx @@ -88,7 +88,7 @@ namespace void ImageControl::UserDraw( const UserDrawEvent& rUDEvt ) { - USHORT nStyle = 0; + sal_uInt16 nStyle = 0; BitmapEx* pBitmap = &maBmp; if( !!maBmpHC ) { @@ -103,7 +103,7 @@ void ImageControl::UserDraw( const UserDrawEvent& rUDEvt ) return; WinBits nWinStyle = GetStyle(); - USHORT nTextStyle = FixedText::ImplGetTextStyle( nWinStyle ); + sal_uInt16 nTextStyle = FixedText::ImplGetTextStyle( nWinStyle ); if ( !IsEnabled() ) nTextStyle |= TEXT_DRAW_DISABLE; @@ -200,7 +200,7 @@ void ImageControl::SetBitmap( const BitmapEx& rBmp ) // ----------------------------------------------------------------------- -BOOL ImageControl::SetModeBitmap( const BitmapEx& rBitmap, BmpColorMode eMode ) +sal_Bool ImageControl::SetModeBitmap( const BitmapEx& rBitmap, BmpColorMode eMode ) { if( eMode == BMP_COLOR_NORMAL ) SetBitmap( rBitmap ); @@ -210,8 +210,8 @@ BOOL ImageControl::SetModeBitmap( const BitmapEx& rBitmap, BmpColorMode eMode ) StateChanged( STATE_CHANGE_DATA ); } else - return FALSE; - return TRUE; + return sal_False; + return sal_True; } // ----------------------------------------------------------------------- @@ -233,7 +233,7 @@ void ImageControl::Paint( const Rectangle& rRect ) { Window *pWin = GetWindow( WINDOW_BORDER ); - BOOL bFlat = (GetBorderStyle() == 2); + sal_Bool bFlat = (GetBorderStyle() == 2); Rectangle aRect( Point(0,0), pWin->GetOutputSizePixel() ); Color oldLineCol = pWin->GetLineColor(); Color oldFillCol = pWin->GetFillColor(); |