Sophie

Sophie

distrib > * > 2009.0 > i586 > by-pkgid > a6711891ce757817bba854bf3f25205a > files > 2311

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

<class name="QTextDocument" doc="/**
&lt;p&gt;The &lt;a href=&quot;QTextDocument.html#QTextDocument(java.lang.String, com.trolltech.qt.core.QObject)&quot;&gt;&lt;tt&gt;QTextDocument&lt;/tt&gt;&lt;/a&gt; class holds formatted text that can be viewed and edited using a &lt;a href=&quot;QTextEdit.html&quot;&gt;&lt;tt&gt;QTextEdit&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;QTextDocument.html#QTextDocument(java.lang.String, com.trolltech.qt.core.QObject)&quot;&gt;&lt;tt&gt;QTextDocument&lt;/tt&gt;&lt;/a&gt; is a container for structured rich text documents, providing support for styled text and various types of document elements, such as lists, tables, frames, and images. They can be created for use in a &lt;a href=&quot;QTextEdit.html&quot;&gt;&lt;tt&gt;QTextEdit&lt;/tt&gt;&lt;/a&gt;, or used independently.&lt;/p&gt;
&lt;p&gt;Each document element is described by an associated format object. Each format object is treated as a unique object by QTextDocuments, and can be passed to &lt;a href=&quot;QTextDocument.html#objectForFormat(com.trolltech.qt.gui.QTextFormat)&quot;&gt;&lt;tt&gt;objectForFormat&lt;/tt&gt;&lt;/a&gt; to obtain the document element that it is applied to.&lt;/p&gt;
&lt;p&gt;A &lt;a href=&quot;QTextDocument.html#QTextDocument(java.lang.String, com.trolltech.qt.core.QObject)&quot;&gt;&lt;tt&gt;QTextDocument&lt;/tt&gt;&lt;/a&gt; can be edited programmatically using a &lt;a href=&quot;QTextCursor.html&quot;&gt;&lt;tt&gt;QTextCursor&lt;/tt&gt;&lt;/a&gt;, and its contents can be examined by traversing the document structure. The entire document structure is stored as a hierarchy of document elements beneath the root frame, found with the &lt;a href=&quot;QTextDocument.html#rootFrame()&quot;&gt;&lt;tt&gt;rootFrame&lt;/tt&gt;&lt;/a&gt; function. Alternatively, if you just want to iterate over the textual contents of the document you can use &lt;a href=&quot;QTextDocument.html#begin()&quot;&gt;&lt;tt&gt;begin&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QTextDocument.html#end()&quot;&gt;&lt;tt&gt;end&lt;/tt&gt;&lt;/a&gt;, and &lt;a href=&quot;QTextDocument.html#findBlock(int)&quot;&gt;&lt;tt&gt;findBlock&lt;/tt&gt;&lt;/a&gt; to retrieve text blocks that you can examine and iterate over.&lt;/p&gt;
&lt;p&gt;The layout of a document is determined by the &lt;a href=&quot;QTextDocument.html#documentLayout()&quot;&gt;&lt;tt&gt;documentLayout&lt;/tt&gt;&lt;/a&gt;; you can create your own &lt;a href=&quot;QAbstractTextDocumentLayout.html&quot;&gt;&lt;tt&gt;QAbstractTextDocumentLayout&lt;/tt&gt;&lt;/a&gt; subclass and set it using &lt;a href=&quot;QTextDocument.html#setDocumentLayout(com.trolltech.qt.gui.QAbstractTextDocumentLayout)&quot;&gt;&lt;tt&gt;setDocumentLayout&lt;/tt&gt;&lt;/a&gt; if you want to use your own layout logic. The document's title can be obtained by calling the documentTitle() function.&lt;/p&gt;
&lt;p&gt;The &lt;a href=&quot;QTextDocument.html#toPlainText()&quot;&gt;&lt;tt&gt;toPlainText&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QTextDocument.html#toHtml(com.trolltech.qt.core.QByteArray)&quot;&gt;&lt;tt&gt;toHtml&lt;/tt&gt;&lt;/a&gt; convenience functions allow you to retrieve the contents of the document as plain text and HTML. The document's text can be searched using the &lt;a href=&quot;QTextDocument.html#find(com.trolltech.qt.core.QRegExp, int, com.trolltech.qt.gui.QTextDocument.FindFlags)&quot;&gt;&lt;tt&gt;find&lt;/tt&gt;&lt;/a&gt; functions.&lt;/p&gt;
&lt;p&gt;Undo/redo of operations performed on the document can be controlled using the &lt;a href=&quot;QTextDocument.html#setUndoRedoEnabled(boolean)&quot;&gt;&lt;tt&gt;setUndoRedoEnabled&lt;/tt&gt;&lt;/a&gt; function. The undo/redo system can be controlled by an editor widget through the &lt;a href=&quot;QTextDocument.html#undo()&quot;&gt;&lt;tt&gt;undo&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QTextDocument.html#redo()&quot;&gt;&lt;tt&gt;redo&lt;/tt&gt;&lt;/a&gt; slots; the document also provides &lt;a href=&quot;QTextDocument.html#contentsChanged()&quot;&gt;&lt;tt&gt;contentsChanged&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QTextDocument.html#undoAvailable(boolean)&quot;&gt;&lt;tt&gt;undoAvailable&lt;/tt&gt;&lt;/a&gt;, and &lt;a href=&quot;QTextDocument.html#redoAvailable(boolean)&quot;&gt;&lt;tt&gt;redoAvailable&lt;/tt&gt;&lt;/a&gt; signals that inform connected editor widgets about the state of the undo/redo system.&lt;/p&gt;

@see &lt;a href=&quot;QTextCursor.html&quot;&gt;&lt;tt&gt;QTextCursor&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QTextEdit.html&quot;&gt;&lt;tt&gt;QTextEdit&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;%2E%2E/richtext.html&quot;&gt;Rich Text Processing&lt;/tt&gt;&lt;/a&gt; */">
    <signal name="protected final void blockCountChanged(int newBlockCount)" doc="/**
&lt;p&gt;This signal is emitted when the total number of text blocks in the document changes. The value passed in &lt;tt&gt;newBlockCount&lt;/tt&gt; is the new total.&lt;/p&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;b&gt;Compatible Slot Signatures:&lt;/b&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;tt&gt;void mySlot(int newBlockCount)&lt;/tt&gt;&lt;/dd&gt;
&lt;dd&gt;&lt;tt&gt;void mySlot()&lt;/tt&gt;&lt;/dd&gt;
&lt;/dl&gt;
 */"/>
    <signal name="protected final void contentsChange(int from, int charsRemoves, int charsAdded)" doc="/**
