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
qwindowsuiaexpandcollapseprovider.h
Go to the documentation of this file.
1// Copyright (C) 2020 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 QWINDOWSUIAEXPANDCOLLAPSEPROVIDER_H
6#define QWINDOWSUIAEXPANDCOLLAPSEPROVIDER_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 Expand/Collapse control pattern provider. Used for menu items with submenus.
16class QWindowsUiaExpandCollapseProvider : public QWindowsUiaBaseProvider,
17 public QComObject<IExpandCollapseProvider>
18{
19 Q_DISABLE_COPY_MOVE(QWindowsUiaExpandCollapseProvider)
20public:
21 explicit QWindowsUiaExpandCollapseProvider(QAccessible::Id id);
22 virtual ~QWindowsUiaExpandCollapseProvider() override;
23
24 // IExpandCollapseProvider
25 HRESULT STDMETHODCALLTYPE Expand() override;
26 HRESULT STDMETHODCALLTYPE Collapse() override;
27 HRESULT STDMETHODCALLTYPE get_ExpandCollapseState(__RPC__out ExpandCollapseState *pRetVal) override;
28};
29
30QT_END_NAMESPACE
31
32#endif // QT_CONFIG(accessibility)
33
34#endif // QWINDOWSUIAEXPANDCOLLAPSEPROVIDER_H