Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
a5c7ed21
Kaydet (Commit)
a5c7ed21
authored
Ara 03, 2013
tarafından
Michael Stahl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
winaccessibility: use SAL_N_ELEMENTS
Change-Id: I479117e0794375f1ec0c96b78db22b3569b456ec
üst
9d71c9a4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
7 deletions
+4
-7
AccActionBase.cxx
winaccessibility/source/UAccCOM/AccActionBase.cxx
+2
-1
MAccessible.cxx
winaccessibility/source/UAccCOM/MAccessible.cxx
+1
-1
acccommon.h
winaccessibility/source/UAccCOM/acccommon.h
+0
-4
AccObject.cxx
winaccessibility/source/service/AccObject.cxx
+1
-1
No files found.
winaccessibility/source/UAccCOM/AccActionBase.cxx
Dosyayı görüntüle @
a5c7ed21
...
@@ -334,6 +334,7 @@ OLECHAR* CAccActionBase::getOLECHARFromKeyCode(long key)
...
@@ -334,6 +334,7 @@ OLECHAR* CAccActionBase::getOLECHARFromKeyCode(long key)
}
}
map
[]
=
map
[]
=
{
{
#define CODEENTRY(key) {KEYCODE_##key, L#key}
{
MODIFIER_SHIFT
,
L"SHIFT"
},
{
MODIFIER_SHIFT
,
L"SHIFT"
},
{
MODIFIER_CTRL
,
L"CTRL"
},
{
MODIFIER_CTRL
,
L"CTRL"
},
{
MODIFIER_ALT
,
L"ALT"
},
{
MODIFIER_ALT
,
L"ALT"
},
...
@@ -386,7 +387,7 @@ OLECHAR* CAccActionBase::getOLECHARFromKeyCode(long key)
...
@@ -386,7 +387,7 @@ OLECHAR* CAccActionBase::getOLECHARFromKeyCode(long key)
{
KEYCODE_CONTEXTMENU
,
L"CONTEXTMENU"
},
{
KEYCODE_CONTEXTMENU
,
L"CONTEXTMENU"
},
{
KEYCODE_HELP
,
L"HELP"
},
{
KEYCODE_HELP
,
L"HELP"
},
};
};
static
long
nCount
=
countof
(
map
);
static
long
nCount
=
SAL_N_ELEMENTS
(
map
);
long
min
=
0
;
long
min
=
0
;
long
max
=
nCount
-
1
;
long
max
=
nCount
-
1
;
...
...
winaccessibility/source/UAccCOM/MAccessible.cxx
Dosyayı görüntüle @
a5c7ed21
...
@@ -3098,7 +3098,7 @@ STDMETHODIMP CMAccessible:: get_states(AccessibleStates __RPC_FAR *states )
...
@@ -3098,7 +3098,7 @@ STDMETHODIMP CMAccessible:: get_states(AccessibleStates __RPC_FAR *states )
*
states
=
0x0
;
*
states
=
0x0
;
for
(
int
i
=
0
;
i
<
count
;
i
++
)
for
(
int
i
=
0
;
i
<
count
;
i
++
)
{
{
for
(
int
j
=
0
;
j
<
sizeof
(
UNO_STATES
)
/
sizeof
(
UNO_STATES
[
0
]
);
j
++
)
for
(
int
j
=
0
;
j
<
SAL_N_ELEMENTS
(
UNO_STATES
);
j
++
)
{
{
if
(
pStates
[
i
]
==
UNO_STATES
[
j
]
)
if
(
pStates
[
i
]
==
UNO_STATES
[
j
]
)
{
{
...
...
winaccessibility/source/UAccCOM/acccommon.h
Dosyayı görüntüle @
a5c7ed21
...
@@ -63,10 +63,6 @@ inline BOOL ImplIsEqualGUID(REFGUID rguid1, REFGUID rguid2)
...
@@ -63,10 +63,6 @@ inline BOOL ImplIsEqualGUID(REFGUID rguid1, REFGUID rguid2)
#define InlineIsEqualGUID ImplIsEqualGUID
#define InlineIsEqualGUID ImplIsEqualGUID
//End
//End
//for AccAction.cxx
#define CODEENTRY(key) \
{KEYCODE_##key, L#key}
#define countof(x) (sizeof(x)/sizeof(x[0]))
#define SELECT L"Select"
#define SELECT L"Select"
#define PRESS L"Press"
#define PRESS L"Press"
...
...
winaccessibility/source/service/AccObject.cxx
Dosyayı görüntüle @
a5c7ed21
...
@@ -792,7 +792,7 @@ void AccObject::UpdateRole()
...
@@ -792,7 +792,7 @@ void AccObject::UpdateRole()
XAccessibleContext
*
pContext
=
m_xAccContextRef
.
get
();
XAccessibleContext
*
pContext
=
m_xAccContextRef
.
get
();
m_pIMAcc
->
Put_XAccRole
(
ROLE_SYSTEM_WINDOW
);
m_pIMAcc
->
Put_XAccRole
(
ROLE_SYSTEM_WINDOW
);
short
iRoleIndex
=
pContext
->
getAccessibleRole
();
short
iRoleIndex
=
pContext
->
getAccessibleRole
();
if
((
0
<=
iRoleIndex
)
&&
(
iRoleIndex
<=
(
sizeof
(
ROLE_TABLE
)
/
(
sizeof
(
short
)
*
2
)
)))
if
((
0
<=
iRoleIndex
)
&&
(
iRoleIndex
<
SAL_N_ELEMENTS
(
ROLE_TABLE
)))
{
{
short
iIA2Role
=
ROLE_TABLE
[
iRoleIndex
][
1
]
;
short
iIA2Role
=
ROLE_TABLE
[
iRoleIndex
][
1
]
;
m_pIMAcc
->
Put_XAccRole
(
iIA2Role
);
m_pIMAcc
->
Put_XAccRole
(
iIA2Role
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment