42 #ifndef QACCESSIBLE2_H 43 #define QACCESSIBLE2_H 45 #include <QtGui/qaccessible.h> 53 #ifndef QT_NO_ACCESSIBILITY 108 #define Q_ACCESSIBLE_OBJECT \ 110 QAccessible2Interface *interface_cast(QAccessible2::InterfaceType t) \ 113 case QAccessible2::TextInterface: \ 114 return qAccessibleTextCastHelper(); \ 115 case QAccessible2::EditableTextInterface: \ 116 return qAccessibleEditableTextCastHelper(); \ 117 case QAccessible2::ValueInterface: \ 118 return qAccessibleValueCastHelper(); \ 119 case QAccessible2::TableInterface: \ 120 return qAccessibleTableCastHelper(); \ 121 case QAccessible2::ActionInterface: \ 122 return qAccessibleActionCastHelper(); \ 123 case QAccessible2::ImageInterface: \ 124 return qAccessibleImageCastHelper(); \ 125 case QAccessible2::Table2Interface: \ 126 return qAccessibleTable2CastHelper(); \ 139 virtual void addSelection(
int startOffset,
int endOffset) = 0;
140 virtual QString attributes(
int offset,
int *startOffset,
int *endOffset) = 0;
141 virtual int cursorPosition() = 0;
143 virtual int selectionCount() = 0;
145 virtual void selection(
int selectionIndex,
int *startOffset,
int *endOffset) = 0;
146 virtual QString text(
int startOffset,
int endOffset) = 0;
148 int *startOffset,
int *endOffset) = 0;
150 int *startOffset,
int *endOffset) = 0;
152 int *startOffset,
int *endOffset) = 0;
153 virtual void removeSelection(
int selectionIndex) = 0;
154 virtual void setCursorPosition(
int position) = 0;
155 virtual void setSelection(
int selectionIndex,
int startOffset,
int endOffset) = 0;
156 virtual int characterCount() = 0;
157 virtual void scrollToSubstring(
int startIndex,
int endIndex) = 0;
167 virtual void copyText(
int startOffset,
int endOffset) = 0;
168 virtual void deleteText(
int startOffset,
int endOffset) = 0;
169 virtual void insertText(
int offset,
const QString &
text) = 0;
170 virtual void cutText(
int startOffset,
int endOffset) = 0;
171 virtual void pasteText(
int offset) = 0;
172 virtual void replaceText(
int startOffset,
int endOffset,
const QString &text) = 0;
173 virtual void setAttributes(
int startOffset,
int endOffset,
const QString &attributes) = 0;
181 void copyText(
int startOffset,
int endOffset);
182 void deleteText(
int startOffset,
int endOffset);
184 void cutText(
int startOffset,
int endOffset);
185 void pasteText(
int offset);
186 void replaceText(
int startOffset,
int endOffset,
const QString &text);
200 virtual QVariant currentValue() = 0;
201 virtual void setCurrentValue(
const QVariant &value) = 0;
202 virtual QVariant maximumValue() = 0;
203 virtual QVariant minimumValue() = 0;
213 virtual int childIndex(
int rowIndex,
int columnIndex) = 0;
214 virtual QString columnDescription(
int column) = 0;
215 virtual int columnSpan(
int row,
int column) = 0;
217 virtual int columnIndex(
int childIndex) = 0;
218 virtual int columnCount() = 0;
219 virtual int rowCount() = 0;
220 virtual int selectedColumnCount() = 0;
221 virtual int selectedRowCount() = 0;
222 virtual QString rowDescription(
int row) = 0;
223 virtual int rowSpan(
int row,
int column) = 0;
225 virtual int rowIndex(
int childIndex) = 0;
226 virtual int selectedRows(
int maxRows,
QList<int> *rows) = 0;
227 virtual int selectedColumns(
int maxColumns,
QList<int> *columns) = 0;
229 virtual bool isColumnSelected(
int column) = 0;
230 virtual bool isRowSelected(
int row) = 0;
231 virtual bool isSelected(
int row,
int column) = 0;
232 virtual void selectRow(
int row) = 0;
233 virtual void selectColumn(
int column) = 0;
234 virtual void unselectRow(
int row) = 0;
235 virtual void unselectColumn(
int column) = 0;
236 virtual void cellAtIndex(
int index,
int *row,
int *column,
int *rowSpan,
237 int *columnSpan,
bool *isSelected) = 0;
244 virtual int columnExtent()
const = 0;
250 virtual int columnIndex()
const = 0;
252 virtual int rowExtent()
const = 0;
256 virtual int rowIndex()
const = 0;
258 virtual bool isSelected()
const = 0;
261 virtual void rowColumnExtents(
int *row,
int *column,
int *rowExtents,
int *columnExtents,
bool *selected)
const = 0;
266 virtual bool isExpandable()
const = 0;
279 virtual QString columnDescription(
int column)
const = 0;
281 virtual int columnCount()
const = 0;
283 virtual int rowCount()
const = 0;
285 virtual int selectedCellCount()
const = 0;
287 virtual int selectedColumnCount()
const = 0;
289 virtual int selectedRowCount()
const = 0;
291 virtual QString rowDescription(
int row)
const = 0;
295 virtual QList<int> selectedColumns()
const = 0;
301 virtual bool isColumnSelected(
int column)
const = 0;
303 virtual bool isRowSelected(
int row)
const = 0;
305 virtual bool selectRow(
int row) = 0;
307 virtual bool selectColumn(
int column) = 0;
309 virtual bool unselectRow(
int row) = 0;
311 virtual bool unselectColumn(
int column) = 0;
317 virtual void modelReset() = 0;
318 virtual void rowsInserted(
const QModelIndex &parent,
int first,
int last) = 0;
319 virtual void rowsRemoved(
const QModelIndex &parent,
int first,
int last) = 0;
320 virtual void columnsInserted(
const QModelIndex &parent,
int first,
int last) = 0;
321 virtual void columnsRemoved(
const QModelIndex &parent,
int first,
int last) = 0;
323 virtual void columnsMoved(
const QModelIndex &parent,
int start,
int end,
const QModelIndex &destination,
int column) = 0;
334 virtual int actionCount() = 0;
335 virtual void doAction(
int actionIndex) = 0;
336 virtual QString description(
int actionIndex) = 0;
339 virtual QStringList keyBindings(
int actionIndex) = 0;
347 virtual QString imageDescription() = 0;
348 virtual QSize imageSize() = 0;
352 #endif // QT_NO_ACCESSIBILITY The QVariant class acts like a union for the most common Qt data types.
QAccessible2Interface * qAccessibleActionCastHelper()
The QAccessibleEditableTextInterface class implements support for the IAccessibleEditableText interfa...
The QAccessible2 namespace defines constants relating to IAccessible2-based interfaces.
QAccessible2Interface * qAccessibleValueCastHelper()
#define QT_END_NAMESPACE
This macro expands to.
static qreal position(QGraphicsObject *item, QDeclarativeAnchorLine::AnchorLine anchorLine)
The QString class provides a Unicode character string.
TableModelChangeType type
virtual ~QAccessible2Interface()
QAccessible2Interface * qAccessibleTextCastHelper()
#define QT_BEGIN_NAMESPACE
This macro expands to.
QAccessible2Interface * qAccessibleValueCastHelper()
QAccessibleInterface * iface
QAccessible2Interface * qAccessibleEditableTextCastHelper()
QAccessible2Interface * qAccessibleTable2CastHelper()
The QStringList class provides a list of strings.
QAccessible2Interface * qAccessibleImageCastHelper()
The QAccessibleSimpleEditableTextInterface class is a convenience class for text-based widgets...
The QAccessibleImageInterface class implements support for the IAccessibleImage interface.
virtual ~QAccessibleValueInterface()
QAccessible2Interface * qAccessibleTableCastHelper()
virtual ~QAccessibleEditableTextInterface()
The QAbstractItemView class provides the basic functionality for item view classes.
QAccessible2Interface * qAccessibleActionCastHelper()
void setAttributes(int, int, const QString &)
The QAccessibleTextInterface class implements support for the IAccessibleText interface.
The QAccessibleInterface class defines an interface that exposes information about accessible objects...
QAccessible2Interface * qAccessibleEditableTextCastHelper()
The QAccessibleActionInterface class implements support for the IAccessibleAction interface...
The QPoint class defines a point in the plane using integer precision.
The QModelIndex class is used to locate data in a data model.
The QRect class defines a rectangle in the plane using integer precision.
The QSize class defines the size of a two-dimensional object using integer point precision.
The QAccessibleValueInterface class implements support for the IAccessibleValue interface.
QAccessible2Interface * qAccessibleTextCastHelper()
virtual ~QAccessibleTextInterface()
static const KeyPair *const end
QAccessible2Interface * qAccessibleTableCastHelper()
static bool localizedName(const QString &name)
QAccessible2Interface * qAccessibleImageCastHelper()
QAccessible2Interface * qAccessibleTable2CastHelper()