diff options
author | Noel Grandin <noel@peralex.com> | 2014-03-19 12:54:33 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-03-24 08:12:07 +0200 |
commit | 9f12e4a351cdaf7d22bf1699914cd58e3642e808 (patch) | |
tree | 56e5cc1c2bfa0dd2438867bf1eadef055e031e63 /svtools/source/brwbox/brwbox3.cxx | |
parent | 83d807ba78bfc0b1648e0b574af0d490352bc469 (diff) |
svtools: sal_Bool->bool
Change-Id: Ic765d1a28960dbeca9501852b5e84cfdfe6ac47e
Diffstat (limited to 'svtools/source/brwbox/brwbox3.cxx')
-rw-r--r-- | svtools/source/brwbox/brwbox3.cxx | 33 |
1 files changed, 16 insertions, 17 deletions
diff --git a/svtools/source/brwbox/brwbox3.cxx b/svtools/source/brwbox/brwbox3.cxx index 91720a3dfdf9..1d7d3d15a9aa 100644 --- a/svtools/source/brwbox/brwbox3.cxx +++ b/svtools/source/brwbox/brwbox3.cxx @@ -168,7 +168,7 @@ Reference< XAccessible > BrowseBox::CreateAccessibleControl( sal_Int32 ) // Conversions ---------------------------------------------------------------- -sal_Bool BrowseBox::ConvertPointToCellAddress( +bool BrowseBox::ConvertPointToCellAddress( sal_Int32& rnRow, sal_uInt16& rnColumnPos, const Point& rPoint ) { //! TODO has to be checked @@ -178,7 +178,7 @@ sal_Bool BrowseBox::ConvertPointToCellAddress( } -sal_Bool BrowseBox::ConvertPointToRowHeader( sal_Int32& rnRow, const Point& rPoint ) +bool BrowseBox::ConvertPointToRowHeader( sal_Int32& rnRow, const Point& rPoint ) { rnRow = GetRowAtYPosPixel(rPoint.Y()); // sal_uInt16 nColumnId = GetColumnAtXPosPixel(rPoint.X()); @@ -186,19 +186,19 @@ sal_Bool BrowseBox::ConvertPointToRowHeader( sal_Int32& rnRow, const Point& rPoi } -sal_Bool BrowseBox::ConvertPointToColumnHeader( sal_uInt16& _rnColumnPos, const Point& _rPoint ) +bool BrowseBox::ConvertPointToColumnHeader( sal_uInt16& _rnColumnPos, const Point& _rPoint ) { _rnColumnPos = GetColumnAtXPosPixel(_rPoint.X()); return _rnColumnPos != BROWSER_INVALIDID; } -sal_Bool BrowseBox::ConvertPointToControlIndex( sal_Int32& _rnIndex, const Point& _rPoint ) +bool BrowseBox::ConvertPointToControlIndex( sal_Int32& _rnIndex, const Point& _rPoint ) { //! TODO has to be checked sal_Int32 nRow = 0; sal_uInt16 nColumn = 0; - sal_Bool bRet = ConvertPointToCellAddress(nRow,nColumn,_rPoint); + bool bRet = ConvertPointToCellAddress(nRow,nColumn,_rPoint); if ( bRet ) _rnIndex = nRow * ColCount() + nColumn; @@ -450,31 +450,30 @@ sal_uInt16 BrowseBox::GetCurrColumn() const return GetColumnPos( GetCurColumnId() ); } -sal_Bool BrowseBox::HasRowHeader() const +bool BrowseBox::HasRowHeader() const { return ( GetColumnId( 0 ) == HandleColumnId ); // HandleColumn == RowHeader } -sal_Bool BrowseBox::IsCellFocusable() const +bool BrowseBox::IsCellFocusable() const { - return sal_True; + return true; } -sal_Bool BrowseBox::GoToCell( sal_Int32 _nRow, sal_uInt16 _nColumn ) +bool BrowseBox::GoToCell( sal_Int32 _nRow, sal_uInt16 _nColumn ) { return GoToRowColumnId( _nRow, GetColumnId( _nColumn ) ); } -void BrowseBox::SelectColumn( sal_uInt16 _nColumn, sal_Bool _bSelect ) +void BrowseBox::SelectColumn( sal_uInt16 _nColumn, bool _bSelect ) { SelectColumnPos( _nColumn, _bSelect ); } -sal_Bool BrowseBox::IsColumnSelected( long _nColumn ) const +bool BrowseBox::IsColumnSelected( long _nColumn ) const { - return ( pColSel && (0 <= _nColumn) && (_nColumn <= 0xFFF) ) ? - pColSel->IsSelected( static_cast< sal_uInt16 >( _nColumn ) ) : - sal_False; + return ( pColSel && (0 <= _nColumn) && (_nColumn <= 0xFFF) ) && + pColSel->IsSelected( static_cast< sal_uInt16 >( _nColumn ) ); } sal_Int32 BrowseBox::GetSelectedRowCount() const @@ -527,7 +526,7 @@ void BrowseBox::GetAllSelectedColumns( ::com::sun::star::uno::Sequence< sal_Int3 } } -sal_Bool BrowseBox::IsCellVisible( sal_Int32 _nRow, sal_uInt16 _nColumnPos ) const +bool BrowseBox::IsCellVisible( sal_Int32 _nRow, sal_uInt16 _nColumnPos ) const { return IsFieldVisible( _nRow, GetColumnId( _nColumnPos ) ); } @@ -538,7 +537,7 @@ OUString BrowseBox::GetAccessibleCellText(long _nRow, sal_uInt16 _nColPos) const } -sal_Bool BrowseBox::GetGlyphBoundRects( const Point& rOrigin, const OUString& rStr, int nIndex, int nLen, int nBase, MetricVector& rVector ) +bool BrowseBox::GetGlyphBoundRects( const Point& rOrigin, const OUString& rStr, int nIndex, int nLen, int nBase, MetricVector& rVector ) { return Control::GetGlyphBoundRects( rOrigin, rStr, nIndex, nLen, nBase, rVector ); } @@ -553,7 +552,7 @@ void BrowseBox::GrabFocus() Control::GrabFocus(); } -Reference< XAccessible > BrowseBox::GetAccessible( sal_Bool bCreate ) +Reference< XAccessible > BrowseBox::GetAccessible( bool bCreate ) { return Control::GetAccessible( bCreate ); } |