cui/source/inc/optlingu.hxx | 2 - cui/source/options/optlingu.cxx | 21 ------------------- cui/uiconfig/ui/editmodulesdialog.ui | 15 ------------- cui/uiconfig/ui/optlingupage.ui | 38 ----------------------------------- 4 files changed, 76 deletions(-)
New commits: commit 771ac6ff5b966867dc4bea9483d8153a15f96cbc Author: Balazs Varga <balazs.va...@collabora.com> AuthorDate: Fri Aug 22 14:39:15 2025 +0200 Commit: Balazs Varga <balazs.va...@collabora.com> CommitDate: Wed Aug 27 16:32:13 2025 +0200 Remove external link from spell check options cherry-pick from: 91998c71c4604daf14ab5fad53eb838192c83312 Change-Id: I2c13f35ed1bfa3e50b0d5440f84ada31f76c897c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190067 Reviewed-by: Balazs Varga <balazs.va...@collabora.com> Tested-by: Balazs Varga <balazs.va...@collabora.com> diff --git a/cui/source/inc/optlingu.hxx b/cui/source/inc/optlingu.hxx index 6c5657acf7bd..5f6d0b5985a4 100644 --- a/cui/source/inc/optlingu.hxx +++ b/cui/source/inc/optlingu.hxx @@ -123,8 +123,6 @@ private: std::unique_ptr<weld::Button> m_xLinguDicsDelPB; std::unique_ptr<weld::TreeView> m_xLinguOptionsCLB; std::unique_ptr<weld::Button> m_xLinguOptionsEditPB; - std::unique_ptr<weld::Box> m_xMoreDictsBox; - std::unique_ptr<weld::LinkButton> m_xMoreDictsLink; void AddDicBoxEntry( const css::uno::Reference< css::linguistic2::XDictionary > &rxDic, sal_uInt16 nIdx ); static sal_uInt32 GetDicUserData( const css::uno::Reference< css::linguistic2::XDictionary > &rxDic, sal_uInt16 nIdx ); diff --git a/cui/source/options/optlingu.cxx b/cui/source/options/optlingu.cxx index c07ab32a1d85..eae8344edc40 100644 --- a/cui/source/options/optlingu.cxx +++ b/cui/source/options/optlingu.cxx @@ -808,8 +808,6 @@ SvxLinguTabPage::SvxLinguTabPage(weld::Container* pPage, weld::DialogController* , m_xLinguDicsDelPB(m_xBuilder->weld_button(u"lingudictsdelete"_ustr)) , m_xLinguOptionsCLB(m_xBuilder->weld_tree_view(u"linguoptions"_ustr)) , m_xLinguOptionsEditPB(m_xBuilder->weld_button(u"linguoptionsedit"_ustr)) - , m_xMoreDictsBox(m_xBuilder->weld_box(u"moredictsbox"_ustr)) - , m_xMoreDictsLink(m_xBuilder->weld_link_button(u"moredictslink"_ustr)) { m_xLinguModulesCLB->enable_toggle_buttons(weld::ColumnToggleType::Check); m_xLinguDicsCLB->enable_toggle_buttons(weld::ColumnToggleType::Check); @@ -832,16 +830,10 @@ SvxLinguTabPage::SvxLinguTabPage(weld::Container* pPage, weld::DialogController* m_xLinguOptionsCLB->connect_changed( LINK( this, SvxLinguTabPage, SelectHdl_Impl )); m_xLinguOptionsCLB->connect_row_activated(LINK(this, SvxLinguTabPage, BoxDoubleClickHdl_Impl)); - m_xMoreDictsLink->connect_activate_link(LINK(this, SvxLinguTabPage, OnLinkClick)); - if (officecfg::Office::Security::Hyperlinks::Open::get() == SvtExtendedSecurityOptions::OPEN_NEVER) - m_xMoreDictsBox->hide(); - if (comphelper::LibreOfficeKit::isActive()) { // hide User-defined Dictionaries part m_xBuilder->weld_frame(u"dictsframe"_ustr)->hide(); - // hide Get more dictionaries URL + icon - m_xMoreDictsBox->hide(); } xProp = LinguMgr::GetLinguPropertySet(); @@ -897,8 +889,6 @@ OUString SvxLinguTabPage::GetAllStrings() sAllStrings += pString->get_label() + " "; } - sAllStrings += m_xMoreDictsLink->get_label() + " "; - return sAllStrings.replaceAll("_", ""); } @@ -1542,12 +1532,6 @@ void SvxLinguTabPage::HideGroups( sal_uInt16 nGrp ) m_xLinguModulesFT->hide(); m_xLinguModulesCLB->hide(); m_xLinguModulesEditPB->hide(); - - if (officecfg::Office::Security::Hyperlinks::Open::get() != SvtExtendedSecurityOptions::OPEN_NEVER && - !comphelper::LibreOfficeKit::isActive()) - { - m_xMoreDictsBox->show(); - } } } @@ -1568,7 +1552,6 @@ SvxEditModulesDlg::SvxEditModulesDlg(weld::Window* pParent, SvxLinguData_Impl& r , m_xPrioUpPB(m_xBuilder->weld_button(u"up"_ustr)) , m_xPrioDownPB(m_xBuilder->weld_button(u"down"_ustr)) , m_xBackPB(m_xBuilder->weld_button(u"back"_ustr)) - , m_xMoreDictsLink(m_xBuilder->weld_link_button(u"moredictslink"_ustr)) , m_xClosePB(m_xBuilder->weld_button(u"close"_ustr)) , m_xLanguageLB(new SvxLanguageBox(m_xBuilder->weld_combo_box(u"language"_ustr))) { @@ -1590,10 +1573,6 @@ SvxEditModulesDlg::SvxEditModulesDlg(weld::Window* pParent, SvxLinguData_Impl& r m_xPrioUpPB->set_sensitive( false ); m_xPrioDownPB->set_sensitive( false ); - m_xMoreDictsLink->connect_activate_link(LINK(this, SvxEditModulesDlg, OnLinkClick)); - if (officecfg::Office::Security::Hyperlinks::Open::get() == SvtExtendedSecurityOptions::OPEN_NEVER) - m_xMoreDictsLink->hide(); - // set that we want the checkbox shown if spellchecking is available m_xLanguageLB->SetLanguageList(SvxLanguageListFlags::EMPTY, false, false, true); diff --git a/cui/uiconfig/ui/editmodulesdialog.ui b/cui/uiconfig/ui/editmodulesdialog.ui index 16e232384b4e..150ddea3c4b9 100644 --- a/cui/uiconfig/ui/editmodulesdialog.ui +++ b/cui/uiconfig/ui/editmodulesdialog.ui @@ -104,21 +104,6 @@ <property name="margin-top">6</property> <property name="hexpand">True</property> <property name="vexpand">True</property> - <child> - <object class="GtkLinkButton" id="moredictslink"> - <property name="label" translatable="yes" context="editmodulesdialog|moredictslink">Get more dictionaries online...</property> - <property name="visible">True</property> - <property name="can_focus">True</property> - <property name="receives_default">True</property> - <property name="relief">none</property> - <property name="xalign">0</property> - <property name="uri">https://extensions.libreoffice.org/dictionaries/</property> - </object> - <packing> - <property name="left_attach">0</property> - <property name="top_attach">2</property> - </packing> - </child> <child> <object class="GtkBox" id="box1"> <property name="visible">True</property> diff --git a/cui/uiconfig/ui/optlingupage.ui b/cui/uiconfig/ui/optlingupage.ui index e1b1868e0f90..19621355601c 100644 --- a/cui/uiconfig/ui/optlingupage.ui +++ b/cui/uiconfig/ui/optlingupage.ui @@ -457,44 +457,6 @@ <property name="top-attach">0</property> </packing> </child> - <child> - <object class="GtkBox" id="moredictsbox"> - <property name="visible">True</property> - <property name="can-focus">False</property> - <child> - <object class="GtkImage"> - <property name="visible">True</property> - <property name="can-focus">False</property> - <property name="icon-name">cmd/sc_additionsdialog.png</property> - </object> - <packing> - <property name="expand">False</property> - <property name="fill">True</property> - <property name="position">0</property> - </packing> - </child> - <child> - <object class="GtkLinkButton" id="moredictslink"> - <property name="label" translatable="yes" context="optlingupage|moredictslink">Get more dictionaries online...</property> - <property name="visible">True</property> - <property name="can-focus">True</property> - <property name="receives-default">True</property> - <property name="relief">none</property> - <property name="xalign">0</property> - </object> - <packing> - <property name="expand">False</property> - <property name="fill">True</property> - <property name="position">1</property> - </packing> - </child> - </object> - <packing> - <property name="left-attach">0</property> - <property name="top-attach">1</property> - <property name="width">2</property> - </packing> - </child> </object> </child> <child type="label">