&lt;p&gt;This signal is emitted whenever the document's content changes; for example, when text is inserted or deleted, or when formatting is applied.&lt;/p&gt;
&lt;p&gt;Information is provided about the &lt;tt&gt;from&lt;/tt&gt; of the character in the document where the change occurred, the number of characters removed (&lt;tt&gt;charsRemoves&lt;/tt&gt;), and the number of characters added (&lt;tt&gt;charsAdded&lt;/tt&gt;).&lt;/p&gt;
&lt;p&gt;The signal is emitted before the document's layout manager is notified about the change. This hook allows you to implement syntax highlighting for the document.&lt;/p&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;b&gt;Compatible Slot Signatures:&lt;/b&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;tt&gt;void mySlot(int from, int charsRemoves, int charsAdded)&lt;/tt&gt;&lt;/dd&gt;
&lt;dd&gt;&lt;tt&gt;void mySlot(int from, int charsRemoves)&lt;/tt&gt;&lt;/dd&gt;
&lt;dd&gt;&lt;tt&gt;void mySlot(int from)&lt;/tt&gt;&lt;/dd&gt;
&lt;dd&gt;&lt;tt&gt;void mySlot()&lt;/tt&gt;&lt;/dd&gt;
&lt;/dl&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;b&gt;See Also:&lt;/b&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;tt&gt;QAbstractTextDocumentLayout::documentChanged&lt;/tt&gt;, &lt;a href=&quot;QTextDocument.html#contentsChanged()&quot;&gt;&lt;tt&gt;contentsChanged&lt;/tt&gt;&lt;/a&gt;&lt;/dd&gt;
&lt;/dl&gt;
 */"/>
    <signal name="protected final void contentsChanged()" doc="/**
&lt;p&gt;This signal is emitted whenever the document's content changes; for example, when text is inserted or deleted, or when formatting is applied.&lt;/p&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;b&gt;Compatible Slot Signature:&lt;/b&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;tt&gt;void mySlot()&lt;/tt&gt;&lt;/dd&gt;
&lt;/dl&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;b&gt;See Also:&lt;/b&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;a href=&quot;QTextDocument.html#contentsChange(int, int, int)&quot;&gt;&lt;tt&gt;contentsChange&lt;/tt&gt;&lt;/a&gt;&lt;/dd&gt;
&lt;/dl&gt;
 */"/>
    <signal name="protected final void cursorPositionChanged(com.trolltech.qt.gui.QTextCursor cursor)" doc="/**
&lt;p&gt;This signal is emitted whenever the position of a cursor changed due to an editing operation. The cursor that changed is passed in &lt;tt&gt;cursor&lt;/tt&gt;. If you need a signal when the cursor is moved with the arrow keys you can use the cursorPositionChanged() signal in &lt;a href=&quot;QTextEdit.html&quot;&gt;&lt;tt&gt;QTextEdit&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;b&gt;Compatible Slot Signatures:&lt;/b&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;tt&gt;void mySlot(com.trolltech.qt.gui.QTextCursor cursor)&lt;/tt&gt;&lt;/dd&gt;
&lt;dd&gt;&lt;tt&gt;void mySlot()&lt;/tt&gt;&lt;/dd&gt;
&lt;/dl&gt;
 */"/>
    <signal name="protected final void modificationChanged(boolean m)" doc="/**
&lt;p&gt;This signal is emitted whenever the content of the document changes in a way that affects the modification state. If &lt;tt&gt;m&lt;/tt&gt; is true, the document has been modified; otherwise it is false.&lt;/p&gt;
&lt;p&gt;For example, calling &lt;a href=&quot;QTextDocument.html#setModified(boolean)&quot;&gt;&lt;tt&gt;setModified&lt;/tt&gt;&lt;/a&gt;(false) on a document and then inserting text causes the signal to get emitted. If you undo that operation, causing the document to return to its original unmodified state, the signal will get emitted again.&lt;/p&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;b&gt;Compatible Slot Signatures:&lt;/b&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;tt&gt;void mySlot(boolean m)&lt;/tt&gt;&lt;/dd&gt;
&lt;dd&gt;&lt;tt&gt;void mySlot()&lt;/tt&gt;&lt;/dd&gt;
&lt;/dl&gt;
 */"/>
    <signal name="protected final void redoAvailable(boolean arg__1)" doc="/**
&lt;p&gt;This signal is emitted whenever redo operations become available (&lt;tt&gt;arg__1&lt;/tt&gt; is true) or unavailable (&lt;tt&gt;arg__1&lt;/tt&gt; is false).&lt;/p&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;b&gt;Compatible Slot Signatures:&lt;/b&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;tt&gt;void mySlot(boolean arg__1)&lt;/tt&gt;&lt;/dd&gt;
&lt;dd&gt;&lt;tt&gt;void mySlot()&lt;/tt&gt;&lt;/dd&gt;
&lt;/dl&gt;
 */"/>
    <signal name="protected final void undoAvailable(boolean arg__1)" doc="/**
&lt;p&gt;This signal is emitted whenever undo operations become available (&lt;tt&gt;arg__1&lt;/tt&gt; is true) or unavailable (&lt;tt&gt;arg__1&lt;/tt&gt; is false).&lt;/p&gt;
&lt;p&gt;See the &lt;a href=&quot;%2E%2E/qundo.html&quot;&gt;Qt Undo Framework&lt;/tt&gt;&lt;/a&gt; documentation for details.&lt;/p&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;b&gt;Compatible Slot Signatures:&lt;/b&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;tt&gt;void mySlot(boolean arg__1)&lt;/tt&gt;&lt;/dd&gt;
&lt;dd&gt;&lt;tt&gt;void mySlot()&lt;/tt&gt;&lt;/dd&gt;
&lt;/dl&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;b&gt;See Also:&lt;/b&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;a href=&quot;QTextDocument.html#undo()&quot;&gt;&lt;tt&gt;undo&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QTextDocument.html#isUndoRedoEnabled()&quot;&gt;&lt;tt&gt;isUndoRedoEnabled&lt;/tt&gt;&lt;/a&gt;&lt;/dd&gt;
&lt;/dl&gt;
 */"/>
    <method name="public QTextDocument(com.trolltech.qt.core.QObject parent)" doc="/**
&lt;p&gt;Constructs an empty &lt;a href=&quot;QTextDocument.html#QTextDocument(java.lang.String, com.trolltech.qt.core.QObject)&quot;&gt;&lt;tt&gt;QTextDocument&lt;/tt&gt;&lt;/a&gt; with the given &lt;tt&gt;parent&lt;/tt&gt;.&lt;/p&gt;
 */"/>
    <method name="public QTextDocument()" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QTextDocument.html#QTextDocument(java.lang.String, com.trolltech.qt.core.QObject)&quot;&gt;&lt;tt&gt;QTextDocument&lt;/tt&gt;&lt;/a&gt;(0). */"/>
    <method name="public QTextDocument(java.lang.String text, com.trolltech.qt.core.QObject parent)" doc="/**
&lt;p&gt;Constructs a &lt;a href=&quot;QTextDocument.html#QTextDocument(java.lang.String, com.trolltech.qt.core.QObject)&quot;&gt;&lt;tt&gt;QTextDocument&lt;/tt&gt;&lt;/a&gt; containing the plain (unformatted) &lt;tt&gt;text&lt;/tt&gt; specified, and with the given &lt;tt&gt;parent&lt;/tt&gt;.&lt;/p&gt;
 */"/>
    <method name="public QTextDocument(java.lang.String text)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QTextDocument.html#QTextDocument(java.lang.String, com.trolltech.qt.core.QObject)&quot;&gt;&lt;tt&gt;QTextDocument&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;text&lt;/tt&gt;, 0). */"/>
    <method name="public final void addResource(int type, com.trolltech.qt.core.QUrl name, java.lang.Object resource)" doc="/**
&lt;p&gt;Adds the resource &lt;tt&gt;resource&lt;/tt&gt; to the resource cache, using &lt;tt&gt;type&lt;/tt&gt; and &lt;tt&gt;name&lt;/tt&gt; as identifiers. &lt;tt&gt;type&lt;/tt&gt; should be a value from QTextDocument::ResourceType.&lt;/p&gt;
 */"/>
    <method name="public final void adjustSize()" doc="/**
