4#ifndef QWINDOWSUIAMAINPROVIDER_H
5#define QWINDOWSUIAMAINPROVIDER_H
7#include <QtGui/qtguiglobal.h>
8#if QT_CONFIG(accessibility)
12#include <QtCore/qpointer.h>
13#include <QtCore/qsharedpointer.h>
14#include <QtCore/qmutex.h>
15#include <QtCore/qt_windows.h>
16#include <QtGui/qaccessible.h>
21class QWindowsUiaMainProvider :
22 public QWindowsUiaBaseProvider,
23 public QComObject<IRawElementProviderSimple, IRawElementProviderFragment, IRawElementProviderFragmentRoot>
26 Q_DISABLE_COPY_MOVE(QWindowsUiaMainProvider)
28 static QWindowsUiaMainProvider *providerForAccessible(QAccessibleInterface *accessible);
29 explicit QWindowsUiaMainProvider(QAccessibleInterface *
a);
30 virtual ~QWindowsUiaMainProvider();
31 static void notifyFocusChange(QAccessibleEvent *
event);
32 static void notifyStateChange(QAccessibleStateChangeEvent *
event);
33 static void notifyValueChange(QAccessibleValueChangeEvent *
event);
34 static void notifyNameChange(QAccessibleEvent *
event);
35 static void notifySelectionChange(QAccessibleEvent *
event);
36 static void notifyTextChange(QAccessibleEvent *
event);
37 static void raiseNotification(QAccessibleAnnouncementEvent *
event);
40 HRESULT STDMETHODCALLTYPE QueryInterface(REFIID
id, LPVOID *iface)
override;
41 ULONG STDMETHODCALLTYPE
Release()
override;
44 HRESULT STDMETHODCALLTYPE get_ProviderOptions(ProviderOptions *pRetVal)
override;
45 HRESULT STDMETHODCALLTYPE GetPatternProvider(PATTERNID idPattern, IUnknown **pRetVal)
override;
46 HRESULT STDMETHODCALLTYPE GetPropertyValue(PROPERTYID idProp, VARIANT *pRetVal)
override;
47 HRESULT STDMETHODCALLTYPE get_HostRawElementProvider(IRawElementProviderSimple **pRetVal)
override;
50 HRESULT STDMETHODCALLTYPE Navigate(NavigateDirection
direction, IRawElementProviderFragment **pRetVal)
override;
51 HRESULT STDMETHODCALLTYPE GetRuntimeId(SAFEARRAY **pRetVal)
override;
52 HRESULT STDMETHODCALLTYPE get_BoundingRectangle(UiaRect *pRetVal)
override;
53 HRESULT STDMETHODCALLTYPE GetEmbeddedFragmentRoots(SAFEARRAY **pRetVal)
override;
54 HRESULT STDMETHODCALLTYPE SetFocus()
override;
55 HRESULT STDMETHODCALLTYPE get_FragmentRoot(IRawElementProviderFragmentRoot **pRetVal)
override;
58 HRESULT STDMETHODCALLTYPE ElementProviderFromPoint(
double x,
double y, IRawElementProviderFragment **pRetVal)
override;
59 HRESULT STDMETHODCALLTYPE GetFocus(IRawElementProviderFragment **pRetVal)
override;
62 QString automationIdForAccessible(
const QAccessibleInterface *accessible);
63 static void fillVariantArrayForRelation(QAccessibleInterface *accessible, QAccessible::Relation relation, VARIANT *pRetVal);
\macro QT_RESTRICTED_CAST_FROM_ASCII
Combined button and popup list for selecting options.
GLint GLint GLint GLint GLint x
[0]
GLboolean GLboolean GLboolean GLboolean a
[7]