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 777b549242ab188eb68a8201cd0659d706f627e9 Author: Méven Car <[email protected]> AuthorDate: Wed Jan 10 10:26:38 2024 +0100 Commit: Andras Timar <[email protected]> CommitDate: Tue Jan 16 07:58:21 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 <[email protected]> Reviewed-by: Miklos Vajna <[email protected]> (cherry picked from commit f9546a5e9e204fc058365aaddfb0dfa8f9a26418) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/162130 Tested-by: Jenkins Reviewed-by: Andras Timar <[email protected]> diff --git a/sw/source/ui/dialog/uiregionsw.cxx b/sw/source/ui/dialog/uiregionsw.cxx index f0318a4cafe3..e3b56283f5cc 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 410b9d6db8a7..ad425df898e5 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>
