From e35b2eede0bf3a9e51c084ed78f2eb39a7610b03 Mon Sep 17 00:00:00 2001 From: Andras Timar Date: Sun, 29 Nov 2020 21:09:14 +0100 Subject: [PATCH] LOKit: hide 'To document' dropdown 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 Reviewed-by: Andras Timar (cherry picked from commit f5fe6046b260ecf32cbe9bd9ea023c5c6ea08cea) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/106817 Tested-by: Jenkins --- sc/source/ui/inc/mvtabdlg.hxx | 1 + sc/source/ui/miscdlgs/mvtabdlg.cxx | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/sc/source/ui/inc/mvtabdlg.hxx b/sc/source/ui/inc/mvtabdlg.hxx index 9836cc544639..bd372005408a 100644 --- a/sc/source/ui/inc/mvtabdlg.hxx +++ b/sc/source/ui/inc/mvtabdlg.hxx @@ -63,6 +63,7 @@ private: std::unique_ptr m_xBtnMove; std::unique_ptr m_xBtnCopy; + std::unique_ptr m_xFtDoc; std::unique_ptr m_xLbDoc; std::unique_ptr m_xLbTable; std::unique_ptr m_xEdTabName; diff --git a/sc/source/ui/miscdlgs/mvtabdlg.cxx b/sc/source/ui/miscdlgs/mvtabdlg.cxx index 5ba94735d9ce..ff8657fb96a3 100644 --- a/sc/source/ui/miscdlgs/mvtabdlg.cxx +++ b/sc/source/ui/miscdlgs/mvtabdlg.cxx @@ -24,6 +24,7 @@ #include #include #include +#include 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")) @@ -190,6 +192,11 @@ void ScMoveTableDlg::Init() m_xFtWarn->hide(); InitDocListBox(); SelHdl(*m_xLbDoc); + if (comphelper::LibreOfficeKit::isActive()) + { + m_xFtDoc->hide(); + m_xLbDoc->hide(); + } } void ScMoveTableDlg::InitDocListBox()