From 8bc6119812223643b50dcd22c504f9f853976352 Mon Sep 17 00:00:00 2001 From: Michael Weghorn Date: Mon, 18 Dec 2023 08:48:12 +0100 Subject: tdf#123864 a11y: Handle new CHECKABLE state in misc places Add reporting/handling of the CHECKABLE a11y state added in commit d6c6472bbe1c90b733a4d69c4c8528f4de3750d3 Author: Michael Weghorn Date: Mon Nov 13 15:53:44 2023 +0100 tdf#123864 a11y: Add new AccessibleStateType::CHECKABLE in various places where it seems pretty straightforward. `VCLXAccessibleMenuItem` is a bit more complex and will be handled separately. Change-Id: I212b8439609d34410413959973163aa7d809cbf1 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160901 Tested-by: Jenkins Reviewed-by: Michael Weghorn --- sfx2/source/view/viewsh.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sfx2') diff --git a/sfx2/source/view/viewsh.cxx b/sfx2/source/view/viewsh.cxx index 885b6877761a..93c18a16e2e2 100644 --- a/sfx2/source/view/viewsh.cxx +++ b/sfx2/source/view/viewsh.cxx @@ -433,21 +433,21 @@ OUString truncateText(OUString& sText, sal_Int32 nNewLength) std::string stateSetToString(::sal_Int64 stateSet) { - static const std::string states[34] = { + static const std::string states[35] = { "ACTIVE", "ARMED", "BUSY", "CHECKED", "DEFUNC", "EDITABLE", "ENABLED", "EXPANDABLE", "EXPANDED", "FOCUSABLE", "FOCUSED", "HORIZONTAL", "ICONIFIED", "INDETERMINATE", "MANAGES_DESCENDANTS", "MODAL", "MULTI_LINE", "MULTI_SELECTABLE", "OPAQUE", "PRESSED", "RESIZABLE", "SELECTABLE", "SELECTED", "SENSITIVE", "SHOWING", "SINGLE_LINE", "STALE", "TRANSIENT", "VERTICAL", "VISIBLE", - "MOVEABLE", "DEFAULT", "OFFSCREEN", "COLLAPSE" + "MOVEABLE", "DEFAULT", "OFFSCREEN", "COLLAPSE", "CHECKABLE" }; if (stateSet == 0) return "INVALID"; ::sal_Int64 state = 1; std::string s; - for (int i = 0; i < 34; ++i) + for (int i = 0; i < 35; ++i) { if (stateSet & state) { -- cgit