fpicker: sal_Bool -> bool

Change-Id: Iaf55e2106900be0319c96861b07abea24075bbbe
This commit is contained in:
Stephan Bergmann
2014-09-12 15:57:45 +02:00
parent 102c2413c1
commit 6fb5bf5266
4 changed files with 11 additions and 11 deletions

View File

@@ -397,7 +397,7 @@ namespace svt
{
Any aRet;
Control* pControl = m_pFilePickerController->getControl( _nControlId, sal_False );
Control* pControl = m_pFilePickerController->getControl( _nControlId, false );
DBG_ASSERT( pControl, "OControlAccess::GetValue: don't have this control in the current mode!" );
if ( pControl )
{
@@ -463,7 +463,7 @@ namespace svt
void OControlAccess::setLabel( sal_Int16 nId, const OUString &rLabel )
{
Control* pControl = m_pFilePickerController->getControl( nId, sal_True );
Control* pControl = m_pFilePickerController->getControl( nId, true );
DBG_ASSERT( pControl, "OControlAccess::GetValue: don't have this control in the current mode!" );
if ( pControl )
pControl->SetText( rLabel );
@@ -474,7 +474,7 @@ namespace svt
{
OUString sLabel;
Control* pControl = m_pFilePickerController->getControl( nId, sal_True );
Control* pControl = m_pFilePickerController->getControl( nId, true );
DBG_ASSERT( pControl, "OControlAccess::GetValue: don't have this control in the current mode!" );
if ( pControl )
sLabel = pControl->GetText();

View File

@@ -2366,7 +2366,7 @@ void SvtFileDialog::Resize()
_pFileNotifier->notify( DIALOG_SIZE_CHANGED, 0 );
}
Control* SvtFileDialog::getControl( sal_Int16 _nControlId, sal_Bool _bLabelControl ) const
Control* SvtFileDialog::getControl( sal_Int16 _nControlId, bool _bLabelControl ) const
{
Control* pReturn = NULL;
@@ -2491,12 +2491,12 @@ Control* SvtFileDialog::getControl( sal_Int16 _nControlId, sal_Bool _bLabelContr
}
void SvtFileDialog::enableControl( sal_Int16 _nControlId, sal_Bool _bEnable )
void SvtFileDialog::enableControl( sal_Int16 _nControlId, bool _bEnable )
{
Control* pControl = getControl( _nControlId, sal_False );
Control* pControl = getControl( _nControlId, false );
if ( pControl )
EnableControl( pControl, _bEnable );
Control* pLabel = getControl( _nControlId, sal_True );
Control* pLabel = getControl( _nControlId, true );
if ( pLabel )
EnableControl( pLabel, _bEnable );
}

View File

@@ -298,8 +298,8 @@ private:
sal_uInt16 adjustFilter( const OUString& _rFilter );
// IFilePickerController, needed by OControlAccess
virtual Control* getControl( sal_Int16 _nControlId, sal_Bool _bLabelControl = sal_False ) const SAL_OVERRIDE;
virtual void enableControl( sal_Int16 _nControlId, sal_Bool _bEnable ) SAL_OVERRIDE;
virtual Control* getControl( sal_Int16 _nControlId, bool _bLabelControl = false ) const SAL_OVERRIDE;
virtual void enableControl( sal_Int16 _nControlId, bool _bEnable ) SAL_OVERRIDE;
virtual OUString getCurFilter( ) const SAL_OVERRIDE;
OUString implGetInitialURL( const OUString& _rPath, const OUString& _rFallback );

View File

@@ -34,8 +34,8 @@ namespace svt
class IFilePickerController
{
public:
virtual Control* getControl( sal_Int16 _nControlId, sal_Bool _bLabelControl = sal_False ) const = 0;
virtual void enableControl( sal_Int16 _nControlId, sal_Bool _bEnable ) = 0;
virtual Control* getControl( sal_Int16 _nControlId, bool _bLabelControl = false ) const = 0;
virtual void enableControl( sal_Int16 _nControlId, bool _bEnable ) = 0;
virtual OUString getCurFilter( ) const = 0;
protected: