Kaydet (Commit) 3b778890 authored tarafından Michael Meeks's avatar Michael Meeks

winaccessibility: rename unhelpful string defines.

Change-Id: Ib73ddecb9fd49a2e1a5bb690a0f4bbbc77d9047a
üst a339c949
......@@ -68,12 +68,12 @@ void GetDfActionByUNORole(XAccessibleContext* pRContext, BSTR* pRet)
switch(Role)
{
case PUSH_BUTTON:
*pRet = ::SysAllocString(PRESS);
*pRet = ::SysAllocString(PRESS_STR);
break;
case RADIO_BUTTON:
case MENU_ITEM:
case LIST_ITEM:
*pRet = ::SysAllocString(SELECT);
*pRet = ::SysAllocString(SELECT_STR);
break;
case CHECK_BOX:
{
......@@ -85,13 +85,13 @@ void GetDfActionByUNORole(XAccessibleContext* pRContext, BSTR* pRet)
Sequence<short> pStates = pRState->getStates();
int count = pStates.getLength();
*pRet = ::SysAllocString(CHECK);
*pRet = ::SysAllocString(CHECK_STR);
for( int iIndex = 0;iIndex < count;iIndex++ )
{
if( pStates[iIndex] == AccessibleStateType::CHECKED )
{
SAFE_SYSFREESTRING(*pRet);
*pRet = ::SysAllocString(UNCHECK);
*pRet = ::SysAllocString(UNCHECK_STR);
break;
}
}
......
......@@ -53,10 +53,10 @@ enum DM_NIR {
};
#define SELECT L"Select"
#define PRESS L"Press"
#define UNCHECK L"UnCheck"
#define CHECK L"Check"
#define SELECT_STR L"Select"
#define PRESS_STR L"Press"
#define UNCHECK_STR L"UnCheck"
#define CHECK_STR L"Check"
//End
static DWORD GetMSAAStateFromUNO(short xState);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment