Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > media > contrib-release > by-pkgid > a6711891ce757817bba854bf3f25205a > files > 2309

qtjambi-doc-4.3.3-3mdv2008.1.i586.rpm

<class name="QTextCursor" doc="/**
&lt;p&gt;The &lt;a href=&quot;QTextCursor.html#QTextCursor(com.trolltech.qt.gui.QTextDocument)&quot;&gt;&lt;tt&gt;QTextCursor&lt;/tt&gt;&lt;/a&gt; class offers an API to access and modify QTextDocuments.&lt;/p&gt;
&lt;p&gt;Text cursors are objects that are used to access and modify the contents and underlying structure of text documents via a programming interface that mimics the behavior of a cursor in a text editor. &lt;a href=&quot;QTextCursor.html#QTextCursor(com.trolltech.qt.gui.QTextDocument)&quot;&gt;&lt;tt&gt;QTextCursor&lt;/tt&gt;&lt;/a&gt; contains information about both the cursor's position within a &lt;a href=&quot;QTextDocument.html&quot;&gt;&lt;tt&gt;QTextDocument&lt;/tt&gt;&lt;/a&gt; and any selection that it has made.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;QTextCursor.html#QTextCursor(com.trolltech.qt.gui.QTextDocument)&quot;&gt;&lt;tt&gt;QTextCursor&lt;/tt&gt;&lt;/a&gt; is modeled on the way a text cursor behaves in a text editor, providing a programmatic means of performing standard actions through the user interface. A document can be thought of as a single string of characters with the cursor's &lt;a href=&quot;QTextCursor.html#position()&quot;&gt;&lt;tt&gt;position&lt;/tt&gt;&lt;/a&gt; being &lt;i&gt;between&lt;/i&gt; any two characters (or at the very beginning or very end of the document). Documents can also contain tables, lists, images, and other objects in addition to text but, from the developer's point of view, the document can be treated as one long string. Some portions of that string can be considered to lie within particular blocks (e.g&amp;#x2e; paragraphs), or within a table's cell, or a list's item, or other structural elements. When we refer to &amp;quot;current character&amp;quot; we mean the character immediately after the cursor &lt;a href=&quot;QTextCursor.html#position()&quot;&gt;&lt;tt&gt;position&lt;/tt&gt;&lt;/a&gt; in the document; similarly the &amp;quot;current block&amp;quot; is the block that contains the cursor &lt;a href=&quot;QTextCursor.html#position()&quot;&gt;&lt;tt&gt;position&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;A &lt;a href=&quot;QTextCursor.html#QTextCursor(com.trolltech.qt.gui.QTextDocument)&quot;&gt;&lt;tt&gt;QTextCursor&lt;/tt&gt;&lt;/a&gt; also has an &lt;a href=&quot;QTextCursor.html#anchor()&quot;&gt;&lt;tt&gt;anchor&lt;/tt&gt;&lt;/a&gt; position. The text that is between the &lt;a href=&quot;QTextCursor.html#anchor()&quot;&gt;&lt;tt&gt;anchor&lt;/tt&gt;&lt;/a&gt; and the &lt;a href=&quot;QTextCursor.html#position()&quot;&gt;&lt;tt&gt;position&lt;/tt&gt;&lt;/a&gt; is the selection. If &lt;a href=&quot;QTextCursor.html#anchor()&quot;&gt;&lt;tt&gt;anchor&lt;/tt&gt;&lt;/a&gt; == &lt;a href=&quot;QTextCursor.html#position()&quot;&gt;&lt;tt&gt;position&lt;/tt&gt;&lt;/a&gt; there is no selection.&lt;/p&gt;
&lt;p&gt;The cursor position can be changed programmatically using &lt;a href=&quot;QTextCursor.html#setPosition(int, com.trolltech.qt.gui.QTextCursor.MoveMode)&quot;&gt;&lt;tt&gt;setPosition&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QTextCursor.html#movePosition(com.trolltech.qt.gui.QTextCursor.MoveOperation, com.trolltech.qt.gui.QTextCursor.MoveMode, int)&quot;&gt;&lt;tt&gt;movePosition&lt;/tt&gt;&lt;/a&gt;; the latter can also be used to select text. For selections see &lt;a href=&quot;QTextCursor.html#selectionStart()&quot;&gt;&lt;tt&gt;selectionStart&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QTextCursor.html#selectionEnd()&quot;&gt;&lt;tt&gt;selectionEnd&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QTextCursor.html#hasSelection()&quot;&gt;&lt;tt&gt;hasSelection&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QTextCursor.html#clearSelection()&quot;&gt;&lt;tt&gt;clearSelection&lt;/tt&gt;&lt;/a&gt;, and &lt;a href=&quot;QTextCursor.html#removeSelectedText()&quot;&gt;&lt;tt&gt;removeSelectedText&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;If the &lt;a href=&quot;QTextCursor.html#position()&quot;&gt;&lt;tt&gt;position&lt;/tt&gt;&lt;/a&gt; is at the start of a block &lt;a href=&quot;QTextCursor.html#atBlockStart()&quot;&gt;&lt;tt&gt;atBlockStart&lt;/tt&gt;&lt;/a&gt; returns true; and if it is at the end of a block &lt;a href=&quot;QTextCursor.html#atBlockEnd()&quot;&gt;&lt;tt&gt;atBlockEnd&lt;/tt&gt;&lt;/a&gt; returns true. The format of the current character is returned by &lt;a href=&quot;QTextCursor.html#charFormat()&quot;&gt;&lt;tt&gt;charFormat&lt;/tt&gt;&lt;/a&gt;, and the format of the current block is returned by &lt;a href=&quot;QTextCursor.html#blockFormat()&quot;&gt;&lt;tt&gt;blockFormat&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Formatting can be applied to the current text document using the &lt;a href=&quot;QTextCursor.html#setCharFormat(com.trolltech.qt.gui.QTextCharFormat)&quot;&gt;&lt;tt&gt;setCharFormat&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QTextCursor.html#mergeCharFormat(com.trolltech.qt.gui.QTextCharFormat)&quot;&gt;&lt;tt&gt;mergeCharFormat&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QTextCursor.html#setBlockFormat(com.trolltech.qt.gui.QTextBlockFormat)&quot;&gt;&lt;tt&gt;setBlockFormat&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QTextCursor.html#mergeBlockFormat(com.trolltech.qt.gui.QTextBlockFormat)&quot;&gt;&lt;tt&gt;mergeBlockFormat&lt;/tt&gt;&lt;/a&gt; functions. The 'set' functions will replace the cursor's current character or block format, while the 'merge' functions add the given format properties to the cursor's current format. If the cursor has a selection the given format is applied to the current selection. Note that when only parts of a block is selected the block format is applied to the entire block. The text at the current character position can be turned into a list using &lt;a href=&quot;QTextCursor.html#createList(com.trolltech.qt.gui.QTextListFormat.Style)&quot;&gt;&lt;tt&gt;createList&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Deletions can be achieved using &lt;a href=&quot;QTextCursor.html#deleteChar()&quot;&gt;&lt;tt&gt;deleteChar&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QTextCursor.html#deletePreviousChar()&quot;&gt;&lt;tt&gt;deletePreviousChar&lt;/tt&gt;&lt;/a&gt;, and &lt;a href=&quot;QTextCursor.html#removeSelectedText()&quot;&gt;&lt;tt&gt;removeSelectedText&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Text strings can be inserted into the document with the &lt;a href=&quot;QTextCursor.html#insertText(java.lang.String, com.trolltech.qt.gui.QTextCharFormat)&quot;&gt;&lt;tt&gt;insertText&lt;/tt&gt;&lt;/a&gt; function, blocks (representing new paragraphs) can be inserted with &lt;a href=&quot;QTextCursor.html#insertBlock()&quot;&gt;&lt;tt&gt;insertBlock&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Existing fragments of text can be inserted with &lt;a href=&quot;QTextCursor.html#insertFragment(com.trolltech.qt.gui.QTextDocumentFragment)&quot;&gt;&lt;tt&gt;insertFragment&lt;/tt&gt;&lt;/a&gt; but, if you want to insert pieces of text in various formats, it is usually still easier to use &lt;a href=&quot;QTextCursor.html#insertText(java.lang.String, com.trolltech.qt.gui.QTextCharFormat)&quot;&gt;&lt;tt&gt;insertText&lt;/tt&gt;&lt;/a&gt; and supply a character format.&lt;/p&gt;
&lt;p&gt;Various types of higher-level structure can also be inserted into the document with the cursor:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Lists are ordered sequences of block elements that are decorated with bullet points or symbols. These are inserted in a specified format with &lt;a href=&quot;QTextCursor.html#insertList(com.trolltech.qt.gui.QTextListFormat.Style)&quot;&gt;&lt;tt&gt;insertList&lt;/tt&gt;&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;Tables are inserted with the &lt;a href=&quot;QTextCursor.html#insertTable(int, int)&quot;&gt;&lt;tt&gt;insertTable&lt;/tt&gt;&lt;/a&gt; function, and can be given an optional format. These contain an array of cells that can be traversed using the cursor.&lt;/li&gt;
&lt;li&gt;Inline images are inserted with &lt;a href=&quot;QTextCursor.html#insertImage(com.trolltech.qt.gui.QTextImageFormat)&quot;&gt;&lt;tt&gt;insertImage&lt;/tt&gt;&lt;/a&gt;. The image to be used can be specified in an image format, or by name.&lt;/li&gt;
&lt;li&gt;Frames are inserted by calling &lt;a href=&quot;QTextCursor.html#insertFrame(com.trolltech.qt.gui.QTextFrameFormat)&quot;&gt;&lt;tt&gt;insertFrame&lt;/tt&gt;&lt;/a&gt; with a specified format.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Actions can be grouped (i.e&amp;#x2e; treated as a single action for undo/redo) using &lt;a href=&quot;QTextCursor.html#beginEditBlock()&quot;&gt;&lt;tt&gt;beginEditBlock&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QTextCursor.html#endEditBlock()&quot;&gt;&lt;tt&gt;endEditBlock&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Cursor movements are limited to valid cursor positions. In Latin writing this is usually after every character in the text. In some other writing systems cursor movements are limited to &amp;quot;clusters&amp;quot; (e.g&amp;#x2e; a syllable in Devanagari, or a base letter plus diacritics). Functions such as &lt;a href=&quot;QTextCursor.html#movePosition(com.trolltech.qt.gui.QTextCursor.MoveOperation, com.trolltech.qt.gui.QTextCursor.MoveMode, int)&quot;&gt;&lt;tt&gt;movePosition&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QTextCursor.html#deleteChar()&quot;&gt;&lt;tt&gt;deleteChar&lt;/tt&gt;&lt;/a&gt; limit cursor movement to these valid positions.&lt;/p&gt;

