summaryrefslogtreecommitdiff
path: root/sw/source/core/undo
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/core/undo')
-rw-r--r--sw/source/core/undo/SwRewriter.cxx2
-rw-r--r--sw/source/core/undo/SwUndoField.cxx2
-rw-r--r--sw/source/core/undo/SwUndoFmt.cxx2
-rw-r--r--sw/source/core/undo/SwUndoPageDesc.cxx2
-rw-r--r--sw/source/core/undo/SwUndoTOXChange.cxx4
-rw-r--r--sw/source/core/undo/docundo.cxx46
-rw-r--r--sw/source/core/undo/rolbck.cxx30
-rw-r--r--sw/source/core/undo/unattr.cxx16
-rw-r--r--sw/source/core/undo/unbkmk.cxx6
-rw-r--r--sw/source/core/undo/undel.cxx28
-rw-r--r--sw/source/core/undo/undo.hrc130
-rw-r--r--sw/source/core/undo/undo.src2
-rw-r--r--sw/source/core/undo/undobj.cxx46
-rw-r--r--sw/source/core/undo/undobj1.cxx26
-rw-r--r--sw/source/core/undo/undoflystrattr.cxx2
-rw-r--r--sw/source/core/undo/undraw.cxx10
-rw-r--r--sw/source/core/undo/unfmco.cxx6
-rw-r--r--sw/source/core/undo/unins.cxx18
-rw-r--r--sw/source/core/undo/unmove.cxx18
-rw-r--r--sw/source/core/undo/unnum.cxx24
-rw-r--r--sw/source/core/undo/unoutl.cxx4
-rw-r--r--sw/source/core/undo/unovwr.cxx18
-rw-r--r--sw/source/core/undo/unredln.cxx16
-rw-r--r--sw/source/core/undo/unsect.cxx4
-rw-r--r--sw/source/core/undo/unsort.cxx10
-rw-r--r--sw/source/core/undo/unspnd.cxx2
-rw-r--r--sw/source/core/undo/untbl.cxx52
-rw-r--r--sw/source/core/undo/untblk.cxx16
28 files changed, 271 insertions, 271 deletions
diff --git a/sw/source/core/undo/SwRewriter.cxx b/sw/source/core/undo/SwRewriter.cxx
index f26b663e7de8..9db43b4ee85b 100644
--- a/sw/source/core/undo/SwRewriter.cxx
+++ b/sw/source/core/undo/SwRewriter.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
diff --git a/sw/source/core/undo/SwUndoField.cxx b/sw/source/core/undo/SwUndoField.cxx
index 24607494d7de..7bb38c30d814 100644
--- a/sw/source/core/undo/SwUndoField.cxx
+++ b/sw/source/core/undo/SwUndoField.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
diff --git a/sw/source/core/undo/SwUndoFmt.cxx b/sw/source/core/undo/SwUndoFmt.cxx
index f054abe32e71..d123f7514b28 100644
--- a/sw/source/core/undo/SwUndoFmt.cxx
+++ b/sw/source/core/undo/SwUndoFmt.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
diff --git a/sw/source/core/undo/SwUndoPageDesc.cxx b/sw/source/core/undo/SwUndoPageDesc.cxx
index bb80176b7e6f..893cb248bf7a 100644
--- a/sw/source/core/undo/SwUndoPageDesc.cxx
+++ b/sw/source/core/undo/SwUndoPageDesc.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
diff --git a/sw/source/core/undo/SwUndoTOXChange.cxx b/sw/source/core/undo/SwUndoTOXChange.cxx
index f4f55422e809..a6d56fce5ad0 100644
--- a/sw/source/core/undo/SwUndoTOXChange.cxx
+++ b/sw/source/core/undo/SwUndoTOXChange.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
@@ -46,7 +46,7 @@ void SwUndoTOXChange::UpdateTOXBaseSection()
if (pTOX->ISA(SwTOXBaseSection))
{
SwTOXBaseSection * pTOXBase = static_cast<SwTOXBaseSection *>(pTOX);
-
+
pTOXBase->Update();
pTOXBase->UpdatePageNum();
}
diff --git a/sw/source/core/undo/docundo.cxx b/sw/source/core/undo/docundo.cxx
index 79f0ac2adfc9..ec1c0e68750f 100644
--- a/sw/source/core/undo/docundo.cxx
+++ b/sw/source/core/undo/docundo.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 <doc.hxx>
#include <pam.hxx>
#include <ndtxt.hxx>
-#include <swundo.hxx> // fuer die UndoIds
+#include <swundo.hxx> // fuer die UndoIds
#include <undobj.hxx>
#include <rolbck.hxx>
#include <docary.hxx>
@@ -45,7 +45,7 @@
using namespace ::com::sun::star;
-USHORT SwDoc::nUndoActions = UNDO_ACTION_COUNT; // anzahl von Undo-Action
+USHORT SwDoc::nUndoActions = UNDO_ACTION_COUNT; // anzahl von Undo-Action
// the undo array should never grow beyond this limit:
#define UNDO_ACTION_LIMIT (USHRT_MAX - 1000)
@@ -161,10 +161,10 @@ void SwDoc::AppendUndo( SwUndo* pUndo )
++nUndoPos;
switch( pUndo->GetId() )
{
- case UNDO_START: ++nUndoSttEnd;
+ case UNDO_START: ++nUndoSttEnd;
break;
- case UNDO_END: OSL_ENSURE( nUndoSttEnd, "Undo-Ende ohne Start" );
+ case UNDO_END: OSL_ENSURE( nUndoSttEnd, "Undo-Ende ohne Start" );
--nUndoSttEnd;
// kein break !!!
default:
@@ -191,9 +191,9 @@ void SwDoc::AppendUndo( SwUndo* pUndo )
return;
// folgende Array-Grenzen muessen ueberwacht werden:
- // - Undo, Grenze: fester Wert oder USHRT_MAX - 1000
- // - UndoNodes, Grenze: USHRT_MAX - 1000
- // - AttrHistory Grenze: USHRT_MAX - 1000
+ // - Undo, Grenze: fester Wert oder USHRT_MAX - 1000
+ // - UndoNodes, Grenze: USHRT_MAX - 1000
+ // - AttrHistory Grenze: USHRT_MAX - 1000
// (defined in UNDO_ACTION_LIMIT at the top of this file)
USHORT nEnde = UNDO_ACTION_LIMIT;
@@ -237,7 +237,7 @@ void SwDoc::ClearRedo()
{
if( DoesUndo() && nUndoPos != pUndos->Count() )
{
-//?? why ?? if( !nUndoSttEnd )
+//?? why ?? if( !nUndoSttEnd )
{
// setze UndoCnt auf den neuen Wert
SwUndo* pUndo;
@@ -285,11 +285,11 @@ void SwDoc::DelAllUndoObj()
// loescht alle UndoObjecte vom Anfang bis zum angegebenen Ende
BOOL SwDoc::DelUndoObj( USHORT nEnde )
{
- if( !nEnde ) // sollte mal 0 uebergeben werden,
+ if( !nEnde ) // sollte mal 0 uebergeben werden,
{
if( !pUndos->Count() )
return FALSE;
- ++nEnde; // dann korrigiere es auf 1
+ ++nEnde; // dann korrigiere es auf 1
}
DoUndo( FALSE );
@@ -313,8 +313,8 @@ BOOL SwDoc::DelUndoObj( USHORT nEnde )
"Undo-Del-Ende liegt in einer Redo-Aktion" );
// dann setze ab Ende bis Undo-Ende bei allen Undo-Objecte die Werte um
- nSttEndCnt = nCnt; // Position merken
- if( nUndoSavePos < nSttEndCnt ) // SavePos wird aufgegeben
+ nSttEndCnt = nCnt; // Position merken
+ if( nUndoSavePos < nSttEndCnt ) // SavePos wird aufgegeben
nUndoSavePos = USHRT_MAX;
else if( nUndoSavePos != USHRT_MAX )
nUndoSavePos = nUndoSavePos - nSttEndCnt;
@@ -387,7 +387,7 @@ bool SwDoc::Undo( SwUndoIter& rUndoIter )
// zum spaeteren ueberpruefen
SwUndoId nAktId = pUndo->GetId();
//JP 11.05.98: FlyFormate ueber die EditShell selektieren, nicht aus dem
- // Undo heraus
+ // Undo heraus
switch( nAktId )
{
case UNDO_START:
@@ -416,10 +416,10 @@ bool SwDoc::Undo( SwUndoIter& rUndoIter )
--nUndoPos;
// JP 29.10.96: Start und End setzen kein Modify-Flag.
- // Sonst gibt es Probleme mit der autom. Aufnahme von Ausnahmen
- // bei der Autokorrektur
+ // Sonst gibt es Probleme mit der autom. Aufnahme von Ausnahmen
+ // bei der Autokorrektur
if( UNDO_START != nAktId && UNDO_END != nAktId )
- SetModified(); // default: immer setzen, kann zurueck gesetzt werden
+ SetModified(); // default: immer setzen, kann zurueck gesetzt werden
// ist die History leer und wurde nicht wegen Speichermangel
// verworfen, so kann das Dokument als unveraendert gelten
@@ -489,7 +489,7 @@ SwUndoId SwDoc::EndUndo(SwUndoId eUndoId, const SwRewriter * pRewriter)
while( nSize )
if( UNDO_START == ( nId = (pUndo = (*pUndos)[ --nSize ] )->GetId()) &&
!((SwUndoStart*)pUndo)->GetEndOffset() )
- break; // Start gefunden
+ break; // Start gefunden
if( nId != UNDO_START )
{
@@ -558,7 +558,7 @@ SwUndoId SwDoc::EndUndo(SwUndoId eUndoId, const SwRewriter * pRewriter)
if( !nEndCnt ) // falls mal ein Start ohne Ende vorhanden ist
continue;
--nEndCnt;
- if( !nEndCnt ) // hier ist der Anfang
+ if( !nEndCnt ) // hier ist der Anfang
break;
}
else if( UNDO_END == nTmpId )
@@ -826,7 +826,7 @@ bool SwDoc::Redo( SwUndoIter& rUndoIter )
SetRedlineMode_intern( (RedlineMode_t)(eTmpMode | nsRedlineMode_t::REDLINE_IGNORE));
//JP 11.05.98: FlyFormate ueber die EditShell selektieren, nicht aus dem
- // Undo heraus
+ // Undo heraus
if( UNDO_START != pUndo->GetId() && UNDO_END != pUndo->GetId() )
rUndoIter.ClearSelections();
@@ -936,7 +936,7 @@ bool SwDoc::Repeat( SwUndoIter& rUndoIter, sal_uInt16 nRepeatCnt )
SwPaM* pTmpCrsr = rUndoIter.pAktPam;
SwUndoId nId = UNDO_EMPTY;
- if( pTmpCrsr != pTmpCrsr->GetNext() || !bOneUndo ) // Undo-Klammerung aufbauen
+ if( pTmpCrsr != pTmpCrsr->GetNext() || !bOneUndo ) // Undo-Klammerung aufbauen
{
if (pUndo->GetId() == UNDO_END)
{
@@ -948,12 +948,12 @@ bool SwDoc::Repeat( SwUndoIter& rUndoIter, sal_uInt16 nRepeatCnt )
StartUndo( nId, NULL );
}
- do { // dann durchlaufe mal den gesamten Ring
+ do { // dann durchlaufe mal den gesamten Ring
for( USHORT nRptCnt = nRepeatCnt; nRptCnt > 0; --nRptCnt )
{
rUndoIter.pLastUndoObj = 0;
for( USHORT nCnt = nSize; nCnt < nEndCnt; ++nCnt )
- (*pUndos)[ nCnt ]->Repeat( rUndoIter ); // Repeat ausfuehren
+ (*pUndos)[ nCnt ]->Repeat( rUndoIter ); // Repeat ausfuehren
}
} while( pTmpCrsr !=
( rUndoIter.pAktPam = (SwPaM*)rUndoIter.pAktPam->GetNext() ));
diff --git a/sw/source/core/undo/rolbck.cxx b/sw/source/core/undo/rolbck.cxx
index 43418fb58a98..4214c1c22abb 100644
--- a/sw/source/core/undo/rolbck.cxx
+++ b/sw/source/core/undo/rolbck.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
@@ -49,16 +49,16 @@
#include <ftnidx.hxx>
#include <doc.hxx> // SwDoc.GetNodes()
#include <docary.hxx>
-#include <ndtxt.hxx> // SwTxtNode
-#include <paratr.hxx> //
-#include <cellatr.hxx> //
-#include <fldbas.hxx> // fuer Felder
-#include <pam.hxx> // fuer SwPaM
+#include <ndtxt.hxx> // SwTxtNode
+#include <paratr.hxx> //
+#include <cellatr.hxx> //
+#include <fldbas.hxx> // fuer Felder
+#include <pam.hxx> // fuer SwPaM
#include <swtable.hxx>
#include <rolbck.hxx>
-#include <ndgrf.hxx> // SwGrfNode
-#include <undobj.hxx> // fuer UndoDelete
-#include <IMark.hxx> // fuer SwBookmark
+#include <ndgrf.hxx> // SwGrfNode
+#include <undobj.hxx> // fuer UndoDelete
+#include <IMark.hxx> // fuer SwBookmark
#include <charfmt.hxx> // #i27615#
#include <comcore.hrc>
#include <tools/resid.hxx>
@@ -747,8 +747,8 @@ SwHistorySetAttrSet::SwHistorySetAttrSet( const SfxItemSet& rSet,
case RES_BOXATR_FORMULA:
{
//JP 20.04.98: Bug 49502 - wenn eine Formel gesetzt ist, nie den
- // Value mit sichern. Der muss gegebenfalls neu
- // errechnet werden!
+ // Value mit sichern. Der muss gegebenfalls neu
+ // errechnet werden!
//JP 30.07.98: Bug 54295 - Formeln immer im Klartext speichern
m_OldSet.ClearItem( RES_BOXATR_VALUE );
@@ -1039,7 +1039,7 @@ SwHistory::~SwHistory()
|*
|* void SwHistory::Add()
|*
-|* Beschreibung Dokument 1.0
+|* Beschreibung Dokument 1.0
|* Ersterstellung JP 18.02.91
|* Letzte Aenderung JP 18.02.91
|*
@@ -1195,7 +1195,7 @@ void SwHistory::Add(const SfxItemSet & rSet, const SwCharFmt & rFmt)
|*
|* BOOL SwHistory::Rollback()
|*
-|* Beschreibung Dokument 1.0
+|* Beschreibung Dokument 1.0
|* Ersterstellung JP 18.02.91
|* Letzte Aenderung JP 18.02.91
|*
@@ -1314,7 +1314,7 @@ void SwHistory::CopyAttr( SwpHints* pHts, ULONG nNodeIdx,
pHt = pHts->GetTextHint(n);
nAttrStt = *pHt->GetStart();
// JP: ???? wieso nAttrStt >= nEnd
-// if( 0 != ( pEndIdx = pHt->GetEnd() ) && nAttrStt >= nEnd )
+// if( 0 != ( pEndIdx = pHt->GetEnd() ) && nAttrStt >= nEnd )
if( 0 != ( pEndIdx = pHt->GetEnd() ) && nAttrStt > nEnd )
break;
@@ -1341,7 +1341,7 @@ void SwHistory::CopyAttr( SwpHints* pHts, ULONG nNodeIdx,
{
if ( nEnd > nAttrStt
// JP: ???? wieso nAttrStt >= nEnd
-// || (nEnd == nAttrStt && (!pEndIdx || nEnd == pEndIdx->GetIndex()))
+// || (nEnd == nAttrStt && (!pEndIdx || nEnd == pEndIdx->GetIndex()))
)
{
Add( pHt, nNodeIdx, false );
diff --git a/sw/source/core/undo/unattr.cxx b/sw/source/core/undo/unattr.cxx
index 01bd9f37256c..959fbbfb2748 100644
--- a/sw/source/core/undo/unattr.cxx
+++ b/sw/source/core/undo/unattr.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
@@ -49,7 +49,7 @@
#include <ftnidx.hxx>
#include <doc.hxx>
#include <docary.hxx>
-#include <swundo.hxx> // fuer die UndoIds
+#include <swundo.hxx> // fuer die UndoIds
#include <pam.hxx>
#include <ndtxt.hxx>
#include <swtable.hxx>
@@ -378,8 +378,8 @@ void SwUndoFmtAttr::Repeat( SwUndoIter& rUndoIter)
}
break;
-// case RES_CHRFMT:
-// case RES_FRMFMT:
+// case RES_CHRFMT:
+// case RES_FRMFMT:
case RES_FLYFRMFMT:
{
@@ -444,12 +444,12 @@ void SwUndoFmtAttr::SaveFlyAnchor( bool bSvDrwPt )
// store old value as attribute, to keep SwUndoFmtAttr small
m_pOldSet->Put( SwFmtFrmSize( ATT_VAR_SIZE, aPt.X(), aPt.Y() ) );
}
-/* else
+/* else
{
pOldSet->Put( pFmt->GetVertOrient() );
pOldSet->Put( pFmt->GetHoriOrient() );
}
-*/ }
+*/ }
const SwFmtAnchor& rAnchor =
static_cast<const SwFmtAnchor&>( m_pOldSet->Get( RES_ANCHOR, FALSE ) );
@@ -535,7 +535,7 @@ bool SwUndoFmtAttr::RestoreFlyAnchor( SwUndoIter& rIter )
// den akt. wieder zwischenspeichern
aDrawOldPt = pFrmFmt->FindSdrObject()->GetRelativePos();
//JP 08.10.97: ist laut AMA/MA nicht mehr noetig
-// pCont->DisconnectFromLayout();
+// pCont->DisconnectFromLayout();
}
else
{
@@ -595,7 +595,7 @@ bool SwUndoFmtAttr::RestoreFlyAnchor( SwUndoIter& rIter )
// Darum verhinder hier, das durch setzen des Ankers das
// Contact-Object seine Position aendert.
//JP 08.10.97: ist laut AMA/MA nicht mehr noetig
-// pCont->ConnectToLayout();
+// pCont->ConnectToLayout();
SdrObject* pObj = pCont->GetMaster();
if( pCont->GetAnchorFrm() && !pObj->IsInserted() )
diff --git a/sw/source/core/undo/unbkmk.cxx b/sw/source/core/undo/unbkmk.cxx
index 8382444d6a5f..817f5d242ac5 100644
--- a/sw/source/core/undo/unbkmk.cxx
+++ b/sw/source/core/undo/unbkmk.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
@@ -32,7 +32,7 @@
#include "doc.hxx"
#include "docary.hxx"
-#include "swundo.hxx" // fuer die UndoIds
+#include "swundo.hxx" // fuer die UndoIds
#include "pam.hxx"
#include "undobj.hxx"
@@ -87,7 +87,7 @@ SwRewriter SwUndoBookmark::GetRewriter() const
return aResult;
}
-//----------------------------------------------------------------------
+//----------------------------------------------------------------------
SwUndoInsBookmark::SwUndoInsBookmark( const ::sw::mark::IMark& rBkmk )
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 );
}
diff --git a/sw/source/core/undo/undo.hrc b/sw/source/core/undo/undo.hrc
index 8edccd344adf..707ff307be48 100644
--- a/sw/source/core/undo/undo.hrc
+++ b/sw/source/core/undo/undo.hrc
@@ -1,7 +1,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
@@ -52,31 +52,31 @@
#define STR_INSERTSECTION (UNDO_BASE +19)
#define STR_OUTLINE_LR (UNDO_BASE +20)
#define STR_OUTLINE_UD (UNDO_BASE +21)
-#define STR_INSNUM (UNDO_BASE +22)
-#define STR_NUMUP (UNDO_BASE +23)
-#define STR_MOVENUM (UNDO_BASE +24)
-#define STR_INSERTDRAW (UNDO_BASE +25)
-#define STR_NUMORNONUM (UNDO_BASE +26)
-#define STR_INC_LEFTMARGIN (UNDO_BASE +27)
-#define STR_DEC_LEFTMARGIN (UNDO_BASE +28)
-#define STR_INSERTLABEL (UNDO_BASE +29)
-#define STR_SETNUMRULESTART (UNDO_BASE +30)
-#define STR_CHANGEFTN (UNDO_BASE +31)
-#define STR_REDLINE (UNDO_BASE +32)
-#define STR_ACCEPT_REDLINE (UNDO_BASE +33)
-#define STR_REJECT_REDLINE (UNDO_BASE +34)
-#define STR_SPLIT_TABLE (UNDO_BASE +35)
-#define STR_DONTEXPAND (UNDO_BASE +36)
-#define STR_AUTOCORRECT (UNDO_BASE +37)
-#define STR_MERGE_TABLE (UNDO_BASE +38)
-#define STR_TRANSLITERATE (UNDO_BASE +39)
+#define STR_INSNUM (UNDO_BASE +22)
+#define STR_NUMUP (UNDO_BASE +23)
+#define STR_MOVENUM (UNDO_BASE +24)
+#define STR_INSERTDRAW (UNDO_BASE +25)
+#define STR_NUMORNONUM (UNDO_BASE +26)
+#define STR_INC_LEFTMARGIN (UNDO_BASE +27)
+#define STR_DEC_LEFTMARGIN (UNDO_BASE +28)
+#define STR_INSERTLABEL (UNDO_BASE +29)
+#define STR_SETNUMRULESTART (UNDO_BASE +30)
+#define STR_CHANGEFTN (UNDO_BASE +31)
+#define STR_REDLINE (UNDO_BASE +32)
+#define STR_ACCEPT_REDLINE (UNDO_BASE +33)
+#define STR_REJECT_REDLINE (UNDO_BASE +34)
+#define STR_SPLIT_TABLE (UNDO_BASE +35)
+#define STR_DONTEXPAND (UNDO_BASE +36)
+#define STR_AUTOCORRECT (UNDO_BASE +37)
+#define STR_MERGE_TABLE (UNDO_BASE +38)
+#define STR_TRANSLITERATE (UNDO_BASE +39)
#define STR_PASTE_CLIPBOARD_UNDO (UNDO_BASE +40)
-#define STR_TYPING_UNDO (UNDO_BASE +41)
+#define STR_TYPING_UNDO (UNDO_BASE +41)
-#define STR_REPEAT_DUMMY_6 (UNDO_BASE +42)
-#define STR_REPEAT_DUMMY_7 (UNDO_BASE +43)
-#define STR_REPEAT_DUMMY_8 (UNDO_BASE +44)
-#define STR_REPEAT_DUMMY_9 (UNDO_BASE +45)
+#define STR_REPEAT_DUMMY_6 (UNDO_BASE +42)
+#define STR_REPEAT_DUMMY_7 (UNDO_BASE +43)
+#define STR_REPEAT_DUMMY_8 (UNDO_BASE +44)
+#define STR_REPEAT_DUMMY_9 (UNDO_BASE +45)
// !!!!!! umsetzen !!!!!!!!!!! umsetzen !!!!!!!!!!! umsetzen !!!!
#define CORE_REPEAT_END STR_REPEAT_DUMMY_9// !!!! umsetzen !!!
@@ -99,10 +99,10 @@
#define STR_DRAWGROUP (CORE_REPEAT_END +15)
#define STR_DRAWUNGROUP (CORE_REPEAT_END +16)
#define STR_DRAWDELETE (CORE_REPEAT_END +17)
-#define STR_REREAD (CORE_REPEAT_END +18)
-#define STR_DELGRF (CORE_REPEAT_END +19)
-#define STR_DELOLE (CORE_REPEAT_END +20)
-#define STR_TABLE_ATTR (CORE_REPEAT_END +21)
+#define STR_REREAD (CORE_REPEAT_END +18)
+#define STR_DELGRF (CORE_REPEAT_END +19)
+#define STR_DELOLE (CORE_REPEAT_END +20)
+#define STR_TABLE_ATTR (CORE_REPEAT_END +21)
#define STR_TABLE_AUTOFMT (CORE_REPEAT_END +22)
#define STR_TABLE_INSCOL (CORE_REPEAT_END +23)
#define STR_TABLE_INSROW (CORE_REPEAT_END +24)
@@ -110,40 +110,40 @@
#define STR_TABLE_SPLIT (CORE_REPEAT_END +26)
#define STR_TABLE_MERGE (CORE_REPEAT_END +27)
#define STR_TABLE_NUMFORMAT (CORE_REPEAT_END +28)
-#define STR_INSERT_TOX (CORE_REPEAT_END +29)
-#define STR_CLEAR_TOX_RANGE (CORE_REPEAT_END +30)
-#define STR_TABLE_TBLCPYTBL (CORE_REPEAT_END +31)
-#define STR_TABLE_CPYTBL (CORE_REPEAT_END +32)
-#define STR_INS_FROM_SHADOWCRSR (CORE_REPEAT_END +33)
-#define STR_UNDO_CHAIN (CORE_REPEAT_END +34)
-#define STR_UNDO_UNCHAIN (CORE_REPEAT_END +35)
-#define STR_UNDO_FTNINFO (CORE_REPEAT_END +36)
-#define STR_UNDO_ENDNOTEINFO (CORE_REPEAT_END +37)
-#define STR_UNDO_COMPAREDOC (CORE_REPEAT_END +38)
-#define STR_UNDO_SETFLYFRMFMT (CORE_REPEAT_END +39)
-#define STR_UNDO_SETRUBYATTR (CORE_REPEAT_END +40)
+#define STR_INSERT_TOX (CORE_REPEAT_END +29)
+#define STR_CLEAR_TOX_RANGE (CORE_REPEAT_END +30)
+#define STR_TABLE_TBLCPYTBL (CORE_REPEAT_END +31)
+#define STR_TABLE_CPYTBL (CORE_REPEAT_END +32)
+#define STR_INS_FROM_SHADOWCRSR (CORE_REPEAT_END +33)
+#define STR_UNDO_CHAIN (CORE_REPEAT_END +34)
+#define STR_UNDO_UNCHAIN (CORE_REPEAT_END +35)
+#define STR_UNDO_FTNINFO (CORE_REPEAT_END +36)
+#define STR_UNDO_ENDNOTEINFO (CORE_REPEAT_END +37)
+#define STR_UNDO_COMPAREDOC (CORE_REPEAT_END +38)
+#define STR_UNDO_SETFLYFRMFMT (CORE_REPEAT_END +39)
+#define STR_UNDO_SETRUBYATTR (CORE_REPEAT_END +40)
// #102505#
-#define STR_UNDO_TMPAUTOCORR (CORE_REPEAT_END +41)
+#define STR_UNDO_TMPAUTOCORR (CORE_REPEAT_END +41)
-#define STR_TOXCHANGE (CORE_REPEAT_END +42)
+#define STR_TOXCHANGE (CORE_REPEAT_END +42)
#define STR_UNDO_PAGEDESC_CREATE (CORE_REPEAT_END +43)
-#define STR_UNDO_PAGEDESC (CORE_REPEAT_END +44)
-#define STR_UNDO_PAGEDESC_DELETE (CORE_REPEAT_END +45)
-#define STR_UNDO_HEADER_FOOTER (CORE_REPEAT_END +46) // #i7983#
-#define STR_UNDO_FIELD (CORE_REPEAT_END +47) // #111840#
-#define STR_UNDO_TXTFMTCOL_CREATE (CORE_REPEAT_END +48)
-#define STR_UNDO_TXTFMTCOL_DELETE (CORE_REPEAT_END +49)
-#define STR_UNDO_TXTFMTCOL_RENAME (CORE_REPEAT_END +50)
-#define STR_UNDO_CHARFMT_CREATE (CORE_REPEAT_END +51)
-#define STR_UNDO_CHARFMT_DELETE (CORE_REPEAT_END +52)
-#define STR_UNDO_CHARFMT_RENAME (CORE_REPEAT_END +53)
-#define STR_UNDO_FRMFMT_CREATE (CORE_REPEAT_END +54)
-#define STR_UNDO_FRMFMT_DELETE (CORE_REPEAT_END +55)
-#define STR_UNDO_FRMFMT_RENAME (CORE_REPEAT_END +56)
-#define STR_UNDO_NUMRULE_CREATE (CORE_REPEAT_END +57)
-#define STR_UNDO_NUMRULE_DELETE (CORE_REPEAT_END +58)
-#define STR_UNDO_NUMRULE_RENAME (CORE_REPEAT_END +59)
-#define STR_UNDO_BOOKMARK_RENAME (CORE_REPEAT_END +60)
+#define STR_UNDO_PAGEDESC (CORE_REPEAT_END +44)
+#define STR_UNDO_PAGEDESC_DELETE (CORE_REPEAT_END +45)
+#define STR_UNDO_HEADER_FOOTER (CORE_REPEAT_END +46) // #i7983#
+#define STR_UNDO_FIELD (CORE_REPEAT_END +47) // #111840#
+#define STR_UNDO_TXTFMTCOL_CREATE (CORE_REPEAT_END +48)
+#define STR_UNDO_TXTFMTCOL_DELETE (CORE_REPEAT_END +49)
+#define STR_UNDO_TXTFMTCOL_RENAME (CORE_REPEAT_END +50)
+#define STR_UNDO_CHARFMT_CREATE (CORE_REPEAT_END +51)
+#define STR_UNDO_CHARFMT_DELETE (CORE_REPEAT_END +52)
+#define STR_UNDO_CHARFMT_RENAME (CORE_REPEAT_END +53)
+#define STR_UNDO_FRMFMT_CREATE (CORE_REPEAT_END +54)
+#define STR_UNDO_FRMFMT_DELETE (CORE_REPEAT_END +55)
+#define STR_UNDO_FRMFMT_RENAME (CORE_REPEAT_END +56)
+#define STR_UNDO_NUMRULE_CREATE (CORE_REPEAT_END +57)
+#define STR_UNDO_NUMRULE_DELETE (CORE_REPEAT_END +58)
+#define STR_UNDO_NUMRULE_RENAME (CORE_REPEAT_END +59)
+#define STR_UNDO_BOOKMARK_RENAME (CORE_REPEAT_END +60)
#define STR_UNDO_INDEX_ENTRY_INSERT (CORE_REPEAT_END +61)
#define STR_UNDO_INDEX_ENTRY_DELETE (CORE_REPEAT_END +62)
#define STR_UNDO_COL_DELETE (CORE_REPEAT_END +63)
@@ -166,12 +166,12 @@
#define STR_DRAG_AND_COPY (UI_UNDO_BEGIN + 5)
#define STR_DRAG_AND_MOVE (UI_UNDO_BEGIN + 6)
#define STR_INSERT_RULER (UI_UNDO_BEGIN + 7)
-#define STR_INSERT_CHART (UI_UNDO_BEGIN + 8)
-#define STR_INSERT_FOOTNOTE (UI_UNDO_BEGIN + 9)
-#define STR_INSERT_URLBTN (UI_UNDO_BEGIN + 10)
-#define STR_INSERT_URLTXT (UI_UNDO_BEGIN + 11)
-#define STR_DELETE_INVISIBLECNTNT (UI_UNDO_BEGIN + 12)
-#define STR_REPLACE_STYLE (UI_UNDO_BEGIN + 13)
+#define STR_INSERT_CHART (UI_UNDO_BEGIN + 8)
+#define STR_INSERT_FOOTNOTE (UI_UNDO_BEGIN + 9)
+#define STR_INSERT_URLBTN (UI_UNDO_BEGIN + 10)
+#define STR_INSERT_URLTXT (UI_UNDO_BEGIN + 11)
+#define STR_DELETE_INVISIBLECNTNT (UI_UNDO_BEGIN + 12)
+#define STR_REPLACE_STYLE (UI_UNDO_BEGIN + 13)
#define UI_UNDO_END STR_REPLACE_STYLE
#define UNDO_MORE_STRINGS_BEGIN (UI_UNDO_END + 1)
diff --git a/sw/source/core/undo/undo.src b/sw/source/core/undo/undo.src
index 1035d8cb0d0f..4ad1e70b7869 100644
--- a/sw/source/core/undo/undo.src
+++ b/sw/source/core/undo/undo.src
@@ -1,7 +1,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
diff --git a/sw/source/core/undo/undobj.cxx b/sw/source/core/undo/undobj.cxx
index e665beb6c8e9..d405afa98011 100644
--- a/sw/source/core/undo/undobj.cxx
+++ b/sw/source/core/undo/undobj.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
@@ -36,7 +36,7 @@
#include <frmfmt.hxx>
#include <doc.hxx>
#include <docary.hxx>
-#include <swundo.hxx> // fuer die UndoIds
+#include <swundo.hxx> // fuer die UndoIds
#include <pam.hxx>
#include <ndtxt.hxx>
#include <undobj.hxx>
@@ -128,12 +128,12 @@ void SwUndRng::SetPaM( SwPaM & rPam, BOOL bCorrToCntnt ) const
else
rPam.GetPoint()->nContent.Assign( 0, 0 );
- if( !nEndNode && STRING_MAXLEN == nEndCntnt ) // keine Selection
+ if( !nEndNode && STRING_MAXLEN == nEndCntnt ) // keine Selection
return ;
rPam.SetMark();
if( nSttNode == nEndNode && nSttCntnt == nEndCntnt )
- return; // nichts mehr zu tun
+ return; // nichts mehr zu tun
rPam.GetPoint()->nNode = nEndNode;
if( (pNd = rPam.GetNode())->IsCntntNode() )
@@ -276,11 +276,11 @@ SwUndoSaveCntnt::~SwUndoSaveCntnt()
// Inhalte in das UndoNodesArray verschoben. Diese Methoden fuegen
// am Ende eines TextNodes fuer die Attribute einen Trenner ein.
// Dadurch werden die Attribute nicht expandiert.
- // MoveTo.. verschiebt aus dem NodesArray in das UndoNodesArray
- // MoveFrom.. verschiebt aus dem UndoNodesArray in das NodesArray
+ // MoveTo.. verschiebt aus dem NodesArray in das UndoNodesArray
+ // MoveFrom.. verschiebt aus dem UndoNodesArray in das NodesArray
- // 2.8.93: ist pEndNdIdx angebenen, wird vom Undo/Redo -Ins/DelFly
- // aufgerufen. Dann soll die gesamte Section verschoben werden.
+ // 2.8.93: ist pEndNdIdx angebenen, wird vom Undo/Redo -Ins/DelFly
+ // aufgerufen. Dann soll die gesamte Section verschoben werden.
void SwUndoSaveCntnt::MoveToUndoNds( SwPaM& rPaM, SwNodeIndex* pNodeIdx,
SwIndex* pCntIdx, ULONG* pEndNdIdx, xub_StrLen* pEndCntIdx )
@@ -327,7 +327,7 @@ void SwUndoSaveCntnt::MoveToUndoNds( SwPaM& rPaM, SwNodeIndex* pNodeIdx,
rDoc.GetNodes().MoveRange( rPaM, aPos, rNds );
SwTxtNode* pTxtNd = aPos.nNode.GetNode().GetTxtNode();
- if( pTxtNd ) // fuege einen Trenner fuer die Attribute ein !
+ if( pTxtNd ) // fuege einen Trenner fuer die Attribute ein !
{
// weil aber beim Insert die Attribute angefasst/sprich
// aus dem Array geloescht und wieder eingefuegt werden, koennen
@@ -379,13 +379,13 @@ void SwUndoSaveCntnt::MoveFromUndoNds( SwDoc& rDoc, ULONG nNodeIdx,
// jetzt kommt das wiederherstellen
SwNodes& rNds = (SwNodes&)*rDoc.GetUndoNds();
if( nNodeIdx == rNds.GetEndOfPostIts().GetIndex() )
- return; // nichts gespeichert
+ return; // nichts gespeichert
BOOL bUndo = rDoc.DoesUndo();
rDoc.DoUndo( FALSE );
SwPaM aPaM( rInsPos );
- if( pEndNdIdx ) // dann hole aus diesem den Bereich
+ if( pEndNdIdx ) // dann hole aus diesem den Bereich
aPaM.GetPoint()->nNode.Assign( rNds, *pEndNdIdx );
else
{
@@ -394,7 +394,7 @@ void SwUndoSaveCntnt::MoveFromUndoNds( SwDoc& rDoc, ULONG nNodeIdx,
}
SwTxtNode* pTxtNd = aPaM.GetNode()->GetTxtNode();
- if( !pEndNdIdx && pTxtNd ) // loesche den Trenner wieder
+ if( !pEndNdIdx && pTxtNd ) // loesche den Trenner wieder
{
if( pEndCntIdx )
aPaM.GetPoint()->nContent.Assign( pTxtNd, *pEndCntIdx );
@@ -414,7 +414,7 @@ void SwUndoSaveCntnt::MoveFromUndoNds( SwDoc& rDoc, ULONG nNodeIdx,
// noch den letzen Node loeschen.
if( !aPaM.GetPoint()->nContent.GetIndex() ||
- ( aPaM.GetPoint()->nNode++ && // noch leere Nodes am Ende ??
+ ( aPaM.GetPoint()->nNode++ && // noch leere Nodes am Ende ??
&rNds.GetEndOfExtras() != &aPaM.GetPoint()->nNode.GetNode() ))
{
aPaM.GetPoint()->nContent.Assign( 0, 0 );
@@ -525,7 +525,7 @@ void SwUndoSaveCntnt::DelCntntIndex( const SwPosition& rMark,
( &pEnd->nNode.GetNode() == pFtnNd &&
nFtnSttIdx >= pEnd->nContent.GetIndex() )) )
{
- ++nPos; // weiter suchen
+ ++nPos; // weiter suchen
continue;
}
@@ -551,7 +551,7 @@ void SwUndoSaveCntnt::DelCntntIndex( const SwPosition& rMark,
pStt->nContent.GetIndex() > nFtnSttIdx ) ||
( &pEnd->nNode.GetNode() == pFtnNd &&
nFtnSttIdx >= pEnd->nContent.GetIndex() )))
- continue; // weiter suchen
+ continue; // weiter suchen
// es muss leider ein Index angelegt werden. Sonst knallts im
// TextNode, weil im DTOR der SwFtn dieser geloescht wird !!
@@ -824,7 +824,7 @@ SwUndoSaveSection::SwUndoSaveSection()
SwUndoSaveSection::~SwUndoSaveSection()
{
- if( pMvStt ) // loesche noch den Bereich aus dem UndoNodes Array
+ if( pMvStt ) // loesche noch den Bereich aus dem UndoNodes Array
{
// SaveSection speichert den Inhalt in der PostIt-Section
SwNodes& rUNds = pMvStt->GetNode().GetNodes();
@@ -875,7 +875,7 @@ void SwUndoSaveSection::SaveSection( SwDoc* , const SwNodeRange& rRange )
void SwUndoSaveSection::RestoreSection( SwDoc* pDoc, SwNodeIndex* pIdx,
USHORT nSectType )
{
- if( ULONG_MAX != nStartPos ) // gab es ueberhaupt Inhalt ?
+ if( ULONG_MAX != nStartPos ) // gab es ueberhaupt Inhalt ?
{
// ueberpruefe, ob der Inhalt an der alten Position steht
SwNodeIndex aSttIdx( pDoc->GetNodes(), nStartPos );
@@ -895,7 +895,7 @@ void SwUndoSaveSection::RestoreSection( SwDoc* pDoc, SwNodeIndex* pIdx,
void SwUndoSaveSection::RestoreSection( SwDoc* pDoc, const SwNodeIndex& rInsPos )
{
- if( ULONG_MAX != nStartPos ) // gab es ueberhaupt Inhalt ?
+ if( ULONG_MAX != nStartPos ) // gab es ueberhaupt Inhalt ?
{
SwPosition aInsPos( rInsPos );
ULONG nEnd = pMvStt->GetIndex() + nMvLen - 1;
@@ -1051,23 +1051,23 @@ SwRedlineSaveData::SwRedlineSaveData( SwComparePosition eCmpPos,
switch( eCmpPos )
{
- case POS_OVERLAP_BEFORE: // Pos1 ueberlappt Pos2 am Anfang
+ case POS_OVERLAP_BEFORE: // Pos1 ueberlappt Pos2 am Anfang
nEndNode = rEndPos.nNode.GetIndex();
nEndCntnt = rEndPos.nContent.GetIndex();
break;
- case POS_OVERLAP_BEHIND: // Pos1 ueberlappt Pos2 am Ende
+ case POS_OVERLAP_BEHIND: // Pos1 ueberlappt Pos2 am Ende
nSttNode = rSttPos.nNode.GetIndex();
nSttCntnt = rSttPos.nContent.GetIndex();
break;
- case POS_INSIDE: // Pos1 liegt vollstaendig in Pos2
+ case POS_INSIDE: // Pos1 liegt vollstaendig in Pos2
nSttNode = rSttPos.nNode.GetIndex();
nSttCntnt = rSttPos.nContent.GetIndex();
nEndNode = rEndPos.nNode.GetIndex();
nEndCntnt = rEndPos.nContent.GetIndex();
break;
- case POS_OUTSIDE: // Pos2 liegt vollstaendig in Pos1
+ case POS_OUTSIDE: // Pos2 liegt vollstaendig in Pos1
if( rRedl.GetContentIdx() )
{
// dann den Bereich ins UndoArray verschieben und merken
@@ -1076,7 +1076,7 @@ SwRedlineSaveData::SwRedlineSaveData( SwComparePosition eCmpPos,
}
break;
- case POS_EQUAL: // Pos1 ist genauso gross wie Pos2
+ case POS_EQUAL: // Pos1 ist genauso gross wie Pos2
break;
default:
diff --git a/sw/source/core/undo/undobj1.cxx b/sw/source/core/undo/undobj1.cxx
index 08673ba275e5..7e8f6d7331ae 100644
--- a/sw/source/core/undo/undobj1.cxx
+++ b/sw/source/core/undo/undobj1.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
@@ -39,11 +39,11 @@
#include <frmfmt.hxx>
#include <flyfrm.hxx>
#include <undobj.hxx>
-#include <rolbck.hxx> // fuer die Attribut History
+#include <rolbck.hxx> // fuer die Attribut History
#include <doc.hxx>
#include <docary.hxx>
#include <rootfrm.hxx>
-#include <swundo.hxx> // fuer die UndoIds
+#include <swundo.hxx> // fuer die UndoIds
#include <pam.hxx>
#include <ndtxt.hxx>
// OD 26.06.2003 #108784#
@@ -62,7 +62,7 @@ SwUndoFlyBase::SwUndoFlyBase( SwFrmFmt* pFormat, SwUndoId nUndoId )
SwUndoFlyBase::~SwUndoFlyBase()
{
- if( bDelFmt ) // loeschen waehrend eines Undo's ??
+ if( bDelFmt ) // loeschen waehrend eines Undo's ??
delete pFrmFmt;
}
@@ -118,9 +118,9 @@ void SwUndoFlyBase::InsFly( SwUndoIter& rUndoIter, BOOL bShowSelFrm )
}
//JP 18.12.98: Bug 60505 - InCntntAttribut erst setzen, wenn der Inhalt
- // vorhanden ist! Sonst wuerde das Layout den Fly vorher
- // formatieren, aber keine Inhalt finden; so geschene bei
- // Grafiken aus dem Internet
+ // vorhanden ist! Sonst wuerde das Layout den Fly vorher
+ // formatieren, aber keine Inhalt finden; so geschene bei
+ // Grafiken aus dem Internet
if (FLY_AS_CHAR == nRndId)
{
// es muss mindestens das Attribut im TextNode stehen
@@ -163,8 +163,8 @@ void SwUndoFlyBase::InsFly( SwUndoIter& rUndoIter, BOOL bShowSelFrm )
void SwUndoFlyBase::DelFly( SwDoc* pDoc )
{
- bDelFmt = TRUE; // im DTOR das Format loeschen
- pFrmFmt->DelFrms(); // Frms vernichten.
+ bDelFmt = TRUE; // im DTOR das Format loeschen
+ pFrmFmt->DelFrms(); // Frms vernichten.
// alle Uno-Objecte sollten sich jetzt abmelden
{
@@ -274,7 +274,7 @@ SwUndoInsLayFmt::~SwUndoInsLayFmt()
void SwUndoInsLayFmt::Undo( SwUndoIter& rUndoIter )
{
const SwFmtCntnt& rCntnt = pFrmFmt->GetCntnt();
- if( rCntnt.GetCntntIdx() ) // kein Inhalt
+ if( rCntnt.GetCntntIdx() ) // kein Inhalt
{
bool bRemoveIdx = true;
if( mnCrsrSaveIndexPara > 0 )
@@ -441,7 +441,7 @@ void SwUndoDelLayFmt::Undo( SwUndoIter& rUndoIter )
void SwUndoDelLayFmt::Redo( SwUndoIter& rUndoIter )
{
const SwFmtCntnt& rCntnt = pFrmFmt->GetCntnt();
- if( rCntnt.GetCntntIdx() ) // kein Inhalt
+ if( rCntnt.GetCntntIdx() ) // kein Inhalt
RemoveIdxFromSection( rUndoIter.GetDoc(),
rCntnt.GetCntntIdx()->GetIndex() );
@@ -451,7 +451,7 @@ void SwUndoDelLayFmt::Redo( SwUndoIter& rUndoIter )
void SwUndoDelLayFmt::Redo()
{
const SwFmtCntnt& rCntnt = pFrmFmt->GetCntnt();
- if( rCntnt.GetCntntIdx() ) // kein Inhalt
+ if( rCntnt.GetCntntIdx() ) // kein Inhalt
RemoveIdxFromSection( *pFrmFmt->GetDoc(),
rCntnt.GetCntntIdx()->GetIndex() );
@@ -467,7 +467,7 @@ SwUndoSetFlyFmt::SwUndoSetFlyFmt( SwFrmFmt& rFlyFmt, SwFrmFmt& rNewFrmFmt )
rFlyFmt.GetAttrSet().GetRanges() )),
nOldNode( 0 ), nNewNode( 0 ),
nOldCntnt( 0 ), nNewCntnt( 0 ),
- nOldAnchorTyp( 0 ), nNewAnchorTyp( 0 ), bAnchorChgd( FALSE )
+ nOldAnchorTyp( 0 ), nNewAnchorTyp( 0 ), bAnchorChgd( FALSE )
{
}
diff --git a/sw/source/core/undo/undoflystrattr.cxx b/sw/source/core/undo/undoflystrattr.cxx
index 3facce917f88..072115ec6798 100644
--- a/sw/source/core/undo/undoflystrattr.cxx
+++ b/sw/source/core/undo/undoflystrattr.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
diff --git a/sw/source/core/undo/undraw.cxx b/sw/source/core/undo/undraw.cxx
index 81f6dce132b1..a571e8101fff 100644
--- a/sw/source/core/undo/undraw.cxx
+++ b/sw/source/core/undo/undraw.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
@@ -44,7 +44,7 @@
#include <doc.hxx>
#include <docary.hxx>
#include <frame.hxx>
-#include <swundo.hxx> // fuer die UndoIds
+#include <swundo.hxx> // fuer die UndoIds
#include <pam.hxx>
#include <ndtxt.hxx>
#include <undobj.hxx>
@@ -218,7 +218,7 @@ SwUndoDrawGroup::~SwUndoDrawGroup()
delete pTmp->pFmt;
}
else
- delete pObjArr->pFmt; // das GroupObject-Format
+ delete pObjArr->pFmt; // das GroupObject-Format
delete [] pObjArr;
}
@@ -230,7 +230,7 @@ void SwUndoDrawGroup::Undo( SwUndoIter& )
// das Group-Object sichern
SwDrawFrmFmt* pFmt = pObjArr->pFmt;
SwDrawContact* pDrawContact = (SwDrawContact*)pFmt->FindContactObj();
- SdrObject* pObj = pDrawContact->GetMaster();
+ SdrObject* pObj = pDrawContact->GetMaster();
pObjArr->pObj = pObj;
//loescht sich selbst!
@@ -383,7 +383,7 @@ SwUndoDrawUnGroup::~SwUndoDrawUnGroup()
delete pTmp->pFmt;
}
else
- delete pObjArr->pFmt; // das GroupObject-Format
+ delete pObjArr->pFmt; // das GroupObject-Format
delete [] pObjArr;
}
diff --git a/sw/source/core/undo/unfmco.cxx b/sw/source/core/undo/unfmco.cxx
index a9874091b3ce..555a207dfa1b 100644
--- a/sw/source/core/undo/unfmco.cxx
+++ b/sw/source/core/undo/unfmco.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
@@ -32,7 +32,7 @@
#include "doc.hxx"
-#include "swundo.hxx" // fuer die UndoIds
+#include "swundo.hxx" // fuer die UndoIds
#include "pam.hxx"
#include "ndtxt.hxx"
@@ -88,7 +88,7 @@ void SwUndoFmtColl::Redo( SwUndoIter& rUndoIter )
SetPaM( rUndoIter );
rUndoIter.pLastUndoObj = 0;
- Repeat( rUndoIter ); // Collection setzen
+ Repeat( rUndoIter ); // Collection setzen
rUndoIter.pLastUndoObj = 0;
}
diff --git a/sw/source/core/undo/unins.cxx b/sw/source/core/undo/unins.cxx
index 8fd74df0151f..644ea3291eb6 100644
--- a/sw/source/core/undo/unins.cxx
+++ b/sw/source/core/undo/unins.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
@@ -39,7 +39,7 @@
#include <fmtanchr.hxx>
#include <frmfmt.hxx>
#include <doc.hxx>
-#include <swundo.hxx> // fuer die UndoIds
+#include <swundo.hxx> // fuer die UndoIds
#include <pam.hxx>
#include <ndtxt.hxx>
#include <undobj.hxx>
@@ -94,9 +94,9 @@ inline SwDoc& SwUndoIter::GetDoc() const { return *pAktPam->GetDoc(); }
// zwei Zugriffs-Funktionen
inline SwPosition* IterPt( SwUndoIter& rUIter )
-{ return rUIter.pAktPam->GetPoint(); }
+{ return rUIter.pAktPam->GetPoint(); }
inline SwPosition* IterMk( SwUndoIter& rUIter )
-{ return rUIter.pAktPam->GetMark(); }
+{ return rUIter.pAktPam->GetMark(); }
//------------------------------------------------------------
@@ -242,7 +242,7 @@ SwUndoInsert::~SwUndoInsert()
pPos->nNode.GetIndex() );
delete pPos;
}
- else if( pTxt ) // der eingefuegte Text
+ else if( pTxt ) // der eingefuegte Text
delete pTxt;
delete pRedlData;
}
@@ -292,7 +292,7 @@ void SwUndoInsert::Undo( SwUndoIter& rUndoIter )
pTxt = new String( pTxtNode->GetTxt().Copy(nCntnt-nLen, nLen) );
pTxtNode->EraseText( aPaM.GetPoint()->nContent, nLen );
}
- else // ansonsten Grafik/OLE/Text/...
+ else // ansonsten Grafik/OLE/Text/...
{
aPaM.Move(fnMoveBackward);
if( IDocumentRedlineAccess::IsRedlineOn( GetRedlineMode() ))
@@ -413,7 +413,7 @@ void SwUndoInsert::Repeat( SwUndoIter& rUndoIter )
SwNodeIndex aNd( rDoc.GetNodes(), nNode );
SwCntntNode* pCNd = aNd.GetNode().GetCntntNode();;
- if( !bIsAppend && 1 == nLen ) // >1 dann immer nur Text, ansonsten Grafik/OLE/Text/...
+ if( !bIsAppend && 1 == nLen ) // >1 dann immer nur Text, ansonsten Grafik/OLE/Text/...
{
SwPaM aPaM( *pCNd, nCntnt );
aPaM.SetMark();
@@ -530,7 +530,7 @@ void SwUndoReplace::Undo( SwUndoIter& rUndoIter )
aArr[ --nAktPos ]->Undo( rUndoIter );
- if( !nAktPos ) // alten Status wieder zurueck
+ if( !nAktPos ) // alten Status wieder zurueck
rUndoIter.bWeiter = bOldIterFlag;
}
@@ -549,7 +549,7 @@ void SwUndoReplace::Redo( SwUndoIter& rUndoIter )
aArr[ nAktPos ]->Redo( rUndoIter );
- if( ++nAktPos >= aArr.Count() ) // alten Status wieder zurueck
+ if( ++nAktPos >= aArr.Count() ) // alten Status wieder zurueck
{
nAktPos = USHRT_MAX;
rUndoIter.bWeiter = bOldIterFlag;
diff --git a/sw/source/core/undo/unmove.cxx b/sw/source/core/undo/unmove.cxx
index 8e2bcdf547b5..ccb48192518b 100644
--- a/sw/source/core/undo/unmove.cxx
+++ b/sw/source/core/undo/unmove.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
@@ -32,7 +32,7 @@
#include <doc.hxx>
#include <pam.hxx>
-#include <swundo.hxx> // fuer die UndoIds
+#include <swundo.hxx> // fuer die UndoIds
#include <ndtxt.hxx>
#include <undobj.hxx>
#include <rolbck.hxx>
@@ -115,7 +115,7 @@ SwUndoMove::SwUndoMove( SwDoc* pDoc, const SwNodeRange& rRg,
nSttNode = rRg.aStart.GetIndex();
nEndNode = rRg.aEnd.GetIndex();
-// DelFtn( rRange );
+// DelFtn( rRange );
// wird aus dem CntntBereich in den Sonderbereich verschoben ?
ULONG nCntntStt = pDoc->GetNodes().GetEndOfAutotext().GetIndex();
@@ -150,13 +150,13 @@ void SwUndoMove::SetDestRange( const SwPaM& rRange,
? rRange.GetMark()
: rRange.GetPoint();
- nDestSttNode = pStt->nNode.GetIndex();
- nDestSttCntnt = pStt->nContent.GetIndex();
- nDestEndNode = pEnd->nNode.GetIndex();
- nDestEndCntnt = pEnd->nContent.GetIndex();
+ nDestSttNode = pStt->nNode.GetIndex();
+ nDestSttCntnt = pStt->nContent.GetIndex();
+ nDestEndNode = pEnd->nNode.GetIndex();
+ nDestEndCntnt = pEnd->nContent.GetIndex();
nInsPosNode = rInsPos.nNode.GetIndex();
- nInsPosCntnt = rInsPos.nContent.GetIndex();
+ nInsPosCntnt = rInsPos.nContent.GetIndex();
if( bCorrPam )
{
@@ -239,7 +239,7 @@ void SwUndoMove::Undo( SwUndoIter& rUndoIter )
aPam.Exchange();
aPam.DeleteMark();
-// pDoc->ResetAttr( aPam, FALSE );
+// pDoc->ResetAttr( aPam, FALSE );
if( aPam.GetNode()->IsCntntNode() )
aPam.GetNode()->GetCntntNode()->ResetAllAttr();
// der Pam wird jetzt aufgegeben.
diff --git a/sw/source/core/undo/unnum.cxx b/sw/source/core/undo/unnum.cxx
index c6f76dc63efc..6da4a95b1ba7 100644
--- a/sw/source/core/undo/unnum.cxx
+++ b/sw/source/core/undo/unnum.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
@@ -33,7 +33,7 @@
#include <hintids.hxx>
#include <editeng/lrspitem.hxx>
#include <doc.hxx>
-#include <swundo.hxx> // fuer die UndoIds
+#include <swundo.hxx> // fuer die UndoIds
#include <pam.hxx>
#include <ndtxt.hxx>
#include <undobj.hxx>
@@ -275,8 +275,8 @@ SwUndoMoveNum::SwUndoMoveNum( const SwPaM& rPam, long nOff, BOOL bIsOutlMv )
SwUndRng( rPam ),
nNewStt( 0 ), nOffset( nOff )
{
- // nOffset: nach unten => 1
- // nach oben => -1
+ // nOffset: nach unten => 1
+ // nach oben => -1
}
@@ -284,9 +284,9 @@ void SwUndoMoveNum::Undo( SwUndoIter& rUndoIter )
{
ULONG nTmpStt = nSttNode, nTmpEnd = nEndNode;
- if( nEndNode || USHRT_MAX != nEndCntnt ) // Bereich ?
+ if( nEndNode || USHRT_MAX != nEndCntnt ) // Bereich ?
{
- if( nNewStt < nSttNode ) // nach vorne verschoben
+ if( nNewStt < nSttNode ) // nach vorne verschoben
nEndNode = nEndNode - ( nSttNode - nNewStt );
else
nEndNode = nEndNode + ( nNewStt - nSttNode );
@@ -294,8 +294,8 @@ void SwUndoMoveNum::Undo( SwUndoIter& rUndoIter )
nSttNode = nNewStt;
//JP 22.06.95: wird wollen die Bookmarks/Verzeichnisse behalten, oder?
-// SetPaM( rUndoIter );
-// RemoveIdxFromRange( *rUndoIter.pAktPam, TRUE );
+// SetPaM( rUndoIter );
+// RemoveIdxFromRange( *rUndoIter.pAktPam, TRUE );
SetPaM( rUndoIter );
rUndoIter.GetDoc().MoveParagraph( *rUndoIter.pAktPam, -nOffset,
@@ -308,8 +308,8 @@ void SwUndoMoveNum::Undo( SwUndoIter& rUndoIter )
void SwUndoMoveNum::Redo( SwUndoIter& rUndoIter )
{
//JP 22.06.95: wird wollen die Bookmarks/Verzeichnisse behalten, oder?
-// SetPaM( rUndoIter );
-// RemoveIdxFromRange( *rUndoIter.pAktPam, TRUE );
+// SetPaM( rUndoIter );
+// RemoveIdxFromRange( *rUndoIter.pAktPam, TRUE );
SetPaM( rUndoIter );
rUndoIter.GetDoc().MoveParagraph( *rUndoIter.pAktPam, nOffset,
@@ -333,8 +333,8 @@ SwUndoNumUpDown::SwUndoNumUpDown( const SwPaM& rPam, short nOff )
: SwUndo( nOff > 0 ? UNDO_NUMUP : UNDO_NUMDOWN ), SwUndRng( rPam ),
nOffset( nOff )
{
- // nOffset: Down => 1
- // Up => -1
+ // nOffset: Down => 1
+ // Up => -1
}
diff --git a/sw/source/core/undo/unoutl.cxx b/sw/source/core/undo/unoutl.cxx
index d30aba417043..cfdea00be125 100644
--- a/sw/source/core/undo/unoutl.cxx
+++ b/sw/source/core/undo/unoutl.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
@@ -32,7 +32,7 @@
#include "doc.hxx"
-#include "swundo.hxx" // fuer die UndoIds
+#include "swundo.hxx" // fuer die UndoIds
#include "pam.hxx"
#include "ndtxt.hxx"
diff --git a/sw/source/core/undo/unovwr.cxx b/sw/source/core/undo/unovwr.cxx
index eb1ff8b846ec..a9608aaf4365 100644
--- a/sw/source/core/undo/unovwr.cxx
+++ b/sw/source/core/undo/unovwr.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
@@ -34,7 +34,7 @@
#include <unotools/transliterationwrapper.hxx>
#include <comphelper/processfactory.hxx>
#include <doc.hxx>
-#include <swundo.hxx> // fuer die UndoIds
+#include <swundo.hxx> // fuer die UndoIds
#include <pam.hxx>
#include <ndtxt.hxx>
#include <undobj.hxx>
@@ -54,9 +54,9 @@ using namespace ::com::sun::star::uno;
// zwei Zugriffs-Funktionen
inline SwPosition* IterPt( SwUndoIter& rUIter )
-{ return rUIter.pAktPam->GetPoint(); }
+{ return rUIter.pAktPam->GetPoint(); }
inline SwPosition* IterMk( SwUndoIter& rUIter )
-{ return rUIter.pAktPam->GetMark(); }
+{ return rUIter.pAktPam->GetMark(); }
inline SwDoc& SwUndoIter::GetDoc() const { return *pAktPam->GetDoc(); }
@@ -88,7 +88,7 @@ SwUndoOverwrite::SwUndoOverwrite( SwDoc* pDoc, SwPosition& rPos,
bInsChar = TRUE;
xub_StrLen nTxtNdLen = pTxtNd->GetTxt().Len();
- if( nSttCntnt < nTxtNdLen ) // kein reines Einfuegen ?
+ if( nSttCntnt < nTxtNdLen ) // kein reines Einfuegen ?
{
aDelStr.Insert( pTxtNd->GetTxt().GetChar( nSttCntnt ) );
if( !pHistory )
@@ -368,7 +368,7 @@ struct _UndoTransliterate_Data
void SetChangeAtNode( SwDoc& rDoc );
};
-SwUndoTransliterate::SwUndoTransliterate(
+SwUndoTransliterate::SwUndoTransliterate(
const SwPaM& rPam,
const utl::TransliterationWrapper& rTrans )
: SwUndo( UNDO_TRANSLITERATE ), SwUndRng( rPam ), nType( rTrans.getType() )
@@ -388,7 +388,7 @@ void SwUndoTransliterate::Undo( SwUndoIter& rUndoIter )
rDoc.DoUndo( FALSE );
// since the changes were added to the vector from the end of the string/node towards
- // the start, we need to revert them from the start towards the end now to keep the
+ // the start, we need to revert them from the start towards the end now to keep the
// offset information of the undo data in sync with the changing text.
// Thus we need to iterate from the end of the vector to the start
for (sal_Int32 i = aChanges.size() - 1; i >= 0; --i)
@@ -400,7 +400,7 @@ void SwUndoTransliterate::Undo( SwUndoIter& rUndoIter )
void SwUndoTransliterate::Redo( SwUndoIter& rUndoIter )
{
-/* ??? */ rUndoIter.SetUpdateAttr( TRUE );
+/* ??? */ rUndoIter.SetUpdateAttr( TRUE );
SetPaM( *rUndoIter.pAktPam );
Repeat( rUndoIter );
@@ -469,7 +469,7 @@ void SwUndoTransliterate::AddChanges( SwTxtNode& rTNd,
// same node and have a history?
pNew->pHistory = pD->pHistory;
pD->pHistory = 0;
- break; // more can't exist
+ break; // more can't exist
}
}
diff --git a/sw/source/core/undo/unredln.cxx b/sw/source/core/undo/unredln.cxx
index a994e5e1faa9..ffb72815590e 100644
--- a/sw/source/core/undo/unredln.cxx
+++ b/sw/source/core/undo/unredln.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
@@ -33,7 +33,7 @@
#include <hintids.hxx>
#include <unotools/charclass.hxx>
#include <doc.hxx>
-#include <swundo.hxx> // fuer die UndoIds
+#include <swundo.hxx> // fuer die UndoIds
#include <pam.hxx>
#include <ndtxt.hxx>
#include <undobj.hxx>
@@ -80,8 +80,8 @@ SwUndoRedline::SwUndoRedline( SwUndoId nUsrId, const SwPaM& rRange )
else
{
bHiddenRedlines = HasHiddenRedlines( *pRedlSaveData );
- if( bHiddenRedlines ) // dann muessen die NodeIndizies
- { // vom SwUndRng korrigiert werden
+ if( bHiddenRedlines ) // dann muessen die NodeIndizies
+ { // vom SwUndRng korrigiert werden
nEndExtra -= rDoc.GetNodes().GetEndOfExtras().GetIndex();
nSttNode -= nEndExtra;
nEndNode -= nEndExtra;
@@ -303,7 +303,7 @@ void SwUndoRedlineSort::_Redo( SwUndoIter& rIter )
SwNodeIndex aPrevIdx( pStart->nNode, -1 );
ULONG nOffsetTemp = pEnd->nNode.GetIndex() - pStart->nNode.GetIndex();
- xub_StrLen nCntStt = pStart->nContent.GetIndex();
+ xub_StrLen nCntStt = pStart->nContent.GetIndex();
rIter.GetDoc().SortText( rPam, *pOpt );
@@ -517,8 +517,8 @@ void SwUndoCompDoc::Redo( SwUndoIter& rIter )
}
else
{
-// SwRedlineMode eOld = pDoc->GetRedlineMode();
-// pDoc->SetRedlineMode_intern( ( eOld & ~REDLINE_IGNORE) | REDLINE_ON );
+// SwRedlineMode eOld = pDoc->GetRedlineMode();
+// pDoc->SetRedlineMode_intern( ( eOld & ~REDLINE_IGNORE) | REDLINE_ON );
if( pUnDel2 )
{
@@ -535,7 +535,7 @@ void SwUndoCompDoc::Redo( SwUndoIter& rIter )
if (pTmp) // #i19649#
pTmp->InvalidateRange();
-// pDoc->SetRedlineMode_intern( eOld );
+// pDoc->SetRedlineMode_intern( eOld );
}
SetPaM( rIter, TRUE );
diff --git a/sw/source/core/undo/unsect.cxx b/sw/source/core/undo/unsect.cxx
index a78f911f30f0..8d51db6b1aa9 100644
--- a/sw/source/core/undo/unsect.cxx
+++ b/sw/source/core/undo/unsect.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
@@ -34,7 +34,7 @@
#include <fmtcntnt.hxx>
#include <doc.hxx>
#include <docary.hxx>
-#include <swundo.hxx> // fuer die UndoIds
+#include <swundo.hxx> // fuer die UndoIds
#include <pam.hxx>
#include <ndtxt.hxx>
#include <undobj.hxx>
diff --git a/sw/source/core/undo/unsort.cxx b/sw/source/core/undo/unsort.cxx
index b89c08d9bed3..03aebaa89458 100644
--- a/sw/source/core/undo/unsort.cxx
+++ b/sw/source/core/undo/unsort.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
@@ -29,7 +29,7 @@
// MARKER(update_precomp.py): autogen include statement, do not remove
#include "precompiled_sw.hxx"
#include <doc.hxx>
-#include <swundo.hxx> // fuer die UndoIds
+#include <swundo.hxx> // fuer die UndoIds
#include <pam.hxx>
#include <swtable.hxx>
#include <ndtxt.hxx>
@@ -95,7 +95,7 @@ SwUndoSort::~SwUndoSort()
void SwUndoSort::Undo( SwUndoIter& rIter)
{
- SwDoc& rDoc = rIter.GetDoc();
+ SwDoc& rDoc = rIter.GetDoc();
if(pSortOpt->bTable)
{
// Undo Tabelle
@@ -144,7 +144,7 @@ void SwUndoSort::Undo( SwUndoIter& rIter)
// fuer die sorted Positions einen Index anlegen.
// JP 25.11.97: Die IndexList muss aber nach SourcePosition
- // aufsteigend sortiert aufgebaut werden
+ // aufsteigend sortiert aufgebaut werden
SwUndoSortList aIdxList( (BYTE)aSortList.Count() );
USHORT i;
@@ -225,7 +225,7 @@ void SwUndoSort::Redo( SwUndoIter& rIter)
USHORT i;
for( i = 0; i < aSortList.Count(); ++i)
- { // aktuelle Pos ist die Ausgangslage
+ { // aktuelle Pos ist die Ausgangslage
SwNodeIndex* pIdx = new SwNodeIndex( rDoc.GetNodes(),
aSortList[i]->SORT_TXT_TBL.TXT.nSource);
aIdxList.C40_INSERT( SwNodeIndex, pIdx, i );
diff --git a/sw/source/core/undo/unspnd.cxx b/sw/source/core/undo/unspnd.cxx
index f1fd1fda60da..875da9c9bca7 100644
--- a/sw/source/core/undo/unspnd.cxx
+++ b/sw/source/core/undo/unspnd.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
diff --git a/sw/source/core/undo/untbl.cxx b/sw/source/core/undo/untbl.cxx
index e6e450088b22..735c8c734039 100644
--- a/sw/source/core/undo/untbl.cxx
+++ b/sw/source/core/undo/untbl.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
@@ -42,7 +42,7 @@
#include <pam.hxx>
#include <cntfrm.hxx>
#include <tblsel.hxx>
-#include <swundo.hxx> // fuer die UndoIds
+#include <swundo.hxx> // fuer die UndoIds
#include <undobj.hxx>
#include <rolbck.hxx>
#include <ddefld.hxx>
@@ -225,7 +225,7 @@ SV_IMPL_PTRARR( _UndoTblCpyTbl_Entries, _UndoTblCpyTbl_EntryPtr )
USHORT __FAR_DATA aSave_BoxCntntSet[] = {
RES_CHRATR_COLOR, RES_CHRATR_CROSSEDOUT,
RES_CHRATR_FONT, RES_CHRATR_FONTSIZE,
- RES_CHRATR_POSTURE, RES_CHRATR_POSTURE,
+ RES_CHRATR_POSTURE, RES_CHRATR_POSTURE,
RES_CHRATR_SHADOWED, RES_CHRATR_WEIGHT,
RES_PARATR_ADJUST, RES_PARATR_ADJUST,
0 };
@@ -331,7 +331,7 @@ void SwUndoInsTbl::Redo( SwUndoIter& rUndoIter )
SwDDEFieldType* pNewType = (SwDDEFieldType*)rDoc.InsertFldType(
*pDDEFldType);
SwDDETable* pDDETbl = new SwDDETable( pTblNode->GetTable(), pNewType );
- pTblNode->SetNewTable( pDDETbl ); // setze die DDE-Tabelle
+ pTblNode->SetNewTable( pDDETbl ); // setze die DDE-Tabelle
delete pDDEFldType, pDDEFldType = 0;
}
@@ -488,7 +488,7 @@ void SwUndoTblToTxt::Undo( SwUndoIter& rUndoIter )
SwTableNode* pTblNd = rDoc.GetNodes().UndoTableToText( nSttNd, nEndNd, *pBoxSaves );
pTblNd->GetTable().SetTableModel( pTblSave->IsNewModel() );
SwTableFmt* pTableFmt = rDoc.MakeTblFrmFmt( sTblNm, rDoc.GetDfltFrmFmt() );
- pTableFmt->Add( &pTblNd->GetTable() ); // das Frame-Format setzen
+ pTableFmt->Add( &pTblNd->GetTable() ); // das Frame-Format setzen
pTblNd->GetTable().SetRowsToRepeat( nHdlnRpt );
// erzeuge die alte Tabellen Struktur
@@ -499,7 +499,7 @@ void SwUndoTblToTxt::Undo( SwUndoIter& rUndoIter )
SwDDEFieldType* pNewType = (SwDDEFieldType*)rDoc.InsertFldType(
*pDDEFldType);
SwDDETable* pDDETbl = new SwDDETable( pTblNd->GetTable(), pNewType );
- pTblNd->SetNewTable( pDDETbl, FALSE ); // setze die DDE-Tabelle
+ pTblNd->SetNewTable( pDDETbl, FALSE ); // setze die DDE-Tabelle
delete pDDEFldType, pDDEFldType = 0;
}
@@ -745,7 +745,7 @@ void SwUndoTxtToTbl::Undo( SwUndoIter& rUndoIter )
ULONG nTblNd = nSttNode;
if( nSttCntnt )
- ++nTblNd; // Node wurde vorher gesplittet
+ ++nTblNd; // Node wurde vorher gesplittet
SwNodeIndex aIdx( rDoc.GetNodes(), nTblNd );
SwTableNode* pTNd = rDoc.GetNodes()[ aIdx ]->GetTableNode();
OSL_ENSURE( pTNd, "keinen Tabellen-Node gefunden" );
@@ -813,7 +813,7 @@ void SwUndoTxtToTbl::Undo( SwUndoIter& rUndoIter )
}
}
- SetPaM( rUndoIter ); // manipulierten Bereich selectieren
+ SetPaM( rUndoIter ); // manipulierten Bereich selectieren
}
@@ -938,8 +938,8 @@ USHORT _SaveTable::AddFmt( SwFrmFmt* pFmt, bool bIsLine )
bIsLine ? aTableLineSetRange : aTableBoxSetRange );
pSet->Put( pFmt->GetAttrSet() );
//JP 20.04.98: Bug 49502 - wenn eine Formel gesetzt ist, nie den
- // Value mit sichern. Der muss gegebenfalls neu
- // errechnet werden!
+ // Value mit sichern. Der muss gegebenfalls neu
+ // errechnet werden!
//JP 30.07.98: Bug 54295 - Formeln immer im Klartext speichern
const SfxPoolItem* pItem;
if( SFX_ITEM_SET == pSet->GetItemState( RES_BOXATR_FORMULA, TRUE, &pItem ))
@@ -1272,7 +1272,7 @@ _SaveBox::_SaveBox( _SaveBox* pPrev, const SwTableBox& rBox, _SaveTable& rSTbl )
_SaveBox::~_SaveBox()
{
- if( ULONG_MAX == nSttNode ) // keine EndBox
+ if( ULONG_MAX == nSttNode ) // keine EndBox
delete Ptrs.pLine;
else
delete Ptrs.pCntntAttrs;
@@ -1284,7 +1284,7 @@ void _SaveBox::RestoreAttr( SwTableBox& rBox, _SaveTable& rSTbl )
{
rSTbl.NewFrmFmt( &rBox, FALSE, nItemSet, rBox.GetFrmFmt() );
- if( ULONG_MAX == nSttNode ) // keine EndBox
+ if( ULONG_MAX == nSttNode ) // keine EndBox
{
if( !rBox.GetTabLines().Count() )
{
@@ -1343,7 +1343,7 @@ void _SaveBox::RestoreAttr( SwTableBox& rBox, _SaveTable& rSTbl )
void _SaveBox::SaveCntntAttrs( SwDoc* pDoc )
{
- if( ULONG_MAX == nSttNode ) // keine EndBox
+ if( ULONG_MAX == nSttNode ) // keine EndBox
{
// weiter in der Line
Ptrs.pLine->SaveCntntAttrs( pDoc );
@@ -1385,7 +1385,7 @@ void _SaveBox::CreateNew( SwTable& rTbl, SwTableLine& rParent, _SaveTable& rSTbl
rSTbl.aFrmFmts.Replace( pFmt, nItemSet );
}
- if( ULONG_MAX == nSttNode ) // keine EndBox
+ if( ULONG_MAX == nSttNode ) // keine EndBox
{
SwTableBox* pNew = new SwTableBox( pFmt, 1, &rParent );
rParent.GetTabBoxes().C40_INSERT( SwTableBox, pNew, rParent.GetTabBoxes().Count() );
@@ -1950,7 +1950,7 @@ void SwUndoTblNdsChg::Redo( SwUndoIter& rUndoIter )
TblChgMode eOldMode = rTbl.GetTblChgMode();
rTbl.SetTblChgMode( (TblChgMode)nCount );
- rDoc.DoUndo( TRUE ); // wir brauchen die SaveSections!
+ rDoc.DoUndo( TRUE ); // wir brauchen die SaveSections!
SwUndoTblNdsChg* pUndo = 0;
switch( nSetColType & 0xff )
@@ -2152,7 +2152,7 @@ CHECKTABLE(pTblNd->GetTable())
pHistory->TmpRollback( &rDoc, 0 );
pHistory->SetTmpEnd( pHistory->Count() );
}
-// nTblNode = pTblNd->GetIndex();
+// nTblNode = pTblNd->GetIndex();
SwPaM* pPam = rUndoIter.pAktPam;
pPam->DeleteMark();
@@ -2408,14 +2408,14 @@ void SwUndoTblNumFmt::Redo( SwUndoIter& rIter )
OSL_ENSURE( pBox, "keine TabellenBox gefunden" );
SwFrmFmt* pBoxFmt = pBox->ClaimFrmFmt();
- if( bNewFmt || bNewFml || bNewValue )
+ if( bNewFmt || bNewFml || bNewValue )
{
SfxItemSet aBoxSet( rDoc.GetAttrPool(),
RES_BOXATR_FORMAT, RES_BOXATR_VALUE );
// JP 15.01.99: Nur Attribute zuruecksetzen reicht nicht.
- // Sorge dafuer, das der Text auch entsprechend
- // formatiert wird!
+ // Sorge dafuer, das der Text auch entsprechend
+ // formatiert wird!
pBoxFmt->LockModify();
if( bNewFml )
@@ -2447,8 +2447,8 @@ void SwUndoTblNumFmt::Redo( SwUndoIter& rIter )
aBoxSet.Put( SwTblBoxValue( fNum ));
// JP 15.01.99: Nur Attribute zuruecksetzen reicht nicht.
- // Sorge dafuer, das der Text auch entsprechend
- // formatiert wird!
+ // Sorge dafuer, das der Text auch entsprechend
+ // formatiert wird!
pBoxFmt->LockModify();
pBoxFmt->ResetFmtAttr( RES_BOXATR_FORMULA );
pBoxFmt->UnlockModify();
@@ -2464,8 +2464,8 @@ void SwUndoTblNumFmt::Redo( SwUndoIter& rIter )
// es ist keine Zahl
// JP 15.01.99: Nur Attribute zuruecksetzen reicht nicht.
- // Sorge dafuer, das der Text auch entsprechend
- // formatiert wird!
+ // Sorge dafuer, das der Text auch entsprechend
+ // formatiert wird!
pBoxFmt->SetFmtAttr( *GetDfltAttr( RES_BOXATR_FORMAT ));
pBoxFmt->ResetFmtAttr( RES_BOXATR_FORMAT, RES_BOXATR_VALUE );
@@ -3117,7 +3117,7 @@ void SwUndoMergeTbl::Undo( SwUndoIter& rIter )
pTbl = &pNew->GetTable();
pTbl->GetFrmFmt()->SetName( aName );
-// pSavTbl->CreateNew( *pTbl, FALSE );
+// pSavTbl->CreateNew( *pTbl, FALSE );
pSavTbl->RestoreAttr( *pTbl );
@@ -3184,7 +3184,7 @@ void SwUndoMergeTbl::SaveFormula( SwHistory& rHistory )
void InsertSort( SvUShorts& rArr, USHORT nIdx, USHORT* pInsPos )
{
- USHORT nO = rArr.Count(), nM, nU = 0;
+ USHORT nO = rArr.Count(), nM, nU = 0;
if( nO > 0 )
{
nO--;
@@ -3211,7 +3211,7 @@ void InsertSort( SvUShorts& rArr, USHORT nIdx, USHORT* pInsPos )
void InsertSort( SvULongs& rArr, ULONG nIdx, USHORT* pInsPos )
{
- USHORT nO = rArr.Count(), nM, nU = 0;
+ USHORT nO = rArr.Count(), nM, nU = 0;
if( nO > 0 )
{
nO--;
diff --git a/sw/source/core/undo/untblk.cxx b/sw/source/core/undo/untblk.cxx
index f3d7dbecb785..7eb48657e99b 100644
--- a/sw/source/core/undo/untblk.cxx
+++ b/sw/source/core/undo/untblk.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 <frmfmt.hxx>
#include <doc.hxx>
#include <docary.hxx>
-#include <swundo.hxx> // fuer die UndoIds
+#include <swundo.hxx> // fuer die UndoIds
#include <pam.hxx>
#include <ndtxt.hxx>
#include <undobj.hxx>
@@ -61,7 +61,7 @@ SwUndoInserts::SwUndoInserts( SwUndoId nUndoId, const SwPaM& rPam )
if( pTxtNd->HasSwAttrSet() )
pHistory->CopyFmtAttr( *pTxtNd->GetpSwAttrSet(), nSttNode );
- if( !nSttCntnt ) // dann werden Flys mitgenommen !!
+ if( !nSttCntnt ) // dann werden Flys mitgenommen !!
{
USHORT nArrLen = pDoc->GetSpzFrmFmts()->Count();
for( USHORT n = 0; n < nArrLen; ++n )
@@ -106,9 +106,9 @@ void SwUndoInserts::SetInsertRange( const SwPaM& rPam, BOOL bScanFlys,
nSttNode = pTmpPos->nNode.GetIndex();
nSttCntnt = pTmpPos->nContent.GetIndex();
- if( !bSttIsTxtNd ) // wird eine Tabellenselektion eingefuegt,
+ if( !bSttIsTxtNd ) // wird eine Tabellenselektion eingefuegt,
{
- ++nSttNode; // dann stimmt der CopyPam nicht ganz
+ ++nSttNode; // dann stimmt der CopyPam nicht ganz
bSttWasTxtNd = FALSE;
}
}
@@ -147,11 +147,11 @@ void SwUndoInserts::SetInsertRange( const SwPaM& rPam, BOOL bScanFlys,
SwUndoInserts::~SwUndoInserts()
{
- if( pPos ) // loesche noch den Bereich aus dem UndoNodes Array
+ if( pPos ) // loesche noch den Bereich aus dem UndoNodes Array
{
// Insert speichert den Inhalt in der IconSection
SwNodes& rUNds = pPos->nNode.GetNodes();
- if( pPos->nContent.GetIndex() ) // nicht den gesamten Node loeschen
+ if( pPos->nContent.GetIndex() ) // nicht den gesamten Node loeschen
{
SwTxtNode* pTxtNd = pPos->nNode.GetNode().GetTxtNode();
OSL_ENSURE( pTxtNd, "kein TextNode, aus dem geloescht werden soll" );
@@ -231,7 +231,7 @@ void SwUndoInserts::Undo( SwUndoIter& rUndoIter )
SwTxtNode* pTxtNode = rIdx.GetNode().GetTxtNode();
if( pTxtNode )
{
- if( !pTxtFmtColl ) // falls 0, dann war hier auch kein TextNode,
+ if( !pTxtFmtColl ) // falls 0, dann war hier auch kein TextNode,
{ // dann muss dieser geloescht werden,
SwNodeIndex aDelIdx( rIdx );
rIdx++;