main/accessibility/source/standard/vclxaccessiblelist.cxx
/** To find out which item is currently selected and to update the SELECTED
	state of the associated accessibility objects accordingly we exploit the
	fact that the
*/
To find out which item is currently selected and to update the SELECTED
state of the associated accessibility objects accordingly we exploit the
fact that the
To find out which item is currently selected and to update the SELECTED state of the associated accessibility objects accordingly we exploit the fact that the
void VCLXAccessibleList::UpdateSelection (::rtl::OUString sTextOfSelectedItem)
{
	if ( m_aBoxType == COMBOBOX )
	{
		ComboBox* pBox = static_cast<ComboBox*>(GetWindow());
		if ( pBox != NULL )
		{
			sal_uInt16 nIndex = pBox->GetEntryPos (XubString(sTextOfSelectedItem));
			if ( nIndex == LISTBOX_ENTRY_NOTFOUND )
				nIndex = 0;
			UpdateSelection_Impl(nIndex);
		}
	}
}
void VCLXAccessibleList :: UpdateSelection ( :: rtl :: OUString sTextOfSelectedItem ) { if ( m_aBoxType == COMBOBOX ) { ComboBox * pBox = static_cast < ComboBox * > ( GetWindow ( ) ) ; if ( pBox != NULL ) { sal_uInt16 nIndex = pBox -> GetEntryPos ( XubString ( sTextOfSelectedItem ) ) ; if ( nIndex == LISTBOX_ENTRY_NOTFOUND ) nIndex = 0 ; UpdateSelection_Impl ( nIndex ) ; } } }
To find out which item is currently selected and to update the SELECTED
state of the associated accessibility objects accordingly we exploit the
fact that the
To find out which item is currently selected and to update the SELECTED state of the associated accessibility objects accordingly we exploit the fact that the
// Find the index of the selected item inside the VCL control... // ...and then find the associated accessibility object.