diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2011-12-19 23:22:55 +0100 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2011-12-19 23:40:54 +0100 |
commit | 8a9aea09d274419f924b17084137eaf6c0b92fc1 (patch) | |
tree | a7bb51f3314b19f434641aaa8e0b78e491768009 /sc | |
parent | a0a1a34622e3c36c4e28561aba3a19ea8b6d51f6 (diff) |
Copy absolute sheet refs between different docs: Part IV
Handle Move Sheet correctly
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/ui/view/viewfun2.cxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sc/source/ui/view/viewfun2.cxx b/sc/source/ui/view/viewfun2.cxx index cfa027e8d54e..e2c950c4d9b9 100644 --- a/sc/source/ui/view/viewfun2.cxx +++ b/sc/source/ui/view/viewfun2.cxx @@ -89,6 +89,7 @@ #include "docuno.hxx" #include "charthelper.hxx" #include "tabbgcolor.hxx" +#include "clipparam.hxx" #include <basic/sbstar.hxx> #include <com/sun/star/container/XNameContainer.hpp> @@ -2562,6 +2563,7 @@ void ScViewFunc::MoveTable( if(nDestTab==SC_TAB_APPEND) nDestTab=pDestDoc->GetTableCount(); SCTAB nDestTab1=nDestTab; + ScClipParam aParam; for( sal_uInt16 j=0; j<TheTabs.size(); ++j, ++nDestTab1 ) { // insert sheets first and update all references rtl::OUString aName; @@ -2576,7 +2578,10 @@ void ScViewFunc::MoveTable( nErrVal = 0; // total error break; // for } + ScRange aRange( 0, 0, TheTabs[j], MAXCOL, MAXROW, TheTabs[j] ); + aParam.maRanges.Append(aRange); } + pDoc->SetClipParam(aParam); if ( nErrVal > 0 ) { nDestTab1 = nDestTab; |