summaryrefslogtreecommitdiff
path: root/include/tools/multisel.hxx
diff options
context:
space:
mode:
authorNorbert Thiebaud <nthiebaud@gmail.com>2013-06-29 23:57:38 -0500
committerNorbert Thiebaud <nthiebaud@gmail.com>2013-06-30 04:58:49 +0000
commit710f41b7aec8e7d35a0da8be332aa289f98942af (patch)
treeb894ef2d3f06a63a85f423b2713a654ea57f9c69 /include/tools/multisel.hxx
parent1ca3beae12a7f222c987481e07a544845fc9fd46 (diff)
Clean String and sal_Bool in tools
Change-Id: I6a92196f33d7a5278c7dcc426112e9c56d582655 Reviewed-on: https://gerrit.libreoffice.org/4627 Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com> Tested-by: Norbert Thiebaud <nthiebaud@gmail.com>
Diffstat (limited to 'include/tools/multisel.hxx')
-rw-r--r--include/tools/multisel.hxx28
1 files changed, 14 insertions, 14 deletions
diff --git a/include/tools/multisel.hxx b/include/tools/multisel.hxx
index 8b5d434130fa..7e3d46325629 100644
--- a/include/tools/multisel.hxx
+++ b/include/tools/multisel.hxx
@@ -38,13 +38,13 @@ private:
sal_uIntPtr nCurSubSel; // index in aSels of current selected index
long nCurIndex; // current selected entry
sal_uIntPtr nSelCount; // number of selected indexes
- sal_Bool bInverseCur;// inverse cursor
- sal_Bool bCurValid; // are nCurIndex and nCurSubSel valid
- sal_Bool bSelectNew; // auto-select newly inserted indexes
+ bool bInverseCur;// inverse cursor
+ bool bCurValid; // are nCurIndex and nCurSubSel valid
+ bool bSelectNew; // auto-select newly inserted indexes
TOOLS_DLLPRIVATE void ImplClear();
TOOLS_DLLPRIVATE size_t ImplFindSubSelection( long nIndex ) const;
- TOOLS_DLLPRIVATE sal_Bool ImplMergeSubSelections( size_t nPos1, size_t nPos2 );
+ TOOLS_DLLPRIVATE bool ImplMergeSubSelections( size_t nPos1, size_t nPos2 );
TOOLS_DLLPRIVATE long ImplFwdUnselected();
public:
@@ -54,17 +54,17 @@ public:
~MultiSelection();
MultiSelection& operator= ( const MultiSelection& rOrig );
- sal_Bool operator== ( MultiSelection& rOrig );
- sal_Bool operator!= ( MultiSelection& rOrig )
+ bool operator== ( MultiSelection& rOrig );
+ bool operator!= ( MultiSelection& rOrig )
{ return !operator==( rOrig ); }
- sal_Bool operator !() const
+ bool operator !() const
{ return nSelCount == 0; }
- void SelectAll( sal_Bool bSelect = sal_True );
- sal_Bool Select( long nIndex, sal_Bool bSelect = sal_True );
- void Select( const Range& rIndexRange, sal_Bool bSelect = sal_True );
- sal_Bool IsSelected( long nIndex ) const;
- sal_Bool IsAllSelected() const
+ void SelectAll( bool bSelect = true );
+ bool Select( long nIndex, bool bSelect = true );
+ void Select( const Range& rIndexRange, bool bSelect = true );
+ bool IsSelected( long nIndex ) const;
+ bool IsAllSelected() const
{ return nSelCount == sal_uIntPtr(aTotRange.Len()); }
long GetSelectCount() const { return nSelCount; }
@@ -73,9 +73,9 @@ public:
void Remove( long nIndex );
const Range& GetTotalRange() const { return aTotRange; }
- sal_Bool IsCurValid() const { return bCurValid; }
+ bool IsCurValid() const { return bCurValid; }
long GetCurSelected() const { return nCurIndex; }
- long FirstSelected( sal_Bool bInverse = sal_False );
+ long FirstSelected( bool bInverse = false );
long LastSelected();
long NextSelected();