diff options
author | Andras Timar <andras.timar@collabora.com> | 2022-11-24 13:37:36 +0100 |
---|---|---|
committer | Szymon Kłos <szymon.klos@collabora.com> | 2023-04-07 19:37:17 +0200 |
commit | 47e000b9289e0e37e1c2f5064064932ecd320152 (patch) | |
tree | f31e1d274a5c8d031aee4e829d8bc2653876e71a | |
parent | cb00ec7cbfc7900c3a31e7fdc4916668a1fa4c11 (diff) |
Disallow linking files as Writer sections in Online
Change-Id: I9e4971c72db44ca8216ac468240dd52d46e0b680
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/143225
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Henry Castro <hcastro@collabora.com>
-rw-r--r-- | sw/source/ui/dialog/uiregionsw.cxx | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/sw/source/ui/dialog/uiregionsw.cxx b/sw/source/ui/dialog/uiregionsw.cxx index d9ba3fcbb9ab..a5492545d74a 100644 --- a/sw/source/ui/dialog/uiregionsw.cxx +++ b/sw/source/ui/dialog/uiregionsw.cxx @@ -34,6 +34,7 @@ #include <sfx2/filedlghelper.hxx> #include <editeng/sizeitem.hxx> #include <svtools/htmlcfg.hxx> +#include <comphelper/lok.hxx> #include <uitool.hxx> #include <IMark.hxx> @@ -1478,6 +1479,21 @@ SwInsertSectionTabPage::SwInsertSectionTabPage(weld::Container* pPage, weld::Dia m_xDDECB->connect_toggled( LINK( this, SwInsertSectionTabPage, DDEHdl )); ChangeProtectHdl(*m_xProtectCB); m_xSubRegionED->set_entry_completion(true, true); + + // Hide Link section. In general it makes no sense to insert a file from the jail, + // because it does not contain any usable files (documents). + if(comphelper::LibreOfficeKit::isActive()) + { + m_xBuilder->weld_label("label1")->hide(); // Link + m_xFileCB->hide(); + m_xDDECB->hide(); + m_xDDECommandFT->hide(); + m_xFileNameFT->hide(); + m_xFileNameED->hide(); + m_xFilePB->hide(); + m_xSubRegionFT->hide(); + m_xSubRegionED->hide(); + } } SwInsertSectionTabPage::~SwInsertSectionTabPage() |