diff options
Diffstat (limited to 'sc/source/ui/undo')
-rw-r--r-- | sc/source/ui/undo/areasave.cxx | 30 | ||||
-rw-r--r-- | sc/source/ui/undo/refundo.cxx | 18 | ||||
-rw-r--r-- | sc/source/ui/undo/target.cxx | 2 | ||||
-rw-r--r-- | sc/source/ui/undo/undobase.cxx | 44 | ||||
-rw-r--r-- | sc/source/ui/undo/undoblk.cxx | 260 | ||||
-rw-r--r-- | sc/source/ui/undo/undoblk2.cxx | 18 | ||||
-rw-r--r-- | sc/source/ui/undo/undoblk3.cxx | 364 | ||||
-rw-r--r-- | sc/source/ui/undo/undocell.cxx | 94 | ||||
-rw-r--r-- | sc/source/ui/undo/undodat.cxx | 260 | ||||
-rw-r--r-- | sc/source/ui/undo/undodraw.cxx | 4 | ||||
-rw-r--r-- | sc/source/ui/undo/undoolk.cxx | 4 | ||||
-rw-r--r-- | sc/source/ui/undo/undostyl.cxx | 26 | ||||
-rw-r--r-- | sc/source/ui/undo/undotab.cxx | 194 | ||||
-rw-r--r-- | sc/source/ui/undo/undoutil.cxx | 2 |
14 files changed, 660 insertions, 660 deletions
diff --git a/sc/source/ui/undo/areasave.cxx b/sc/source/ui/undo/areasave.cxx index 9f2b4eb7f03c..54d09946bab3 100644 --- a/sc/source/ui/undo/areasave.cxx +++ b/sc/source/ui/undo/areasave.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 @@ -45,22 +45,22 @@ // ----------------------------------------------------------------------- ScAreaLinkSaver::ScAreaLinkSaver( const ScAreaLink& rSource ) : - aFileName ( rSource.GetFile() ), - aFilterName ( rSource.GetFilter() ), - aOptions ( rSource.GetOptions() ), - aSourceArea ( rSource.GetSource() ), - aDestArea ( rSource.GetDestArea() ), + aFileName ( rSource.GetFile() ), + aFilterName ( rSource.GetFilter() ), + aOptions ( rSource.GetOptions() ), + aSourceArea ( rSource.GetSource() ), + aDestArea ( rSource.GetDestArea() ), nRefresh ( rSource.GetRefreshDelay() ) // seconds { } ScAreaLinkSaver::ScAreaLinkSaver( const ScAreaLinkSaver& rCopy ) : ScDataObject(), - aFileName ( rCopy.aFileName ), - aFilterName ( rCopy.aFilterName ), - aOptions ( rCopy.aOptions ), - aSourceArea ( rCopy.aSourceArea ), - aDestArea ( rCopy.aDestArea ), + aFileName ( rCopy.aFileName ), + aFilterName ( rCopy.aFilterName ), + aOptions ( rCopy.aOptions ), + aSourceArea ( rCopy.aSourceArea ), + aDestArea ( rCopy.aDestArea ), nRefresh ( rCopy.nRefresh ) { } @@ -69,16 +69,16 @@ ScAreaLinkSaver::~ScAreaLinkSaver() { } -ScDataObject* ScAreaLinkSaver::Clone() const +ScDataObject* ScAreaLinkSaver::Clone() const { return new ScAreaLinkSaver( *this ); } BOOL ScAreaLinkSaver::IsEqualSource( const ScAreaLink& rCompare ) const { - return ( aFileName == rCompare.GetFile() && + return ( aFileName == rCompare.GetFile() && aFilterName == rCompare.GetFilter() && - aOptions == rCompare.GetOptions() && + aOptions == rCompare.GetOptions() && aSourceArea == rCompare.GetSource() && nRefresh == rCompare.GetRefreshDelay() ); } @@ -128,7 +128,7 @@ ScAreaLinkSaveCollection::~ScAreaLinkSaveCollection() { } -ScDataObject* ScAreaLinkSaveCollection::Clone() const +ScDataObject* ScAreaLinkSaveCollection::Clone() const { return new ScAreaLinkSaveCollection( *this ); } diff --git a/sc/source/ui/undo/refundo.cxx b/sc/source/ui/undo/refundo.cxx index e4ca41b3ed30..3fd8fbf82f00 100644 --- a/sc/source/ui/undo/refundo.cxx +++ b/sc/source/ui/undo/refundo.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 @@ -59,14 +59,14 @@ ScRefUndoData::ScRefUndoData( const ScDocument* pDoc ) : ScDBCollection* pOldDBColl = pDoc->GetDBCollection(); pDBCollection = pOldDBColl ? new ScDBCollection(*pOldDBColl) : NULL; - ScRangeName* pOldRanges = ((ScDocument*)pDoc)->GetRangeName(); //! const + ScRangeName* pOldRanges = ((ScDocument*)pDoc)->GetRangeName(); //! const pRangeName = pOldRanges ? new ScRangeName(*pOldRanges) : NULL; - pPrintRanges = pDoc->CreatePrintRangeSaver(); // neu erzeugt + pPrintRanges = pDoc->CreatePrintRangeSaver(); // neu erzeugt - //! bei Pivot nur Bereiche merken ??? + //! bei Pivot nur Bereiche merken ??? - ScDPCollection* pOldDP = ((ScDocument*)pDoc)->GetDPCollection(); //! const + ScDPCollection* pOldDP = ((ScDocument*)pDoc)->GetDPCollection(); //! const pDPCollection = pOldDP ? new ScDPCollection(*pOldDP) : NULL; ScConditionalFormatList* pOldCond = pDoc->GetCondFormList(); @@ -80,7 +80,7 @@ ScRefUndoData::ScRefUndoData( const ScDocument* pDoc ) : pChartListenerCollection = pOldChartListenerCollection ? new ScChartListenerCollection( *pOldChartListenerCollection ) : NULL; - pAreaLinks = ScAreaLinkSaveCollection::CreateFromDoc(pDoc); // returns NULL if empty + pAreaLinks = ScAreaLinkSaveCollection::CreateFromDoc(pDoc); // returns NULL if empty const_cast<ScDocument*>(pDoc)->BeginUnoRefUndo(); } @@ -108,7 +108,7 @@ void ScRefUndoData::DeleteUnchanged( const ScDocument* pDoc ) } if (pRangeName) { - ScRangeName* pNewRanges = ((ScDocument*)pDoc)->GetRangeName(); //! const + ScRangeName* pNewRanges = ((ScDocument*)pDoc)->GetRangeName(); //! const if ( pNewRanges && *pRangeName == *pNewRanges ) DELETEZ(pRangeName); } @@ -123,7 +123,7 @@ void ScRefUndoData::DeleteUnchanged( const ScDocument* pDoc ) if (pDPCollection) { - ScDPCollection* pNewDP = ((ScDocument*)pDoc)->GetDPCollection(); //! const + ScDPCollection* pNewDP = ((ScDocument*)pDoc)->GetDPCollection(); //! const if ( pNewDP && pDPCollection->RefsEqual(*pNewDP) ) DELETEZ(pDPCollection); } @@ -197,7 +197,7 @@ void ScRefUndoData::DoUndo( ScDocument* pDoc, BOOL bUndoRefFirst ) if (pDBCollection || pRangeName) { BOOL bOldAutoCalc = pDoc->GetAutoCalc(); - pDoc->SetAutoCalc( FALSE ); // Mehrfachberechnungen vermeiden + pDoc->SetAutoCalc( FALSE ); // Mehrfachberechnungen vermeiden pDoc->CompileAll(); pDoc->SetDirty(); pDoc->SetAutoCalc( bOldAutoCalc ); diff --git a/sc/source/ui/undo/target.cxx b/sc/source/ui/undo/target.cxx index 492c18bebc9a..6c7c29f08d52 100644 --- a/sc/source/ui/undo/target.cxx +++ b/sc/source/ui/undo/target.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/sc/source/ui/undo/undobase.cxx b/sc/source/ui/undo/undobase.cxx index e1d7c65c5072..38e7addc42aa 100644 --- a/sc/source/ui/undo/undobase.cxx +++ b/sc/source/ui/undo/undobase.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 @@ -48,7 +48,7 @@ // STATIC DATA ----------------------------------------------------------- -TYPEINIT1(ScSimpleUndo, SfxUndoAction); +TYPEINIT1(ScSimpleUndo, SfxUndoAction); TYPEINIT1(ScBlockUndo, ScSimpleUndo); TYPEINIT1(ScMoveUndo, ScSimpleUndo); TYPEINIT1(ScDBFuncUndo, ScSimpleUndo); @@ -69,17 +69,17 @@ __EXPORT ScSimpleUndo::~ScSimpleUndo() BOOL __EXPORT ScSimpleUndo::Merge( SfxUndoAction *pNextAction ) { - // Zu jeder Undo-Action kann eine SdrUndoGroup fuer das Aktualisieren - // der Detektiv-Pfeile gehoeren. - // DetectiveRefresh kommt immer hinterher, die SdrUndoGroup ist in - // eine ScUndoDraw Action verpackt. - // Nur beim automatischen Aktualisieren wird AddUndoAction mit - // bTryMerg=TRUE gerufen. + // Zu jeder Undo-Action kann eine SdrUndoGroup fuer das Aktualisieren + // der Detektiv-Pfeile gehoeren. + // DetectiveRefresh kommt immer hinterher, die SdrUndoGroup ist in + // eine ScUndoDraw Action verpackt. + // Nur beim automatischen Aktualisieren wird AddUndoAction mit + // bTryMerg=TRUE gerufen. if ( !pDetectiveUndo && pNextAction->ISA(ScUndoDraw) ) { - // SdrUndoAction aus der ScUndoDraw Action uebernehmen, - // ScUndoDraw wird dann vom UndoManager geloescht + // SdrUndoAction aus der ScUndoDraw Action uebernehmen, + // ScUndoDraw wird dann vom UndoManager geloescht ScUndoDraw* pCalcUndo = (ScUndoDraw*)pNextAction; pDetectiveUndo = pCalcUndo->GetDrawUndo(); @@ -96,9 +96,9 @@ void ScSimpleUndo::BeginUndo() ScTabViewShell* pViewShell = ScTabViewShell::GetActiveViewShell(); if (pViewShell) - pViewShell->HideAllCursors(); // z.B. wegen zusammengefassten Zellen + pViewShell->HideAllCursors(); // z.B. wegen zusammengefassten Zellen - // detective updates happened last, must be undone first + // detective updates happened last, must be undone first if (pDetectiveUndo) pDetectiveUndo->Undo(); } @@ -120,11 +120,11 @@ void ScSimpleUndo::EndUndo() void ScSimpleUndo::BeginRedo() { - pDocShell->SetInUndo( TRUE ); //! eigenes Flag fuer Redo? + pDocShell->SetInUndo( TRUE ); //! eigenes Flag fuer Redo? ScTabViewShell* pViewShell = ScTabViewShell::GetActiveViewShell(); if (pViewShell) - pViewShell->HideAllCursors(); // z.B. wegen zusammengefassten Zellen + pViewShell->HideAllCursors(); // z.B. wegen zusammengefassten Zellen } void ScSimpleUndo::EndRedo() @@ -145,14 +145,14 @@ void ScSimpleUndo::EndRedo() pDocShell->SetInUndo( FALSE ); } -void ScSimpleUndo::ShowTable( SCTAB nTab ) // static +void ScSimpleUndo::ShowTable( SCTAB nTab ) // static { ScTabViewShell* pViewShell = ScTabViewShell::GetActiveViewShell(); if (pViewShell) pViewShell->SetTabNo( nTab ); } -void ScSimpleUndo::ShowTable( const ScRange& rRange ) // static +void ScSimpleUndo::ShowTable( const ScRange& rRange ) // static { ScTabViewShell* pViewShell = ScTabViewShell::GetActiveViewShell(); if (pViewShell) @@ -160,8 +160,8 @@ void ScSimpleUndo::ShowTable( const ScRange& rRange ) // static SCTAB nStart = rRange.aStart.Tab(); SCTAB nEnd = rRange.aEnd.Tab(); SCTAB nTab = pViewShell->GetViewData()->GetTabNo(); - if ( nTab < nStart || nTab > nEnd ) // wenn nicht im Bereich: - pViewShell->SetTabNo( nStart ); // auf erste des Bereiches + if ( nTab < nStart || nTab > nEnd ) // wenn nicht im Bereich: + pViewShell->SetTabNo( nStart ); // auf erste des Bereiches } } @@ -235,13 +235,13 @@ BOOL ScBlockUndo::AdjustHeight() } else { - // Zoom auf 100 lassen + // Zoom auf 100 lassen nPPTX = ScGlobal::nScreenPPTX; nPPTY = ScGlobal::nScreenPPTY; } BOOL bRet = pDoc->SetOptimalHeight( aBlockRange.aStart.Row(), aBlockRange.aEnd.Row(), -/*!*/ aBlockRange.aStart.Tab(), 0, &aVirtDev, +/*!*/ aBlockRange.aStart.Tab(), 0, &aVirtDev, nPPTX, nPPTY, aZoomX, aZoomY, FALSE ); if (bRet) @@ -257,7 +257,7 @@ void ScBlockUndo::ShowBlock() ScTabViewShell* pViewShell = ScTabViewShell::GetActiveViewShell(); if (pViewShell) { - ShowTable( aBlockRange ); // bei mehreren Tabs im Range ist jede davon gut + ShowTable( aBlockRange ); // bei mehreren Tabs im Range ist jede davon gut pViewShell->MoveCursorAbs( aBlockRange.aStart.Col(), aBlockRange.aStart.Row(), SC_FOLLOW_JUMP, FALSE, FALSE ); SCTAB nTab = pViewShell->GetViewData()->GetTabNo(); @@ -266,7 +266,7 @@ void ScBlockUndo::ShowBlock() aRange.aEnd.SetTab( nTab ); pViewShell->MarkRange( aRange ); - // nicht per SetMarkArea an MarkData, wegen evtl. fehlendem Paint + // nicht per SetMarkArea an MarkData, wegen evtl. fehlendem Paint } } diff --git a/sc/source/ui/undo/undoblk.cxx b/sc/source/ui/undo/undoblk.cxx index eda49aa114c5..c46a59d80722 100644 --- a/sc/source/ui/undo/undoblk.cxx +++ b/sc/source/ui/undo/undoblk.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 @@ -70,37 +70,37 @@ // STATIC DATA ----------------------------------------------------------- -TYPEINIT1(ScUndoInsertCells, SfxUndoAction); -TYPEINIT1(ScUndoDeleteCells, SfxUndoAction); -TYPEINIT1(ScUndoDeleteMulti, SfxUndoAction); -TYPEINIT1(ScUndoCut, ScBlockUndo); -TYPEINIT1(ScUndoPaste, SfxUndoAction); -TYPEINIT1(ScUndoDragDrop, SfxUndoAction); -TYPEINIT1(ScUndoListNames, SfxUndoAction); -TYPEINIT1(ScUndoUseScenario, SfxUndoAction); -TYPEINIT1(ScUndoSelectionStyle, SfxUndoAction); -TYPEINIT1(ScUndoEnterMatrix, ScBlockUndo); -TYPEINIT1(ScUndoIndent, ScBlockUndo); -TYPEINIT1(ScUndoTransliterate, ScBlockUndo); -TYPEINIT1(ScUndoClearItems, ScBlockUndo); -TYPEINIT1(ScUndoRemoveBreaks, SfxUndoAction); -TYPEINIT1(ScUndoRemoveMerge, ScBlockUndo); -TYPEINIT1(ScUndoBorder, ScBlockUndo); +TYPEINIT1(ScUndoInsertCells, SfxUndoAction); +TYPEINIT1(ScUndoDeleteCells, SfxUndoAction); +TYPEINIT1(ScUndoDeleteMulti, SfxUndoAction); +TYPEINIT1(ScUndoCut, ScBlockUndo); +TYPEINIT1(ScUndoPaste, SfxUndoAction); +TYPEINIT1(ScUndoDragDrop, SfxUndoAction); +TYPEINIT1(ScUndoListNames, SfxUndoAction); +TYPEINIT1(ScUndoUseScenario, SfxUndoAction); +TYPEINIT1(ScUndoSelectionStyle, SfxUndoAction); +TYPEINIT1(ScUndoEnterMatrix, ScBlockUndo); +TYPEINIT1(ScUndoIndent, ScBlockUndo); +TYPEINIT1(ScUndoTransliterate, ScBlockUndo); +TYPEINIT1(ScUndoClearItems, ScBlockUndo); +TYPEINIT1(ScUndoRemoveBreaks, SfxUndoAction); +TYPEINIT1(ScUndoRemoveMerge, ScBlockUndo); +TYPEINIT1(ScUndoBorder, ScBlockUndo); // To Do: -/*A*/ // SetOptimalHeight auf Dokument, wenn keine View -/*B*/ // gelinkte Tabellen -/*C*/ // ScArea -//? // spaeter mal pruefen +/*A*/ // SetOptimalHeight auf Dokument, wenn keine View +/*B*/ // gelinkte Tabellen +/*C*/ // ScArea +//? // spaeter mal pruefen // ----------------------------------------------------------------------- // -// Zellen einfuegen +// Zellen einfuegen // Zeilen einfuegen -// einzeln oder Block +// einzeln oder Block // ScUndoInsertCells::ScUndoInsertCells( ScDocShell* pNewDocShell, @@ -116,13 +116,13 @@ ScUndoInsertCells::ScUndoInsertCells( ScDocShell* pNewDocShell, bPartOfPaste( bNewPartOfPaste ), pPasteUndo( NULL ) { - if (eCmd == INS_INSROWS) // ganze Zeilen? + if (eCmd == INS_INSROWS) // ganze Zeilen? { aEffRange.aStart.SetCol(0); aEffRange.aEnd.SetCol(MAXCOL); } - if (eCmd == INS_INSCOLS) // ganze Spalten? + if (eCmd == INS_INSCOLS) // ganze Spalten? { aEffRange.aStart.SetRow(0); aEffRange.aEnd.SetRow(MAXROW); @@ -145,7 +145,7 @@ String __EXPORT ScUndoInsertCells::GetComment() const BOOL ScUndoInsertCells::Merge( SfxUndoAction* pNextAction ) { - // If a paste undo action has already been added, append (detective) action there. + // If a paste undo action has already been added, append (detective) action there. if ( pPasteUndo ) return pPasteUndo->Merge( pNextAction ); @@ -155,16 +155,16 @@ BOOL ScUndoInsertCells::Merge( SfxUndoAction* pNextAction ) SfxUndoAction* pWrappedAction = pWrapper->GetWrappedUndo(); if ( pWrappedAction && pWrappedAction->ISA( ScUndoPaste ) ) { - // Store paste action if this is part of paste with inserting cells. - // A list action isn't used because Repeat wouldn't work (insert wrong cells). + // Store paste action if this is part of paste with inserting cells. + // A list action isn't used because Repeat wouldn't work (insert wrong cells). pPasteUndo = pWrappedAction; - pWrapper->ForgetWrappedUndo(); // pWrapper is deleted by UndoManager + pWrapper->ForgetWrappedUndo(); // pWrapper is deleted by UndoManager return TRUE; } } - // Call base class for detective handling + // Call base class for detective handling return ScMoveUndo::Merge( pNextAction ); } @@ -242,7 +242,7 @@ void ScUndoInsertCells::DoChange( const BOOL bUndo ) } } -//? Undo fuer herausgeschobene Attribute ? +//? Undo fuer herausgeschobene Attribute ? USHORT nPaint = PAINT_GRID; ScTabViewShell* pViewShell = ScTabViewShell::GetActiveViewShell(); @@ -265,14 +265,14 @@ void ScUndoInsertCells::DoChange( const BOOL bUndo ) } break; case INS_INSCOLS: - nPaint |= PAINT_TOP; // obere Leiste + nPaint |= PAINT_TOP; // obere Leiste case INS_CELLSRIGHT: for( i=0; i<nCount; i++ ) { - aWorkRange.aEnd.SetCol(MAXCOL); // bis ganz nach rechts + aWorkRange.aEnd.SetCol(MAXCOL); // bis ganz nach rechts if ( pDocShell->AdjustRowHeight( aWorkRange.aStart.Row(), aWorkRange.aEnd.Row(), pTabs[i]) ) - { // AdjustDraw zeichnet PAINT_TOP nicht, - aWorkRange.aStart.SetCol(0); // daher so geloest + { // AdjustDraw zeichnet PAINT_TOP nicht, + aWorkRange.aStart.SetCol(0); // daher so geloest aWorkRange.aEnd.SetRow(MAXROW); nPaint |= PAINT_LEFT; } @@ -297,9 +297,9 @@ void ScUndoInsertCells::DoChange( const BOOL bUndo ) void __EXPORT ScUndoInsertCells::Undo() { if ( pPasteUndo ) - pPasteUndo->Undo(); // undo paste first + pPasteUndo->Undo(); // undo paste first - WaitObject aWait( pDocShell->GetActiveDialogParent() ); // wichtig wegen TrackFormulas bei UpdateReference + WaitObject aWait( pDocShell->GetActiveDialogParent() ); // wichtig wegen TrackFormulas bei UpdateReference BeginUndo(); DoChange( TRUE ); EndUndo(); @@ -307,13 +307,13 @@ void __EXPORT ScUndoInsertCells::Undo() void __EXPORT ScUndoInsertCells::Redo() { - WaitObject aWait( pDocShell->GetActiveDialogParent() ); // wichtig wegen TrackFormulas bei UpdateReference + WaitObject aWait( pDocShell->GetActiveDialogParent() ); // wichtig wegen TrackFormulas bei UpdateReference BeginRedo(); DoChange( FALSE ); EndRedo(); if ( pPasteUndo ) - pPasteUndo->Redo(); // redo paste last + pPasteUndo->Redo(); // redo paste last } void __EXPORT ScUndoInsertCells::Repeat(SfxRepeatTarget& rTarget) @@ -322,8 +322,8 @@ void __EXPORT ScUndoInsertCells::Repeat(SfxRepeatTarget& rTarget) { if ( pPasteUndo ) { - // #94115# Repeat for paste with inserting cells is handled completely - // by the Paste undo action + // #94115# Repeat for paste with inserting cells is handled completely + // by the Paste undo action pPasteUndo->Repeat( rTarget ); } @@ -340,9 +340,9 @@ BOOL __EXPORT ScUndoInsertCells::CanRepeat(SfxRepeatTarget& rTarget) const // ----------------------------------------------------------------------- // -// Zellen loeschen +// Zellen loeschen // Zeilen loeschen -// einzeln oder Block +// einzeln oder Block // ScUndoDeleteCells::ScUndoDeleteCells( ScDocShell* pNewDocShell, @@ -355,13 +355,13 @@ ScUndoDeleteCells::ScUndoDeleteCells( ScDocShell* pNewDocShell, pScenarios( pNewScenarios ), eCmd( eNewCmd ) { - if (eCmd == DEL_DELROWS) // gaze Zeilen? + if (eCmd == DEL_DELROWS) // gaze Zeilen? { aEffRange.aStart.SetCol(0); aEffRange.aEnd.SetCol(MAXCOL); } - if (eCmd == DEL_DELCOLS) // ganze Spalten? + if (eCmd == DEL_DELCOLS) // ganze Spalten? { aEffRange.aStart.SetRow(0); aEffRange.aEnd.SetRow(MAXROW); @@ -461,7 +461,7 @@ void ScUndoDeleteCells::DoChange( const BOOL bUndo ) { if ( eCmd==DEL_DELCOLS || eCmd==DEL_CELLSLEFT ) aWorkRange.aEnd.SetCol(MAXCOL); - if ( eCmd==DEL_DELROWS || eCmd==DEL_CELLSUP ) + if ( eCmd==DEL_DELROWS || eCmd==DEL_CELLSUP ) aWorkRange.aEnd.SetRow(MAXROW); ScMarkData aMarkData; aMarkData.SelectOneTable( aWorkRange.aStart.Tab() ); @@ -499,11 +499,11 @@ void ScUndoDeleteCells::DoChange( const BOOL bUndo ) } break; case DEL_DELCOLS: - nPaint |= PAINT_TOP; // obere Leiste + nPaint |= PAINT_TOP; // obere Leiste case DEL_CELLSLEFT: for( i=0; i<nCount; i++ ) { - aWorkRange.aEnd.SetCol(MAXCOL); // bis ganz nach rechts + aWorkRange.aEnd.SetCol(MAXCOL); // bis ganz nach rechts if ( pDocShell->AdjustRowHeight( aWorkRange.aStart.Row(), aWorkRange.aEnd.Row(), pTabs[i] ) ) { aWorkRange.aStart.SetCol(0); @@ -526,12 +526,12 @@ void ScUndoDeleteCells::DoChange( const BOOL bUndo ) // Markierung erst nach EndUndo pDocShell->PostDataChanged(); - // CellContentChanged kommt mit der Markierung + // CellContentChanged kommt mit der Markierung } void __EXPORT ScUndoDeleteCells::Undo() { - WaitObject aWait( pDocShell->GetActiveDialogParent() ); // wichtig wegen TrackFormulas bei UpdateReference + WaitObject aWait( pDocShell->GetActiveDialogParent() ); // wichtig wegen TrackFormulas bei UpdateReference BeginUndo(); DoChange( TRUE ); EndUndo(); @@ -550,7 +550,7 @@ void __EXPORT ScUndoDeleteCells::Undo() void __EXPORT ScUndoDeleteCells::Redo() { - WaitObject aWait( pDocShell->GetActiveDialogParent() ); // wichtig wegen TrackFormulas bei UpdateReference + WaitObject aWait( pDocShell->GetActiveDialogParent() ); // wichtig wegen TrackFormulas bei UpdateReference BeginRedo(); DoChange( FALSE); EndRedo(); @@ -558,7 +558,7 @@ void __EXPORT ScUndoDeleteCells::Redo() ScTabViewShell* pViewShell = ScTabViewShell::GetActiveViewShell(); if (pViewShell) - pViewShell->DoneBlockMode(); // aktuelle weg + pViewShell->DoneBlockMode(); // aktuelle weg } void __EXPORT ScUndoDeleteCells::Repeat(SfxRepeatTarget& rTarget) @@ -575,7 +575,7 @@ BOOL __EXPORT ScUndoDeleteCells::CanRepeat(SfxRepeatTarget& rTarget) const // ----------------------------------------------------------------------- // -// Zellen loeschen auf Mehrfachselektion +// Zellen loeschen auf Mehrfachselektion // ScUndoDeleteMulti::ScUndoDeleteMulti( ScDocShell* pNewDocShell, @@ -600,7 +600,7 @@ __EXPORT ScUndoDeleteMulti::~ScUndoDeleteMulti() String __EXPORT ScUndoDeleteMulti::GetComment() const { - return ScGlobal::GetRscString( STR_UNDO_DELETECELLS ); // wie DeleteCells + return ScGlobal::GetRscString( STR_UNDO_DELETECELLS ); // wie DeleteCells } void ScUndoDeleteMulti::DoChange() const @@ -677,14 +677,14 @@ void ScUndoDeleteMulti::SetChangeTrack() void __EXPORT ScUndoDeleteMulti::Undo() { - WaitObject aWait( pDocShell->GetActiveDialogParent() ); // wichtig wegen TrackFormulas bei UpdateReference + WaitObject aWait( pDocShell->GetActiveDialogParent() ); // wichtig wegen TrackFormulas bei UpdateReference BeginUndo(); ScDocument* pDoc = pDocShell->GetDocument(); SCCOLROW* pOneRange; SCCOLROW nRangeNo; - // rueckwaerts geloescht -> vorwaerts einfuegen + // rueckwaerts geloescht -> vorwaerts einfuegen pOneRange = pRanges; for (nRangeNo=0; nRangeNo<nRangeCnt; nRangeNo++) { @@ -714,8 +714,8 @@ void __EXPORT ScUndoDeleteMulti::Undo() DoChange(); - //! Markierung wieder einzeichnen - //! geht im Moment nicht, da keine Daten fuer Markierung vorhanden! + //! Markierung wieder einzeichnen + //! geht im Moment nicht, da keine Daten fuer Markierung vorhanden! EndUndo(); SFX_APP()->Broadcast( SfxSimpleHint( SC_HINT_AREALINKS_CHANGED ) ); @@ -723,7 +723,7 @@ void __EXPORT ScUndoDeleteMulti::Undo() void __EXPORT ScUndoDeleteMulti::Redo() { - WaitObject aWait( pDocShell->GetActiveDialogParent() ); // wichtig wegen TrackFormulas bei UpdateReference + WaitObject aWait( pDocShell->GetActiveDialogParent() ); // wichtig wegen TrackFormulas bei UpdateReference BeginRedo(); ScDocument* pDoc = pDocShell->GetDocument(); @@ -744,10 +744,10 @@ void __EXPORT ScUndoDeleteMulti::Redo() DoChange(); -//! Markierung loeschen, derzeit unnoetig (s.o.) -//! ScTabViewShell* pViewShell = ScTabViewShell::GetActiveViewShell(); -//! if (pViewShell) -//! DoneBlockMode(); +//! Markierung loeschen, derzeit unnoetig (s.o.) +//! ScTabViewShell* pViewShell = ScTabViewShell::GetActiveViewShell(); +//! if (pViewShell) +//! DoneBlockMode(); EndRedo(); SFX_APP()->Broadcast( SfxSimpleHint( SC_HINT_AREALINKS_CHANGED ) ); @@ -755,7 +755,7 @@ void __EXPORT ScUndoDeleteMulti::Redo() void __EXPORT ScUndoDeleteMulti::Repeat(SfxRepeatTarget& rTarget) { - // DeleteCells, falls einfache Selektion + // DeleteCells, falls einfache Selektion if (rTarget.ISA(ScTabViewTarget)) ((ScTabViewTarget&)rTarget).GetViewShell()->DeleteCells( DEL_DELROWS, TRUE ); } @@ -768,7 +768,7 @@ BOOL __EXPORT ScUndoDeleteMulti::CanRepeat(SfxRepeatTarget& rTarget) const // ----------------------------------------------------------------------- // -// Ausschneiden (Cut) +// Ausschneiden (Cut) // ScUndoCut::ScUndoCut( ScDocShell* pNewDocShell, @@ -810,7 +810,7 @@ void ScUndoCut::DoChange( const BOOL bUndo ) // do not undo/redo objects and note captions, they are handled via drawing undo USHORT nUndoFlags = (IDF_ALL & ~IDF_OBJECTS) | IDF_NOCAPTIONS; - if (bUndo) // nur bei Undo + if (bUndo) // nur bei Undo { // all sheets - CopyToDocument skips those that don't exist in pUndoDoc SCTAB nTabCount = pDoc->GetTableCount(); @@ -822,7 +822,7 @@ void ScUndoCut::DoChange( const BOOL bUndo ) if ( pChangeTrack ) pChangeTrack->Undo( nStartChangeAction, nEndChangeAction ); } - else // nur bei Redo + else // nur bei Redo { pDocShell->UpdatePaintExt( nExtFlags, aExtendedRange ); pDoc->DeleteArea( aBlockRange.aStart.Col(), aBlockRange.aStart.Row(), @@ -832,10 +832,10 @@ void ScUndoCut::DoChange( const BOOL bUndo ) ScTabViewShell* pViewShell = ScTabViewShell::GetActiveViewShell(); if ( !( (pViewShell) && pViewShell->AdjustBlockHeight() ) ) -/*A*/ pDocShell->PostPaint( aExtendedRange, PAINT_GRID, nExtFlags ); +/*A*/ pDocShell->PostPaint( aExtendedRange, PAINT_GRID, nExtFlags ); if ( !bUndo ) // draw redo after updating row heights - RedoSdrUndoAction( pDrawUndo ); //! include in ScBlockUndo? + RedoSdrUndoAction( pDrawUndo ); //! include in ScBlockUndo? pDocShell->PostDataChanged(); if (pViewShell) @@ -853,9 +853,9 @@ void __EXPORT ScUndoCut::Redo() { BeginRedo(); ScDocument* pDoc = pDocShell->GetDocument(); - EnableDrawAdjust( pDoc, FALSE ); //! include in ScBlockUndo? + EnableDrawAdjust( pDoc, FALSE ); //! include in ScBlockUndo? DoChange( FALSE ); - EnableDrawAdjust( pDoc, TRUE ); //! include in ScBlockUndo? + EnableDrawAdjust( pDoc, TRUE ); //! include in ScBlockUndo? EndRedo(); } @@ -873,7 +873,7 @@ BOOL __EXPORT ScUndoCut::CanRepeat(SfxRepeatTarget& rTarget) const // ----------------------------------------------------------------------- // -// Einfuegen (Paste) +// Einfuegen (Paste) // ScUndoPaste::ScUndoPaste( ScDocShell* pNewDocShell, @@ -894,18 +894,18 @@ ScUndoPaste::ScUndoPaste( ScDocShell* pNewDocShell, pRefRedoData( NULL ), bRedoFilled( bRedoIsFilled ) { - // pFill1,pFill2,pFill3 are there so the ctor calls for simple paste (without cutting) - // don't have to be changed and branched for 641. - // They can be removed later. + // pFill1,pFill2,pFill3 are there so the ctor calls for simple paste (without cutting) + // don't have to be changed and branched for 641. + // They can be removed later. - if ( !aMarkData.IsMarked() ) // no cell marked: - aMarkData.SetMarkArea( aBlockRange ); // mark paste block + if ( !aMarkData.IsMarked() ) // no cell marked: + aMarkData.SetMarkArea( aBlockRange ); // mark paste block if ( pRefUndoData ) pRefUndoData->DeleteUnchanged( pDocShell->GetDocument() ); if ( pOptions ) - aPasteOptions = *pOptions; // used only for Repeat + aPasteOptions = *pOptions; // used only for Repeat SetChangeTrack(); } @@ -937,15 +937,15 @@ void ScUndoPaste::DoChange( const BOOL bUndo ) { ScDocument* pDoc = pDocShell->GetDocument(); - // RefUndoData for redo is created before first undo - // (with DeleteUnchanged after the DoUndo call) + // RefUndoData for redo is created before first undo + // (with DeleteUnchanged after the DoUndo call) BOOL bCreateRedoData = ( bUndo && pRefUndoData && !pRefRedoData ); if ( bCreateRedoData ) pRefRedoData = new ScRefUndoData( pDoc ); ScRefUndoData* pWorkRefData = bUndo ? pRefUndoData : pRefRedoData; - // fuer Undo immer alle oder keine Inhalte sichern + // fuer Undo immer alle oder keine Inhalte sichern USHORT nUndoFlags = IDF_NONE; if (nFlags & IDF_CONTENTS) nUndoFlags |= IDF_CONTENTS; @@ -1009,7 +1009,7 @@ void ScUndoPaste::DoChange( const BOOL bUndo ) if (pWorkRefData) { - pWorkRefData->DoUndo( pDoc, TRUE ); // TRUE = bSetChartRangeLists for SetChartListenerCollection + pWorkRefData->DoUndo( pDoc, TRUE ); // TRUE = bSetChartRangeLists for SetChartListenerCollection if ( pDoc->RefreshAutoFilter( 0,0, MAXCOL,MAXROW, aBlockRange.aStart.Tab() ) ) bPaintAll = TRUE; } @@ -1050,22 +1050,22 @@ void ScUndoPaste::DoChange( const BOOL bUndo ) aDrawRange.aEnd.SetCol(MAXCOL); aDrawRange.aEnd.SetRow(MAXROW); nPaint |= PAINT_TOP | PAINT_LEFT; -/*A*/ if (pViewShell) +/*A*/ if (pViewShell) pViewShell->AdjustBlockHeight(FALSE); } else { - if ( aBlockRange.aStart.Row() == 0 && aBlockRange.aEnd.Row() == MAXROW ) // ganze Spalte + if ( aBlockRange.aStart.Row() == 0 && aBlockRange.aEnd.Row() == MAXROW ) // ganze Spalte { nPaint |= PAINT_TOP; aDrawRange.aEnd.SetCol(MAXCOL); } - if ( aBlockRange.aStart.Col() == 0 && aBlockRange.aEnd.Col() == MAXCOL ) // ganze Zeile + if ( aBlockRange.aStart.Col() == 0 && aBlockRange.aEnd.Col() == MAXCOL ) // ganze Zeile { nPaint |= PAINT_LEFT; aDrawRange.aEnd.SetRow(MAXROW); } -/*A*/ if ((pViewShell) && pViewShell->AdjustBlockHeight(FALSE)) +/*A*/ if ((pViewShell) && pViewShell->AdjustBlockHeight(FALSE)) { aDrawRange.aStart.SetCol(0); aDrawRange.aStart.SetRow(0); @@ -1077,7 +1077,7 @@ void ScUndoPaste::DoChange( const BOOL bUndo ) } if ( !bUndo ) // draw redo after updating row heights - RedoSdrUndoAction( pDrawUndo ); //! include in ScBlockUndo? + RedoSdrUndoAction( pDrawUndo ); //! include in ScBlockUndo? pDocShell->PostPaint( aDrawRange, nPaint, nExtFlags ); @@ -1099,9 +1099,9 @@ void __EXPORT ScUndoPaste::Redo() { BeginRedo(); ScDocument* pDoc = pDocShell->GetDocument(); - EnableDrawAdjust( pDoc, FALSE ); //! include in ScBlockUndo? + EnableDrawAdjust( pDoc, FALSE ); //! include in ScBlockUndo? DoChange( FALSE ); - EnableDrawAdjust( pDoc, TRUE ); //! include in ScBlockUndo? + EnableDrawAdjust( pDoc, TRUE ); //! include in ScBlockUndo? EndRedo(); SFX_APP()->Broadcast( SfxSimpleHint( SC_HINT_AREALINKS_CHANGED ) ); } @@ -1119,7 +1119,7 @@ void __EXPORT ScUndoPaste::Repeat(SfxRepeatTarget& rTarget) pViewSh->PasteFromClip( nFlags, pOwnClip->GetDocument(), aPasteOptions.nFunction, aPasteOptions.bSkipEmpty, aPasteOptions.bTranspose, aPasteOptions.bAsLink, aPasteOptions.eMoveMode, IDF_NONE, - TRUE ); // allow warning dialog + TRUE ); // allow warning dialog } } } @@ -1132,7 +1132,7 @@ BOOL __EXPORT ScUndoPaste::CanRepeat(SfxRepeatTarget& rTarget) const // ----------------------------------------------------------------------- // -// Verschieben/Kopieren (Drag & Drop) +// Verschieben/Kopieren (Drag & Drop) // ScUndoDragDrop::ScUndoDragDrop( ScDocShell* pNewDocShell, @@ -1171,7 +1171,7 @@ __EXPORT ScUndoDragDrop::~ScUndoDragDrop() } String __EXPORT ScUndoDragDrop::GetComment() const -{ // "Verschieben" : "Kopieren" +{ // "Verschieben" : "Kopieren" return bCut ? ScGlobal::GetRscString( STR_UNDO_MOVE ) : ScGlobal::GetRscString( STR_UNDO_COPY ); @@ -1222,14 +1222,14 @@ void ScUndoDragDrop::PaintArea( ScRange aRange, USHORT nExtFlags ) const if ( bKeepScenarioFlags ) { - // Szenarien mitkopiert -> auch Szenario-Rahmen painten + // Szenarien mitkopiert -> auch Szenario-Rahmen painten aRange.aStart.SetCol(0); aRange.aStart.SetRow(0); aRange.aEnd.SetCol(MAXCOL); aRange.aEnd.SetRow(MAXROW); } - // column/row info (width/height) included if whole columns/rows were copied + // column/row info (width/height) included if whole columns/rows were copied if ( aSrcRange.aStart.Col() == 0 && aSrcRange.aEnd.Col() == MAXCOL ) { nPaint |= PAINT_LEFT; @@ -1253,10 +1253,10 @@ void ScUndoDragDrop::DoUndo( ScRange aRange ) const if ( pChangeTrack ) pChangeTrack->Undo( nStartChangeAction, nEndChangeAction ); -//? DB-Areas vor Daten, damit bei ExtendMerge die Autofilter-Knoepfe stimmen +//? DB-Areas vor Daten, damit bei ExtendMerge die Autofilter-Knoepfe stimmen ScRange aPaintRange = aRange; - pDoc->ExtendMerge( aPaintRange ); // before deleting + pDoc->ExtendMerge( aPaintRange ); // before deleting USHORT nExtFlags = 0; pDocShell->UpdatePaintExt( nExtFlags, aPaintRange ); @@ -1293,7 +1293,7 @@ void __EXPORT ScUndoDragDrop::Redo() ScDocument* pDoc = pDocShell->GetDocument(); ScDocument* pClipDoc = new ScDocument( SCDOCMODE_CLIP ); - EnableDrawAdjust( pDoc, FALSE ); //! include in ScBlockUndo? + EnableDrawAdjust( pDoc, FALSE ); //! include in ScBlockUndo? // do not undo/redo objects and note captions, they are handled via drawing undo USHORT nRedoFlags = (IDF_ALL & ~IDF_OBJECTS) | IDF_NOCAPTIONS; @@ -1323,7 +1323,7 @@ void __EXPORT ScUndoDragDrop::Redo() if (bCut) { ScRange aSrcPaintRange = aSrcRange; - pDoc->ExtendMerge( aSrcPaintRange ); // before deleting + pDoc->ExtendMerge( aSrcPaintRange ); // before deleting USHORT nExtFlags = 0; pDocShell->UpdatePaintExt( nExtFlags, aSrcPaintRange ); pDoc->DeleteAreaTab( aSrcRange, nRedoFlags ); @@ -1363,7 +1363,7 @@ void __EXPORT ScUndoDragDrop::Redo() ShowTable( aDestRange.aStart.Tab() ); RedoSdrUndoAction( pDrawUndo ); //! include in ScBlockUndo? - EnableDrawAdjust( pDoc, TRUE ); //! include in ScBlockUndo? + EnableDrawAdjust( pDoc, TRUE ); //! include in ScBlockUndo? EndRedo(); SFX_APP()->Broadcast( SfxSimpleHint( SC_HINT_AREALINKS_CHANGED ) ); @@ -1375,14 +1375,14 @@ void __EXPORT ScUndoDragDrop::Repeat(SfxRepeatTarget& /* rTarget */) BOOL __EXPORT ScUndoDragDrop::CanRepeat(SfxRepeatTarget& /* rTarget */) const { - return FALSE; // geht nicht + return FALSE; // geht nicht } // ----------------------------------------------------------------------- // -// Liste der Bereichsnamen einfuegen -// (Einfuegen|Name|Einfuegen =>[Liste]) +// Liste der Bereichsnamen einfuegen +// (Einfuegen|Name|Einfuegen =>[Liste]) // ScUndoListNames::ScUndoListNames( ScDocShell* pNewDocShell, const ScRange& rRange, @@ -1445,13 +1445,13 @@ BOOL __EXPORT ScUndoListNames::CanRepeat(SfxRepeatTarget& rTarget) const // ----------------------------------------------------------------------- // -// Szenario anwenden -// (Extras|Szenarien) +// Szenario anwenden +// (Extras|Szenarien) // ScUndoUseScenario::ScUndoUseScenario( ScDocShell* pNewDocShell, const ScMarkData& rMark, -/*C*/ const ScArea& rDestArea, +/*C*/ const ScArea& rDestArea, ScDocument* pNewUndoDoc, const String& rNewName ) : ScSimpleUndo( pNewDocShell ), @@ -1492,7 +1492,7 @@ void __EXPORT ScUndoUseScenario::Undo() pDoc->DeleteSelection( IDF_ALL, aMarkData ); pUndoDoc->CopyToDocument( aRange, IDF_ALL, TRUE, pDoc, &aMarkData ); - // Szenario-Tabellen + // Szenario-Tabellen BOOL bFrame = FALSE; SCTAB nTab = aRange.aStart.Tab(); SCTAB nEndTab = nTab; @@ -1500,7 +1500,7 @@ void __EXPORT ScUndoUseScenario::Undo() ++nEndTab; for (SCTAB i = nTab+1; i<=nEndTab; i++) { - // Flags immer + // Flags immer String aComment; Color aColor; USHORT nScenFlags; @@ -1508,7 +1508,7 @@ void __EXPORT ScUndoUseScenario::Undo() pDoc->SetScenarioData( i, aComment, aColor, nScenFlags ); BOOL bActive = pUndoDoc->IsActiveScenario( i ); pDoc->SetActiveScenario( i, bActive ); - // Bei Zurueckkopier-Szenarios auch Inhalte + // Bei Zurueckkopier-Szenarios auch Inhalte if ( nScenFlags & SC_SCENARIO_TWOWAY ) { pDoc->DeleteAreaTab( 0,0, MAXCOL,MAXROW, i, IDF_ALL ); @@ -1518,7 +1518,7 @@ void __EXPORT ScUndoUseScenario::Undo() bFrame = TRUE; } - // Wenn sichtbare Rahmen, dann alles painten + // Wenn sichtbare Rahmen, dann alles painten if (bFrame) pDocShell->PostPaint( 0,0,nTab, MAXCOL,MAXROW,nTab, PAINT_GRID | PAINT_EXTRAS ); else @@ -1572,8 +1572,8 @@ BOOL __EXPORT ScUndoUseScenario::CanRepeat(SfxRepeatTarget& rTarget) const // ----------------------------------------------------------------------- // -// Vorlage anwenden -// (Format|Vorlagenkatalog) +// Vorlage anwenden +// (Format|Vorlagenkatalog) // ScUndoSelectionStyle::ScUndoSelectionStyle( ScDocShell* pNewDocShell, @@ -1609,13 +1609,13 @@ void ScUndoSelectionStyle::DoChange( const BOOL bUndo ) pViewShell->SetMarkData( aMarkData ); ScRange aWorkRange( aRange ); - if ( pDoc->HasAttrib( aWorkRange, HASATTR_MERGED ) ) // zusammengefasste Zellen? + if ( pDoc->HasAttrib( aWorkRange, HASATTR_MERGED ) ) // zusammengefasste Zellen? pDoc->ExtendMerge( aWorkRange, TRUE ); USHORT nExtFlags = 0; pDocShell->UpdatePaintExt( nExtFlags, aWorkRange ); - if (bUndo) // bei Undo alte Daten wieder reinschubsen + if (bUndo) // bei Undo alte Daten wieder reinschubsen { SCTAB nTabCount = pDoc->GetTableCount(); ScRange aCopyRange = aWorkRange; @@ -1623,7 +1623,7 @@ void ScUndoSelectionStyle::DoChange( const BOOL bUndo ) aCopyRange.aEnd.SetTab(nTabCount-1); pUndoDoc->CopyToDocument( aCopyRange, IDF_ATTRIB, TRUE, pDoc, &aMarkData ); } - else // bei Redo Style wieder zuweisen + else // bei Redo Style wieder zuweisen { ScStyleSheetPool* pStlPool = pDoc->GetStyleSheetPool(); ScStyleSheet* pStyleSheet = @@ -1639,7 +1639,7 @@ void ScUndoSelectionStyle::DoChange( const BOOL bUndo ) pDocShell->UpdatePaintExt( nExtFlags, aWorkRange ); if ( !( (pViewShell) && pViewShell->AdjustBlockHeight() ) ) -/*A*/ pDocShell->PostPaint( aWorkRange, PAINT_GRID | PAINT_EXTRAS, nExtFlags ); +/*A*/ pDocShell->PostPaint( aWorkRange, PAINT_GRID | PAINT_EXTRAS, nExtFlags ); ShowTable( aWorkRange.aStart.Tab() ); } @@ -1690,7 +1690,7 @@ USHORT __EXPORT ScUndoSelectionStyle::GetId() const // ----------------------------------------------------------------------- // -// Matrix-Formel eingeben +// Matrix-Formel eingeben // ScUndoEnterMatrix::ScUndoEnterMatrix( ScDocShell* pNewDocShell, const ScRange& rArea, @@ -1757,7 +1757,7 @@ void __EXPORT ScUndoEnterMatrix::Redo() pDoc->InsertMatrixFormula( aBlockRange.aStart.Col(), aBlockRange.aStart.Row(), aBlockRange.aEnd.Col(), aBlockRange.aEnd.Row(), aDestMark, aFormula ); -// pDocShell->PostPaint( aBlockRange, PAINT_GRID ); // nicht noetig ??? +// pDocShell->PostPaint( aBlockRange, PAINT_GRID ); // nicht noetig ??? SetChangeTrack(); @@ -1780,7 +1780,7 @@ BOOL __EXPORT ScUndoEnterMatrix::CanRepeat(SfxRepeatTarget& rTarget) const // ----------------------------------------------------------------------- // -// Einzug vermindern / erhoehen +// Einzug vermindern / erhoehen // ScRange lcl_GetMultiMarkRange( const ScMarkData& rMark ) @@ -1851,7 +1851,7 @@ BOOL __EXPORT ScUndoIndent::CanRepeat(SfxRepeatTarget& rTarget) const // ----------------------------------------------------------------------- // -// Transliteration for cells +// Transliteration for cells // ScUndoTransliterate::ScUndoTransliterate( ScDocShell* pNewDocShell, const ScMarkData& rMark, @@ -1912,7 +1912,7 @@ BOOL __EXPORT ScUndoTransliterate::CanRepeat(SfxRepeatTarget& rTarget) const // ----------------------------------------------------------------------- // -// einzelne Items per Which-IDs aus Bereich loeschen +// einzelne Items per Which-IDs aus Bereich loeschen // ScUndoClearItems::ScUndoClearItems( ScDocShell* pNewDocShell, const ScMarkData& rMark, @@ -1982,7 +1982,7 @@ BOOL __EXPORT ScUndoClearItems::CanRepeat(SfxRepeatTarget& rTarget) const // ----------------------------------------------------------------------- // -// Alle Umbrueche einer Tabelle loeschen +// Alle Umbrueche einer Tabelle loeschen // ScUndoRemoveBreaks::ScUndoRemoveBreaks( ScDocShell* pNewDocShell, @@ -2050,7 +2050,7 @@ BOOL __EXPORT ScUndoRemoveBreaks::CanRepeat(SfxRepeatTarget& rTarget) const // ----------------------------------------------------------------------- // -// Zusammenfassung aufheben (fuer einen ganzen Bereich) +// Zusammenfassung aufheben (fuer einen ganzen Bereich) // ScUndoRemoveMerge::ScUndoRemoveMerge( ScDocShell* pNewDocShell, @@ -2068,7 +2068,7 @@ __EXPORT ScUndoRemoveMerge::~ScUndoRemoveMerge() String __EXPORT ScUndoRemoveMerge::GetComment() const { - return ScGlobal::GetRscString( STR_UNDO_REMERGE ); // "Zusammenfassung aufheben" + return ScGlobal::GetRscString( STR_UNDO_REMERGE ); // "Zusammenfassung aufheben" } void __EXPORT ScUndoRemoveMerge::Undo() @@ -2119,7 +2119,7 @@ void __EXPORT ScUndoRemoveMerge::Redo() // There is no need to extend merge area because it's already been extended. ScRange aRange = maOption.getSingleRange(nTab); - // ausfuehren + // ausfuehren const SfxPoolItem& rDefAttr = pDoc->GetPool()->GetDefaultItem( ATTR_MERGE ); ScPatternAttr aPattern( pDoc->GetPool() ); @@ -2134,7 +2134,7 @@ void __EXPORT ScUndoRemoveMerge::Redo() pDoc->ExtendMerge(aRange, TRUE, FALSE); - // Paint + // Paint BOOL bDidPaint = FALSE; if ( pViewShell ) @@ -2169,7 +2169,7 @@ void ScUndoRemoveMerge::SetCurTab() // ----------------------------------------------------------------------- // -// nur Umrandung setzen, per ScRangeList (StarOne) +// nur Umrandung setzen, per ScRangeList (StarOne) // ScRange lcl_TotalRange( const ScRangeList& rRanges ) @@ -2221,7 +2221,7 @@ __EXPORT ScUndoBorder::~ScUndoBorder() String __EXPORT ScUndoBorder::GetComment() const { - return ScGlobal::GetRscString( STR_UNDO_SELATTRLINES ); //! eigener String? + return ScGlobal::GetRscString( STR_UNDO_SELATTRLINES ); //! eigener String? } void __EXPORT ScUndoBorder::Undo() @@ -2241,7 +2241,7 @@ void __EXPORT ScUndoBorder::Redo() { BeginRedo(); - ScDocument* pDoc = pDocShell->GetDocument(); //! Funktion an docfunc aufrufen + ScDocument* pDoc = pDocShell->GetDocument(); //! Funktion an docfunc aufrufen ULONG nCount = pRanges->Count(); ULONG i; for (i=0; i<nCount; i++) @@ -2263,12 +2263,12 @@ void __EXPORT ScUndoBorder::Redo() void __EXPORT ScUndoBorder::Repeat(SfxRepeatTarget& /* rTarget */) { - //! spaeter (wenn die Funktion aus cellsuno nach docfunc gewandert ist) + //! spaeter (wenn die Funktion aus cellsuno nach docfunc gewandert ist) } BOOL __EXPORT ScUndoBorder::CanRepeat(SfxRepeatTarget& /* rTarget */) const { - return FALSE; // s.o. + return FALSE; // s.o. } diff --git a/sc/source/ui/undo/undoblk2.cxx b/sc/source/ui/undo/undoblk2.cxx index 4a46c61683c5..101dcc9b12e7 100644 --- a/sc/source/ui/undo/undoblk2.cxx +++ b/sc/source/ui/undo/undoblk2.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 @@ -53,14 +53,14 @@ // STATIC DATA ----------------------------------------------------------- -TYPEINIT1(ScUndoWidthOrHeight, SfxUndoAction); +TYPEINIT1(ScUndoWidthOrHeight, SfxUndoAction); // ----------------------------------------------------------------------- // -// Spaltenbreiten oder Zeilenhoehen aendern +// Spaltenbreiten oder Zeilenhoehen aendern // ScUndoWidthOrHeight::ScUndoWidthOrHeight( ScDocShell* pNewDocShell, @@ -124,12 +124,12 @@ void __EXPORT ScUndoWidthOrHeight::Undo() { pViewShell->SetMarkData( aMarkData ); - nPaintStart = 0; // paint all, because of changed selection + nPaintStart = 0; // paint all, because of changed selection } } - //! outlines from all tables? - if (pUndoTab) // Outlines mit gespeichert? + //! outlines from all tables? + if (pUndoTab) // Outlines mit gespeichert? pDoc->SetOutlineTable( nStartTab, pUndoTab ); SCTAB nTabCount = pDoc->GetTableCount(); @@ -137,7 +137,7 @@ void __EXPORT ScUndoWidthOrHeight::Undo() for (nTab=0; nTab<nTabCount; nTab++) if (aMarkData.GetTableSelect(nTab)) { - if (bWidth) // Width + if (bWidth) // Width { pUndoDoc->CopyToDocument( static_cast<SCCOL>(nStart), 0, nTab, static_cast<SCCOL>(nEnd), MAXROW, nTab, IDF_NONE, @@ -146,7 +146,7 @@ void __EXPORT ScUndoWidthOrHeight::Undo() pDocShell->PostPaint( static_cast<SCCOL>(nPaintStart), 0, nTab, MAXCOL, MAXROW, nTab, PAINT_GRID | PAINT_TOP ); } - else // Height + else // Height { pUndoDoc->CopyToDocument( 0, nStart, nTab, MAXCOL, nEnd, nTab, IDF_NONE, FALSE, pDoc ); pDoc->UpdatePageBreaks( nTab ); @@ -181,7 +181,7 @@ void __EXPORT ScUndoWidthOrHeight::Redo() { pViewShell->SetMarkData( aMarkData ); - bPaintAll = TRUE; // paint all, because of changed selection + bPaintAll = TRUE; // paint all, because of changed selection } } diff --git a/sc/source/ui/undo/undoblk3.cxx b/sc/source/ui/undo/undoblk3.cxx index f73e664a5bcd..6b25be0ef684 100644 --- a/sc/source/ui/undo/undoblk3.cxx +++ b/sc/source/ui/undo/undoblk3.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 @@ -65,30 +65,30 @@ // STATIC DATA --------------------------------------------------------------- -TYPEINIT1(ScUndoDeleteContents, SfxUndoAction); -TYPEINIT1(ScUndoFillTable, SfxUndoAction); -TYPEINIT1(ScUndoSelectionAttr, SfxUndoAction); -TYPEINIT1(ScUndoAutoFill, SfxUndoAction); -TYPEINIT1(ScUndoMerge, SfxUndoAction); -TYPEINIT1(ScUndoAutoFormat, SfxUndoAction); -TYPEINIT1(ScUndoReplace, SfxUndoAction); -TYPEINIT1(ScUndoTabOp, SfxUndoAction); +TYPEINIT1(ScUndoDeleteContents, SfxUndoAction); +TYPEINIT1(ScUndoFillTable, SfxUndoAction); +TYPEINIT1(ScUndoSelectionAttr, SfxUndoAction); +TYPEINIT1(ScUndoAutoFill, SfxUndoAction); +TYPEINIT1(ScUndoMerge, SfxUndoAction); +TYPEINIT1(ScUndoAutoFormat, SfxUndoAction); +TYPEINIT1(ScUndoReplace, SfxUndoAction); +TYPEINIT1(ScUndoTabOp, SfxUndoAction); TYPEINIT1(ScUndoConversion, SfxUndoAction); TYPEINIT1(ScUndoRefConversion, SfxUndoAction); -TYPEINIT1(ScUndoRefreshLink, SfxUndoAction); -TYPEINIT1(ScUndoInsertAreaLink, SfxUndoAction); -TYPEINIT1(ScUndoRemoveAreaLink, SfxUndoAction); -TYPEINIT1(ScUndoUpdateAreaLink, SfxUndoAction); +TYPEINIT1(ScUndoRefreshLink, SfxUndoAction); +TYPEINIT1(ScUndoInsertAreaLink, SfxUndoAction); +TYPEINIT1(ScUndoRemoveAreaLink, SfxUndoAction); +TYPEINIT1(ScUndoUpdateAreaLink, SfxUndoAction); // To Do: -/*A*/ // SetOptimalHeight auf Dokument, wenn keine View +/*A*/ // SetOptimalHeight auf Dokument, wenn keine View //============================================================================ -// class ScUndoDeleteContents +// class ScUndoDeleteContents // -// Inhalte loeschen +// Inhalte loeschen //---------------------------------------------------------------------------- @@ -98,20 +98,20 @@ ScUndoDeleteContents::ScUndoDeleteContents( ScDocument* pNewUndoDoc, BOOL bNewMulti, USHORT nNewFlags, BOOL bObjects ) // - : ScSimpleUndo( pNewDocShell ), + : ScSimpleUndo( pNewDocShell ), // - aRange ( rRange ), - aMarkData ( rMark ), - pUndoDoc ( pNewUndoDoc ), - pDrawUndo ( NULL ), - nFlags ( nNewFlags ), - bMulti ( bNewMulti ) // ueberliquid + aRange ( rRange ), + aMarkData ( rMark ), + pUndoDoc ( pNewUndoDoc ), + pDrawUndo ( NULL ), + nFlags ( nNewFlags ), + bMulti ( bNewMulti ) // ueberliquid { if (bObjects) pDrawUndo = GetSdrUndoAction( pDocShell->GetDocument() ); - if ( !(aMarkData.IsMarked() || aMarkData.IsMultiMarked()) ) // keine Zelle markiert: - aMarkData.SetMarkArea( aRange ); // Zelle unter Cursor markieren + if ( !(aMarkData.IsMarked() || aMarkData.IsMultiMarked()) ) // keine Zelle markiert: + aMarkData.SetMarkArea( aRange ); // Zelle unter Cursor markieren SetChangeTrack(); } @@ -130,7 +130,7 @@ __EXPORT ScUndoDeleteContents::~ScUndoDeleteContents() String __EXPORT ScUndoDeleteContents::GetComment() const { - return ScGlobal::GetRscString( STR_UNDO_DELETECONTENTS ); // "Loeschen" + return ScGlobal::GetRscString( STR_UNDO_DELETECONTENTS ); // "Loeschen" } @@ -157,15 +157,15 @@ void ScUndoDeleteContents::DoChange( const BOOL bUndo ) USHORT nExtFlags = 0; - if (bUndo) // nur Undo + if (bUndo) // nur Undo { - USHORT nUndoFlags = IDF_NONE; // entweder alle oder keine Inhalte kopieren - if (nFlags & IDF_CONTENTS) // (es sind nur die richtigen ins UndoDoc kopiert worden) + USHORT nUndoFlags = IDF_NONE; // entweder alle oder keine Inhalte kopieren + if (nFlags & IDF_CONTENTS) // (es sind nur die richtigen ins UndoDoc kopiert worden) nUndoFlags |= IDF_CONTENTS; if (nFlags & IDF_ATTRIB) nUndoFlags |= IDF_ATTRIB; - if (nFlags & IDF_EDITATTR) // Edit-Engine-Attribute - nUndoFlags |= IDF_STRING; // -> Zellen werden geaendert + if (nFlags & IDF_EDITATTR) // Edit-Engine-Attribute + nUndoFlags |= IDF_STRING; // -> Zellen werden geaendert // do not create clones of note captions, they will be restored via drawing undo nUndoFlags |= IDF_NOCAPTIONS; @@ -182,11 +182,11 @@ void ScUndoDeleteContents::DoChange( const BOOL bUndo ) if ( pChangeTrack ) pChangeTrack->Undo( nStartChangeAction, nEndChangeAction ); - pDocShell->UpdatePaintExt( nExtFlags, aRange ); // content after the change + pDocShell->UpdatePaintExt( nExtFlags, aRange ); // content after the change } - else // nur Redo + else // nur Redo { - pDocShell->UpdatePaintExt( nExtFlags, aRange ); // content before the change + pDocShell->UpdatePaintExt( nExtFlags, aRange ); // content before the change aMarkData.MarkToMulti(); RedoSdrUndoAction( pDrawUndo ); @@ -200,7 +200,7 @@ void ScUndoDeleteContents::DoChange( const BOOL bUndo ) if ( !( (pViewShell) && pViewShell->AdjustRowHeight( aRange.aStart.Row(), aRange.aEnd.Row() ) ) ) -/*A*/ pDocShell->PostPaint( aRange, PAINT_GRID | PAINT_EXTRAS, nExtFlags ); +/*A*/ pDocShell->PostPaint( aRange, PAINT_GRID | PAINT_EXTRAS, nExtFlags ); pDocShell->PostDataChanged(); if (pViewShell) @@ -266,10 +266,10 @@ BOOL __EXPORT ScUndoDeleteContents::CanRepeat(SfxRepeatTarget& rTarget) const //============================================================================ -// class ScUndoFillTable +// class ScUndoFillTable // -// Tabellen ausfuellen -// (Bearbeiten|Ausfuellen|...) +// Tabellen ausfuellen +// (Bearbeiten|Ausfuellen|...) //---------------------------------------------------------------------------- @@ -280,17 +280,17 @@ ScUndoFillTable::ScUndoFillTable( ScDocShell* pNewDocShell, ScDocument* pNewUndoDoc, BOOL bNewMulti, SCTAB nSrc, USHORT nFlg, USHORT nFunc, BOOL bSkip, BOOL bLink ) // - : ScSimpleUndo( pNewDocShell ), + : ScSimpleUndo( pNewDocShell ), // - aRange ( nStartX, nStartY, nStartZ, nEndX, nEndY, nEndZ ), - aMarkData ( rMark ), - pUndoDoc ( pNewUndoDoc ), - nFlags ( nFlg ), - nFunction ( nFunc ), - nSrcTab ( nSrc ), - bMulti ( bNewMulti ), - bSkipEmpty ( bSkip ), - bAsLink ( bLink ) + aRange ( nStartX, nStartY, nStartZ, nEndX, nEndY, nEndZ ), + aMarkData ( rMark ), + pUndoDoc ( pNewUndoDoc ), + nFlags ( nFlg ), + nFunction ( nFunc ), + nSrcTab ( nSrc ), + bMulti ( bNewMulti ), + bSkipEmpty ( bSkip ), + bAsLink ( bLink ) { SetChangeTrack(); } @@ -349,7 +349,7 @@ void ScUndoFillTable::DoChange( const BOOL bUndo ) if (pViewShell) pViewShell->SetMarkData( aMarkData ); - if (bUndo) // nur Undo + if (bUndo) // nur Undo { SCTAB nTabCount = pDoc->GetTableCount(); ScRange aWorkRange(aRange); @@ -369,7 +369,7 @@ void ScUndoFillTable::DoChange( const BOOL bUndo ) if ( pChangeTrack ) pChangeTrack->Undo( nStartChangeAction, nEndChangeAction ); } - else // nur Redo + else // nur Redo { aMarkData.MarkToMulti(); pDoc->FillTabMarked( nSrcTab, aMarkData, nFlags, nFunction, bSkipEmpty, bAsLink ); @@ -380,7 +380,7 @@ void ScUndoFillTable::DoChange( const BOOL bUndo ) pDocShell->PostPaint(0,0,0,MAXCOL,MAXROW,MAXTAB, PAINT_GRID|PAINT_EXTRAS); pDocShell->PostDataChanged(); - // CellContentChanged kommt mit der Markierung + // CellContentChanged kommt mit der Markierung if (pViewShell) { @@ -388,7 +388,7 @@ void ScUndoFillTable::DoChange( const BOOL bUndo ) if ( !aMarkData.GetTableSelect(nTab) ) pViewShell->SetTabNo( nSrcTab ); - pViewShell->DoneBlockMode(); // gibt sonst Probleme, weil Markierung auf falscher Tabelle + pViewShell->DoneBlockMode(); // gibt sonst Probleme, weil Markierung auf falscher Tabelle } } @@ -431,9 +431,9 @@ BOOL __EXPORT ScUndoFillTable::CanRepeat(SfxRepeatTarget& rTarget) const //============================================================================ -// class ScUndoSelectionAttr +// class ScUndoSelectionAttr // -// Zellformat aendern +// Zellformat aendern //---------------------------------------------------------------------------- @@ -445,12 +445,12 @@ ScUndoSelectionAttr::ScUndoSelectionAttr( ScDocShell* pNewDocShell, const ScPatternAttr* pNewApply, const SvxBoxItem* pNewOuter, const SvxBoxInfoItem* pNewInner ) // - : ScSimpleUndo( pNewDocShell ), + : ScSimpleUndo( pNewDocShell ), // - aMarkData ( rMark ), - aRange ( nStartX, nStartY, nStartZ, nEndX, nEndY, nEndZ ), - pUndoDoc ( pNewUndoDoc ), - bMulti ( bNewMulti ) + aMarkData ( rMark ), + aRange ( nStartX, nStartY, nStartZ, nEndX, nEndY, nEndZ ), + pUndoDoc ( pNewUndoDoc ), + bMulti ( bNewMulti ) { ScDocumentPool* pPool = pDocShell->GetDocument()->GetPool(); pApplyPattern = (ScPatternAttr*) &pPool->Put( *pNewApply ); @@ -500,7 +500,7 @@ void ScUndoSelectionAttr::DoChange( const BOOL bUndo ) pViewShell->SetMarkData( aMarkData ); ScRange aEffRange( aRange ); - if ( pDoc->HasAttrib( aEffRange, HASATTR_MERGED ) ) // zusammengefasste Zellen? + if ( pDoc->HasAttrib( aEffRange, HASATTR_MERGED ) ) // zusammengefasste Zellen? pDoc->ExtendMerge( aEffRange ); USHORT nExtFlags = 0; @@ -508,7 +508,7 @@ void ScUndoSelectionAttr::DoChange( const BOOL bUndo ) ChangeEditData(bUndo); - if (bUndo) // nur bei Undo + if (bUndo) // nur bei Undo { ScRange aCopyRange = aRange; SCTAB nTabCount = pDoc->GetTableCount(); @@ -516,7 +516,7 @@ void ScUndoSelectionAttr::DoChange( const BOOL bUndo ) aCopyRange.aEnd.SetTab(nTabCount-1); pUndoDoc->CopyToDocument( aCopyRange, IDF_ATTRIB, bMulti, pDoc, &aMarkData ); } - else // nur bei Redo + else // nur bei Redo { aMarkData.MarkToMulti(); pDoc->ApplySelectionPattern( *pApplyPattern, aMarkData ); @@ -527,7 +527,7 @@ void ScUndoSelectionAttr::DoChange( const BOOL bUndo ) } if ( !( (pViewShell) && pViewShell->AdjustBlockHeight() ) ) -/*A*/ pDocShell->PostPaint( aEffRange, PAINT_GRID | PAINT_EXTRAS, nExtFlags ); +/*A*/ pDocShell->PostPaint( aEffRange, PAINT_GRID | PAINT_EXTRAS, nExtFlags ); ShowTable( aRange ); } @@ -595,9 +595,9 @@ BOOL __EXPORT ScUndoSelectionAttr::CanRepeat(SfxRepeatTarget& rTarget) const //============================================================================ -// class ScUndoAutoFill +// class ScUndoAutoFill // -// Auto-Fill (nur einfache Bloecke) +// Auto-Fill (nur einfache Bloecke) //---------------------------------------------------------------------------- @@ -608,18 +608,18 @@ ScUndoAutoFill::ScUndoAutoFill( ScDocShell* pNewDocShell, double fNewStartValue, double fNewStepValue, double fNewMaxValue, USHORT nMaxShIndex ) // - : ScBlockUndo( pNewDocShell, rRange, SC_UNDO_AUTOHEIGHT ), + : ScBlockUndo( pNewDocShell, rRange, SC_UNDO_AUTOHEIGHT ), // - aSource ( rSourceArea ), - aMarkData ( rMark ), - pUndoDoc ( pNewUndoDoc ), - eFillDir ( eNewFillDir ), - eFillCmd ( eNewFillCmd ), - eFillDateCmd ( eNewFillDateCmd ), - fStartValue ( fNewStartValue ), - fStepValue ( fNewStepValue ), - fMaxValue ( fNewMaxValue ), - nMaxSharedIndex ( nMaxShIndex) + aSource ( rSourceArea ), + aMarkData ( rMark ), + pUndoDoc ( pNewUndoDoc ), + eFillDir ( eNewFillDir ), + eFillCmd ( eNewFillCmd ), + eFillDateCmd ( eNewFillDateCmd ), + fStartValue ( fNewStartValue ), + fStepValue ( fNewStepValue ), + fMaxValue ( fNewMaxValue ), + nMaxSharedIndex ( nMaxShIndex) { SetChangeTrack(); } @@ -725,7 +725,7 @@ void __EXPORT ScUndoAutoFill::Redo() { BeginRedo(); -//! Tabellen selektieren +//! Tabellen selektieren SCCOLROW nCount = 0; switch (eFillDir) @@ -795,16 +795,16 @@ BOOL __EXPORT ScUndoAutoFill::CanRepeat(SfxRepeatTarget& rTarget) const //============================================================================ -// class ScUndoMerge +// class ScUndoMerge // -// Zellen zusammenfassen / Zusammenfassung aufheben +// Zellen zusammenfassen / Zusammenfassung aufheben //---------------------------------------------------------------------------- ScUndoMerge::ScUndoMerge( ScDocShell* pNewDocShell, const ScCellMergeOption& rOption, bool bMergeContents, ScDocument* pUndoDoc, SdrUndoAction* pDrawUndo ) // - : ScSimpleUndo( pNewDocShell ), + : ScSimpleUndo( pNewDocShell ), // maOption(rOption), mbMergeContents( bMergeContents ), @@ -951,9 +951,9 @@ BOOL ScUndoMerge::CanRepeat(SfxRepeatTarget& rTarget) const //============================================================================ -// class ScUndoAutoFormat +// class ScUndoAutoFormat // -// Auto-Format (nur einfache Bloecke) +// Auto-Format (nur einfache Bloecke) //---------------------------------------------------------------------------- @@ -961,12 +961,12 @@ ScUndoAutoFormat::ScUndoAutoFormat( ScDocShell* pNewDocShell, const ScRange& rRange, ScDocument* pNewUndoDoc, const ScMarkData& rMark, BOOL bNewSize, USHORT nNewFormatNo ) // - : ScBlockUndo( pNewDocShell, rRange, bNewSize ? SC_UNDO_MANUALHEIGHT : SC_UNDO_AUTOHEIGHT ), + : ScBlockUndo( pNewDocShell, rRange, bNewSize ? SC_UNDO_MANUALHEIGHT : SC_UNDO_AUTOHEIGHT ), // - pUndoDoc ( pNewUndoDoc ), - aMarkData ( rMark ), - bSize ( bNewSize ), - nFormatNo ( nNewFormatNo ) + pUndoDoc ( pNewUndoDoc ), + aMarkData ( rMark ), + bSize ( bNewSize ), + nFormatNo ( nNewFormatNo ) { } @@ -983,7 +983,7 @@ __EXPORT ScUndoAutoFormat::~ScUndoAutoFormat() String __EXPORT ScUndoAutoFormat::GetComment() const { - return ScGlobal::GetRscString( STR_UNDO_AUTOFORMAT ); //"Auto-Format" + return ScGlobal::GetRscString( STR_UNDO_AUTOFORMAT ); //"Auto-Format" } @@ -996,8 +996,8 @@ void __EXPORT ScUndoAutoFormat::Undo() ScDocument* pDoc = pDocShell->GetDocument(); // Attribute -// pDoc->DeleteAreaTab( aBlockRange, IDF_ATTRIB ); -// pUndoDoc->CopyToDocument( aBlockRange, IDF_ATTRIB, FALSE, pDoc ); +// pDoc->DeleteAreaTab( aBlockRange, IDF_ATTRIB ); +// pUndoDoc->CopyToDocument( aBlockRange, IDF_ATTRIB, FALSE, pDoc ); SCTAB nTabCount = pDoc->GetTableCount(); pDoc->DeleteArea( aBlockRange.aStart.Col(), aBlockRange.aStart.Row(), @@ -1066,12 +1066,12 @@ void __EXPORT ScUndoAutoFormat::Redo() } else { - // Zoom auf 100 lassen + // Zoom auf 100 lassen nPPTX = ScGlobal::nScreenPPTX; nPPTY = ScGlobal::nScreenPPTY; } - BOOL bFormula = FALSE; //! merken + BOOL bFormula = FALSE; //! merken for (SCTAB nTab=nStartZ; nTab<=nEndZ; nTab++) { @@ -1133,9 +1133,9 @@ BOOL __EXPORT ScUndoAutoFormat::CanRepeat(SfxRepeatTarget& rTarget) const //============================================================================ -// class ScUndoReplace +// class ScUndoReplace // -// Ersetzen +// Ersetzen //---------------------------------------------------------------------------- @@ -1144,12 +1144,12 @@ ScUndoReplace::ScUndoReplace( ScDocShell* pNewDocShell, const ScMarkData& rMark, const String& rNewUndoStr, ScDocument* pNewUndoDoc, const SvxSearchItem* pItem ) // - : ScSimpleUndo( pNewDocShell ), + : ScSimpleUndo( pNewDocShell ), // - aCursorPos ( nCurX, nCurY, nCurZ ), - aMarkData ( rMark ), - aUndoStr ( rNewUndoStr ), - pUndoDoc ( pNewUndoDoc ) + aCursorPos ( nCurX, nCurY, nCurZ ), + aMarkData ( rMark ), + aUndoStr ( rNewUndoStr ), + pUndoDoc ( pNewUndoDoc ) { pSearchItem = new SvxSearchItem( *pItem ); SetChangeTrack(); @@ -1174,10 +1174,10 @@ void ScUndoReplace::SetChangeTrack() if ( pChangeTrack ) { if ( pUndoDoc ) - { //! im UndoDoc stehen nur die geaenderten Zellen, + { //! im UndoDoc stehen nur die geaenderten Zellen, // deswegen per Iterator moeglich pChangeTrack->AppendContentsIfInRefDoc( pUndoDoc, - nStartChangeAction, nEndChangeAction ); + nStartChangeAction, nEndChangeAction ); } else { @@ -1198,7 +1198,7 @@ void ScUndoReplace::SetChangeTrack() String __EXPORT ScUndoReplace::GetComment() const { - return ScGlobal::GetRscString( STR_UNDO_REPLACE ); // "Ersetzen" + return ScGlobal::GetRscString( STR_UNDO_REPLACE ); // "Ersetzen" } @@ -1213,7 +1213,7 @@ void __EXPORT ScUndoReplace::Undo() ShowTable( aCursorPos.Tab() ); - if (pUndoDoc) // nur bei ReplaceAll !! + if (pUndoDoc) // nur bei ReplaceAll !! { DBG_ASSERT(pSearchItem->GetCommand() == SVX_SEARCHCMD_REPLACE_ALL, "ScUndoReplace:: Falscher Modus"); @@ -1221,22 +1221,22 @@ void __EXPORT ScUndoReplace::Undo() if (pViewShell) pViewShell->SetMarkData( aMarkData ); -//! markierte Tabellen -//! Bereich merken ? +//! markierte Tabellen +//! Bereich merken ? - // Undo-Dokument hat keine Zeilen-/Spalten-Infos, also mit bColRowFlags = FALSE - // kopieren, um Outline-Gruppen nicht kaputtzumachen. + // Undo-Dokument hat keine Zeilen-/Spalten-Infos, also mit bColRowFlags = FALSE + // kopieren, um Outline-Gruppen nicht kaputtzumachen. USHORT nUndoFlags = (pSearchItem->GetPattern()) ? IDF_ATTRIB : IDF_CONTENTS; pUndoDoc->CopyToDocument( 0, 0, 0, MAXCOL, MAXROW, MAXTAB, - nUndoFlags, FALSE, pDoc, NULL, FALSE ); // ohne Row-Flags + nUndoFlags, FALSE, pDoc, NULL, FALSE ); // ohne Row-Flags pDocShell->PostPaintGridAll(); } else if (pSearchItem->GetPattern() && pSearchItem->GetCommand() == SVX_SEARCHCMD_REPLACE) { - String aTempStr = pSearchItem->GetSearchString(); // vertauschen + String aTempStr = pSearchItem->GetSearchString(); // vertauschen pSearchItem->SetSearchString(pSearchItem->GetReplaceString()); pSearchItem->SetReplaceString(aTempStr); pDoc->ReplaceStyle( *pSearchItem, @@ -1337,9 +1337,9 @@ BOOL __EXPORT ScUndoReplace::CanRepeat(SfxRepeatTarget& rTarget) const //============================================================================ -// class ScUndoTabOp +// class ScUndoTabOp // -// Mehrfachoperation (nur einfache Bloecke) +// Mehrfachoperation (nur einfache Bloecke) //---------------------------------------------------------------------------- @@ -1352,15 +1352,15 @@ ScUndoTabOp::ScUndoTabOp( ScDocShell* pNewDocShell, const ScRefAddress& rColCell, BYTE nMd ) // - : ScSimpleUndo( pNewDocShell ), + : ScSimpleUndo( pNewDocShell ), // - aRange ( nStartX, nStartY, nStartZ, nEndX, nEndY, nEndZ ), - pUndoDoc ( pNewUndoDoc ), - theFormulaCell ( rFormulaCell ), - theFormulaEnd ( rFormulaEnd ), - theRowCell ( rRowCell ), - theColCell ( rColCell ), - nMode ( nMd ) + aRange ( nStartX, nStartY, nStartZ, nEndX, nEndY, nEndZ ), + pUndoDoc ( pNewUndoDoc ), + theFormulaCell ( rFormulaCell ), + theFormulaEnd ( rFormulaEnd ), + theRowCell ( rRowCell ), + theColCell ( rColCell ), + nMode ( nMd ) { } @@ -1377,7 +1377,7 @@ __EXPORT ScUndoTabOp::~ScUndoTabOp() String __EXPORT ScUndoTabOp::GetComment() const { - return ScGlobal::GetRscString( STR_UNDO_TABOP ); // "Mehrfachoperation" + return ScGlobal::GetRscString( STR_UNDO_TABOP ); // "Mehrfachoperation" } @@ -1443,7 +1443,7 @@ BOOL __EXPORT ScUndoTabOp::CanRepeat(SfxRepeatTarget& /* rTarget */) const //============================================================================ // class ScUndoConversion // -// Spelling +// Spelling //---------------------------------------------------------------------------- @@ -1524,7 +1524,7 @@ void ScUndoConversion::DoChange( ScDocument* pRefDoc, const ScAddress& rCursorPo pViewShell->SetMarkData( aMarkData ); SCTAB nTabCount = pDoc->GetTableCount(); - // Undo/Redo-doc has only selected tables + // Undo/Redo-doc has only selected tables BOOL bMulti = aMarkData.IsMultiMarked(); pRefDoc->CopyToDocument( 0, 0, 0, @@ -1583,7 +1583,7 @@ BOOL ScUndoConversion::CanRepeat(SfxRepeatTarget& rTarget) const //============================================================================ // class ScUndoRefConversion // -// cell reference conversion +// cell reference conversion //---------------------------------------------------------------------------- @@ -1592,9 +1592,9 @@ ScUndoRefConversion::ScUndoRefConversion( ScDocShell* pNewDocShell, ScDocument* pNewUndoDoc, ScDocument* pNewRedoDoc, BOOL bNewMulti, USHORT nNewFlag) : ScSimpleUndo( pNewDocShell ), aMarkData ( rMark ), -pUndoDoc ( pNewUndoDoc ), -pRedoDoc ( pNewRedoDoc ), -aRange ( aMarkRange ), +pUndoDoc ( pNewUndoDoc ), +pRedoDoc ( pNewRedoDoc ), +aRange ( aMarkRange ), bMulti ( bNewMulti ), nFlags ( nNewFlag ) { @@ -1673,16 +1673,16 @@ BOOL __EXPORT ScUndoRefConversion::CanRepeat(SfxRepeatTarget& rTarget) const return (rTarget.ISA(ScTabViewTarget)); } //============================================================================ -// class ScUndoRefreshLink +// class ScUndoRefreshLink // -// Link aktualisieren / aendern +// Link aktualisieren / aendern //---------------------------------------------------------------------------- ScUndoRefreshLink::ScUndoRefreshLink( ScDocShell* pNewDocShell, ScDocument* pNewUndoDoc ) // - : ScSimpleUndo( pNewDocShell ), + : ScSimpleUndo( pNewDocShell ), // pUndoDoc( pNewUndoDoc ), pRedoDoc( NULL ) @@ -1732,7 +1732,7 @@ void __EXPORT ScUndoRefreshLink::Undo() pRedoDoc->AddUndoTab( nTab, nTab, TRUE, TRUE ); bFirst = FALSE; pDoc->CopyToDocument(aRange, IDF_ALL, FALSE, pRedoDoc); -// pRedoDoc->TransferDrawPage( pDoc, nTab, nTab ); +// pRedoDoc->TransferDrawPage( pDoc, nTab, nTab ); pRedoDoc->SetLink( nTab, pDoc->GetLinkMode(nTab), pDoc->GetLinkDoc(nTab), @@ -1744,7 +1744,7 @@ void __EXPORT ScUndoRefreshLink::Undo() pDoc->DeleteAreaTab( aRange,IDF_ALL ); pUndoDoc->CopyToDocument( aRange, IDF_ALL, FALSE, pDoc ); -// pDoc->TransferDrawPage( pUndoDoc, nTab, nTab ); +// pDoc->TransferDrawPage( pUndoDoc, nTab, nTab ); pDoc->SetLink( nTab, pUndoDoc->GetLinkMode(nTab), pUndoDoc->GetLinkDoc(nTab), pUndoDoc->GetLinkFlt(nTab), pUndoDoc->GetLinkOpt(nTab), pUndoDoc->GetLinkTab(nTab), @@ -1774,7 +1774,7 @@ void __EXPORT ScUndoRefreshLink::Redo() pDoc->DeleteAreaTab( aRange, IDF_ALL ); pRedoDoc->CopyToDocument( aRange, IDF_ALL, FALSE, pDoc ); -// pDoc->TransferDrawPage( pRedoDoc, nTab, nTab ); +// pDoc->TransferDrawPage( pRedoDoc, nTab, nTab ); pDoc->SetLink( nTab, pRedoDoc->GetLinkMode(nTab), pRedoDoc->GetLinkDoc(nTab), @@ -1794,7 +1794,7 @@ void __EXPORT ScUndoRefreshLink::Redo() void __EXPORT ScUndoRefreshLink::Repeat(SfxRepeatTarget& /* rTarget */) { - // gippsnich + // gippsnich } @@ -1828,9 +1828,9 @@ ScAreaLink* lcl_FindAreaLink( sfx2::LinkManager* pLinkManager, const String& rDo //============================================================================ -// class ScUndoInsertAreaLink +// class ScUndoInsertAreaLink // -// Bereichs-Verknuepfung einfuegen +// Bereichs-Verknuepfung einfuegen //---------------------------------------------------------------------------- @@ -1840,14 +1840,14 @@ ScUndoInsertAreaLink::ScUndoInsertAreaLink( ScDocShell* pShell, const String& rArea, const ScRange& rDestRange, ULONG nRefresh ) // - : ScSimpleUndo ( pShell ), + : ScSimpleUndo ( pShell ), // - aDocName ( rDoc ), - aFltName ( rFlt ), - aOptions ( rOpt ), - aAreaName ( rArea ), - aRange ( rDestRange ), - nRefreshDelay ( nRefresh ) + aDocName ( rDoc ), + aFltName ( rFlt ), + aOptions ( rOpt ), + aAreaName ( rArea ), + aRange ( rDestRange ), + nRefreshDelay ( nRefresh ) { } @@ -1879,7 +1879,7 @@ void __EXPORT ScUndoInsertAreaLink::Undo() if (pLink) pLinkManager->Remove( pLink ); - SFX_APP()->Broadcast( SfxSimpleHint( SC_HINT_AREALINKS_CHANGED ) ); // Navigator + SFX_APP()->Broadcast( SfxSimpleHint( SC_HINT_AREALINKS_CHANGED ) ); // Navigator } @@ -1898,7 +1898,7 @@ void __EXPORT ScUndoInsertAreaLink::Redo() pLink->Update(); pLink->SetInCreate( FALSE ); - SFX_APP()->Broadcast( SfxSimpleHint( SC_HINT_AREALINKS_CHANGED ) ); // Navigator + SFX_APP()->Broadcast( SfxSimpleHint( SC_HINT_AREALINKS_CHANGED ) ); // Navigator } @@ -1906,7 +1906,7 @@ void __EXPORT ScUndoInsertAreaLink::Redo() void __EXPORT ScUndoInsertAreaLink::Repeat(SfxRepeatTarget& /* rTarget */) { - //! .... + //! .... } @@ -1919,9 +1919,9 @@ BOOL __EXPORT ScUndoInsertAreaLink::CanRepeat(SfxRepeatTarget& /* rTarget */) co //============================================================================ -// class ScUndoRemoveAreaLink +// class ScUndoRemoveAreaLink // -// Bereichs-Verknuepfung loeschen +// Bereichs-Verknuepfung loeschen //---------------------------------------------------------------------------- @@ -1930,14 +1930,14 @@ ScUndoRemoveAreaLink::ScUndoRemoveAreaLink( ScDocShell* pShell, const String& rArea, const ScRange& rDestRange, ULONG nRefresh ) // - : ScSimpleUndo ( pShell ), + : ScSimpleUndo ( pShell ), // - aDocName ( rDoc ), - aFltName ( rFlt ), - aOptions ( rOpt ), - aAreaName ( rArea ), - aRange ( rDestRange ), - nRefreshDelay ( nRefresh ) + aDocName ( rDoc ), + aFltName ( rFlt ), + aOptions ( rOpt ), + aAreaName ( rArea ), + aRange ( rDestRange ), + nRefreshDelay ( nRefresh ) { } @@ -1953,7 +1953,7 @@ __EXPORT ScUndoRemoveAreaLink::~ScUndoRemoveAreaLink() String __EXPORT ScUndoRemoveAreaLink::GetComment() const { - return ScGlobal::GetRscString( STR_UNDO_REMOVELINK ); //! eigener Text ?? + return ScGlobal::GetRscString( STR_UNDO_REMOVELINK ); //! eigener Text ?? } @@ -1972,7 +1972,7 @@ void __EXPORT ScUndoRemoveAreaLink::Undo() pLink->Update(); pLink->SetInCreate( FALSE ); - SFX_APP()->Broadcast( SfxSimpleHint( SC_HINT_AREALINKS_CHANGED ) ); // Navigator + SFX_APP()->Broadcast( SfxSimpleHint( SC_HINT_AREALINKS_CHANGED ) ); // Navigator } @@ -1988,7 +1988,7 @@ void __EXPORT ScUndoRemoveAreaLink::Redo() if (pLink) pLinkManager->Remove( pLink ); - SFX_APP()->Broadcast( SfxSimpleHint( SC_HINT_AREALINKS_CHANGED ) ); // Navigator + SFX_APP()->Broadcast( SfxSimpleHint( SC_HINT_AREALINKS_CHANGED ) ); // Navigator } @@ -1996,7 +1996,7 @@ void __EXPORT ScUndoRemoveAreaLink::Redo() void __EXPORT ScUndoRemoveAreaLink::Repeat(SfxRepeatTarget& /* rTarget */) { - // gippsnich + // gippsnich } @@ -2009,9 +2009,9 @@ BOOL __EXPORT ScUndoRemoveAreaLink::CanRepeat(SfxRepeatTarget& /* rTarget */) co //============================================================================ -// class ScUndoUpdateAreaLink +// class ScUndoUpdateAreaLink // -// Bereichs-Verknuepfung aktualisieren +// Bereichs-Verknuepfung aktualisieren //---------------------------------------------------------------------------- @@ -2022,23 +2022,23 @@ ScUndoUpdateAreaLink::ScUndoUpdateAreaLink( ScDocShell* pShell, const String& rNewA, const ScRange& rNewR, ULONG nNewRD, ScDocument* pUndo, ScDocument* pRedo, BOOL bDoInsert ) // - : ScSimpleUndo( pShell ), + : ScSimpleUndo( pShell ), // - aOldDoc ( rOldD ), - aOldFlt ( rOldF ), - aOldOpt ( rOldO ), - aOldArea ( rOldA ), - aOldRange ( rOldR ), - aNewDoc ( rNewD ), - aNewFlt ( rNewF ), - aNewOpt ( rNewO ), - aNewArea ( rNewA ), - aNewRange ( rNewR ), - pUndoDoc ( pUndo ), - pRedoDoc ( pRedo ), - nOldRefresh ( nOldRD ), - nNewRefresh ( nNewRD ), - bWithInsert ( bDoInsert ) + aOldDoc ( rOldD ), + aOldFlt ( rOldF ), + aOldOpt ( rOldO ), + aOldArea ( rOldA ), + aOldRange ( rOldR ), + aNewDoc ( rNewD ), + aNewFlt ( rNewF ), + aNewOpt ( rNewO ), + aNewArea ( rNewA ), + aNewRange ( rNewR ), + pUndoDoc ( pUndo ), + pRedoDoc ( pRedo ), + nOldRefresh ( nOldRD ), + nNewRefresh ( nNewRD ), + bWithInsert ( bDoInsert ) { DBG_ASSERT( aOldRange.aStart == aNewRange.aStart, "AreaLink verschoben ?" ); } @@ -2057,7 +2057,7 @@ __EXPORT ScUndoUpdateAreaLink::~ScUndoUpdateAreaLink() String __EXPORT ScUndoUpdateAreaLink::GetComment() const { - return ScGlobal::GetRscString( STR_UNDO_UPDATELINK ); //! eigener Text ?? + return ScGlobal::GetRscString( STR_UNDO_UPDATELINK ); //! eigener Text ?? } @@ -2069,7 +2069,7 @@ void ScUndoUpdateAreaLink::DoChange( const BOOL bUndo ) const SCCOL nEndX = Max( aOldRange.aEnd.Col(), aNewRange.aEnd.Col() ); SCROW nEndY = Max( aOldRange.aEnd.Row(), aNewRange.aEnd.Row() ); - SCTAB nEndZ = Max( aOldRange.aEnd.Tab(), aNewRange.aEnd.Tab() ); //? + SCTAB nEndZ = Max( aOldRange.aEnd.Tab(), aNewRange.aEnd.Tab() ); //? if ( bUndo ) { @@ -2105,7 +2105,7 @@ void ScUndoUpdateAreaLink::DoChange( const BOOL bUndo ) const ScRange aWorkRange( aNewRange.aStart, ScAddress( nEndX, nEndY, nEndZ ) ); pDoc->ExtendMerge( aWorkRange, TRUE ); - // Paint + // Paint if ( aNewRange.aEnd.Col() != aOldRange.aEnd.Col() ) aWorkRange.aEnd.SetCol(MAXCOL); @@ -2132,7 +2132,7 @@ void __EXPORT ScUndoUpdateAreaLink::Undo() aNewArea, aNewRange ); if (pLink) { - pLink->SetSource( aOldDoc, aOldFlt, aOldOpt, aOldArea ); // alte Werte im Link + pLink->SetSource( aOldDoc, aOldFlt, aOldOpt, aOldArea ); // alte Werte im Link pLink->SetDestArea( aOldRange ); pLink->SetRefreshDelay( nOldRefresh ); } @@ -2151,7 +2151,7 @@ void __EXPORT ScUndoUpdateAreaLink::Redo() aOldArea, aOldRange ); if (pLink) { - pLink->SetSource( aNewDoc, aNewFlt, aNewOpt, aNewArea ); // neue Werte im Link + pLink->SetSource( aNewDoc, aNewFlt, aNewOpt, aNewArea ); // neue Werte im Link pLink->SetDestArea( aNewRange ); pLink->SetRefreshDelay( nNewRefresh ); } @@ -2164,7 +2164,7 @@ void __EXPORT ScUndoUpdateAreaLink::Redo() void __EXPORT ScUndoUpdateAreaLink::Repeat(SfxRepeatTarget& /* rTarget */) { - // gippsnich + // gippsnich } diff --git a/sc/source/ui/undo/undocell.cxx b/sc/source/ui/undo/undocell.cxx index 65e903c42990..0a96ee409fd3 100644 --- a/sc/source/ui/undo/undocell.cxx +++ b/sc/source/ui/undo/undocell.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 @@ -74,7 +74,7 @@ TYPEINIT1(ScUndoRangeNames, ScSimpleUndo); // ----------------------------------------------------------------------- // -// Attribute auf Cursor anwenden +// Attribute auf Cursor anwenden // ScUndoCursorAttr::ScUndoCursorAttr( ScDocShell* pNewDocShell, @@ -105,9 +105,9 @@ __EXPORT ScUndoCursorAttr::~ScUndoCursorAttr() String __EXPORT ScUndoCursorAttr::GetComment() const { - //! eigener Text fuer automatische Attributierung + //! eigener Text fuer automatische Attributierung - USHORT nId = STR_UNDO_CURSORATTR; // "Attribute" + USHORT nId = STR_UNDO_CURSORATTR; // "Attribute" return ScGlobal::GetRscString( nId ); } @@ -155,8 +155,8 @@ void __EXPORT ScUndoCursorAttr::Undo() if ( bIsAutomatic ) { - // wenn automatische Formatierung rueckgaengig gemacht wird, - // soll auch nicht weiter automatisch formatiert werden: + // wenn automatische Formatierung rueckgaengig gemacht wird, + // soll auch nicht weiter automatisch formatiert werden: ScTabViewShell* pViewShell = ScTabViewShell::GetActiveViewShell(); if (pViewShell) @@ -187,7 +187,7 @@ BOOL __EXPORT ScUndoCursorAttr::CanRepeat(SfxRepeatTarget& rTarget) const // ----------------------------------------------------------------------- // -// Daten eingeben +// Daten eingeben // ScUndoEnterData::ScUndoEnterData( ScDocShell* pNewDocShell, @@ -231,8 +231,8 @@ String __EXPORT ScUndoEnterData::GetComment() const void ScUndoEnterData::DoChange() const { - // Zeilenhoehe anpassen - //! nur wenn noetig (alte oder neue EditZelle, oder Attribute) ?? + // Zeilenhoehe anpassen + //! nur wenn noetig (alte oder neue EditZelle, oder Attribute) ?? for (USHORT i=0; i<nCount; i++) pDocShell->AdjustRowHeight( nRow, nRow, pTabs[i] ); @@ -265,7 +265,7 @@ void ScUndoEnterData::SetChangeTrack() pChangeTrack->AppendContent( aPos, ppOldCells[i], nFormat ); } if ( nEndChangeAction > pChangeTrack->GetActionMax() ) - nEndChangeAction = 0; // nichts appended + nEndChangeAction = 0; // nichts appended } else nEndChangeAction = 0; @@ -366,16 +366,16 @@ BOOL __EXPORT ScUndoEnterData::CanRepeat(SfxRepeatTarget& rTarget) const // ----------------------------------------------------------------------- // -// Wert aendern +// Wert aendern // ScUndoEnterValue::ScUndoEnterValue( ScDocShell* pNewDocShell, const ScAddress& rNewPos, ScBaseCell* pUndoCell, double nVal, BOOL bHeight ) : ScSimpleUndo( pNewDocShell ), - aPos ( rNewPos ), - pOldCell ( pUndoCell ), - nValue ( nVal ), - bNeedHeight ( bHeight ) + aPos ( rNewPos ), + pOldCell ( pUndoCell ), + nValue ( nVal ), + bNeedHeight ( bHeight ) { SetChangeTrack(); } @@ -400,7 +400,7 @@ void ScUndoEnterValue::SetChangeTrack() nEndChangeAction = pChangeTrack->GetActionMax() + 1; pChangeTrack->AppendContent( aPos, pOldCell ); if ( nEndChangeAction > pChangeTrack->GetActionMax() ) - nEndChangeAction = 0; // nichts appended + nEndChangeAction = 0; // nichts appended } else nEndChangeAction = 0; @@ -439,7 +439,7 @@ void __EXPORT ScUndoEnterValue::Redo() void __EXPORT ScUndoEnterValue::Repeat(SfxRepeatTarget& /* rTarget */) { - // gippsnich + // gippsnich } BOOL __EXPORT ScUndoEnterValue::CanRepeat(SfxRepeatTarget& /* rTarget */) const @@ -450,16 +450,16 @@ BOOL __EXPORT ScUndoEnterValue::CanRepeat(SfxRepeatTarget& /* rTarget */) const // ----------------------------------------------------------------------- // -// Beliebige Zelle eingeben +// Beliebige Zelle eingeben // ScUndoPutCell::ScUndoPutCell( ScDocShell* pNewDocShell, const ScAddress& rNewPos, ScBaseCell* pUndoCell, ScBaseCell* pRedoCell, BOOL bHeight ) : ScSimpleUndo( pNewDocShell ), - aPos ( rNewPos ), - pOldCell ( pUndoCell ), + aPos ( rNewPos ), + pOldCell ( pUndoCell ), pEnteredCell( pRedoCell ), - bNeedHeight ( bHeight ) + bNeedHeight ( bHeight ) { SetChangeTrack(); } @@ -486,7 +486,7 @@ void ScUndoPutCell::SetChangeTrack() nEndChangeAction = pChangeTrack->GetActionMax() + 1; pChangeTrack->AppendContent( aPos, pOldCell ); if ( nEndChangeAction > pChangeTrack->GetActionMax() ) - nEndChangeAction = 0; // nichts appended + nEndChangeAction = 0; // nichts appended } else nEndChangeAction = 0; @@ -528,7 +528,7 @@ void __EXPORT ScUndoPutCell::Redo() void __EXPORT ScUndoPutCell::Repeat(SfxRepeatTarget& /* rTarget */) { - // gippsnich + // gippsnich } BOOL __EXPORT ScUndoPutCell::CanRepeat(SfxRepeatTarget& /* rTarget */) const @@ -539,7 +539,7 @@ BOOL __EXPORT ScUndoPutCell::CanRepeat(SfxRepeatTarget& /* rTarget */) const // ----------------------------------------------------------------------- // -// Seitenumbrueche +// Seitenumbrueche // ScUndoPageBreak::ScUndoPageBreak( ScDocShell* pNewDocShell, @@ -624,7 +624,7 @@ BOOL __EXPORT ScUndoPageBreak::CanRepeat(SfxRepeatTarget& rTarget) const // ----------------------------------------------------------------------- // -// Druck-Skalierung +// Druck-Skalierung // ScUndoPrintZoom::ScUndoPrintZoom( ScDocShell* pNewDocShell, @@ -700,7 +700,7 @@ BOOL __EXPORT ScUndoPrintZoom::CanRepeat(SfxRepeatTarget& rTarget) const // ----------------------------------------------------------------------- // -// Thesaurus +// Thesaurus // ScUndoThesaurus::ScUndoThesaurus( ScDocShell* pNewDocShell, @@ -734,7 +734,7 @@ __EXPORT ScUndoThesaurus::~ScUndoThesaurus() String __EXPORT ScUndoThesaurus::GetComment() const { - return ScGlobal::GetRscString( STR_UNDO_THESAURUS ); // "Thesaurus" + return ScGlobal::GetRscString( STR_UNDO_THESAURUS ); // "Thesaurus" } void ScUndoThesaurus::SetChangeTrack( ScBaseCell* pOldCell ) @@ -745,7 +745,7 @@ void ScUndoThesaurus::SetChangeTrack( ScBaseCell* pOldCell ) nEndChangeAction = pChangeTrack->GetActionMax() + 1; pChangeTrack->AppendContent( ScAddress( nCol, nRow, nTab ), pOldCell ); if ( nEndChangeAction > pChangeTrack->GetActionMax() ) - nEndChangeAction = 0; // nichts appended + nEndChangeAction = 0; // nichts appended } else nEndChangeAction = 0; @@ -969,16 +969,16 @@ String ScUndoShowHideNote::GetComment() const // ----------------------------------------------------------------------- // -// Detektiv +// Detektiv // ScUndoDetective::ScUndoDetective( ScDocShell* pNewDocShell, SdrUndoAction* pDraw, const ScDetOpData* pOperation, ScDetOpList* pUndoList ) : ScSimpleUndo( pNewDocShell ), - pOldList ( pUndoList ), - nAction ( 0 ), - pDrawUndo ( pDraw ) + pOldList ( pUndoList ), + nAction ( 0 ), + pDrawUndo ( pDraw ) { bIsDelete = ( pOperation == NULL ); if (!bIsDelete) @@ -1000,11 +1000,11 @@ String __EXPORT ScUndoDetective::GetComment() const if ( !bIsDelete ) switch ( (ScDetOpType) nAction ) { - case SCDETOP_ADDSUCC: nId = STR_UNDO_DETADDSUCC; break; - case SCDETOP_DELSUCC: nId = STR_UNDO_DETDELSUCC; break; - case SCDETOP_ADDPRED: nId = STR_UNDO_DETADDPRED; break; - case SCDETOP_DELPRED: nId = STR_UNDO_DETDELPRED; break; - case SCDETOP_ADDERROR: nId = STR_UNDO_DETADDERROR; break; + case SCDETOP_ADDSUCC: nId = STR_UNDO_DETADDSUCC; break; + case SCDETOP_DELSUCC: nId = STR_UNDO_DETDELSUCC; break; + case SCDETOP_ADDPRED: nId = STR_UNDO_DETADDPRED; break; + case SCDETOP_DELPRED: nId = STR_UNDO_DETDELPRED; break; + case SCDETOP_ADDERROR: nId = STR_UNDO_DETADDERROR; break; } return ScGlobal::GetRscString( nId ); @@ -1025,7 +1025,7 @@ void __EXPORT ScUndoDetective::Undo() } else { - // Eintrag aus der Liste loeschen + // Eintrag aus der Liste loeschen ScDetOpList* pList = pDoc->GetDetOpList(); if (pList && pList->Count()) @@ -1043,7 +1043,7 @@ void __EXPORT ScUndoDetective::Undo() ScTabViewShell* pViewShell = ScTabViewShell::GetActiveViewShell(); if (pViewShell) - pViewShell->RecalcPPT(); //! use broadcast instead? + pViewShell->RecalcPPT(); //! use broadcast instead? EndUndo(); } @@ -1063,14 +1063,14 @@ void __EXPORT ScUndoDetective::Redo() ScTabViewShell* pViewShell = ScTabViewShell::GetActiveViewShell(); if (pViewShell) - pViewShell->RecalcPPT(); //! use broadcast instead? + pViewShell->RecalcPPT(); //! use broadcast instead? EndRedo(); } void __EXPORT ScUndoDetective::Repeat(SfxRepeatTarget& /* rTarget */) { - // hammanich + // hammanich } BOOL __EXPORT ScUndoDetective::CanRepeat(SfxRepeatTarget& /* rTarget */) const @@ -1080,14 +1080,14 @@ BOOL __EXPORT ScUndoDetective::CanRepeat(SfxRepeatTarget& /* rTarget */) const // ----------------------------------------------------------------------- // -// Benannte Bereiche +// Benannte Bereiche // ScUndoRangeNames::ScUndoRangeNames( ScDocShell* pNewDocShell, ScRangeName* pOld, ScRangeName* pNew ) : ScSimpleUndo( pNewDocShell ), - pOldRanges ( pOld ), - pNewRanges ( pNew ) + pOldRanges ( pOld ), + pNewRanges ( pNew ) { } @@ -1105,14 +1105,14 @@ String __EXPORT ScUndoRangeNames::GetComment() const void ScUndoRangeNames::DoChange( BOOL bUndo ) { ScDocument* pDoc = pDocShell->GetDocument(); - pDoc->CompileNameFormula( TRUE ); // CreateFormulaString + pDoc->CompileNameFormula( TRUE ); // CreateFormulaString if ( bUndo ) pDoc->SetRangeName( new ScRangeName( *pOldRanges ) ); else pDoc->SetRangeName( new ScRangeName( *pNewRanges ) ); - pDoc->CompileNameFormula( FALSE ); // CompileFormulaString + pDoc->CompileNameFormula( FALSE ); // CompileFormulaString SFX_APP()->Broadcast( SfxSimpleHint( SC_HINT_AREAS_CHANGED ) ); } @@ -1133,7 +1133,7 @@ void __EXPORT ScUndoRangeNames::Redo() void __EXPORT ScUndoRangeNames::Repeat(SfxRepeatTarget& /* rTarget */) { - // hammanich + // hammanich } BOOL __EXPORT ScUndoRangeNames::CanRepeat(SfxRepeatTarget& /* rTarget */) const diff --git a/sc/source/ui/undo/undodat.cxx b/sc/source/ui/undo/undodat.cxx index 308a3e7b2ef7..6dd1c57d9b4d 100644 --- a/sc/source/ui/undo/undodat.cxx +++ b/sc/source/ui/undo/undodat.cxx @@ -80,7 +80,7 @@ TYPEINIT1(ScUndoDataForm, SfxUndoAction); // amelia // -// Outline-Gruppen ein- oder ausblenden +// Outline-Gruppen ein- oder ausblenden // ScUndoDoOutline::ScUndoDoOutline( ScDocShell* pNewDocShell, @@ -105,7 +105,7 @@ __EXPORT ScUndoDoOutline::~ScUndoDoOutline() } String __EXPORT ScUndoDoOutline::GetComment() const -{ // Detail einblenden" "Detail ausblenden" +{ // Detail einblenden" "Detail ausblenden" return bShow ? ScGlobal::GetRscString( STR_UNDO_DOOUTLINE ) : ScGlobal::GetRscString( STR_UNDO_REDOOUTLINE ); @@ -118,20 +118,20 @@ void __EXPORT ScUndoDoOutline::Undo() ScDocument* pDoc = pDocShell->GetDocument(); ScTabViewShell* pViewShell = ScTabViewShell::GetActiveViewShell(); - // Tabelle muss vorher umgeschaltet sein (#46952#) !!! + // Tabelle muss vorher umgeschaltet sein (#46952#) !!! SCTAB nVisTab = pViewShell->GetViewData()->GetTabNo(); if ( nVisTab != nTab ) pViewShell->SetTabNo( nTab ); - // inverse Funktion ausfuehren + // inverse Funktion ausfuehren if (bShow) pViewShell->HideOutline( bColumns, nLevel, nEntry, FALSE, FALSE ); else pViewShell->ShowOutline( bColumns, nLevel, nEntry, FALSE, FALSE ); - // Original Spalten-/Zeilenstatus + // Original Spalten-/Zeilenstatus if (bColumns) pUndoDoc->CopyToDocument( static_cast<SCCOL>(nStart), 0, nTab, @@ -152,7 +152,7 @@ void __EXPORT ScUndoDoOutline::Redo() ScTabViewShell* pViewShell = ScTabViewShell::GetActiveViewShell(); - // Tabelle muss vorher umgeschaltet sein (#46952#) !!! + // Tabelle muss vorher umgeschaltet sein (#46952#) !!! SCTAB nVisTab = pViewShell->GetViewData()->GetTabNo(); if ( nVisTab != nTab ) @@ -172,11 +172,11 @@ void __EXPORT ScUndoDoOutline::Repeat(SfxRepeatTarget& /* rTarget */) BOOL __EXPORT ScUndoDoOutline::CanRepeat(SfxRepeatTarget& /* rTarget */) const { - return FALSE; // geht nicht + return FALSE; // geht nicht } // -// Outline-Gruppen erzeugen oder loeschen +// Outline-Gruppen erzeugen oder loeschen // ScUndoMakeOutline::ScUndoMakeOutline( ScDocShell* pNewDocShell, @@ -198,7 +198,7 @@ __EXPORT ScUndoMakeOutline::~ScUndoMakeOutline() } String __EXPORT ScUndoMakeOutline::GetComment() const -{ // "Gruppierung" "Gruppierung aufheben" +{ // "Gruppierung" "Gruppierung aufheben" return bMake ? ScGlobal::GetRscString( STR_UNDO_MAKEOUTLINE ) : ScGlobal::GetRscString( STR_UNDO_REMAKEOUTLINE ); @@ -262,7 +262,7 @@ BOOL __EXPORT ScUndoMakeOutline::CanRepeat(SfxRepeatTarget& rTarget) const } // -// Outline-Ebene auswaehlen +// Outline-Ebene auswaehlen // ScUndoOutlineLevel::ScUndoOutlineLevel( ScDocShell* pNewDocShell, @@ -287,7 +287,7 @@ __EXPORT ScUndoOutlineLevel::~ScUndoOutlineLevel() } String __EXPORT ScUndoOutlineLevel::GetComment() const -{ // "Gliederungsebene auswaehlen"; +{ // "Gliederungsebene auswaehlen"; return ScGlobal::GetRscString( STR_UNDO_OUTLINELEVEL ); } @@ -298,11 +298,11 @@ void __EXPORT ScUndoOutlineLevel::Undo() ScDocument* pDoc = pDocShell->GetDocument(); ScTabViewShell* pViewShell = ScTabViewShell::GetActiveViewShell(); - // Original Outline-Table + // Original Outline-Table pDoc->SetOutlineTable( nTab, pUndoTable ); - // Original Spalten-/Zeilenstatus + // Original Spalten-/Zeilenstatus if (bColumns) pUndoDoc->CopyToDocument( static_cast<SCCOL>(nStart), 0, nTab, @@ -329,7 +329,7 @@ void __EXPORT ScUndoOutlineLevel::Redo() ScTabViewShell* pViewShell = ScTabViewShell::GetActiveViewShell(); - // Tabelle muss vorher umgeschaltet sein (#46952#) !!! + // Tabelle muss vorher umgeschaltet sein (#46952#) !!! SCTAB nVisTab = pViewShell->GetViewData()->GetTabNo(); if ( nVisTab != nTab ) @@ -352,7 +352,7 @@ BOOL __EXPORT ScUndoOutlineLevel::CanRepeat(SfxRepeatTarget& rTarget) const } // -// Outline ueber Blockmarken ein- oder ausblenden +// Outline ueber Blockmarken ein- oder ausblenden // ScUndoOutlineBlock::ScUndoOutlineBlock( ScDocShell* pNewDocShell, @@ -375,7 +375,7 @@ __EXPORT ScUndoOutlineBlock::~ScUndoOutlineBlock() } String __EXPORT ScUndoOutlineBlock::GetComment() const -{ // "Detail einblenden" "Detail ausblenden" +{ // "Detail einblenden" "Detail ausblenden" return bShow ? ScGlobal::GetRscString( STR_UNDO_DOOUTLINEBLK ) : ScGlobal::GetRscString( STR_UNDO_REDOOUTLINEBLK ); @@ -389,19 +389,19 @@ void __EXPORT ScUndoOutlineBlock::Undo() ScTabViewShell* pViewShell = ScTabViewShell::GetActiveViewShell(); SCTAB nTab = aBlockStart.Tab(); - // Original Outline-Table + // Original Outline-Table pDoc->SetOutlineTable( nTab, pUndoTable ); - // Original Spalten-/Zeilenstatus + // Original Spalten-/Zeilenstatus - SCCOLROW nStartCol = aBlockStart.Col(); - SCCOLROW nEndCol = aBlockEnd.Col(); - SCCOLROW nStartRow = aBlockStart.Row(); - SCCOLROW nEndRow = aBlockEnd.Row(); + SCCOLROW nStartCol = aBlockStart.Col(); + SCCOLROW nEndCol = aBlockEnd.Col(); + SCCOLROW nStartRow = aBlockStart.Row(); + SCCOLROW nEndRow = aBlockEnd.Row(); if (!bShow) - { // Groesse des ausgeblendeten Blocks + { // Groesse des ausgeblendeten Blocks USHORT nLevel; pUndoTable->GetColArray()->FindTouchedLevel( nStartCol, nEndCol, nLevel ); pUndoTable->GetColArray()->ExtendBlock( nLevel, nStartCol, nEndCol ); @@ -460,7 +460,7 @@ BOOL __EXPORT ScUndoOutlineBlock::CanRepeat(SfxRepeatTarget& rTarget) const } // -// alle Outlines loeschen +// alle Outlines loeschen // ScUndoRemoveAllOutlines::ScUndoRemoveAllOutlines( ScDocShell* pNewDocShell, @@ -482,7 +482,7 @@ __EXPORT ScUndoRemoveAllOutlines::~ScUndoRemoveAllOutlines() } String __EXPORT ScUndoRemoveAllOutlines::GetComment() const -{ // "Gliederung entfernen" +{ // "Gliederung entfernen" return ScGlobal::GetRscString( STR_UNDO_REMOVEALLOTLNS ); } @@ -494,16 +494,16 @@ void __EXPORT ScUndoRemoveAllOutlines::Undo() ScTabViewShell* pViewShell = ScTabViewShell::GetActiveViewShell(); SCTAB nTab = aBlockStart.Tab(); - // Original Outline-Table + // Original Outline-Table pDoc->SetOutlineTable( nTab, pUndoTable ); - // Original Spalten-/Zeilenstatus + // Original Spalten-/Zeilenstatus - SCCOL nStartCol = aBlockStart.Col(); - SCCOL nEndCol = aBlockEnd.Col(); - SCROW nStartRow = aBlockStart.Row(); - SCROW nEndRow = aBlockEnd.Row(); + SCCOL nStartCol = aBlockStart.Col(); + SCCOL nEndCol = aBlockEnd.Col(); + SCROW nStartRow = aBlockStart.Row(); + SCROW nEndRow = aBlockEnd.Row(); pUndoDoc->CopyToDocument( nStartCol, 0, nTab, nEndCol, MAXROW, nTab, IDF_NONE, FALSE, pDoc ); pUndoDoc->CopyToDocument( 0, nStartRow, nTab, MAXCOL, nEndRow, nTab, IDF_NONE, FALSE, pDoc ); @@ -527,7 +527,7 @@ void __EXPORT ScUndoRemoveAllOutlines::Redo() ScTabViewShell* pViewShell = ScTabViewShell::GetActiveViewShell(); - // Tabelle muss vorher umgeschaltet sein (#46952#) !!! + // Tabelle muss vorher umgeschaltet sein (#46952#) !!! SCTAB nTab = aBlockStart.Tab(); SCTAB nVisTab = pViewShell->GetViewData()->GetTabNo(); @@ -551,7 +551,7 @@ BOOL __EXPORT ScUndoRemoveAllOutlines::CanRepeat(SfxRepeatTarget& rTarget) const } // -// Auto-Outline +// Auto-Outline // ScUndoAutoOutline::ScUndoAutoOutline( ScDocShell* pNewDocShell, @@ -573,7 +573,7 @@ __EXPORT ScUndoAutoOutline::~ScUndoAutoOutline() } String __EXPORT ScUndoAutoOutline::GetComment() const -{ // "Auto-Gliederung" +{ // "Auto-Gliederung" return ScGlobal::GetRscString( STR_UNDO_AUTOOUTLINE ); } @@ -585,11 +585,11 @@ void __EXPORT ScUndoAutoOutline::Undo() ScTabViewShell* pViewShell = ScTabViewShell::GetActiveViewShell(); SCTAB nTab = aBlockStart.Tab(); - // Original Outline-Table + // Original Outline-Table pDoc->SetOutlineTable( nTab, pUndoTable ); - // Original Spalten-/Zeilenstatus + // Original Spalten-/Zeilenstatus if (pUndoDoc && pUndoTable) { @@ -626,7 +626,7 @@ void __EXPORT ScUndoAutoOutline::Redo() SCTAB nTab = aBlockStart.Tab(); if (pViewShell) { - // Tabelle muss vorher umgeschaltet sein (#46952#) !!! + // Tabelle muss vorher umgeschaltet sein (#46952#) !!! SCTAB nVisTab = pViewShell->GetViewData()->GetTabNo(); if ( nVisTab != nTab ) @@ -638,9 +638,9 @@ void __EXPORT ScUndoAutoOutline::Redo() ScOutlineDocFunc aFunc( *pDocShell ); aFunc.AutoOutline( aRange, FALSE, FALSE ); - // auf der View markieren - // Wenn's beim Aufruf eine Mehrfachselektion war, ist es jetzt der - // umschliessende Bereich... + // auf der View markieren + // Wenn's beim Aufruf eine Mehrfachselektion war, ist es jetzt der + // umschliessende Bereich... if (pViewShell) pViewShell->MarkRange( aRange ); @@ -660,7 +660,7 @@ BOOL __EXPORT ScUndoAutoOutline::CanRepeat(SfxRepeatTarget& rTarget) const } // -// Zwischenergebnisse +// Zwischenergebnisse // ScUndoSubTotals::ScUndoSubTotals( ScDocShell* pNewDocShell, SCTAB nNewTab, @@ -688,7 +688,7 @@ __EXPORT ScUndoSubTotals::~ScUndoSubTotals() } String __EXPORT ScUndoSubTotals::GetComment() const -{ // "Teilergebnisse" +{ // "Teilergebnisse" return ScGlobal::GetRscString( STR_UNDO_SUBTOTALS ); } @@ -699,8 +699,8 @@ void __EXPORT ScUndoSubTotals::Undo() ScDocument* pDoc = pDocShell->GetDocument(); ScTabViewShell* pViewShell = ScTabViewShell::GetActiveViewShell(); - // um einzelnen DB-Bereich anzupassen -/* ScDBData* pOldDBData = ScUndoUtil::GetOldDBData( pUndoDBData, pDoc, nTab, + // um einzelnen DB-Bereich anzupassen +/* ScDBData* pOldDBData = ScUndoUtil::GetOldDBData( pUndoDBData, pDoc, nTab, aParam.nCol1, aParam.nRow1, aParam.nCol2, nNewEndRow ); */ @@ -714,11 +714,11 @@ void __EXPORT ScUndoSubTotals::Undo() } - // Original Outline-Table + // Original Outline-Table pDoc->SetOutlineTable( nTab, pUndoTable ); - // Original Spalten-/Zeilenstatus + // Original Spalten-/Zeilenstatus if (pUndoDoc && pUndoTable) { @@ -737,7 +737,7 @@ void __EXPORT ScUndoSubTotals::Undo() pViewShell->UpdateScrollBars(); } - // Original-Daten & Referenzen + // Original-Daten & Referenzen ScUndoUtil::MarkSimpleBlock( pDocShell, 0, aParam.nRow1+1, nTab, MAXCOL, aParam.nRow2, nTab ); @@ -745,14 +745,14 @@ void __EXPORT ScUndoSubTotals::Undo() pDoc->DeleteAreaTab( 0,aParam.nRow1+1, MAXCOL,aParam.nRow2, nTab, IDF_ALL ); pUndoDoc->CopyToDocument( 0, aParam.nRow1+1, nTab, MAXCOL, aParam.nRow2, nTab, - IDF_NONE, FALSE, pDoc ); // Flags + IDF_NONE, FALSE, pDoc ); // Flags pUndoDoc->UndoToDocument( 0, aParam.nRow1+1, nTab, MAXCOL, aParam.nRow2, nTab, IDF_ALL, FALSE, pDoc ); ScUndoUtil::MarkSimpleBlock( pDocShell, aParam.nCol1,aParam.nRow1,nTab, aParam.nCol2,aParam.nRow2,nTab ); -/* if (pUndoDBData) +/* if (pUndoDBData) *pOldDBData = *pUndoDBData; */ if (pUndoRange) @@ -793,11 +793,11 @@ void __EXPORT ScUndoSubTotals::Repeat(SfxRepeatTarget& /* rTarget */) BOOL __EXPORT ScUndoSubTotals::CanRepeat(SfxRepeatTarget& /* rTarget */) const { - return FALSE; // geht nicht wegen Spaltennummern + return FALSE; // geht nicht wegen Spaltennummern } // -// Sortieren +// Sortieren // ScUndoSort::ScUndoSort( ScDocShell* pNewDocShell, @@ -840,8 +840,8 @@ void __EXPORT ScUndoSort::Undo() SCCOL nStartCol = aSortParam.nCol1; SCROW nStartRow = aSortParam.nRow1; - SCCOL nEndCol = aSortParam.nCol2; - SCROW nEndRow = aSortParam.nRow2; + SCCOL nEndCol = aSortParam.nCol2; + SCROW nEndRow = aSortParam.nRow2; SCTAB nSortTab = nTab; if ( !aSortParam.bInplace ) { @@ -867,9 +867,9 @@ void __EXPORT ScUndoSort::Undo() pUndoDoc->CopyToDocument( aDestRange, IDF_ALL|IDF_NOCAPTIONS, FALSE, pDoc ); } - // Zeilenhoehen immer (wegen automatischer Anpassung) - //! auf ScBlockUndo umstellen -// if (bRepeatQuery) + // Zeilenhoehen immer (wegen automatischer Anpassung) + //! auf ScBlockUndo umstellen +// if (bRepeatQuery) pUndoDoc->CopyToDocument( 0, nStartRow, nSortTab, MAXCOL, nEndRow, nSortTab, IDF_NONE, FALSE, pDoc ); @@ -896,16 +896,16 @@ void __EXPORT ScUndoSort::Redo() if ( nVisTab != nTab ) pViewShell->SetTabNo( nTab ); -// pViewShell->DoneBlockMode(); -// pViewShell->InitOwnBlockMode(); -// pViewShell->GetViewData()->GetMarkData() = aMarkData; // CopyMarksTo +// pViewShell->DoneBlockMode(); +// pViewShell->InitOwnBlockMode(); +// pViewShell->GetViewData()->GetMarkData() = aMarkData; // CopyMarksTo pViewShell->MarkRange( ScRange( aSortParam.nCol1, aSortParam.nRow1, nTab, aSortParam.nCol2, aSortParam.nRow2, nTab ) ); pViewShell->Sort( aSortParam, FALSE ); - // Quellbereich painten wegen Markierung + // Quellbereich painten wegen Markierung if ( !aSortParam.bInplace ) pDocShell->PostPaint( aSortParam.nCol1, aSortParam.nRow1, nTab, aSortParam.nCol2, aSortParam.nRow2, nTab, PAINT_GRID ); @@ -919,11 +919,11 @@ void __EXPORT ScUndoSort::Repeat(SfxRepeatTarget& /* rTarget */) BOOL __EXPORT ScUndoSort::CanRepeat(SfxRepeatTarget& /* rTarget */) const { - return FALSE; // geht nicht wegen Spaltennummern + return FALSE; // geht nicht wegen Spaltennummern } // -// Filtern +// Filtern // ScUndoQuery::ScUndoQuery( ScDocShell* pNewDocShell, SCTAB nNewTab, const ScQueryParam& rParam, @@ -935,7 +935,7 @@ ScUndoQuery::ScUndoQuery( ScDocShell* pNewDocShell, SCTAB nNewTab, const ScQuery nTab( nNewTab ), aQueryParam( rParam ), pUndoDoc( pNewUndoDoc ), -// pUndoDBData( pNewData ) +// pUndoDBData( pNewData ) pUndoDB( pNewUndoDB ), bIsAdvanced( FALSE ), bDestArea( FALSE ), @@ -958,13 +958,13 @@ ScUndoQuery::ScUndoQuery( ScDocShell* pNewDocShell, SCTAB nNewTab, const ScQuery __EXPORT ScUndoQuery::~ScUndoQuery() { delete pUndoDoc; -// delete pUndoDBData; +// delete pUndoDBData; delete pUndoDB; DeleteSdrUndoAction( pDrawUndo ); } String __EXPORT ScUndoQuery::GetComment() const -{ // "Filtern"; +{ // "Filtern"; return ScGlobal::GetRscString( STR_UNDO_QUERY ); } @@ -995,7 +995,7 @@ void __EXPORT ScUndoQuery::Undo() if ( bDoSize && bDestArea ) { - // aDestRange ist der alte Bereich + // aDestRange ist der alte Bereich pDoc->FitBlock( ScRange( aQueryParam.nDestCol, aQueryParam.nDestRow, aQueryParam.nDestTab, nDestEndCol, nDestEndRow, aQueryParam.nDestTab ), @@ -1013,9 +1013,9 @@ void __EXPORT ScUndoQuery::Undo() pUndoDoc->CopyToDocument( aQueryParam.nDestCol, aQueryParam.nDestRow, aQueryParam.nDestTab, nDestEndCol, nDestEndRow, aQueryParam.nDestTab, IDF_ALL, FALSE, pDoc ); - // Attribute werden immer mitkopiert (#49287#) + // Attribute werden immer mitkopiert (#49287#) - // Rest von altem Bereich + // Rest von altem Bereich if ( bDestArea && !bDoSize ) { pDoc->DeleteAreaTab( aOldDest, IDF_ALL ); @@ -1045,7 +1045,7 @@ void __EXPORT ScUndoQuery::Undo() if ( nVisTab != nTab ) pViewShell->SetTabNo( nTab ); - // Paint + // Paint if (bCopy) { @@ -1095,7 +1095,7 @@ void __EXPORT ScUndoQuery::Repeat(SfxRepeatTarget& /* rTarget */) BOOL __EXPORT ScUndoQuery::CanRepeat(SfxRepeatTarget& /* rTarget */) const { - return FALSE; // geht nicht wegen Spaltennummern + return FALSE; // geht nicht wegen Spaltennummern } // @@ -1171,7 +1171,7 @@ BOOL ScUndoAutoFilter::CanRepeat(SfxRepeatTarget& /* rTarget */) const } // -// Datenbankbereiche aendern (Dialog) +// Datenbankbereiche aendern (Dialog) // ScUndoDBData::ScUndoDBData( ScDocShell* pNewDocShell, @@ -1189,7 +1189,7 @@ __EXPORT ScUndoDBData::~ScUndoDBData() } String __EXPORT ScUndoDBData::GetComment() const -{ // "Datenbankbereiche aendern"; +{ // "Datenbankbereiche aendern"; return ScGlobal::GetRscString( STR_UNDO_DBDATA ); } @@ -1200,10 +1200,10 @@ void __EXPORT ScUndoDBData::Undo() ScDocument* pDoc = pDocShell->GetDocument(); BOOL bOldAutoCalc = pDoc->GetAutoCalc(); - pDoc->SetAutoCalc( FALSE ); // unnoetige Berechnungen vermeiden - pDoc->CompileDBFormula( TRUE ); // CreateFormulaString + pDoc->SetAutoCalc( FALSE ); // unnoetige Berechnungen vermeiden + pDoc->CompileDBFormula( TRUE ); // CreateFormulaString pDoc->SetDBCollection( new ScDBCollection(*pUndoColl), TRUE ); - pDoc->CompileDBFormula( FALSE ); // CompileFormulaString + pDoc->CompileDBFormula( FALSE ); // CompileFormulaString pDoc->SetAutoCalc( bOldAutoCalc ); SFX_APP()->Broadcast( SfxSimpleHint( SC_HINT_DBAREAS_CHANGED ) ); @@ -1218,10 +1218,10 @@ void __EXPORT ScUndoDBData::Redo() ScDocument* pDoc = pDocShell->GetDocument(); BOOL bOldAutoCalc = pDoc->GetAutoCalc(); - pDoc->SetAutoCalc( FALSE ); // unnoetige Berechnungen vermeiden - pDoc->CompileDBFormula( TRUE ); // CreateFormulaString + pDoc->SetAutoCalc( FALSE ); // unnoetige Berechnungen vermeiden + pDoc->CompileDBFormula( TRUE ); // CreateFormulaString pDoc->SetDBCollection( new ScDBCollection(*pRedoColl), TRUE ); - pDoc->CompileDBFormula( FALSE ); // CompileFormulaString + pDoc->CompileDBFormula( FALSE ); // CompileFormulaString pDoc->SetAutoCalc( bOldAutoCalc ); SFX_APP()->Broadcast( SfxSimpleHint( SC_HINT_DBAREAS_CHANGED ) ); @@ -1235,11 +1235,11 @@ void __EXPORT ScUndoDBData::Repeat(SfxRepeatTarget& /* rTarget */) BOOL __EXPORT ScUndoDBData::CanRepeat(SfxRepeatTarget& /* rTarget */) const { - return FALSE; // geht nicht + return FALSE; // geht nicht } // -// Import +// Import // ScUndoImportData::ScUndoImportData( ScDocShell* pNewDocShell, SCTAB nNewTab, @@ -1271,7 +1271,7 @@ __EXPORT ScUndoImportData::~ScUndoImportData() } String __EXPORT ScUndoImportData::GetComment() const -{ // "Importieren"; +{ // "Importieren"; return ScGlobal::GetRscString( STR_UNDO_IMPORTDATA ); } @@ -1297,12 +1297,12 @@ void __EXPORT ScUndoImportData::Undo() if ( !bRedoFilled ) { - // read redo data from document at first undo - // imported data is deleted later anyway, - // so now delete each column after copying to save memory (#41216#) + // read redo data from document at first undo + // imported data is deleted later anyway, + // so now delete each column after copying to save memory (#41216#) BOOL bOldAutoCalc = pDoc->GetAutoCalc(); - pDoc->SetAutoCalc( FALSE ); // outside of the loop + pDoc->SetAutoCalc( FALSE ); // outside of the loop for (SCCOL nCopyCol = nCol1; nCopyCol <= nCol2; nCopyCol++) { pDoc->CopyToDocument( nCopyCol,nRow1,nTab, nCopyCol,nRow2,nTab, @@ -1315,10 +1315,10 @@ void __EXPORT ScUndoImportData::Undo() } } BOOL bMoveCells = pUndoDBData && pRedoDBData && - pRedoDBData->IsDoSize(); // in alt und neu gleich + pRedoDBData->IsDoSize(); // in alt und neu gleich if (bMoveCells) { - // Undo: erst die neuen Daten loeschen, dann FitBlock rueckwaerts + // Undo: erst die neuen Daten loeschen, dann FitBlock rueckwaerts ScRange aOld, aNew; pUndoDBData->GetArea( aOld ); @@ -1327,9 +1327,9 @@ void __EXPORT ScUndoImportData::Undo() pDoc->DeleteAreaTab( aNew.aStart.Col(), aNew.aStart.Row(), aNew.aEnd.Col(), aNew.aEnd.Row(), nTab, IDF_ALL & ~IDF_NOTE ); - aOld.aEnd.SetCol( aOld.aEnd.Col() + nFormulaCols ); // FitBlock auch fuer Formeln + aOld.aEnd.SetCol( aOld.aEnd.Col() + nFormulaCols ); // FitBlock auch fuer Formeln aNew.aEnd.SetCol( aNew.aEnd.Col() + nFormulaCols ); - pDoc->FitBlock( aNew, aOld, FALSE ); // rueckwaerts + pDoc->FitBlock( aNew, aOld, FALSE ); // rueckwaerts } else pDoc->DeleteAreaTab( aImportParam.nCol1,aImportParam.nRow1, @@ -1348,7 +1348,7 @@ void __EXPORT ScUndoImportData::Undo() } // erack! it's broadcasted -// pDoc->SetDirty(); +// pDoc->SetDirty(); SCTAB nVisTab = pViewShell->GetViewData()->GetTabNo(); if ( nVisTab != nTab ) @@ -1385,16 +1385,16 @@ void __EXPORT ScUndoImportData::Redo() nCol1, nRow1, nCol2, nRow2 ); } BOOL bMoveCells = pUndoDBData && pRedoDBData && - pRedoDBData->IsDoSize(); // in alt und neu gleich + pRedoDBData->IsDoSize(); // in alt und neu gleich if (bMoveCells) { - // Redo: FitBlock, dann Daten loeschen (noetig fuer CopyToDocument) + // Redo: FitBlock, dann Daten loeschen (noetig fuer CopyToDocument) ScRange aOld, aNew; pUndoDBData->GetArea( aOld ); pRedoDBData->GetArea( aNew ); - aOld.aEnd.SetCol( aOld.aEnd.Col() + nFormulaCols ); // FitBlock auch fuer Formeln + aOld.aEnd.SetCol( aOld.aEnd.Col() + nFormulaCols ); // FitBlock auch fuer Formeln aNew.aEnd.SetCol( aNew.aEnd.Col() + nFormulaCols ); pDoc->FitBlock( aOld, aNew ); @@ -1420,7 +1420,7 @@ void __EXPORT ScUndoImportData::Redo() } // erack! it's broadcasted -// pDoc->SetDirty(); +// pDoc->SetDirty(); SCTAB nVisTab = pViewShell->GetViewData()->GetTabNo(); if ( nVisTab != nTab ) @@ -1453,16 +1453,16 @@ void __EXPORT ScUndoImportData::Repeat(SfxRepeatTarget& rTarget) BOOL __EXPORT ScUndoImportData::CanRepeat(SfxRepeatTarget& rTarget) const { - // Repeat nur fuer Import per DB-Bereich, dann ist pUndoDBData gesetzt + // Repeat nur fuer Import per DB-Bereich, dann ist pUndoDBData gesetzt if (pUndoDBData) return (rTarget.ISA(ScTabViewTarget)); else - return FALSE; // Adressbuch + return FALSE; // Adressbuch } // -// Operationen wiederholen +// Operationen wiederholen // ScUndoRepeatDB::ScUndoRepeatDB( ScDocShell* pNewDocShell, SCTAB nNewTab, @@ -1499,7 +1499,7 @@ __EXPORT ScUndoRepeatDB::~ScUndoRepeatDB() } String __EXPORT ScUndoRepeatDB::GetComment() const -{ // "Wiederholen"; //! bessere Beschreibung! +{ // "Wiederholen"; //! bessere Beschreibung! return ScGlobal::GetRscString( STR_UNDO_REPEATDB ); } @@ -1519,7 +1519,7 @@ void __EXPORT ScUndoRepeatDB::Undo() { SCCOL nFormulaCols = 0; SCCOL nCol = aOldQuery.aEnd.Col() + 1; - SCROW nRow = aOldQuery.aStart.Row() + 1; //! Header testen + SCROW nRow = aOldQuery.aStart.Row() + 1; //! Header testen while ( nCol <= MAXCOL && pDoc->GetCellType(ScAddress( nCol, nRow, nTab )) == CELLTYPE_FORMULA ) ++nCol, ++nFormulaCols; @@ -1536,7 +1536,7 @@ void __EXPORT ScUndoRepeatDB::Undo() } } - //! Daten von Filter in anderen Bereich fehlen noch !!!!!!!!!!!!!!!!! + //! Daten von Filter in anderen Bereich fehlen noch !!!!!!!!!!!!!!!!! if (nNewEndRow > aBlockEnd.Row()) { @@ -1547,11 +1547,11 @@ void __EXPORT ScUndoRepeatDB::Undo() pDoc->InsertRow( 0,nTab, MAXCOL,nTab, nNewEndRow+1, static_cast<SCSIZE>(nNewEndRow-aBlockEnd.Row()) ); } - // Original Outline-Table + // Original Outline-Table pDoc->SetOutlineTable( nTab, pUndoTable ); - // Original Spalten-/Zeilenstatus + // Original Spalten-/Zeilenstatus if (pUndoDoc && pUndoTable) { @@ -1570,7 +1570,7 @@ void __EXPORT ScUndoRepeatDB::Undo() pViewShell->UpdateScrollBars(); } - // Original-Daten & Referenzen + // Original-Daten & Referenzen ScUndoUtil::MarkSimpleBlock( pDocShell, 0, aBlockStart.Row(), nTab, MAXCOL, aBlockEnd.Row(), nTab ); @@ -1578,7 +1578,7 @@ void __EXPORT ScUndoRepeatDB::Undo() MAXCOL, aBlockEnd.Row(), nTab, IDF_ALL ); pUndoDoc->CopyToDocument( 0, aBlockStart.Row(), nTab, MAXCOL, aBlockEnd.Row(), nTab, - IDF_NONE, FALSE, pDoc ); // Flags + IDF_NONE, FALSE, pDoc ); // Flags pUndoDoc->UndoToDocument( 0, aBlockStart.Row(), nTab, MAXCOL, aBlockEnd.Row(), nTab, IDF_ALL, FALSE, pDoc ); @@ -1591,7 +1591,7 @@ void __EXPORT ScUndoRepeatDB::Undo() pDoc->SetDBCollection( new ScDBCollection( *pUndoDB ), TRUE ); // erack! it's broadcasted -// pDoc->SetDirty(); +// pDoc->SetDirty(); SCTAB nVisTab = pViewShell->GetViewData()->GetTabNo(); if ( nVisTab != nTab ) @@ -1635,7 +1635,7 @@ BOOL __EXPORT ScUndoRepeatDB::CanRepeat(SfxRepeatTarget& rTarget) const } // -// data pilot +// data pilot // ScUndoDataPilot::ScUndoDataPilot( ScDocShell* pNewDocShell, @@ -1697,12 +1697,12 @@ void __EXPORT ScUndoDataPilot::Undo() pOldUndoDoc->CopyToDocument( aOldRange, IDF_ALL, FALSE, pDoc ); } - // update objects in collection + // update objects in collection if ( pNewDPObject ) { - // find updated object - //! find by name! + // find updated object + //! find by name! ScDPObject* pDocObj = pDoc->GetDPAtCursor( aNewRange.aStart.Col(), aNewRange.aStart.Row(), aNewRange.aStart.Tab() ); @@ -1711,7 +1711,7 @@ void __EXPORT ScUndoDataPilot::Undo() { if ( pOldDPObject ) { - // restore old settings + // restore old settings pOldDPObject->WriteSourceDataTo( *pDocObj ); ScDPSaveData* pData = pOldDPObject->GetSaveData(); if (pData) @@ -1721,14 +1721,14 @@ void __EXPORT ScUndoDataPilot::Undo() } else { - // delete inserted object + // delete inserted object pDoc->GetDPCollection()->FreeTable(pDocObj); } } } else if ( pOldDPObject ) { - // re-insert deleted object + // re-insert deleted object ScDPObject* pDestObj = new ScDPObject( *pOldDPObject ); pDestObj->SetAlive(TRUE); @@ -1748,7 +1748,7 @@ void __EXPORT ScUndoDataPilot::Undo() ScTabViewShell* pViewShell = ScTabViewShell::GetActiveViewShell(); if (pViewShell) { - //! set current sheet + //! set current sheet } if (pNewDPObject) @@ -1764,16 +1764,16 @@ void __EXPORT ScUndoDataPilot::Redo() { BeginRedo(); - //! copy output data instead of repeating the change, - //! in case external data have changed! + //! copy output data instead of repeating the change, + //! in case external data have changed! ScDocument* pDoc = pDocShell->GetDocument(); ScDPObject* pSourceObj = NULL; if ( pOldDPObject ) { - // find object to modify - //! find by name! + // find object to modify + //! find by name! ScRange aOldRange = pOldDPObject->GetOutRange(); pSourceObj = pDoc->GetDPAtCursor( @@ -1782,25 +1782,25 @@ void __EXPORT ScUndoDataPilot::Redo() } ScDBDocFunc aFunc( *pDocShell ); - aFunc.DataPilotUpdate( pSourceObj, pNewDPObject, FALSE, FALSE, bAllowMove ); // no new undo action + aFunc.DataPilotUpdate( pSourceObj, pNewDPObject, FALSE, FALSE, bAllowMove ); // no new undo action EndRedo(); } void __EXPORT ScUndoDataPilot::Repeat(SfxRepeatTarget& /* rTarget */) { - //! allow deletion + //! allow deletion } BOOL __EXPORT ScUndoDataPilot::CanRepeat(SfxRepeatTarget& /* rTarget */) const { - //! allow deletion + //! allow deletion return FALSE; } // -// Konsolidieren +// Konsolidieren // ScUndoConsolidate::ScUndoConsolidate( ScDocShell* pNewDocShell, const ScArea& rArea, @@ -1843,22 +1843,22 @@ void __EXPORT ScUndoConsolidate::Undo() if (bInsRef) { - // Zeilen loeschen + // Zeilen loeschen pDoc->DeleteRow( 0,nTab, MAXCOL,nTab, aDestArea.nRowStart, nInsertCount ); - // Outlines + // Outlines pDoc->SetOutlineTable( nTab, pUndoTab ); - // Zeilenstatus + // Zeilenstatus pUndoDoc->CopyToDocument( 0,0,nTab, MAXCOL,MAXROW,nTab, IDF_NONE, FALSE, pDoc ); - // Daten & Referenzen + // Daten & Referenzen pDoc->DeleteAreaTab( 0,aDestArea.nRowStart, MAXCOL,aDestArea.nRowEnd, nTab, IDF_ALL ); pUndoDoc->UndoToDocument( 0, aDestArea.nRowStart, nTab, MAXCOL, aDestArea.nRowEnd, nTab, IDF_ALL, FALSE, pDoc ); - // Original-Bereich + // Original-Bereich if (pUndoData) { pDoc->DeleteAreaTab(aOldRange, IDF_ALL); @@ -1876,7 +1876,7 @@ void __EXPORT ScUndoConsolidate::Undo() aDestArea.nColEnd, aDestArea.nRowEnd, nTab, IDF_ALL, FALSE, pDoc ); - // Original-Bereich + // Original-Bereich if (pUndoData) { pDoc->DeleteAreaTab(aOldRange, IDF_ALL); @@ -1896,10 +1896,10 @@ void __EXPORT ScUndoConsolidate::Undo() nEndX, nEndY, nTab, PAINT_GRID ); } - // DB-Bereich wieder anpassen + // DB-Bereich wieder anpassen if (pUndoData) { - ScDBCollection* pColl = pDoc->GetDBCollection(); + ScDBCollection* pColl = pDoc->GetDBCollection(); if (pColl) { USHORT nIndex; @@ -1955,7 +1955,7 @@ BOOL __EXPORT ScUndoConsolidate::CanRepeat(SfxRepeatTarget& /* rTarget */) const // -// Quell-Daten von Chart aendern +// Quell-Daten von Chart aendern // void ScUndoChartData::Init() diff --git a/sc/source/ui/undo/undodraw.cxx b/sc/source/ui/undo/undodraw.cxx index e1bfb468fb4e..11f98d1442e1 100644 --- a/sc/source/ui/undo/undodraw.cxx +++ b/sc/source/ui/undo/undodraw.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 @@ -185,7 +185,7 @@ __EXPORT ScUndoDraw::~ScUndoDraw() void ScUndoDraw::ForgetDrawUndo() { - pDrawUndo = NULL; // nicht loeschen (Draw-Undo muss dann von aussen gemerkt werden) + pDrawUndo = NULL; // nicht loeschen (Draw-Undo muss dann von aussen gemerkt werden) } String __EXPORT ScUndoDraw::GetComment() const diff --git a/sc/source/ui/undo/undoolk.cxx b/sc/source/ui/undo/undoolk.cxx index bfb1e0a27cc6..9873bcf40926 100644 --- a/sc/source/ui/undo/undoolk.cxx +++ b/sc/source/ui/undo/undoolk.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 @@ -47,7 +47,7 @@ SdrUndoAction* GetSdrUndoAction( ScDocument* pDoc ) { ScDrawLayer* pLayer = pDoc->GetDrawLayer(); if (pLayer) - return pLayer->GetCalcUndo(); // muss vorhanden sein + return pLayer->GetCalcUndo(); // muss vorhanden sein else return NULL; } diff --git a/sc/source/ui/undo/undostyl.cxx b/sc/source/ui/undo/undostyl.cxx index 5d4af591a2bc..d9c1cfd4c84a 100644 --- a/sc/source/ui/undo/undostyl.cxx +++ b/sc/source/ui/undo/undostyl.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 @@ -52,7 +52,7 @@ TYPEINIT1(ScUndoApplyPageStyle, ScSimpleUndo); // ----------------------------------------------------------------------- // -// modify style (cell or page style) +// modify style (cell or page style) // ScStyleSaveData::ScStyleSaveData() : @@ -99,7 +99,7 @@ void ScStyleSaveData::InitFromStyle( const SfxStyleSheetBase* pSource ) pItems = new SfxItemSet( ((SfxStyleSheetBase*)pSource)->GetItemSet() ); } else - *this = ScStyleSaveData(); // empty + *this = ScStyleSaveData(); // empty } // ----------------------------------------------------------------------- @@ -127,7 +127,7 @@ String ScUndoModifyStyle::GetComment() const void lcl_DocStyleChanged( ScDocument* pDoc, SfxStyleSheetBase* pStyle, BOOL bRemoved ) { - //! move to document or docshell + //! move to document or docshell VirtualDevice aVDev; Point aLogic = aVDev.LogicToPixel( Point(1000,1000), MAP_TWIP ); @@ -148,8 +148,8 @@ void ScUndoModifyStyle::DoChange( ScDocShell* pDocSh, const String& rName, ScDocument* pDoc = pDocSh->GetDocument(); ScStyleSheetPool* pStlPool = pDoc->GetStyleSheetPool(); String aNewName = rData.GetName(); - BOOL bDelete = ( aNewName.Len() == 0 ); // no new name -> delete style - BOOL bNew = ( rName.Len() == 0 && !bDelete ); // creating new style + BOOL bDelete = ( aNewName.Len() == 0 ); // no new name -> delete style + BOOL bNew = ( rName.Len() == 0 && !bDelete ); // creating new style SfxStyleSheetBase* pStyle = NULL; if ( rName.Len() ) @@ -178,7 +178,7 @@ void ScUndoModifyStyle::DoChange( ScDocShell* pDocSh, const String& rName, if ( bDelete ) { if ( eStyleFamily == SFX_STYLE_FAMILY_PARA ) - lcl_DocStyleChanged( pDoc, pStyle, TRUE ); // TRUE: remove usage of style + lcl_DocStyleChanged( pDoc, pStyle, TRUE ); // TRUE: remove usage of style else pDoc->RemovePageStyleInUse( rName ); @@ -201,7 +201,7 @@ void ScUndoModifyStyle::DoChange( ScDocShell* pDocSh, const String& rName, if ( eStyleFamily == SFX_STYLE_FAMILY_PARA ) { - lcl_DocStyleChanged( pDoc, pStyle, FALSE ); // cell styles: row heights + lcl_DocStyleChanged( pDoc, pStyle, FALSE ); // cell styles: row heights } else { @@ -220,8 +220,8 @@ void ScUndoModifyStyle::DoChange( ScDocShell* pDocSh, const String& rName, pDocSh->PostPaint( 0,0,0, MAXCOL,MAXROW,MAXTAB, PAINT_GRID|PAINT_LEFT ); - //! undo/redo document modifications for deleted styles - //! undo/redo modifications of number formatter + //! undo/redo document modifications for deleted styles + //! undo/redo modifications of number formatter } void ScUndoModifyStyle::Undo() @@ -244,12 +244,12 @@ void ScUndoModifyStyle::Repeat(SfxRepeatTarget& /* rTarget */) BOOL ScUndoModifyStyle::CanRepeat(SfxRepeatTarget& /* rTarget */) const { - return FALSE; // no repeat possible + return FALSE; // no repeat possible } // ----------------------------------------------------------------------- // -// apply page style +// apply page style // ScUndoApplyPageStyle::ApplyStyleEntry::ApplyStyleEntry( SCTAB nTab, const String& rOldStyle ) : mnTab( nTab ), @@ -301,7 +301,7 @@ void ScUndoApplyPageStyle::Redo() void ScUndoApplyPageStyle::Repeat(SfxRepeatTarget& /* rTarget */) { - //! set same page style to current tab + //! set same page style to current tab } BOOL ScUndoApplyPageStyle::CanRepeat(SfxRepeatTarget& /* rTarget */) const diff --git a/sc/source/ui/undo/undotab.cxx b/sc/source/ui/undo/undotab.cxx index c3fdfc156528..f32a33575aa1 100644 --- a/sc/source/ui/undo/undotab.cxx +++ b/sc/source/ui/undo/undotab.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 @@ -57,7 +57,7 @@ #include "drwlayer.hxx" #include "scresid.hxx" -extern BOOL bDrawIsInUndo; //! irgendwo als Member !!! +extern BOOL bDrawIsInUndo; //! irgendwo als Member !!! using namespace com::sun::star; using ::com::sun::star::uno::Sequence; @@ -65,26 +65,26 @@ using ::std::auto_ptr; // STATIC DATA ----------------------------------------------------------- -TYPEINIT1(ScUndoInsertTab, SfxUndoAction); -TYPEINIT1(ScUndoInsertTables, SfxUndoAction); -TYPEINIT1(ScUndoDeleteTab, SfxUndoAction); -TYPEINIT1(ScUndoRenameTab, SfxUndoAction); -TYPEINIT1(ScUndoMoveTab, SfxUndoAction); -TYPEINIT1(ScUndoCopyTab, SfxUndoAction); -TYPEINIT1(ScUndoMakeScenario, SfxUndoAction); -TYPEINIT1(ScUndoImportTab, SfxUndoAction); -TYPEINIT1(ScUndoRemoveLink, SfxUndoAction); -TYPEINIT1(ScUndoShowHideTab, SfxUndoAction); -TYPEINIT1(ScUndoPrintRange, SfxUndoAction); -TYPEINIT1(ScUndoScenarioFlags, SfxUndoAction); -TYPEINIT1(ScUndoRenameObject, SfxUndoAction); -TYPEINIT1(ScUndoLayoutRTL, SfxUndoAction); +TYPEINIT1(ScUndoInsertTab, SfxUndoAction); +TYPEINIT1(ScUndoInsertTables, SfxUndoAction); +TYPEINIT1(ScUndoDeleteTab, SfxUndoAction); +TYPEINIT1(ScUndoRenameTab, SfxUndoAction); +TYPEINIT1(ScUndoMoveTab, SfxUndoAction); +TYPEINIT1(ScUndoCopyTab, SfxUndoAction); +TYPEINIT1(ScUndoMakeScenario, SfxUndoAction); +TYPEINIT1(ScUndoImportTab, SfxUndoAction); +TYPEINIT1(ScUndoRemoveLink, SfxUndoAction); +TYPEINIT1(ScUndoShowHideTab, SfxUndoAction); +TYPEINIT1(ScUndoPrintRange, SfxUndoAction); +TYPEINIT1(ScUndoScenarioFlags, SfxUndoAction); +TYPEINIT1(ScUndoRenameObject, SfxUndoAction); +TYPEINIT1(ScUndoLayoutRTL, SfxUndoAction); TYPEINIT1(ScUndoTabColor, SfxUndoAction); // ----------------------------------------------------------------------- // -// Tabelle einfuegen +// Tabelle einfuegen // ScUndoInsertTab::ScUndoInsertTab( ScDocShell* pNewDocShell, @@ -132,11 +132,11 @@ void ScUndoInsertTab::Undo() ScTabViewShell* pViewShell = ScTabViewShell::GetActiveViewShell(); pViewShell->SetTabNo(nTab); - pDocShell->SetInUndo( TRUE ); //! BeginUndo + pDocShell->SetInUndo( TRUE ); //! BeginUndo bDrawIsInUndo = TRUE; pViewShell->DeleteTable( nTab, FALSE ); bDrawIsInUndo = FALSE; - pDocShell->SetInUndo( FALSE ); //! EndUndo + pDocShell->SetInUndo( FALSE ); //! EndUndo DoSdrUndoAction( pDrawUndo, pDocShell->GetDocument() ); @@ -144,7 +144,7 @@ void ScUndoInsertTab::Undo() if ( pChangeTrack ) pChangeTrack->Undo( nEndChangeAction, nEndChangeAction ); - // SetTabNo(...,TRUE) for all views to sync with drawing layer pages + // SetTabNo(...,TRUE) for all views to sync with drawing layer pages pDocShell->Broadcast( SfxSimpleHint( SC_HINT_FORCESETTAB ) ); } @@ -154,7 +154,7 @@ void ScUndoInsertTab::Redo() RedoSdrUndoAction( pDrawUndo ); // Draw Redo first - pDocShell->SetInUndo( TRUE ); //! BeginRedo + pDocShell->SetInUndo( TRUE ); //! BeginRedo bDrawIsInUndo = TRUE; if (bAppend) pViewShell->AppendTable( sNewName, FALSE ); @@ -164,7 +164,7 @@ void ScUndoInsertTab::Redo() pViewShell->InsertTable( sNewName, nTab, FALSE ); } bDrawIsInUndo = FALSE; - pDocShell->SetInUndo( FALSE ); //! EndRedo + pDocShell->SetInUndo( FALSE ); //! EndRedo SetChangeTrack(); } @@ -183,7 +183,7 @@ BOOL ScUndoInsertTab::CanRepeat(SfxRepeatTarget& rTarget) const // ----------------------------------------------------------------------- // -// Tabellen einfuegen +// Tabellen einfuegen // ScUndoInsertTables::ScUndoInsertTables( ScDocShell* pNewDocShell, @@ -194,7 +194,7 @@ ScUndoInsertTables::ScUndoInsertTables( ScDocShell* pNewDocShell, nTab( nTabNum ), bAppend( bApp ) { - pNameList = pNewNameList; + pNameList = pNewNameList; pDrawUndo = GetSdrUndoAction( pDocShell->GetDocument() ); SetChangeTrack(); @@ -246,7 +246,7 @@ void ScUndoInsertTables::Undo() ScTabViewShell* pViewShell = ScTabViewShell::GetActiveViewShell(); pViewShell->SetTabNo(nTab); - pDocShell->SetInUndo( TRUE ); //! BeginUndo + pDocShell->SetInUndo( TRUE ); //! BeginUndo bDrawIsInUndo = TRUE; SvShorts TheTabs; @@ -259,7 +259,7 @@ void ScUndoInsertTables::Undo() TheTabs.Remove(0,TheTabs.Count()); bDrawIsInUndo = FALSE; - pDocShell->SetInUndo( FALSE ); //! EndUndo + pDocShell->SetInUndo( FALSE ); //! EndUndo DoSdrUndoAction( pDrawUndo, pDocShell->GetDocument() ); @@ -267,7 +267,7 @@ void ScUndoInsertTables::Undo() if ( pChangeTrack ) pChangeTrack->Undo( nStartChangeAction, nEndChangeAction ); - // SetTabNo(...,TRUE) for all views to sync with drawing layer pages + // SetTabNo(...,TRUE) for all views to sync with drawing layer pages pDocShell->Broadcast( SfxSimpleHint( SC_HINT_FORCESETTAB ) ); } @@ -277,13 +277,13 @@ void ScUndoInsertTables::Redo() RedoSdrUndoAction( pDrawUndo ); // Draw Redo first - pDocShell->SetInUndo( TRUE ); //! BeginRedo + pDocShell->SetInUndo( TRUE ); //! BeginRedo bDrawIsInUndo = TRUE; pViewShell->SetTabNo(nTab); pViewShell->InsertTables( pNameList, nTab, static_cast<SCTAB>(pNameList->Count()),FALSE ); bDrawIsInUndo = FALSE; - pDocShell->SetInUndo( FALSE ); //! EndRedo + pDocShell->SetInUndo( FALSE ); //! EndRedo SetChangeTrack(); } @@ -303,7 +303,7 @@ BOOL ScUndoInsertTables::CanRepeat(SfxRepeatTarget& rTarget) const //---------------------------------------------------------------------------------- // -// Tabelle loeschen +// Tabelle loeschen // ScUndoDeleteTab::ScUndoDeleteTab( ScDocShell* pNewDocShell,const SvShorts &aTab, //SCTAB nNewTab, @@ -374,8 +374,8 @@ void ScUndoDeleteTab::Undo() bDrawIsInUndo = FALSE; if (bOk) { - // Ref-Undo passiert in EndUndo - // pUndoDoc->UndoToDocument(0,0,nTab, MAXCOL,MAXROW,nTab, IDF_ALL,FALSE, pDoc ); + // Ref-Undo passiert in EndUndo + // pUndoDoc->UndoToDocument(0,0,nTab, MAXCOL,MAXROW,nTab, IDF_ALL,FALSE, pDoc ); pRefUndoDoc->CopyToDocument(0,0,nTab, MAXCOL,MAXROW,nTab, IDF_ALL,FALSE, pDoc ); String aOldName; @@ -407,16 +407,16 @@ void ScUndoDeleteTab::Undo() if ( pRefUndoDoc->IsTabProtected( nTab ) ) pDoc->SetTabProtection(nTab, pRefUndoDoc->GetTabProtection(nTab)); - // Drawing-Layer passiert beim MoveUndo::EndUndo - // pDoc->TransferDrawPage(pRefUndoDoc, nTab,nTab); + // Drawing-Layer passiert beim MoveUndo::EndUndo + // pDoc->TransferDrawPage(pRefUndoDoc, nTab,nTab); } } if (bLink) { - pDocShell->UpdateLinks(); // Link-Manager updaten + pDocShell->UpdateLinks(); // Link-Manager updaten } - EndUndo(); // Draw-Undo muss vor dem Broadcast kommen! + EndUndo(); // Draw-Undo muss vor dem Broadcast kommen! ScChangeTrack* pChangeTrack = pDocShell->GetDocument()->GetChangeTrack(); if ( pChangeTrack ) @@ -431,14 +431,14 @@ void ScUndoDeleteTab::Undo() pSfxApp->Broadcast( SfxSimpleHint( SC_HINT_DBAREAS_CHANGED ) ); pSfxApp->Broadcast( SfxSimpleHint( SC_HINT_AREALINKS_CHANGED ) ); - pDocShell->PostPaint(0,0,0, MAXCOL,MAXROW,MAXTAB, PAINT_ALL ); // incl. Extras + pDocShell->PostPaint(0,0,0, MAXCOL,MAXROW,MAXTAB, PAINT_ALL ); // incl. Extras - // nicht ShowTable wegen SetTabNo(..., TRUE): + // nicht ShowTable wegen SetTabNo(..., TRUE): ScTabViewShell* pViewShell = ScTabViewShell::GetActiveViewShell(); if (pViewShell) pViewShell->SetTabNo( lcl_GetVisibleTabBefore( *pDoc, theTabs[0] ), TRUE ); -// EndUndo(); +// EndUndo(); } void ScUndoDeleteTab::Redo() @@ -448,15 +448,15 @@ void ScUndoDeleteTab::Redo() RedoSdrUndoAction( pDrawUndo ); // Draw Redo first - pDocShell->SetInUndo( TRUE ); //! BeginRedo + pDocShell->SetInUndo( TRUE ); //! BeginRedo bDrawIsInUndo = TRUE; pViewShell->DeleteTables( theTabs, FALSE ); bDrawIsInUndo = FALSE; - pDocShell->SetInUndo( TRUE ); //! EndRedo + pDocShell->SetInUndo( TRUE ); //! EndRedo SetChangeTrack(); - // SetTabNo(...,TRUE) for all views to sync with drawing layer pages + // SetTabNo(...,TRUE) for all views to sync with drawing layer pages pDocShell->Broadcast( SfxSimpleHint( SC_HINT_FORCESETTAB ) ); } @@ -477,7 +477,7 @@ BOOL ScUndoDeleteTab::CanRepeat(SfxRepeatTarget& rTarget) const //--------------------------------------------------------------------------------- // -// Tabelle umbenennen +// Tabelle umbenennen // ScUndoRenameTab::ScUndoRenameTab( ScDocShell* pNewDocShell, @@ -485,7 +485,7 @@ ScUndoRenameTab::ScUndoRenameTab( ScDocShell* pNewDocShell, const String& rOldName, const String& rNewName) : ScSimpleUndo( pNewDocShell ), - nTab ( nT ) + nTab ( nT ) { sOldName = rOldName; sNewName = rNewName; @@ -505,13 +505,13 @@ void ScUndoRenameTab::DoChange( SCTAB nTabP, const String& rName ) const ScDocument* pDoc = pDocShell->GetDocument(); pDoc->RenameTab( nTabP, rName ); - SFX_APP()->Broadcast( SfxSimpleHint( SC_HINT_TABLES_CHANGED ) ); // Navigator + SFX_APP()->Broadcast( SfxSimpleHint( SC_HINT_TABLES_CHANGED ) ); // Navigator pDocShell->PostPaintGridAll(); pDocShell->PostPaintExtras(); pDocShell->PostDataChanged(); - // Der Tabellenname koennte in einer Formel vorkommen... + // Der Tabellenname koennte in einer Formel vorkommen... ScTabViewShell* pViewShell = ScTabViewShell::GetActiveViewShell(); if (pViewShell) pViewShell->UpdateInputHandler(); @@ -529,7 +529,7 @@ void ScUndoRenameTab::Redo() void ScUndoRenameTab::Repeat(SfxRepeatTarget& /* rTarget */) { - // Repeat macht keinen Sinn + // Repeat macht keinen Sinn } BOOL ScUndoRenameTab::CanRepeat(SfxRepeatTarget& /* rTarget */) const @@ -540,7 +540,7 @@ BOOL ScUndoRenameTab::CanRepeat(SfxRepeatTarget& /* rTarget */) const //---------------------------------------------------------------------------------- // -// Tabelle verschieben +// Tabelle verschieben // ScUndoMoveTab::ScUndoMoveTab( ScDocShell* pNewDocShell, @@ -572,13 +572,13 @@ void ScUndoMoveTab::DoChange( BOOL bUndo ) const ScDocument* pDoc = pDocShell->GetDocument(); ScTabViewShell* pViewShell = ScTabViewShell::GetActiveViewShell(); - if (bUndo) // UnDo + if (bUndo) // UnDo { for(int i=theNewTabs.Count()-1;i>=0;i--) { SCTAB nDestTab = theNewTabs[sal::static_int_cast<USHORT>(i)]; SCTAB nOldTab = theOldTabs[sal::static_int_cast<USHORT>(i)]; - if (nDestTab > MAXTAB) // angehaengt ? + if (nDestTab > MAXTAB) // angehaengt ? nDestTab = pDoc->GetTableCount() - 1; pDoc->MoveTab( nDestTab, nOldTab ); @@ -593,7 +593,7 @@ void ScUndoMoveTab::DoChange( BOOL bUndo ) const SCTAB nDestTab = theNewTabs[sal::static_int_cast<USHORT>(i)]; SCTAB nNewTab = theNewTabs[sal::static_int_cast<USHORT>(i)]; SCTAB nOldTab = theOldTabs[sal::static_int_cast<USHORT>(i)]; - if (nDestTab > MAXTAB) // angehaengt ? + if (nDestTab > MAXTAB) // angehaengt ? nDestTab = pDoc->GetTableCount() - 1; pDoc->MoveTab( nOldTab, nNewTab ); @@ -602,7 +602,7 @@ void ScUndoMoveTab::DoChange( BOOL bUndo ) const } } - SFX_APP()->Broadcast( SfxSimpleHint( SC_HINT_TABLES_CHANGED ) ); // Navigator + SFX_APP()->Broadcast( SfxSimpleHint( SC_HINT_TABLES_CHANGED ) ); // Navigator pDocShell->PostPaintGridAll(); pDocShell->PostPaintExtras(); @@ -632,7 +632,7 @@ BOOL ScUndoMoveTab::CanRepeat(SfxRepeatTarget& /* rTarget */) const //---------------------------------------------------------------------------------- // -// Tabelle kopieren +// Tabelle kopieren // ScUndoCopyTab::ScUndoCopyTab( ScDocShell* pNewDocShell, @@ -668,7 +668,7 @@ void ScUndoCopyTab::DoChange() const if (pViewShell) pViewShell->SetTabNo(theOldTabs[0],TRUE); - SFX_APP()->Broadcast( SfxSimpleHint( SC_HINT_TABLES_CHANGED ) ); // Navigator + SFX_APP()->Broadcast( SfxSimpleHint( SC_HINT_TABLES_CHANGED ) ); // Navigator pDocShell->PostPaintGridAll(); pDocShell->PostPaintExtras(); @@ -685,7 +685,7 @@ void ScUndoCopyTab::Undo() for(i=theNewTabs.Count()-1;i>=0;i--) { SCTAB nDestTab = theNewTabs[sal::static_int_cast<USHORT>(i)]; - if (nDestTab > MAXTAB) // append? + if (nDestTab > MAXTAB) // append? nDestTab = pDoc->GetTableCount() - 1; bDrawIsInUndo = TRUE; @@ -693,13 +693,13 @@ void ScUndoCopyTab::Undo() bDrawIsInUndo = FALSE; } - // ScTablesHint broadcasts after all sheets have been deleted, - // so sheets and draw pages are in sync! + // ScTablesHint broadcasts after all sheets have been deleted, + // so sheets and draw pages are in sync! for(i=theNewTabs.Count()-1;i>=0;i--) { SCTAB nDestTab = theNewTabs[sal::static_int_cast<USHORT>(i)]; - if (nDestTab > MAXTAB) // append? + if (nDestTab > MAXTAB) // append? nDestTab = pDoc->GetTableCount() - 1; pDocShell->Broadcast( ScTablesHint( SC_TAB_DELETED, nDestTab ) ); @@ -719,7 +719,7 @@ void ScUndoCopyTab::Redo() nDestTab = theNewTabs[sal::static_int_cast<USHORT>(i)]; SCTAB nNewTab = theNewTabs[sal::static_int_cast<USHORT>(i)]; SCTAB nOldTab = theOldTabs[sal::static_int_cast<USHORT>(i)]; - if (nDestTab > MAXTAB) // angehaengt ? + if (nDestTab > MAXTAB) // angehaengt ? nDestTab = pDoc->GetTableCount() - 1; bDrawIsInUndo = TRUE; @@ -730,7 +730,7 @@ void ScUndoCopyTab::Redo() SCTAB nAdjSource = nOldTab; if ( nNewTab <= nOldTab ) - ++nAdjSource; // new position of source table after CopyTab + ++nAdjSource; // new position of source table after CopyTab if ( pDoc->IsScenario(nAdjSource) ) { @@ -752,7 +752,7 @@ void ScUndoCopyTab::Redo() RedoSdrUndoAction( pDrawUndo ); // after the sheets are inserted - pViewShell->SetTabNo( nDestTab, TRUE ); // after draw-undo + pViewShell->SetTabNo( nDestTab, TRUE ); // after draw-undo DoChange(); @@ -773,7 +773,7 @@ BOOL ScUndoCopyTab::CanRepeat(SfxRepeatTarget& /* rTarget */) const // Tab Bg Color // -ScUndoTabColor::ScUndoTabColor( +ScUndoTabColor::ScUndoTabColor( ScDocShell* pNewDocShell, SCTAB nT, const Color& aOTabBgColor, const Color& aNTabBgColor) : ScSimpleUndo( pNewDocShell ) { @@ -843,7 +843,7 @@ BOOL ScUndoTabColor::CanRepeat(SfxRepeatTarget& /* rTarget */) const // ----------------------------------------------------------------------- // -// Szenario anlegen +// Szenario anlegen // ScUndoMakeScenario::ScUndoMakeScenario( ScDocShell* pNewDocShell, @@ -937,7 +937,7 @@ BOOL ScUndoMakeScenario::CanRepeat(SfxRepeatTarget& rTarget) const // ----------------------------------------------------------------------- // -// Tabelle einfuegen +// Tabelle einfuegen // ScUndoImportTab::ScUndoImportTab( ScDocShell* pShell, @@ -980,14 +980,14 @@ void ScUndoImportTab::DoChange() const } } - SFX_APP()->Broadcast( SfxSimpleHint( SC_HINT_TABLES_CHANGED ) ); // Navigator + SFX_APP()->Broadcast( SfxSimpleHint( SC_HINT_TABLES_CHANGED ) ); // Navigator pDocShell->PostPaint( 0,0,0, MAXCOL,MAXROW,MAXTAB, PAINT_GRID | PAINT_TOP | PAINT_LEFT | PAINT_EXTRAS ); } void ScUndoImportTab::Undo() { - //! eingefuegte Bereichsnamen etc. + //! eingefuegte Bereichsnamen etc. SCTAB i; ScDocument* pDoc = pDocShell->GetDocument(); @@ -1047,7 +1047,7 @@ void ScUndoImportTab::Redo() ScDocument* pDoc = pDocShell->GetDocument(); String aName; SCTAB i; - for (i=0; i<nCount; i++) // first insert all sheets (#63304#) + for (i=0; i<nCount; i++) // first insert all sheets (#63304#) { SCTAB nTabPos=nTab+i; pRedoDoc->GetName(nTabPos,aName); @@ -1055,7 +1055,7 @@ void ScUndoImportTab::Redo() pDoc->InsertTab(nTabPos,aName); bDrawIsInUndo = FALSE; } - for (i=0; i<nCount; i++) // then copy into inserted sheets + for (i=0; i<nCount; i++) // then copy into inserted sheets { SCTAB nTabPos=nTab+i; pRedoDoc->CopyToDocument(0,0,nTabPos, MAXCOL,MAXROW,nTabPos, IDF_ALL,FALSE, pDoc ); @@ -1098,7 +1098,7 @@ BOOL ScUndoImportTab::CanRepeat(SfxRepeatTarget& rTarget) const // ----------------------------------------------------------------------- // -// Tabellen-Verknuepfung aufheben +// Tabellen-Verknuepfung aufheben // ScUndoRemoveLink::ScUndoRemoveLink( ScDocShell* pShell, const String& rDoc ) : @@ -1108,8 +1108,8 @@ ScUndoRemoveLink::ScUndoRemoveLink( ScDocShell* pShell, const String& rDoc ) : { ScDocument* pDoc = pDocShell->GetDocument(); SCTAB nTabCount = pDoc->GetTableCount(); - pTabs = new SCTAB[nTabCount]; - pModes = new BYTE[nTabCount]; + pTabs = new SCTAB[nTabCount]; + pModes = new BYTE[nTabCount]; pTabNames = new String[nTabCount]; for (SCTAB i=0; i<nTabCount; i++) @@ -1155,9 +1155,9 @@ void ScUndoRemoveLink::DoChange( BOOL bLink ) const ScDocument* pDoc = pDocShell->GetDocument(); String aEmpty; for (USHORT i=0; i<nCount; i++) - if (bLink) // establish link + if (bLink) // establish link pDoc->SetLink( pTabs[i], pModes[i], aDocName, aFltName, aOptions, pTabNames[i], nRefreshDelay ); - else // remove link + else // remove link pDoc->SetLink( pTabs[i], SC_LINK_NONE, aEmpty, aEmpty, aEmpty, aEmpty, 0 ); pDocShell->UpdateLinks(); } @@ -1174,7 +1174,7 @@ void ScUndoRemoveLink::Redo() void ScUndoRemoveLink::Repeat(SfxRepeatTarget& /* rTarget */) { - // gippsnich + // gippsnich } BOOL ScUndoRemoveLink::CanRepeat(SfxRepeatTarget& /* rTarget */) const @@ -1185,7 +1185,7 @@ BOOL ScUndoRemoveLink::CanRepeat(SfxRepeatTarget& /* rTarget */) const // ----------------------------------------------------------------------- // -// Tabellen ein-/ausblenden +// Tabellen ein-/ausblenden // ScUndoShowHideTab::ScUndoShowHideTab( ScDocShell* pShell, SCTAB nNewTab, BOOL bNewShow ) : @@ -1382,7 +1382,7 @@ String ScUndoTabProtect::GetComment() const // ----------------------------------------------------------------------- // -// Druck-/Wiederholungsbereiche aendern +// Druck-/Wiederholungsbereiche aendern // ScUndoPrintRange::ScUndoPrintRange( ScDocShell* pShell, SCTAB nNewTab, @@ -1433,12 +1433,12 @@ void ScUndoPrintRange::Redo() void ScUndoPrintRange::Repeat(SfxRepeatTarget& /* rTarget */) { - // gippsnich + // gippsnich } BOOL ScUndoPrintRange::CanRepeat(SfxRepeatTarget& /* rTarget */) const { - return FALSE; // gippsnich + return FALSE; // gippsnich } String ScUndoPrintRange::GetComment() const @@ -1451,22 +1451,22 @@ String ScUndoPrintRange::GetComment() const //--------------------------------------------------------------------------------- // -// Szenario-Flags +// Szenario-Flags // ScUndoScenarioFlags::ScUndoScenarioFlags( ScDocShell* pNewDocShell, SCTAB nT, const String& rON, const String& rNN, const String& rOC, const String& rNC, const Color& rOCol, const Color& rNCol, USHORT nOF, USHORT nNF ) : ScSimpleUndo( pNewDocShell ), - nTab ( nT ), - aOldName ( rON ), - aNewName ( rNN ), - aOldComment ( rOC ), - aNewComment ( rNC ), - aOldColor ( rOCol ), - aNewColor ( rNCol ), - nOldFlags ( nOF ), - nNewFlags ( nNF ) + nTab ( nT ), + aOldName ( rON ), + aNewName ( rNN ), + aOldComment ( rOC ), + aNewComment ( rNC ), + aOldColor ( rOCol ), + aNewColor ( rNCol ), + nOldFlags ( nOF ), + nNewFlags ( nNF ) { } @@ -1487,7 +1487,7 @@ void ScUndoScenarioFlags::Undo() pDoc->SetScenarioData( nTab, aOldComment, aOldColor, nOldFlags ); pDocShell->PostPaintGridAll(); - // Der Tabellenname koennte in einer Formel vorkommen... + // Der Tabellenname koennte in einer Formel vorkommen... ScTabViewShell* pViewShell = ScTabViewShell::GetActiveViewShell(); if (pViewShell) pViewShell->UpdateInputHandler(); @@ -1504,7 +1504,7 @@ void ScUndoScenarioFlags::Redo() pDoc->SetScenarioData( nTab, aNewComment, aNewColor, nNewFlags ); pDocShell->PostPaintGridAll(); - // Der Tabellenname koennte in einer Formel vorkommen... + // Der Tabellenname koennte in einer Formel vorkommen... ScTabViewShell* pViewShell = ScTabViewShell::GetActiveViewShell(); if (pViewShell) pViewShell->UpdateInputHandler(); @@ -1515,7 +1515,7 @@ void ScUndoScenarioFlags::Redo() void ScUndoScenarioFlags::Repeat(SfxRepeatTarget& /* rTarget */) { - // Repeat macht keinen Sinn + // Repeat macht keinen Sinn } BOOL ScUndoScenarioFlags::CanRepeat(SfxRepeatTarget& /* rTarget */) const @@ -1526,16 +1526,16 @@ BOOL ScUndoScenarioFlags::CanRepeat(SfxRepeatTarget& /* rTarget */) const //--------------------------------------------------------------------------------- // -// rename object -// (move to different file?) +// rename object +// (move to different file?) // ScUndoRenameObject::ScUndoRenameObject( ScDocShell* pNewDocShell, const String& rPN, const String& rON, const String& rNN ) : ScSimpleUndo( pNewDocShell ), aPersistName( rPN ), - aOldName ( rON ), - aNewName ( rNN ) + aOldName ( rON ), + aNewName ( rNN ) { } @@ -1545,7 +1545,7 @@ ScUndoRenameObject::~ScUndoRenameObject() String ScUndoRenameObject::GetComment() const { - // string resource shared with title for dialog + // string resource shared with title for dialog return String( ScResId(SCSTR_RENAMEOBJECT) ); } @@ -1608,7 +1608,7 @@ BOOL ScUndoRenameObject::CanRepeat(SfxRepeatTarget& /* rTarget */) const // ----------------------------------------------------------------------- // -// Switch sheet between left-to-right and right-to-left +// Switch sheet between left-to-right and right-to-left // ScUndoLayoutRTL::ScUndoLayoutRTL( ScDocShell* pShell, SCTAB nNewTab, BOOL bNewRTL ) : diff --git a/sc/source/ui/undo/undoutil.cxx b/sc/source/ui/undo/undoutil.cxx index 0be0a7f4f363..6c8066dd0c38 100644 --- a/sc/source/ui/undo/undoutil.cxx +++ b/sc/source/ui/undo/undoutil.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 |