diff options
Diffstat (limited to 'sw/source/core/undo/undel.cxx')
-rw-r--r-- | sw/source/core/undo/undel.cxx | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/sw/source/core/undo/undel.cxx b/sw/source/core/undo/undel.cxx index c8ab7076b826..480d9243f8b3 100644 --- a/sw/source/core/undo/undel.cxx +++ b/sw/source/core/undo/undel.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 @@ -38,7 +38,7 @@ #include <fmtanchr.hxx> #include <doc.hxx> #include <swtable.hxx> -#include <swundo.hxx> // fuer die UndoIds +#include <swundo.hxx> // fuer die UndoIds #include <pam.hxx> #include <ndtxt.hxx> #include <undobj.hxx> @@ -179,7 +179,7 @@ SwUndoDelete::SwUndoDelete( SwPaM& rPam, BOOL bFullPara, BOOL bCalledByTblCpy ) pHistory->Add( pSttTxtNd->GetTxtColl(),pStt->nNode.GetIndex(), ND_TEXTNODE ); pHistory->Add( pEndTxtNd->GetTxtColl(),pEnd->nNode.GetIndex(), ND_TEXTNODE ); - if( !bJoinNext ) // Selection von Unten nach Oben + if( !bJoinNext ) // Selection von Unten nach Oben { // Beim JoinPrev() werden die AUTO-PageBreak's richtig // kopiert. Um diese beim Undo wieder herzustellen, muss das @@ -207,14 +207,14 @@ SwUndoDelete::SwUndoDelete( SwPaM& rPam, BOOL bFullPara, BOOL bCalledByTblCpy ) if( !pSttTxtNd && !pEndTxtNd ) rPam.GetPoint()->nNode--; - rPam.DeleteMark(); // der SPoint ist aus dem Bereich + rPam.DeleteMark(); // der SPoint ist aus dem Bereich if( !pEndTxtNd ) nEndCntnt = 0; if( !pSttTxtNd ) nSttCntnt = 0; - if( bMoveNds ) // sind noch Nodes zu verschieben ? + if( bMoveNds ) // sind noch Nodes zu verschieben ? { SwNodes& rNds = (SwNodes&)*pDoc->GetUndoNds(); SwNodes& rDocNds = pDoc->GetNodes(); @@ -302,7 +302,7 @@ SwUndoDelete::SwUndoDelete( SwPaM& rPam, BOOL bFullPara, BOOL bCalledByTblCpy ) nNode = rNds.GetEndOfContent().GetIndex(); rDocNds._MoveNodes( aRg, rNds, SwNodeIndex( rNds.GetEndOfContent() )); pMvStt = new SwNodeIndex( rNds, nNode ); - nNode = rNds.GetEndOfContent().GetIndex() - nNode; // Differenz merken ! + nNode = rNds.GetEndOfContent().GetIndex() - nNode; // Differenz merken ! if( pSttTxtNd && pEndTxtNd ) { //Step 4: Moving around sections @@ -329,7 +329,7 @@ SwUndoDelete::SwUndoDelete( SwPaM& rPam, BOOL bFullPara, BOOL bCalledByTblCpy ) bJoinNext ? pEndTxtNd->GetIndex() : pSttTxtNd->GetIndex() ); } else - nNode = 0; // kein Node verschoben -> keine Differenz zum Ende + nNode = 0; // kein Node verschoben -> keine Differenz zum Ende // wurden davor noch Nodes geloescht ?? (FootNotes haben ContentNodes!) if( !pSttTxtNd && !pEndTxtNd ) @@ -521,7 +521,7 @@ SwUndoDelete::~SwUndoDelete() { delete pSttStr; delete pEndStr; - if( pMvStt ) // loesche noch den Bereich aus dem UndoNodes Array + if( pMvStt ) // loesche noch den Bereich aus dem UndoNodes Array { // Insert speichert den Inhalt in der IconSection pMvStt->GetNode().GetNodes().Delete( *pMvStt, nNode ); @@ -658,7 +658,7 @@ void SwUndoDelete::Undo( SwUndoIter& rUndoIter ) SwNodeIndex aIdx( pDoc->GetNodes(), nCalcStt ); SwNode* pInsNd = &aIdx.GetNode(); - { // Block, damit der SwPosition beim loeschen vom Node + { // Block, damit der SwPosition beim loeschen vom Node // abgemeldet ist SwPosition aPos( aIdx ); if( !bDelFullPara ) @@ -676,11 +676,11 @@ void SwUndoDelete::Undo( SwUndoIter& rUndoIter ) if( pInsNd->IsCntntNode() ) aPos.nContent.Assign( (SwCntntNode*)pInsNd, nSttCntnt ); if( !bTblDelLastNd ) - pInsNd = 0; // Node nicht loeschen !! + pInsNd = 0; // Node nicht loeschen !! } } else - pInsNd = 0; // Node nicht loeschen !! + pInsNd = 0; // Node nicht loeschen !! SwNodes* pUNds = (SwNodes*)pDoc->GetUndoNds(); BOOL bNodeMove = 0 != nNode; @@ -801,7 +801,7 @@ void SwUndoDelete::Undo( SwUndoIter& rUndoIter ) pTxtNd->ClearSwpHintsArr( true ); // SectionNode-Modus und von oben nach unten selektiert: - // -> im StartNode steht noch der Rest vom Join => loeschen + // -> im StartNode steht noch der Rest vom Join => loeschen aPos.nContent.Assign( pTxtNd, nSttCntnt ); pTxtNd->InsertText( *pSttStr, aPos.nContent, IDocumentContentOperations::INS_NOHINTEXPAND ); @@ -813,7 +813,7 @@ void SwUndoDelete::Undo( SwUndoIter& rUndoIter ) if( pHistory ) { pHistory->TmpRollback( pDoc, nSetPos, false ); - if( nSetPos ) // es gab Fussnoten/FlyFrames + if( nSetPos ) // es gab Fussnoten/FlyFrames { // gibts ausser diesen noch andere ? if( nSetPos < pHistory->Count() ) @@ -850,7 +850,7 @@ void SwUndoDelete::Undo( SwUndoIter& rUndoIter ) if( pRedlSaveData ) SetSaveData( *pDoc, *pRedlSaveData ); - pDoc->DoUndo( bUndo ); // Undo wieder einschalten + pDoc->DoUndo( bUndo ); // Undo wieder einschalten SetPaM( rUndoIter, TRUE ); } |