sw/source/ui/dialog/uiregionsw.cxx | 2 ++ sw/source/uibase/inc/regionsw.hxx | 1 + sw/uiconfig/swriter/ui/editsectiondialog.ui | 2 +- 3 files changed, 4 insertions(+), 1 deletion(-)
New commits: commit f9546a5e9e204fc058365aaddfb0dfa8f9a26418 Author: Méven Car <meven....@collabora.com> AuthorDate: Wed Jan 10 10:26:38 2024 +0100 Commit: Miklos Vajna <vmik...@collabora.com> CommitDate: Fri Jan 12 15:50:54 2024 +0100 sw Edit Sections: hide Link section in LOK case In the LibreOfficeKit case the section does not make sense as the application has only restricted access to files, so hide it. Test: In Writer new document, insert a section, right click on section, Edit section..., Link section is visible. In LOK case the Link section is not present. Change-Id: I7aab8b384909d25e52f5fca2bf54f86e5c662b54 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/161878 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoff...@gmail.com> Reviewed-by: Miklos Vajna <vmik...@collabora.com> diff --git a/sw/source/ui/dialog/uiregionsw.cxx b/sw/source/ui/dialog/uiregionsw.cxx index b3dff074fdc1..dfab16785270 100644 --- a/sw/source/ui/dialog/uiregionsw.cxx +++ b/sw/source/ui/dialog/uiregionsw.cxx @@ -357,6 +357,7 @@ SwEditRegionDlg::SwEditRegionDlg(weld::Window* pParent, SwWrtShell& rWrtSh) , m_xOptionsPB(m_xBuilder->weld_button("options")) , m_xDismiss(m_xBuilder->weld_button("remove")) , m_xHideFrame(m_xBuilder->weld_widget("hideframe")) + , m_xLinkFrame(m_xBuilder->weld_frame("linkframe")) { m_xTree->set_size_request(-1, m_xTree->get_height_rows(16)); m_xFileCB->set_state(TRISTATE_FALSE); @@ -418,6 +419,7 @@ SwEditRegionDlg::SwEditRegionDlg(weld::Window* pParent, SwWrtShell& rWrtSh) if(comphelper::LibreOfficeKit::isActive()) { + m_xLinkFrame->hide(); m_xDDECB->hide(); m_xDDECommandFT->hide(); m_xFileNameFT->hide(); diff --git a/sw/source/uibase/inc/regionsw.hxx b/sw/source/uibase/inc/regionsw.hxx index 8cd22491cc3a..dae59fc58362 100644 --- a/sw/source/uibase/inc/regionsw.hxx +++ b/sw/source/uibase/inc/regionsw.hxx @@ -77,6 +77,7 @@ class SwEditRegionDlg final : public SfxDialogController std::unique_ptr<weld::Button> m_xOptionsPB; std::unique_ptr<weld::Button> m_xDismiss; std::unique_ptr<weld::Widget> m_xHideFrame; + std::unique_ptr<weld::Frame> m_xLinkFrame; void RecurseList(const SwSectionFormat* pFormat, const weld::TreeIter* pIter); size_t FindArrPos(const SwSectionFormat* pFormat); diff --git a/sw/uiconfig/swriter/ui/editsectiondialog.ui b/sw/uiconfig/swriter/ui/editsectiondialog.ui index 3a571100684f..2c358fa69fa5 100644 --- a/sw/uiconfig/swriter/ui/editsectiondialog.ui +++ b/sw/uiconfig/swriter/ui/editsectiondialog.ui @@ -237,7 +237,7 @@ <property name="row_spacing">12</property> <property name="column_spacing">12</property> <child> - <object class="GtkFrame" id="frame2"> + <object class="GtkFrame" id="linkframe"> <property name="visible">True</property> <property name="can_focus">False</property> <property name="hexpand">True</property>