dbfunc3.cxx (b3f79822) | dbfunc3.cxx (ee342afc) |
---|---|
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 --- 600 unchanged lines hidden (view full) --- 609 610 pDoc->GetName( nSrcTab, aStr ); 611 aName += '_'; 612 aName += aStr; 613 aName += '_'; 614 615 SCTAB nNewTab = nSrcTab+1; 616 | 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 --- 600 unchanged lines hidden (view full) --- 609 610 pDoc->GetName( nSrcTab, aStr ); 611 aName += '_'; 612 aName += aStr; 613 aName += '_'; 614 615 SCTAB nNewTab = nSrcTab+1; 616 |
617 const bool bDrawUndo = ( bUndo && !pDoc->IsDrawRecording() ); 618 619 if( bDrawUndo ) 620 pDoc->BeginDrawUndo(); 621 |
|
617 SCTAB i=1; 618 while ( !pDoc->InsertTab( nNewTab, lcl_MakePivotTabName( aName, i ) ) && i <= MAXTAB ) 619 i++; 620 621 sal_Bool bAppend = ( nNewTab+1 == pDoc->GetTableCount() ); 622 if (bUndo) 623 { 624 pDocSh->GetUndoManager()->AddUndoAction( 625 new ScUndoInsertTab( pDocSh, nNewTab, bAppend, lcl_MakePivotTabName( aName, i ) )); 626 } 627 628 GetViewData()->InsertTab( nNewTab ); 629 SetTabNo( nNewTab, sal_True ); 630 631 aDestRange = ScRange( 0, 0, nNewTab ); | 622 SCTAB i=1; 623 while ( !pDoc->InsertTab( nNewTab, lcl_MakePivotTabName( aName, i ) ) && i <= MAXTAB ) 624 i++; 625 626 sal_Bool bAppend = ( nNewTab+1 == pDoc->GetTableCount() ); 627 if (bUndo) 628 { 629 pDocSh->GetUndoManager()->AddUndoAction( 630 new ScUndoInsertTab( pDocSh, nNewTab, bAppend, lcl_MakePivotTabName( aName, i ) )); 631 } 632 633 GetViewData()->InsertTab( nNewTab ); 634 SetTabNo( nNewTab, sal_True ); 635 636 aDestRange = ScRange( 0, 0, nNewTab ); |
637 638 if( bDrawUndo ) 639 pDoc->EndDrawUndo(); |
|
632 } 633 634 ScDPObject* pDPObj = pDoc->GetDPAtCursor( 635 aDestRange.aStart.Col(), aDestRange.aStart.Row(), aDestRange.aStart.Tab() ); 636 637 ScDPObject aObj( rSource ); 638 aObj.SetOutRange( aDestRange ); 639 if ( pDPObj && !rData.GetExistingDimensionData() ) --- 1732 unchanged lines hidden --- | 640 } 641 642 ScDPObject* pDPObj = pDoc->GetDPAtCursor( 643 aDestRange.aStart.Col(), aDestRange.aStart.Row(), aDestRange.aStart.Tab() ); 644 645 ScDPObject aObj( rSource ); 646 aObj.SetOutRange( aDestRange ); 647 if ( pDPObj && !rData.GetExistingDimensionData() ) --- 1732 unchanged lines hidden --- |