summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorMichael Weghorn <m.weghorn@posteo.de>2023-12-18 08:48:12 +0100
committerMichael Weghorn <m.weghorn@posteo.de>2023-12-19 09:30:15 +0100
commit8bc6119812223643b50dcd22c504f9f853976352 (patch)
tree7b23b089f91755750abf0c149c87cf516f6fa938 /sfx2
parent36123d802af0e115628d38fe0e0a30d65885e9fb (diff)
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 <m.weghorn@posteo.de> 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 <m.weghorn@posteo.de>
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/view/viewsh.cxx6
1 files changed, 3 insertions, 3 deletions
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)
{