From 2a28ebeef5ea3e2b01d836a7233d2316b765bf38 Mon Sep 17 00:00:00 2001 From: Mike Kaganski Date: Wed, 1 Jun 2022 11:18:26 +0300 Subject: Accessibility for IconView Change-Id: I65ca9d43f70a50e2e95aabfc3b8ba1b15f9ff8be Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135226 Tested-by: Jenkins Reviewed-by: Mike Kaganski --- include/vcl/accessiblefactory.hxx | 5 +++++ include/vcl/toolkit/treelistbox.hxx | 2 ++ include/vcl/weld.hxx | 5 ++++- 3 files changed, 11 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/vcl/accessiblefactory.hxx b/include/vcl/accessiblefactory.hxx index f0482392fb65..a13e4dabc135 100644 --- a/include/vcl/accessiblefactory.hxx +++ b/include/vcl/accessiblefactory.hxx @@ -82,6 +82,11 @@ namespace vcl SvTreeListBox& _rListBox, const css::uno::Reference< css::accessibility::XAccessible >& _xParent ) const = 0; + virtual css::uno::Reference< css::accessibility::XAccessible > + createAccessibleIconView( + SvTreeListBox& _rListBox, + const css::uno::Reference< css::accessibility::XAccessible >& _xParent + ) const = 0; virtual vcl::IAccessibleBrowseBox* createAccessibleBrowseBox( const css::uno::Reference< css::accessibility::XAccessible >& _rxParent, diff --git a/include/vcl/toolkit/treelistbox.hxx b/include/vcl/toolkit/treelistbox.hxx index 7e21dfda21e7..216ffd55d83c 100644 --- a/include/vcl/toolkit/treelistbox.hxx +++ b/include/vcl/toolkit/treelistbox.hxx @@ -456,6 +456,8 @@ public: /** Fills the StateSet of one entry. */ void FillAccessibleEntryStateSet( SvTreeListEntry* pEntry, ::utl::AccessibleStateSetHelper& rStateSet ) const; + virtual OUString GetEntryAccessibleDescription(SvTreeListEntry* pEntry) const; + /** Calculate and return the bounding rectangle of an entry. @param pEntry The entry. diff --git a/include/vcl/weld.hxx b/include/vcl/weld.hxx index 135378ec540f..83e68002ce6c 100644 --- a/include/vcl/weld.hxx +++ b/include/vcl/weld.hxx @@ -1348,7 +1348,10 @@ protected: void signal_selection_changed() { m_aSelectionChangeHdl.Call(*this); } bool signal_item_activated() { return m_aItemActivatedHdl.Call(*this); } - OUString signal_query_tooltip(const TreeIter& rIter) { return m_aQueryTooltipHdl.Call(rIter); } + OUString signal_query_tooltip(const TreeIter& rIter) const + { + return m_aQueryTooltipHdl.Call(rIter); + } public: virtual int get_item_width() const = 0; -- cgit