diff options
author | Michael Weghorn <m.weghorn@posteo.de> | 2024-06-21 08:44:58 +0200 |
---|---|---|
committer | Michael Weghorn <m.weghorn@posteo.de> | 2024-06-21 11:17:17 +0200 |
commit | ad3b33d01baaef1f1a950cd2c54d9649f0383446 (patch) | |
tree | 8d44d7cedef9d5e3b411006a742fea834046cc39 /include | |
parent | 0f165b7f2f03d806eb14ba7529223d31e30674a8 (diff) |
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 <m.weghorn@posteo.de>
Diffstat (limited to 'include')
-rw-r--r-- | include/vcl/weld.hxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/vcl/weld.hxx b/include/vcl/weld.hxx index c3a688d84be0..427c0f869c05 100644 --- a/include/vcl/weld.hxx +++ b/include/vcl/weld.hxx @@ -2538,6 +2538,8 @@ public: const css::uno::Reference<css::graphic::XGraphic>& rIcon) = 0; virtual void set_item_tooltip_text(int nIndex, const OUString& rTip) = 0; + virtual void set_item_accessible_name(int nIndex, const OUString& rName) = 0; + virtual void set_item_accessible_name(const OUString& rIdent, const OUString& rName) = 0; virtual vcl::ImageType get_icon_size() const = 0; virtual void set_icon_size(vcl::ImageType eType) = 0; |