4#ifndef QWINDOWSUIAUTOMATION_H
5#define QWINDOWSUIAUTOMATION_H
7#include <QtGui/qtguiglobal.h>
8#if QT_CONFIG(accessibility)
10#include <uiautomation.h>
18#ifndef UIA_IsReadOnlyAttributeId
19#define UIA_IsReadOnlyAttributeId 40015
21#ifndef UIA_StrikethroughStyleAttributeId
22#define UIA_StrikethroughStyleAttributeId 40026
24#ifndef UIA_StyleIdAttributeId
25#define UIA_StyleIdAttributeId 40034
27#ifndef UIA_CaretPositionAttributeId
28#define UIA_CaretPositionAttributeId 40038
31#ifndef StyleId_Heading1
32#define StyleId_Heading1 70001
34#ifndef StyleId_Heading2
35#define StyleId_Heading2 70002
37#ifndef StyleId_Heading3
38#define StyleId_Heading3 70003
40#ifndef StyleId_Heading4
41#define StyleId_Heading4 70004
43#ifndef StyleId_Heading5
44#define StyleId_Heading5 70005
46#ifndef StyleId_Heading6
47#define StyleId_Heading6 70006
49#ifndef StyleId_Heading7
50#define StyleId_Heading7 70007
52#ifndef StyleId_Heading8
53#define StyleId_Heading8 70008
55#ifndef StyleId_Heading9
56#define StyleId_Heading9 70009
59#if !defined(UIA_SelectionPattern2Id)
60#define UIA_SelectionPattern2Id 10034
66 CaretPosition_Unknown = 0,
67 CaretPosition_EndOfLine = 1,
68 CaretPosition_BeginningOfLine = 2
71enum TextDecorationLineStyle {
72 TextDecorationLineStyle_None = 0,
73 TextDecorationLineStyle_Single = 1,
74 TextDecorationLineStyle_WordsOnly = 2,
75 TextDecorationLineStyle_Double = 3,
76 TextDecorationLineStyle_Dot = 4,
77 TextDecorationLineStyle_Dash = 5,
78 TextDecorationLineStyle_DashDot = 6,
79 TextDecorationLineStyle_DashDotDot = 7,
80 TextDecorationLineStyle_Wavy = 8,
81 TextDecorationLineStyle_ThickSingle = 9,
82 TextDecorationLineStyle_DoubleWavy = 11,
83 TextDecorationLineStyle_ThickWavy = 12,
84 TextDecorationLineStyle_LongDash = 13,
85 TextDecorationLineStyle_ThickDash = 14,
86 TextDecorationLineStyle_ThickDashDot = 15,
87 TextDecorationLineStyle_ThickDashDotDot = 16,
88 TextDecorationLineStyle_ThickDot = 17,
89 TextDecorationLineStyle_ThickLongDash = 18,
90 TextDecorationLineStyle_Other = -1
94BOOL WINAPI UiaClientsAreListening();
96#ifndef __ISelectionProvider2_INTERFACE_DEFINED__
97#define __ISelectionProvider2_INTERFACE_DEFINED__
98DEFINE_GUID(IID_ISelectionProvider2, 0x14f68475, 0xee1c, 0x44f6, 0xa8, 0x69, 0xd2, 0x39, 0x38, 0x1f, 0x0f, 0xe7);
99MIDL_INTERFACE(
"14f68475-ee1c-44f6-a869-d239381f0fe7")
100ISelectionProvider2 :
public ISelectionProvider
103 virtual HRESULT STDMETHODCALLTYPE get_FirstSelectedItem(__RPC__deref_out_opt IRawElementProviderSimple **retVal) = 0;
104 virtual HRESULT STDMETHODCALLTYPE get_LastSelectedItem(__RPC__deref_out_opt IRawElementProviderSimple **retVal) = 0;
105 virtual HRESULT STDMETHODCALLTYPE get_CurrentSelectedItem(__RPC__deref_out_opt IRawElementProviderSimple **retVal) = 0;
106 virtual HRESULT STDMETHODCALLTYPE get_ItemCount(__RPC__out
int *retVal) = 0;
108#ifdef __CRT_UUID_DECL
109__CRT_UUID_DECL(ISelectionProvider2, 0x14f68475, 0xee1c, 0x44f6, 0xa8, 0x69, 0xd2, 0x39, 0x38, 0x1f, 0x0f, 0xe7)