@see &lt;a href=&quot;%2E%2E/richtext.html&quot;&gt;Rich Text Processing&lt;/tt&gt;&lt;/a&gt; */">
    <method name="public QTextCursor(com.trolltech.qt.gui.QTextFrame frame)" doc="/**
&lt;p&gt;Constructs a cursor pointing to the beginning of the &lt;tt&gt;frame&lt;/tt&gt;.&lt;/p&gt;
 */"/>
    <method name="public QTextCursor(com.trolltech.qt.gui.QTextCursor cursor)" doc="/**
&lt;p&gt;Constructs a new cursor that is a copy of &lt;tt&gt;cursor&lt;/tt&gt;.&lt;/p&gt;
 */"/>
    <method name="public QTextCursor()" doc="/**
&lt;p&gt;Constructs a null cursor.&lt;/p&gt;
 */"/>
    <method name="public QTextCursor(com.trolltech.qt.gui.QTextBlock block)" doc="/**
&lt;p&gt;Constructs a cursor pointing to the beginning of the &lt;tt&gt;block&lt;/tt&gt;.&lt;/p&gt;
 */"/>
    <method name="public QTextCursor(com.trolltech.qt.gui.QTextDocument document)" doc="/**
&lt;p&gt;Constructs a cursor pointing to the beginning of the &lt;tt&gt;document&lt;/tt&gt;.&lt;/p&gt;
 */"/>
    <method name="public final int anchor()" doc="/**
&lt;p&gt;Returns the anchor position; this is the same as &lt;a href=&quot;QTextCursor.html#position()&quot;&gt;&lt;tt&gt;position&lt;/tt&gt;&lt;/a&gt; unless there is a selection in which case &lt;a href=&quot;QTextCursor.html#position()&quot;&gt;&lt;tt&gt;position&lt;/tt&gt;&lt;/a&gt; marks one end of the selection and &lt;a href=&quot;QTextCursor.html#anchor()&quot;&gt;&lt;tt&gt;anchor&lt;/tt&gt;&lt;/a&gt; marks the other end. Just like the cursor position, the anchor position is between characters.&lt;/p&gt;