&lt;p&gt;Adjusts the document to a reasonable size.&lt;/p&gt;

@see &lt;a href=&quot;QTextDocument.html#idealWidth()&quot;&gt;&lt;tt&gt;idealWidth&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QTextDocument.html#textWidth()&quot;&gt;&lt;tt&gt;textWidth&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QTextDocument.html#size()&quot;&gt;size&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final java.util.List&lt;com.trolltech.qt.gui.QTextFormat&gt; allFormats()" doc="/**
&lt;p&gt;Returns a vector of text formats for all the formats used in the document.&lt;/p&gt;
 */"/>
    <method name="public final com.trolltech.qt.gui.QTextBlock begin()" doc="/**
&lt;p&gt;Returns the document's first text block.&lt;/p&gt;
 */"/>
    <method name="public final int blockCount()" doc="/**
&lt;p&gt;Returns the number of text blocks in the document.&lt;/p&gt;
&lt;p&gt;The value of this property is undefined in documents with tables or frames.&lt;/p&gt;
 */"/>
    <method name="public final com.trolltech.qt.gui.QTextDocument clone(com.trolltech.qt.core.QObject parent)" doc="/**
&lt;p&gt;Creates a new &lt;a href=&quot;QTextDocument.html#QTextDocument(java.lang.String, com.trolltech.qt.core.QObject)&quot;&gt;&lt;tt&gt;QTextDocument&lt;/tt&gt;&lt;/a&gt; that is a copy of this text document. &lt;tt&gt;parent&lt;/tt&gt; is the parent of the returned text document.&lt;/p&gt;
 */"/>
    <method name="public final com.trolltech.qt.gui.QTextDocument clone()" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QTextDocument.html#clone(com.trolltech.qt.core.QObject)&quot;&gt;clone&lt;/tt&gt;&lt;/a&gt;(0). */"/>
    <method name="public final com.trolltech.qt.gui.QFont defaultFont()" doc="/**
&lt;p&gt;Returns the default font used to display the document's text.&lt;/p&gt;

@see &lt;a href=&quot;QTextDocument.html#setDefaultFont(com.trolltech.qt.gui.QFont)&quot;&gt;&lt;tt&gt;setDefaultFont&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final java.lang.String defaultStyleSheet()" doc="/**
&lt;p&gt;The default style sheet is applied to all newly HTML formatted text that is inserted into the document, for example using &lt;a href=&quot;QTextDocument.html#setHtml(java.lang.String)&quot;&gt;&lt;tt&gt;setHtml&lt;/tt&gt;&lt;/a&gt; or QTextCursor::insertHtml().&lt;/p&gt;
&lt;p&gt;The style sheet needs to be compliant to CSS 2.1 syntax.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Note:&lt;/b&gt; Changing the default style sheet does not have any effect to the existing content of the document.&lt;/p&gt;

@see &lt;a href=&quot;QTextDocument.html#setDefaultStyleSheet(java.lang.String)&quot;&gt;&lt;tt&gt;setDefaultStyleSheet&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;%2E%2E/richtext-html-subset.html&quot;&gt;Supported HTML Subset&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QTextOption defaultTextOption()" doc="/**
&lt;p&gt;Returns the default text option will be set on all &lt;a href=&quot;QTextLayout.html&quot;&gt;&lt;tt&gt;QTextLayout&lt;/tt&gt;&lt;/a&gt;s in the document..&lt;/p&gt;
&lt;p&gt;When &lt;a href=&quot;QTextBlock.html&quot;&gt;&lt;tt&gt;QTextBlock&lt;/tt&gt;&lt;/a&gt;s are created, the &lt;a href=&quot;QTextDocument.html#defaultTextOption()&quot;&gt;&lt;tt&gt;defaultTextOption&lt;/tt&gt;&lt;/a&gt; is set on their &lt;a href=&quot;QTextLayout.html&quot;&gt;&lt;tt&gt;QTextLayout&lt;/tt&gt;&lt;/a&gt;. This allows setting global properties for the document such as the default word wrap mode.&lt;/p&gt;

@see &lt;a href=&quot;QTextDocument.html#setDefaultTextOption(com.trolltech.qt.gui.QTextOption)&quot;&gt;&lt;tt&gt;setDefaultTextOption&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QAbstractTextDocumentLayout documentLayout()" doc="/**
&lt;p&gt;Returns the document layout for this document.&lt;/p&gt;

@see &lt;a href=&quot;QTextDocument.html#setDocumentLayout(com.trolltech.qt.gui.QAbstractTextDocumentLayout)&quot;&gt;&lt;tt&gt;setDocumentLayout&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void drawContents(com.trolltech.qt.gui.QPainter painter, com.trolltech.qt.core.QRectF rect)" doc="/**
&lt;p&gt;Draws the content of the document with painter &lt;tt&gt;painter&lt;/tt&gt;, clipped to &lt;tt&gt;rect&lt;/tt&gt;. If &lt;tt&gt;rect&lt;/tt&gt; is a null rectangle (default) then the document is painted unclipped.&lt;/p&gt;
 */"/>
    <method name="public final void drawContents(com.trolltech.qt.gui.QPainter painter)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QTextDocument.html#drawContents(com.trolltech.qt.gui.QPainter, com.trolltech.qt.core.QRectF)&quot;&gt;&lt;tt&gt;drawContents&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;painter&lt;/tt&gt;, QRectF()). */"/>
    <method name="public final com.trolltech.qt.gui.QTextBlock end()" doc="/**
&lt;p&gt;This function returns a block to test for the end of the document while iterating over it.&lt;/p&gt;
&lt;pre&gt;        for (QTextBlock it = doc-&amp;gt;begin(); it != doc-&amp;gt;end(); it = it.next())
            cout &amp;lt;&amp;lt; it.text().toStdString() &amp;lt;&amp;lt; endl;&lt;/pre&gt;
&lt;p&gt;The block returned is invalid and represents the block after the last block in the document.&lt;/p&gt;
 */"/>
    <method name="public final com.trolltech.qt.gui.QTextCursor find(java.lang.String subString, int from, com.trolltech.qt.gui.QTextDocument.FindFlags options)" doc="/**
&lt;p&gt;Finds the next occurrence of the string, &lt;tt&gt;subString&lt;/tt&gt;, in the document. The search starts at the given &lt;tt&gt;from&lt;/tt&gt;, and proceeds forwards through the document unless specified otherwise in the search options. The &lt;tt&gt;options&lt;/tt&gt; control the type of search performed.&lt;/p&gt;
&lt;p&gt;Returns a cursor with the match selected if &lt;tt&gt;subString&lt;/tt&gt; was found; otherwise returns a null cursor.&lt;/p&gt;
&lt;p&gt;If the &lt;tt&gt;from&lt;/tt&gt; is 0 (the default) the search begins from the beginning of the document; otherwise it begins at the specified position.&lt;/p&gt;
 */"/>
    <method name="public final com.trolltech.qt.gui.QTextCursor find(java.lang.String subString, int from)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QTextDocument.html#find(com.trolltech.qt.core.QRegExp, int, com.trolltech.qt.gui.QTextDocument.FindFlags)&quot;&gt;find&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;subString&lt;/tt&gt;, &lt;tt&gt;from&lt;/tt&gt;, 0). */"/>
    <method name="public final com.trolltech.qt.gui.QTextCursor find(java.lang.String subString)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QTextDocument.html#find(com.trolltech.qt.core.QRegExp, int, com.trolltech.qt.gui.QTextDocument.FindFlags)&quot;&gt;find&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;subString&lt;/tt&gt;, 0, 0). */"/>
    <method name="public final com.trolltech.qt.gui.QTextCursor find(java.lang.String subString, com.trolltech.qt.gui.QTextCursor from, com.trolltech.qt.gui.QTextDocument.FindFlags options)" doc="/**
