diff options
author | Vladimir Glazounov <vg@openoffice.org> | 2008-04-15 13:35:08 +0000 |
---|---|---|
committer | Vladimir Glazounov <vg@openoffice.org> | 2008-04-15 13:35:08 +0000 |
commit | cfe585090cf8ed374061f298d1e363f871602cfe (patch) | |
tree | c059953bd4357b6712436fd4a3bf02b6be464863 /sc/source/ui/view/tabview5.cxx | |
parent | 07cec1aef5b1720b14487664b0bf854cd00c1009 (diff) |
INTEGRATION: CWS calcshare2 (1.23.40); FILE MERGED
2008/03/21 08:51:54 tbe 1.23.40.1: #i87315# [Collboration] Disable UI for actions which are not recorded by change tracking
Diffstat (limited to 'sc/source/ui/view/tabview5.cxx')
-rw-r--r-- | sc/source/ui/view/tabview5.cxx | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/sc/source/ui/view/tabview5.cxx b/sc/source/ui/view/tabview5.cxx index c22d917bae19..7d65b2723f63 100644 --- a/sc/source/ui/view/tabview5.cxx +++ b/sc/source/ui/view/tabview5.cxx @@ -7,7 +7,7 @@ * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: tabview5.cxx,v $ - * $Revision: 1.24 $ + * $Revision: 1.25 $ * * This file is part of OpenOffice.org. * @@ -65,6 +65,8 @@ #include "seltrans.hxx" #include "scmod.hxx" #include "AccessibilityHints.hxx" +#include "docsh.hxx" + #include <vcl/svapp.hxx> // STATIC DATA ----------------------------------------------------------- @@ -356,25 +358,26 @@ void ScTabView::UpdateLayerLocks() BOOL bEx = aViewData.GetViewShell()->IsDrawSelMode(); BOOL bProt = aViewData.GetDocument()->IsTabProtected( nTab ) || aViewData.GetSfxDocShell()->IsReadOnly(); + BOOL bShared = aViewData.GetDocShell()->IsDocShared(); SdrLayer* pLayer; SdrLayerAdmin& rAdmin = pDrawView->GetModel()->GetLayerAdmin(); pLayer = rAdmin.GetLayerPerID(SC_LAYER_BACK); if (pLayer) - pDrawView->SetLayerLocked( pLayer->GetName(), bProt || !bEx ); + pDrawView->SetLayerLocked( pLayer->GetName(), bProt || !bEx || bShared ); pLayer = rAdmin.GetLayerPerID(SC_LAYER_INTERN); if (pLayer) pDrawView->SetLayerLocked( pLayer->GetName(), TRUE ); pLayer = rAdmin.GetLayerPerID(SC_LAYER_FRONT); if (pLayer) - pDrawView->SetLayerLocked( pLayer->GetName(), bProt ); + pDrawView->SetLayerLocked( pLayer->GetName(), bProt || bShared ); pLayer = rAdmin.GetLayerPerID(SC_LAYER_CONTROLS); if (pLayer) - pDrawView->SetLayerLocked( pLayer->GetName(), bProt ); + pDrawView->SetLayerLocked( pLayer->GetName(), bProt || bShared ); pLayer = rAdmin.GetLayerPerID(SC_LAYER_HIDDEN); if (pLayer) { - pDrawView->SetLayerLocked( pLayer->GetName(), bProt ); + pDrawView->SetLayerLocked( pLayer->GetName(), bProt || bShared ); pDrawView->SetLayerVisible( pLayer->GetName(), sal_False); } } |