undotab.cxx (b3f79822) undotab.cxx (37e3d887)
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 976 unchanged lines hidden (view full) ---

985 String aOldName;
986 for (i=0; i<nCount; i++)
987 {
988 SCTAB nTabPos=nTab+i;
989
990 pDoc->CopyToDocument(0,0,nTabPos, MAXCOL,MAXROW,nTabPos, IDF_ALL,sal_False, pRedoDoc );
991 pDoc->GetName( nTabPos, aOldName );
992 pRedoDoc->RenameTab( nTabPos, aOldName, sal_False );
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 976 unchanged lines hidden (view full) ---

985 String aOldName;
986 for (i=0; i<nCount; i++)
987 {
988 SCTAB nTabPos=nTab+i;
989
990 pDoc->CopyToDocument(0,0,nTabPos, MAXCOL,MAXROW,nTabPos, IDF_ALL,sal_False, pRedoDoc );
991 pDoc->GetName( nTabPos, aOldName );
992 pRedoDoc->RenameTab( nTabPos, aOldName, sal_False );
993 pRedoDoc->SetTabBgColor( nTabPos, pDoc->GetTabBgColor(nTabPos) );
993
994 if ( pDoc->IsScenario(nTabPos) )
995 {
996 pRedoDoc->SetScenario(nTabPos, sal_True );
997 String aComment;
998 Color aColor;
999 sal_uInt16 nScenFlags;
1000 pDoc->GetScenarioData(nTabPos, aComment, aColor, nScenFlags );

--- 38 unchanged lines hidden (view full) ---

1039 bDrawIsInUndo = sal_True;
1040 pDoc->InsertTab(nTabPos,aName);
1041 bDrawIsInUndo = sal_False;
1042 }
1043 for (i=0; i<nCount; i++) // then copy into inserted sheets
1044 {
1045 SCTAB nTabPos=nTab+i;
1046 pRedoDoc->CopyToDocument(0,0,nTabPos, MAXCOL,MAXROW,nTabPos, IDF_ALL,sal_False, pDoc );
994
995 if ( pDoc->IsScenario(nTabPos) )
996 {
997 pRedoDoc->SetScenario(nTabPos, sal_True );
998 String aComment;
999 Color aColor;
1000 sal_uInt16 nScenFlags;
1001 pDoc->GetScenarioData(nTabPos, aComment, aColor, nScenFlags );

--- 38 unchanged lines hidden (view full) ---

1040 bDrawIsInUndo = sal_True;
1041 pDoc->InsertTab(nTabPos,aName);
1042 bDrawIsInUndo = sal_False;
1043 }
1044 for (i=0; i<nCount; i++) // then copy into inserted sheets
1045 {
1046 SCTAB nTabPos=nTab+i;
1047 pRedoDoc->CopyToDocument(0,0,nTabPos, MAXCOL,MAXROW,nTabPos, IDF_ALL,sal_False, pDoc );
1048 pDoc->SetTabBgColor( nTabPos, pRedoDoc->GetTabBgColor(nTabPos) );
1047
1048 if ( pRedoDoc->IsScenario(nTabPos) )
1049 {
1050 pDoc->SetScenario(nTabPos, sal_True );
1051 String aComment;
1052 Color aColor;
1053 sal_uInt16 nScenFlags;
1054 pRedoDoc->GetScenarioData(nTabPos, aComment, aColor, nScenFlags );

--- 656 unchanged lines hidden ---
1049
1050 if ( pRedoDoc->IsScenario(nTabPos) )
1051 {
1052 pDoc->SetScenario(nTabPos, sal_True );
1053 String aComment;
1054 Color aColor;
1055 sal_uInt16 nScenFlags;
1056 pRedoDoc->GetScenarioData(nTabPos, aComment, aColor, nScenFlags );

--- 656 unchanged lines hidden ---