diff options
Diffstat (limited to 'svtools')
-rw-r--r-- | svtools/source/contnr/svtabbx.cxx | 4 | ||||
-rw-r--r-- | svtools/source/uno/generictoolboxcontroller.cxx | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/svtools/source/contnr/svtabbx.cxx b/svtools/source/contnr/svtabbx.cxx index 5fc3f2724f81..b707015ecd07 100644 --- a/svtools/source/contnr/svtabbx.cxx +++ b/svtools/source/contnr/svtabbx.cxx @@ -698,7 +698,7 @@ sal_Bool SvHeaderTabListBox::IsCellCheckBox( long _nRow, sal_uInt16 _nColumn, Tr { bRet = true; _rState = ( ( pItem->GetButtonFlags() & SV_ITEMSTATE_UNCHECKED ) == 0 ) - ? STATE_CHECK : STATE_NOCHECK; + ? TRISTATE_TRUE : TRISTATE_FALSE; } } else @@ -917,7 +917,7 @@ Reference< XAccessible > SvHeaderTabListBox::CreateAccessibleCell( sal_Int32 _nR if ( !xChild.is() ) { - TriState eState = STATE_DONTKNOW; + TriState eState = TRISTATE_INDET; sal_Bool bIsCheckBox = IsCellCheckBox( _nRow, _nColumnPos, eState ); if ( bIsCheckBox ) xChild = m_pImpl->m_aFactoryAccess.getFactory().createAccessibleCheckBoxCell( diff --git a/svtools/source/uno/generictoolboxcontroller.cxx b/svtools/source/uno/generictoolboxcontroller.cxx index 1f43c1b918fb..6bbf1e48d6a3 100644 --- a/svtools/source/uno/generictoolboxcontroller.cxx +++ b/svtools/source/uno/generictoolboxcontroller.cxx @@ -139,7 +139,7 @@ throw ( RuntimeException ) sal_uInt16 nItemBits = m_pToolbox->GetItemBits( m_nID ); nItemBits &= ~TIB_CHECKABLE; - TriState eTri = STATE_NOCHECK; + TriState eTri = TRISTATE_FALSE; sal_Bool bValue = sal_Bool(); OUString aStrValue; @@ -151,7 +151,7 @@ throw ( RuntimeException ) m_pToolbox->SetItemBits( m_nID, nItemBits ); m_pToolbox->CheckItem( m_nID, bValue ); if ( bValue ) - eTri = STATE_CHECK; + eTri = TRISTATE_TRUE; nItemBits |= TIB_CHECKABLE; } else if ( Event.State >>= aStrValue ) @@ -160,7 +160,7 @@ throw ( RuntimeException ) } else if ( Event.State >>= aItemState ) { - eTri = STATE_DONTKNOW; + eTri = TRISTATE_INDET; nItemBits |= TIB_CHECKABLE; } |