]> git.saurik.com Git - wxWidgets.git/blame - include/wx/msw/ole/access.h
ported wxSVG contrib to bakefile (patch #778614)
[wxWidgets.git] / include / wx / msw / ole / access.h
CommitLineData
45a959a3
JS
1///////////////////////////////////////////////////////////////////////////////
2// Name: ole/access.h
3// Purpose: declaration of the wxAccessible class
4// Author: Julian Smart
5// Modified by:
6// Created: 2003-02-12
7// RCS-ID: $Id$
8// Copyright: (c) 2003 Julian Smart
9// Licence: wxWindows licence
10///////////////////////////////////////////////////////////////////////////////
11
12#ifndef _WX_ACCESS_H_
13#define _WX_ACCESS_H_
14
15#ifdef __GNUG__
16 #pragma interface
17#endif
18
19#if !wxUSE_ACCESSIBILITY
20 #error "You should #define wxUSE_ACCESSIBILITY to 1 to compile this file!"
21#endif //wxUSE_ACCESSIBILITY
22
23// ----------------------------------------------------------------------------
24// forward declarations
25// ----------------------------------------------------------------------------
26
27class wxIAccessible;
28class WXDLLEXPORT wxWindow;
29
30// ----------------------------------------------------------------------------
31// macros
32// ----------------------------------------------------------------------------
33
34// ----------------------------------------------------------------------------
35// wxAccessible implements accessibility behaviour.
36// ----------------------------------------------------------------------------
37
38class WXDLLEXPORT wxAccessible : public wxAccessibleBase
39{
40public:
41 wxAccessible(wxWindow *win = NULL);
42 virtual ~wxAccessible();
43
44// Overridables
45
46// Accessors
47
48 // Returns the wxIAccessible pointer
49 wxIAccessible* GetIAccessible() { return m_pIAccessible; }
50
51 // Returns the IAccessible standard interface pointer
52 void* GetIAccessibleStd() ;
53
371a5b4e
JS
54// Operations
55
56 // Sends an event when something changes in an accessible object.
57 static void NotifyEvent(int eventType, wxWindow* window, wxAccObject objectType,
58 int objectId);
59
45a959a3
JS
60protected:
61 void Init();
62
63private:
64 wxIAccessible * m_pIAccessible; // the pointer to COM interface
65 void* m_pIAccessibleStd; // the pointer to the standard COM interface,
66 // for default processing
67
68 DECLARE_NO_COPY_CLASS(wxAccessible)
69};
70
71#endif //_WX_ACCESS_H_
72