From 748ef40304e523135108905e902655abdf3c5d23 Mon Sep 17 00:00:00 2001 From: Szymon Kłos Date: Thu, 11 Mar 2021 09:11:38 +0100 Subject: Remove unused code from Macro Selector dialog MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I9930fd7eaf2410447f84aa4798478a10915ea738 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/112316 Tested-by: Jenkins CollaboraOffice Reviewed-by: Szymon Kłos Reviewed-on: https://gerrit.libreoffice.org/c/core/+/114205 Tested-by: Jenkins --- cui/source/customize/cfgutil.cxx | 7 +- cui/source/inc/cfgutil.hxx | 2 - cui/uiconfig/ui/macroselectordialog.ui | 124 ++++----------------------------- 3 files changed, 16 insertions(+), 117 deletions(-) (limited to 'cui') diff --git a/cui/source/customize/cfgutil.cxx b/cui/source/customize/cfgutil.cxx index 0d9491c7ddac..84540dd8d7f6 100644 --- a/cui/source/customize/cfgutil.cxx +++ b/cui/source/customize/cfgutil.cxx @@ -1077,9 +1077,7 @@ SvxScriptSelectorDialog::SvxScriptSelectorDialog( , m_xCategories(new CuiConfigGroupListBox(m_xBuilder->weld_tree_view("categories"))) , m_xCommands(new CuiConfigFunctionListBox(m_xBuilder->weld_tree_view("commands"))) , m_xLibraryFT(m_xBuilder->weld_label("libraryft")) - , m_xCategoryFT(m_xBuilder->weld_label("categoryft")) , m_xMacronameFT(m_xBuilder->weld_label("macronameft")) - , m_xCommandsFT(m_xBuilder->weld_label("commandsft")) , m_xOKButton(m_xBuilder->weld_button("ok")) , m_xCancelButton(m_xBuilder->weld_button("cancel")) , m_xDescriptionText(m_xBuilder->weld_text_view("description")) @@ -1089,9 +1087,7 @@ SvxScriptSelectorDialog::SvxScriptSelectorDialog( m_xOKButton->show(); m_xLibraryFT->set_visible(true); - m_xCategoryFT->set_visible(false); m_xMacronameFT->set_visible(true); - m_xCommandsFT->set_visible(false); const OUString aModuleName(vcl::CommandInfoProvider::GetModuleIdentifier(xFrame)); m_xCategories->SetFunctionListBox(m_xCommands.get()); @@ -1120,6 +1116,9 @@ SvxScriptSelectorDialog::SvxScriptSelectorDialog( m_xCategories->SetStylesInfo(&m_aStylesInfo); UpdateUI(); + + if (comphelper::LibreOfficeKit::isActive()) + m_xDescriptionText->hide(); } SvxScriptSelectorDialog::~SvxScriptSelectorDialog() diff --git a/cui/source/inc/cfgutil.hxx b/cui/source/inc/cfgutil.hxx index 66ffe4809659..0d6a8c1ee4be 100644 --- a/cui/source/inc/cfgutil.hxx +++ b/cui/source/inc/cfgutil.hxx @@ -238,9 +238,7 @@ class SvxScriptSelectorDialog : public weld::GenericDialogController std::unique_ptr m_xCategories; std::unique_ptr m_xCommands; std::unique_ptr m_xLibraryFT; - std::unique_ptr m_xCategoryFT; std::unique_ptr m_xMacronameFT; - std::unique_ptr m_xCommandsFT; std::unique_ptr m_xOKButton; std::unique_ptr m_xCancelButton; std::unique_ptr m_xDescriptionText; diff --git a/cui/uiconfig/ui/macroselectordialog.ui b/cui/uiconfig/ui/macroselectordialog.ui index 7756c141c052..5403437ab8f6 100644 --- a/cui/uiconfig/ui/macroselectordialog.ui +++ b/cui/uiconfig/ui/macroselectordialog.ui @@ -37,24 +37,10 @@ False end - - - Add - True - True - True - True - True - - - False - True - 0 - - _OK + True True True True @@ -71,6 +57,7 @@ _Cancel + True True True True @@ -82,20 +69,6 @@ 2 - - - _Close - True - True - True - True - - - False - True - 3 - - _Help @@ -143,22 +116,6 @@ 0 - - - False - True - True - To add a command to a toolbar, select the category and then the command. Then drag the command to the Commands list of the Toolbars tab page in the Customize dialog. - True - 60 - 0 - - - False - True - 1 - - True @@ -219,39 +176,13 @@ - + True False - - - True - False - Library - - - - - - False - True - 0 - - - - - True - False - Category - - - - - - False - True - 1 - - + Library + + + @@ -306,41 +237,14 @@ - + True False - - - True - False - Macro Name - False - - - - - - False - True - 0 - - - - - True - False - Commands - False - - - - - - False - True - 1 - - + Macro Name + False + + + @@ -413,10 +317,8 @@ - add ok cancel - close help -- cgit v1.2.3