@see &lt;a href=&quot;QTextCursor.html#position()&quot;&gt;&lt;tt&gt;position&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QTextCursor.html#setPosition(int, com.trolltech.qt.gui.QTextCursor.MoveMode)&quot;&gt;&lt;tt&gt;setPosition&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QTextCursor.html#movePosition(com.trolltech.qt.gui.QTextCursor.MoveOperation, com.trolltech.qt.gui.QTextCursor.MoveMode, int)&quot;&gt;&lt;tt&gt;movePosition&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QTextCursor.html#selectionStart()&quot;&gt;&lt;tt&gt;selectionStart&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QTextCursor.html#selectionEnd()&quot;&gt;&lt;tt&gt;selectionEnd&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final boolean atBlockEnd()" doc="/**
&lt;p&gt;Returns true if the cursor is at the end of a block; otherwise returns false.&lt;/p&gt;

@see &lt;a href=&quot;QTextCursor.html#atBlockStart()&quot;&gt;&lt;tt&gt;atBlockStart&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QTextCursor.html#atEnd()&quot;&gt;&lt;tt&gt;atEnd&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final boolean atBlockStart()" doc="/**
&lt;p&gt;Returns true if the cursor is at the start of a block; otherwise returns false.&lt;/p&gt;

@see &lt;a href=&quot;QTextCursor.html#atBlockEnd()&quot;&gt;&lt;tt&gt;atBlockEnd&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QTextCursor.html#atStart()&quot;&gt;&lt;tt&gt;atStart&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final boolean atEnd()" doc="/**
&lt;p&gt;Returns true if the cursor is at the end of the document; otherwise returns false.&lt;/p&gt;

@see &lt;a href=&quot;QTextCursor.html#atStart()&quot;&gt;&lt;tt&gt;atStart&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QTextCursor.html#atBlockEnd()&quot;&gt;&lt;tt&gt;atBlockEnd&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final boolean atStart()" doc="/**
&lt;p&gt;Returns true if the cursor is at the start of the document; otherwise returns false.&lt;/p&gt;

@see &lt;a href=&quot;QTextCursor.html#atBlockStart()&quot;&gt;&lt;tt&gt;atBlockStart&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QTextCursor.html#atEnd()&quot;&gt;&lt;tt&gt;atEnd&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void beginEditBlock()" doc="/**
&lt;p&gt;Indicates the start of a block of editing operations on the document that should appear as a single operation from an undo/redo point of view.&lt;/p&gt;
&lt;p&gt;For example:&lt;/p&gt;
&lt;pre&gt;    QTextCursor cursor(textDocument);
    cursor.beginEditBlock();
    cursor.insertText(&amp;quot;Hello&amp;quot;);
    cursor.insertText(&amp;quot;World&amp;quot;);
    cursor.endEditBlock();

    textDocument-&amp;gt;undo();&lt;/pre&gt;
&lt;p&gt;The call to undo() will cause both insertions to be undone, causing both &amp;quot;World&amp;quot; and &amp;quot;Hello&amp;quot; to be removed.&lt;/p&gt;

@see &lt;a href=&quot;QTextCursor.html#endEditBlock()&quot;&gt;&lt;tt&gt;endEditBlock&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QTextBlock block()" doc="/**
&lt;p&gt;Returns the block that contains the cursor.&lt;/p&gt;
 */"/>
    <method name="public final com.trolltech.qt.gui.QTextCharFormat blockCharFormat()" doc="/**
&lt;p&gt;Returns the block character format of the block the cursor is in.&lt;/p&gt;
&lt;p&gt;The block char format is the format used when inserting text at the beginning of an empty block.&lt;/p&gt;

@see &lt;a href=&quot;QTextCursor.html#setBlockCharFormat(com.trolltech.qt.gui.QTextCharFormat)&quot;&gt;&lt;tt&gt;setBlockCharFormat&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QTextBlockFormat blockFormat()" doc="/**
&lt;p&gt;Returns the block format of the block the cursor is in.&lt;/p&gt;

@see &lt;a href=&quot;QTextCursor.html#setBlockFormat(com.trolltech.qt.gui.QTextBlockFormat)&quot;&gt;&lt;tt&gt;setBlockFormat&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QTextCursor.html#charFormat()&quot;&gt;&lt;tt&gt;charFormat&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final int blockNumber()" doc="/**
&lt;p&gt;Returns the number of the block the cursor is in.&lt;/p&gt;
&lt;p&gt;Note that this function only makes sense in documents without complex objects such as tables or frames.&lt;/p&gt;
 */"/>
    <method name="public final com.trolltech.qt.gui.QTextCharFormat charFormat()" doc="/**
&lt;p&gt;Returns the format of the character immediately before the cursor &lt;a href=&quot;QTextCursor.html#position()&quot;&gt;&lt;tt&gt;position&lt;/tt&gt;&lt;/a&gt;. If the cursor is positioned at the beginning of a text block that is not empty then the format of the character immediately after the cursor is returned.&lt;/p&gt;

@see &lt;a href=&quot;QTextCursor.html#setCharFormat(com.trolltech.qt.gui.QTextCharFormat)&quot;&gt;&lt;tt&gt;setCharFormat&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QTextCursor.html#insertText(java.lang.String, com.trolltech.qt.gui.QTextCharFormat)&quot;&gt;&lt;tt&gt;insertText&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QTextCursor.html#blockFormat()&quot;&gt;&lt;tt&gt;blockFormat&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void clearSelection()" doc="/**
&lt;p&gt;Clears the current selection by setting the anchor to the cursor position.&lt;/p&gt;
&lt;p&gt;Note that it does &lt;b&gt;not&lt;/b&gt; delete the text of the selection.&lt;/p&gt;

@see &lt;a href=&quot;QTextCursor.html#removeSelectedText()&quot;&gt;&lt;tt&gt;removeSelectedText&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QTextCursor.html#hasSelection()&quot;&gt;&lt;tt&gt;hasSelection&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final int columnNumber()" doc="/**
&lt;p&gt;Returns the position of the cursor within its containing line.&lt;/p&gt;
 */"/>
    <method name="public final com.trolltech.qt.gui.QTextList createList(com.trolltech.qt.gui.QTextListFormat format)" doc="/**
&lt;p&gt;Creates and returns a new list with the given &lt;tt&gt;format&lt;/tt&gt;, and makes the current paragraph the cursor is in the first list item.&lt;/p&gt;