&lt;p&gt;Finds the next occurrence of the string, &lt;tt&gt;subString&lt;/tt&gt;, in the document. The search starts at the position of the given &lt;tt&gt;from&lt;/tt&gt;, and proceeds forwards through the document unless specified otherwise in the search options. The &lt;tt&gt;options&lt;/tt&gt; control the type of search performed.&lt;/p&gt;
&lt;p&gt;Returns a cursor with the match selected if &lt;tt&gt;subString&lt;/tt&gt; was found; otherwise returns a null cursor.&lt;/p&gt;
&lt;p&gt;If the given &lt;tt&gt;from&lt;/tt&gt; has a selection, the search begins after the selection; otherwise it begins at the cursor's position.&lt;/p&gt;
&lt;p&gt;By default the search is case-sensitive, and can match text anywhere in the document.&lt;/p&gt;
 */"/>
    <method name="public final com.trolltech.qt.gui.QTextCursor find(java.lang.String subString, com.trolltech.qt.gui.QTextCursor from)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QTextDocument.html#find(com.trolltech.qt.core.QRegExp, int, com.trolltech.qt.gui.QTextDocument.FindFlags)&quot;&gt;find&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;subString&lt;/tt&gt;, &lt;tt&gt;from&lt;/tt&gt;, 0). */"/>
    <method name="public final com.trolltech.qt.gui.QTextCursor find(com.trolltech.qt.core.QRegExp expr, com.trolltech.qt.gui.QTextCursor from, com.trolltech.qt.gui.QTextDocument.FindFlags options)" doc="/**
&lt;p&gt;Finds the next occurrence, matching the regular expression, &lt;tt&gt;expr&lt;/tt&gt;, in the document. The search starts at the position of the given &lt;tt&gt;from&lt;/tt&gt;, and proceeds forwards through the document unless specified otherwise in the search options. The &lt;tt&gt;options&lt;/tt&gt; control the type of search performed. The &lt;a href=&quot;QTextDocument.html#FindFlag-enum&quot;&gt;&lt;tt&gt;FindCaseSensitively&lt;/tt&gt;&lt;/a&gt; option is ignored for this overload, use QRegExp::caseSensitivity instead.&lt;/p&gt;
&lt;p&gt;Returns a cursor with the match selected if a match was found; otherwise returns a null cursor.&lt;/p&gt;
&lt;p&gt;If the given &lt;tt&gt;from&lt;/tt&gt; has a selection, the search begins after the selection; otherwise it begins at the cursor's position.&lt;/p&gt;
&lt;p&gt;By default the search is case-sensitive, and can match text anywhere in the document.&lt;/p&gt;
 */"/>
    <method name="public final com.trolltech.qt.gui.QTextCursor find(com.trolltech.qt.core.QRegExp expr, com.trolltech.qt.gui.QTextCursor from)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QTextDocument.html#find(com.trolltech.qt.core.QRegExp, int, com.trolltech.qt.gui.QTextDocument.FindFlags)&quot;&gt;find&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;expr&lt;/tt&gt;, &lt;tt&gt;from&lt;/tt&gt;, 0). */"/>
    <method name="public final com.trolltech.qt.gui.QTextCursor find(com.trolltech.qt.core.QRegExp expr, int from, com.trolltech.qt.gui.QTextDocument.FindFlags options)" doc="/**
&lt;p&gt;Finds the next occurrence, matching the regular expression, &lt;tt&gt;expr&lt;/tt&gt;, in the document. The search starts at the given &lt;tt&gt;from&lt;/tt&gt;, and proceeds forwards through the document unless specified otherwise in the search options. The &lt;tt&gt;options&lt;/tt&gt; control the type of search performed. The &lt;a href=&quot;QTextDocument.html#FindFlag-enum&quot;&gt;&lt;tt&gt;FindCaseSensitively&lt;/tt&gt;&lt;/a&gt; option is ignored for this overload, use QRegExp::caseSensitivity instead.&lt;/p&gt;
&lt;p&gt;Returns a cursor with the match selected if a match was found; otherwise returns a null cursor.&lt;/p&gt;
&lt;p&gt;If the &lt;tt&gt;from&lt;/tt&gt; is 0 (the default) the search begins from the beginning of the document; otherwise it begins at the specified position.&lt;/p&gt;
 */"/>
    <method name="public final com.trolltech.qt.gui.QTextCursor find(com.trolltech.qt.core.QRegExp expr, int from)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QTextDocument.html#find(com.trolltech.qt.core.QRegExp, int, com.trolltech.qt.gui.QTextDocument.FindFlags)&quot;&gt;find&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;expr&lt;/tt&gt;, &lt;tt&gt;from&lt;/tt&gt;, 0). */"/>
    <method name="public final com.trolltech.qt.gui.QTextCursor find(com.trolltech.qt.core.QRegExp expr)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QTextDocument.html#find(com.trolltech.qt.core.QRegExp, int, com.trolltech.qt.gui.QTextDocument.FindFlags)&quot;&gt;find&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;expr&lt;/tt&gt;, 0, 0). */"/>
    <method name="public final com.trolltech.qt.gui.QTextBlock findBlock(int pos)" doc="/**
&lt;p&gt;Returns the text block that contains the &lt;tt&gt;pos&lt;/tt&gt;-th character.&lt;/p&gt;
 */"/>
    <method name="public final com.trolltech.qt.gui.QTextFrame frameAt(int pos)" doc="/**
&lt;p&gt;This method is used internally by Qt Jambi.
Do not use it in your applications.&lt;/p&gt;
 */"/>
    <method name="public final double idealWidth()" doc="/**
&lt;p&gt;Returns the ideal width of the text document. The ideal width is the actually used width of the document without optional alignments taken into account. It is always &amp;lt;= &lt;a href=&quot;QTextDocument.html#size()&quot;&gt;&lt;tt&gt;size&lt;/tt&gt;&lt;/a&gt;.width().&lt;/p&gt;

@see &lt;a href=&quot;QTextDocument.html#adjustSize()&quot;&gt;&lt;tt&gt;adjustSize&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QTextDocument.html#textWidth()&quot;&gt;&lt;tt&gt;textWidth&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final boolean isEmpty()" doc="/**
&lt;p&gt;Returns true if the document is empty; otherwise returns false.&lt;/p&gt;
 */"/>
    <method name="public final boolean isModified()" doc="/**
&lt;p&gt;Returns whether the document has been modified by the user.&lt;/p&gt;

@see &lt;a href=&quot;QTextDocument.html#modificationChanged(boolean)&quot;&gt;&lt;tt&gt;modificationChanged&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final boolean isRedoAvailable()" doc="/**
&lt;p&gt;Returns true if redo is available; otherwise returns false.&lt;/p&gt;
 */"/>
    <method name="public final boolean isUndoAvailable()" doc="/**
