bool improvements
Change-Id: Ice58633418dad12ee55b77aa56c6bd7d37ebbcf3
This commit is contained in:
@@ -1822,7 +1822,7 @@ OUString SvtFileDialog::implGetInitialURL( const OUString& _rPath, const OUStrin
|
|||||||
INetURLObject aURLParser;
|
INetURLObject aURLParser;
|
||||||
|
|
||||||
// set the path
|
// set the path
|
||||||
bool bWasAbsolute = sal_False;
|
bool bWasAbsolute = false;
|
||||||
aURLParser = aURLParser.smartRel2Abs( _rPath, bWasAbsolute );
|
aURLParser = aURLParser.smartRel2Abs( _rPath, bWasAbsolute );
|
||||||
|
|
||||||
// is it a valid folder?
|
// is it a valid folder?
|
||||||
@@ -1913,7 +1913,7 @@ void SvtFileDialog::onAsyncOperationStarted()
|
|||||||
{
|
{
|
||||||
EnableUI( sal_False );
|
EnableUI( sal_False );
|
||||||
// the cancel button must be always enabled
|
// the cancel button must be always enabled
|
||||||
_pImp->_pBtnCancel->Enable( sal_True );
|
_pImp->_pBtnCancel->Enable( true );
|
||||||
_pImp->_pBtnCancel->GrabFocus();
|
_pImp->_pBtnCancel->GrabFocus();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1984,7 +1984,7 @@ void SvtFileDialog::EnableUI( sal_Bool _bEnable )
|
|||||||
++aLoop
|
++aLoop
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
(*aLoop)->Enable( sal_False );
|
(*aLoop)->Enable( false );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -3367,12 +3367,12 @@ IMPL_LINK_NOARG(QueryFolderNameDialog, NameHdl)
|
|||||||
if ( !aName.isEmpty() )
|
if ( !aName.isEmpty() )
|
||||||
{
|
{
|
||||||
if ( !m_pOKBtn->IsEnabled() )
|
if ( !m_pOKBtn->IsEnabled() )
|
||||||
m_pOKBtn->Enable( sal_True );
|
m_pOKBtn->Enable( true );
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if ( m_pOKBtn->IsEnabled() )
|
if ( m_pOKBtn->IsEnabled() )
|
||||||
m_pOKBtn->Enable( sal_False );
|
m_pOKBtn->Enable( false );
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
Reference in New Issue
Block a user