@see &lt;a href=&quot;QTextCursor.html#insertList(com.trolltech.qt.gui.QTextListFormat.Style)&quot;&gt;&lt;tt&gt;insertList&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QTextCursor.html#currentList()&quot;&gt;&lt;tt&gt;currentList&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QTextList createList(com.trolltech.qt.gui.QTextListFormat.Style style)" doc="/**
&lt;p&gt;Creates and returns a new list with the given &lt;tt&gt;style&lt;/tt&gt;, making the cursor's current paragraph the first list item.&lt;/p&gt;
&lt;p&gt;The style to be used is defined by the QTextListFormat::Style enum.&lt;/p&gt;

@see &lt;a href=&quot;QTextCursor.html#insertList(com.trolltech.qt.gui.QTextListFormat.Style)&quot;&gt;&lt;tt&gt;insertList&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QTextCursor.html#currentList()&quot;&gt;&lt;tt&gt;currentList&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QTextFrame currentFrame()" doc="/**
&lt;p&gt;Returns a pointer to the current frame. Returns 0 if the cursor is invalid.&lt;/p&gt;

@see &lt;a href=&quot;QTextCursor.html#insertFrame(com.trolltech.qt.gui.QTextFrameFormat)&quot;&gt;&lt;tt&gt;insertFrame&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QTextList currentList()" doc="/**
&lt;p&gt;Returns the current list if the cursor &lt;a href=&quot;QTextCursor.html#position()&quot;&gt;&lt;tt&gt;position&lt;/tt&gt;&lt;/a&gt; is inside a block that is part of a list; otherwise returns 0.&lt;/p&gt;

@see &lt;a href=&quot;QTextCursor.html#insertList(com.trolltech.qt.gui.QTextListFormat.Style)&quot;&gt;&lt;tt&gt;insertList&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QTextCursor.html#createList(com.trolltech.qt.gui.QTextListFormat.Style)&quot;&gt;&lt;tt&gt;createList&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QTextTable currentTable()" doc="/**
&lt;p&gt;Returns a pointer to the current table if the cursor &lt;a href=&quot;QTextCursor.html#position()&quot;&gt;&lt;tt&gt;position&lt;/tt&gt;&lt;/a&gt; is inside a block that is part of a table; otherwise returns 0.&lt;/p&gt;

@see &lt;a href=&quot;QTextCursor.html#insertTable(int, int)&quot;&gt;&lt;tt&gt;insertTable&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void deleteChar()" doc="/**
&lt;p&gt;If there is no selected text, deletes the character &lt;i&gt;at&lt;/i&gt; the current cursor position; otherwise deletes the selected text.&lt;/p&gt;

@see &lt;a href=&quot;QTextCursor.html#deletePreviousChar()&quot;&gt;&lt;tt&gt;deletePreviousChar&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QTextCursor.html#hasSelection()&quot;&gt;&lt;tt&gt;hasSelection&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QTextCursor.html#clearSelection()&quot;&gt;&lt;tt&gt;clearSelection&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void deletePreviousChar()" doc="/**
&lt;p&gt;If there is no selected text, deletes the character &lt;i&gt;before&lt;/i&gt; the current cursor position; otherwise deletes the selected text.&lt;/p&gt;

@see &lt;a href=&quot;QTextCursor.html#deleteChar()&quot;&gt;&lt;tt&gt;deleteChar&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QTextCursor.html#hasSelection()&quot;&gt;&lt;tt&gt;hasSelection&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QTextCursor.html#clearSelection()&quot;&gt;&lt;tt&gt;clearSelection&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void endEditBlock()" doc="/**
&lt;p&gt;Indicates the end of a block of editing operations on the document that should appear as a single operation from an undo/redo point of view.&lt;/p&gt;

@see &lt;a href=&quot;QTextCursor.html#beginEditBlock()&quot;&gt;&lt;tt&gt;beginEditBlock&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final boolean hasComplexSelection()" doc="/**
&lt;p&gt;Returns true if the cursor contains a selection that is not simply a range from &lt;a href=&quot;QTextCursor.html#selectionStart()&quot;&gt;&lt;tt&gt;selectionStart&lt;/tt&gt;&lt;/a&gt; to &lt;a href=&quot;QTextCursor.html#selectionEnd()&quot;&gt;&lt;tt&gt;selectionEnd&lt;/tt&gt;&lt;/a&gt;; otherwise returns false.&lt;/p&gt;
&lt;p&gt;Complex selections are ones that span at least two cells in a table; their extent is specified by selectedTableCells().&lt;/p&gt;
 */"/>
    <method name="public final boolean hasSelection()" doc="/**
&lt;p&gt;Returns true if the cursor contains a selection; otherwise returns false.&lt;/p&gt;
 */"/>
    <method name="public final void insertBlock(com.trolltech.qt.gui.QTextBlockFormat format)" doc="/**
&lt;p&gt;Inserts a new empty block at the cursor &lt;a href=&quot;QTextCursor.html#position()&quot;&gt;&lt;tt&gt;position&lt;/tt&gt;&lt;/a&gt; with block format &lt;tt&gt;format&lt;/tt&gt; and the current &lt;a href=&quot;QTextCursor.html#charFormat()&quot;&gt;&lt;tt&gt;charFormat&lt;/tt&gt;&lt;/a&gt; as block char format.&lt;/p&gt;

@see &lt;a href=&quot;QTextCursor.html#setBlockFormat(com.trolltech.qt.gui.QTextBlockFormat)&quot;&gt;&lt;tt&gt;setBlockFormat&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void insertBlock(com.trolltech.qt.gui.QTextBlockFormat format, com.trolltech.qt.gui.QTextCharFormat charFormat)" doc="/**
&lt;p&gt;Inserts a new empty block at the cursor &lt;a href=&quot;QTextCursor.html#position()&quot;&gt;&lt;tt&gt;position&lt;/tt&gt;&lt;/a&gt; with block format &lt;tt&gt;format&lt;/tt&gt; and &lt;tt&gt;charFormat&lt;/tt&gt; as block char format.&lt;/p&gt;

