2003-02-16 06:57:24 -05:00
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Name: ole/access.h
|
|
|
|
// Purpose: declaration of the wxAccessible class
|
|
|
|
// Author: Julian Smart
|
|
|
|
// Modified by:
|
|
|
|
// Created: 2003-02-12
|
|
|
|
// RCS-ID: $Id$
|
|
|
|
// Copyright: (c) 2003 Julian Smart
|
|
|
|
// Licence: wxWindows licence
|
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#ifndef _WX_ACCESS_H_
|
|
|
|
#define _WX_ACCESS_H_
|
|
|
|
|
2003-08-09 08:38:21 -04:00
|
|
|
#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
|
2003-02-16 06:57:24 -05:00
|
|
|
#pragma interface
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if !wxUSE_ACCESSIBILITY
|
|
|
|
#error "You should #define wxUSE_ACCESSIBILITY to 1 to compile this file!"
|
|
|
|
#endif //wxUSE_ACCESSIBILITY
|
|
|
|
|
|
|
|
// ----------------------------------------------------------------------------
|
|
|
|
// forward declarations
|
|
|
|
// ----------------------------------------------------------------------------
|
|
|
|
|
|
|
|
class wxIAccessible;
|
|
|
|
class WXDLLEXPORT wxWindow;
|
|
|
|
|
|
|
|
// ----------------------------------------------------------------------------
|
|
|
|
// macros
|
|
|
|
// ----------------------------------------------------------------------------
|
|
|
|
|
|
|
|
// ----------------------------------------------------------------------------
|
|
|
|
// wxAccessible implements accessibility behaviour.
|
|
|
|
// ----------------------------------------------------------------------------
|
|
|
|
|
|
|
|
class WXDLLEXPORT wxAccessible : public wxAccessibleBase
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
wxAccessible(wxWindow *win = NULL);
|
|
|
|
virtual ~wxAccessible();
|
|
|
|
|
|
|
|
// Overridables
|
|
|
|
|
|
|
|
// Accessors
|
|
|
|
|
|
|
|
// Returns the wxIAccessible pointer
|
|
|
|
wxIAccessible* GetIAccessible() { return m_pIAccessible; }
|
|
|
|
|
|
|
|
// Returns the IAccessible standard interface pointer
|
|
|
|
void* GetIAccessibleStd() ;
|
|
|
|
|
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
|
|
|
|
void* m_pIAccessibleStd; // the pointer to the standard COM interface,
|
|
|
|
// for default processing
|
|
|
|
|
|
|
|
DECLARE_NO_COPY_CLASS(wxAccessible)
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif //_WX_ACCESS_H_
|
|
|
|
|