14#include <QtCore/QObject>
15#include <QtCore/QPair>
16#include <QtCore/QString>
17#include <QtCore/QStringList>
18#include <QtCore/QVector>
19#include <QtGui/QAccessible>
20#include <QtGui/QAccessibleActionInterface>
21#include <QtGui/QAccessibleInterface>
22#include <QtGui/QAccessibleTableCellInterface>
23#include <QtGui/QAccessibleTableInterface>
24#include <QtGui/QAccessibleTextInterface>
25#include <QtGui/QAccessibleValueInterface>
26#include <QtGui/QColor>
27#include <QtGui/QWindow>
29#include <com/sun/star/accessibility/XAccessible.hpp>
33class XAccessibleTable;
40 public QAccessibleActionInterface,
41 public QAccessibleTextInterface,
42 public QAccessibleEditableTextInterface,
43#if QT_VERSION >= QT_VERSION_CHECK(6, 5, 0)
44 public QAccessibleSelectionInterface,
46 public QAccessibleTableCellInterface,
47 public QAccessibleTableInterface,
48 public QAccessibleValueInterface
60 QVector<QPair<QAccessibleInterface*, QAccessible::Relation>>
61 relations(QAccessible::Relation match = QAccessible::AllRelations)
const override;
64 QRect
rect()
const override;
66 QAccessibleInterface*
parent()
const override;
67 QAccessibleInterface*
child(
int index)
const override;
69 QString
text(QAccessible::Text t)
const override;
70 QAccessible::Role
role()
const override;
78 void setText(QAccessible::Text t,
const QString&
text)
override;
79 QAccessibleInterface*
childAt(
int x,
int y)
const override;
85 void doAction(
const QString& actionName)
override;
90 QString
attributes(
int offset,
int* startOffset,
int* endOffset)
const override;
97 void selection(
int selectionIndex,
int* startOffset,
int* endOffset)
const override;
100 void setSelection(
int selectionIndex,
int startOffset,
int endOffset)
override;
101 QString
text(
int startOffset,
int endOffset)
const override;
103 int* startOffset,
int* endOffset)
const override;
104 QString
textAtOffset(
int offset, QAccessible::TextBoundaryType boundaryType,
int* startOffset,
105 int* endOffset)
const override;
107 int* startOffset,
int* endOffset)
const override;
110 virtual void deleteText(
int startOffset,
int endOffset)
override;
112 virtual void replaceText(
int startOffset,
int endOffset,
const QString&
text)
override;
122 virtual QAccessibleInterface*
caption()
const override;
123 virtual QAccessibleInterface*
cellAt(
int row,
int column)
const override;
128 virtual void modelChange(QAccessibleTableModelChangeEvent* event)
override;
139 virtual QAccessibleInterface*
summary()
const override;
151 virtual QAccessibleInterface*
table()
const override;
153#if QT_VERSION >= QT_VERSION_CHECK(6, 5, 0)
157 virtual QAccessibleInterface*
selectedItem(
int selectionIndex)
const override;
158 virtual bool isSelected(QAccessibleInterface* item)
const override;
159 virtual bool select(QAccessibleInterface* item)
override;
160 virtual bool unselect(QAccessibleInterface* item)
override;
170 static QAccessibleInterface*
customFactory(
const QString& classname, QObject*
object);
179 css::uno::Reference<css::accessibility::XAccessibleContext> xContext
181 css::uno::Reference<Interface> xInterface(xContext, css::uno::UNO_QUERY);
182 return xInterface.is();