office-gobmx/accessibility/inc/standard
Michael Weghorn ce0a48a1eb tdf#155625 a11y: Notify about menu item role change
Send a `AccessibleEventId::ROLE_CHANGED` event
when the accessible role of a menu item changes
(s. how `VCLXAccessibleMenuItem::getAccessibleRole`
takes into account `MenuItemBits::RADIOCHECK` and
`MenuItemBits::CHECKABLE` to determine the accessible
role for the underlying menu entry).

This fixes the issue of obsolete values for roles being
used, which was uncovered by the upcoming
Change-Id I1a047864ce8dc1f1bc3056ad00159f7fd5e5b7d3
("vcl gtk3: Introduce AT-SPI2 tests for the GTK3 accessibility layer").

With this in place, the workaround for tdf#155625 in
the upcoming gtk3/AT-SPI tests is no longer necessary
and `make CppunitTest_vcl_gtk3_a11y` with
https://gerrit.libreoffice.org/c/core/+/153069 patch set 11
still passes after dropping the workaround:

    diff --git a/vcl/qa/cppunit/a11y/atspi2/atspi2.cxx b/vcl/qa/cppunit/a11y/atspi2/atspi2.cxx
    index bbcd263fee0c..762401181bf4 100644
    --- a/vcl/qa/cppunit/a11y/atspi2/atspi2.cxx
    +++ b/vcl/qa/cppunit/a11y/atspi2/atspi2.cxx
    @@ -264,9 +264,6 @@ void Atspi2TestTree::compareObjects(uno::Reference<accessibility::XAccessible> x
          * be represented with a round trip. */
         const auto nLORole = mapToAtspiRole(xLOContext->getAccessibleRole());
         auto nAtspiRole = pAtspiAccessible.getRole();
    -    // FIXME: workaround for https://bugs.documentfoundation.org/show_bug.cgi?id=155625
    -    if (nLORole == ATSPI_ROLE_CHECK_MENU_ITEM && nAtspiRole == ATSPI_ROLE_MENU_ITEM)
    -        nAtspiRole = nLORole;
         CPPUNIT_ASSERT_EQUAL(nLORole, nAtspiRole);
         /* name (no need to worry about debugging suffixes as AccessibilityTools::nameEquals does, as
          * that will also be part of the name sent to ATSPI) */

Change-Id: I0d88a7eda592f5ee9abf368ce1d5feb6611b9971
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/154947
Reviewed-by: Colomban Wendling <cwendling@hypra.fr>
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2023-07-27 16:58:22 +02:00
..
accessiblemenubasecomponent.hxx tdf#155625 a11y: Notify about menu item role change 2023-07-27 16:58:22 +02:00
accessiblemenucomponent.hxx Use ImplInheritanceHelper in OAccessibleMenuComponent 2023-01-26 19:01:24 +00:00
accessiblemenuitemcomponent.hxx [API CHANGE] tdf#150683 a11y: Switch a11y child index to 64 bit 2022-09-02 15:47:37 +02:00
svtaccessiblenumericfield.hxx a11y: Send VALUE_CHANGED event for FormattedField 2023-04-15 05:39:03 +02:00
vclxaccessiblebox.hxx Use ImplInheritanceHelper in VCLXAccessibleBox 2023-01-26 19:02:37 +00:00
vclxaccessiblebutton.hxx Use ImplInheritanceHelper in VCLXAccessibleButton 2023-01-26 19:55:22 +00:00
vclxaccessiblecheckbox.hxx Use ImplInheritanceHelper in VCLXAccessibleCheckBox 2023-01-26 19:55:32 +00:00
vclxaccessiblecombobox.hxx
vclxaccessibledropdowncombobox.hxx
vclxaccessibledropdownlistbox.hxx
vclxaccessibleedit.hxx Use ImplInheritanceHelper in VCLXAccessibleEdit 2023-01-26 19:01:58 +00:00
vclxaccessiblefixedhyperlink.hxx
vclxaccessiblefixedtext.hxx
vclxaccessibleheaderbar.hxx [API CHANGE] tdf#150683 a11y: Switch a11y child index to 64 bit 2022-09-02 15:47:37 +02:00
vclxaccessibleheaderbaritem.hxx Use ImplInheritanceHelper in VCLXAccessibleHeaderBarItem 2023-01-26 19:55:47 +00:00
vclxaccessiblelist.hxx Use ImplInheritanceHelper in VCLXAccessibleList 2023-01-26 19:55:55 +00:00
vclxaccessiblelistbox.hxx
vclxaccessiblelistitem.hxx [API CHANGE] tdf#150683 a11y: Switch a11y child index to 64 bit 2022-09-02 15:47:37 +02:00
vclxaccessiblemenu.hxx Use ImplInheritanceHelper in VCLXAccessibleMenu 2023-01-27 08:32:21 +00:00
vclxaccessiblemenubar.hxx [API CHANGE] tdf#150683 a11y: Switch a11y child index to 64 bit 2022-09-02 15:47:37 +02:00
vclxaccessiblemenuitem.hxx Use ImplInheritanceHelper in VCLXAccessibleMenuItem 2023-01-27 08:32:11 +00:00
vclxaccessiblemenuseparator.hxx
vclxaccessiblepopupmenu.hxx [API CHANGE] tdf#150683 a11y: Switch a11y child index to 64 bit 2022-09-02 15:47:37 +02:00
vclxaccessibleradiobutton.hxx Use ImplInheritanceHelper in VCLXAccessibleRadioButton 2023-01-27 10:29:25 +00:00
vclxaccessiblescrollbar.hxx Use ImplInheritanceHelper in VCLXAccessibleScrollBar 2023-01-27 11:45:27 +00:00
vclxaccessiblestatusbar.hxx [API CHANGE] tdf#150683 a11y: Switch a11y child index to 64 bit 2022-09-02 15:47:37 +02:00
vclxaccessiblestatusbaritem.hxx Use ImplInheritanceHelper in VCLXAccessibleStatusBarItem 2023-01-27 11:47:01 +00:00
vclxaccessibletabcontrol.hxx Use ImplInheritanceHelper in VCLXAccessibleTabControl 2023-01-27 11:47:10 +00:00
vclxaccessibletabpage.hxx Use ImplInheritanceHelper in VCLXAccessibleTabPage 2023-01-27 11:47:21 +00:00
vclxaccessibletabpagewindow.hxx [API CHANGE] tdf#150683 a11y: Switch a11y child index to 64 bit 2022-09-02 15:47:37 +02:00
vclxaccessibletextcomponent.hxx Use ImplInheritanceHelper in VCLXAccessibleTextComponent 2023-01-26 19:01:45 +00:00
vclxaccessibletextfield.hxx Use ImplInheritanceHelper in VCLXAccessibleTextField 2023-01-27 11:47:42 +00:00
vclxaccessibletoolbox.hxx Use ImplInheritanceHelper in VCLXAccessibleToolBox 2023-01-27 11:47:59 +00:00
vclxaccessibletoolboxitem.hxx Use ImplInheritanceHelper in VCLXAccessibleToolBoxItem 2023-01-27 11:48:19 +00:00