diff options
Diffstat (limited to 'sw/source/core/crsr/unocrsr.cxx')
-rw-r--r-- | sw/source/core/crsr/unocrsr.cxx | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/sw/source/core/crsr/unocrsr.cxx b/sw/source/core/crsr/unocrsr.cxx index 3dc6bc55c2..38bb7d314c 100644 --- a/sw/source/core/crsr/unocrsr.cxx +++ b/sw/source/core/crsr/unocrsr.cxx @@ -42,9 +42,9 @@ IMPL_FIXEDMEMPOOL_NEWDEL( SwUnoCrsr, 10, 10 ) SwUnoCrsr::SwUnoCrsr( const SwPosition &rPos, SwPaM* pRing ) : SwCursor( rPos, pRing, false ), SwModify( 0 ), - bRemainInSection( TRUE ), - bSkipOverHiddenSections( FALSE ), - bSkipOverProtectSections( FALSE ) + bRemainInSection( sal_True ), + bSkipOverHiddenSections( sal_False ), + bSkipOverProtectSections( sal_False ) {} @@ -63,7 +63,7 @@ SwUnoCrsr::~SwUnoCrsr() { // dann muss der Cursor aus dem Array ausgetragen werden SwUnoCrsrTbl& rTbl = (SwUnoCrsrTbl&)pDoc->GetUnoCrsrTbl(); - USHORT nDelPos = rTbl.GetPos( this ); + sal_uInt16 nDelPos = rTbl.GetPos( this ); if( USHRT_MAX != nDelPos ) rTbl.Remove( nDelPos ); @@ -113,7 +113,7 @@ bool SwUnoCrsr::IsReadOnlyAvailable() const } const SwCntntFrm* -SwUnoCrsr::DoSetBidiLevelLeftRight( BOOL &, BOOL, BOOL ) +SwUnoCrsr::DoSetBidiLevelLeftRight( sal_Bool &, sal_Bool, sal_Bool ) { return 0; // not for uno cursor } @@ -123,7 +123,7 @@ void SwUnoCrsr::DoSetBidiLevelUpDown() return; // not for uno cursor } -BOOL SwUnoCrsr::IsSelOvr( int eFlags ) +sal_Bool SwUnoCrsr::IsSelOvr( int eFlags ) { if( bRemainInSection ) { @@ -134,8 +134,8 @@ BOOL SwUnoCrsr::IsSelOvr( int eFlags ) *pNewSttNd = rPtIdx.GetNode().StartOfSectionNode(); if( pOldSttNd != pNewSttNd ) { - BOOL bMoveDown = GetSavePos()->nNode < rPtIdx.GetIndex(); - BOOL bValidPos = FALSE; + sal_Bool bMoveDown = GetSavePos()->nNode < rPtIdx.GetIndex(); + sal_Bool bValidPos = sal_False; // search the correct surrounded start node - which the index // can't leave. @@ -189,14 +189,14 @@ BOOL SwUnoCrsr::IsSelOvr( int eFlags ) } } else - bValidPos = TRUE; + bValidPos = sal_True; } while ( pInvalidNode ); } if( bValidPos ) { SwCntntNode* pCNd = GetCntntNode(); - USHORT nCnt = 0; + sal_uInt16 nCnt = 0; if( pCNd && !bMoveDown ) nCnt = pCNd->Len(); GetPoint()->nContent.Assign( pCNd, nCnt ); @@ -205,7 +205,7 @@ BOOL SwUnoCrsr::IsSelOvr( int eFlags ) { rPtIdx = GetSavePos()->nNode; GetPoint()->nContent.Assign( GetCntntNode(), GetSavePos()->nCntnt ); - return TRUE; + return sal_True; } } } @@ -218,7 +218,7 @@ BOOL SwUnoCrsr::IsSelOvr( int eFlags ) SwUnoTableCrsr::SwUnoTableCrsr(const SwPosition& rPos) : SwCursor(rPos,0,false), SwUnoCrsr(rPos), SwTableCursor(rPos), aTblSel(rPos,0,false) { - SetRemainInSection(FALSE); + SetRemainInSection(sal_False); } SwUnoTableCrsr::~SwUnoTableCrsr() @@ -227,9 +227,9 @@ SwUnoTableCrsr::~SwUnoTableCrsr() delete aTblSel.GetNext(); // und loeschen } -BOOL SwUnoTableCrsr::IsSelOvr( int eFlags ) +sal_Bool SwUnoTableCrsr::IsSelOvr( int eFlags ) { - BOOL bRet = SwUnoCrsr::IsSelOvr( eFlags ); + sal_Bool bRet = SwUnoCrsr::IsSelOvr( eFlags ); if( !bRet ) { const SwTableNode* pTNd = GetPoint()->nNode.GetNode().FindTableNode(); @@ -246,13 +246,13 @@ void SwUnoTableCrsr::MakeBoxSels() bool bMakeTblCrsrs = true; if( GetPoint()->nNode.GetIndex() && GetMark()->nNode.GetIndex() && 0 != ( pCNd = GetCntntNode() ) && pCNd->GetFrm() && - 0 != ( pCNd = GetCntntNode(FALSE) ) && pCNd->GetFrm() ) + 0 != ( pCNd = GetCntntNode(sal_False) ) && pCNd->GetFrm() ) bMakeTblCrsrs = GetDoc()->GetRootFrm()->MakeTblCrsrs( *this ); if ( !bMakeTblCrsrs ) { SwSelBoxes& rTmpBoxes = (SwSelBoxes&)GetBoxes(); - USHORT nCount = 0; + sal_uInt16 nCount = 0; while( nCount < rTmpBoxes.Count() ) DeleteBox( nCount ); } |