Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
qwindowsuiatextprovider.h
Go to the documentation of this file.
1// Copyright (C) 2017 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4#ifndef QWINDOWSUIATEXTPROVIDER_H
5#define QWINDOWSUIATEXTPROVIDER_H
6
7#include <QtGui/qtguiglobal.h>
8#if QT_CONFIG(accessibility)
9
12
14
15// Implements the Text control pattern provider. Used for text controls.
16class QWindowsUiaTextProvider : public QWindowsUiaBaseProvider,
17 public QWindowsComBase<ITextProvider2>
18{
19 Q_DISABLE_COPY_MOVE(QWindowsUiaTextProvider)
20public:
21 explicit QWindowsUiaTextProvider(QAccessible::Id id);
22 ~QWindowsUiaTextProvider();
23
24 // IUnknown overrides
25 HRESULT STDMETHODCALLTYPE QueryInterface(REFIID id, LPVOID *iface) override;
26
27 // ITextProvider
28 HRESULT STDMETHODCALLTYPE GetSelection(SAFEARRAY **pRetVal) override;
29 HRESULT STDMETHODCALLTYPE GetVisibleRanges(SAFEARRAY **pRetVal) override;
30 HRESULT STDMETHODCALLTYPE RangeFromChild(IRawElementProviderSimple *childElement, ITextRangeProvider **pRetVal) override;
31 HRESULT STDMETHODCALLTYPE RangeFromPoint(UiaPoint point, ITextRangeProvider **pRetVal) override;
32 HRESULT STDMETHODCALLTYPE get_DocumentRange(ITextRangeProvider **pRetVal) override;
34
35 // ITextProvider2
36 HRESULT STDMETHODCALLTYPE RangeFromAnnotation(IRawElementProviderSimple *annotationElement, ITextRangeProvider **pRetVal) override;
37 HRESULT STDMETHODCALLTYPE GetCaretRange(BOOL *isActive, ITextRangeProvider **pRetVal) override;
38};
39
41
42#endif // QT_CONFIG(accessibility)
43
44#endif // QWINDOWSUIATEXTPROVIDER_H
bool isActive
HRESULT STDMETHODCALLTYPE QueryInterface(REFIID id, LPVOID *iface) override
Combined button and popup list for selecting options.
long HRESULT
virtual HRESULT STDMETHODCALLTYPE get_DocumentRange(__RPC__deref_out_opt ITextRangeProvider **pRetVal)=0
virtual HRESULT STDMETHODCALLTYPE GetVisibleRanges(__RPC__deref_out_opt SAFEARRAY **pRetVal)=0
virtual HRESULT STDMETHODCALLTYPE GetCaretRange(__RPC__out BOOL *isActive, __RPC__deref_out_opt ITextRangeProvider **pRetVal)=0
virtual HRESULT STDMETHODCALLTYPE get_SupportedTextSelection(__RPC__out enum SupportedTextSelection *pRetVal)=0
virtual HRESULT STDMETHODCALLTYPE RangeFromChild(__RPC__in_opt IRawElementProviderSimple *childElement, __RPC__deref_out_opt ITextRangeProvider **pRetVal)=0
IRawElementProviderFragment __RPC__deref_out_opt IRawElementProviderFragment ** pRetVal
virtual HRESULT STDMETHODCALLTYPE RangeFromPoint(struct UiaPoint point, __RPC__deref_out_opt ITextRangeProvider **pRetVal)=0
SupportedTextSelection
Definition uiatypes_p.h:48