summaryrefslogtreecommitdiff
path: root/sw/source/core/undo/unmove.cxx
diff options
context:
space:
mode:
authorPhilipp Riemer <ruderphilipp@gmail.com>2012-05-30 21:17:44 +0200
committerTor Lillqvist <tml@iki.fi>2012-05-30 23:45:10 +0300
commit4e22b45d383cdcb660bcc335322a4c4957b55b43 (patch)
tree75a7fb80b3d0b8e7a476b5e708861a17c194a64b /sw/source/core/undo/unmove.cxx
parentc4f0da46d90620585efddc6fb18c574581730d24 (diff)
Clean up and translate comments
Change-Id: I7ecc27535622d7ee63251005f0768ea3cb47623b
Diffstat (limited to 'sw/source/core/undo/unmove.cxx')
-rw-r--r--sw/source/core/undo/unmove.cxx18
1 files changed, 3 insertions, 15 deletions
diff --git a/sw/source/core/undo/unmove.cxx b/sw/source/core/undo/unmove.cxx
index 8bc5923bca2a..7d1b59c1f0dd 100644
--- a/sw/source/core/undo/unmove.cxx
+++ b/sw/source/core/undo/unmove.cxx
@@ -26,9 +26,7 @@
*
************************************************************************/
-
#include <UndoSplitMove.hxx>
-
#include <doc.hxx>
#include <IDocumentUndoRedo.hxx>
#include <pam.hxx>
@@ -37,9 +35,7 @@
#include <UndoCore.hxx>
#include <rolbck.hxx>
-
// MOVE
-
SwUndoMove::SwUndoMove( const SwPaM& rRange, const SwPosition& rMvPos )
: SwUndo( UNDO_MOVE ), SwUndRng( rRange ),
nMvDestNode( rMvPos.nNode.GetIndex() ),
@@ -91,7 +87,6 @@ SwUndoMove::SwUndoMove( const SwPaM& rRange, const SwPosition& rMvPos )
pHistory->CopyFmtAttr( *pTxtNd->GetpSwAttrSet(), nMvDestNode );
}
-
nFtnStt = pHistory->Count();
DelFtn( rRange );
@@ -99,7 +94,6 @@ SwUndoMove::SwUndoMove( const SwPaM& rRange, const SwPosition& rMvPos )
DELETEZ( pHistory );
}
-
SwUndoMove::SwUndoMove( SwDoc* pDoc, const SwNodeRange& rRg,
const SwNodeIndex& rMvPos )
: SwUndo( UNDO_MOVE ),
@@ -115,6 +109,7 @@ SwUndoMove::SwUndoMove( SwDoc* pDoc, const SwNodeRange& rRg,
nEndNode = rRg.aEnd.GetIndex();
// DelFtn( rRange );
+// FIXME: duplication of the method body of DelFtn below
// is the current move from CntntArea into the special section?
sal_uLong nCntntStt = pDoc->GetNodes().GetEndOfAutotext().GetIndex();
@@ -138,8 +133,6 @@ SwUndoMove::SwUndoMove( SwDoc* pDoc, const SwNodeRange& rRg,
nFtnStt = 0;
}
-
-
void SwUndoMove::SetDestRange( const SwPaM& rRange,
const SwPosition& rInsPos,
sal_Bool bJoin, sal_Bool bCorrPam )
@@ -169,7 +162,6 @@ void SwUndoMove::SetDestRange( const SwPaM& rRange,
bJoinPrev = bJoin;
}
-
void SwUndoMove::SetDestRange( const SwNodeIndex& rStt,
const SwNodeIndex& rEnd,
const SwNodeIndex& rInsPos )
@@ -186,7 +178,6 @@ void SwUndoMove::SetDestRange( const SwNodeIndex& rStt,
nDestSttCntnt = nDestEndCntnt = nInsPosCntnt = STRING_MAXLEN;
}
-
void SwUndoMove::UndoImpl(::sw::UndoRedoContext & rContext)
{
SwDoc *const pDoc = & rContext.GetDoc();
@@ -212,8 +203,8 @@ void SwUndoMove::UndoImpl(::sw::UndoRedoContext & rContext)
SwPaM aPam( aIdx.GetNode(), nDestSttCntnt,
*pDoc->GetNodes()[ nDestEndNode ], nDestEndCntnt );
- // #i17764# if redlines are to be moved, we may not remove them before
- // pDoc->Move gets a chance to handle them
+ // #i17764# if redlines are to be moved, we may not remove them
+ // before pDoc->Move gets a chance to handle them
if( ! bMoveRedlines )
RemoveIdxFromRange( aPam, sal_False );
@@ -236,7 +227,6 @@ void SwUndoMove::UndoImpl(::sw::UndoRedoContext & rContext)
aPam.Exchange();
aPam.DeleteMark();
-// pDoc->ResetAttr( aPam, sal_False );
if( aPam.GetNode()->IsCntntNode() )
aPam.GetNode()->GetCntntNode()->ResetAllAttr();
// the Pam will be dropped now
@@ -281,7 +271,6 @@ void SwUndoMove::UndoImpl(::sw::UndoRedoContext & rContext)
}
}
-
void SwUndoMove::RedoImpl(::sw::UndoRedoContext & rContext)
{
SwPaM *const pPam = & AddUndoRedoPaM(rContext);
@@ -334,7 +323,6 @@ void SwUndoMove::RedoImpl(::sw::UndoRedoContext & rContext)
}
}
-
void SwUndoMove::DelFtn( const SwPaM& rRange )
{
// is the current move from CntntArea into the special section?