diff options
author | Jens-Heiner Rechtien <hr@openoffice.org> | 2003-04-28 14:46:04 +0000 |
---|---|---|
committer | Jens-Heiner Rechtien <hr@openoffice.org> | 2003-04-28 14:46:04 +0000 |
commit | c2e6152d5484729a8028ee41765cb4e333b407b2 (patch) | |
tree | eabc082e946f9d8b36fc08b278569ad244b24ca8 /sc/source/ui/view/viewfun2.cxx | |
parent | a01137d212a62f114f7ef200d2a5223cf3a26c38 (diff) |
INTEGRATION: CWS apps61beta2 (1.17.102); FILE MERGED
2003/04/15 09:29:11 bm 1.17.102.2: RESYNC: (1.17-1.18); FILE MERGED
2003/04/08 18:04:27 nn 1.17.102.1: #i13041# copy protection settings when copying sheet
Diffstat (limited to 'sc/source/ui/view/viewfun2.cxx')
-rw-r--r-- | sc/source/ui/view/viewfun2.cxx | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/sc/source/ui/view/viewfun2.cxx b/sc/source/ui/view/viewfun2.cxx index 5391e62dc43a..75cae1a2f72d 100644 --- a/sc/source/ui/view/viewfun2.cxx +++ b/sc/source/ui/view/viewfun2.cxx @@ -2,9 +2,9 @@ * * $RCSfile: viewfun2.cxx,v $ * - * $Revision: 1.18 $ + * $Revision: 1.19 $ * - * last change: $Author: rt $ $Date: 2003-04-08 16:34:38 $ + * last change: $Author: hr $ $Date: 2003-04-28 15:46:04 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -1769,6 +1769,9 @@ BOOL ScViewFunc::DeleteTables(const SvUShorts &TheTabs, BOOL bRecord ) } pUndoDoc->SetVisible( nTab, pDoc->IsVisible( nTab ) ); + if ( pDoc->IsTabProtected( nTab ) ) + pUndoDoc->SetTabProtection( nTab, TRUE, pDoc->GetTabPassword( nTab ) ); + // Drawing-Layer muss sein Undo selbst in der Hand behalten !!! // pUndoDoc->TransferDrawPage(pDoc, nTab,nTab); } @@ -2206,6 +2209,10 @@ void ScViewFunc::MoveTable( USHORT nDestDocNo, USHORT nDestTab, BOOL bCopy ) pDestDoc->SetVisible(nDestTab1,bVisible ); } + + if ( nErrVal > 0 && pDoc->IsTabProtected( TheTabs[i] ) ) + pDestDoc->SetTabProtection( nDestTab1, TRUE, pDoc->GetTabPassword( TheTabs[i] ) ); + nDestTab1++; } } |