]>
Commit | Line | Data |
---|---|---|
45a959a3 | 1 | /////////////////////////////////////////////////////////////////////////////// |
80fdcdb9 | 2 | // Name: wx/msw/ole/access.h |
45a959a3 JS |
3 | // Purpose: declaration of the wxAccessible class |
4 | // Author: Julian Smart | |
5 | // Modified by: | |
6 | // Created: 2003-02-12 | |
45a959a3 | 7 | // Copyright: (c) 2003 Julian Smart |
65571936 | 8 | // Licence: wxWindows licence |
45a959a3 JS |
9 | /////////////////////////////////////////////////////////////////////////////// |
10 | ||
11 | #ifndef _WX_ACCESS_H_ | |
12 | #define _WX_ACCESS_H_ | |
13 | ||
0a0e6a5b | 14 | #if wxUSE_ACCESSIBILITY |
45a959a3 JS |
15 | |
16 | // ---------------------------------------------------------------------------- | |
17 | // forward declarations | |
18 | // ---------------------------------------------------------------------------- | |
19 | ||
20 | class wxIAccessible; | |
b5dbe15d | 21 | class WXDLLIMPEXP_FWD_CORE wxWindow; |
45a959a3 JS |
22 | |
23 | // ---------------------------------------------------------------------------- | |
24 | // macros | |
25 | // ---------------------------------------------------------------------------- | |
26 | ||
27 | // ---------------------------------------------------------------------------- | |
28 | // wxAccessible implements accessibility behaviour. | |
29 | // ---------------------------------------------------------------------------- | |
30 | ||
53a2db12 | 31 | class WXDLLIMPEXP_CORE wxAccessible : public wxAccessibleBase |
45a959a3 JS |
32 | { |
33 | public: | |
34 | wxAccessible(wxWindow *win = NULL); | |
35 | virtual ~wxAccessible(); | |
36 | ||
37 | // Overridables | |
38 | ||
39 | // Accessors | |
40 | ||
41 | // Returns the wxIAccessible pointer | |
42 | wxIAccessible* GetIAccessible() { return m_pIAccessible; } | |
43 | ||
44 | // Returns the IAccessible standard interface pointer | |
45 | void* GetIAccessibleStd() ; | |
46 | ||
371a5b4e JS |
47 | // Operations |
48 | ||
49 | // Sends an event when something changes in an accessible object. | |
50 | static void NotifyEvent(int eventType, wxWindow* window, wxAccObject objectType, | |
51 | int objectId); | |
52 | ||
45a959a3 JS |
53 | protected: |
54 | void Init(); | |
55 | ||
56 | private: | |
57 | wxIAccessible * m_pIAccessible; // the pointer to COM interface | |
58 | void* m_pIAccessibleStd; // the pointer to the standard COM interface, | |
59 | // for default processing | |
60 | ||
c0c133e1 | 61 | wxDECLARE_NO_COPY_CLASS(wxAccessible); |
45a959a3 JS |
62 | }; |
63 | ||
0a0e6a5b WS |
64 | #endif //wxUSE_ACCESSIBILITY |
65 | ||
45a959a3 JS |
66 | #endif //_WX_ACCESS_H_ |
67 |