From fb60217569b0fb5bc949c58b054da71992fe2582 Mon Sep 17 00:00:00 2001 From: Maxim Monastirsky Date: Sun, 24 Sep 2017 19:27:26 +0300 Subject: tdf#83320 Hide vertical text commands early Instead of listing all commands in one big "if", just do it unconditionally in the shared controller. Change-Id: Ie415c4551a77ca8e1e29e73c0dabaff1dd13cbcb Reviewed-on: https://gerrit.libreoffice.org/42715 Tested-by: Jenkins Reviewed-by: Maxim Monastirsky --- framework/source/uielement/toolbarmanager.cxx | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'framework') diff --git a/framework/source/uielement/toolbarmanager.cxx b/framework/source/uielement/toolbarmanager.cxx index c5cf1738fdb2..a4525a204264 100644 --- a/framework/source/uielement/toolbarmanager.cxx +++ b/framework/source/uielement/toolbarmanager.cxx @@ -839,11 +839,7 @@ void ToolBarManager::CreateControllers() if (pController) { - if(aCommandURL == ".uno:SwitchXFormsDesignMode" || - aCommandURL == ".uno:ViewDataSourceBrowser" || - aCommandURL == ".uno:ParaLeftToRight" || - aCommandURL == ".uno:ParaRightToLeft" - ) + if (aCommandURL == ".uno:SwitchXFormsDesignMode" || aCommandURL == ".uno:ViewDataSourceBrowser") pController->setFastPropertyValue_NoBroadcast(1, makeAny(true)); } } -- cgit v1.2.3