From f8f8d5ec4568a10dc77144369f52b2dd165e66c5 Mon Sep 17 00:00:00 2001 From: Paris Oplopoios Date: Fri, 27 Oct 2023 13:12:19 +0300 Subject: tdf#157930 Add button to switch to range view in condformateasydlg Add a button that minimizes the dialog to make it easier to choose the conditional formatting range in the condformateasydlg. Also added more spacing. Change-Id: Ibf90e1d44c5555af2ab7a5c7bdb0bb2fa6c11d58 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/158555 Tested-by: Jenkins Reviewed-by: Paris Oplopoios --- sc/source/ui/condformat/condformateasydlg.cxx | 2 ++ sc/source/ui/inc/condformateasydlg.hxx | 1 + sc/uiconfig/scalc/ui/conditionaleasydialog.ui | 29 ++++++++++++++++++++++++++- 3 files changed, 31 insertions(+), 1 deletion(-) diff --git a/sc/source/ui/condformat/condformateasydlg.cxx b/sc/source/ui/condformat/condformateasydlg.cxx index c371861ac355..7e07b1a1dc19 100644 --- a/sc/source/ui/condformat/condformateasydlg.cxx +++ b/sc/source/ui/condformat/condformateasydlg.cxx @@ -67,11 +67,13 @@ ConditionalFormatEasyDialog::ConditionalFormatEasyDialog(SfxBindings* pBindings, , mxNumberEntry(m_xBuilder->weld_spin_button("entryNumber")) , mxNumberEntry2(m_xBuilder->weld_spin_button("entryNumber2")) , mxRangeEntry(new formula::RefEdit(m_xBuilder->weld_entry("entryRange"))) + , mxButtonRangeEdit(new formula::RefButton(m_xBuilder->weld_button("rbassign"))) , mxStyles(m_xBuilder->weld_combo_box("themeCombo")) , mxDescription(m_xBuilder->weld_label("description")) , mxButtonOk(m_xBuilder->weld_button("ok")) , mxButtonCancel(m_xBuilder->weld_button("cancel")) { + mxButtonRangeEdit->SetReferences(this, mxRangeEntry.get()); mpTabViewShell = GetTabViewShell(pBindings); if (!mpTabViewShell) mpTabViewShell = dynamic_cast(SfxViewShell::Current()); diff --git a/sc/source/ui/inc/condformateasydlg.hxx b/sc/source/ui/inc/condformateasydlg.hxx index 469613d2f1c8..9ca15a11bda9 100644 --- a/sc/source/ui/inc/condformateasydlg.hxx +++ b/sc/source/ui/inc/condformateasydlg.hxx @@ -45,6 +45,7 @@ private: std::unique_ptr mxNumberEntry; std::unique_ptr mxNumberEntry2; std::unique_ptr mxRangeEntry; + std::unique_ptr mxButtonRangeEdit; std::unique_ptr mxStyles; std::unique_ptr mxDescription; std::unique_ptr mxButtonOk; diff --git a/sc/uiconfig/scalc/ui/conditionaleasydialog.ui b/sc/uiconfig/scalc/ui/conditionaleasydialog.ui index 8f3da05b2ce8..2bee383956a9 100644 --- a/sc/uiconfig/scalc/ui/conditionaleasydialog.ui +++ b/sc/uiconfig/scalc/ui/conditionaleasydialog.ui @@ -68,7 +68,7 @@ True False vertical - 12 + 24 True @@ -79,6 +79,10 @@ True False + 12 + 12 + 6 + 6 12 @@ -191,6 +195,11 @@ True False + 12 + 12 + 6 + 6 + 12 True @@ -205,6 +214,24 @@ 0 + + + True + True + True + center + + + Click the Shrink icon to reduce the dialog to the size of the input field. It is then easier to mark the required reference in the sheet. The icons then automatically convert to the Maximize icon. Click it to restore the dialog to its original size. + + + + + False + True + 1 + + -- cgit