Kaydet (Commit) da907c7b authored tarafından Caolán McNamara's avatar Caolán McNamara

Related: tdf#82998 rearrange, no logic change

Change-Id: I1d3a6a552bd535622009b43e0633a357b1a919e6
üst 835fcfac
......@@ -258,56 +258,63 @@ void VCLXAccessibleList::UpdateSelection_Impl_Acc(bool b_IsDropDownList)
}
}
}
if (m_aBoxType == COMBOBOX && b_IsDropDownList)
if (m_aBoxType == COMBOBOX)
{
//VCLXAccessibleDropDownComboBox
//when in list is dropped down, xText = NULL
if (m_pListBoxHelper && m_pListBoxHelper->IsInDropDown())
if (b_IsDropDownList)
{
if ( aNewValue.hasValue() || aOldValue.hasValue() )
//VCLXAccessibleDropDownComboBox
//when in list is dropped down, xText = NULL
if (m_pListBoxHelper && m_pListBoxHelper->IsInDropDown())
{
NotifyAccessibleEvent(
AccessibleEventId::ACTIVE_DESCENDANT_CHANGED,
aOldValue,
aNewValue );
if ( aNewValue.hasValue() || aOldValue.hasValue() )
{
NotifyAccessibleEvent(
AccessibleEventId::ACTIVE_DESCENDANT_CHANGED,
aOldValue,
aNewValue );
NotifyListItem(aNewValue);
NotifyListItem(aNewValue);
}
}
}
else
{
//VCLXAccessibleComboBox
NotifyAccessibleEvent( AccessibleEventId::SELECTION_CHANGED, uno::Any(), uno::Any() );
}
}
else if (m_aBoxType == COMBOBOX && !b_IsDropDownList)
{
//VCLXAccessibleComboBox
NotifyAccessibleEvent( AccessibleEventId::SELECTION_CHANGED, uno::Any(), uno::Any() );
}
else if (m_aBoxType == LISTBOX && b_IsDropDownList)
else if (m_aBoxType == LISTBOX)
{
//VCLXAccessibleDropdownListBox
//when in list is dropped down, xText = NULL
if (m_pListBoxHelper && m_pListBoxHelper->IsInDropDown())
if (b_IsDropDownList)
{
if ( aNewValue.hasValue() || aOldValue.hasValue() )
//VCLXAccessibleDropdownListBox
//when in list is dropped down, xText = NULL
if (m_pListBoxHelper && m_pListBoxHelper->IsInDropDown())
{
NotifyAccessibleEvent(
AccessibleEventId::ACTIVE_DESCENDANT_CHANGED,
aOldValue,
aNewValue );
if ( aNewValue.hasValue() || aOldValue.hasValue() )
{
NotifyAccessibleEvent(
AccessibleEventId::ACTIVE_DESCENDANT_CHANGED,
aOldValue,
aNewValue );
NotifyListItem(aNewValue);
NotifyListItem(aNewValue);
}
}
}
}
else if (m_aBoxType == LISTBOX && !b_IsDropDownList)
{
if ( aNewValue.hasValue() || aOldValue.hasValue() )
else
{
NotifyAccessibleEvent(
AccessibleEventId::ACTIVE_DESCENDANT_CHANGED,
aOldValue,
aNewValue );
if ( aNewValue.hasValue() || aOldValue.hasValue() )
{
NotifyAccessibleEvent(
AccessibleEventId::ACTIVE_DESCENDANT_CHANGED,
aOldValue,
aNewValue );
NotifyListItem(aNewValue);
NotifyListItem(aNewValue);
}
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment