accessibility: sal_False/True -> false/true

Change-Id: I4ac9d6ce48217893246a82fde4546dad09c58bd0
This commit is contained in:
Stephan Bergmann
2014-09-15 17:24:50 +02:00
parent 15652daf08
commit b0bac593bb
21 changed files with 41 additions and 41 deletions

View File

@@ -88,7 +88,7 @@ namespace accessibility
sal_Bool SAL_CALL AccessibleCheckBoxCell::setCurrentValue( const Any& ) throw (RuntimeException, std::exception)
{
return sal_False;
return false;
}
Any SAL_CALL AccessibleCheckBoxCell::getMaximumValue( ) throw (RuntimeException, std::exception)

View File

@@ -169,7 +169,7 @@ sal_Bool SAL_CALL AccessibleBrowseBoxHeaderBar::isAccessibleRowSelected( sal_Int
::osl::MutexGuard aGuard( getOslMutex() );
ensureIsAlive();
ensureIsValidRow( nRow );
return isRowBar() ? implIsRowSelected( nRow ) : sal_False;
return isRowBar() ? implIsRowSelected( nRow ) : false;
}
sal_Bool SAL_CALL AccessibleBrowseBoxHeaderBar::isAccessibleColumnSelected( sal_Int32 nColumn )
@@ -179,7 +179,7 @@ sal_Bool SAL_CALL AccessibleBrowseBoxHeaderBar::isAccessibleColumnSelected( sal_
::osl::MutexGuard aGuard( getOslMutex() );
ensureIsAlive();
ensureIsValidColumn( nColumn );
return isColumnBar() ? implIsColumnSelected( nColumn ) : sal_False;
return isColumnBar() ? implIsColumnSelected( nColumn ) : false;
}
Reference< XAccessible > SAL_CALL AccessibleBrowseBoxHeaderBar::getAccessibleCellAt(

View File

@@ -236,7 +236,7 @@ namespace accessibility
if ( !implIsValidRange( nIndex, nIndex, implGetText().getLength() ) )
throw IndexOutOfBoundsException();
return sal_False;
return false;
}
sal_Unicode SAL_CALL AccessibleBrowseBoxTableCell::getCharacter( sal_Int32 nIndex ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException, std::exception)
{
@@ -288,7 +288,7 @@ namespace accessibility
if ( !implIsValidRange( nStartIndex, nEndIndex, implGetText().getLength() ) )
throw IndexOutOfBoundsException();
return sal_False;
return false;
}
OUString SAL_CALL AccessibleBrowseBoxTableCell::getText( ) throw (::com::sun::star::uno::RuntimeException, std::exception)
{
@@ -329,7 +329,7 @@ namespace accessibility
checkIndex_Impl( nEndIndex, sText );
//!!! don't know how to put a string into the clipboard
return sal_False;
return false;
}
void AccessibleBrowseBoxTableCell::disposing( const EventObject& _rSource ) throw (RuntimeException, std::exception)
{

View File

@@ -175,14 +175,14 @@ Sequence< sal_Int32 > SAL_CALL AccessibleGridControlHeader::getSelectedAccessibl
sal_Bool SAL_CALL AccessibleGridControlHeader::isAccessibleRowSelected( sal_Int32 /*nRow*/ )
throw ( lang::IndexOutOfBoundsException, uno::RuntimeException, std::exception )
{
return sal_False;
return false;
}
//columns aren't selectable
sal_Bool SAL_CALL AccessibleGridControlHeader::isAccessibleColumnSelected( sal_Int32 nColumn )
throw ( lang::IndexOutOfBoundsException, uno::RuntimeException, std::exception )
{
(void)nColumn;
return sal_False;
return false;
}
//not implemented
Reference< XAccessible > SAL_CALL AccessibleGridControlHeader::getAccessibleCellAt(
@@ -196,7 +196,7 @@ sal_Bool SAL_CALL AccessibleGridControlHeader::isAccessibleSelected(
sal_Int32 /*nRow*/, sal_Int32 /*nColumn */)
throw ( lang::IndexOutOfBoundsException, uno::RuntimeException, std::exception )
{
return sal_False;
return false;
}
// XServiceInfo ---------------------------------------------------------------

View File

@@ -202,7 +202,7 @@ sal_Bool SAL_CALL AccessibleGridControlTable::isAccessibleColumnSelected( sal_In
throw ( lang::IndexOutOfBoundsException, uno::RuntimeException, std::exception )
{
(void) nColumn;
return sal_False;
return false;
}
Reference< XAccessible > SAL_CALL AccessibleGridControlTable::getAccessibleCellAt(

View File

@@ -241,7 +241,7 @@ namespace accessibility
if ( !implIsValidRange( nIndex, nIndex, implGetText().getLength() ) )
throw IndexOutOfBoundsException();
return sal_False;
return false;
}
sal_Unicode SAL_CALL AccessibleGridControlTableCell::getCharacter( sal_Int32 nIndex ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException, std::exception)
{
@@ -292,7 +292,7 @@ namespace accessibility
if ( !implIsValidRange( nStartIndex, nEndIndex, implGetText().getLength() ) )
throw IndexOutOfBoundsException();
return sal_False;
return false;
}
OUString SAL_CALL AccessibleGridControlTableCell::getText( ) throw (::com::sun::star::uno::RuntimeException, std::exception)
{
@@ -333,7 +333,7 @@ namespace accessibility
checkIndex_Impl( nEndIndex, sText );
//!!! don't know how to put a string into the clipboard
return sal_False;
return false;
}
Rectangle AccessibleGridControlTableCell::implGetBoundingBox()

View File

@@ -494,7 +494,7 @@ throw(RuntimeException, std::exception)
sal_Int32 nLen = nEndIndex - nStartIndex + 1;
::svt::OStringTransfer::CopyString( sText.copy( nStartIndex, nLen ), m_pIconCtrl );
return sal_True;
return true;
}
// XAccessibleEventBroadcaster
@@ -543,7 +543,7 @@ throw(RuntimeException, std::exception)
if ( !implIsValidRange( nIndex, nIndex, implGetText().getLength() ) )
throw IndexOutOfBoundsException();
return sal_False;
return false;
}
sal_Unicode SAL_CALL AccessibleIconChoiceCtrlEntry::getCharacter( sal_Int32 nIndex ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException, std::exception)
{
@@ -603,7 +603,7 @@ throw(RuntimeException, std::exception)
if ( !implIsValidRange( nStartIndex, nEndIndex, implGetText().getLength() ) )
throw IndexOutOfBoundsException();
return sal_False;
return false;
}
OUString SAL_CALL AccessibleIconChoiceCtrlEntry::getText( ) throw (::com::sun::star::uno::RuntimeException, std::exception)
{

View File

@@ -136,7 +136,7 @@ namespace accessibility
/*
ImplSVData* pSVData = ImplGetAppSVData();
if (pSVData && pSVData->maWinData.mpFirstFloat == (FloatingWindow*)pParent)
bNeedFocus = sal_True;
bNeedFocus = true;
*/
}
}

