LibreOffice Module vcl (master) 1
qt5/QtAccessibleRegistry.hxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/*
3 * This file is part of the LibreOffice project.
4 *
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 */
9
10#pragma once
11
12#include <map>
13
14#include <QtCore/QObject>
15
16#include <com/sun/star/accessibility/XAccessible.hpp>
17
18using namespace css::accessibility;
19
28{
29private:
30 static std::map<css::accessibility::XAccessible*, QObject*> m_aMapping;
32
33public:
35 static QObject* getQObject(css::uno::Reference<XAccessible> xAcc);
36 static void insert(css::uno::Reference<XAccessible> xAcc, QObject* pQObject);
38 static void remove(css::uno::Reference<XAccessible> xAcc);
39};
40
41/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
Maintains a mapping between XAccessible objects and the associated QObjects.
static QObject * getQObject(css::uno::Reference< XAccessible > xAcc)
Returns the related QObject* for the XAccessible.
static void insert(css::uno::Reference< XAccessible > xAcc, QObject *pQObject)
QtAccessibleRegistry()=delete
static std::map< css::accessibility::XAccessible *, QObject * > m_aMapping
static void remove(css::uno::Reference< XAccessible > xAcc)
Removes the entry for the given XAccessible.