summaryrefslogtreecommitdiff
path: root/accessibility/source
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2017-04-30 14:58:50 +0100
committerCaolán McNamara <caolanm@redhat.com>2017-04-30 15:18:10 +0100
commit59676b310bc0eba154f323f5d32ed697fcbb227a (patch)
treefc38ce10f44b21031902862d3ab2da44966903c9 /accessibility/source
parent00052c1c4f7285a58a8854d34a9b6b3fd2d5991a (diff)
untranslated strings are just strings
Change-Id: Ic7247a6d0e702572ca304bb048bfabfafcbf7505
Diffstat (limited to 'accessibility/source')
-rw-r--r--accessibility/source/helper/accessiblestrings.src35
-rw-r--r--accessibility/source/standard/vclxaccessiblebox.cxx3
-rw-r--r--accessibility/source/standard/vclxaccessiblebutton.cxx3
-rw-r--r--accessibility/source/standard/vclxaccessiblemenuitem.cxx3
-rw-r--r--accessibility/source/standard/vclxaccessibleradiobutton.cxx6
-rw-r--r--accessibility/source/standard/vclxaccessiblescrollbar.cxx11
-rw-r--r--accessibility/source/standard/vclxaccessibletoolboxitem.cxx3
7 files changed, 16 insertions, 48 deletions
diff --git a/accessibility/source/helper/accessiblestrings.src b/accessibility/source/helper/accessiblestrings.src
index 82806565d8b7..127c336ff1b8 100644
--- a/accessibility/source/helper/accessiblestrings.src
+++ b/accessibility/source/helper/accessiblestrings.src
@@ -19,41 +19,6 @@
#include <helper/accessiblestrings.hrc>
-String RID_STR_ACC_ACTION_CLICK
-{
- Text = "press";
-};
-
-String RID_STR_ACC_ACTION_TOGGLEPOPUP
-{
- Text = "togglePopup";
-};
-
-String RID_STR_ACC_ACTION_SELECT
-{
- Text = "select";
-};
-
-String RID_STR_ACC_ACTION_INCLINE
-{
- Text = "incrementLine";
-};
-
-String RID_STR_ACC_ACTION_DECLINE
-{
- Text = "decrementLine";
-};
-
-String RID_STR_ACC_ACTION_INCBLOCK
-{
- Text = "incrementBlock";
-};
-
-String RID_STR_ACC_ACTION_DECBLOCK
-{
- Text = "decrementBlock";
-};
-
String RID_STR_ACC_NAME_BROWSEBUTTON
{
Text [ en-US ] = "Browse";
diff --git a/accessibility/source/standard/vclxaccessiblebox.cxx b/accessibility/source/standard/vclxaccessiblebox.cxx
index 32511a70eb81..f5bc0d5659d4 100644
--- a/accessibility/source/standard/vclxaccessiblebox.cxx
+++ b/accessibility/source/standard/vclxaccessiblebox.cxx
@@ -33,6 +33,7 @@
#include <vcl/lstbox.hxx>
#include <helper/accresmgr.hxx>
#include <helper/accessiblestrings.hrc>
+#include "strings.hxx"
using namespace ::com::sun::star;
using namespace ::com::sun::star::uno;
@@ -422,7 +423,7 @@ OUString SAL_CALL VCLXAccessibleBox::getAccessibleActionDescription (sal_Int32 n
throw css::lang::IndexOutOfBoundsException();
if (m_bIsDropDownBox)
- return TK_RES_STRING(RID_STR_ACC_ACTION_TOGGLEPOPUP);
+ return OUString(RID_STR_ACC_ACTION_TOGGLEPOPUP);
return OUString();
}
diff --git a/accessibility/source/standard/vclxaccessiblebutton.cxx b/accessibility/source/standard/vclxaccessiblebutton.cxx
index f644262a77ba..5a16d8e50be6 100644
--- a/accessibility/source/standard/vclxaccessiblebutton.cxx
+++ b/accessibility/source/standard/vclxaccessiblebutton.cxx
@@ -29,6 +29,7 @@
#include <com/sun/star/lang/IndexOutOfBoundsException.hpp>
#include <cppuhelper/typeprovider.hxx>
#include <comphelper/sequence.hxx>
+#include "strings.hxx"
#include <vcl/button.hxx>
@@ -204,7 +205,7 @@ OUString VCLXAccessibleButton::getAccessibleActionDescription ( sal_Int32 nIndex
if ( nIndex < 0 || nIndex >= getAccessibleActionCount() )
throw IndexOutOfBoundsException();
- return OUString( TK_RES_STRING( RID_STR_ACC_ACTION_CLICK ) );
+ return OUString(RID_STR_ACC_ACTION_CLICK);
}
diff --git a/accessibility/source/standard/vclxaccessiblemenuitem.cxx b/accessibility/source/standard/vclxaccessiblemenuitem.cxx
index 7436716dedf8..9db5a5357b00 100644
--- a/accessibility/source/standard/vclxaccessiblemenuitem.cxx
+++ b/accessibility/source/standard/vclxaccessiblemenuitem.cxx
@@ -37,6 +37,7 @@
#include <vcl/menu.hxx>
#include <vcl/unohelp2.hxx>
#include <vcl/settings.hxx>
+#include "strings.hxx"
using namespace ::com::sun::star::accessibility;
using namespace ::com::sun::star::uno;
@@ -424,7 +425,7 @@ OUString VCLXAccessibleMenuItem::getAccessibleActionDescription ( sal_Int32 nInd
if ( nIndex < 0 || nIndex >= getAccessibleActionCount() )
throw IndexOutOfBoundsException();
- return TK_RES_STRING( RID_STR_ACC_ACTION_SELECT );
+ return OUString(RID_STR_ACC_ACTION_SELECT);
}
diff --git a/accessibility/source/standard/vclxaccessibleradiobutton.cxx b/accessibility/source/standard/vclxaccessibleradiobutton.cxx
index 2064365cd834..576f03fb75df 100644
--- a/accessibility/source/standard/vclxaccessibleradiobutton.cxx
+++ b/accessibility/source/standard/vclxaccessibleradiobutton.cxx
@@ -35,7 +35,7 @@
#include <comphelper/sequence.hxx>
#include <vcl/window.hxx>
#include <vcl/button.hxx>
-
+#include "strings.hxx"
using namespace ::com::sun::star;
using namespace ::com::sun::star::uno;
@@ -172,7 +172,6 @@ sal_Bool VCLXAccessibleRadioButton::doAccessibleAction ( sal_Int32 nIndex )
return true;
}
-
OUString VCLXAccessibleRadioButton::getAccessibleActionDescription ( sal_Int32 nIndex )
{
OExternalLockGuard aGuard( this );
@@ -180,10 +179,9 @@ OUString VCLXAccessibleRadioButton::getAccessibleActionDescription ( sal_Int32 n
if ( nIndex < 0 || nIndex >= getAccessibleActionCount() )
throw IndexOutOfBoundsException();
- return TK_RES_STRING( RID_STR_ACC_ACTION_SELECT );
+ return OUString(RID_STR_ACC_ACTION_SELECT);
}
-
Reference< XAccessibleKeyBinding > VCLXAccessibleRadioButton::getAccessibleActionKeyBinding( sal_Int32 nIndex )
{
OExternalLockGuard aGuard( this );
diff --git a/accessibility/source/standard/vclxaccessiblescrollbar.cxx b/accessibility/source/standard/vclxaccessiblescrollbar.cxx
index cc8745c61c0e..9de2f42e1477 100644
--- a/accessibility/source/standard/vclxaccessiblescrollbar.cxx
+++ b/accessibility/source/standard/vclxaccessiblescrollbar.cxx
@@ -31,6 +31,7 @@
#include <cppuhelper/typeprovider.hxx>
#include <comphelper/sequence.hxx>
#include <vcl/scrbar.hxx>
+#include "strings.hxx"
using namespace ::com::sun::star;
using namespace ::com::sun::star::uno;
@@ -164,11 +165,11 @@ OUString VCLXAccessibleScrollBar::getAccessibleActionDescription ( sal_Int32 nIn
switch ( nIndex )
{
- case 0: sDescription = OUString( TK_RES_STRING( RID_STR_ACC_ACTION_DECLINE ) ); break;
- case 1: sDescription = OUString( TK_RES_STRING( RID_STR_ACC_ACTION_INCLINE ) ); break;
- case 2: sDescription = OUString( TK_RES_STRING( RID_STR_ACC_ACTION_DECBLOCK ) ); break;
- case 3: sDescription = OUString( TK_RES_STRING( RID_STR_ACC_ACTION_INCBLOCK ) ); break;
- default: break;
+ case 0: sDescription = OUString(RID_STR_ACC_ACTION_DECLINE); break;
+ case 1: sDescription = OUString(RID_STR_ACC_ACTION_INCLINE); break;
+ case 2: sDescription = OUString(RID_STR_ACC_ACTION_DECBLOCK); break;
+ case 3: sDescription = OUString(RID_STR_ACC_ACTION_INCBLOCK); break;
+ default: break;
}
return sDescription;
diff --git a/accessibility/source/standard/vclxaccessibletoolboxitem.cxx b/accessibility/source/standard/vclxaccessibletoolboxitem.cxx
index 4d836e03e69e..a38b9fe59f09 100644
--- a/accessibility/source/standard/vclxaccessibletoolboxitem.cxx
+++ b/accessibility/source/standard/vclxaccessibletoolboxitem.cxx
@@ -43,6 +43,7 @@
#include <unotools/accessiblerelationsethelper.hxx>
#include <cppuhelper/typeprovider.hxx>
#include <comphelper/sequence.hxx>
+#include "strings.hxx"
#include <com/sun/star/accessibility/XAccessibleSelection.hpp>
@@ -644,7 +645,7 @@ OUString VCLXAccessibleToolBoxItem::getAccessibleActionDescription ( sal_Int32 n
if ( nIndex < 0 || nIndex >= getAccessibleActionCount() )
throw IndexOutOfBoundsException();
- return OUString( TK_RES_STRING( RID_STR_ACC_ACTION_CLICK ) );
+ return OUString(RID_STR_ACC_ACTION_CLICK);
}
Reference< XAccessibleKeyBinding > VCLXAccessibleToolBoxItem::getAccessibleActionKeyBinding( sal_Int32 nIndex )