summaryrefslogtreecommitdiff
path: root/sc/source/ui/view/tabvwshf.cxx
diff options
context:
space:
mode:
authorVladimir Glazounov <vg@openoffice.org>2008-04-15 13:16:37 +0000
committerVladimir Glazounov <vg@openoffice.org>2008-04-15 13:16:37 +0000
commit197f9ff339b44f37461211bb093691e3925d8e72 (patch)
treefe668c5ce4409fea041bf5e3be71388d32d4b230 /sc/source/ui/view/tabvwshf.cxx
parent1e831a3ba6199806f4cf833f702bc460fa1179c6 (diff)
INTEGRATION: CWS calcshare2 (1.13.282); FILE MERGED
2008/03/21 08:54:52 tbe 1.13.282.1: #i87315# [Collboration] Disable UI for actions which are not recorded by change tracking
Diffstat (limited to 'sc/source/ui/view/tabvwshf.cxx')
-rw-r--r--sc/source/ui/view/tabvwshf.cxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/sc/source/ui/view/tabvwshf.cxx b/sc/source/ui/view/tabvwshf.cxx
index b9ec8d7e3a4d..3bf29c0a5bec 100644
--- a/sc/source/ui/view/tabvwshf.cxx
+++ b/sc/source/ui/view/tabvwshf.cxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: tabvwshf.cxx,v $
- * $Revision: 1.14 $
+ * $Revision: 1.15 $
*
* This file is part of OpenOffice.org.
*
@@ -692,6 +692,7 @@ void ScTabViewShell::GetStateTable( SfxItemSet& rSet )
{
ScViewData* pViewData = GetViewData();
ScDocument* pDoc = pViewData->GetDocument();
+ ScDocShell* pDocShell = pViewData->GetDocShell();
ScMarkData& rMark = GetViewData()->GetMarkData();
SCTAB nTab = pViewData->GetTabNo();
@@ -772,7 +773,8 @@ void ScTabViewShell::GetStateTable( SfxItemSet& rSet )
case FID_TAB_MENU_RENAME:
if ( !pDoc->IsDocEditable() ||
- pDoc->IsTabProtected(nTab) ||nTabSelCount > 1 )
+ pDoc->IsTabProtected(nTab) ||nTabSelCount > 1 ||
+ ( pDocShell && pDocShell->IsDocShared() ) )
rSet.DisableItem( nWhich );
break;