@see &lt;a href=&quot;QTextCursor.html#setBlockFormat(com.trolltech.qt.gui.QTextBlockFormat)&quot;&gt;&lt;tt&gt;setBlockFormat&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void insertBlock()" doc="/**
&lt;p&gt;Inserts a new empty block at the cursor &lt;a href=&quot;QTextCursor.html#position()&quot;&gt;&lt;tt&gt;position&lt;/tt&gt;&lt;/a&gt; with the current &lt;a href=&quot;QTextCursor.html#blockFormat()&quot;&gt;&lt;tt&gt;blockFormat&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QTextCursor.html#charFormat()&quot;&gt;&lt;tt&gt;charFormat&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QTextCursor.html#setBlockFormat(com.trolltech.qt.gui.QTextBlockFormat)&quot;&gt;&lt;tt&gt;setBlockFormat&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void insertFragment(com.trolltech.qt.gui.QTextDocumentFragment fragment)" doc="/**
&lt;p&gt;Inserts the text &lt;tt&gt;fragment&lt;/tt&gt; at the current &lt;a href=&quot;QTextCursor.html#position()&quot;&gt;&lt;tt&gt;position&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
 */"/>
    <method name="public final com.trolltech.qt.gui.QTextFrame insertFrame(com.trolltech.qt.gui.QTextFrameFormat format)" doc="/**
&lt;p&gt;Inserts a frame with the given &lt;tt&gt;format&lt;/tt&gt; at the current cursor &lt;a href=&quot;QTextCursor.html#position()&quot;&gt;&lt;tt&gt;position&lt;/tt&gt;&lt;/a&gt;, moves the cursor &lt;a href=&quot;QTextCursor.html#position()&quot;&gt;&lt;tt&gt;position&lt;/tt&gt;&lt;/a&gt; inside the frame, and returns the frame.&lt;/p&gt;
&lt;p&gt;If the cursor holds a selection, the whole selection is moved inside the frame.&lt;/p&gt;

@see &lt;a href=&quot;QTextCursor.html#hasSelection()&quot;&gt;&lt;tt&gt;hasSelection&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void insertHtml(java.lang.String html)" doc="/**
&lt;p&gt;Inserts the text &lt;tt&gt;html&lt;/tt&gt; at the current &lt;a href=&quot;QTextCursor.html#position()&quot;&gt;&lt;tt&gt;position&lt;/tt&gt;&lt;/a&gt;. The text is interpreted as HTML.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Note:&lt;/b&gt; When using this function with a style sheet, the style sheet will only apply to the current block in the document. In order to apply a style sheet throughout a document, use QTextDocument::setDefaultStyleSheet() instead.&lt;/p&gt;
 */"/>
    <method name="public final void insertImage(com.trolltech.qt.gui.QTextImageFormat format, com.trolltech.qt.gui.QTextFrameFormat.Position alignment)" doc="/**
&lt;p&gt;Inserts the image defined by the given &lt;tt&gt;format&lt;/tt&gt; at the cursor's current position with the specified &lt;tt&gt;alignment&lt;/tt&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QTextCursor.html#position()&quot;&gt;&lt;tt&gt;position&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void insertImage(java.lang.String name)" doc="/**
&lt;p&gt;Convenience method for inserting the image with the given &lt;tt&gt;name&lt;/tt&gt; at the current &lt;a href=&quot;QTextCursor.html#position()&quot;&gt;&lt;tt&gt;position&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;pre&gt;    QImage img = ...
    textDocument-&amp;gt;addResource(QTextDocument::ImageResource, QUrl(&amp;quot;myimage&amp;quot;), img);
    cursor.insertImage(&amp;quot;myimage&amp;quot;);&lt;/pre&gt;
 */"/>
    <method name="public final void insertImage(com.trolltech.qt.gui.QTextImageFormat format)" doc="/**
&lt;p&gt;Inserts the image defined by &lt;tt&gt;format&lt;/tt&gt; at the current &lt;a href=&quot;QTextCursor.html#position()&quot;&gt;&lt;tt&gt;position&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
 */"/>
    <method name="public final com.trolltech.qt.gui.QTextList insertList(com.trolltech.qt.gui.QTextListFormat format)" doc="/**
&lt;p&gt;Inserts a new block at the current position and makes it the first list item of a newly created list with the given &lt;tt&gt;format&lt;/tt&gt;. Returns the created list.&lt;/p&gt;

@see &lt;a href=&quot;QTextCursor.html#currentList()&quot;&gt;&lt;tt&gt;currentList&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QTextCursor.html#createList(com.trolltech.qt.gui.QTextListFormat.Style)&quot;&gt;&lt;tt&gt;createList&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QTextCursor.html#insertBlock()&quot;&gt;&lt;tt&gt;insertBlock&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QTextList insertList(com.trolltech.qt.gui.QTextListFormat.Style style)" doc="/**
&lt;p&gt;Inserts a new block at the current position and makes it the first list item of a newly created list with the given &lt;tt&gt;style&lt;/tt&gt;. Returns the created list.&lt;/p&gt;

@see &lt;a href=&quot;QTextCursor.html#currentList()&quot;&gt;&lt;tt&gt;currentList&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QTextCursor.html#createList(com.trolltech.qt.gui.QTextListFormat.Style)&quot;&gt;&lt;tt&gt;createList&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QTextCursor.html#insertBlock()&quot;&gt;&lt;tt&gt;insertBlock&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QTextTable insertTable(int rows, int cols, com.trolltech.qt.gui.QTextTableFormat format)" doc="/**
&lt;p&gt;Creates a new table with the given number of &lt;tt&gt;rows&lt;/tt&gt; and &lt;tt&gt;cols&lt;/tt&gt; in the specified &lt;tt&gt;format&lt;/tt&gt;, inserts it at the current cursor &lt;a href=&quot;QTextCursor.html#position()&quot;&gt;&lt;tt&gt;position&lt;/tt&gt;&lt;/a&gt; in the document, and returns the table object. The cursor is moved to the beginning of the first cell.&lt;/p&gt;
&lt;p&gt;There must be at least one row and one column in the table.&lt;/p&gt;

@see &lt;a href=&quot;QTextCursor.html#currentTable()&quot;&gt;&lt;tt&gt;currentTable&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QTextTable insertTable(int rows, int cols)" doc="/**
&lt;p&gt;Creates a new table with the given number of &lt;tt&gt;rows&lt;/tt&gt; and &lt;tt&gt;cols&lt;/tt&gt;, inserts it at the current cursor &lt;a href=&quot;QTextCursor.html#position()&quot;&gt;&lt;tt&gt;position&lt;/tt&gt;&lt;/a&gt; in the document, and returns the table object. The cursor is moved to the beginning of the first cell.&lt;/p&gt;
&lt;p&gt;There must be at least one row and one column in the table.&lt;/p&gt;

