summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorMichael Weghorn <m.weghorn@posteo.de>2023-12-18 08:48:12 +0100
committerXisco Fauli <xiscofauli@libreoffice.org>2023-12-20 09:27:27 +0100
commitf098ba6579fb1992c0db86b19b22eb8532ab1ba6 (patch)
tree4b57b31df524dba674e9c04b21004443ded0c666 /sfx2
parentd125fc2a2178b100253ea089b7ad30acafccfb57 (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> Signed-off-by: Xisco Fauli <xiscofauli@libreoffice.org> Reviewed-on: https://gerrit.libreoffice.org/c/core/+/161036
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)
{