Debian Codegraph @

mingw-w64-headers/include/uiautomationcore.idl

raw
1 /*
2 * Copyright 2012 Jacek Caban for CodeWeavers
3 *
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
8 *
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
13 *
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
17 */
18
19 #define DO_NO_IMPORTS
20 import "oaidl.idl";
21 import "oleacc.idl";
22
23 enum NavigateDirection {
24 NavigateDirection_Parent = 0x0000,
25 NavigateDirection_NextSibling = 0x0001,
26 NavigateDirection_PreviousSibling = 0x0002,
27 NavigateDirection_FirstChild = 0x0003,
28 NavigateDirection_LastChild = 0x0004,
29 };
30
31 enum ProviderOptions {
32 ProviderOptions_ClientSideProvider = 0x0001,
33 ProviderOptions_ServerSideProvider = 0x0002,
34 ProviderOptions_NonClientAreaProvider = 0x0004,
35 ProviderOptions_OverrideProvider = 0x0008,
36 ProviderOptions_ProviderOwnsSetFocus = 0x0010,
37 ProviderOptions_UseComThreading = 0x0020,
38 ProviderOptions_RefuseNonClientSupport = 0x0040,
39 ProviderOptions_HasNativeIAccessible = 0x0080,
40 ProviderOptions_UseClientCoordinates = 0x0100,
41 };
42
43 enum StructureChangeType {
44 StructureChangeType_ChildAdded = 0x0000,
45 StructureChangeType_ChildRemoved = 0x0001,
46 StructureChangeType_ChildrenInvalidated = 0x0002,
47 StructureChangeType_ChildrenBulkAdded = 0x0003,
48 StructureChangeType_ChildrenBulkRemoved = 0x0004,
49 StructureChangeType_ChildrenReordered = 0x0005,
50 };
51
52 enum TextEditChangeType {
53 TextEditChangeType_None = 0x0000,
54 TextEditChangeType_AutoCorrect = 0x0001,
55 TextEditChangeType_Composition = 0x0002,
56 TextEditChangeType_CompositionFinalized = 0x0003,
57 TextEditChangeType_AutoComplete = 0x0004,
58 };
59
60 enum OrientationType {
61 OrientationType_None = 0x0000,
62 OrientationType_Horizontal = 0x0001,
63 OrientationType_Vertical = 0x0002,
64 };
65
66 enum DockPosition {
67 DockPosition_Top = 0x0000,
68 DockPosition_Left = 0x0001,
69 DockPosition_Bottom = 0x0002,
70 DockPosition_Right = 0x0003,
71 DockPosition_Fill = 0x0004,
72 DockPosition_None = 0x0005,
73 };
74
75 enum ExpandCollapseState {
76 ExpandCollapseState_Collapsed = 0x0000,
77 ExpandCollapseState_Expanded = 0x0001,
78 ExpandCollapseState_PartiallyExpanded = 0x0002,
79 ExpandCollapseState_LeafNode = 0x0003,
80 };
81
82 enum ScrollAmount {
83 ScrollAmount_LargeDecrement = 0x0000,
84 ScrollAmount_SmallDecrement = 0x0001,
85 ScrollAmount_NoAmount = 0x0002,
86 ScrollAmount_LargeIncrement = 0x0003,
87 ScrollAmount_SmallIncrement = 0x0004,
88 };
89
90 enum RowOrColumnMajor {
91 RowOrColumnMajor_RowMajor = 0x0000,
92 RowOrColumnMajor_ColumnMajor = 0x0001,
93 RowOrColumnMajor_Indeterminate = 0x0002,
94 };
95
96 enum ToggleState {
97 ToggleState_Off = 0x0000,
98 ToggleState_On = 0x0001,
99 ToggleState_Indeterminate = 0x0002,
100 };
101
102 enum WindowVisualState {
103 WindowVisualState_Normal = 0x0000,
104 WindowVisualState_Maximized = 0x0001,
105 WindowVisualState_Minimized = 0x0002,
106 };
107
108 enum SynchronizedInputType {
109 SynchronizedInputType_KeyUp = 0x0001,
110 SynchronizedInputType_KeyDown = 0x0002,
111 SynchronizedInputType_LeftMouseUp = 0x0004,
112 SynchronizedInputType_LeftMouseDown = 0x0008,
113 SynchronizedInputType_RightMouseUp = 0x0010,
114 SynchronizedInputType_RightMouseDown = 0x0020,
115 };
116
117 cpp_quote("DEFINE_ENUM_FLAG_OPERATORS(SynchronizedInputType)")
118
119 enum WindowInteractionState {
120 WindowInteractionState_Running = 0x0000,
121 WindowInteractionState_Closing = 0x0001,
122 WindowInteractionState_ReadyForUserInteraction = 0x0002,
123 WindowInteractionState_BlockedByModalWindow = 0x0003,
124 WindowInteractionState_NotResponding = 0x0004,
125 };
126
127 enum TextUnit {
128 TextUnit_Character = 0x0000,
129 TextUnit_Format = 0x0001,
130 TextUnit_Word = 0x0002,
131 TextUnit_Line = 0x0003,
132 TextUnit_Paragraph = 0x0004,
133 TextUnit_Page = 0x0005,
134 TextUnit_Document = 0x0006,
135 };
136
137 enum TextPatternRangeEndpoint {
138 TextPatternRangeEndpoint_Start = 0x0000,
139 TextPatternRangeEndpoint_End = 0x0001,
140 };
141
142 enum SupportedTextSelection {
143 SupportedTextSelection_None = 0x0000,
144 SupportedTextSelection_Single = 0x0001,
145 SupportedTextSelection_Multiple = 0x0002,
146 };
147
148 enum LiveSetting {
149 Off = 0x0000,
150 Polite = 0x0001,
151 Assertive = 0x0002,
152 };
153
154 enum ZoomUnit {
155 ZoomUnit_NoAmount = 0x0000,
156 ZoomUnit_LargeDecrement = 0x0001,
157 ZoomUnit_SmallDecrement = 0x0002,
158 ZoomUnit_LargeIncrement = 0x0003,
159 ZoomUnit_SmallIncrement = 0x0004,
160 };
161
162 enum NotificationProcessing {
163 NotificationProcessing_ImportantAll = 0x0000,
164 NotificationProcessing_ImportantMostRecent = 0x0001,
165 NotificationProcessing_All = 0x0002,
166 NotificationProcessing_MostRecent = 0x0003,
167 NotificationProcessing_CurrentThenMostRecent = 0x0004,
168 };
169
170 enum NotificationKind {
171 NotificationKind_ItemAdded = 0x0000,
172 NotificationKind_ItemRemoved = 0x0001,
173 NotificationKind_ActionCompleted = 0x0002,
174 NotificationKind_ActionAborted = 0x0003,
175 NotificationKind_Other = 0x0004,
176 };
177
178 typedef int PROPERTYID;
179 typedef int PATTERNID;
180 typedef int EVENTID;
181 typedef int TEXTATTRIBUTEID;
182 typedef int CONTROLTYPEID;
183 typedef int LANDMARKTYPEID;
184 typedef int METADATAID;
185 typedef int HEADINGLEVELID;
186
187 struct UiaRect {
188 double left;
189 double top;
190 double width;
191 double height;
192 };
193
194 struct UiaPoint {
195 double x;
196 double y;
197 };
198
199 struct UiaChangeInfo {
200 int uiaId;
201 VARIANT payload;
202 VARIANT extraInfo;
203 };
204
205 [
206 version(1.0),
207 uuid(930299ce-9965-4dec-b0f4-a54848d4b667),
208 lcid(0),
209 id(3),
210 hidden
211 ]
212 library UIA
213 {
214 importlib("stdole2.tlb");
215
216 [
217 object,
218 uuid(d6dd68d1-86fd-4332-8666-9abedea2d24c),
219 pointer_default(unique),
220 oleautomation
221 ]
222 interface IRawElementProviderSimple : IUnknown
223 {
224 [propget] HRESULT ProviderOptions([out, retval] enum ProviderOptions *pRetVal);
225
226 HRESULT GetPatternProvider(
227 [in] PATTERNID patternId,
228 [out, retval] IUnknown **pRetVal);
229
230 HRESULT GetPropertyValue(
231 [in] PROPERTYID propertyId,
232 [out, retval] VARIANT *pRetVal);
233
234 [propget] HRESULT HostRawElementProvider([out, retval] IRawElementProviderSimple **pRetVal);
235 }
236
237 [
238 object,
239 uuid(a0a839a9-8da1-4a82-806a-8e0d44e79f56),
240 pointer_default(unique),
241 oleautomation
242 ]
243 interface IRawElementProviderSimple2 : IRawElementProviderSimple
244 {
245 HRESULT ShowContextMenu();
246 }
247
248 [
249 object,
250 uuid(fcf5d820-d7ec-4613-bdf6-42a84ce7daaf),
251 pointer_default(unique),
252 oleautomation
253 ]
254 interface IRawElementProviderSimple3 : IRawElementProviderSimple2
255 {
256 HRESULT GetMetadataValue(
257 [in] int targetId,
258 [in] METADATAID metadataId,
259 [out, retval] VARIANT *returnVal);
260 }
261
262 [
263 object,
264 uuid(f8b80ada-2c44-48d0-89be-5ff23c9cd875),
265 pointer_default(unique),
266 oleautomation
267 ]
268 interface IAccessibleEx : IUnknown
269 {
270 HRESULT GetObjectForChild(
271 [in] long idChild,
272 [out, retval] IAccessibleEx **pRetVal);
273
274 HRESULT GetIAccessiblePair(
275 [out] IAccessible **ppAcc,
276 [out] long *pidChild);
277
278 HRESULT GetRuntimeId(
279 [out, retval] SAFEARRAY(int) *pRetVal);
280
281 HRESULT ConvertReturnedElement(
282 [in] IRawElementProviderSimple *pIn,
283 [out] IAccessibleEx **ppRetValOut);
284 }
285
286 interface IRawElementProviderFragmentRoot;
287
288 [
289 object,
290 uuid(f7063da8-8359-439c-9297-bbc5299a7d87),
291 pointer_default(unique),
292 oleautomation
293 ]
294 interface IRawElementProviderFragment : IUnknown
295 {
296 HRESULT Navigate(
297 [in] enum NavigateDirection direction,
298 [out, retval] IRawElementProviderFragment **pRetVal);
299
300 HRESULT GetRuntimeId([out, retval] SAFEARRAY(int) *pRetVal);
301 HRESULT get_BoundingRectangle([out, retval] struct UiaRect *pRetVal);
302 /*
303 * FIXME: Current versions of Windows SDK use
304 * SAFEARRAY(IRawElementProviderFragmentRoot *) instead of
305 * SAFEARRAY(VARIANT). The new type is currently unsupported
306 * in widl, we should switch to it when it is.
307 */
308 HRESULT GetEmbeddedFragmentRoots([out, retval] SAFEARRAY(VARIANT) *pRetVal);
309 HRESULT SetFocus();
310
311 [propget] HRESULT FragmentRoot([out, retval] IRawElementProviderFragmentRoot **pRetVal);
312 }
313
314 [
315 object,
316 uuid(620ce2a5-ab8f-40a9-86cb-de3c75599b58),
317 pointer_default(unique),
318 oleautomation
319 ]
320 interface IRawElementProviderFragmentRoot : IUnknown
321 {
322 HRESULT ElementProviderFromPoint(
323 [in] double x,
324 [in] double y,
325 [out, retval] IRawElementProviderFragment **pRetVal);
326
327 HRESULT GetFocus([out, retval] IRawElementProviderFragment **pRetVal);
328 }
329
330
331 [
332 object,
333 uuid(1d5df27c-8947-4425-b8d9-79787bb460b8),
334 pointer_default(unique),
335 oleautomation
336 ]
337 interface IRawElementProviderHwndOverride : IUnknown
338 {
339 HRESULT GetOverrideProviderForHwnd(
340 [in] HWND hwnd,
341 [out, retval] IRawElementProviderSimple **pRetVal);
342 }
343
344 [
345 object,
346 uuid(a407b27b-0f6d-4427-9292-473c7bf93258),
347 pointer_default(unique),
348 oleautomation
349 ]
350 interface IRawElementProviderAdviseEvents : IUnknown
351 {
352 HRESULT AdviseEventAdded(
353 [in] EVENTID eventId,
354 [in] SAFEARRAY(PROPERTYID) propertyIDs);
355 HRESULT AdviseEventRemoved(
356 [in] EVENTID eventId,
357 [in] SAFEARRAY(PROPERTYID) propertyIDs);
358 }
359
360 [
361 object,
362 uuid(4fd82b78-a43e-46ac-9803-0a6969c7c183),
363 pointer_default(unique),
364 oleautomation
365 ]
366 interface IProxyProviderWinEventSink : IUnknown
367 {
368 HRESULT AddAutomationPropertyChangedEvent(
369 [in] IRawElementProviderSimple *pProvider,
370 [in] PROPERTYID id,
371 [in] VARIANT newValue);
372
373 HRESULT AddAutomationEvent(
374 [in] IRawElementProviderSimple *pProvider,
375 [in] EVENTID id);
376
377 HRESULT AddStructureChangedEvent(
378 [in] IRawElementProviderSimple *pProvider,
379 [in] enum StructureChangeType structureChangeType,
380 [in] SAFEARRAY(int) runtimeId);
381 }
382
383 [
384 object,
385 uuid(89592ad4-f4e0-43d5-a3b6-bad7e111b435),
386 pointer_default(unique),
387 oleautomation
388 ]
389 interface IProxyProviderWinEventHandler : IUnknown
390 {
391 HRESULT RespondToWinEvent(
392 [in] DWORD idWinEvent,
393 [in] HWND hwnd,
394 [in] LONG idObject,
395 [in] LONG idChild,
396 [in] IProxyProviderWinEventSink *pSink);
397 }
398
399 [
400 object,
401 uuid(0a2a93cc-bfad-42ac-9b2e-0991fb0d3ea0),
402 pointer_default(unique),
403 oleautomation
404 ]
405 interface IRawElementProviderWindowlessSite : IUnknown
406 {
407 HRESULT GetAdjacentFragment(
408 [in] enum NavigateDirection direction,
409 [out, retval] IRawElementProviderFragment **ppParent);
410
411 HRESULT GetRuntimeIdPrefix([out, retval] SAFEARRAY(int) *pRetVal);
412 }
413
414 [
415 object,
416 uuid(33ac331b-943e-4020-b295-db37784974a3),
417 pointer_default(unique),
418 oleautomation
419 ]
420 interface IAccessibleHostingElementProviders : IUnknown
421 {
422 /*
423 * FIXME: Current versions of Windows SDK use
424 * SAFEARRAY(IRawElementProviderSimple *) instead of
425 * SAFEARRAY(VARIANT). The new type is currently unsupported
426 * in widl, we should switch to it when it is.
427 */
428 HRESULT GetEmbeddedFragmentRoots([out,retval] SAFEARRAY(VARIANT) *pRetVal);
429
430 HRESULT GetObjectIdForProvider (
431 [in] IRawElementProviderSimple *pProvider,
432 [out] long *pidObject);
433 }
434
435 [
436 object,
437 uuid(24be0b07-d37d-487a-98cf-a13ed465e9b3),
438 pointer_default(unique),
439 oleautomation
440 ]
441 interface IRawElementProviderHostingAccessibles : IUnknown
442 {
443 /*
444 * FIXME: Current versions of Windows SDK use
445 * SAFEARRAY(IAccessible *) instead of
446 * SAFEARRAY(VARIANT). The new type is currently unsupported
447 * in widl, we should switch to it when it is.
448 */
449 HRESULT GetEmbeddedAccessibles([out, retval] SAFEARRAY(VARIANT) *pRetVal);
450 }
451
452 [
453 object,
454 uuid(e44c3566-915d-4070-99c6-047bff5a08f5),
455 pointer_default(unique),
456 oleautomation
457 ]
458 interface ILegacyIAccessibleProvider : IUnknown
459 {
460 HRESULT Select(long flagsSelect);
461 HRESULT DoDefaultAction();
462 HRESULT SetValue(LPCWSTR szValue);
463 HRESULT GetIAccessible([out, retval] IAccessible **ppAccessible);
464
465 [propget] HRESULT ChildId([out, retval] int *pRetVal);
466 [propget] HRESULT Name([out, retval] BSTR *pszName);
467 [propget] HRESULT Value([out, retval] BSTR *pszValue);
468 [propget] HRESULT Description([out, retval] BSTR *pszDescription);
469 [propget] HRESULT Role([out, retval] DWORD *pdwRole);
470 [propget] HRESULT State([out, retval] DWORD *pdwState);
471 [propget] HRESULT Help([out, retval] BSTR *pszHelp);
472 [propget] HRESULT KeyboardShortcut([out, retval] BSTR *pszKeyboardShortcut);
473 /*
474 * FIXME: Current versions of Windows SDK use
475 * SAFEARRAY(IRawElementProviderSimple *) instead of
476 * SAFEARRAY(VARIANT). The new type is currently unsupported
477 * in widl, we should switch to it when it is.
478 */
479 HRESULT GetSelection([out, retval] SAFEARRAY(VARIANT) *pvarSelectedChildren);
480 [propget] HRESULT DefaultAction([out, retval] BSTR *pszDefaultAction);
481 }
482
483 [
484 object,
485 uuid(159bc72c-4ad3-485e-9637-d7052edf0146),
486 pointer_default(unique),
487 oleautomation
488 ]
489 interface IDockProvider : IUnknown
490 {
491 HRESULT SetDockPosition([in] enum DockPosition dockPosition);
492 [propget] HRESULT DockPosition([out, retval] enum DockPosition *pRetVal);
493 };
494
495 [
496 object,
497 uuid(d847d3a5-cab0-4a98-8c32-ecb45c59ad24),
498 pointer_default(unique),
499 oleautomation
500 ]
501 interface IExpandCollapseProvider : IUnknown
502 {
503 HRESULT Expand();
504 HRESULT Collapse();
505 [propget] HRESULT ExpandCollapseState([out, retval] enum ExpandCollapseState *pRetVal);
506 };
507
508 [
509 object,
510 uuid(b17d6187-0907-464b-a168-0ef17a1572b1),
511 pointer_default(unique),
512 oleautomation
513 ]
514 interface IGridProvider : IUnknown
515 {
516 HRESULT GetItem(
517 [in] int row,
518 [in] int column,
519 [out, retval] IRawElementProviderSimple **pRetVal);
520
521 [propget] HRESULT RowCount([out, retval] int *pRetVal);
522 [propget] HRESULT ColumnCount([out, retval] int *pRetVal);
523 };
524
525 [
526 object,
527 uuid(d02541f1-fb81-4d64-ae32-f520f8a6dbd1),
528 pointer_default(unique),
529 oleautomation
530 ]
531 interface IGridItemProvider : IUnknown
532 {
533 [propget] HRESULT Row([out, retval] int *pRetVal);
534 [propget] HRESULT Column([out, retval] int *pRetVal);
535 [propget] HRESULT RowSpan([out, retval] int *pRetVal);
536 [propget] HRESULT ColumnSpan([out, retval] int *pRetVal);
537 [propget] HRESULT ContainingGrid([out, retval] IRawElementProviderSimple **pRetVal);
538 };
539
540 [
541 object,
542 uuid(54fcb24b-e18e-47a2-b4d3-eccbe77599a2),
543 pointer_default(unique),
544 oleautomation
545 ]
546 interface IInvokeProvider : IUnknown
547 {
548 HRESULT Invoke();
549 };
550
551 [
552 object,
553 uuid(6278cab1-b556-4a1a-b4e0-418acc523201),
554 pointer_default(unique),
555 oleautomation
556 ]
557 interface IMultipleViewProvider : IUnknown
558 {
559 HRESULT GetViewName(
560 [in] int viewId,
561 [out, retval] BSTR *pRetVal);
562
563 HRESULT SetCurrentView([in] int viewId);
564 [propget] HRESULT CurrentView([out, retval] int *pRetVal);
565 HRESULT GetSupportedViews([out, retval] SAFEARRAY(int) *pRetVal);
566 };
567
568 [
569 object,
570 uuid(36dc7aef-33e6-4691-afe1-2be7274b3d33),
571 pointer_default(unique),
572 oleautomation
573 ]
574 interface IRangeValueProvider : IUnknown
575 {
576 HRESULT SetValue([in] double val);
577 [propget] HRESULT Value([out, retval] double *pRetVal);
578 [propget] HRESULT IsReadOnly([out, retval] BOOL *pRetVal);
579 [propget] HRESULT Maximum([out, retval] double *pRetVal);
580 [propget] HRESULT Minimum([out, retval] double *pRetVal);
581 [propget] HRESULT LargeChange([out, retval] double *pRetVal);
582 [propget] HRESULT SmallChange([out, retval] double *pRetVal);
583 };
584
585 [
586 object,
587 uuid(2360c714-4bf1-4b26-ba65-9b21316127eb),
588 pointer_default(unique),
589 oleautomation
590 ]
591 interface IScrollItemProvider : IUnknown
592 {
593 HRESULT ScrollIntoView();
594 };
595
596 [
597 object,
598 uuid(fb8b03af-3bdf-48d4-bd36-1a65793be168),
599 pointer_default(unique),
600 oleautomation
601 ]
602 interface ISelectionProvider : IUnknown
603 {
604 /*
605 * FIXME: Current versions of Windows SDK use
606 * SAFEARRAY(IRawElementProviderSimple *) instead of
607 * SAFEARRAY(VARIANT).
608 */
609 HRESULT GetSelection([out, retval] SAFEARRAY(VARIANT) *pRetVal);
610 [propget] HRESULT CanSelectMultiple([out, retval] BOOL *pRetVal);
611 [propget] HRESULT IsSelectionRequired([out, retval] BOOL *pRetVal);
612 };
613
614 [
615 object,
616 uuid(14f68475-ee1c-44f6-a869-d239381f0fe7),
617 pointer_default(unique),
618 oleautomation
619 ]
620 interface ISelectionProvider2 : ISelectionProvider
621 {
622 [propget] HRESULT FirstSelectedItem([out, retval] IRawElementProviderSimple **val);
623 [propget] HRESULT LastSelectedItem([out, retval] IRawElementProviderSimple **val);
624 [propget] HRESULT CurrentSelectedItem([out, retval] IRawElementProviderSimple **val);
625 [propget] HRESULT ItemCount([out, retval] int *val);
626 }
627
628 [
629 object,
630 uuid(b38b8077-1fc3-42a5-8cae-d40c2215055a),
631 pointer_default(unique),
632 oleautomation
633 ]
634 interface IScrollProvider : IUnknown
635 {
636 HRESULT Scroll(
637 [in] enum ScrollAmount horizontalAmount,
638 [in] enum ScrollAmount verticalAmount);
639 HRESULT SetScrollPercent(
640 [in] double horizontalPercent,
641 [in] double verticalPercent);
642
643 [propget] HRESULT HorizontalScrollPercent([out, retval] double *pRetVal);
644 [propget] HRESULT VerticalScrollPercent([out, retval] double *pRetVal);
645 [propget] HRESULT HorizontalViewSize([out, retval] double *pRetVal);
646 [propget] HRESULT VerticalViewSize([out, retval] double *pRetVal);
647 [propget] HRESULT HorizontallyScrollable([out, retval] BOOL *pRetVal);
648 [propget] HRESULT VerticallyScrollable([out, retval] BOOL *pRetVal);
649 };
650
651 [
652 object,
653 uuid(2acad808-b2d4-452d-a407-91ff1ad167b2),
654 pointer_default(unique),
655 oleautomation
656 ]
657 interface ISelectionItemProvider : IUnknown
658 {
659 HRESULT Select();
660 HRESULT AddToSelection();
661 HRESULT RemoveFromSelection();
662 [propget] HRESULT IsSelected([out, retval] BOOL *pRetVal);
663 [propget] HRESULT SelectionContainer([out, retval] IRawElementProviderSimple **pRetVal);
664 };
665
666 [
667 object,
668 uuid(29db1a06-02ce-4cf7-9b42-565d4fab20ee),
669 pointer_default(unique),
670 oleautomation
671 ]
672 interface ISynchronizedInputProvider : IUnknown
673 {
674 HRESULT StartListening([in] enum SynchronizedInputType inputType);
675 HRESULT Cancel();
676 };
677
678 [
679 object,
680 uuid(9c860395-97b3-490a-b52a-858cc22af166),
681 pointer_default(unique),
682 oleautomation
683 ]
684 interface ITableProvider : IUnknown
685 {
686 /*
687 * FIXME: Current versions of Windows SDK use
688 * SAFEARRAY(IRawElementProviderSimple *) instead of
689 * SAFEARRAY(VARIANT).
690 */
691 HRESULT GetRowHeaders([out, retval] SAFEARRAY(VARIANT) *pRetVal);
692 HRESULT GetColumnHeaders([out, retval] SAFEARRAY(VARIANT) *pRetVal);
693 [propget] HRESULT RowOrColumnMajor([out, retval] enum RowOrColumnMajor *pRetVal);
694 };
695
696 [
697 object,
698 uuid(b9734fa6-771f-4d78-9c90-2517999349cd),
699 pointer_default(unique),
700 oleautomation
701 ]
702 interface ITableItemProvider : IUnknown
703 {
704 /*
705 * FIXME: Current versions of Windows SDK use
706 * SAFEARRAY(IRawElementProviderSimple *) instead of
707 * SAFEARRAY(VARIANT).
708 */
709 HRESULT GetRowHeaderItems([out, retval] SAFEARRAY(VARIANT) *pRetVal);
710 HRESULT GetColumnHeaderItems([out, retval] SAFEARRAY(VARIANT) *pRetVal);
711 };
712
713 [
714 object,
715 uuid(56d00bd0-c4f4-433c-a836-1a52a57e0892),
716 pointer_default(unique),
717 oleautomation
718 ]
719 interface IToggleProvider : IUnknown
720 {
721 HRESULT Toggle();
722 [propget] HRESULT ToggleState([out, retval] enum ToggleState *pRetVal);
723 };
724
725 [
726 object,
727 uuid(6829ddc4-4f91-4ffa-b86f-bd3e2987cb4c),
728 pointer_default(unique),
729 oleautomation
730 ]
731 interface ITransformProvider : IUnknown
732 {
733 HRESULT Move(
734 [in] double x,
735 [in] double y);
736 HRESULT Resize(
737 [in] double width,
738 [in] double height);
739
740 HRESULT Rotate([in] double degrees);
741 [propget] HRESULT CanMove([out, retval] BOOL *pRetVal);
742 [propget] HRESULT CanResize([out, retval] BOOL *pRetVal);
743 [propget] HRESULT CanRotate([out, retval] BOOL *pRetVal);
744 };
745
746 [
747 object,
748 uuid(c7935180-6fb3-4201-b174-7df73adbf64a),
749 pointer_default(unique),
750 oleautomation
751 ]
752 interface IValueProvider : IUnknown
753 {
754 HRESULT SetValue([in] LPCWSTR val);
755 [propget] HRESULT Value([out, retval] BSTR *pRetVal);
756 [propget] HRESULT IsReadOnly([out, retval] BOOL *pRetVal);
757 };
758
759 [
760 object,
761 uuid(987df77b-db06-4d77-8f8a-86a9c3bb90b9),
762 pointer_default(unique),
763 oleautomation
764 ]
765 interface IWindowProvider : IUnknown
766 {
767 HRESULT SetVisualState([in] enum WindowVisualState state);
768 HRESULT Close();
769
770 HRESULT WaitForInputIdle(
771 [in] int milliseconds,
772 [out, retval] BOOL *pRetVal);
773
774 [propget] HRESULT CanMaximize([out, retval] BOOL *pRetVal);
775 [propget] HRESULT CanMinimize([out, retval] BOOL *pRetVal);
776 [propget] HRESULT IsModal([out, retval] BOOL *pRetVal);
777 [propget] HRESULT WindowVisualState([out, retval] enum WindowVisualState *pRetVal);
778 [propget] HRESULT WindowInteractionState([out, retval] enum WindowInteractionState *pRetVal);
779 [propget] HRESULT IsTopmost([out, retval] BOOL *pRetVal);
780 };
781
782 [
783 object,
784 uuid(e747770b-39ce-4382-ab30-d8fb3f336f24),
785 pointer_default(unique),
786 oleautomation
787 ]
788 interface IItemContainerProvider : IUnknown
789 {
790 HRESULT FindItemByProperty(
791 [in] IRawElementProviderSimple *pStartAfter,
792 [in] PROPERTYID propertyId,
793 [in] VARIANT value,
794 [out, retval] IRawElementProviderSimple **pFound);
795 };
796
797 [
798 object,
799 uuid(cb98b665-2d35-4fac-ad35-f3c60d0c0b8b),
800 pointer_default(unique),
801 oleautomation
802 ]
803 interface IVirtualizedItemProvider : IUnknown
804 {
805 HRESULT Realize();
806 };
807
808 [
809 object,
810 uuid(3ad86ebd-f5ef-483d-bb18-b1042a475d64),
811 pointer_default(unique),
812 oleautomation
813 ]
814 interface IObjectModelProvider : IUnknown
815 {
816 HRESULT GetUnderlyingObjectModel([out, retval] IUnknown **ppUnknown);
817 };
818
819 [
820 object,
821 uuid(f95c7e80-bd63-4601-9782-445ebff011fc),
822 pointer_default(unique),
823 oleautomation
824 ]
825 interface IAnnotationProvider : IUnknown
826 {
827 [propget] HRESULT AnnotationTypeId([out, retval] int *retVal);
828 [propget] HRESULT AnnotationTypeName([out, retval] BSTR *retVal);
829 [propget] HRESULT Author([out, retval] BSTR *retVal);
830 [propget] HRESULT DateTime([out, retval] BSTR *retVal);
831 [propget] HRESULT Target([out, retval] IRawElementProviderSimple **retVal);
832 };
833
834 [
835 object,
836 uuid(19b6b649-f5d7-4a6d-bdcb-129252be588a),
837 pointer_default(unique),
838 oleautomation
839 ]
840 interface IStylesProvider : IUnknown
841 {
842 [propget] HRESULT StyleId([out, retval] int *retVal);
843 [propget] HRESULT StyleName([out, retval] BSTR *retVal);
844 [propget] HRESULT FillColor([out, retval] int *retVal);
845 [propget] HRESULT FillPatternStyle([out, retval] BSTR *retVal);
846 [propget] HRESULT Shape([out, retval] BSTR *retVal);
847 [propget] HRESULT FillPatternColor([out, retval] int *retVal);
848 [propget] HRESULT ExtendedProperties([out, retval] BSTR *retVal);
849 };
850
851 [
852 object,
853 uuid(6f6b5d35-5525-4f80-b758-85473832ffc7),
854 pointer_default(unique),
855 oleautomation
856 ]
857 interface ISpreadsheetProvider : IUnknown
858 {
859 HRESULT GetItemByName(
860 [in] LPCWSTR name,
861 [out, retval] IRawElementProviderSimple **pRetVal);
862 };
863
864 [
865 object,
866 uuid(eaed4660-7b3d-4879-a2e6-365ce603f3d0),
867 pointer_default(unique),
868 oleautomation
869 ]
870 interface ISpreadsheetItemProvider : IUnknown
871 {
872 [propget] HRESULT Formula([out, retval] BSTR *pRetVal);
873
874 /*
875 * FIXME: Current versions of Windows SDK use
876 * SAFEARRAY(IRawElementProviderSimple *) instead of
877 * SAFEARRAY(VARIANT).
878 */
879 HRESULT GetAnnotationObjects([out, retval] SAFEARRAY(VARIANT) *pRetVal);
880 HRESULT GetAnnotationTypes([out, retval] SAFEARRAY(int) *pRetVal);
881 };
882
883 [
884 object,
885 uuid(4758742f-7ac2-460c-bc48-09fc09308a93),
886 pointer_default(unique),
887 oleautomation
888 ]
889 interface ITransformProvider2 : ITransformProvider
890 {
891 HRESULT Zoom([in] double zoom);
892 [propget] HRESULT CanZoom([out, retval] BOOL *pRetVal);
893 [propget] HRESULT ZoomLevel([out, retval] double *pRetVal);
894 [propget] HRESULT ZoomMinimum([out, retval] double *pRetVal);
895 [propget] HRESULT ZoomMaximum([out, retval] double *pRetVal);
896 HRESULT ZoomByUnit([in] enum ZoomUnit zoomUnit);
897 }
898
899 [
900 object,
901 uuid(6aa7bbbb-7ff9-497d-904f-d20b897929d8),
902 pointer_default(unique),
903 oleautomation
904 ]
905 interface IDragProvider : IUnknown
906 {
907 [propget] HRESULT IsGrabbed([out, retval] BOOL *pRetVal);
908 [propget] HRESULT DropEffect([out, retval] BSTR *pRetVal);
909 [propget] HRESULT DropEffects([out, retval] SAFEARRAY(BSTR) *pRetVal);
910
911 /*
912 * FIXME: Current versions of Windows SDK use
913 * SAFEARRAY(IRawElementProviderSimple *) instead of
914 * SAFEARRAY(VARIANT).
915 */
916 HRESULT GetGrabbedItems([out, retval] SAFEARRAY(VARIANT) *pRetVal);
917 };
918
919 [
920 object,
921 uuid(bae82bfd-358a-481c-85a0-d8b4d90a5d61),
922 pointer_default(unique),
923 oleautomation
924 ]
925 interface IDropTargetProvider : IUnknown
926 {
927 [propget] HRESULT DropTargetEffect([out, retval] BSTR *pRetVal);
928 [propget] HRESULT DropTargetEffects([out, retval] SAFEARRAY(BSTR) *pRetVal);
929 };
930
931 interface ITextRangeProvider;
932 [
933 object,
934 uuid(3589c92c-63f3-4367-99bb-ada653b77cf2),
935 pointer_default(unique),
936 oleautomation
937 ]
938 interface ITextProvider : IUnknown
939 {
940 /*
941 * FIXME: Current versions of Windows SDK use
942 * SAFEARRAY(ITextRangeProvider *) instead of
943 * SAFEARRAY(VARIANT).
944 */
945 HRESULT GetSelection([out, retval] SAFEARRAY(VARIANT) *pRetVal);
946 HRESULT GetVisibleRanges([out, retval] SAFEARRAY(VARIANT) *pRetVal);
947
948 HRESULT RangeFromChild(
949 [in] IRawElementProviderSimple *childElement,
950 [out, retval] ITextRangeProvider **pRetVal);
951 HRESULT RangeFromPoint(
952 [in] struct UiaPoint point,
953 [out, retval] ITextRangeProvider **pRetVal);
954
955 [propget] HRESULT DocumentRange([out, retval] ITextRangeProvider **pRetVal);
956 [propget] HRESULT SupportedTextSelection([out, retval] enum SupportedTextSelection *pRetVal);
957 };
958
959 [
960 object,
961 uuid(0dc5e6ed-3e16-4bf1-8f9a-a979878bc195),
962 pointer_default(unique),
963 oleautomation
964 ]
965 interface ITextProvider2 : ITextProvider
966 {
967 HRESULT RangeFromAnnotation(
968 [in] IRawElementProviderSimple *annotationElement,
969 [out, retval] ITextRangeProvider **pRetVal);
970 HRESULT GetCaretRange(
971 [out] BOOL *isActive,
972 [out, retval] ITextRangeProvider **pRetVal);
973 }
974
975 [
976 object,
977 uuid(ea3605b4-3a05-400e-b5f9-4e91b40f6176),
978 pointer_default(unique),
979 oleautomation
980 ]
981 interface ITextEditProvider : ITextProvider
982 {
983 HRESULT GetActiveComposition([out, retval] ITextRangeProvider **pRetVal);
984 HRESULT GetConversionTarget([out, retval] ITextRangeProvider **pRetVal);
985 }
986
987 [
988 object,
989 uuid(5347ad7b-c355-46f8-aff5-909033582f63),
990 pointer_default(unique),
991 oleautomation
992 ]
993 interface ITextRangeProvider : IUnknown
994 {
995 HRESULT Clone([out, retval] ITextRangeProvider **pRetVal);
996
997 HRESULT Compare(
998 [in] ITextRangeProvider *range,
999 [out, retval] BOOL *pRetVal);
1000 HRESULT CompareEndpoints(
1001 [in] enum TextPatternRangeEndpoint endpoint,
1002 [in] ITextRangeProvider *targetRange,
1003 [in] enum TextPatternRangeEndpoint targetEndpoint,
1004 [out, retval] int *pRetVal);
1005
1006 HRESULT ExpandToEnclosingUnit([in] enum TextUnit unit);
1007
1008 HRESULT FindAttribute(
1009 [in] TEXTATTRIBUTEID attributeId,
1010 [in] VARIANT val,
1011 [in] BOOL backward,
1012 [out, retval] ITextRangeProvider **pRetVal);
1013 HRESULT FindText(
1014 [in] BSTR text,
1015 [in] BOOL backward,
1016 [in] BOOL ignoreCase,
1017 [out, retval] ITextRangeProvider **pRetVal);
1018
1019 HRESULT GetAttributeValue(
1020 [in] TEXTATTRIBUTEID attributeId,
1021 [out, retval] VARIANT *pRetVal);
1022
1023 HRESULT GetBoundingRectangles([out, retval] SAFEARRAY(double) *pRetVal);
1024 HRESULT GetEnclosingElement([out, retval] IRawElementProviderSimple **pRetVal);
1025
1026 HRESULT GetText(
1027 [in] int maxLength,
1028 [out, retval] BSTR *pRetVal);
1029
1030 HRESULT Move(
1031 [in] enum TextUnit unit,
1032 [in] int count,
1033 [out, retval] int *pRetVal);
1034 HRESULT MoveEndpointByUnit(
1035 [in] enum TextPatternRangeEndpoint endpoint,
1036 [in] enum TextUnit unit,
1037 [in] int count,
1038 [out, retval] int *pRetVal);
1039 HRESULT MoveEndpointByRange(
1040 [in] enum TextPatternRangeEndpoint endpoint,
1041 [in] ITextRangeProvider *targetRange,
1042 [in] enum TextPatternRangeEndpoint targetEndpoint);
1043
1044 HRESULT Select();
1045 HRESULT AddToSelection();
1046 HRESULT RemoveFromSelection();
1047 HRESULT ScrollIntoView([in] BOOL alignToTop);
1048
1049 /*
1050 * FIXME: Current versions of Windows SDK use
1051 * SAFEARRAY(IRawElementProviderSimple *) instead of
1052 * SAFEARRAY(VARIANT).
1053 */
1054 HRESULT GetChildren([out, retval] SAFEARRAY(VARIANT) *pRetVal);
1055 };
1056
1057 [
1058 object,
1059 uuid(9bbce42c-1921-4f18-89ca-dba1910a0386),
1060 pointer_default(unique),
1061 oleautomation
1062 ]
1063 interface ITextRangeProvider2 : ITextRangeProvider
1064 {
1065 HRESULT ShowContextMenu();
1066 }
1067
1068 [
1069 object,
1070 uuid(4c2de2b9-c88f-4f88-a111-f1d336b7d1a9),
1071 pointer_default(unique),
1072 oleautomation
1073 ]
1074 interface ITextChildProvider : IUnknown
1075 {
1076 [propget] HRESULT TextContainer([out, retval] IRawElementProviderSimple **pRetVal);
1077 [propget] HRESULT TextRange([out, retval] ITextRangeProvider **pRetVal);
1078 };
1079
1080 [
1081 object,
1082 uuid(2062a28a-8c07-4b94-8e12-7037c622aeb8),
1083 pointer_default(unique),
1084 oleautomation
1085 ]
1086 interface ICustomNavigationProvider : IUnknown
1087 {
1088 HRESULT Navigate(
1089 [in] enum NavigateDirection direction,
1090 [out, retval] IRawElementProviderSimple **pRetVal);
1091 }
1092
1093 enum UIAutomationType {
1094 UIAutomationType_Int = 0x01,
1095 UIAutomationType_Bool = 0x02,
1096 UIAutomationType_String = 0x03,
1097 UIAutomationType_Double = 0x04,
1098 UIAutomationType_Point = 0x05,
1099 UIAutomationType_Rect = 0x06,
1100 UIAutomationType_Element = 0x07,
1101
1102 UIAutomationType_Array = 0x00010000,
1103 UIAutomationType_Out = 0x00020000,
1104
1105 UIAutomationType_IntArray = ( UIAutomationType_Int | UIAutomationType_Array ),
1106 UIAutomationType_BoolArray = ( UIAutomationType_Bool | UIAutomationType_Array ),
1107 UIAutomationType_StringArray = ( UIAutomationType_String | UIAutomationType_Array ),
1108 UIAutomationType_DoubleArray = ( UIAutomationType_Double | UIAutomationType_Array ),
1109 UIAutomationType_PointArray = ( UIAutomationType_Point | UIAutomationType_Array ),
1110 UIAutomationType_RectArray = ( UIAutomationType_Rect | UIAutomationType_Array ),
1111 UIAutomationType_ElementArray = ( UIAutomationType_Element | UIAutomationType_Array ),
1112
1113 UIAutomationType_OutInt = ( UIAutomationType_Int | UIAutomationType_Out ),
1114 UIAutomationType_OutBool = ( UIAutomationType_Bool | UIAutomationType_Out ),
1115 UIAutomationType_OutString = ( UIAutomationType_String | UIAutomationType_Out ),
1116 UIAutomationType_OutDouble = ( UIAutomationType_Double | UIAutomationType_Out ),
1117 UIAutomationType_OutPoint = ( UIAutomationType_Point | UIAutomationType_Out ),
1118 UIAutomationType_OutRect = ( UIAutomationType_Rect | UIAutomationType_Out ),
1119 UIAutomationType_OutElement = ( UIAutomationType_Element | UIAutomationType_Out ),
1120
1121 UIAutomationType_OutIntArray = ( UIAutomationType_Int | UIAutomationType_Array | UIAutomationType_Out ),
1122 UIAutomationType_OutBoolArray = ( UIAutomationType_Bool | UIAutomationType_Array | UIAutomationType_Out ),
1123 UIAutomationType_OutStringArray = ( UIAutomationType_String | UIAutomationType_Array | UIAutomationType_Out ),
1124 UIAutomationType_OutDoubleArray = ( UIAutomationType_Double | UIAutomationType_Array | UIAutomationType_Out ),
1125 UIAutomationType_OutPointArray = ( UIAutomationType_Point | UIAutomationType_Array | UIAutomationType_Out ),
1126 UIAutomationType_OutRectArray = ( UIAutomationType_Rect | UIAutomationType_Array | UIAutomationType_Out ),
1127 UIAutomationType_OutElementArray = ( UIAutomationType_Element | UIAutomationType_Array | UIAutomationType_Out ),
1128 };
1129
1130 cpp_quote("DEFINE_ENUM_FLAG_OPERATORS(UIAutomationType)")
1131
1132 struct UIAutomationParameter {
1133 enum UIAutomationType type;
1134 void *pData;
1135 };
1136
1137 struct UIAutomationPropertyInfo {
1138 GUID guid;
1139 LPCWSTR pProgrammaticName;
1140 enum UIAutomationType type;
1141 };
1142
1143 struct UIAutomationEventInfo {
1144 GUID guid;
1145 LPCWSTR pProgrammaticName;
1146 };
1147
1148 struct UIAutomationMethodInfo {
1149 LPCWSTR pProgrammaticName;
1150 BOOL doSetFocus;
1151 UINT cInParameters;
1152 UINT cOutParameters;
1153 [size_is(cInParameters + cOutParameters)]enum UIAutomationType *pParameterTypes;
1154 [size_is(cInParameters + cOutParameters)]LPCWSTR *pParameterNames;
1155 };
1156
1157 [
1158 object,
1159 uuid(c03a7fe4-9431-409f-bed8-ae7c2299bc8d),
1160 pointer_default(unique),
1161 oleautomation
1162 ]
1163 interface IUIAutomationPatternInstance : IUnknown
1164 {
1165 [local] HRESULT GetProperty(
1166 [in] UINT index,
1167 [in] BOOL cached,
1168 [in] enum UIAutomationType type,
1169 [out] void *pPtr);
1170
1171 [local] HRESULT CallMethod(
1172 [in] UINT index,
1173 [in] const struct UIAutomationParameter *pParams,
1174 [in] UINT cParams);
1175 }
1176
1177 [
1178 object,
1179 uuid(d97022f3-a947-465e-8b2a-ac4315fa54e8),
1180 pointer_default(unique),
1181 oleautomation
1182 ]
1183 interface IUIAutomationPatternHandler : IUnknown
1184 {
1185 HRESULT CreateClientWrapper(
1186 [in] IUIAutomationPatternInstance *pPatternInstance,
1187 [out] IUnknown **pClientWrapper);
1188
1189 [local] HRESULT Dispatch(
1190 [in] IUnknown *pTarget,
1191 [in] UINT index,
1192 [in] const struct UIAutomationParameter *pParams,
1193 [in] UINT cParams);
1194 }
1195
1196 struct UIAutomationPatternInfo {
1197 GUID guid;
1198 LPCWSTR pProgrammaticName;
1199 GUID providerInterfaceId;
1200 GUID clientInterfaceId;
1201 UINT cProperties;
1202 [size_is(cProperties)]struct UIAutomationPropertyInfo *pProperties;
1203 UINT cMethods;
1204 [size_is(cMethods)]struct UIAutomationMethodInfo *pMethods;
1205 UINT cEvents;
1206 [size_is(cEvents)]struct UIAutomationEventInfo *pEvents;
1207 IUIAutomationPatternHandler *pPatternHandler;
1208 };
1209
1210 [
1211 object,
1212 uuid(8609c4ec-4a1a-4d88-a357-5a66e060e1cf),
1213 pointer_default(unique),
1214 oleautomation
1215 ]
1216 interface IUIAutomationRegistrar : IUnknown
1217 {
1218 HRESULT RegisterProperty(
1219 [in] const struct UIAutomationPropertyInfo *property,
1220 [out] PROPERTYID *propertyId);
1221
1222 HRESULT RegisterEvent(
1223 [in] const struct UIAutomationEventInfo *event,
1224 [out] EVENTID *eventId);
1225
1226 HRESULT RegisterPattern(
1227 [in] const struct UIAutomationPatternInfo *pattern,
1228 [out] PATTERNID *pPatternId,
1229 [out] PROPERTYID *pPatternAvailablePropertyId,
1230 [in] UINT propertyIdCount,
1231 [out, size_is(propertyIdCount)] PROPERTYID *pPropertyIds,
1232 [in] UINT eventIdCount,
1233 [out, size_is(eventIdCount)] EVENTID *pEventIds);
1234 };
1235
1236 [
1237 uuid(6e29fabf-9977-42d1-8d0e-ca7e61ad87e6),
1238 version(1.0),
1239 threading(both)
1240 ]
1241 coclass CUIAutomationRegistrar
1242 {
1243 [default] interface IUIAutomationRegistrar;
1244 }
1245 }