&lt;p&gt;Returns true if undo is available; otherwise returns false.&lt;/p&gt;
 */"/>
    <method name="public final boolean isUndoRedoEnabled()" doc="/**
&lt;p&gt;Returns whether undo/redo are enabled for this document.&lt;/p&gt;
&lt;p&gt;This defaults to true. If disabled, the undo stack is cleared and no items will be added to it.&lt;/p&gt;
 */"/>
    <method name="public final void markContentsDirty(int from, int length)" doc="/**
&lt;p&gt;Marks the contents specified by the given &lt;tt&gt;from&lt;/tt&gt; and &lt;tt&gt;length&lt;/tt&gt; as &amp;quot;dirty&amp;quot;, informing the document that it needs to be laid out again.&lt;/p&gt;
 */"/>
    <method name="public final int maximumBlockCount()" doc="/**
&lt;p&gt;Returns Specifies the limit for blocks in the document..&lt;/p&gt;
&lt;p&gt;Specifies the maximum number of blocks the document may have. If there are more blocks in the document that specified with this property blocks are removed from the beginning of the document.&lt;/p&gt;
&lt;p&gt;A negative or zero value specifies that the document may contain an unlimited amount of blocks.&lt;/p&gt;
&lt;p&gt;The default value is 0.&lt;/p&gt;
&lt;p&gt;Note that setting this property will apply the limit immediately to the document contents.&lt;/p&gt;
&lt;p&gt;Setting this property also disables the undo redo history.&lt;/p&gt;
&lt;p&gt;This property is undefined in documents with tables or frames.&lt;/p&gt;

@see &lt;a href=&quot;QTextDocument.html#setMaximumBlockCount(int)&quot;&gt;&lt;tt&gt;setMaximumBlockCount&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final java.lang.String metaInformation(com.trolltech.qt.gui.QTextDocument.MetaInformation info)" doc="/**
&lt;p&gt;Returns meta information about the document of the type specified by &lt;tt&gt;info&lt;/tt&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QTextDocument.html#setMetaInformation(com.trolltech.qt.gui.QTextDocument.MetaInformation, java.lang.String)&quot;&gt;&lt;tt&gt;setMetaInformation&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QTextObject object(int objectIndex)" doc="/**
&lt;p&gt;Returns the text object associated with the given &lt;tt&gt;objectIndex&lt;/tt&gt;.&lt;/p&gt;
 */"/>
    <method name="public final com.trolltech.qt.gui.QTextObject objectForFormat(com.trolltech.qt.gui.QTextFormat arg__1)" doc="/**
&lt;p&gt;Returns the text object associated with the format &lt;tt&gt;arg__1&lt;/tt&gt;.&lt;/p&gt;
 */"/>
    <method name="public final int pageCount()" doc="/**
&lt;p&gt;returns the number of pages in this document.&lt;/p&gt;
 */"/>
    <method name="public final com.trolltech.qt.core.QSizeF pageSize()" doc="/**
&lt;p&gt;Returns the page size that should be used for laying out the document.&lt;/p&gt;

@see &lt;a href=&quot;QTextDocument.html#setPageSize(com.trolltech.qt.core.QSizeF)&quot;&gt;&lt;tt&gt;setPageSize&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QTextDocument.html#modificationChanged(boolean)&quot;&gt;&lt;tt&gt;modificationChanged&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void print(com.trolltech.qt.gui.QPrinter printer)" doc="/**
&lt;p&gt;Prints the document to the given &lt;tt&gt;printer&lt;/tt&gt;. The &lt;a href=&quot;QPrinter.html&quot;&gt;&lt;tt&gt;QPrinter&lt;/tt&gt;&lt;/a&gt; must be set up before being used with this function.&lt;/p&gt;
&lt;p&gt;This is only a convenience method to print the whole document to the printer.&lt;/p&gt;
&lt;p&gt;If the document is already paginated through a specified height in the &lt;a href=&quot;QTextDocument.html#pageSize()&quot;&gt;&lt;tt&gt;pageSize&lt;/tt&gt;&lt;/a&gt; property it is printed as-is.&lt;/p&gt;
&lt;p&gt;If the document is not paginated, like for example a document used in a &lt;a href=&quot;QTextEdit.html&quot;&gt;&lt;tt&gt;QTextEdit&lt;/tt&gt;&lt;/a&gt;, then a temporary copy of the document is created and the copy is broken into multiple pages according to the size of the &lt;a href=&quot;QPrinter.html&quot;&gt;&lt;tt&gt;QPrinter&lt;/tt&gt;&lt;/a&gt;'s paperRect(). By default a 2 cm margin is set around the document contents. In addition the current page number is printed at the bottom of each page.&lt;/p&gt;
&lt;p&gt;Note that QPrinter::Selection is not supported as print range with this function since the selection is a property of &lt;a href=&quot;QTextCursor.html&quot;&gt;&lt;tt&gt;QTextCursor&lt;/tt&gt;&lt;/a&gt;. If you have a &lt;a href=&quot;QTextEdit.html&quot;&gt;&lt;tt&gt;QTextEdit&lt;/tt&gt;&lt;/a&gt; associated with your &lt;a href=&quot;QTextDocument.html#QTextDocument(java.lang.String, com.trolltech.qt.core.QObject)&quot;&gt;&lt;tt&gt;QTextDocument&lt;/tt&gt;&lt;/a&gt; then you can use &lt;a href=&quot;QTextEdit.html&quot;&gt;&lt;tt&gt;QTextEdit&lt;/tt&gt;&lt;/a&gt;'s &lt;a href=&quot;QTextDocument.html#print(com.trolltech.qt.gui.QPrinter)&quot;&gt;&lt;tt&gt;print&lt;/tt&gt;&lt;/a&gt; function because &lt;a href=&quot;QTextEdit.html&quot;&gt;&lt;tt&gt;QTextEdit&lt;/tt&gt;&lt;/a&gt; has access to the user's selection.&lt;/p&gt;

@see &lt;tt&gt;QTextEdit::print&lt;/tt&gt; */"/>
    <method name="public final void redo()" doc="/**
&lt;p&gt;Redoes the last editing operation on the document if redo is available&lt;/tt&gt;.&lt;/p&gt;
 */"/>
    <method name="public final java.lang.Object resource(int type, com.trolltech.qt.core.QUrl name)" doc="/**
&lt;p&gt;Returns data of the specified &lt;tt&gt;type&lt;/tt&gt; from the resource with the given &lt;tt&gt;name&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;This function is called by the rich text engine to request data that isn't directly stored by &lt;a href=&quot;QTextDocument.html#QTextDocument(java.lang.String, com.trolltech.qt.core.QObject)&quot;&gt;&lt;tt&gt;QTextDocument&lt;/tt&gt;&lt;/a&gt;, but still associated with it. For example, images are referenced indirectly by the name attribute of a &lt;a href=&quot;QTextImageFormat.html&quot;&gt;&lt;tt&gt;QTextImageFormat&lt;/tt&gt;&lt;/a&gt; object.&lt;/p&gt;
&lt;p&gt;Resources are cached internally in the document. If a resource can not be found in the cache, &lt;a href=&quot;QTextDocument.html#loadResource(int, com.trolltech.qt.core.QUrl)&quot;&gt;&lt;tt&gt;loadResource&lt;/tt&gt;&lt;/a&gt; is called to try to load the resource. &lt;a href=&quot;QTextDocument.html#loadResource(int, com.trolltech.qt.core.QUrl)&quot;&gt;&lt;tt&gt;loadResource&lt;/tt&gt;&lt;/a&gt; should then use &lt;a href=&quot;QTextDocument.html#addResource(int, com.trolltech.qt.core.QUrl, java.lang.Object)&quot;&gt;&lt;tt&gt;addResource&lt;/tt&gt;&lt;/a&gt; to add the resource to the cache.&lt;/p&gt;
 */"/>
    <method name="public final com.trolltech.qt.gui.QTextFrame rootFrame()" doc="/**
