svx/uiconfig/ui/sidebarparagraph.ui | 35 +++++++++++++++++++++++++++++++++++ vcl/source/window/window.cxx | 2 ++ 2 files changed, 37 insertions(+)
New commits: commit ea6f22310d82807dd30266dc001cff2b8cf26c7a Author: codewithvk <[email protected]> AuthorDate: Tue Feb 17 15:34:18 2026 +0530 Commit: Caolán McNamara <[email protected]> CommitDate: Tue Feb 24 10:47:22 2026 +0100 a11y: add grouping roles to sidebar paragraph panel toolbars Signed-off-by: codewithvk <[email protected]> Change-Id: I39357a4b755a31a7c1a293ff9a74d423701b16ff Reviewed-on: https://gerrit.libreoffice.org/c/core/+/199534 Tested-by: Jenkins CollaboraOffice <[email protected]> Reviewed-by: Caolán McNamara <[email protected]> Reviewed-by: Parth Raiyani <[email protected]> diff --git a/svx/uiconfig/ui/sidebarparagraph.ui b/svx/uiconfig/ui/sidebarparagraph.ui index c3f7c10466d5..25c6cd31310d 100644 --- a/svx/uiconfig/ui/sidebarparagraph.ui +++ b/svx/uiconfig/ui/sidebarparagraph.ui @@ -136,6 +136,11 @@ <property name="homogeneous">False</property> </packing> </child> + <child internal-child="accessible"> + <object class="AtkObject" id="horizontalalignment-atkobject"> + <property name="AtkObject::accessible-role">grouping</property> + </object> + </child> </object> <packing> <property name="expand">False</property> @@ -174,6 +179,11 @@ <property name="homogeneous">False</property> </packing> </child> + <child internal-child="accessible"> + <object class="AtkObject" id="writedirection-atkobject"> + <property name="AtkObject::accessible-role">grouping</property> + </object> + </child> </object> <packing> <property name="expand">False</property> @@ -230,6 +240,11 @@ <property name="position">2</property> </packing> </child> + <child internal-child="accessible"> + <object class="AtkObject" id="box1-atkobject"> + <property name="AtkObject::accessible-role">grouping</property> + </object> + </child> </object> <packing> <property name="left-attach">0</property> @@ -289,6 +304,11 @@ <property name="homogeneous">False</property> </packing> </child> + <child internal-child="accessible"> + <object class="AtkObject" id="paraspacing-atkobject"> + <property name="AtkObject::accessible-role">grouping</property> + </object> + </child> </object> <packing> <property name="expand">False</property> @@ -493,6 +513,11 @@ <property name="homogeneous">False</property> </packing> </child> + <child internal-child="accessible"> + <object class="AtkObject" id="indent-atkobject"> + <property name="AtkObject::accessible-role">grouping</property> + </object> + </child> </object> <packing> <property name="expand">False</property> @@ -874,6 +899,11 @@ <property name="homogeneous">False</property> </packing> </child> + <child internal-child="accessible"> + <object class="AtkObject" id="numberbullet-atkobject"> + <property name="AtkObject::accessible-role">grouping</property> + </object> + </child> </object> <packing> <property name="left-attach">0</property> @@ -1052,6 +1082,11 @@ <property name="position">0</property> </packing> </child> + <child internal-child="accessible"> + <object class="AtkObject" id="box2-atkobject"> + <property name="AtkObject::accessible-role">grouping</property> + </object> + </child> </object> <packing> <property name="expand">False</property> diff --git a/vcl/source/window/window.cxx b/vcl/source/window/window.cxx index 46c219feb4dd..e009e5ae6b42 100644 --- a/vcl/source/window/window.cxx +++ b/vcl/source/window/window.cxx @@ -3418,6 +3418,8 @@ void Window::DumpAsPropertyTree(tools::JsonWriter& rJsonWriter) sal_uInt16 nAccessibleRole = GetAccessibleRole(); if (nAccessibleRole == css::accessibility::AccessibleRole::PAGE_TAB_LIST) sAccRole = "tablist"; + else if (nAccessibleRole == css::accessibility::AccessibleRole::GROUP_BOX) + sAccRole = "group"; vcl::Window* pAccLabelFor = getAccessibleRelationLabelFor(); if (pAccLabelFor)