View File

@@ -713,7 +713,7 @@ namespace accessibility
sal_Int32 nLen = nEndIndex - nStartIndex + 1;
::svt::OStringTransfer::CopyString( sText.copy( nStartIndex, nLen ), getListBox() );
return sal_True;
return true;
}
// XAccessibleEventBroadcaster
@@ -1013,7 +1013,7 @@ namespace accessibility
if ( !implIsValidRange( nIndex, nIndex, implGetText().getLength() ) )
throw IndexOutOfBoundsException();
return sal_False;
return false;
}
sal_Unicode SAL_CALL AccessibleListBoxEntry::getCharacter( sal_Int32 nIndex ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException, std::exception)
{
@@ -1073,7 +1073,7 @@ namespace accessibility
if ( !implIsValidRange( nStartIndex, nEndIndex, implGetText().getLength() ) )
throw IndexOutOfBoundsException();
return sal_False;
return false;
}
OUString SAL_CALL AccessibleListBoxEntry::getText( ) throw (::com::sun::star::uno::RuntimeException, std::exception)
{

View File

@@ -271,7 +271,7 @@ namespace accessibility
bool AccessibleTabListBoxTable::implIsRowSelected( sal_Int32 _nRow ) const
{
return m_pTabListBox ? m_pTabListBox->IsSelected( m_pTabListBox->GetEntry( _nRow ) ) : sal_False;
return m_pTabListBox ? m_pTabListBox->IsSelected( m_pTabListBox->GetEntry( _nRow ) ) : false;
}
void AccessibleTabListBoxTable::implSelectRow( sal_Int32 _nRow, bool _bSelect )

View File

@@ -200,7 +200,7 @@ sal_Bool VCLXAccessibleButton::doAccessibleAction ( sal_Int32 nIndex ) throw (In
if ( pButton )
pButton->Click();
return sal_True;
return true;
}

View File

@@ -218,7 +218,7 @@ sal_Bool VCLXAccessibleCheckBox::doAccessibleAction ( sal_Int32 nIndex ) throw (
pVCLXCheckBox->setState( (sal_Int16) nValue );
}
return sal_True;
return true;
}

