summaryrefslogtreecommitdiff
path: root/sc/source/ui/inc/tabpages.hxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2019-05-08 12:26:39 +0100
committerCaolán McNamara <caolanm@redhat.com>2019-05-08 17:31:12 +0200
commit8bc7a39223ba55efa6453d540b1d5e6ff52e51ee (patch)
treedd5cf9c2a969f81d1f04f6df1dd33c0bdfd24792 /sc/source/ui/inc/tabpages.hxx
parent922f3d2f10746ab25deeb5ea4ae78795524e6744 (diff)
merge duplicated TriStateEnabled class
Change-Id: I1c10010eb7fd33a03f477af0cba03ae74859b174 Reviewed-on: https://gerrit.libreoffice.org/71959 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sc/source/ui/inc/tabpages.hxx')
-rw-r--r--sc/source/ui/inc/tabpages.hxx20
1 files changed, 4 insertions, 16 deletions
diff --git a/sc/source/ui/inc/tabpages.hxx b/sc/source/ui/inc/tabpages.hxx
index 5d195bb3cde2..16046ab4f6bc 100644
--- a/sc/source/ui/inc/tabpages.hxx
+++ b/sc/source/ui/inc/tabpages.hxx
@@ -22,18 +22,6 @@
#include <sfx2/tabdlg.hxx>
-struct TriStateEnabled
-{
- TriState eState;
- bool bTriStateEnabled;
- TriStateEnabled()
- : eState(TRISTATE_INDET)
- , bTriStateEnabled(true)
- {
- }
- void ButtonToggled(weld::ToggleButton& rToggle);
-};
-
class ScTabPageProtection : public SfxTabPage
{
friend class VclPtr<ScTabPageProtection>;
@@ -62,10 +50,10 @@ private:
bool bHideCell;
bool bHidePrint;
- TriStateEnabled aHideCellState;
- TriStateEnabled aProtectState;
- TriStateEnabled aHideFormulaState;
- TriStateEnabled aHidePrintState;
+ weld::TriStateEnabled aHideCellState;
+ weld::TriStateEnabled aProtectState;
+ weld::TriStateEnabled aHideFormulaState;
+ weld::TriStateEnabled aHidePrintState;
std::unique_ptr<weld::CheckButton> m_xBtnHideCell;
std::unique_ptr<weld::CheckButton> m_xBtnProtect;