CWS-TOOLING: integrate CWS ooo33gsl02_OOO330

This commit is contained in:
Kurt Zenker
2010-07-13 14:50:40 +02:00
2 changed files with 10 additions and 12 deletions

View File

@@ -1147,13 +1147,13 @@ void ExtMgrDialog::Resize()
{ {
ImplControlValue aValue; ImplControlValue aValue;
bool bNativeOK; bool bNativeOK;
Region aControlRegion( Rectangle( (const Point&)Point(), m_aProgressBar.GetSizePixel() ) ); Rectangle aControlRegion( Point( 0, 0 ), m_aProgressBar.GetSizePixel() );
Region aNativeControlRegion, aNativeContentRegion; Rectangle aNativeControlRegion, aNativeContentRegion;
if( (bNativeOK = GetNativeControlRegion( CTRL_PROGRESS, PART_ENTIRE_CONTROL, aControlRegion, if( (bNativeOK = GetNativeControlRegion( CTRL_PROGRESS, PART_ENTIRE_CONTROL, aControlRegion,
CTRL_STATE_ENABLED, aValue, rtl::OUString(), CTRL_STATE_ENABLED, aValue, rtl::OUString(),
aNativeControlRegion, aNativeContentRegion ) ) != FALSE ) aNativeControlRegion, aNativeContentRegion ) ) != FALSE )
{ {
nProgressHeight = aNativeControlRegion.GetBoundRect().GetHeight(); nProgressHeight = aNativeControlRegion.GetHeight();
} }
} }
@@ -1590,13 +1590,13 @@ void UpdateRequiredDialog::Resize()
{ {
ImplControlValue aValue; ImplControlValue aValue;
bool bNativeOK; bool bNativeOK;
Region aControlRegion( Rectangle( (const Point&)Point(), m_aProgressBar.GetSizePixel() ) ); Rectangle aControlRegion( Point( 0, 0 ), m_aProgressBar.GetSizePixel() );
Region aNativeControlRegion, aNativeContentRegion; Rectangle aNativeControlRegion, aNativeContentRegion;
if( (bNativeOK = GetNativeControlRegion( CTRL_PROGRESS, PART_ENTIRE_CONTROL, aControlRegion, if( (bNativeOK = GetNativeControlRegion( CTRL_PROGRESS, PART_ENTIRE_CONTROL, aControlRegion,
CTRL_STATE_ENABLED, aValue, rtl::OUString(), CTRL_STATE_ENABLED, aValue, rtl::OUString(),
aNativeControlRegion, aNativeContentRegion ) ) != FALSE ) aNativeControlRegion, aNativeContentRegion ) ) != FALSE )
{ {
nProgressHeight = aNativeControlRegion.GetBoundRect().GetHeight(); nProgressHeight = aNativeControlRegion.GetHeight();
} }
} }

View File

@@ -640,20 +640,18 @@ void SplashScreen::Paint( const Rectangle&)
ImplControlValue aValue( _iProgress * _barwidth / _iMax); ImplControlValue aValue( _iProgress * _barwidth / _iMax);
Rectangle aDrawRect( Point(_tlx, _tly), Size( _barwidth, _barheight ) ); Rectangle aDrawRect( Point(_tlx, _tly), Size( _barwidth, _barheight ) );
Region aControlRegion( aDrawRect ); Rectangle aNativeControlRegion, aNativeContentRegion;
Region aNativeControlRegion, aNativeContentRegion;
if( GetNativeControlRegion( CTRL_INTROPROGRESS, PART_ENTIRE_CONTROL, aControlRegion, if( GetNativeControlRegion( CTRL_INTROPROGRESS, PART_ENTIRE_CONTROL, aDrawRect,
CTRL_STATE_ENABLED, aValue, rtl::OUString(), CTRL_STATE_ENABLED, aValue, rtl::OUString(),
aNativeControlRegion, aNativeContentRegion ) ) aNativeControlRegion, aNativeContentRegion ) )
{ {
long nProgressHeight = aNativeControlRegion.GetBoundRect().GetHeight(); long nProgressHeight = aNativeControlRegion.GetHeight();
aDrawRect.Top() -= (nProgressHeight - _barheight)/2; aDrawRect.Top() -= (nProgressHeight - _barheight)/2;
aDrawRect.Bottom() += (nProgressHeight - _barheight)/2; aDrawRect.Bottom() += (nProgressHeight - _barheight)/2;
aControlRegion = Region( aDrawRect );
} }
if( (bNativeOK = DrawNativeControl( CTRL_INTROPROGRESS, PART_ENTIRE_CONTROL, aControlRegion, if( (bNativeOK = DrawNativeControl( CTRL_INTROPROGRESS, PART_ENTIRE_CONTROL, aDrawRect,
CTRL_STATE_ENABLED, aValue, _sProgressText )) != FALSE ) CTRL_STATE_ENABLED, aValue, _sProgressText )) != FALSE )
{ {
return; return;