summaryrefslogtreecommitdiff
path: root/sc/source
diff options
context:
space:
mode:
authorParis Oplopoios <paris.oplopoios@collabora.com>2023-10-27 13:12:19 +0300
committerParis Oplopoios <parisoplop@gmail.com>2023-10-29 01:05:30 +0200
commitf8f8d5ec4568a10dc77144369f52b2dd165e66c5 (patch)
tree050ee379b4e335910cdbd368130868007c9ca69f /sc/source
parentd63bcfe3dde8cf873c897dbbe73fe8db38aaa70f (diff)
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 <parisoplop@gmail.com>
Diffstat (limited to 'sc/source')
-rw-r--r--sc/source/ui/condformat/condformateasydlg.cxx2
-rw-r--r--sc/source/ui/inc/condformateasydlg.hxx1
2 files changed, 3 insertions, 0 deletions
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<ScTabViewShell*>(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<weld::SpinButton> mxNumberEntry;
std::unique_ptr<weld::SpinButton> mxNumberEntry2;
std::unique_ptr<formula::RefEdit> mxRangeEntry;
+ std::unique_ptr<formula::RefButton> mxButtonRangeEdit;
std::unique_ptr<weld::ComboBox> mxStyles;
std::unique_ptr<weld::Label> mxDescription;
std::unique_ptr<weld::Button> mxButtonOk;