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 <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Andras Timar <andras.timar@collabora.com>
(cherry picked from commit f5fe6046b2
)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/106817
Tested-by: Jenkins
This commit is contained in:
parent
94c7afc66f
commit
e35b2eede0
2 changed files with 8 additions and 0 deletions
|
@ -63,6 +63,7 @@ private:
|
||||||
|
|
||||||
std::unique_ptr<weld::RadioButton> m_xBtnMove;
|
std::unique_ptr<weld::RadioButton> m_xBtnMove;
|
||||||
std::unique_ptr<weld::RadioButton> m_xBtnCopy;
|
std::unique_ptr<weld::RadioButton> m_xBtnCopy;
|
||||||
|
std::unique_ptr<weld::Label> m_xFtDoc;
|
||||||
std::unique_ptr<weld::ComboBox> m_xLbDoc;
|
std::unique_ptr<weld::ComboBox> m_xLbDoc;
|
||||||
std::unique_ptr<weld::TreeView> m_xLbTable;
|
std::unique_ptr<weld::TreeView> m_xLbTable;
|
||||||
std::unique_ptr<weld::Entry> m_xEdTabName;
|
std::unique_ptr<weld::Entry> m_xEdTabName;
|
||||||
|
|
|
@ -24,6 +24,7 @@
|
||||||
#include <docsh.hxx>
|
#include <docsh.hxx>
|
||||||
#include <globstr.hrc>
|
#include <globstr.hrc>
|
||||||
#include <scresid.hxx>
|
#include <scresid.hxx>
|
||||||
|
#include <comphelper/lok.hxx>
|
||||||
|
|
||||||
ScMoveTableDlg::ScMoveTableDlg(weld::Window* pParent, const OUString& rDefault)
|
ScMoveTableDlg::ScMoveTableDlg(weld::Window* pParent, const OUString& rDefault)
|
||||||
: GenericDialogController(pParent, "modules/scalc/ui/movecopysheet.ui", "MoveCopySheetDialog")
|
: GenericDialogController(pParent, "modules/scalc/ui/movecopysheet.ui", "MoveCopySheetDialog")
|
||||||
|
@ -36,6 +37,7 @@ ScMoveTableDlg::ScMoveTableDlg(weld::Window* pParent, const OUString& rDefault)
|
||||||
, mbEverEdited(false)
|
, mbEverEdited(false)
|
||||||
, m_xBtnMove(m_xBuilder->weld_radio_button("move"))
|
, m_xBtnMove(m_xBuilder->weld_radio_button("move"))
|
||||||
, m_xBtnCopy(m_xBuilder->weld_radio_button("copy"))
|
, m_xBtnCopy(m_xBuilder->weld_radio_button("copy"))
|
||||||
|
, m_xFtDoc(m_xBuilder->weld_label("toDocumentLabel"))
|
||||||
, m_xLbDoc(m_xBuilder->weld_combo_box("toDocument"))
|
, m_xLbDoc(m_xBuilder->weld_combo_box("toDocument"))
|
||||||
, m_xLbTable(m_xBuilder->weld_tree_view("insertBefore"))
|
, m_xLbTable(m_xBuilder->weld_tree_view("insertBefore"))
|
||||||
, m_xEdTabName(m_xBuilder->weld_entry("newName"))
|
, m_xEdTabName(m_xBuilder->weld_entry("newName"))
|
||||||
|
@ -190,6 +192,11 @@ void ScMoveTableDlg::Init()
|
||||||
m_xFtWarn->hide();
|
m_xFtWarn->hide();
|
||||||
InitDocListBox();
|
InitDocListBox();
|
||||||
SelHdl(*m_xLbDoc);
|
SelHdl(*m_xLbDoc);
|
||||||
|
if (comphelper::LibreOfficeKit::isActive())
|
||||||
|
{
|
||||||
|
m_xFtDoc->hide();
|
||||||
|
m_xLbDoc->hide();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void ScMoveTableDlg::InitDocListBox()
|
void ScMoveTableDlg::InitDocListBox()
|
||||||
|
|
Loading…
Reference in a new issue