summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2020-05-07 20:28:33 +0100
committerCaolán McNamara <caolanm@redhat.com>2020-05-08 10:11:43 +0200
commit962bf806f655e3c631bc1b77f8419e5e8fc64c0c (patch)
tree5fddabb206437dea8705b25d66dfaa12837f3f43 /sc
parent25339ae3ebfe05338a6809d4507c91c79aabff27 (diff)
remove TriStateBox class
Change-Id: Ia6c76a9f0fc0be7790d0c801cbca4a7b8d478976 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/93680 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sc')
-rw-r--r--sc/source/ui/cctrl/checklistmenu.cxx4
-rw-r--r--sc/source/ui/inc/checklistmenu.hxx2
2 files changed, 4 insertions, 2 deletions
diff --git a/sc/source/ui/cctrl/checklistmenu.cxx b/sc/source/ui/cctrl/checklistmenu.cxx
index 69903842c2f0..d892e8015443 100644
--- a/sc/source/ui/cctrl/checklistmenu.cxx
+++ b/sc/source/ui/cctrl/checklistmenu.cxx
@@ -881,7 +881,7 @@ ScCheckListMenuWindow::ScCheckListMenuWindow(vcl::Window* pParent, ScDocument* p
ScMenuFloatingWindow(pParent, pDoc),
maEdSearch(VclPtr<ScSearchEdit>::Create(this)),
maChecks(VclPtr<ScCheckListBox>::Create(this)),
- maChkToggleAll(VclPtr<TriStateBox>::Create(this, 0)),
+ maChkToggleAll(VclPtr<CheckBox>::Create(this, 0)),
maBtnSelectSingle(VclPtr<ImageButton>::Create(this, 0)),
maBtnUnselectSingle(VclPtr<ImageButton>::Create(this, 0)),
maBtnOk(VclPtr<OKButton>::Create(this)),
@@ -890,6 +890,8 @@ ScCheckListMenuWindow::ScCheckListMenuWindow(vcl::Window* pParent, ScDocument* p
mePrevToggleAllState(TRISTATE_INDET),
maTabStops(this)
{
+ maChkToggleAll->EnableTriState(true);
+
float fScaleFactor = GetDPIScaleFactor();
nWidth = std::max<int>(nWidth, 200 * fScaleFactor);
diff --git a/sc/source/ui/inc/checklistmenu.hxx b/sc/source/ui/inc/checklistmenu.hxx
index 2ff574a15252..6fba5f249840 100644
--- a/sc/source/ui/inc/checklistmenu.hxx
+++ b/sc/source/ui/inc/checklistmenu.hxx
@@ -421,7 +421,7 @@ private:
VclPtr<ScSearchEdit> maEdSearch;
VclPtr<ScCheckListBox> maChecks;
- VclPtr<TriStateBox> maChkToggleAll;
+ VclPtr<CheckBox> maChkToggleAll;
VclPtr<ImageButton> maBtnSelectSingle;
VclPtr<ImageButton> maBtnUnselectSingle;