summaryrefslogtreecommitdiff
path: root/svtools
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2014-02-24 12:25:02 +0100
committerStephan Bergmann <sbergman@redhat.com>2014-02-24 12:27:32 +0100
commit33740b7d5abb8aca34692fbdaa787b26a60652a9 (patch)
treead2574a7850e2aa8ac18eaff89f4a85567896692 /svtools
parent43d7f4e3640c5e370fd1204739c2b0c7eb5f40e4 (diff)
Replace exisiting TriState, AutoState with more generic TriState
Change-Id: Ida05478aae5a379775c671e0c2f2851d820d78be
Diffstat (limited to 'svtools')
-rw-r--r--svtools/source/contnr/svtabbx.cxx4
-rw-r--r--svtools/source/uno/generictoolboxcontroller.cxx6
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;
}