summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNorbert Thiebaud <nthiebaud@gmail.com>2011-10-05 13:49:49 -0500
committerNorbert Thiebaud <nthiebaud@gmail.com>2011-10-05 18:51:36 -0500
commit7041eb2dd5257eff945fab64e57677ec07fc0029 (patch)
treeadd88a46ac68898e4c91b1c6dbf9baf4946e6dd0
parent18f9397f2411e4144f2beb5bc10bda84b10bd191 (diff)
accfixes2: accessible fix check box returns
it returns depending on current state, action check or uncheck, instead of click
-rw-r--r--accessibility/inc/accessibility/helper/accessiblestrings.hrc2
-rw-r--r--accessibility/source/helper/accessiblestrings.src9
-rw-r--r--accessibility/source/standard/vclxaccessiblecheckbox.cxx6
3 files changed, 16 insertions, 1 deletions
diff --git a/accessibility/inc/accessibility/helper/accessiblestrings.hrc b/accessibility/inc/accessibility/helper/accessiblestrings.hrc
index 1f936e678b98..bdc3c02d0660 100644
--- a/accessibility/inc/accessibility/helper/accessiblestrings.hrc
+++ b/accessibility/inc/accessibility/helper/accessiblestrings.hrc
@@ -43,6 +43,8 @@
#define RID_STR_ACC_ACTION_DECLINE ( RID_TK_ACC_START + 4 )
#define RID_STR_ACC_ACTION_INCBLOCK ( RID_TK_ACC_START + 5 )
#define RID_STR_ACC_ACTION_DECBLOCK ( RID_TK_ACC_START + 6 )
+#define RID_STR_ACC_ACTION_CHECK ( RID_TK_ACC_START + 7 )
+#define RID_STR_ACC_ACTION_UNCHECK ( RID_TK_ACC_START + 8 )
#define RID_STR_ACC_NAME_BROWSEBUTTON ( RID_TK_ACC_START + 100 )
diff --git a/accessibility/source/helper/accessiblestrings.src b/accessibility/source/helper/accessiblestrings.src
index ee7f77f9b502..e24d43a17861 100644
--- a/accessibility/source/helper/accessiblestrings.src
+++ b/accessibility/source/helper/accessiblestrings.src
@@ -65,6 +65,15 @@ String RID_STR_ACC_ACTION_DECBLOCK
Text = "decrementBlock";
};
+String RID_STR_ACC_ACTION_CHECK
+{
+ Text [ en-US ] = "Check";
+};
+String RID_STR_ACC_ACTION_UNCHECK
+{
+ Text [ en-US ] = "Uncheck";
+};
+
String RID_STR_ACC_NAME_BROWSEBUTTON
{
Text [ en-US ] = "Browse";
diff --git a/accessibility/source/standard/vclxaccessiblecheckbox.cxx b/accessibility/source/standard/vclxaccessiblecheckbox.cxx
index d578077e727a..2d7328bb5f8e 100644
--- a/accessibility/source/standard/vclxaccessiblecheckbox.cxx
+++ b/accessibility/source/standard/vclxaccessiblecheckbox.cxx
@@ -243,7 +243,11 @@ sal_Bool VCLXAccessibleCheckBox::doAccessibleAction ( sal_Int32 nIndex ) throw (
if ( nIndex < 0 || nIndex >= getAccessibleActionCount() )
throw IndexOutOfBoundsException();
- return ::rtl::OUString( TK_RES_STRING( RID_STR_ACC_ACTION_CLICK ) );
+ if(IsChecked())
+ return ::rtl::OUString( TK_RES_STRING( RID_STR_ACC_ACTION_UNCHECK ) );
+ else
+ return ::rtl::OUString( TK_RES_STRING( RID_STR_ACC_ACTION_CHECK ) );
+
}
// -----------------------------------------------------------------------------