Kaydet (Commit) cb029063 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

loplugin:defaultparams

Change-Id: Ief9af764ce6e75a5f2cfdd33d836f007e0f52cd3
üst ad6e444a
...@@ -692,7 +692,7 @@ namespace pcr ...@@ -692,7 +692,7 @@ namespace pcr
if ( ( nWinStyle & WB_READONLY ) != 0 ) if ( ( nWinStyle & WB_READONLY ) != 0 )
{ {
getTypedControlWindow()->SetReadOnly(); getTypedControlWindow()->SetReadOnly();
getTypedControlWindow()->Enable( true ); getTypedControlWindow()->Enable();
} }
} }
...@@ -801,7 +801,7 @@ namespace pcr ...@@ -801,7 +801,7 @@ namespace pcr
if ( ( nWinStyle & WB_READONLY ) != 0 ) if ( ( nWinStyle & WB_READONLY ) != 0 )
{ {
getTypedControlWindow()->SetReadOnly(); getTypedControlWindow()->SetReadOnly();
getTypedControlWindow()->Enable( true ); getTypedControlWindow()->Enable();
} }
} }
......
...@@ -396,7 +396,7 @@ void SaneDlg::InitFields() ...@@ -396,7 +396,7 @@ void SaneDlg::InitFields()
if( mrSane.GetOptionValue( nOption, fRes ) ) if( mrSane.GetOptionValue( nOption, fRes ) )
{ {
mpReslBox->Enable( true ); mpReslBox->Enable();
mpReslBox->SetValue( (long)fRes ); mpReslBox->SetValue( (long)fRes );
double *pDouble = NULL; double *pDouble = NULL;
...@@ -516,7 +516,7 @@ void SaneDlg::InitFields() ...@@ -516,7 +516,7 @@ void SaneDlg::InitFields()
case 3: aMaxBottomRight.Y() = (int)fValue;break; case 3: aMaxBottomRight.Y() = (int)fValue;break;
} }
} }
pField->Enable( true ); pField->Enable();
} }
else else
{ {
...@@ -754,8 +754,8 @@ IMPL_LINK_TYPED( SaneDlg, OptionsBoxSelectHdl, SvTreeListBox*, pBox, void ) ...@@ -754,8 +754,8 @@ IMPL_LINK_TYPED( SaneDlg, OptionsBoxSelectHdl, SvTreeListBox*, pBox, void )
mpVectorBox->SetMin( 1 ); mpVectorBox->SetMin( 1 );
mpVectorBox->SetMax( mpVectorBox->SetMax(
mrSane.GetOptionElements( mnCurrentOption ) ); mrSane.GetOptionElements( mnCurrentOption ) );
mpVectorBox->Show( true ); mpVectorBox->Show();
mpVectorTxt->Show( true ); mpVectorTxt->Show();
} }
else else
{ {
...@@ -987,7 +987,7 @@ void SaneDlg::EstablishBoolOption() ...@@ -987,7 +987,7 @@ void SaneDlg::EstablishBoolOption()
{ {
mpBoolCheckBox->SetText( mrSane.GetOptionName( mnCurrentOption ) ); mpBoolCheckBox->SetText( mrSane.GetOptionName( mnCurrentOption ) );
mpBoolCheckBox->Check( bValue ); mpBoolCheckBox->Check( bValue );
mpBoolCheckBox->Show( true ); mpBoolCheckBox->Show();
} }
} }
...@@ -1000,9 +1000,9 @@ void SaneDlg::EstablishStringOption() ...@@ -1000,9 +1000,9 @@ void SaneDlg::EstablishStringOption()
if( bSuccess ) if( bSuccess )
{ {
mpOptionDescTxt->SetText( mrSane.GetOptionName( mnCurrentOption ) ); mpOptionDescTxt->SetText( mrSane.GetOptionName( mnCurrentOption ) );
mpOptionDescTxt->Show( true ); mpOptionDescTxt->Show();
mpStringEdit->SetText(OStringToOUString(aValue, osl_getThreadTextEncoding())); mpStringEdit->SetText(OStringToOUString(aValue, osl_getThreadTextEncoding()));
mpStringEdit->Show( true ); mpStringEdit->Show();
} }
} }
...@@ -1015,9 +1015,9 @@ void SaneDlg::EstablishStringRange() ...@@ -1015,9 +1015,9 @@ void SaneDlg::EstablishStringRange()
OString aValue; OString aValue;
mrSane.GetOptionValue( mnCurrentOption, aValue ); mrSane.GetOptionValue( mnCurrentOption, aValue );
mpStringRangeBox->SelectEntry(OStringToOUString(aValue, osl_getThreadTextEncoding())); mpStringRangeBox->SelectEntry(OStringToOUString(aValue, osl_getThreadTextEncoding()));
mpStringRangeBox->Show( true ); mpStringRangeBox->Show();
mpOptionDescTxt->SetText( mrSane.GetOptionName( mnCurrentOption ) ); mpOptionDescTxt->SetText( mrSane.GetOptionName( mnCurrentOption ) );
mpOptionDescTxt->Show( true ); mpOptionDescTxt->Show();
} }
void SaneDlg::EstablishQuantumRange() void SaneDlg::EstablishQuantumRange()
...@@ -1053,12 +1053,12 @@ void SaneDlg::EstablishQuantumRange() ...@@ -1053,12 +1053,12 @@ void SaneDlg::EstablishQuantumRange()
sprintf( pBuf, "%g", fValue ); sprintf( pBuf, "%g", fValue );
mpQuantumRangeBox->SelectEntry( OUString( pBuf, strlen(pBuf), osl_getThreadTextEncoding() ) ); mpQuantumRangeBox->SelectEntry( OUString( pBuf, strlen(pBuf), osl_getThreadTextEncoding() ) );
} }
mpQuantumRangeBox->Show( true ); mpQuantumRangeBox->Show();
OUString aText( mrSane.GetOptionName( mnCurrentOption ) ); OUString aText( mrSane.GetOptionName( mnCurrentOption ) );
aText += " "; aText += " ";
aText += mrSane.GetOptionUnitName( mnCurrentOption ); aText += mrSane.GetOptionUnitName( mnCurrentOption );
mpOptionDescTxt->SetText( aText ); mpOptionDescTxt->SetText( aText );
mpOptionDescTxt->Show( true ); mpOptionDescTxt->Show();
} }
} }
...@@ -1081,17 +1081,17 @@ void SaneDlg::EstablishNumericOption() ...@@ -1081,17 +1081,17 @@ void SaneDlg::EstablishNumericOption()
aText += OUString( pBuf, strlen(pBuf), osl_getThreadTextEncoding() ); aText += OUString( pBuf, strlen(pBuf), osl_getThreadTextEncoding() );
} }
mpOptionDescTxt->SetText( aText ); mpOptionDescTxt->SetText( aText );
mpOptionDescTxt->Show( true ); mpOptionDescTxt->Show();
sprintf( pBuf, "%g", fValue ); sprintf( pBuf, "%g", fValue );
mpNumericEdit->SetText( OUString( pBuf, strlen(pBuf), osl_getThreadTextEncoding() ) ); mpNumericEdit->SetText( OUString( pBuf, strlen(pBuf), osl_getThreadTextEncoding() ) );
mpNumericEdit->Show( true ); mpNumericEdit->Show();
} }
void SaneDlg::EstablishButtonOption() void SaneDlg::EstablishButtonOption()
{ {
mpOptionDescTxt->SetText( mrSane.GetOptionName( mnCurrentOption ) ); mpOptionDescTxt->SetText( mrSane.GetOptionName( mnCurrentOption ) );
mpOptionDescTxt->Show( true ); mpOptionDescTxt->Show();
mpButtonOption->Show( true ); mpButtonOption->Show();
} }
void ScanPreview::MouseMove(const MouseEvent& rMEvt) void ScanPreview::MouseMove(const MouseEvent& rMEvt)
......
...@@ -356,7 +356,7 @@ void UpdateCheckUI::AddMenuBarIcon( SystemWindow *pSysWin, bool bAddEventHdl ) ...@@ -356,7 +356,7 @@ void UpdateCheckUI::AddMenuBarIcon( SystemWindow *pSysWin, bool bAddEventHdl )
mpBubbleWin = GetBubbleWindow(); mpBubbleWin = GetBubbleWindow();
if ( mpBubbleWin ) if ( mpBubbleWin )
{ {
mpBubbleWin->Show( true ); mpBubbleWin->Show();
maTimeoutTimer.Start(); maTimeoutTimer.Start();
} }
mbShowBubble = false; mbShowBubble = false;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment