47 #ifndef QT_NO_ACCESSIBILITY 162 int *startOffset,
int *endOffset,
const QString&
text)
165 switch (boundaryType) {
178 *endOffset = text.
length();
193 return text.
mid(*startOffset, *endOffset - *startOffset);
200 int *startOffset,
int *endOffset,
const QString&
text)
203 switch (boundaryType) {
216 *endOffset = text.
length();
228 return text.
mid(*startOffset, *endOffset - *startOffset);
235 int *startOffset,
int *endOffset,
const QString&
text)
238 switch (boundaryType) {
251 *endOffset = text.
length();
265 return text.
mid(*startOffset, *endOffset - *startOffset);
270 : iface(accessibleInterface)
275 #ifndef QT_NO_CLIPBOARD 284 #ifdef QT_NO_CLIPBOARD 295 txt.
remove(startOffset, endOffset - startOffset);
308 #ifdef QT_NO_CLIPBOARD 320 #ifdef QT_NO_CLIPBOARD 332 txt.
replace(startOffset, endOffset - startOffset, text);
338 #endif // QT_NO_ACCESSIBILITY
#define QT_END_NAMESPACE
This macro expands to.
void cutText(int startOffset, int endOffset)
QString Q_GUI_EXPORT qTextAtOffsetFromString(int offset, QAccessible2::BoundaryType boundaryType, int *startOffset, int *endOffset, const QString &text)
QString & replace(int i, int len, QChar after)
int length() const
Returns the number of characters in this string.
int toPreviousBoundary()
Moves the QTextBoundaryFinder to the previous boundary position and returns that position.
QAccessibleSimpleEditableTextInterface(QAccessibleInterface *accessibleInterface)
The QString class provides a Unicode character string.
void setText(const QString &, Mode mode=Clipboard)
Copies text into the clipboard as plain text.
void pasteText(int offset)
int position() const
Returns the current position of the QTextBoundaryFinder.
static QString textForRange(QAccessibleInterface *iface, int startOffset, int endOffset)
#define QT_BEGIN_NAMESPACE
This macro expands to.
QAccessibleInterface * iface
static QClipboard * clipboard()
Returns a pointer to the application global clipboard.
QString Q_GUI_EXPORT qTextAfterOffsetFromString(int offset, QAccessible2::BoundaryType boundaryType, int *startOffset, int *endOffset, const QString &text)
void setPosition(int position)
Sets the current position of the QTextBoundaryFinder to position.
QString Q_GUI_EXPORT qTextBeforeOffsetFromString(int offset, QAccessible2::BoundaryType boundaryType, int *startOffset, int *endOffset, const QString &text)
void deleteText(int startOffset, int endOffset)
QString mid(int position, int n=-1) const Q_REQUIRED_RESULT
Returns a string that contains n characters of this string, starting at the specified position index...
bool isAtBoundary() const
Returns true if the object's position() is currently at a valid text boundary.
void copyText(int startOffset, int endOffset)
The QAccessibleInterface class defines an interface that exposes information about accessible objects...
int toNextBoundary()
Moves the QTextBoundaryFinder to the next boundary position and returns that position.
virtual QString text(Text t, int child) const =0
Returns the value of the text property t of the object, or of the object's child if child is not 0...
QString & remove(int i, int len)
Removes n characters from the string, starting at the given position index, and returns a reference t...
QString & insert(int i, QChar c)
#define Q_UNUSED(x)
Indicates to the compiler that the parameter with the specified name is not used in the body of a fun...
void insertText(int offset, const QString &text)
The QTextBoundaryFinder class provides a way of finding Unicode text boundaries in a string...
virtual void setText(Text t, int child, const QString &text)=0
Sets the text property t of the object, or of the object's child if child is not 0, to text.
void replaceText(int startOffset, int endOffset, const QString &text)