Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

125 lines
3.0 KiB

  1. #ifndef _ACCDEL_HPP_
  2. #define _ACCDEL_HPP_
  3. // REARCHITECT (lamadio): Conflicts with one defined in winuserp.h
  4. #undef WINEVENT_VALID //It's tripping on this...
  5. #include "winable.h"
  6. #include "oleacc.h"
  7. class CDelegateAccessibleImpl : public IAccessible
  8. {
  9. public:
  10. CDelegateAccessibleImpl();
  11. // *** IDispatch ***
  12. STDMETHODIMP GetTypeInfoCount(
  13. UINT* pctinfo);
  14. STDMETHODIMP GetTypeInfo(
  15. UINT itinfo, LCID lcid, ITypeInfo** pptinfo);
  16. STDMETHODIMP GetIDsOfNames(
  17. REFIID riid, OLECHAR** rgszNames, UINT cNames, LCID lcid, DISPID* rgdispid);
  18. STDMETHODIMP Invoke(
  19. DISPID dispidMember, REFIID riid, LCID lcid, WORD wFlags,
  20. DISPPARAMS* pdispparams, VARIANT* pvarResult, EXCEPINFO* pexcepinfo,
  21. UINT* puArgErr);
  22. // *** IAccessible ***
  23. STDMETHODIMP get_accParent(
  24. IDispatch **ppdispParent);
  25. STDMETHODIMP get_accChildCount(
  26. long *pcountChildren);
  27. STDMETHODIMP get_accChild(
  28. VARIANT varChild,
  29. IDispatch **ppdispChild);
  30. STDMETHODIMP get_accName(
  31. VARIANT varChild,
  32. BSTR *pszName);
  33. STDMETHODIMP get_accValue(
  34. VARIANT varChild,
  35. BSTR *pszValue);
  36. STDMETHODIMP get_accDescription(
  37. VARIANT varChild,
  38. BSTR *pszDescription);
  39. STDMETHODIMP get_accRole(
  40. VARIANT varChild,
  41. VARIANT *pvarRole);
  42. STDMETHODIMP get_accState(
  43. VARIANT varChild,
  44. VARIANT *pvarState);
  45. STDMETHODIMP get_accHelp(
  46. VARIANT varChild,
  47. BSTR *pszHelp);
  48. STDMETHODIMP get_accHelpTopic(
  49. BSTR *pszHelpFile,
  50. VARIANT varChild,
  51. long *pidTopic);
  52. STDMETHODIMP get_accKeyboardShortcut(
  53. VARIANT varChild,
  54. BSTR *pszKeyboardShortcut);
  55. STDMETHODIMP get_accFocus(
  56. VARIANT *pvarChild);
  57. STDMETHODIMP get_accSelection(
  58. VARIANT *pvarChildren);
  59. STDMETHODIMP get_accDefaultAction(
  60. VARIANT varChild,
  61. BSTR *pszDefaultAction);
  62. STDMETHODIMP accSelect(
  63. long flagsSelect,
  64. VARIANT varChild);
  65. STDMETHODIMP accLocation(
  66. long *pxLeft,
  67. long *pyTop,
  68. long *pcxWidth,
  69. long *pcyHeight,
  70. VARIANT varChild);
  71. STDMETHODIMP accNavigate(
  72. long navDir,
  73. VARIANT varStart,
  74. VARIANT *pvarEndUpAt);
  75. STDMETHODIMP accHitTest(
  76. long xLeft,
  77. long yTop,
  78. VARIANT *pvarChild);
  79. STDMETHODIMP accDoDefaultAction(
  80. VARIANT varChild);
  81. STDMETHODIMP put_accName(
  82. VARIANT varChild,
  83. BSTR szName);
  84. STDMETHODIMP put_accValue(
  85. VARIANT varChild,
  86. BSTR szValue);
  87. protected:
  88. IAccessible *m_pDelegateAccObj;
  89. HRESULT _DefQueryInterface(REFIID riid, void **ppvObj);
  90. virtual ~CDelegateAccessibleImpl();
  91. };
  92. #endif // _ACCDEL_HPP_