diff options
Diffstat (limited to 'sw/source/core/crsr/trvltbl.cxx')
-rw-r--r-- | sw/source/core/crsr/trvltbl.cxx | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/sw/source/core/crsr/trvltbl.cxx b/sw/source/core/crsr/trvltbl.cxx index 85452f10ae9f..f466c34e1ec1 100644 --- a/sw/source/core/crsr/trvltbl.cxx +++ b/sw/source/core/crsr/trvltbl.cxx @@ -2,7 +2,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -35,7 +35,7 @@ #include <crsrsh.hxx> #include <doc.hxx> #include <cntfrm.hxx> -#include <editsh.hxx> //EndAllAction gibts nur an der EditShell +#include <editsh.hxx> //EndAllAction gibts nur an der EditShell #include <pam.hxx> #include <swtable.hxx> #include <docary.hxx> @@ -60,7 +60,7 @@ BOOL SwCrsrShell::GoNextCell( BOOL bAppendLine ) if( IsTableMode() || 0 != ( pTblNd = IsCrsrInTbl() )) { SwCursor* pCrsr = pTblCrsr ? pTblCrsr : pCurCrsr; - SwCallLink aLk( *this ); // Crsr-Moves ueberwachen, + SwCallLink aLk( *this ); // Crsr-Moves ueberwachen, bRet = TRUE; // Check if we have to move the cursor to a covered cell before @@ -88,7 +88,7 @@ BOOL SwCrsrShell::GoNextCell( BOOL bAppendLine ) if( !aCellStt.GetNode().IsStartNode() ) { - if( pCrsr->HasMark() || !bAppendLine ) + if( pCrsr->HasMark() || !bAppendLine ) bRet = FALSE; else { @@ -111,7 +111,7 @@ BOOL SwCrsrShell::GoNextCell( BOOL bAppendLine ) } } if( bRet && 0 != ( bRet = pCrsr->GoNextCell() )) - UpdateCrsr(); // und den akt. Updaten + UpdateCrsr(); // und den akt. Updaten } return bRet; } @@ -124,10 +124,10 @@ BOOL SwCrsrShell::GoPrevCell() if( IsTableMode() || 0 != ( pTblNd = IsCrsrInTbl() )) { SwCursor* pCrsr = pTblCrsr ? pTblCrsr : pCurCrsr; - SwCallLink aLk( *this ); // Crsr-Moves ueberwachen, + SwCallLink aLk( *this ); // Crsr-Moves ueberwachen, bRet = pCrsr->GoPrevCell(); if( bRet ) - UpdateCrsr(); // und den akt. Updaten + UpdateCrsr(); // und den akt. Updaten } return bRet; } @@ -258,7 +258,7 @@ BOOL SwCrsrShell::_SelTblRowOrCol( bool bRow, bool bRowSimple ) if ( !bRow ) pTblCrsr->GetPtPos() = pMasterTabFrm->IsVertical() ? pMasterTabFrm->Frm().TopRight() : pMasterTabFrm->Frm().TopLeft(); - UpdateCrsr(); // und den akt. Updaten + UpdateCrsr(); // und den akt. Updaten return TRUE; } @@ -520,9 +520,9 @@ BOOL GotoPrevTable( SwPaM& rCurCrsr, SwPosTable fnPosTbl, 0 == ( pTblNd = aIdx.GetNode().StartOfSectionNode()->GetTableNode()) ) aIdx--; - if( pTblNd ) // gibt einen weiteren TableNode ? + if( pTblNd ) // gibt einen weiteren TableNode ? { - if( fnPosTbl == fnMoveForward ) // an Anfang ? + if( fnPosTbl == fnMoveForward ) // an Anfang ? { aIdx = *aIdx.GetNode().StartOfSectionNode(); if( !lcl_FindNextCell( aIdx, bInReadOnly )) @@ -573,9 +573,9 @@ BOOL GotoNextTable( SwPaM& rCurCrsr, SwPosTable fnPosTbl, while( aIdx.GetIndex() < nLastNd && 0 == ( pTblNd = aIdx.GetNode().GetTableNode()) ) aIdx++; - if( pTblNd ) // gibt einen weiteren TableNode ? + if( pTblNd ) // gibt einen weiteren TableNode ? { - if( fnPosTbl == fnMoveForward ) // an Anfang ? + if( fnPosTbl == fnMoveForward ) // an Anfang ? { if( !lcl_FindNextCell( aIdx, bInReadOnly )) { @@ -620,7 +620,7 @@ BOOL GotoCurrTable( SwPaM& rCurCrsr, SwPosTable fnPosTbl, return FALSE; SwTxtNode* pTxtNode = 0; - if( fnPosTbl == fnMoveBackward ) // ans Ende der Tabelle + if( fnPosTbl == fnMoveBackward ) // ans Ende der Tabelle { SwNodeIndex aIdx( *pTblNd->EndOfSectionNode() ); if( !lcl_FindPrevCell( aIdx, bInReadOnly )) @@ -652,7 +652,7 @@ BOOL SwCursor::MoveTable( SwWhichTable fnWhichTbl, SwPosTable fnPosTbl ) BOOL bRet = FALSE; SwTableCursor* pTblCrsr = dynamic_cast<SwTableCursor*>(this); - if( pTblCrsr || !HasMark() ) // nur wenn kein Mark oder ein TblCrsr + if( pTblCrsr || !HasMark() ) // nur wenn kein Mark oder ein TblCrsr { SwCrsrSaveState aSaveState( *this ); bRet = (*fnWhichTbl)( *this, fnPosTbl, IsReadOnlyAvailable() ) && @@ -664,14 +664,14 @@ BOOL SwCursor::MoveTable( SwWhichTable fnWhichTbl, SwPosTable fnPosTbl ) BOOL SwCrsrShell::MoveTable( SwWhichTable fnWhichTbl, SwPosTable fnPosTbl ) { - SwCallLink aLk( *this ); // Crsr-Moves ueberwachen, evt. Link callen + SwCallLink aLk( *this ); // Crsr-Moves ueberwachen, evt. Link callen SwShellCrsr* pCrsr = pTblCrsr ? pTblCrsr : pCurCrsr; BOOL bCheckPos, bRet; ULONG nPtNd = 0; xub_StrLen nPtCnt = 0; - if( !pTblCrsr && pCurCrsr->HasMark() ) // wenn Mark und kein TblCrsr, + if( !pTblCrsr && pCurCrsr->HasMark() ) // wenn Mark und kein TblCrsr, { // dann auf jedenfall in den Tabellen-Modus schalten pTblCrsr = new SwShellTableCrsr( *this, *pCurCrsr->GetPoint() ); @@ -693,7 +693,7 @@ BOOL SwCrsrShell::MoveTable( SwWhichTable fnWhichTbl, SwPosTable fnPosTbl ) if( bRet ) { //JP 28.10.97: Bug 45028 - die "oberste" Position setzen fuer - // wiederholte Kopfzeilen + // wiederholte Kopfzeilen pCrsr->GetPtPos() = Point(); UpdateCrsr(SwCrsrShell::SCROLLWIN|SwCrsrShell::CHKRANGE|SwCrsrShell::READONLY); @@ -720,7 +720,7 @@ BOOL SwCrsrShell::IsTblComplexForChart() { BOOL bRet = FALSE; - StartAction(); // IsTblComplexForChart() may trigger table formatting + StartAction(); // IsTblComplexForChart() may trigger table formatting // we better do that inside an action const SwTableNode* pTNd = pCurCrsr->GetPoint()->nNode.GetNode().FindTableNode(); @@ -787,7 +787,7 @@ String SwCrsrShell::GetBoxNms() const BOOL SwCrsrShell::GotoTable( const String& rName ) { - SwCallLink aLk( *this ); // Crsr-Moves ueberwachen, + SwCallLink aLk( *this ); // Crsr-Moves ueberwachen, BOOL bRet = !pTblCrsr && pCurCrsr->GotoTable( rName ); if( bRet ) { @@ -882,7 +882,7 @@ void SwCrsrShell::SaveTblBoxCntnt( const SwPosition* pPos ) if( pSttNd && pBoxIdx ) { if( pSttNd == &pBoxIdx->GetNode() ) - pSttNd = 0; // die haben wir schon + pSttNd = 0; // die haben wir schon else bCheckBox = TRUE; } |