diff options
author | Michael Weghorn <m.weghorn@posteo.de> | 2025-02-03 13:58:28 +0100 |
---|---|---|
committer | Michael Weghorn <m.weghorn@posteo.de> | 2025-02-04 00:33:51 +0100 |
commit | 8b221ecd50d2bd7ce84874333c06068e45c774cd (patch) | |
tree | 72792e2fe2898e5b32031d54d83c3fe0c23fbc44 /sfx2 | |
parent | 6f441eba260db39df386c46c5ee7492e79e25c8c (diff) |
tdf#165002 sidebar a11y: Set a11y names for "Styles" toolbar items in .ui
Similar to how
Change-Id: I8c30b6b67366d1839acb725bc4af012c276a5ee2
Author: Michael Weghorn <m.weghorn@posteo.de>
Date: Mon Feb 3 08:41:49 2025 +0100
tdf#165002 sidebar a11y: Set a11y names for styles tool buttons
For the toolbar buttons to switch between the different
styles categories ("Paragraph Styles", "Character Styles",...)
in the "Styles" sidebar deck, set the tooltip text also as
the accessible name.
This makes the Orca screen reader with announce them
(e.g. "Paragraph styles, toggle button, pressed") when using
the gtk3 VCL plugin instead of just saying "toggle button", which
doesn't give the screen reader any clue what those buttons are for.
did for those toolbar buttons whose tooltips etc. are set in
C++ code, also set a11y names for those that are handled in
the .ui file and set the text used for the tooltip also
as the accessible name, so Orca can announce those as well.
This makes Orca also announce the items in the right-hand
side toolbar of the "Styles" sidebar deck when using the
gtk3 VCL plugin.
Change-Id: Iaf68ec56049feceaf27be5f62cf631a81bf0f50e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/181039
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Tested-by: Jenkins
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/uiconfig/ui/templatepanel.ui | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/sfx2/uiconfig/ui/templatepanel.ui b/sfx2/uiconfig/ui/templatepanel.ui index 60b8b574ca04..541cf8bc5f91 100644 --- a/sfx2/uiconfig/ui/templatepanel.ui +++ b/sfx2/uiconfig/ui/templatepanel.ui @@ -133,6 +133,7 @@ <property name="icon-name">res/sc05554.png</property> <child internal-child="accessible"> <object class="AtkObject" id="watercan-atkobject"> + <property name="AtkObject::accessible-name" translatable="yes" context="templatepanel|accessible_name|watercan">Fill Format Mode</property> <property name="AtkObject::accessible-description" translatable="yes" context="templatepanel|extended_tip|watercan">Applies the selected style to the object or text that you select in the document. </property> </object> </child> @@ -148,6 +149,11 @@ <property name="tooltip-text" translatable="yes" context="templatepanel|STR_STYLE_NEW_STYLE_FROM_SELECTION">New Style from Selection</property> <property name="use-underline">True</property> <property name="icon-name">res/sc05555.png</property> + <child internal-child="accessible"> + <object class="AtkObject" id="new-atkobject"> + <property name="AtkObject::accessible-name" translatable="yes" context="templatepanel|accessible_name|new">New Style from Selection</property> + </object> + </child> </object> <packing> <property name="expand">False</property> @@ -160,6 +166,11 @@ <property name="tooltip-text" translatable="yes" context="templatepanel|STR_STYLE_NEW_STYLE_ACTION">Styles actions</property> <property name="use-underline">True</property> <property name="icon-name">res/sc05555.png</property> + <child internal-child="accessible"> + <object class="AtkObject" id="newmenu-atkobject"> + <property name="AtkObject::accessible-name" translatable="yes" context="templatepanel|accessible_name|newmenu">Styles actions</property> + </object> + </child> </object> <packing> <property name="expand">False</property> @@ -172,6 +183,11 @@ <property name="tooltip-text" translatable="yes" context="templatepanel|STR_STYLE_UPDATE_STYLE">Update Style</property> <property name="use-underline">True</property> <property name="icon-name">res/sc05556.png</property> + <child internal-child="accessible"> + <object class="AtkObject" id="update-atkobject"> + <property name="AtkObject::accessible-name" translatable="yes" context="templatepanel|accessible_name|update">Update Style</property> + </object> + </child> </object> <packing> <property name="expand">False</property> |