&lt;p&gt;Returns the document's root frame.&lt;/p&gt;
 */"/>
    <method name="public final void setDefaultFont(com.trolltech.qt.gui.QFont font)" doc="/**
&lt;p&gt;Sets the default font used to display the document's text to &lt;tt&gt;font&lt;/tt&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QTextDocument.html#defaultFont()&quot;&gt;&lt;tt&gt;defaultFont&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setDefaultStyleSheet(java.lang.String sheet)" doc="/**
&lt;p&gt;The default style sheet is applied to all newly HTML formatted text that is inserted into the document, for example using &lt;a href=&quot;QTextDocument.html#setHtml(java.lang.String)&quot;&gt;&lt;tt&gt;setHtml&lt;/tt&gt;&lt;/a&gt; or QTextCursor::insertHtml().&lt;/p&gt;
&lt;p&gt;The style sheet needs to be compliant to CSS 2.1 syntax.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Note:&lt;/b&gt; Changing the default style sheet does not have any effect to the existing content of the document.&lt;/p&gt;

@see &lt;a href=&quot;QTextDocument.html#defaultStyleSheet()&quot;&gt;&lt;tt&gt;defaultStyleSheet&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;%2E%2E/richtext-html-subset.html&quot;&gt;Supported HTML Subset&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setDefaultTextOption(com.trolltech.qt.gui.QTextOption option)" doc="/**
&lt;p&gt;Sets the default text option will be set on all &lt;a href=&quot;QTextLayout.html&quot;&gt;&lt;tt&gt;QTextLayout&lt;/tt&gt;&lt;/a&gt;s in the document. to &lt;tt&gt;option&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;When &lt;a href=&quot;QTextBlock.html&quot;&gt;&lt;tt&gt;QTextBlock&lt;/tt&gt;&lt;/a&gt;s are created, the &lt;a href=&quot;QTextDocument.html#defaultTextOption()&quot;&gt;&lt;tt&gt;defaultTextOption&lt;/tt&gt;&lt;/a&gt; is set on their &lt;a href=&quot;QTextLayout.html&quot;&gt;&lt;tt&gt;QTextLayout&lt;/tt&gt;&lt;/a&gt;. This allows setting global properties for the document such as the default word wrap mode.&lt;/p&gt;

@see &lt;a href=&quot;QTextDocument.html#defaultTextOption()&quot;&gt;&lt;tt&gt;defaultTextOption&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setDocumentLayout(com.trolltech.qt.gui.QAbstractTextDocumentLayout layout)" doc="/**
&lt;p&gt;Sets the document to use the given &lt;tt&gt;layout&lt;/tt&gt;. The previous layout is deleted.&lt;/p&gt;
&lt;p&gt;Note that when setting a new layout for a &lt;a href=&quot;QTextEdit.html&quot;&gt;&lt;tt&gt;QTextEdit&lt;/tt&gt;&lt;/a&gt; you have to create a new &lt;a href=&quot;QTextDocument.html#QTextDocument(java.lang.String, com.trolltech.qt.core.QObject)&quot;&gt;&lt;tt&gt;QTextDocument&lt;/tt&gt;&lt;/a&gt; first, set the new layout on it and then set the new document on &lt;a href=&quot;QTextEdit.html&quot;&gt;&lt;tt&gt;QTextEdit&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QTextDocument.html#documentLayout()&quot;&gt;&lt;tt&gt;documentLayout&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setHtml(java.lang.String html)" doc="/**
&lt;p&gt;Replaces the entire contents of the document with the given HTML-formatted text in the &lt;tt&gt;html&lt;/tt&gt; string.&lt;/p&gt;
&lt;p&gt;The HTML formatting is respected as much as possible; for example, &amp;quot;&amp;lt;b&amp;gt;bold&amp;lt;/b&amp;gt; text&amp;quot; will produce text where the first word has a font weight that gives it a bold appearance: &amp;quot;&lt;b&gt;bold&lt;/b&gt; text&amp;quot;.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Note:&lt;/b&gt; It is the responsibility of the caller to make sure that the text is correctly decoded when a &lt;a href=&quot;%2E%2E/porting4.html#qstring&quot;&gt;&lt;tt&gt;QString&lt;/tt&gt;&lt;/a&gt; containing HTML is created and passed to &lt;a href=&quot;QTextDocument.html#setHtml(java.lang.String)&quot;&gt;&lt;tt&gt;setHtml&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QTextDocument.html#setPlainText(java.lang.String)&quot;&gt;&lt;tt&gt;setPlainText&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;%2E%2E/richtext-html-subset.html&quot;&gt;Supported HTML Subset&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setMaximumBlockCount(int maximum)" doc="/**
&lt;p&gt;Sets Specifies the limit for blocks in the document. to &lt;tt&gt;maximum&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;Specifies the maximum number of blocks the document may have. If there are more blocks in the document that specified with this property blocks are removed from the beginning of the document.&lt;/p&gt;
&lt;p&gt;A negative or zero value specifies that the document may contain an unlimited amount of blocks.&lt;/p&gt;
&lt;p&gt;The default value is 0.&lt;/p&gt;
&lt;p&gt;Note that setting this property will apply the limit immediately to the document contents.&lt;/p&gt;
&lt;p&gt;Setting this property also disables the undo redo history.&lt;/p&gt;
&lt;p&gt;This property is undefined in documents with tables or frames.&lt;/p&gt;

@see &lt;a href=&quot;QTextDocument.html#maximumBlockCount()&quot;&gt;&lt;tt&gt;maximumBlockCount&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setMetaInformation(com.trolltech.qt.gui.QTextDocument.MetaInformation info, java.lang.String arg__2)" doc="/**
&lt;p&gt;Sets the document's meta information of the type specified by &lt;tt&gt;info&lt;/tt&gt; to the given &lt;tt&gt;arg__2&lt;/tt&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QTextDocument.html#metaInformation(com.trolltech.qt.gui.QTextDocument.MetaInformation)&quot;&gt;&lt;tt&gt;metaInformation&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setModified(boolean m)" doc="/**
&lt;p&gt;Sets whether the document has been modified by the user to &lt;tt&gt;m&lt;/tt&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QTextDocument.html#isModified()&quot;&gt;&lt;tt&gt;isModified&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QTextDocument.html#modificationChanged(boolean)&quot;&gt;&lt;tt&gt;modificationChanged&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setModified()" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QTextDocument.html#setModified(boolean)&quot;&gt;&lt;tt&gt;setModified&lt;/tt&gt;&lt;/a&gt;(true). */"/>
    <method name="public final void setPageSize(com.trolltech.qt.core.QSizeF size)" doc="/**
