From ad3b33d01baaef1f1a950cd2c54d9649f0383446 Mon Sep 17 00:00:00 2001 From: Michael Weghorn Date: Fri, 21 Jun 2024 08:44:58 +0200 Subject: tdf#161648 vcl a11y: Add weld::Toolbar::set_item_accessible_name Add API to set the accessible name of toolbar items and implement it for the VCL, gtk3 and gtk4 implementations. This will be used in an upcoming commit to set a11y names for the border items in Calc's sidebar. Change-Id: I958390d8736da8f1281f91586cacbefb5975e229 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169320 Tested-by: Jenkins Reviewed-by: Michael Weghorn --- vcl/inc/salvtables.hxx | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'vcl/inc/salvtables.hxx') diff --git a/vcl/inc/salvtables.hxx b/vcl/inc/salvtables.hxx index 984baf4e61b8..47c692793001 100644 --- a/vcl/inc/salvtables.hxx +++ b/vcl/inc/salvtables.hxx @@ -1426,6 +1426,10 @@ public: virtual void set_item_tooltip_text(const OUString& rIdent, const OUString& rTip) override; + virtual void set_item_accessible_name(int nIndex, const OUString& rName) override; + + virtual void set_item_accessible_name(const OUString& rIdent, const OUString& rName) override; + virtual OUString get_item_tooltip_text(const OUString& rIdent) const override; virtual vcl::ImageType get_icon_size() const override; -- cgit