Implemented get_accDefaultAction().
This commit is contained in:
parent
6729c96c1d
commit
a33c8701d1
|
@ -377,11 +377,21 @@ static HRESULT STDMETHODCALLTYPE tableAccget_accSelection(IAccessible *this, VAR
|
||||||
|
|
||||||
static HRESULT STDMETHODCALLTYPE tableAccget_accDefaultAction(IAccessible *this, VARIANT varChild, BSTR *pszDefaultAction)
|
static HRESULT STDMETHODCALLTYPE tableAccget_accDefaultAction(IAccessible *this, VARIANT varChild, BSTR *pszDefaultAction)
|
||||||
{
|
{
|
||||||
if (TA->t == NULL || TA->std == NULL) {
|
HRESULT hr;
|
||||||
// TODO set values on error
|
tableAccWhat what;
|
||||||
|
|
||||||
|
if (pszDefaultAction == NULL)
|
||||||
|
return E_POINTER;
|
||||||
|
*pszDefaultAction = NULL;
|
||||||
|
if (TA->t == NULL || TA->std == NULL)
|
||||||
return RPC_E_DISCONNECTED;
|
return RPC_E_DISCONNECTED;
|
||||||
}
|
what = TA->what;
|
||||||
return IAccessible_get_accDefaultAction(TA->std, varChild, pszDefaultAction);
|
hr = normalizeWhat(TA, varChild, &what);
|
||||||
|
if (hr != S_OK)
|
||||||
|
return hr;
|
||||||
|
if (what.role == ROLE_SYSTEM_CELL)
|
||||||
|
; // TODO implement this for checkbox cells?
|
||||||
|
return DISP_E_MEMBERNOTFOUND;
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO should this method result in an event?
|
// TODO should this method result in an event?
|
||||||
|
|
Loading…
Reference in New Issue