access.h 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. ///////////////////////////////////////////////////////////////////////////////
  2. // Name: wx/msw/ole/access.h
  3. // Purpose: declaration of the wxAccessible class
  4. // Author: Julian Smart
  5. // Modified by:
  6. // Created: 2003-02-12
  7. // Copyright: (c) 2003 Julian Smart
  8. // Licence: wxWindows licence
  9. ///////////////////////////////////////////////////////////////////////////////
  10. #ifndef _WX_ACCESS_H_
  11. #define _WX_ACCESS_H_
  12. #if wxUSE_ACCESSIBILITY
  13. // ----------------------------------------------------------------------------
  14. // forward declarations
  15. // ----------------------------------------------------------------------------
  16. class wxIAccessible;
  17. class WXDLLIMPEXP_FWD_CORE wxWindow;
  18. // ----------------------------------------------------------------------------
  19. // macros
  20. // ----------------------------------------------------------------------------
  21. // ----------------------------------------------------------------------------
  22. // wxAccessible implements accessibility behaviour.
  23. // ----------------------------------------------------------------------------
  24. class WXDLLIMPEXP_CORE wxAccessible : public wxAccessibleBase
  25. {
  26. public:
  27. wxAccessible(wxWindow *win = NULL);
  28. virtual ~wxAccessible();
  29. // Overridables
  30. // Accessors
  31. // Returns the wxIAccessible pointer
  32. wxIAccessible* GetIAccessible() { return m_pIAccessible; }
  33. // Returns the IAccessible standard interface pointer
  34. void* GetIAccessibleStd() ;
  35. // Operations
  36. // Sends an event when something changes in an accessible object.
  37. static void NotifyEvent(int eventType, wxWindow* window, wxAccObject objectType,
  38. int objectId);
  39. protected:
  40. void Init();
  41. private:
  42. wxIAccessible * m_pIAccessible; // the pointer to COM interface
  43. void* m_pIAccessibleStd; // the pointer to the standard COM interface,
  44. // for default processing
  45. wxDECLARE_NO_COPY_CLASS(wxAccessible);
  46. };
  47. #endif //wxUSE_ACCESSIBILITY
  48. #endif //_WX_ACCESS_H_