Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qwindowsuiaselectionitemprovider.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// Qt-Security score:significant reason:default
4
5#ifndef QWINDOWSUIASELECTIONITEMPROVIDER_H
6#define QWINDOWSUIASELECTIONITEMPROVIDER_H
7
8#include <QtGui/qtguiglobal.h>
9#if QT_CONFIG(accessibility)
10
11#include "qwindowsuiabaseprovider.h"
12
13QT_BEGIN_NAMESPACE
14
15// Implements the Selection Item control pattern provider. Used for List items and radio buttons.
16class QWindowsUiaSelectionItemProvider : public QWindowsUiaBaseProvider,
17 public QComObject<ISelectionItemProvider>
18{
19 Q_DISABLE_COPY_MOVE(QWindowsUiaSelectionItemProvider)
20public:
21 explicit QWindowsUiaSelectionItemProvider(QAccessible::Id id);
22 virtual ~QWindowsUiaSelectionItemProvider();
23
24 // ISelectionItemProvider
25 HRESULT STDMETHODCALLTYPE Select() override;
26 HRESULT STDMETHODCALLTYPE AddToSelection() override;
27 HRESULT STDMETHODCALLTYPE RemoveFromSelection() override;
28 HRESULT STDMETHODCALLTYPE get_IsSelected(BOOL *pRetVal) override;
29 HRESULT STDMETHODCALLTYPE get_SelectionContainer(IRawElementProviderSimple **pRetVal) override;
30};
31
32QT_END_NAMESPACE
33
34#endif // QT_CONFIG(accessibility)
35
36#endif // QWINDOWSUIASELECTIONITEMPROVIDER_H