&lt;p&gt;Sets the page size that should be used for laying out the document to &lt;tt&gt;size&lt;/tt&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QTextDocument.html#pageSize()&quot;&gt;&lt;tt&gt;pageSize&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QTextDocument.html#modificationChanged(boolean)&quot;&gt;&lt;tt&gt;modificationChanged&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setPlainText(java.lang.String text)" doc="/**
&lt;p&gt;Replaces the entire contents of the document with the given plain &lt;tt&gt;text&lt;/tt&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QTextDocument.html#setHtml(java.lang.String)&quot;&gt;&lt;tt&gt;setHtml&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setTextWidth(double width)" doc="/**
&lt;p&gt;The text width specifies the preferred width for text in the document. If the text (or content in general) is wider than the specified with it is broken into multiple lines and grows vertically. If the text cannot be broken into multiple lines to fit into the specified text width it will be larger and the &lt;a href=&quot;QTextDocument.html#size()&quot;&gt;&lt;tt&gt;size&lt;/tt&gt;&lt;/a&gt; and the &lt;a href=&quot;QTextDocument.html#idealWidth()&quot;&gt;&lt;tt&gt;idealWidth&lt;/tt&gt;&lt;/a&gt; property will reflect that.&lt;/p&gt;
&lt;p&gt;If the text width is set to -1 then the text will not be broken into multiple lines unless it is enforced through an explicit line break or a new paragraph.&lt;/p&gt;
&lt;p&gt;The default value is -1.&lt;/p&gt;
&lt;p&gt;Setting the text width will also set the page height to -1, causing the document to grow or shrink vertically in a continuous way. If you want the document layout to break the text into multiple pages then you have to set the &lt;a href=&quot;QTextDocument.html#pageSize()&quot;&gt;&lt;tt&gt;pageSize&lt;/tt&gt;&lt;/a&gt; property instead.&lt;/p&gt;

@see &lt;a href=&quot;QTextDocument.html#textWidth()&quot;&gt;&lt;tt&gt;textWidth&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QTextDocument.html#size()&quot;&gt;&lt;tt&gt;size&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QTextDocument.html#idealWidth()&quot;&gt;&lt;tt&gt;idealWidth&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QTextDocument.html#pageSize()&quot;&gt;&lt;tt&gt;pageSize&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setUndoRedoEnabled(boolean enable)" doc="/**
&lt;p&gt;Sets whether undo/redo are enabled for this document to &lt;tt&gt;enable&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;This defaults to true. If disabled, the undo stack is cleared and no items will be added to it.&lt;/p&gt;

@see &lt;a href=&quot;QTextDocument.html#isUndoRedoEnabled()&quot;&gt;&lt;tt&gt;isUndoRedoEnabled&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setUseDesignMetrics(boolean b)"/>
    <method name="public final com.trolltech.qt.core.QSizeF size()" doc="/**
&lt;p&gt;Returns the actual size of the document. This is equivalent to &lt;a href=&quot;QTextDocument.html#documentLayout()&quot;&gt;&lt;tt&gt;documentLayout&lt;/tt&gt;&lt;/a&gt;-&amp;gt;documentSize();&lt;/p&gt;
&lt;p&gt;The size of the document can be changed either by setting a text width or setting an entire page size.&lt;/p&gt;
&lt;p&gt;Note that the width is always &amp;gt;= &lt;a href=&quot;QTextDocument.html#pageSize()&quot;&gt;&lt;tt&gt;pageSize&lt;/tt&gt;&lt;/a&gt;.width().&lt;/p&gt;

@see &lt;a href=&quot;QTextDocument.html#setTextWidth(double)&quot;&gt;&lt;tt&gt;setTextWidth&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QTextDocument.html#setPageSize(com.trolltech.qt.core.QSizeF)&quot;&gt;&lt;tt&gt;setPageSize&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QTextDocument.html#idealWidth()&quot;&gt;&lt;tt&gt;idealWidth&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final double textWidth()" doc="/**
&lt;p&gt;The text width specifies the preferred width for text in the document. If the text (or content in general) is wider than the specified with it is broken into multiple lines and grows vertically. If the text cannot be broken into multiple lines to fit into the specified text width it will be larger and the &lt;a href=&quot;QTextDocument.html#size()&quot;&gt;&lt;tt&gt;size&lt;/tt&gt;&lt;/a&gt; and the &lt;a href=&quot;QTextDocument.html#idealWidth()&quot;&gt;&lt;tt&gt;idealWidth&lt;/tt&gt;&lt;/a&gt; property will reflect that.&lt;/p&gt;
&lt;p&gt;If the text width is set to -1 then the text will not be broken into multiple lines unless it is enforced through an explicit line break or a new paragraph.&lt;/p&gt;
&lt;p&gt;The default value is -1.&lt;/p&gt;
&lt;p&gt;Setting the text width will also set the page height to -1, causing the document to grow or shrink vertically in a continuous way. If you want the document layout to break the text into multiple pages then you have to set the &lt;a href=&quot;QTextDocument.html#pageSize()&quot;&gt;&lt;tt&gt;pageSize&lt;/tt&gt;&lt;/a&gt; property instead.&lt;/p&gt;

@see &lt;a href=&quot;QTextDocument.html#setTextWidth(double)&quot;&gt;&lt;tt&gt;setTextWidth&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QTextDocument.html#size()&quot;&gt;&lt;tt&gt;size&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QTextDocument.html#idealWidth()&quot;&gt;&lt;tt&gt;idealWidth&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QTextDocument.html#pageSize()&quot;&gt;&lt;tt&gt;pageSize&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final java.lang.String toHtml(com.trolltech.qt.core.QByteArray encoding)" doc="/**
&lt;p&gt;Returns a string containing an HTML representation of the document.&lt;/p&gt;
&lt;p&gt;The &lt;tt&gt;encoding&lt;/tt&gt; parameter specifies the value for the charset attribute in the html header. For example if 'utf-8' is specified then the beginning of the generated html will look like this:&lt;/p&gt;
&lt;pre&gt;    &amp;lt;html&amp;gt;&amp;lt;head&amp;gt;&amp;lt;meta http-equiv=&amp;quot;Content-Type&amp;quot; content=&amp;quot;text/html; charset=utf-8&amp;quot;&amp;gt;&amp;lt;/head&amp;gt;&amp;lt;body&amp;gt;...&lt;/pre&gt;
&lt;p&gt;If no encoding is specified then no such meta information is generated.&lt;/p&gt;
&lt;p&gt;If you later on convert the returned html string into a byte array for transmission over a network or when saving to disk you should specify the encoding you're going to use for the conversion to a byte array here.&lt;/p&gt;

@see &lt;a href=&quot;%2E%2E/richtext-html-subset.html&quot;&gt;Supported HTML Subset&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final java.lang.String toHtml()" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QTextDocument.html#toHtml(com.trolltech.qt.core.QByteArray)&quot;&gt;&lt;tt&gt;toHtml&lt;/tt&gt;&lt;/a&gt;(QByteArray()). */"/>
    <method name="public final java.lang.String toPlainText()" doc="/**
&lt;p&gt;Returns the plain text contained in the document. If you want formatting information use a &lt;a href=&quot;QTextCursor.html&quot;&gt;&lt;tt&gt;QTextCursor&lt;/tt&gt;&lt;/a&gt; instead.&lt;/p&gt;

@see &lt;a href=&quot;QTextDocument.html#toHtml(com.trolltech.qt.core.QByteArray)&quot;&gt;&lt;tt&gt;toHtml&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void undo()"/>
    <method name="public final boolean useDesignMetrics()"/>
    <method name="public void clear()" doc="/**