View File

@@ -589,7 +589,7 @@ sal_Bool VCLXAccessibleEdit::setAttributes( sal_Int32 nStartIndex, sal_Int32 nEn
if ( !implIsValidRange( nStartIndex, nEndIndex, implGetText().getLength() ) )
throw IndexOutOfBoundsException();
return sal_False; // attributes cannot be set for an edit
return false; // attributes cannot be set for an edit
}

View File

@@ -414,7 +414,7 @@ sal_Bool SAL_CALL VCLXAccessibleListItem::setCaretPosition( sal_Int32 nIndex ) t
if ( !implIsValidRange( nIndex, nIndex, implGetText().getLength() ) )
throw IndexOutOfBoundsException();
return sal_False;
return false;
}
sal_Unicode SAL_CALL VCLXAccessibleListItem::getCharacter( sal_Int32 nIndex ) throw (IndexOutOfBoundsException, RuntimeException, std::exception)
@@ -517,7 +517,7 @@ sal_Bool SAL_CALL VCLXAccessibleListItem::setSelection( sal_Int32 nStartIndex, s
if ( !implIsValidRange( nStartIndex, nEndIndex, implGetText().getLength() ) )
throw IndexOutOfBoundsException();
return sal_False;
return false;
}
OUString SAL_CALL VCLXAccessibleListItem::getText() throw (RuntimeException, std::exception)

View File

@@ -219,7 +219,7 @@ sal_Bool VCLXAccessibleMenuItem::setCaretPosition( sal_Int32 nIndex ) throw (Ind
if ( !implIsValidRange( nIndex, nIndex, implGetText().getLength() ) )
throw IndexOutOfBoundsException();
return sal_False;
return false;
}
@@ -337,7 +337,7 @@ sal_Bool VCLXAccessibleMenuItem::setSelection( sal_Int32 nStartIndex, sal_Int32
if ( !implIsValidRange( nStartIndex, nEndIndex, implGetText().getLength() ) )
throw IndexOutOfBoundsException();
return sal_False;
return false;
}
@@ -443,7 +443,7 @@ sal_Bool VCLXAccessibleMenuItem::doAccessibleAction ( sal_Int32 nIndex ) throw (
Click();
return sal_True;
return true;
}

View File

@@ -175,9 +175,9 @@ sal_Bool VCLXAccessibleRadioButton::doAccessibleAction ( sal_Int32 nIndex ) thro
VCLXRadioButton* pVCLXRadioButton = static_cast< VCLXRadioButton* >( GetVCLXWindow() );
if ( pVCLXRadioButton && !pVCLXRadioButton->getState() )
pVCLXRadioButton->setState( sal_True );
pVCLXRadioButton->setState( true );
return sal_True;
return true;
}

