diff options
author | Vladimir Glazounov <vg@openoffice.org> | 2008-07-01 15:28:54 +0000 |
---|---|---|
committer | Vladimir Glazounov <vg@openoffice.org> | 2008-07-01 15:28:54 +0000 |
commit | 1c0d55b1602cf4b9fc1b4538c5b1816a95b2f3ea (patch) | |
tree | d16f8af23fac1699a9e17a79c26a899fba47eada /sc/source/ui/view/tabview5.cxx | |
parent | 6b38d615aee0eb12660f18aa84a55b47578b5119 (diff) |
INTEGRATION: CWS dr62 (1.25.54); FILE MERGED
2008/06/02 15:50:57 nn 1.25.54.1: #i80437# don't use document broadcast to notify sheet change in view
Diffstat (limited to 'sc/source/ui/view/tabview5.cxx')
-rw-r--r-- | sc/source/ui/view/tabview5.cxx | 23 |
1 files changed, 21 insertions, 2 deletions
diff --git a/sc/source/ui/view/tabview5.cxx b/sc/source/ui/view/tabview5.cxx index 7d65b2723f63..571ea8c30a9f 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.25 $ + * $Revision: 1.26 $ * * This file is part of OpenOffice.org. * @@ -66,9 +66,12 @@ #include "scmod.hxx" #include "AccessibilityHints.hxx" #include "docsh.hxx" +#include "viewuno.hxx" #include <vcl/svapp.hxx> +using namespace com::sun::star; + // STATIC DATA ----------------------------------------------------------- @@ -347,7 +350,23 @@ void ScTabView::TabChanged() SfxSimpleHint aAccHint(SC_HINT_ACC_TABLECHANGED); aViewData.GetViewShell()->BroadcastAccessibility(aAccHint); } - aViewData.GetDocument()->BroadcastUno( SfxSimpleHint( SC_HINT_TABLECHANGED ) ); + + // notification for XActivationBroadcaster + SfxViewFrame* pViewFrame = aViewData.GetViewShell()->GetViewFrame(); + if (pViewFrame) + { + SfxFrame* pFrame = pViewFrame->GetFrame(); + if (pFrame) + { + uno::Reference<frame::XController> xController = pFrame->GetController(); + if (xController.is()) + { + ScTabViewObj* pImp = ScTabViewObj::getImplementation( xController ); + if (pImp) + pImp->SheetChanged(); + } + } + } } void ScTabView::UpdateLayerLocks() |