&lt;p&gt;Clears the document.&lt;/p&gt;
 */"/>
    <method name="protected com.trolltech.qt.gui.QTextObject createObject(com.trolltech.qt.gui.QTextFormat f)" doc="/**
&lt;p&gt;Creates and returns a new document object (a &lt;a href=&quot;QTextObject.html&quot;&gt;&lt;tt&gt;QTextObject&lt;/tt&gt;&lt;/a&gt;), based on the given &lt;tt&gt;f&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;QTextObjects will always get created through this method, so you must reimplement it if you use custom text objects inside your document.&lt;/p&gt;
 */"/>
    <method name="protected java.lang.Object loadResource(int type, com.trolltech.qt.core.QUrl name)" doc="/**
&lt;p&gt;Loads data of the specified &lt;tt&gt;type&lt;/tt&gt; from the resource with the given &lt;tt&gt;name&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;This function is called by the rich text engine to request data that isn't directly stored by &lt;a href=&quot;QTextDocument.html#QTextDocument(java.lang.String, com.trolltech.qt.core.QObject)&quot;&gt;&lt;tt&gt;QTextDocument&lt;/tt&gt;&lt;/a&gt;, but still associated with it. For example, images are referenced indirectly by the name attribute of a &lt;a href=&quot;QTextImageFormat.html&quot;&gt;&lt;tt&gt;QTextImageFormat&lt;/tt&gt;&lt;/a&gt; object.&lt;/p&gt;
&lt;p&gt;When called by Qt, &lt;tt&gt;type&lt;/tt&gt; is one of the values of QTextDocument::ResourceType.&lt;/p&gt;
&lt;p&gt;If the &lt;a href=&quot;QTextDocument.html#QTextDocument(java.lang.String, com.trolltech.qt.core.QObject)&quot;&gt;&lt;tt&gt;QTextDocument&lt;/tt&gt;&lt;/a&gt; is a child object of a &lt;a href=&quot;QTextEdit.html&quot;&gt;&lt;tt&gt;QTextEdit&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QTextBrowser.html&quot;&gt;&lt;tt&gt;QTextBrowser&lt;/tt&gt;&lt;/a&gt;, or a &lt;a href=&quot;QTextDocument.html#QTextDocument(java.lang.String, com.trolltech.qt.core.QObject)&quot;&gt;&lt;tt&gt;QTextDocument&lt;/tt&gt;&lt;/a&gt; itself then the default implementation tries to retrieve the data from the parent.&lt;/p&gt;
 */"/>
    <enum name="ResourceType" doc="/**
&lt;p&gt;This enum describes the types of resources that can be loaded by &lt;a href=&quot;QTextDocument.html#QTextDocument(java.lang.String, com.trolltech.qt.core.QObject)&quot;&gt;&lt;tt&gt;QTextDocument&lt;/tt&gt;&lt;/a&gt;'s &lt;a href=&quot;QTextDocument.html#loadResource(int, com.trolltech.qt.core.QUrl)&quot;&gt;&lt;tt&gt;loadResource&lt;/tt&gt;&lt;/a&gt; function.&lt;/p&gt;

@see &lt;a href=&quot;QTextDocument.html#loadResource(int, com.trolltech.qt.core.QUrl)&quot;&gt;&lt;tt&gt;loadResource&lt;/tt&gt;&lt;/a&gt; */">
        <enum-value name="HtmlResource" doc="/**
&lt;p&gt;The resource contains HTML.&lt;/p&gt;
 */"/>
        <enum-value name="ImageResource" doc="/**
&lt;p&gt;The resource contains image data. Currently supported data types are QVariant::Pixmap and QVariant::Image. If the corresponding variant is of type QVariant::ByteArray then Qt attempts to load the image using QImage::loadFromData. QVariant::Icon is currently not supported. The icon needs to be converted to one of the supported types first, for example using QIcon::pixmap.&lt;/p&gt;
 */"/>
        <enum-value name="StyleSheetResource" doc="/**
&lt;p&gt;The resource contains CSS.&lt;/p&gt;
 */"/>
        <enum-value name="UserResource" doc="/**
&lt;p&gt;The first available value for user defined resource types.&lt;/p&gt;
 */"/>
</enum>
    <enum name="FindFlag" doc="/**
&lt;p&gt;This enum describes the options available to &lt;a href=&quot;QTextDocument.html#QTextDocument(java.lang.String, com.trolltech.qt.core.QObject)&quot;&gt;&lt;tt&gt;QTextDocument&lt;/tt&gt;&lt;/a&gt;'s find function. The options can be OR-red together from the following list:&lt;/p&gt;
&lt;p&gt;&lt;table border=&quot;1&quot; cellpadding=&quot;2&quot; cellspacing=&quot;1&quot; width=&quot;100%&quot;&gt;
&lt;tr&gt;&lt;th width=&quot;25%&quot;&gt;Constant&lt;/th&gt;&lt;th width=&quot;15%&quot;&gt;Value&lt;/th&gt;&lt;th width=&quot;60%&quot;&gt;Description&lt;/th&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td valign=&quot;top&quot;&gt;&lt;tt&gt;FindBackward&lt;/tt&gt;&lt;/td&gt;&lt;td align=&quot;center&quot; valign=&quot;top&quot;&gt;&lt;tt&gt;1&lt;/tt&gt;&lt;/td&gt;&lt;td valign=&quot;top&quot;&gt;Search backwards instead of forwards.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td valign=&quot;top&quot;&gt;&lt;tt&gt;FindCaseSensitively&lt;/tt&gt;&lt;/td&gt;&lt;td align=&quot;center&quot; valign=&quot;top&quot;&gt;&lt;tt&gt;2&lt;/tt&gt;&lt;/td&gt;&lt;td valign=&quot;top&quot;&gt;By default find works case insensitive. Specifying this option changes the behaviour to a case sensitive find operation.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td valign=&quot;top&quot;&gt;&lt;tt&gt;FindWholeWords&lt;/tt&gt;&lt;/td&gt;&lt;td align=&quot;center&quot; valign=&quot;top&quot;&gt;&lt;tt&gt;4&lt;/tt&gt;&lt;/td&gt;&lt;td valign=&quot;top&quot;&gt;Makes find match only complete words.&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;&lt;/p&gt;
 */">
        <enum-value name="FindBackward" doc="/**
&lt;p&gt;Search backwards instead of forwards.&lt;/p&gt;
 */"/>
        <enum-value name="FindCaseSensitively" doc="/**
&lt;p&gt;By default find works case insensitive. Specifying this option changes the behaviour to a case sensitive find operation.&lt;/p&gt;
 */"/>
        <enum-value name="FindWholeWords" doc="/**
&lt;p&gt;Makes find match only complete words.&lt;/p&gt;
 */"/>
</enum>
    <enum name="MetaInformation" doc="/**
&lt;p&gt;This enum describes the different types of meta information that can be added to a document.&lt;/p&gt;

@see &lt;a href=&quot;QTextDocument.html#metaInformation(com.trolltech.qt.gui.QTextDocument.MetaInformation)&quot;&gt;&lt;tt&gt;metaInformation&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QTextDocument.html#setMetaInformation(com.trolltech.qt.gui.QTextDocument.MetaInformation, java.lang.String)&quot;&gt;&lt;tt&gt;setMetaInformation&lt;/tt&gt;&lt;/a&gt; */">
        <enum-value name="DocumentTitle" doc="/**
&lt;p&gt;The title of the document.&lt;/p&gt;
 */"/>
</enum>
</class>