View File

@@ -494,7 +494,7 @@ sal_Bool VCLXAccessibleStatusBarItem::setCaretPosition( sal_Int32 nIndex ) throw
if ( !implIsValidRange( nIndex, nIndex, implGetText().getLength() ) )
throw IndexOutOfBoundsException();
return sal_False;
return false;
}
@@ -573,7 +573,7 @@ sal_Bool VCLXAccessibleStatusBarItem::setSelection( sal_Int32 nStartIndex, sal_I
if ( !implIsValidRange( nStartIndex, nEndIndex, implGetText().getLength() ) )
throw IndexOutOfBoundsException();
return sal_False;
return false;
}

View File

@@ -568,7 +568,7 @@ sal_Bool VCLXAccessibleTabPage::setCaretPosition( sal_Int32 nIndex ) throw (Inde
if ( !implIsValidRange( nIndex, nIndex, implGetText().getLength() ) )
throw IndexOutOfBoundsException();
return sal_False;
return false;
}
@@ -646,7 +646,7 @@ sal_Bool VCLXAccessibleTabPage::setSelection( sal_Int32 nStartIndex, sal_Int32 n
if ( !implIsValidRange( nStartIndex, nEndIndex, implGetText().getLength() ) )
throw IndexOutOfBoundsException();
return sal_False;
return false;
}

View File

@@ -320,7 +320,7 @@ sal_Bool VCLXAccessibleTextComponent::setSelection( sal_Int32 nStartIndex, sal_I
if ( !implIsValidRange( nStartIndex, nEndIndex, implGetText().getLength() ) )
throw IndexOutOfBoundsException();
return sal_False;
return false;
}

View File

@@ -816,9 +816,9 @@ sal_Bool VCLXAccessibleToolBox::isAccessibleChildSelected( sal_Int32 nChildIndex
ToolBox * pToolBox = static_cast < ToolBox * > ( GetWindow() );
sal_uInt16 nPos = static_cast < sal_uInt16 > (nChildIndex);
if ( pToolBox != NULL && pToolBox->GetHighlightItemId() == pToolBox->GetItemId( nPos ) )
return sal_True;
return true;
else
return sal_False;
return false;
}
void VCLXAccessibleToolBox::clearAccessibleSelection( ) throw (RuntimeException, std::exception)

View File

@@ -441,7 +441,7 @@ sal_Bool SAL_CALL VCLXAccessibleToolBoxItem::setCaretPosition( sal_Int32 nIndex
if ( !implIsValidRange( nIndex, nIndex, implGetText().getLength() ) )
throw IndexOutOfBoundsException();
return sal_False;
return false;
}
Sequence< PropertyValue > SAL_CALL VCLXAccessibleToolBoxItem::getCharacterAttributes( sal_Int32 nIndex, const Sequence< OUString >& ) throw (IndexOutOfBoundsException, RuntimeException, std::exception)
@@ -503,7 +503,7 @@ sal_Bool SAL_CALL VCLXAccessibleToolBoxItem::setSelection( sal_Int32 nStartIndex
if ( !implIsValidRange( nStartIndex, nEndIndex, implGetText().getLength() ) )
throw IndexOutOfBoundsException();
return sal_False;
return false;
}
sal_Bool SAL_CALL VCLXAccessibleToolBoxItem::copyText( sal_Int32 nStartIndex, sal_Int32 nEndIndex ) throw (IndexOutOfBoundsException, RuntimeException, std::exception)
@@ -642,7 +642,7 @@ sal_Bool VCLXAccessibleToolBoxItem::doAccessibleAction ( sal_Int32 nIndex ) thro
if ( m_pToolBox )
m_pToolBox->TriggerItem( m_nItemId );
return sal_True;
return true;
}
OUString VCLXAccessibleToolBoxItem::getAccessibleActionDescription ( sal_Int32 nIndex ) throw (IndexOutOfBoundsException, RuntimeException, std::exception)