summaryrefslogtreecommitdiff
path: root/sc/source/ui/miscdlgs
diff options
context:
space:
mode:
authorAndras Timar <andras.timar@collabora.com>2020-11-29 21:09:14 +0100
committerAndras Timar <andras.timar@collabora.com>2020-11-29 21:43:11 +0100
commitf5fe6046b260ecf32cbe9bd9ea023c5c6ea08cea (patch)
treeca990a183a33ff02dcae4bc06017f1fc9367c967 /sc/source/ui/miscdlgs
parent7ee6bb22e9874b4be5a2124e27de886c8bf45b30 (diff)
LOKit: hide 'To document' dropdowncp-6.4-15
In Online sheets can be copied/moved only in current document Change-Id: Ic30d9ae1e48184ab2aadccedcc670e0fea357296 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/106844 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com> Reviewed-by: Andras Timar <andras.timar@collabora.com>
Diffstat (limited to 'sc/source/ui/miscdlgs')
-rw-r--r--sc/source/ui/miscdlgs/mvtabdlg.cxx7
1 files changed, 7 insertions, 0 deletions
diff --git a/sc/source/ui/miscdlgs/mvtabdlg.cxx b/sc/source/ui/miscdlgs/mvtabdlg.cxx
index 05ad987fa64b..1c7a10874525 100644
--- a/sc/source/ui/miscdlgs/mvtabdlg.cxx
+++ b/sc/source/ui/miscdlgs/mvtabdlg.cxx
@@ -24,6 +24,7 @@
#include <docsh.hxx>
#include <globstr.hrc>
#include <scresid.hxx>
+#include <comphelper/lok.hxx>
ScMoveTableDlg::ScMoveTableDlg(weld::Window* pParent, const OUString& rDefault)
: GenericDialogController(pParent, "modules/scalc/ui/movecopysheet.ui", "MoveCopySheetDialog")
@@ -36,6 +37,7 @@ ScMoveTableDlg::ScMoveTableDlg(weld::Window* pParent, const OUString& rDefault)
, mbEverEdited(false)
, m_xBtnMove(m_xBuilder->weld_radio_button("move"))
, m_xBtnCopy(m_xBuilder->weld_radio_button("copy"))
+ , m_xFtDoc(m_xBuilder->weld_label("toDocumentLabel"))
, m_xLbDoc(m_xBuilder->weld_combo_box("toDocument"))
, m_xLbTable(m_xBuilder->weld_tree_view("insertBefore"))
, m_xEdTabName(m_xBuilder->weld_entry("newName"))
@@ -192,6 +194,11 @@ void ScMoveTableDlg::Init()
m_xFtWarn->hide();
InitDocListBox();
SelHdl(*m_xLbDoc);
+ if (comphelper::LibreOfficeKit::isActive())
+ {
+ m_xFtDoc->hide();
+ m_xLbDoc->hide();
+ }
}
void ScMoveTableDlg::InitDocListBox()