diff options
Diffstat (limited to 'include/tools/multisel.hxx')
-rw-r--r-- | include/tools/multisel.hxx | 28 |
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(); |