diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-02-24 12:25:02 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-02-24 12:27:32 +0100 |
commit | 33740b7d5abb8aca34692fbdaa787b26a60652a9 (patch) | |
tree | ad2574a7850e2aa8ac18eaff89f4a85567896692 /sc/source/ui/attrdlg | |
parent | 43d7f4e3640c5e370fd1204739c2b0c7eb5f40e4 (diff) |
Replace exisiting TriState, AutoState with more generic TriState
Change-Id: Ida05478aae5a379775c671e0c2f2851d820d78be
Diffstat (limited to 'sc/source/ui/attrdlg')
-rw-r--r-- | sc/source/ui/attrdlg/tabpages.cxx | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/sc/source/ui/attrdlg/tabpages.cxx b/sc/source/ui/attrdlg/tabpages.cxx index 88090598be77..e87cf53c5a0b 100644 --- a/sc/source/ui/attrdlg/tabpages.cxx +++ b/sc/source/ui/attrdlg/tabpages.cxx @@ -169,12 +169,12 @@ int ScTabPageProtection::DeactivatePage( SfxItemSet* pSetP ) IMPL_LINK( ScTabPageProtection, ButtonClickHdl, TriStateBox*, pBox ) { TriState eState = pBox->GetState(); - if ( eState == STATE_DONTKNOW ) + if ( eState == TRISTATE_INDET ) bDontCare = true; // everything combined at DontCare else { bDontCare = false; // DontCare from everywhere - sal_Bool bOn = ( eState == STATE_CHECK ); // from a selected value + sal_Bool bOn = ( eState == TRISTATE_TRUE ); // from a selected value if ( pBox == m_pBtnProtect ) bProtect = bOn; @@ -201,20 +201,20 @@ void ScTabPageProtection::UpdateButtons() { if ( bDontCare ) { - m_pBtnProtect->SetState( STATE_DONTKNOW ); - m_pBtnHideCell->SetState( STATE_DONTKNOW ); - m_pBtnHideFormula->SetState( STATE_DONTKNOW ); - m_pBtnHidePrint->SetState( STATE_DONTKNOW ); + m_pBtnProtect->SetState( TRISTATE_INDET ); + m_pBtnHideCell->SetState( TRISTATE_INDET ); + m_pBtnHideFormula->SetState( TRISTATE_INDET ); + m_pBtnHidePrint->SetState( TRISTATE_INDET ); } else { - m_pBtnProtect->SetState( bProtect ? STATE_CHECK : STATE_NOCHECK ); - m_pBtnHideCell->SetState( bHideCell ? STATE_CHECK : STATE_NOCHECK ); - m_pBtnHideFormula->SetState( bHideForm ? STATE_CHECK : STATE_NOCHECK ); - m_pBtnHidePrint->SetState( bHidePrint ? STATE_CHECK : STATE_NOCHECK ); + m_pBtnProtect->SetState( bProtect ? TRISTATE_TRUE : TRISTATE_FALSE ); + m_pBtnHideCell->SetState( bHideCell ? TRISTATE_TRUE : TRISTATE_FALSE ); + m_pBtnHideFormula->SetState( bHideForm ? TRISTATE_TRUE : TRISTATE_FALSE ); + m_pBtnHidePrint->SetState( bHidePrint ? TRISTATE_TRUE : TRISTATE_FALSE ); } - sal_Bool bEnable = ( m_pBtnHideCell->GetState() != STATE_CHECK ); + sal_Bool bEnable = ( m_pBtnHideCell->GetState() != TRISTATE_TRUE ); { m_pBtnProtect->Enable( bEnable ); m_pBtnHideFormula->Enable( bEnable ); |