2003-02-16 06:57:24 -05:00
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
2011-03-19 20:14:35 -04:00
|
|
|
// Name: wx/msw/ole/access.h
|
2003-02-16 06:57:24 -05:00
|
|
|
// Purpose: declaration of the wxAccessible class
|
|
|
|
// Author: Julian Smart
|
|
|
|
// Modified by:
|
|
|
|
// Created: 2003-02-12
|
|
|
|
// Copyright: (c) 2003 Julian Smart
|
2004-05-23 16:53:33 -04:00
|
|
|
// Licence: wxWindows licence
|
2003-02-16 06:57:24 -05:00
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#ifndef _WX_ACCESS_H_
|
|
|
|
#define _WX_ACCESS_H_
|
|
|
|
|
2004-08-16 08:45:46 -04:00
|
|
|
#if wxUSE_ACCESSIBILITY
|
2003-02-16 06:57:24 -05:00
|
|
|
|
|
|
|
// ----------------------------------------------------------------------------
|
|
|
|
// forward declarations
|
|
|
|
// ----------------------------------------------------------------------------
|
|
|
|
|
2016-10-19 04:36:07 -04:00
|
|
|
struct IAccessible;
|
2003-02-16 06:57:24 -05:00
|
|
|
class wxIAccessible;
|
2007-07-09 06:09:52 -04:00
|
|
|
class WXDLLIMPEXP_FWD_CORE wxWindow;
|
2003-02-16 06:57:24 -05:00
|
|
|
|
|
|
|
// ----------------------------------------------------------------------------
|
|
|
|
// macros
|
|
|
|
// ----------------------------------------------------------------------------
|
|
|
|
|
|
|
|
// ----------------------------------------------------------------------------
|
|
|
|
// wxAccessible implements accessibility behaviour.
|
|
|
|
// ----------------------------------------------------------------------------
|
|
|
|
|
2008-03-26 11:06:00 -04:00
|
|
|
class WXDLLIMPEXP_CORE wxAccessible : public wxAccessibleBase
|
2003-02-16 06:57:24 -05:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
wxAccessible(wxWindow *win = NULL);
|
|
|
|
virtual ~wxAccessible();
|
|
|
|
|
|
|
|
// Overridables
|
|
|
|
|
|
|
|
// Accessors
|
|
|
|
|
|
|
|
// Returns the wxIAccessible pointer
|
|
|
|
wxIAccessible* GetIAccessible() { return m_pIAccessible; }
|
|
|
|
|
|
|
|
// Returns the IAccessible standard interface pointer
|
2016-10-19 04:36:07 -04:00
|
|
|
IAccessible* GetIAccessibleStd();
|
2003-02-16 06:57:24 -05:00
|
|
|
|
2003-03-17 05:34:04 -05:00
|
|
|
// Operations
|
|
|
|
|
|
|
|
// Sends an event when something changes in an accessible object.
|
|
|
|
static void NotifyEvent(int eventType, wxWindow* window, wxAccObject objectType,
|
|
|
|
int objectId);
|
|
|
|
|
2003-02-16 06:57:24 -05:00
|
|
|
protected:
|
|
|
|
void Init();
|
|
|
|
|
|
|
|
private:
|
|
|
|
wxIAccessible * m_pIAccessible; // the pointer to COM interface
|
2016-10-19 04:36:07 -04:00
|
|
|
IAccessible* m_pIAccessibleStd; // the pointer to the standard COM interface,
|
2003-02-16 06:57:24 -05:00
|
|
|
// for default processing
|
|
|
|
|
2009-02-08 06:45:59 -05:00
|
|
|
wxDECLARE_NO_COPY_CLASS(wxAccessible);
|
2003-02-16 06:57:24 -05:00
|
|
|
};
|
|
|
|
|
2004-08-16 08:45:46 -04:00
|
|
|
#endif //wxUSE_ACCESSIBILITY
|
|
|
|
|
2003-02-16 06:57:24 -05:00
|
|
|
#endif //_WX_ACCESS_H_
|
|
|
|
|