sc/source/ui/undo/undoblk.cxx | 1 - sc/source/ui/undo/undoblk3.cxx | 4 ---- sc/source/ui/undo/undodat.cxx | 9 --------- sc/source/ui/undo/undotab.cxx | 2 +- 4 files changed, 1 insertion(+), 15 deletions(-)
New commits: commit 9d6eedf05b550ca3d6f98dc9f77c06a3594165c4 Author: Philipp Riemer <ruderphil...@gmail.com> Date: Sat Aug 25 02:21:38 2012 +0200 removed commented out code in sc/source/ui/undo This is a follow-up patch of 06f611210cf487dcd32aa7ccfaae5ed80124e439. Since the rebasing process is not finished yet, I submit it to Gerrit, so that the changes are available for later when they can be applied again to the related files. Change-Id: I047ade3f9a6b3927ddab8b94a53113b17483c06f Reviewed-on: https://gerrit.libreoffice.org/486 Reviewed-by: Kohei Yoshida <kohei.yosh...@gmail.com> Tested-by: Kohei Yoshida <kohei.yosh...@gmail.com> diff --git a/sc/source/ui/undo/undoblk.cxx b/sc/source/ui/undo/undoblk.cxx index 83459c5..96a8bee 100644 --- a/sc/source/ui/undo/undoblk.cxx +++ b/sc/source/ui/undo/undoblk.cxx @@ -1691,7 +1691,6 @@ void ScUndoEnterMatrix::Redo() pDoc->InsertMatrixFormula( aBlockRange.aStart.Col(), aBlockRange.aStart.Row(), aBlockRange.aEnd.Col(), aBlockRange.aEnd.Row(), aDestMark, aFormula ); -// pDocShell->PostPaint( aBlockRange, PAINT_GRID ); // not needed ??? SetChangeTrack(); diff --git a/sc/source/ui/undo/undoblk3.cxx b/sc/source/ui/undo/undoblk3.cxx index a8895ef..339b691 100644 --- a/sc/source/ui/undo/undoblk3.cxx +++ b/sc/source/ui/undo/undoblk3.cxx @@ -790,10 +790,6 @@ void ScUndoAutoFormat::Undo() ScDocument* pDoc = pDocShell->GetDocument(); - // Attribute -// pDoc->DeleteAreaTab( aBlockRange, IDF_ATTRIB ); -// pUndoDoc->CopyToDocument( aBlockRange, IDF_ATTRIB, sal_False, pDoc ); - SCTAB nTabCount = pDoc->GetTableCount(); pDoc->DeleteArea( aBlockRange.aStart.Col(), aBlockRange.aStart.Row(), aBlockRange.aEnd.Col(), aBlockRange.aEnd.Row(), diff --git a/sc/source/ui/undo/undodat.cxx b/sc/source/ui/undo/undodat.cxx index fd5f56e..ef2bf7a 100644 --- a/sc/source/ui/undo/undodat.cxx +++ b/sc/source/ui/undo/undodat.cxx @@ -1285,9 +1285,6 @@ void ScUndoImportData::Undo() ScUndoUtil::MarkSimpleBlock( pDocShell, nCol1, nRow1, nTable, nCol2, nRow2, nTable ); } -// erack! it's broadcasted -// pDoc->SetDirty(); - SCTAB nVisTab = pViewShell->GetViewData()->GetTabNo(); if ( nVisTab != nTab ) pViewShell->SetTabNo( nTab ); @@ -1357,9 +1354,6 @@ void ScUndoImportData::Redo() ScUndoUtil::MarkSimpleBlock( pDocShell, nCol1, nRow1, nTable, nCol2, nRow2, nTable ); } -// erack! it's broadcasted -// pDoc->SetDirty(); - SCTAB nVisTab = pViewShell->GetViewData()->GetTabNo(); if ( nVisTab != nTab ) pViewShell->SetTabNo( nTab ); @@ -1522,9 +1516,6 @@ void ScUndoRepeatDB::Undo() if (pUndoDB) pDoc->SetDBCollection( new ScDBCollection( *pUndoDB ), sal_True ); -// erack! it's broadcasted -// pDoc->SetDirty(); - SCTAB nVisTab = pViewShell->GetViewData()->GetTabNo(); if ( nVisTab != nTab ) pViewShell->SetTabNo( nTab ); diff --git a/sc/source/ui/undo/undotab.cxx b/sc/source/ui/undo/undotab.cxx index 6569139..4818818 100644 --- a/sc/source/ui/undo/undotab.cxx +++ b/sc/source/ui/undo/undotab.cxx @@ -273,7 +273,7 @@ sal_Bool ScUndoInsertTables::CanRepeat(SfxRepeatTarget& rTarget) const return (rTarget.ISA(ScTabViewTarget)); } -ScUndoDeleteTab::ScUndoDeleteTab( ScDocShell* pNewDocShell, const vector<SCTAB> &aTab, //SCTAB nNewTab, +ScUndoDeleteTab::ScUndoDeleteTab( ScDocShell* pNewDocShell, const vector<SCTAB> &aTab, ScDocument* pUndoDocument, ScRefUndoData* pRefData ) : ScMoveUndo( pNewDocShell, pUndoDocument, pRefData, SC_UNDO_REFLAST ) { _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits