main/accessibility/source/extended/AccessibleBrowseBoxHeaderCell.cxx
/** Creates a new AccessibleStateSetHelper and fills it with states of the
	current object.
	@return
		A filled AccessibleStateSetHelper.
*/
Creates a new AccessibleStateSetHelper and fills it with states of the
current object.
Creates a new AccessibleStateSetHelper and fills it with states of the current object .
::utl::AccessibleStateSetHelper* AccessibleBrowseBoxHeaderCell::implCreateStateSetHelper()
{
	::osl::MutexGuard aGuard( getOslMutex() );
	::utl::AccessibleStateSetHelper*
		pStateSetHelper = new ::utl::AccessibleStateSetHelper;
	if( isAlive() )
	{
		if( implIsShowing() )
			pStateSetHelper->AddState( AccessibleStateType::SHOWING );
		mpBrowseBox->FillAccessibleStateSet( *pStateSetHelper, getType() );
		BBSolarGuard aSolarGuard;
		pStateSetHelper->AddState( AccessibleStateType::VISIBLE );
		pStateSetHelper->AddState( AccessibleStateType::FOCUSABLE );
		pStateSetHelper->AddState( AccessibleStateType::TRANSIENT );
		pStateSetHelper->AddState( AccessibleStateType::SELECTABLE );
		sal_Bool bSelected = isRowBarCell() ? mpBrowseBox->IsRowSelected(m_nColumnRowId) : mpBrowseBox->IsColumnSelected(m_nColumnRowId);
		if ( bSelected )
			pStateSetHelper->AddState( AccessibleStateType::SELECTED );
	}
	else
		pStateSetHelper->AddState( AccessibleStateType::DEFUNC );
	return pStateSetHelper;
}
:: utl :: AccessibleStateSetHelper * AccessibleBrowseBoxHeaderCell :: implCreateStateSetHelper ( ) { :: osl :: MutexGuard aGuard ( getOslMutex ( ) ) ; :: utl :: AccessibleStateSetHelper * pStateSetHelper = new :: utl :: AccessibleStateSetHelper ; if ( isAlive ( ) ) { if ( implIsShowing ( ) ) pStateSetHelper -> AddState ( AccessibleStateType :: SHOWING ) ; mpBrowseBox -> FillAccessibleStateSet ( * pStateSetHelper , getType ( ) ) ; BBSolarGuard aSolarGuard ; pStateSetHelper -> AddState ( AccessibleStateType :: VISIBLE ) ; pStateSetHelper -> AddState ( AccessibleStateType :: FOCUSABLE ) ; pStateSetHelper -> AddState ( AccessibleStateType :: TRANSIENT ) ; pStateSetHelper -> AddState ( AccessibleStateType :: SELECTABLE ) ; sal_Bool bSelected = isRowBarCell ( ) ? mpBrowseBox -> IsRowSelected ( m_nColumnRowId ) : mpBrowseBox -> IsColumnSelected ( m_nColumnRowId ) ; if ( bSelected ) pStateSetHelper -> AddState ( AccessibleStateType :: SELECTED ) ; } else pStateSetHelper -> AddState ( AccessibleStateType :: DEFUNC ) ; return pStateSetHelper ; }
Creates a new AccessibleStateSetHelper and fills it with states of the
current object.
Creates a new AccessibleStateSetHelper and fills it with states of the current object .
// SHOWING done with mxParent