@see &lt;a href=&quot;QTextCursor.html#currentTable()&quot;&gt;&lt;tt&gt;currentTable&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void insertText(java.lang.String text)" doc="/**
&lt;p&gt;Inserts &lt;tt&gt;text&lt;/tt&gt; at the current position, using the current character format.&lt;/p&gt;
&lt;p&gt;If there is a selection, the selection is deleted and replaced by &lt;tt&gt;text&lt;/tt&gt;, for example:&lt;/p&gt;
&lt;pre&gt;    cursor.clearSelection();
    cursor.movePosition(QTextCursor::NextWord, QTextCursor::KeepAnchor);
    cursor.insertText(&amp;quot;Hello World&amp;quot;);&lt;/pre&gt;
&lt;p&gt;This clears any existing selection, selects the word at the cursor (i.e&amp;#x2e; from &lt;a href=&quot;QTextCursor.html#position()&quot;&gt;&lt;tt&gt;position&lt;/tt&gt;&lt;/a&gt; forward), and replaces the selection with the phrase &amp;quot;Hello World&amp;quot;.&lt;/p&gt;
&lt;p&gt;Any ASCII linefeed characters (\n) in the inserted text are transformed into unicode block separators, corresponding to &lt;a href=&quot;QTextCursor.html#insertBlock()&quot;&gt;&lt;tt&gt;insertBlock&lt;/tt&gt;&lt;/a&gt; calls.&lt;/p&gt;

@see &lt;a href=&quot;QTextCursor.html#charFormat()&quot;&gt;&lt;tt&gt;charFormat&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QTextCursor.html#hasSelection()&quot;&gt;&lt;tt&gt;hasSelection&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void insertText(java.lang.String text, com.trolltech.qt.gui.QTextCharFormat format)" doc="/**
&lt;p&gt;Inserts &lt;tt&gt;text&lt;/tt&gt; at the current position with the given &lt;tt&gt;format&lt;/tt&gt;.&lt;/p&gt;
 */"/>
    <method name="public final boolean isCopyOf(com.trolltech.qt.gui.QTextCursor other)" doc="/**
&lt;p&gt;Returns true if this cursor and &lt;tt&gt;other&lt;/tt&gt; are copies of each other, i.e&amp;#x2e; one of them was created as a copy of the other and neither has moved since. This is much stricter than equality.&lt;/p&gt;

@see &lt;tt&gt;operator=&lt;/tt&gt;
@see &lt;tt&gt;operator==&lt;/tt&gt; */"/>
    <method name="public final boolean isNull()" doc="/**
&lt;p&gt;Returns true if the cursor is null; otherwise returns false. A null cursor is created by the default constructor.&lt;/p&gt;
 */"/>
    <method name="public final void joinPreviousEditBlock()" doc="/**
&lt;p&gt;Like &lt;a href=&quot;QTextCursor.html#beginEditBlock()&quot;&gt;&lt;tt&gt;beginEditBlock&lt;/tt&gt;&lt;/a&gt; indicates the start of a block of editing operations that should appear as a single operation for undo/redo. However unlike &lt;a href=&quot;QTextCursor.html#beginEditBlock()&quot;&gt;&lt;tt&gt;beginEditBlock&lt;/tt&gt;&lt;/a&gt; it does not start a new block but reverses the previous call to &lt;a href=&quot;QTextCursor.html#endEditBlock()&quot;&gt;&lt;tt&gt;endEditBlock&lt;/tt&gt;&lt;/a&gt; and therefore makes following operations part of the previous edit block created.&lt;/p&gt;
&lt;p&gt;For example:&lt;/p&gt;
&lt;pre&gt;    QTextCursor cursor(textDocument);
    cursor.beginEditBlock();
    cursor.insertText(&amp;quot;Hello&amp;quot;);
    cursor.insertText(&amp;quot;World&amp;quot;);
    cursor.endEditBlock();

    ...

    cursor.joinPreviousEditBlock();
    cursor.insertText(&amp;quot;Hey&amp;quot;);
    cursor.endEditBlock();

    textDocument-&amp;gt;undo();&lt;/pre&gt;
&lt;p&gt;The call to undo() will cause all three insertions to be undone.&lt;/p&gt;

@see &lt;a href=&quot;QTextCursor.html#beginEditBlock()&quot;&gt;&lt;tt&gt;beginEditBlock&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QTextCursor.html#endEditBlock()&quot;&gt;&lt;tt&gt;endEditBlock&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void mergeBlockCharFormat(com.trolltech.qt.gui.QTextCharFormat modifier)" doc="/**
&lt;p&gt;Modifies the block char format of the current block (or all blocks that are contained in the selection) with the block format specified by &lt;tt&gt;modifier&lt;/tt&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QTextCursor.html#setBlockCharFormat(com.trolltech.qt.gui.QTextCharFormat)&quot;&gt;&lt;tt&gt;setBlockCharFormat&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void mergeBlockFormat(com.trolltech.qt.gui.QTextBlockFormat modifier)" doc="/**
&lt;p&gt;Modifies the block format of the current block (or all blocks that are contained in the selection) with the block format specified by &lt;tt&gt;modifier&lt;/tt&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QTextCursor.html#setBlockFormat(com.trolltech.qt.gui.QTextBlockFormat)&quot;&gt;&lt;tt&gt;setBlockFormat&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QTextCursor.html#blockFormat()&quot;&gt;&lt;tt&gt;blockFormat&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void mergeCharFormat(com.trolltech.qt.gui.QTextCharFormat modifier)" doc="/**
&lt;p&gt;Merges the cursor's current character format with the properties described by format &lt;tt&gt;modifier&lt;/tt&gt;. If the cursor has a selection, this function applies all the properties set in &lt;tt&gt;modifier&lt;/tt&gt; to all the character formats that are part of the selection.&lt;/p&gt;

@see &lt;a href=&quot;QTextCursor.html#hasSelection()&quot;&gt;&lt;tt&gt;hasSelection&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QTextCursor.html#setCharFormat(com.trolltech.qt.gui.QTextCharFormat)&quot;&gt;&lt;tt&gt;setCharFormat&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final boolean movePosition(com.trolltech.qt.gui.QTextCursor.MoveOperation op, com.trolltech.qt.gui.QTextCursor.MoveMode arg__2, int n)" doc="/**
&lt;p&gt;Moves the cursor by performing the given &lt;tt&gt;op&lt;/tt&gt; &lt;tt&gt;n&lt;/tt&gt; times, using the specified &lt;tt&gt;arg__2&lt;/tt&gt;, and returns true if all operations were completed successfully; otherwise returns false.&lt;/p&gt;
&lt;p&gt;For example, if this function is repeatedly used to seek to the end of the next word, it will eventually fail when the end of the document is reached.&lt;/p&gt;
&lt;p&gt;By default, the move operation is performed once (&lt;tt&gt;n&lt;/tt&gt; = 1).&lt;/p&gt;
&lt;p&gt;If &lt;tt&gt;arg__2&lt;/tt&gt; is &lt;tt&gt;KeepAnchor&lt;/tt&gt;, the cursor selects the text it moves over. This is the same effect that the user achieves when they hold down the Shift key and move the cursor with the cursor keys.&lt;/p&gt;
 */"/>
    <method name="public final boolean movePosition(com.trolltech.qt.gui.QTextCursor.MoveOperation op, com.trolltech.qt.gui.QTextCursor.MoveMode arg__2)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QTextCursor.html#movePosition(com.trolltech.qt.gui.QTextCursor.MoveOperation, com.trolltech.qt.gui.QTextCursor.MoveMode, int)&quot;&gt;&lt;tt&gt;movePosition&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;op&lt;/tt&gt;, &lt;tt&gt;arg__2&lt;/tt&gt;, 1). */"/>
    <method name="public final boolean movePosition(com.trolltech.qt.gui.QTextCursor.MoveOperation op)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QTextCursor.html#movePosition(com.trolltech.qt.gui.QTextCursor.MoveOperation, com.trolltech.qt.gui.QTextCursor.MoveMode, int)&quot;&gt;&lt;tt&gt;movePosition&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;op&lt;/tt&gt;, MoveAnchor, 1). */"/>
    <method name="public final int position()" doc="/**
&lt;p&gt;Returns the absolute position of the cursor within the document. The cursor is positioned between characters.&lt;/p&gt;

@see &lt;a href=&quot;QTextCursor.html#setPosition(int, com.trolltech.qt.gui.QTextCursor.MoveMode)&quot;&gt;&lt;tt&gt;setPosition&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QTextCursor.html#movePosition(com.trolltech.qt.gui.QTextCursor.MoveOperation, com.trolltech.qt.gui.QTextCursor.MoveMode, int)&quot;&gt;&lt;tt&gt;movePosition&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QTextCursor.html#anchor()&quot;&gt;&lt;tt&gt;anchor&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void removeSelectedText()" doc="/**
&lt;p&gt;If there is a selection, its content is deleted; otherwise does nothing.&lt;/p&gt;

@see &lt;a href=&quot;QTextCursor.html#hasSelection()&quot;&gt;&lt;tt&gt;hasSelection&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void select(com.trolltech.qt.gui.QTextCursor.SelectionType selection)" doc="/**
&lt;p&gt;Selects text in the document according to the given &lt;tt&gt;selection&lt;/tt&gt;.&lt;/p&gt;
 */"/>
    <method name="public final java.lang.String selectedText()" doc="/**
&lt;p&gt;Returns the current selection's text (which may be empty). This only returns the text, with no rich text formatting information. If you want a document fragment (i.e&amp;#x2e; formatted rich text) use &lt;a href=&quot;QTextCursor.html#selection()&quot;&gt;&lt;tt&gt;selection&lt;/tt&gt;&lt;/a&gt; instead.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Note:&lt;/b&gt; If the selection obtained from an editor spans a line break, the text will contain a Unicode U+2029 paragraph separator character instead of a newline &lt;tt&gt;\n&lt;/tt&gt; character. Use QString::replace() to replace these characters with newlines.&lt;/p&gt;
 */"/>
    <method name="public final com.trolltech.qt.gui.QTextDocumentFragment selection()" doc="/**
&lt;p&gt;Returns the current selection (which may be empty) with all its formatting information. If you just want the selected text (i.e&amp;#x2e; plain text) use &lt;a href=&quot;QTextCursor.html#selectedText()&quot;&gt;&lt;tt&gt;selectedText&lt;/tt&gt;&lt;/a&gt; instead.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Note:&lt;/b&gt; Unlike QTextDocumentFragment::toPlainText(), &lt;a href=&quot;QTextCursor.html#selectedText()&quot;&gt;&lt;tt&gt;selectedText&lt;/tt&gt;&lt;/a&gt; may include special unicode characters such as QChar::ParagraphSeparator.&lt;/p&gt;

@see &lt;tt&gt;QTextDocumentFragment::toPlainText&lt;/tt&gt; */"/>
    <method name="public final int selectionEnd()" doc="/**
&lt;p&gt;Returns the end of the selection or &lt;a href=&quot;QTextCursor.html#position()&quot;&gt;&lt;tt&gt;position&lt;/tt&gt;&lt;/a&gt; if the cursor doesn't have a selection.&lt;/p&gt;

@see &lt;a href=&quot;QTextCursor.html#selectionStart()&quot;&gt;&lt;tt&gt;selectionStart&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QTextCursor.html#position()&quot;&gt;&lt;tt&gt;position&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QTextCursor.html#anchor()&quot;&gt;&lt;tt&gt;anchor&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final int selectionStart()" doc="/**
&lt;p&gt;Returns the start of the selection or &lt;a href=&quot;QTextCursor.html#position()&quot;&gt;&lt;tt&gt;position&lt;/tt&gt;&lt;/a&gt; if the cursor doesn't have a selection.&lt;/p&gt;

@see &lt;a href=&quot;QTextCursor.html#selectionEnd()&quot;&gt;&lt;tt&gt;selectionEnd&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QTextCursor.html#position()&quot;&gt;&lt;tt&gt;position&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QTextCursor.html#anchor()&quot;&gt;&lt;tt&gt;anchor&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setBlockCharFormat(com.trolltech.qt.gui.QTextCharFormat format)" doc="/**
&lt;p&gt;Sets the block char format of the current block (or all blocks that are contained in the selection) to &lt;tt&gt;format&lt;/tt&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QTextCursor.html#blockCharFormat()&quot;&gt;&lt;tt&gt;blockCharFormat&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setBlockFormat(com.trolltech.qt.gui.QTextBlockFormat format)" doc="/**
&lt;p&gt;Sets the block format of the current block (or all blocks that are contained in the selection) to &lt;tt&gt;format&lt;/tt&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QTextCursor.html#blockFormat()&quot;&gt;&lt;tt&gt;blockFormat&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QTextCursor.html#mergeBlockFormat(com.trolltech.qt.gui.QTextBlockFormat)&quot;&gt;&lt;tt&gt;mergeBlockFormat&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setCharFormat(com.trolltech.qt.gui.QTextCharFormat format)" doc="/**
&lt;p&gt;Sets the cursor's current character format to the given &lt;tt&gt;format&lt;/tt&gt;. If the cursor has a selection, the given &lt;tt&gt;format&lt;/tt&gt; is applied to the current selection.&lt;/p&gt;

@see &lt;a href=&quot;QTextCursor.html#charFormat()&quot;&gt;&lt;tt&gt;charFormat&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QTextCursor.html#hasSelection()&quot;&gt;&lt;tt&gt;hasSelection&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QTextCursor.html#mergeCharFormat(com.trolltech.qt.gui.QTextCharFormat)&quot;&gt;&lt;tt&gt;mergeCharFormat&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setPosition(int pos, com.trolltech.qt.gui.QTextCursor.MoveMode mode)" doc="/**
&lt;p&gt;Moves the cursor to the absolute position in the document specified by &lt;tt&gt;pos&lt;/tt&gt; using a &lt;tt&gt;MoveMode&lt;/tt&gt; specified by &lt;tt&gt;mode&lt;/tt&gt;. The cursor is positioned between characters.&lt;/p&gt;

@see &lt;a href=&quot;QTextCursor.html#position()&quot;&gt;&lt;tt&gt;position&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QTextCursor.html#movePosition(com.trolltech.qt.gui.QTextCursor.MoveOperation, com.trolltech.qt.gui.QTextCursor.MoveMode, int)&quot;&gt;&lt;tt&gt;movePosition&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QTextCursor.html#anchor()&quot;&gt;&lt;tt&gt;anchor&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setPosition(int pos)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QTextCursor.html#setPosition(int, com.trolltech.qt.gui.QTextCursor.MoveMode)&quot;&gt;&lt;tt&gt;setPosition&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;pos&lt;/tt&gt;, MoveAnchor). */"/>
    <enum name="MoveMode" doc="/**
&lt;p&gt;If the &lt;a href=&quot;QTextCursor.html#anchor()&quot;&gt;&lt;tt&gt;anchor&lt;/tt&gt;&lt;/a&gt; is kept where it is and the &lt;a href=&quot;QTextCursor.html#position()&quot;&gt;&lt;tt&gt;position&lt;/tt&gt;&lt;/a&gt; is moved, the text in between will be selected.&lt;/p&gt;
 */">
        <enum-value name="MoveAnchor" doc="/**
&lt;p&gt;Moves the anchor to the same position as the cursor itself.&lt;/p&gt;
 */"/>
        <enum-value name="KeepAnchor" doc="/**
&lt;p&gt;Keeps the anchor where it is.&lt;/p&gt;
 */"/>
</enum>
    <enum name="MoveOperation">
        <enum-value name="NoMove" doc="/**
&lt;p&gt;Keep the cursor where it is&lt;/p&gt;
 */"/>
        <enum-value name="Start" doc="/**
&lt;p&gt;Move to the start of the document.&lt;/p&gt;
 */"/>
        <enum-value name="Up" doc="/**
&lt;p&gt;Move up one line.&lt;/p&gt;
 */"/>
        <enum-value name="StartOfLine" doc="/**
&lt;p&gt;Move to the start of the current line.&lt;/p&gt;
 */"/>
        <enum-value name="StartOfBlock" doc="/**
&lt;p&gt;Move to the start of the current block.&lt;/p&gt;
 */"/>
        <enum-value name="StartOfWord" doc="/**
&lt;p&gt;Move to the start of the current word.&lt;/p&gt;
 */"/>
        <enum-value name="PreviousBlock" doc="/**
&lt;p&gt;Move to the start of the previous block.&lt;/p&gt;
 */"/>
        <enum-value name="PreviousCharacter" doc="/**
&lt;p&gt;Move to the previous character.&lt;/p&gt;
 */"/>
        <enum-value name="PreviousWord" doc="/**
&lt;p&gt;Move to the beginning of the previous word.&lt;/p&gt;
 */"/>
        <enum-value name="Left" doc="/**
&lt;p&gt;Move left one character.&lt;/p&gt;
 */"/>
        <enum-value name="WordLeft" doc="/**
&lt;p&gt;Move left one word.&lt;/p&gt;
 */"/>
        <enum-value name="End" doc="/**
&lt;p&gt;Move to the end of the document.&lt;/p&gt;
 */"/>
        <enum-value name="Down" doc="/**
&lt;p&gt;Move down one line.&lt;/p&gt;
 */"/>
        <enum-value name="EndOfLine" doc="/**
&lt;p&gt;Move to the end of the current line.&lt;/p&gt;
 */"/>
        <enum-value name="EndOfWord" doc="/**
&lt;p&gt;Move to the end of the current word.&lt;/p&gt;
 */"/>
        <enum-value name="EndOfBlock" doc="/**
&lt;p&gt;Move to the end of the current block.&lt;/p&gt;
 */"/>
        <enum-value name="NextBlock" doc="/**
&lt;p&gt;Move to the beginning of the next block.&lt;/p&gt;
 */"/>
        <enum-value name="NextCharacter" doc="/**
&lt;p&gt;Move to the next character.&lt;/p&gt;
 */"/>
        <enum-value name="NextWord" doc="/**
&lt;p&gt;Move to the next word.&lt;/p&gt;
 */"/>
        <enum-value name="Right" doc="/**
&lt;p&gt;Move right one character.&lt;/p&gt;
 */"/>
        <enum-value name="WordRight" doc="/**
&lt;p&gt;Move right one word.&lt;/p&gt;
 */"/>
</enum>
    <enum name="SelectionType" doc="/**
&lt;p&gt;This enum describes the types of selection that can be applied with the &lt;a href=&quot;QTextCursor.html#select(com.trolltech.qt.gui.QTextCursor.SelectionType)&quot;&gt;&lt;tt&gt;select&lt;/tt&gt;&lt;/a&gt; function.&lt;/p&gt;
 */">
        <enum-value name="WordUnderCursor" doc="/**
&lt;p&gt;Selects the word under the cursor. If the cursor is not positioned within a string of selectable characters, no text is selected.&lt;/p&gt;
 */"/>
        <enum-value name="LineUnderCursor" doc="/**
&lt;p&gt;Selects the line of text under the cursor.&lt;/p&gt;
 */"/>
        <enum-value name="BlockUnderCursor" doc="/**
&lt;p&gt;Selects the block of text under the cursor.&lt;/p&gt;
 */"/>
        <enum-value name="Document" doc="/**
&lt;p&gt;Selects the entire document.&lt;/p&gt;
 */"/>
</enum>
</class>