sfx2/source/dialog/templdlg.cxx | 1 +
1 file changed, 1 insertion(+)
New commits:
commit 041bf4d58d99893088138a4c614d867718f1346a
Author: Michael Weghorn <[email protected]>
AuthorDate: Mon Feb 3 08:41:49 2025 +0100
Commit: Christian Lohmaier <[email protected]>
CommitDate: Tue Feb 4 16:41:56 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.
Change-Id: I8c30b6b67366d1839acb725bc4af012c276a5ee2
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/181037
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <[email protected]>
(cherry picked from commit 6f441eba260db39df386c46c5ee7492e79e25c8c)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/181079
Reviewed-by: Christian Lohmaier <[email protected]>
diff --git a/sfx2/source/dialog/templdlg.cxx b/sfx2/source/dialog/templdlg.cxx
index 6acd68b51675..751837954425 100644
--- a/sfx2/source/dialog/templdlg.cxx
+++ b/sfx2/source/dialog/templdlg.cxx
@@ -850,6 +850,7 @@ void SfxTemplateDialog_Impl::InsertFamilyItem(sal_uInt16
nId, const SfxStyleFami
m_xActionTbL->set_item_visible(sId, true);
m_xActionTbL->set_item_icon_name(sId, rItem.GetImage());
m_xActionTbL->set_item_tooltip_text(sId, rItem.GetText());
+ m_xActionTbL->set_item_accessible_name(sId, rItem.GetText());
m_xActionTbL->set_item_help_id(sId, sHelpId);
++m_nActionTbLVisible;
}