LibreOffice Module winaccessibility (master) 1
|
This class implements IMAccessible interface, which inherits from IAccessible2, and in turn inherits from IAccessible. More...
#include <MAccessible.h>
Public Member Functions | |
CMAccessible () | |
virtual | ~CMAccessible () |
STDMETHOD() | put_accValue (VARIANT varChild, BSTR szValue) override |
Set the accessible value of the current COM object self or its one child from UNO. More... | |
STDMETHOD() | put_accName (VARIANT varChild, BSTR szName) override |
No longer supported according to IAccessible doc. More... | |
STDMETHOD() | accDoDefaultAction (VARIANT varChild) override |
AT call this method to operate application. More... | |
STDMETHOD() | accHitTest (long xLeft, long yTop, VARIANT *pvarChild) override |
STDMETHOD() | accNavigate (long navDir, VARIANT varStart, VARIANT *pvarEndUpAt) override |
Returns the current focused child to AT. More... | |
STDMETHOD() | accLocation (long *pxLeft, long *pyTop, long *pcxWidth, long *pcyHeight, VARIANT varChild) override |
Returns the location of the current COM object self or its one child to AT. More... | |
STDMETHOD() | accSelect (long flagsSelect, VARIANT varChild) override |
accSelect method has many optional flags, needs to process comprehensively Mozilla and Microsoft do not implement SELFLAG_EXTENDSELECTION flag. More... | |
STDMETHOD() | get_accDefaultAction (VARIANT varChild, BSTR *pszDefaultAction) override |
This method is called when AT open some UI elements initially the UI element takes the default action defined here. More... | |
STDMETHOD() | get_accSelection (VARIANT *pvarChildren) override |
Returns the selection of the current COM object to AT. More... | |
STDMETHOD() | get_accFocus (VARIANT *pvarChild) override |
Returns the current focused child to AT. More... | |
STDMETHOD() | get_accKeyboardShortcut (VARIANT varChild, BSTR *pszKeyboardShortcut) override |
Returns the accessible keyboard shortcut of the current COM object self or its one child to AT. More... | |
STDMETHOD() | get_accHelpTopic (BSTR *pszHelpFile, VARIANT varChild, long *pidTopic) override |
Returns the accessible HelpTopic of the current COM object self or its one child to AT. More... | |
STDMETHOD() | get_accHelp (VARIANT varChild, BSTR *pszHelp) override |
Returns the accessible helpString of the current COM object self or its one child to AT. More... | |
STDMETHOD() | get_accState (VARIANT varChild, VARIANT *pvarState) override |
Returns the accessible state of the current COM object self or its one child to AT. More... | |
STDMETHOD() | get_accRole (VARIANT varChild, VARIANT *pvarRole) override |
Returns the accessible role of the current COM object self or its one child to AT. More... | |
STDMETHOD() | get_accDescription (VARIANT varChild, BSTR *pszDescription) override |
Returns the accessible description of the current COM object self or its one child to AT. More... | |
STDMETHOD() | get_accValue (VARIANT varChild, BSTR *pszValue) override |
Returns the accessible value of the current COM object self or its one child to AT. More... | |
STDMETHOD() | get_accName (VARIANT varChild, BSTR *pszName) override |
Returns the accessible name of the current COM object self or its one child to AT. More... | |
STDMETHOD() | get_accChild (VARIANT varChild, IDispatch **ppdispChild) override |
Returns child interface pointer for AT according to input child ID. More... | |
STDMETHOD() | get_accChildCount (long *pcountChildren) override |
Returns child count of current COM object. More... | |
STDMETHOD() | get_accParent (IDispatch **ppdispParent) override |
Returns the Parent IAccessible interface pointer to AT. More... | |
STDMETHOD() | get_nRelations (long __RPC_FAR *nRelations) override |
For IAccessible2 implementation methods. More... | |
STDMETHOD() | get_relation (long relationIndex, IAccessibleRelation __RPC_FAR *__RPC_FAR *relation) override |
STDMETHOD() | get_relations (long maxRelations, IAccessibleRelation __RPC_FAR *__RPC_FAR *relation, long __RPC_FAR *nRelations) override |
STDMETHOD() | role (long __RPC_FAR *role) override |
STDMETHOD() | get_nActions (long __RPC_FAR *nActions) |
STDMETHOD() | scrollTo (enum IA2ScrollType scrollType) override |
STDMETHOD() | scrollToPoint (enum IA2CoordinateType coordinateType, long x, long y) override |
STDMETHOD() | get_groupPosition (long __RPC_FAR *groupLevel, long __RPC_FAR *similarItemsInGroup, long __RPC_FAR *positionInGroup) override |
STDMETHOD() | get_states (AccessibleStates __RPC_FAR *states) override |
STDMETHOD() | get_extendedRole (BSTR __RPC_FAR *extendedRole) override |
STDMETHOD() | get_localizedExtendedRole (BSTR __RPC_FAR *localizedExtendedRole) override |
STDMETHOD() | get_nExtendedStates (long __RPC_FAR *nExtendedStates) override |
STDMETHOD() | get_extendedStates (long maxExtendedStates, BSTR __RPC_FAR *__RPC_FAR *extendedStates, long __RPC_FAR *nExtendedStates) override |
STDMETHOD() | get_localizedExtendedStates (long maxLocalizedExtendedStates, BSTR __RPC_FAR *__RPC_FAR *localizedExtendedStates, long __RPC_FAR *nLocalizedExtendedStates) override |
STDMETHOD() | get_uniqueID (long __RPC_FAR *uniqueID) override |
STDMETHOD() | get_windowHandle (HWND __RPC_FAR *windowHandle) override |
STDMETHOD() | get_indexInParent (long __RPC_FAR *accParentIndex) override |
STDMETHOD() | get_locale (IA2Locale __RPC_FAR *locale) override |
STDMETHOD() | get_attributes (BSTR *pAttr) override |
STDMETHOD() | QueryService (REFGUID guidService, REFIID riid, void **ppvObject) override |
Get The other Interface from CMAccessible. More... | |
STDMETHOD() | get_appName (BSTR __RPC_FAR *name) override |
STDMETHOD() | get_appVersion (BSTR __RPC_FAR *version) override |
STDMETHOD() | get_toolkitName (BSTR __RPC_FAR *name) override |
STDMETHOD() | get_toolkitVersion (BSTR __RPC_FAR *version) override |
STDMETHOD() | Put_XAccName (const OLECHAR __RPC_FAR *pszName) override |
Set the accessible name of the current COM object self from UNO. More... | |
STDMETHOD() | Put_XAccRole (unsigned short pRole) override |
Set the accessible role of the current COM object self from UNO. More... | |
STDMETHOD() | DecreaseState (DWORD pXSate) override |
Add one state into the current state set for the current COM object from UNO. More... | |
STDMETHOD() | IncreaseState (DWORD pXSate) override |
Delete one state into the current state set for the current COM object from UNO. More... | |
STDMETHOD() | SetState (DWORD pXSate) override |
Set state into the current state set for the current COM object from UNO. More... | |
STDMETHOD() | Put_XAccValue (const OLECHAR __RPC_FAR *pszAccValue) override |
Set the accessible value of the current COM object self from UNO. More... | |
STDMETHOD() | Put_XAccFocus (long dChildID) override |
Set accessible focus by specifying child ID. More... | |
STDMETHOD() | Put_XAccParent (IMAccessible __RPC_FAR *pIParent) override |
Set accessible parent object for the current COM object if the current object is a child of some COM object. More... | |
STDMETHOD() | Put_XAccWindowHandle (HWND hwnd) override |
Set the HWND value of the current COM object self from UNO. More... | |
STDMETHOD() | Put_XAccChildID (long dChildID) override |
Set unique child id to COM. More... | |
STDMETHOD() | Put_XAccAgent (hyper pAgent) override |
Set AccObjectManagerAgent object pointer to COM. More... | |
STDMETHOD() | NotifyDestroy () override |
When a UNO control disposing, it disposes its listeners, then notify AccObject in bridge management, then notify COM that the XAccessible is invalid, so set m_xAccessible as NULL. More... | |
STDMETHOD() | Put_ActionDescription (const OLECHAR *szAction) override |
UNO set description information for action to COM. More... | |
STDMETHOD() | SetDefaultAction (hyper pAction) override |
Helper method for Implementation of get_accDefaultAction. More... | |
STDMETHOD() | GetUNOInterface (hyper *) override |
Return XAccessible interface pointer when needed. More... | |
STDMETHOD() | SetXAccessible (hyper) override |
When COM is created, UNO set XAccessible pointer to it in order to COM can operate UNO information. More... | |
Static Public Member Functions | |
static bool | get_IAccessibleFromXAccessible (css::accessibility::XAccessible *pXAcc, IAccessible **ppIA) |
static HRESULT WINAPI | SmartQI_ (void *pv, REFIID iid, void **ppvObject, DWORD_PTR) |
static OUString | get_StringFromAny (css::uno::Any const &pAny) |
static OUString | get_String4Numbering (const css::uno::Any &pAny, sal_Int16 numberingLevel, std::u16string_view numberingPrefix) |
static void | ConvertAnyToVariant (const css::uno::Any &rAnyVal, VARIANT *pvData) |
Public Attributes | |
XGUIDToComObjHash | m_containedObjects |
Static Public Attributes | |
static AccObjectManagerAgent * | g_pAgent = nullptr |
Private Types | |
typedef ::std::map< const GUID, CComPtr< IUnknown >, ltComp > | XGUIDToComObjHash |
Private Member Functions | |
IMAccessible * | GetChildInterface (long dChildIndex) |
private methods that help implement public functions More... | |
IMAccessible * | GetNavigateChildForDM (VARIANT varCur, short flags) |
for descendantmanager circumstance,provide child interface when navigate More... | |
HRESULT | GetFirstChild (VARIANT varStart, VARIANT *pvarEndUpAt) |
the following 4 private methods are for accNavigate implementation More... | |
HRESULT | GetLastChild (VARIANT varStart, VARIANT *pvarEndUpAt) |
Return last child for parent container, process differently according to whether it is descendant manage. More... | |
HRESULT | GetNextSibling (VARIANT varStart, VARIANT *pvarEndUpAt) |
The method GetNextSibling is general, whatever it is descendant manage or not Get the next sibling object. More... | |
HRESULT | GetPreSibling (VARIANT varStart, VARIANT *pvarEndUpAt) |
the method GetPreSibling is general, whatever it is descendant manage or not More... | |
HRESULT WINAPI | SmartQI (void *pv, REFIID iid, void **ppvObject) |
Static Private Member Functions | |
static css::accessibility::XAccessibleContext * | GetContextByXAcc (css::accessibility::XAccessible *pXAcc) |
Get XAccessibleContext directly from UNO by the stored XAccessible pointer. More... | |
static bool | GetXInterfaceFromXAccessible (css::accessibility::XAccessible *, css::uno::XInterface **, XInterfaceType) |
Private Attributes | |
BSTR | m_pszName |
BSTR | m_pszValue |
BSTR | m_pszActionDescription |
unsigned short | m_iRole |
DWORD | m_dState |
IMAccessible * | m_pIParent |
long | m_dChildID |
long | m_dFocusChildID |
HWND | m_hwnd |
CEnumVariant * | m_pEnumVar |
bool | m_isDestroy |
css::uno::Reference< css::accessibility::XAccessible > | m_xAccessible |
css::uno::Reference< css::accessibility::XAccessibleAction > | m_xAction |
css::uno::Reference< css::accessibility::XAccessibleContext > | m_xContext |
Additional Inherited Members | |
Properties inherited from IAccessibleApplication | |
BSTR | appName [get] |
Returns the application name. More... | |
BSTR | appVersion [get] |
Returns the application version. More... | |
BSTR | toolkitName [get] |
Returns the toolkit/bridge name. More... | |
BSTR | toolkitVersion [get] |
Returns the toolkit/bridge version. More... | |
This class implements IMAccessible interface, which inherits from IAccessible2, and in turn inherits from IAccessible.
So its methods include the methods defined only in IAccessible, plus the methods defined only in IAccessible2, plus the methods defined only in IMAccessible.
Definition at line 44 of file MAccessible.h.
|
private |
Definition at line 51 of file MAccessible.h.
CMAccessible::CMAccessible | ( | ) |
Definition at line 183 of file MAccessible.cxx.
References CEnumVariant::Create(), m_containedObjects, and m_pEnumVar.
|
virtual |
Definition at line 199 of file MAccessible.cxx.
References m_containedObjects, m_pEnumVar, m_pIParent, m_pszActionDescription, m_pszName, and m_pszValue.
|
override |
AT call this method to operate application.
varChild,the | child id of the action object. |
Definition at line 2259 of file MAccessible.cxx.
References GetChildInterface(), m_isDestroy, m_xAction, and VT_I4.
|
override |
Definition at line 968 of file MAccessible.cxx.
References accLocation(), GetChildInterface(), GetContextByXAcc(), h, i, m_isDestroy, m_xAccessible, nCount, VT_EMPTY, VT_I4, w, x, and y.
|
override |
Returns the location of the current COM object self or its one child to AT.
varChild,vt | member of varChild must be VT_I4,and lVal member stores the child ID, the child ID specify child index from 0 to children count, 0 stands for object self. |
pxLeft,[in,out] | use to return the x-coordination of the proper object. |
pyTop,[in,out] | use to return the y-coordination of the proper object. |
pcxWidth,[in,out] | use to return the x-coordination width of the proper object. |
pcyHeight,[in,out] | use to return the y-coordination height of the proper object. |
Definition at line 878 of file MAccessible.cxx.
References m_isDestroy, m_xAccessible, and VT_I4.
Referenced by accHitTest().
|
override |
Returns the current focused child to AT.
navDir,the | direction flag of the navigation. |
varStart,the | start child id of this navigation action. |
pvarEndUpAt,[in,out] | the end up child of this navigation action. |
Definition at line 926 of file MAccessible.cxx.
References GetFirstChild(), GetLastChild(), GetNextSibling(), GetPreSibling(), and m_isDestroy.
|
override |
accSelect method has many optional flags, needs to process comprehensively Mozilla and Microsoft do not implement SELFLAG_EXTENDSELECTION flag.
The implementation of this flag is a little trouble-shooting,so we also do not implement it now
flagsSelect,the | selection flag of the select action. |
varChild,the | child object pointer of current action. |
Definition at line 2092 of file MAccessible.cxx.
References GetChildInterface(), IMAccessible::GetUNOInterface(), m_isDestroy, and VT_I4.
|
static |
Definition at line 2664 of file MAccessible.cxx.
References g_pAgent, get_IAccessibleFromXAccessible(), AccObjectManagerAgent::InsertAccObj(), VT_BOOL, VT_BSTR, VT_I2, VT_I4, VT_R4, VT_R8, and VT_UI1.
Referenced by CAccHyperLink::get_anchor(), CAccHyperLink::get_anchorTarget(), CAccValue::get_currentValue(), CAccValue::get_maximumValue(), and CAccValue::get_minimumValue().
|
override |
Add one state into the current state set for the current COM object from UNO.
pXSate,the | state used to set the name of the current object. |
Definition at line 1123 of file MAccessible.cxx.
References m_dState.
|
override |
Returns child interface pointer for AT according to input child ID.
varChild,vt | member of varChild must be VT_I4,and lVal member stores the child ID, the child ID specify child index from 0 to children count, 0 stands for object self. |
ppdispChild,[in,out] | use to return the child interface point. |
Definition at line 313 of file MAccessible.cxx.
References GetChildInterface(), m_isDestroy, and VT_I4.
|
override |
Returns child count of current COM object.
pcountChildren | [in,out] used to return the children count. |
Definition at line 271 of file MAccessible.cxx.
References m_isDestroy, m_xAccessible, and SAL_WARN.
|
override |
This method is called when AT open some UI elements initially the UI element takes the default action defined here.
varChild,the | child id of the defaultaction. |
pszDefaultAction,[in/out] | the description of the current action. |
Definition at line 2220 of file MAccessible.cxx.
References GetChildInterface(), m_isDestroy, m_pszActionDescription, m_xAction, and VT_I4.
|
override |
Returns the accessible description of the current COM object self or its one child to AT.
varChild,vt | member of varChild must be VT_I4,and lVal member stores the child ID, the child ID specify child index from 0 to children count, 0 stands for object self. |
pszDescription,[in,out] | use to return the description of the proper object. |
Definition at line 435 of file MAccessible.cxx.
References GetChildInterface(), m_isDestroy, m_xAccessible, and VT_I4.
|
override |
Returns the current focused child to AT.
pvarChild,[in,out] | vt member of pvarChild must be VT_I4,and lVal member stores the child ID, the child ID specify child index from 0 to children count, 0 stands for object self. |
Definition at line 783 of file MAccessible.cxx.
References g_pAgent, AccObjectManagerAgent::GetIAccessibleFromResID(), m_dFocusChildID, m_isDestroy, UACC_NO_FOCUS, and VT_EMPTY.
|
override |
Returns the accessible helpString of the current COM object self or its one child to AT.
varChild,vt | member of varChild must be VT_I4,and lVal member stores the child ID, the child ID specify child index from 0 to children count, 0 stands for object self. |
pszHelp,[in,out] | use to return the helpString of the proper object. |
Definition at line 589 of file MAccessible.cxx.
|
override |
Returns the accessible HelpTopic of the current COM object self or its one child to AT.
varChild,vt | member of varChild must be VT_I4,and lVal member stores the child ID, the child ID specify child index from 0 to children count, 0 stands for object self. |
pszHelpFile,[in,out] | use to return the HelpTopic of the proper object. |
pidTopic,use | to return the HelpTopic ID of the proper object. |
Definition at line 603 of file MAccessible.cxx.
|
override |
Returns the accessible keyboard shortcut of the current COM object self or its one child to AT.
varChild,vt | member of varChild must be VT_I4,and lVal member stores the child ID, the child ID specify child index from 0 to children count, 0 stands for object self. |
pszKeyboardShortcut,[in,out] | use to return the kbshortcut of the proper object. |
Definition at line 630 of file MAccessible.cxx.
References GetChildInterface(), comphelper::GetkeyBindingStrByXkeyBinding(), GetMnemonicChar(), i, m_iRole, m_isDestroy, m_pIParent, m_xAccessible, nCount, and VT_I4.
|
override |
Returns the accessible name of the current COM object self or its one child to AT.
varChild,vt | member of varChild must be VT_I4,and lVal member stores the child ID, the child ID specify child index from 0 to children count, 0 stands for object self. |
pszName,[in,out] | use to return the name of the proper object. |
Definition at line 351 of file MAccessible.cxx.
References GetChildInterface(), m_isDestroy, m_pszName, and VT_I4.
|
override |
Returns the Parent IAccessible interface pointer to AT.
It should add reference, and the client should release the component. It should return E_FAIL when the parent point is null.
ppdispParent | [in,out] used to return the parent interface point. when the point is null, should return null. |
Definition at line 234 of file MAccessible.cxx.
References hr, m_hwnd, m_isDestroy, and m_pIParent.
|
override |
Returns the accessible role of the current COM object self or its one child to AT.
varChild,vt | member of varChild must be VT_I4,and lVal member stores the child ID, the child ID specify child index from 0 to children count, 0 stands for object self. |
pvarRole,[in,out] | use to return the role of the proper object. |
Definition at line 482 of file MAccessible.cxx.
References GetChildInterface(), IA2_ROLE_CAPTION, m_iRole, m_isDestroy, and VT_I4.
|
override |
Returns the selection of the current COM object to AT.
pvarChildren,[in,out] | if selection num is 0,return VT_EMPTY for vt, if selection num is 1,return VT_I4 for vt,and child index for lVal if selection num >1,return VT_UNKNOWN for vt, and IEnumVariant* for punkVal |
Definition at line 826 of file MAccessible.cxx.
References CEnumVariant::Clone(), count, CEnumVariant::GetCountOfElements(), m_isDestroy, m_pEnumVar, CEnumVariant::Next(), CEnumVariant::Reset(), and VT_EMPTY.
|
override |
Returns the accessible state of the current COM object self or its one child to AT.
varChild,vt | member of varChild must be VT_I4,and lVal member stores the child ID, the child ID specify child index from 0 to children count, 0 stands for object self. |
pvarState,[in,out] | use to return the state of the proper object. |
Definition at line 529 of file MAccessible.cxx.
References GetChildInterface(), m_dState, m_isDestroy, m_xAccessible, and VT_I4.
|
override |
Returns the accessible value of the current COM object self or its one child to AT.
varChild,vt | member of varChild must be VT_I4,and lVal member stores the child ID, the child ID specify child index from 0 to children count, 0 stands for object self. |
pszValue,[in,out] | use to return the value of the proper object. |
Definition at line 390 of file MAccessible.cxx.
References GetChildInterface(), m_dState, m_isDestroy, m_pszValue, and VT_I4.
|
override |
Definition at line 2887 of file MAccessible.cxx.
References utl::ConfigManager::getProductName(), m_isDestroy, and name.
|
override |
Definition at line 2901 of file MAccessible.cxx.
References utl::ConfigManager::getProductVersion(), and m_isDestroy.
Referenced by get_toolkitVersion().
|
override |
Definition at line 2932 of file MAccessible.cxx.
References m_isDestroy, and m_xAccessible.
|
override |
Definition at line 2821 of file MAccessible.cxx.
|
override |
Definition at line 1993 of file MAccessible.cxx.
|
override |
Definition at line 1811 of file MAccessible.cxx.
References Any, COMBO_BOX, getTheParentOfMember(), i, index, LIST, m_isDestroy, and m_xAccessible.
|
static |
Definition at line 2447 of file MAccessible.cxx.
References g_pAgent, and AccObjectManagerAgent::GetIAccessibleFromXAccessible().
Referenced by ConvertAnyToVariant(), CAccTable::get_accessibleAt(), CAccTableCell::get_columnHeaderCells(), CAccTableCell::get_rowHeaderCells(), CAccTable::get_selectedCells(), CAccTable::get_summary(), CAccTableCell::get_table(), CAccRelation::get_target(), GetChildInterface(), and CEnumVariant::Next().
|
override |
Definition at line 2843 of file MAccessible.cxx.
References m_isDestroy, m_xContext, nIndex, and SAL_WARN.
|
override |
Definition at line 2867 of file MAccessible.cxx.
References m_isDestroy, and m_xContext.
|
override |
Definition at line 2826 of file MAccessible.cxx.
|
override |
Definition at line 2837 of file MAccessible.cxx.
COM_DECLSPEC_NOTHROW STDMETHODIMP CMAccessible::get_nActions | ( | long __RPC_FAR * | nActions | ) |
Definition at line 1748 of file MAccessible.cxx.
References hr, m_isDestroy, and IAccessibleAction::nActions().
|
override |
Definition at line 2831 of file MAccessible.cxx.
|
override |
For IAccessible2 implementation methods.
Definition at line 1580 of file MAccessible.cxx.
References m_isDestroy, and m_xContext.
Referenced by get_relation().
|
override |
Definition at line 1611 of file MAccessible.cxx.
References get_nRelations(), hr, m_isDestroy, m_xContext, and IUNOXWrapper::put_XSubInterface().
|
override |
Definition at line 1673 of file MAccessible.cxx.
References hr, i, m_isDestroy, m_xContext, nCount, and IUNOXWrapper::put_XSubInterface().
|
override |
Definition at line 2793 of file MAccessible.cxx.
References IA2_STATES, m_isDestroy, m_xContext, SAL_N_ELEMENTS, and UNO_STATES.
|
static |
Definition at line 2621 of file MAccessible.cxx.
References Any, and get_StringFromAny().
|
static |
Definition at line 2468 of file MAccessible.cxx.
Referenced by get_String4Numbering().
|
override |
Definition at line 2914 of file MAccessible.cxx.
References m_isDestroy, and name.
|
override |
Definition at line 2926 of file MAccessible.cxx.
References get_appVersion().
|
override |
Definition at line 1999 of file MAccessible.cxx.
References m_dChildID, and m_isDestroy.
|
override |
Definition at line 2016 of file MAccessible.cxx.
References m_hwnd, m_isDestroy, and m_pIParent.
|
private |
private methods that help implement public functions
Return child interface pointer by child ID,note: need to call AddRef()
lChildID,specify | child index,which AT(such as Inspect32) gives. |
Definition at line 1302 of file MAccessible.cxx.
References g_pAgent, get_IAccessibleFromXAccessible(), AccObjectManagerAgent::GetIAccessibleFromResID(), AccObjectManagerAgent::InsertAccObj(), m_hwnd, and m_xAccessible.
Referenced by accDoDefaultAction(), accHitTest(), accSelect(), get_accChild(), get_accDefaultAction(), get_accDescription(), get_accKeyboardShortcut(), get_accName(), get_accRole(), get_accState(), get_accValue(), GetNavigateChildForDM(), and put_accValue().
|
staticprivate |
Get XAccessibleContext directly from UNO by the stored XAccessible pointer.
pXAcc,UNO | XAccessible object point. |
Definition at line 2052 of file MAccessible.cxx.
Referenced by accHitTest(), GetNavigateChildForDM(), GetNextSibling(), and GetPreSibling().
|
private |
the following 4 private methods are for accNavigate implementation
Return first child for parent container, process differently according to whether it is descendant manage
varStart,the | start child id of this navigation action. |
pvarEndUpAt,[in,out] | the end up child of this navigation action. |
Definition at line 1435 of file MAccessible.cxx.
References DM_FIRSTCHILD, GetNavigateChildForDM(), m_isDestroy, VT_EMPTY, and VT_I4.
Referenced by accNavigate().
|
private |
Return last child for parent container, process differently according to whether it is descendant manage.
varStart,the | start child id of this navigation action. |
pvarEndUpAt,[in,out] | the end up child of this navigation action. |
Definition at line 1472 of file MAccessible.cxx.
References DM_LASTCHILD, GetNavigateChildForDM(), m_isDestroy, VT_EMPTY, and VT_I4.
Referenced by accNavigate().
|
private |
for descendantmanager circumstance,provide child interface when navigate
varCur,the | current child. |
flags,the | navigation direction. |
Definition at line 1353 of file MAccessible.cxx.
References count, DM_FIRSTCHILD, DM_LASTCHILD, DM_NEXTCHILD, DM_PREVCHILD, g_pAgent, GetChildInterface(), GetContextByXAcc(), AccObjectManagerAgent::GetIMAccByXAcc(), IMAccessible::GetUNOInterface(), index, AccObjectManagerAgent::InsertAccObj(), and m_xAccessible.
Referenced by GetFirstChild(), and GetLastChild().
|
private |
The method GetNextSibling is general, whatever it is descendant manage or not Get the next sibling object.
varStart,the | start child id of this navigation action. |
pvarEndUpAt,[in,out] | the end up child of this navigation action. |
Definition at line 1508 of file MAccessible.cxx.
References GetContextByXAcc(), m_isDestroy, m_pIParent, m_xAccessible, VT_EMPTY, and VT_I4.
Referenced by accNavigate().
|
private |
the method GetPreSibling is general, whatever it is descendant manage or not
varStart,the | start child id of this navigation action. |
pvarEndUpAt,[in,out] | the end up child of this navigation action. |
Definition at line 1543 of file MAccessible.cxx.
References GetContextByXAcc(), m_isDestroy, m_pIParent, m_xAccessible, VT_EMPTY, and VT_I4.
Referenced by accNavigate().
|
override |
Return XAccessible interface pointer when needed.
pXAcc,[in,out] | the Uno interface of the current object. |
Definition at line 2189 of file MAccessible.cxx.
References m_xAccessible.
|
staticprivate |
|
override |
Delete one state into the current state set for the current COM object from UNO.
pXSate,the | state used to set the name of the current object. |
Definition at line 1136 of file MAccessible.cxx.
References m_dState.
|
override |
When a UNO control disposing, it disposes its listeners, then notify AccObject in bridge management, then notify COM that the XAccessible is invalid, so set m_xAccessible as NULL.
Definition at line 1284 of file MAccessible.cxx.
References m_isDestroy, and m_xAccessible.
|
override |
No longer supported according to IAccessible doc.
Servers should return E_NOTIMPL
Definition at line 1040 of file MAccessible.cxx.
|
override |
Set the accessible value of the current COM object self or its one child from UNO.
varChild,vt | member of varChild must be VT_I4,and lVal member stores the child ID, the child ID specify child index from 0 to children count, 0 stands for object self. |
szValue,the | value used to set the value of the proper object. |
Definition at line 1052 of file MAccessible.cxx.
References GetChildInterface(), m_isDestroy, m_pszValue, and VT_I4.
|
override |
UNO set description information for action to COM.
szAction,the | action description of the current object. |
Definition at line 2294 of file MAccessible.cxx.
References m_isDestroy, and m_pszActionDescription.
|
override |
Set AccObjectManagerAgent object pointer to COM.
pAgent,the | AccObjectManagerAgent point. |
Definition at line 1270 of file MAccessible.cxx.
References g_pAgent.
|
override |
Set unique child id to COM.
dChildID,the | id of the current object. |
Definition at line 1257 of file MAccessible.cxx.
References m_dChildID.
|
override |
Set accessible focus by specifying child ID.
dChildID,the | child id identifies the focus child. |
Definition at line 1205 of file MAccessible.cxx.
References m_dChildID, m_dFocusChildID, m_isDestroy, m_pIParent, and IMAccessible::Put_XAccFocus().
|
override |
Set the accessible name of the current COM object self from UNO.
pszName,the | name value used to set the name of the current object. |
Definition at line 1084 of file MAccessible.cxx.
References m_isDestroy, and m_pszName.
|
override |
Set accessible parent object for the current COM object if the current object is a child of some COM object.
pIParent,the | parent of the current object. |
Definition at line 1240 of file MAccessible.cxx.
References m_pIParent.
|
override |
Set the accessible role of the current COM object self from UNO.
pRole,the | role value used to set the role of the current object. |
Definition at line 1110 of file MAccessible.cxx.
References m_iRole.
|
override |
Set the accessible value of the current COM object self from UNO.
pszAccValue,the | name used to set the value of the current object. |
Definition at line 1162 of file MAccessible.cxx.
References m_isDestroy, and m_pszValue.
|
override |
Set the HWND value of the current COM object self from UNO.
It should set the parent IAccessible Object through the method AccessibleObjectFromWindow(...).
hwnd,the | HWND used to set the value of the current object. |
Definition at line 1188 of file MAccessible.cxx.
References m_hwnd, and m_isDestroy.
|
override |
Get The other Interface from CMAccessible.
guidService,must | be IID_IAccessible here. |
riid,the | IID interface . |
Definition at line 1029 of file MAccessible.cxx.
|
override |
Definition at line 1734 of file MAccessible.cxx.
References m_iRole.
|
override |
Definition at line 1784 of file MAccessible.cxx.
|
override |
Definition at line 1779 of file MAccessible.cxx.
|
override |
Helper method for Implementation of get_accDefaultAction.
pAction,the | default action point of the current object. |
Definition at line 2205 of file MAccessible.cxx.
References m_xAction.
|
override |
Set state into the current state set for the current COM object from UNO.
pXSate,the | state used to set the name of the current object. |
Definition at line 1149 of file MAccessible.cxx.
References m_dState.
|
override |
When COM is created, UNO set XAccessible pointer to it in order to COM can operate UNO information.
pXAcc,the | XAccessible object of current object. |
Definition at line 2070 of file MAccessible.cxx.
References m_pEnumVar, m_xAccessible, m_xContext, and CEnumVariant::PutSelection().
|
private |
Definition at line 2388 of file MAccessible.cxx.
References g_CMAccessible_AggMap, GetXInterfaceFromXAccessible(), hr, m_containedObjects, m_isDestroy, m_xAccessible, and IUNOXWrapper::put_XInterface().
|
inlinestatic |
Definition at line 213 of file MAccessible.h.
|
static |
Definition at line 207 of file MAccessible.h.
Referenced by ConvertAnyToVariant(), CAccTable::get_accessibleAt(), get_accFocus(), CAccTableCell::get_columnHeaderCells(), get_IAccessibleFromXAccessible(), CAccTableCell::get_rowHeaderCells(), CAccTable::get_selectedCells(), GetChildInterface(), GetNavigateChildForDM(), CEnumVariant::Next(), and Put_XAccAgent().
XGUIDToComObjHash CMAccessible::m_containedObjects |
Definition at line 211 of file MAccessible.h.
Referenced by CMAccessible(), SmartQI(), and ~CMAccessible().
|
private |
Definition at line 164 of file MAccessible.h.
Referenced by get_uniqueID(), Put_XAccChildID(), and Put_XAccFocus().
|
private |
Definition at line 167 of file MAccessible.h.
Referenced by get_accFocus(), and Put_XAccFocus().
|
private |
Definition at line 160 of file MAccessible.h.
Referenced by DecreaseState(), get_accState(), get_accValue(), IncreaseState(), and SetState().
|
private |
Definition at line 170 of file MAccessible.h.
Referenced by get_accParent(), get_windowHandle(), GetChildInterface(), and Put_XAccWindowHandle().
|
private |
Definition at line 159 of file MAccessible.h.
Referenced by get_accKeyboardShortcut(), get_accRole(), Put_XAccRole(), and role().
|
private |
Definition at line 177 of file MAccessible.h.
Referenced by accDoDefaultAction(), accHitTest(), accLocation(), accNavigate(), accSelect(), get_accChild(), get_accChildCount(), get_accDefaultAction(), get_accDescription(), get_accFocus(), get_accKeyboardShortcut(), get_accName(), get_accParent(), get_accRole(), get_accSelection(), get_accState(), get_accValue(), get_appName(), get_appVersion(), get_attributes(), get_groupPosition(), get_indexInParent(), get_locale(), get_nActions(), get_nRelations(), get_relation(), get_relations(), get_states(), get_toolkitName(), get_uniqueID(), get_windowHandle(), GetFirstChild(), GetLastChild(), GetNextSibling(), GetPreSibling(), NotifyDestroy(), put_accValue(), Put_ActionDescription(), Put_XAccFocus(), Put_XAccName(), Put_XAccValue(), Put_XAccWindowHandle(), and SmartQI().
|
private |
Definition at line 174 of file MAccessible.h.
Referenced by CMAccessible(), get_accSelection(), SetXAccessible(), and ~CMAccessible().
|
private |
Definition at line 161 of file MAccessible.h.
Referenced by get_accKeyboardShortcut(), get_accParent(), get_windowHandle(), GetNextSibling(), GetPreSibling(), Put_XAccFocus(), Put_XAccParent(), and ~CMAccessible().
|
private |
Definition at line 158 of file MAccessible.h.
Referenced by get_accDefaultAction(), Put_ActionDescription(), and ~CMAccessible().
|
private |
Definition at line 156 of file MAccessible.h.
Referenced by get_accName(), Put_XAccName(), and ~CMAccessible().
|
private |
Definition at line 157 of file MAccessible.h.
Referenced by get_accValue(), put_accValue(), Put_XAccValue(), and ~CMAccessible().
|
private |
Definition at line 179 of file MAccessible.h.
Referenced by accHitTest(), accLocation(), get_accChildCount(), get_accDescription(), get_accKeyboardShortcut(), get_accState(), get_attributes(), get_groupPosition(), GetChildInterface(), GetNavigateChildForDM(), GetNextSibling(), GetPreSibling(), GetUNOInterface(), NotifyDestroy(), SetXAccessible(), and SmartQI().
|
private |
Definition at line 182 of file MAccessible.h.
Referenced by accDoDefaultAction(), get_accDefaultAction(), and SetDefaultAction().
|
private |
Definition at line 183 of file MAccessible.h.
Referenced by get_indexInParent(), get_locale(), get_nRelations(), get_relation(), get_relations(), get_states(), and SetXAccessible().