diff options
author | Álex Puchades <alex94puchades@gmail.com> | 2018-03-14 15:04:26 +0100 |
---|---|---|
committer | Aron Budea <aron.budea@collabora.com> | 2018-06-29 13:30:07 +0200 |
commit | 78dd2fe0b05cd9b63b2fc2a106fc3885cd9d887c (patch) | |
tree | 20e4f4fb30f6dae6a497bf67d51e952932c2970c | |
parent | a6443499ddf0a26d67c765401ada578cf7ff0d5b (diff) |
tdf#115453 Remove Master Handout tab from Views Tab Bar
The Views Tab Bar has had five tabs until now (Normal, Outline, Notes, Slide
Sorter and Master Handout). Before this commit, selecting the Master Handout
tab and then going back to the Normal or Notes tab showed the Slide/Notes
Master instead of the expected behaviour.
This commit removes the Master Handout Tab from the Views Tab Bar, with master
views remaining accessible through the View Menu.
Reviewed-on: https://gerrit.libreoffice.org/51320
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
(cherry picked from commit 17b57caf83425d086ac8aa5c89815ed3dc3bc286)
(cherry picked from commit d320692dcc77716df14a7f5a75be3779a5abddd4)
Change-Id: I017af5f29d154386e4f0910151c478956aa0985f
-rw-r--r-- | sd/source/ui/framework/module/ViewTabBarModule.cxx | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/sd/source/ui/framework/module/ViewTabBarModule.cxx b/sd/source/ui/framework/module/ViewTabBarModule.cxx index 02a7b553b2e1..dd2f3d82d62a 100644 --- a/sd/source/ui/framework/module/ViewTabBarModule.cxx +++ b/sd/source/ui/framework/module/ViewTabBarModule.cxx @@ -174,14 +174,6 @@ void ViewTabBarModule::UpdateViewTabBar (const Reference<XTabBar>& rxTabBar) aNotesViewButton.ButtonLabel = SD_RESSTR(STR_NOTES_MODE); if ( ! xBar->hasTabBarButton(aNotesViewButton)) xBar->addTabBarButtonAfter(aNotesViewButton, aOutlineViewButton); - - TabBarButton aHandoutViewButton; - aHandoutViewButton.ResourceId = FrameworkHelper::CreateResourceId( - FrameworkHelper::msHandoutViewURL, - xAnchor); - aHandoutViewButton.ButtonLabel = SD_RESSTR(STR_HANDOUT_MASTER_MODE); - if ( ! xBar->hasTabBarButton(aHandoutViewButton)) - xBar->addTabBarButtonAfter(aHandoutViewButton, aNotesViewButton); } } } |