diff options
author | Henry Castro <hcastro@collabora.com> | 2015-08-13 16:08:46 -0400 |
---|---|---|
committer | Henry Castro <hcastro@collabora.com> | 2015-08-13 16:08:46 -0400 |
commit | 6609b05765e674f2f4694854097a5318b617fd54 (patch) | |
tree | b455c1424a7e153c4f8f675d75da0b0e20d7f498 /sc/source/ui/unoobj | |
parent | 8f6c7f3ca1baa6c29161cbbe41494c03b0a9d000 (diff) |
sc: fix LOKit invalidate setPart
The bindings invalidate correct tiles.
Change-Id: Id28a7a78157030243ef1ad798daba9583746f0d3
Diffstat (limited to 'sc/source/ui/unoobj')
-rw-r--r-- | sc/source/ui/unoobj/docuno.cxx | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/sc/source/ui/unoobj/docuno.cxx b/sc/source/ui/unoobj/docuno.cxx index 5faec95786f9..059626c79bd2 100644 --- a/sc/source/ui/unoobj/docuno.cxx +++ b/sc/source/ui/unoobj/docuno.cxx @@ -496,7 +496,22 @@ void ScModelObj::paintTile( VirtualDevice& rDevice, void ScModelObj::setPart( int nPart ) { ScViewData* pViewData = ScDocShell::GetViewData(); - pViewData->SetTabNo( nPart ); + SfxUInt16Item aItem( SID_CURRENTTAB, nPart + 1 ); + SfxDispatcher& rDisp = pViewData->GetDispatcher(); + + rDisp.Execute( SID_CURRENTTAB, SfxCallMode::SLOT | SfxCallMode::RECORD, &aItem, nullptr ); + + SfxBindings& rBind = pViewData->GetBindings(); + rBind.Invalidate( FID_FILL_TAB ); + rBind.Invalidate( FID_TAB_DESELECTALL ); + rBind.Invalidate( FID_INS_TABLE ); + rBind.Invalidate( FID_TAB_APPEND ); + rBind.Invalidate( FID_TAB_MOVE ); + rBind.Invalidate( FID_TAB_RENAME ); + rBind.Invalidate( FID_DELETE_TABLE ); + rBind.Invalidate( FID_TABLE_SHOW ); + rBind.Invalidate( FID_TABLE_HIDE ); + rBind.Invalidate( FID_TAB_SET_TAB_BG_COLOR ); } int ScModelObj::getParts() |