Sophie

Sophie

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

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

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.5.0_09) on Tue Aug 07 17:05:24 CEST 2007 -->
<TITLE>
QTextDocument
</TITLE>

<META NAME="keywords" CONTENT="com.trolltech.qt.gui.QTextDocument class">

<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style">

<SCRIPT type="text/javascript">
function windowTitle()
{
    parent.document.title="QTextDocument";
}
</SCRIPT>
<NOSCRIPT>
</NOSCRIPT>

</HEAD>

<BODY BGCOLOR="white" onload="windowTitle();">


<!-- ========= START OF TOP NAVBAR ======= -->
<A NAME="navbar_top"><!-- --></A>
<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_top_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
  <TR ALIGN="center" VALIGN="top">
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  </TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>

<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
&nbsp;<A HREF="../../../../com/trolltech/qt/gui/QTextCursor.SelectionType.html" title="enum in com.trolltech.qt.gui"><B>PREV CLASS</B></A>&nbsp;
&nbsp;<A HREF="../../../../com/trolltech/qt/gui/QTextDocument.FindFlag.html" title="enum in com.trolltech.qt.gui"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  <A HREF="../../../../index.html?com/trolltech/qt/gui/QTextDocument.html" target="_top"><B>FRAMES</B></A>  &nbsp;
&nbsp;<A HREF="QTextDocument.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
&nbsp;<SCRIPT type="text/javascript">
  <!--
  if(window==top) {
    document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
  }
  //-->
</SCRIPT>
<NOSCRIPT>
  <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>
</NOSCRIPT>


</FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  SUMMARY:&nbsp;<A HREF="#nested_class_summary">NESTED</A>&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_top"></A>
<!-- ========= END OF TOP NAVBAR ========= -->

<HR>
<!-- ======== START OF CLASS DATA ======== -->
<H2>
<FONT SIZE="-1">
com.trolltech.qt.gui</FONT>
<BR>
Class QTextDocument</H2>
<PRE>
java.lang.Object
  <IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><A HREF="../../../../com/trolltech/qt/QSignalEmitter.html" title="class in com.trolltech.qt">com.trolltech.qt.QSignalEmitter</A>
      <IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><A HREF="../../../../com/trolltech/qt/QtJambiObject.html" title="class in com.trolltech.qt">com.trolltech.qt.QtJambiObject</A>
          <IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><A HREF="../../../../com/trolltech/qt/core/QObject.html" title="class in com.trolltech.qt.core">com.trolltech.qt.core.QObject</A>
              <IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><B>com.trolltech.qt.gui.QTextDocument</B>
</PRE>
<DL>
<DT><B>All Implemented Interfaces:</B> <DD><A HREF="../../../../com/trolltech/qt/QtJambiInterface.html" title="interface in com.trolltech.qt">QtJambiInterface</A></DD>
</DL>
<HR>
<DL>
<DT><PRE>public class <B>QTextDocument</B><DT>extends <A HREF="../../../../com/trolltech/qt/core/QObject.html" title="class in com.trolltech.qt.core">QObject</A></DL>
</PRE>

<P>
<p>The <a href="QTextDocument.html#QTextDocument(java.lang.String, com.trolltech.qt.core.QObject)"><tt>QTextDocument</tt></a> class holds formatted text that can be viewed and edited using a <a href="QTextEdit.html"><tt>QTextEdit</tt></a>.</p>
<p><a href="QTextDocument.html#QTextDocument(java.lang.String, com.trolltech.qt.core.QObject)"><tt>QTextDocument</tt></a> 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 <a href="QTextEdit.html"><tt>QTextEdit</tt></a>, or used independently.</p>
<p>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 <a href="QTextDocument.html#objectForFormat(com.trolltech.qt.gui.QTextFormat)"><tt>objectForFormat</tt></a> to obtain the document element that it is applied to.</p>
<p>A <a href="QTextDocument.html#QTextDocument(java.lang.String, com.trolltech.qt.core.QObject)"><tt>QTextDocument</tt></a> can be edited programmatically using a <a href="QTextCursor.html"><tt>QTextCursor</tt></a>, 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 <a href="QTextDocument.html#rootFrame()"><tt>rootFrame</tt></a> function. Alternatively, if you just want to iterate over the textual contents of the document you can use <a href="QTextDocument.html#begin()"><tt>begin</tt></a>, <a href="QTextDocument.html#end()"><tt>end</tt></a>, and <a href="QTextDocument.html#findBlock(int)"><tt>findBlock</tt></a> to retrieve text blocks that you can examine and iterate over.</p>
<p>The layout of a document is determined by the <a href="QTextDocument.html#documentLayout()"><tt>documentLayout</tt></a>; you can create your own <a href="QAbstractTextDocumentLayout.html"><tt>QAbstractTextDocumentLayout</tt></a> subclass and set it using <a href="QTextDocument.html#setDocumentLayout(com.trolltech.qt.gui.QAbstractTextDocumentLayout)"><tt>setDocumentLayout</tt></a> if you want to use your own layout logic. The document's title can be obtained by calling the documentTitle() function.</p>
<p>The <a href="QTextDocument.html#toPlainText()"><tt>toPlainText</tt></a> and <a href="QTextDocument.html#toHtml(com.trolltech.qt.core.QByteArray)"><tt>toHtml</tt></a> 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 <a href="QTextDocument.html#find(com.trolltech.qt.core.QRegExp, int, com.trolltech.qt.gui.QTextDocument.FindFlags)"><tt>find</tt></a> functions.</p>
<p>Undo/redo of operations performed on the document can be controlled using the <a href="QTextDocument.html#setUndoRedoEnabled(boolean)"><tt>setUndoRedoEnabled</tt></a> function. The undo/redo system can be controlled by an editor widget through the <a href="QTextDocument.html#undo()"><tt>undo</tt></a> and <a href="QTextDocument.html#redo()"><tt>redo</tt></a> slots; the document also provides <a href="QTextDocument.html#contentsChanged()"><tt>contentsChanged</tt></a>, <a href="QTextDocument.html#undoAvailable(boolean)"><tt>undoAvailable</tt></a>, and <a href="QTextDocument.html#redoAvailable(boolean)"><tt>redoAvailable</tt></a> signals that inform connected editor widgets about the state of the undo/redo system.</p>
<P>

<P>
<DL>
<DT><B>See Also:</B><DD><a href="QTextCursor.html"><tt>QTextCursor</tt></a>, 
<a href="QTextEdit.html"><tt>QTextEdit</tt></a>, 
<a href="%2E%2E/richtext.html">Rich Text Processing</tt></a></DL>
<HR>

<P>
<!-- ======== NESTED CLASS SUMMARY ======== -->

<A NAME="nested_class_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>Nested Class Summary</B></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;class</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QTextDocument.FindFlag.html" title="enum in com.trolltech.qt.gui">QTextDocument.FindFlag</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This enum describes the options available to <a href="QTextDocument.html#QTextDocument(java.lang.String, com.trolltech.qt.core.QObject)"><tt>QTextDocument</tt></a>'s find function.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;class</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QTextDocument.FindFlags.html" title="class in com.trolltech.qt.gui">QTextDocument.FindFlags</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This QFlag class provides flags for the int enum.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;class</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QTextDocument.MetaInformation.html" title="enum in com.trolltech.qt.gui">QTextDocument.MetaInformation</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This enum describes the different types of meta information that can be added to a document.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;class</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QTextDocument.ResourceType.html" title="enum in com.trolltech.qt.gui">QTextDocument.ResourceType</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This enum describes the types of resources that can be loaded by <a href="QTextDocument.html#QTextDocument(java.lang.String, com.trolltech.qt.core.QObject)"><tt>QTextDocument</tt></a>'s <a href="QTextDocument.html#loadResource(int, com.trolltech.qt.core.QUrl)"><tt>loadResource</tt></a> function.</TD>
</TR>
</TABLE>
&nbsp;<A NAME="nested_classes_inherited_from_class_com.trolltech.qt.QSignalEmitter"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>Nested classes/interfaces inherited from class com.trolltech.qt.<A HREF="../../../../com/trolltech/qt/QSignalEmitter.html" title="class in com.trolltech.qt">QSignalEmitter</A></B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal0.html" title="class in com.trolltech.qt">QSignalEmitter.Signal0</A>, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal1.html" title="class in com.trolltech.qt">QSignalEmitter.Signal1</A>&lt;<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal1.html" title="type parameter in QSignalEmitter.Signal1">A</A>&gt;, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal2.html" title="class in com.trolltech.qt">QSignalEmitter.Signal2</A>&lt;<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal2.html" title="type parameter in QSignalEmitter.Signal2">A</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal2.html" title="type parameter in QSignalEmitter.Signal2">B</A>&gt;, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal3.html" title="class in com.trolltech.qt">QSignalEmitter.Signal3</A>&lt;<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal3.html" title="type parameter in QSignalEmitter.Signal3">A</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal3.html" title="type parameter in QSignalEmitter.Signal3">B</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal3.html" title="type parameter in QSignalEmitter.Signal3">C</A>&gt;, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal4.html" title="class in com.trolltech.qt">QSignalEmitter.Signal4</A>&lt;<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal4.html" title="type parameter in QSignalEmitter.Signal4">A</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal4.html" title="type parameter in QSignalEmitter.Signal4">B</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal4.html" title="type parameter in QSignalEmitter.Signal4">C</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal4.html" title="type parameter in QSignalEmitter.Signal4">D</A>&gt;, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal5.html" title="class in com.trolltech.qt">QSignalEmitter.Signal5</A>&lt;<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal5.html" title="type parameter in QSignalEmitter.Signal5">A</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal5.html" title="type parameter in QSignalEmitter.Signal5">B</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal5.html" title="type parameter in QSignalEmitter.Signal5">C</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal5.html" title="type parameter in QSignalEmitter.Signal5">D</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal5.html" title="type parameter in QSignalEmitter.Signal5">E</A>&gt;, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal6.html" title="class in com.trolltech.qt">QSignalEmitter.Signal6</A>&lt;<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal6.html" title="type parameter in QSignalEmitter.Signal6">A</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal6.html" title="type parameter in QSignalEmitter.Signal6">B</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal6.html" title="type parameter in QSignalEmitter.Signal6">C</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal6.html" title="type parameter in QSignalEmitter.Signal6">D</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal6.html" title="type parameter in QSignalEmitter.Signal6">E</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal6.html" title="type parameter in QSignalEmitter.Signal6">F</A>&gt;, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal7.html" title="class in com.trolltech.qt">QSignalEmitter.Signal7</A>&lt;<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal7.html" title="type parameter in QSignalEmitter.Signal7">A</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal7.html" title="type parameter in QSignalEmitter.Signal7">B</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal7.html" title="type parameter in QSignalEmitter.Signal7">C</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal7.html" title="type parameter in QSignalEmitter.Signal7">D</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal7.html" title="type parameter in QSignalEmitter.Signal7">E</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal7.html" title="type parameter in QSignalEmitter.Signal7">F</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal7.html" title="type parameter in QSignalEmitter.Signal7">G</A>&gt;, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal8.html" title="class in com.trolltech.qt">QSignalEmitter.Signal8</A>&lt;<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal8.html" title="type parameter in QSignalEmitter.Signal8">A</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal8.html" title="type parameter in QSignalEmitter.Signal8">B</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal8.html" title="type parameter in QSignalEmitter.Signal8">C</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal8.html" title="type parameter in QSignalEmitter.Signal8">D</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal8.html" title="type parameter in QSignalEmitter.Signal8">E</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal8.html" title="type parameter in QSignalEmitter.Signal8">F</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal8.html" title="type parameter in QSignalEmitter.Signal8">G</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal8.html" title="type parameter in QSignalEmitter.Signal8">H</A>&gt;, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal9.html" title="class in com.trolltech.qt">QSignalEmitter.Signal9</A>&lt;<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal9.html" title="type parameter in QSignalEmitter.Signal9">A</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal9.html" title="type parameter in QSignalEmitter.Signal9">B</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal9.html" title="type parameter in QSignalEmitter.Signal9">C</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal9.html" title="type parameter in QSignalEmitter.Signal9">D</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal9.html" title="type parameter in QSignalEmitter.Signal9">E</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal9.html" title="type parameter in QSignalEmitter.Signal9">F</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal9.html" title="type parameter in QSignalEmitter.Signal9">G</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal9.html" title="type parameter in QSignalEmitter.Signal9">H</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal9.html" title="type parameter in QSignalEmitter.Signal9">I</A>&gt;</CODE></TD>
</TR>
</TABLE>
&nbsp;
<!-- =========== FIELD SUMMARY =========== -->

<A NAME="field_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>Field Summary</B></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal1.html" title="class in com.trolltech.qt">QSignalEmitter.Signal1</A>&lt;java.lang.Integer&gt;</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QTextDocument.html#blockCountChanged">blockCountChanged</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This signal is emitted when the total number of text blocks in the document changes.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal3.html" title="class in com.trolltech.qt">QSignalEmitter.Signal3</A>&lt;java.lang.Integer,java.lang.Integer,java.lang.Integer&gt;</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QTextDocument.html#contentsChange">contentsChange</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This signal is emitted whenever the document's content changes; for example, when text is inserted or deleted, or when formatting is applied.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal0.html" title="class in com.trolltech.qt">QSignalEmitter.Signal0</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QTextDocument.html#contentsChanged">contentsChanged</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This signal is emitted whenever the document's content changes; for example, when text is inserted or deleted, or when formatting is applied.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal1.html" title="class in com.trolltech.qt">QSignalEmitter.Signal1</A>&lt;<A HREF="../../../../com/trolltech/qt/gui/QTextCursor.html" title="class in com.trolltech.qt.gui">QTextCursor</A>&gt;</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QTextDocument.html#cursorPositionChanged">cursorPositionChanged</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This signal is emitted whenever the position of a cursor changed due to an editing operation.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal1.html" title="class in com.trolltech.qt">QSignalEmitter.Signal1</A>&lt;java.lang.Boolean&gt;</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QTextDocument.html#modificationChanged">modificationChanged</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This signal is emitted whenever the content of the document changes in a way that affects the modification state.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal1.html" title="class in com.trolltech.qt">QSignalEmitter.Signal1</A>&lt;java.lang.Boolean&gt;</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QTextDocument.html#redoAvailable">redoAvailable</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This signal is emitted whenever redo operations become available (<tt>arg__1</tt> is true) or unavailable (<tt>arg__1</tt> is false).</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal1.html" title="class in com.trolltech.qt">QSignalEmitter.Signal1</A>&lt;java.lang.Boolean&gt;</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QTextDocument.html#undoAvailable">undoAvailable</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This signal is emitted whenever undo operations become available (<tt>arg__1</tt> is true) or unavailable (<tt>arg__1</tt> is false).</TD>
</TR>
</TABLE>
&nbsp;
<!-- ======== CONSTRUCTOR SUMMARY ======== -->

<A NAME="constructor_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>Constructor Summary</B></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QTextDocument.html#QTextDocument()">QTextDocument</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Equivalent to <a href="QTextDocument.html#QTextDocument(java.lang.String, com.trolltech.qt.core.QObject)"><tt>QTextDocument</tt></a>(0).</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QTextDocument.html#QTextDocument(com.trolltech.qt.core.QObject)">QTextDocument</A></B>(<A HREF="../../../../com/trolltech/qt/core/QObject.html" title="class in com.trolltech.qt.core">QObject</A>&nbsp;parent)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Constructs an empty <a href="QTextDocument.html#QTextDocument(java.lang.String, com.trolltech.qt.core.QObject)"><tt>QTextDocument</tt></a> with the given <tt>parent</tt>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QTextDocument.html#QTextDocument(java.lang.String)">QTextDocument</A></B>(java.lang.String&nbsp;text)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Equivalent to <a href="QTextDocument.html#QTextDocument(java.lang.String, com.trolltech.qt.core.QObject)"><tt>QTextDocument</tt></a>(<tt>text</tt>, 0).</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QTextDocument.html#QTextDocument(java.lang.String, com.trolltech.qt.core.QObject)">QTextDocument</A></B>(java.lang.String&nbsp;text,
              <A HREF="../../../../com/trolltech/qt/core/QObject.html" title="class in com.trolltech.qt.core">QObject</A>&nbsp;parent)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Constructs a <a href="QTextDocument.html#QTextDocument(java.lang.String, com.trolltech.qt.core.QObject)"><tt>QTextDocument</tt></a> containing the plain (unformatted) <tt>text</tt> specified, and with the given <tt>parent</tt>.</TD>
</TR>
</TABLE>
&nbsp;
<!-- ========== METHOD SUMMARY =========== -->

<A NAME="method_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>Method Summary</B></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QTextDocument.html#addResource(int, com.trolltech.qt.core.QUrl, java.lang.Object)">addResource</A></B>(int&nbsp;type,
            <A HREF="../../../../com/trolltech/qt/core/QUrl.html" title="class in com.trolltech.qt.core">QUrl</A>&nbsp;name,
            java.lang.Object&nbsp;resource)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Adds the resource <tt>resource</tt> to the resource cache, using <tt>type</tt> and <tt>name</tt> as identifiers.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QTextDocument.html#adjustSize()">adjustSize</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Adjusts the document to a reasonable size.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;java.util.List&lt;<A HREF="../../../../com/trolltech/qt/gui/QTextFormat.html" title="class in com.trolltech.qt.gui">QTextFormat</A>&gt;</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QTextDocument.html#allFormats()">allFormats</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns a vector of text formats for all the formats used in the document.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../com/trolltech/qt/gui/QTextBlock.html" title="class in com.trolltech.qt.gui">QTextBlock</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QTextDocument.html#begin()">begin</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the document's first text block.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QTextDocument.html#blockCount()">blockCount</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the number of text blocks in the document.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QTextDocument.html#clear()">clear</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Clears the document.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../com/trolltech/qt/gui/QTextDocument.html" title="class in com.trolltech.qt.gui">QTextDocument</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QTextDocument.html#clone()">clone</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Equivalent to <a href="QTextDocument.html#clone(com.trolltech.qt.core.QObject)">clone</tt></a>(0).</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../com/trolltech/qt/gui/QTextDocument.html" title="class in com.trolltech.qt.gui">QTextDocument</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QTextDocument.html#clone(com.trolltech.qt.core.QObject)">clone</A></B>(<A HREF="../../../../com/trolltech/qt/core/QObject.html" title="class in com.trolltech.qt.core">QObject</A>&nbsp;parent)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates a new <a href="QTextDocument.html#QTextDocument(java.lang.String, com.trolltech.qt.core.QObject)"><tt>QTextDocument</tt></a> that is a copy of this text document.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;<A HREF="../../../../com/trolltech/qt/gui/QTextObject.html" title="class in com.trolltech.qt.gui">QTextObject</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QTextDocument.html#createObject(com.trolltech.qt.gui.QTextFormat)">createObject</A></B>(<A HREF="../../../../com/trolltech/qt/gui/QTextFormat.html" title="class in com.trolltech.qt.gui">QTextFormat</A>&nbsp;f)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates and returns a new document object (a <a href="QTextObject.html"><tt>QTextObject</tt></a>), based on the given <tt>f</tt>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../com/trolltech/qt/gui/QFont.html" title="class in com.trolltech.qt.gui">QFont</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QTextDocument.html#defaultFont()">defaultFont</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the default font used to display the document's text.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QTextDocument.html#defaultStyleSheet()">defaultStyleSheet</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The default style sheet is applied to all newly HTML formatted text that is inserted into the document, for example using <a href="QTextDocument.html#setHtml(java.lang.String)"><tt>setHtml</tt></a> or QTextCursor::insertHtml().</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../com/trolltech/qt/gui/QTextOption.html" title="class in com.trolltech.qt.gui">QTextOption</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QTextDocument.html#defaultTextOption()">defaultTextOption</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the default text option will be set on all <a href="QTextLayout.html"><tt>QTextLayout</tt></a>s in the document..</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../com/trolltech/qt/gui/QAbstractTextDocumentLayout.html" title="class in com.trolltech.qt.gui">QAbstractTextDocumentLayout</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QTextDocument.html#documentLayout()">documentLayout</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the document layout for this document.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QTextDocument.html#drawContents(com.trolltech.qt.gui.QPainter)">drawContents</A></B>(<A HREF="../../../../com/trolltech/qt/gui/QPainter.html" title="class in com.trolltech.qt.gui">QPainter</A>&nbsp;painter)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Equivalent to <a href="QTextDocument.html#drawContents(com.trolltech.qt.gui.QPainter, com.trolltech.qt.core.QRectF)"><tt>drawContents</tt></a>(<tt>painter</tt>, QRectF()).</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QTextDocument.html#drawContents(com.trolltech.qt.gui.QPainter, com.trolltech.qt.core.QRectF)">drawContents</A></B>(<A HREF="../../../../com/trolltech/qt/gui/QPainter.html" title="class in com.trolltech.qt.gui">QPainter</A>&nbsp;painter,
             <A HREF="../../../../com/trolltech/qt/core/QRectF.html" title="class in com.trolltech.qt.core">QRectF</A>&nbsp;rect)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Draws the content of the document with painter <tt>painter</tt>, clipped to <tt>rect</tt>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../com/trolltech/qt/gui/QTextBlock.html" title="class in com.trolltech.qt.gui">QTextBlock</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QTextDocument.html#end()">end</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This function returns a block to test for the end of the document while iterating over it.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../com/trolltech/qt/gui/QTextCursor.html" title="class in com.trolltech.qt.gui">QTextCursor</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QTextDocument.html#find(com.trolltech.qt.core.QRegExp)">find</A></B>(<A HREF="../../../../com/trolltech/qt/core/QRegExp.html" title="class in com.trolltech.qt.core">QRegExp</A>&nbsp;expr)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Equivalent to <a href="QTextDocument.html#find(com.trolltech.qt.core.QRegExp, int, com.trolltech.qt.gui.QTextDocument.FindFlags)">find</tt></a>(<tt>expr</tt>, 0, 0).</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../com/trolltech/qt/gui/QTextCursor.html" title="class in com.trolltech.qt.gui">QTextCursor</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QTextDocument.html#find(com.trolltech.qt.core.QRegExp, int)">find</A></B>(<A HREF="../../../../com/trolltech/qt/core/QRegExp.html" title="class in com.trolltech.qt.core">QRegExp</A>&nbsp;expr,
     int&nbsp;from)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Equivalent to <a href="QTextDocument.html#find(com.trolltech.qt.core.QRegExp, int, com.trolltech.qt.gui.QTextDocument.FindFlags)">find</tt></a>(<tt>expr</tt>, <tt>from</tt>, 0).</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../com/trolltech/qt/gui/QTextCursor.html" title="class in com.trolltech.qt.gui">QTextCursor</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QTextDocument.html#find(com.trolltech.qt.core.QRegExp, int, com.trolltech.qt.gui.QTextDocument.FindFlag...)">find</A></B>(<A HREF="../../../../com/trolltech/qt/core/QRegExp.html" title="class in com.trolltech.qt.core">QRegExp</A>&nbsp;expr,
     int&nbsp;from,
     <A HREF="../../../../com/trolltech/qt/gui/QTextDocument.FindFlag.html" title="enum in com.trolltech.qt.gui">QTextDocument.FindFlag</A>...&nbsp;options)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Finds the next occurrence, matching the regular expression, <tt>expr</tt>, in the document.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../com/trolltech/qt/gui/QTextCursor.html" title="class in com.trolltech.qt.gui">QTextCursor</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QTextDocument.html#find(com.trolltech.qt.core.QRegExp, int, com.trolltech.qt.gui.QTextDocument.FindFlags)">find</A></B>(<A HREF="../../../../com/trolltech/qt/core/QRegExp.html" title="class in com.trolltech.qt.core">QRegExp</A>&nbsp;expr,
     int&nbsp;from,
     <A HREF="../../../../com/trolltech/qt/gui/QTextDocument.FindFlags.html" title="class in com.trolltech.qt.gui">QTextDocument.FindFlags</A>&nbsp;options)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Finds the next occurrence, matching the regular expression, <tt>expr</tt>, in the document.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../com/trolltech/qt/gui/QTextCursor.html" title="class in com.trolltech.qt.gui">QTextCursor</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QTextDocument.html#find(com.trolltech.qt.core.QRegExp, com.trolltech.qt.gui.QTextCursor)">find</A></B>(<A HREF="../../../../com/trolltech/qt/core/QRegExp.html" title="class in com.trolltech.qt.core">QRegExp</A>&nbsp;expr,
     <A HREF="../../../../com/trolltech/qt/gui/QTextCursor.html" title="class in com.trolltech.qt.gui">QTextCursor</A>&nbsp;from)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Equivalent to <a href="QTextDocument.html#find(com.trolltech.qt.core.QRegExp, int, com.trolltech.qt.gui.QTextDocument.FindFlags)">find</tt></a>(<tt>expr</tt>, <tt>from</tt>, 0).</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../com/trolltech/qt/gui/QTextCursor.html" title="class in com.trolltech.qt.gui">QTextCursor</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QTextDocument.html#find(com.trolltech.qt.core.QRegExp, com.trolltech.qt.gui.QTextCursor, com.trolltech.qt.gui.QTextDocument.FindFlag...)">find</A></B>(<A HREF="../../../../com/trolltech/qt/core/QRegExp.html" title="class in com.trolltech.qt.core">QRegExp</A>&nbsp;expr,
     <A HREF="../../../../com/trolltech/qt/gui/QTextCursor.html" title="class in com.trolltech.qt.gui">QTextCursor</A>&nbsp;from,
     <A HREF="../../../../com/trolltech/qt/gui/QTextDocument.FindFlag.html" title="enum in com.trolltech.qt.gui">QTextDocument.FindFlag</A>...&nbsp;options)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Finds the next occurrence, matching the regular expression, <tt>expr</tt>, in the document.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../com/trolltech/qt/gui/QTextCursor.html" title="class in com.trolltech.qt.gui">QTextCursor</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QTextDocument.html#find(com.trolltech.qt.core.QRegExp, com.trolltech.qt.gui.QTextCursor, com.trolltech.qt.gui.QTextDocument.FindFlags)">find</A></B>(<A HREF="../../../../com/trolltech/qt/core/QRegExp.html" title="class in com.trolltech.qt.core">QRegExp</A>&nbsp;expr,
     <A HREF="../../../../com/trolltech/qt/gui/QTextCursor.html" title="class in com.trolltech.qt.gui">QTextCursor</A>&nbsp;from,
     <A HREF="../../../../com/trolltech/qt/gui/QTextDocument.FindFlags.html" title="class in com.trolltech.qt.gui">QTextDocument.FindFlags</A>&nbsp;options)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Finds the next occurrence, matching the regular expression, <tt>expr</tt>, in the document.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../com/trolltech/qt/gui/QTextCursor.html" title="class in com.trolltech.qt.gui">QTextCursor</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QTextDocument.html#find(java.lang.String)">find</A></B>(java.lang.String&nbsp;subString)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Equivalent to <a href="QTextDocument.html#find(com.trolltech.qt.core.QRegExp, int, com.trolltech.qt.gui.QTextDocument.FindFlags)">find</tt></a>(<tt>subString</tt>, 0, 0).</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../com/trolltech/qt/gui/QTextCursor.html" title="class in com.trolltech.qt.gui">QTextCursor</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QTextDocument.html#find(java.lang.String, int)">find</A></B>(java.lang.String&nbsp;subString,
     int&nbsp;from)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Equivalent to <a href="QTextDocument.html#find(com.trolltech.qt.core.QRegExp, int, com.trolltech.qt.gui.QTextDocument.FindFlags)">find</tt></a>(<tt>subString</tt>, <tt>from</tt>, 0).</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../com/trolltech/qt/gui/QTextCursor.html" title="class in com.trolltech.qt.gui">QTextCursor</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QTextDocument.html#find(java.lang.String, int, com.trolltech.qt.gui.QTextDocument.FindFlag...)">find</A></B>(java.lang.String&nbsp;subString,
     int&nbsp;from,
     <A HREF="../../../../com/trolltech/qt/gui/QTextDocument.FindFlag.html" title="enum in com.trolltech.qt.gui">QTextDocument.FindFlag</A>...&nbsp;options)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Finds the next occurrence of the string, <tt>subString</tt>, in the document.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../com/trolltech/qt/gui/QTextCursor.html" title="class in com.trolltech.qt.gui">QTextCursor</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QTextDocument.html#find(java.lang.String, int, com.trolltech.qt.gui.QTextDocument.FindFlags)">find</A></B>(java.lang.String&nbsp;subString,
     int&nbsp;from,
     <A HREF="../../../../com/trolltech/qt/gui/QTextDocument.FindFlags.html" title="class in com.trolltech.qt.gui">QTextDocument.FindFlags</A>&nbsp;options)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Finds the next occurrence of the string, <tt>subString</tt>, in the document.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../com/trolltech/qt/gui/QTextCursor.html" title="class in com.trolltech.qt.gui">QTextCursor</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QTextDocument.html#find(java.lang.String, com.trolltech.qt.gui.QTextCursor)">find</A></B>(java.lang.String&nbsp;subString,
     <A HREF="../../../../com/trolltech/qt/gui/QTextCursor.html" title="class in com.trolltech.qt.gui">QTextCursor</A>&nbsp;from)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Equivalent to <a href="QTextDocument.html#find(com.trolltech.qt.core.QRegExp, int, com.trolltech.qt.gui.QTextDocument.FindFlags)">find</tt></a>(<tt>subString</tt>, <tt>from</tt>, 0).</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../com/trolltech/qt/gui/QTextCursor.html" title="class in com.trolltech.qt.gui">QTextCursor</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QTextDocument.html#find(java.lang.String, com.trolltech.qt.gui.QTextCursor, com.trolltech.qt.gui.QTextDocument.FindFlag...)">find</A></B>(java.lang.String&nbsp;subString,
     <A HREF="../../../../com/trolltech/qt/gui/QTextCursor.html" title="class in com.trolltech.qt.gui">QTextCursor</A>&nbsp;from,
     <A HREF="../../../../com/trolltech/qt/gui/QTextDocument.FindFlag.html" title="enum in com.trolltech.qt.gui">QTextDocument.FindFlag</A>...&nbsp;options)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Finds the next occurrence of the string, <tt>subString</tt>, in the document.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../com/trolltech/qt/gui/QTextCursor.html" title="class in com.trolltech.qt.gui">QTextCursor</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QTextDocument.html#find(java.lang.String, com.trolltech.qt.gui.QTextCursor, com.trolltech.qt.gui.QTextDocument.FindFlags)">find</A></B>(java.lang.String&nbsp;subString,
     <A HREF="../../../../com/trolltech/qt/gui/QTextCursor.html" title="class in com.trolltech.qt.gui">QTextCursor</A>&nbsp;from,
     <A HREF="../../../../com/trolltech/qt/gui/QTextDocument.FindFlags.html" title="class in com.trolltech.qt.gui">QTextDocument.FindFlags</A>&nbsp;options)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Finds the next occurrence of the string, <tt>subString</tt>, in the document.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../com/trolltech/qt/gui/QTextBlock.html" title="class in com.trolltech.qt.gui">QTextBlock</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QTextDocument.html#findBlock(int)">findBlock</A></B>(int&nbsp;pos)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the text block that contains the <tt>pos</tt>-th character.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../com/trolltech/qt/gui/QTextFrame.html" title="class in com.trolltech.qt.gui">QTextFrame</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QTextDocument.html#frameAt(int)">frameAt</A></B>(int&nbsp;pos)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This method is used internally by Qt Jambi.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;<A HREF="../../../../com/trolltech/qt/gui/QTextDocument.html" title="class in com.trolltech.qt.gui">QTextDocument</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QTextDocument.html#fromNativePointer(com.trolltech.qt.QNativePointer)">fromNativePointer</A></B>(<A HREF="../../../../com/trolltech/qt/QNativePointer.html" title="class in com.trolltech.qt">QNativePointer</A>&nbsp;nativePointer)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This function returns the QTextDocument instance pointed to by nativePointer</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;double</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QTextDocument.html#idealWidth()">idealWidth</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the ideal width of the text document.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QTextDocument.html#isEmpty()">isEmpty</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns true if the document is empty; otherwise returns false.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QTextDocument.html#isModified()">isModified</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns whether the document has been modified by the user.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QTextDocument.html#isRedoAvailable()">isRedoAvailable</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns true if redo is available; otherwise returns false.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QTextDocument.html#isUndoAvailable()">isUndoAvailable</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns true if undo is available; otherwise returns false.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QTextDocument.html#isUndoRedoEnabled()">isUndoRedoEnabled</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns whether undo/redo are enabled for this document.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;java.lang.Object</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QTextDocument.html#loadResource(int, com.trolltech.qt.core.QUrl)">loadResource</A></B>(int&nbsp;type,
             <A HREF="../../../../com/trolltech/qt/core/QUrl.html" title="class in com.trolltech.qt.core">QUrl</A>&nbsp;name)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Loads data of the specified <tt>type</tt> from the resource with the given <tt>name</tt>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QTextDocument.html#markContentsDirty(int, int)">markContentsDirty</A></B>(int&nbsp;from,
                  int&nbsp;length)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Marks the contents specified by the given <tt>from</tt> and <tt>length</tt> as &quot;dirty&quot;, informing the document that it needs to be laid out again.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QTextDocument.html#maximumBlockCount()">maximumBlockCount</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns Specifies the limit for blocks in the document..</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QTextDocument.html#metaInformation(com.trolltech.qt.gui.QTextDocument.MetaInformation)">metaInformation</A></B>(<A HREF="../../../../com/trolltech/qt/gui/QTextDocument.MetaInformation.html" title="enum in com.trolltech.qt.gui">QTextDocument.MetaInformation</A>&nbsp;info)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns meta information about the document of the type specified by <tt>info</tt>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../com/trolltech/qt/gui/QTextObject.html" title="class in com.trolltech.qt.gui">QTextObject</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QTextDocument.html#object(int)">object</A></B>(int&nbsp;objectIndex)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the text object associated with the given <tt>objectIndex</tt>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../com/trolltech/qt/gui/QTextObject.html" title="class in com.trolltech.qt.gui">QTextObject</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QTextDocument.html#objectForFormat(com.trolltech.qt.gui.QTextFormat)">objectForFormat</A></B>(<A HREF="../../../../com/trolltech/qt/gui/QTextFormat.html" title="class in com.trolltech.qt.gui">QTextFormat</A>&nbsp;arg__1)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the text object associated with the format <tt>arg__1</tt>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QTextDocument.html#pageCount()">pageCount</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;returns the number of pages in this document.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../com/trolltech/qt/core/QSizeF.html" title="class in com.trolltech.qt.core">QSizeF</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QTextDocument.html#pageSize()">pageSize</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the page size that should be used for laying out the document.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QTextDocument.html#print(com.trolltech.qt.gui.QPrinter)">print</A></B>(<A HREF="../../../../com/trolltech/qt/gui/QPrinter.html" title="class in com.trolltech.qt.gui">QPrinter</A>&nbsp;printer)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Prints the document to the given <tt>printer</tt>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QTextDocument.html#redo()">redo</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Redoes the last editing operation on the document if redo is available</tt>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QTextDocument.html#redo(com.trolltech.qt.gui.QTextCursor)">redo</A></B>(<A HREF="../../../../com/trolltech/qt/gui/QTextCursor.html" title="class in com.trolltech.qt.gui">QTextCursor</A>&nbsp;cursor)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Redoes the last editing operation on the document if
QTextDocument.isRedoAvailable() redo is available.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;java.lang.Object</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QTextDocument.html#resource(int, com.trolltech.qt.core.QUrl)">resource</A></B>(int&nbsp;type,
         <A HREF="../../../../com/trolltech/qt/core/QUrl.html" title="class in com.trolltech.qt.core">QUrl</A>&nbsp;name)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns data of the specified <tt>type</tt> from the resource with the given <tt>name</tt>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../com/trolltech/qt/gui/QTextFrame.html" title="class in com.trolltech.qt.gui">QTextFrame</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QTextDocument.html#rootFrame()">rootFrame</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the document's root frame.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QTextDocument.html#setDefaultFont(com.trolltech.qt.gui.QFont)">setDefaultFont</A></B>(<A HREF="../../../../com/trolltech/qt/gui/QFont.html" title="class in com.trolltech.qt.gui">QFont</A>&nbsp;font)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the default font used to display the document's text to <tt>font</tt>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QTextDocument.html#setDefaultStyleSheet(java.lang.String)">setDefaultStyleSheet</A></B>(java.lang.String&nbsp;sheet)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The default style sheet is applied to all newly HTML formatted text that is inserted into the document, for example using <a href="QTextDocument.html#setHtml(java.lang.String)"><tt>setHtml</tt></a> or QTextCursor::insertHtml().</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QTextDocument.html#setDefaultTextOption(com.trolltech.qt.gui.QTextOption)">setDefaultTextOption</A></B>(<A HREF="../../../../com/trolltech/qt/gui/QTextOption.html" title="class in com.trolltech.qt.gui">QTextOption</A>&nbsp;option)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the default text option will be set on all <a href="QTextLayout.html"><tt>QTextLayout</tt></a>s in the document.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QTextDocument.html#setDocumentLayout(com.trolltech.qt.gui.QAbstractTextDocumentLayout)">setDocumentLayout</A></B>(<A HREF="../../../../com/trolltech/qt/gui/QAbstractTextDocumentLayout.html" title="class in com.trolltech.qt.gui">QAbstractTextDocumentLayout</A>&nbsp;layout)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the document to use the given <tt>layout</tt>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QTextDocument.html#setHtml(java.lang.String)">setHtml</A></B>(java.lang.String&nbsp;html)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Replaces the entire contents of the document with the given HTML-formatted text in the <tt>html</tt> string.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QTextDocument.html#setMaximumBlockCount(int)">setMaximumBlockCount</A></B>(int&nbsp;maximum)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets Specifies the limit for blocks in the document.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QTextDocument.html#setMetaInformation(com.trolltech.qt.gui.QTextDocument.MetaInformation, java.lang.String)">setMetaInformation</A></B>(<A HREF="../../../../com/trolltech/qt/gui/QTextDocument.MetaInformation.html" title="enum in com.trolltech.qt.gui">QTextDocument.MetaInformation</A>&nbsp;info,
                   java.lang.String&nbsp;arg__2)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the document's meta information of the type specified by <tt>info</tt> to the given <tt>arg__2</tt>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QTextDocument.html#setModified()">setModified</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Equivalent to <a href="QTextDocument.html#setModified(boolean)"><tt>setModified</tt></a>(true).</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QTextDocument.html#setModified(boolean)">setModified</A></B>(boolean&nbsp;m)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets whether the document has been modified by the user to <tt>m</tt>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QTextDocument.html#setPageSize(com.trolltech.qt.core.QSizeF)">setPageSize</A></B>(<A HREF="../../../../com/trolltech/qt/core/QSizeF.html" title="class in com.trolltech.qt.core">QSizeF</A>&nbsp;size)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the page size that should be used for laying out the document to <tt>size</tt>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QTextDocument.html#setPlainText(java.lang.String)">setPlainText</A></B>(java.lang.String&nbsp;text)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Replaces the entire contents of the document with the given plain <tt>text</tt>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QTextDocument.html#setTextWidth(double)">setTextWidth</A></B>(double&nbsp;width)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The text width specifies the preferred width for text in the document.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QTextDocument.html#setUndoRedoEnabled(boolean)">setUndoRedoEnabled</A></B>(boolean&nbsp;enable)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets whether undo/redo are enabled for this document to <tt>enable</tt>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QTextDocument.html#setUseDesignMetrics(boolean)">setUseDesignMetrics</A></B>(boolean&nbsp;b)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;If <tt>b</tt> is true then the layout will use design metrics; otherwise it will
use the metrics of the paint device (which is the default behavior).</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../com/trolltech/qt/core/QSizeF.html" title="class in com.trolltech.qt.core">QSizeF</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QTextDocument.html#size()">size</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the actual size of the document.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;double</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QTextDocument.html#textWidth()">textWidth</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The text width specifies the preferred width for text in the document.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QTextDocument.html#toHtml()">toHtml</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Equivalent to <a href="QTextDocument.html#toHtml(com.trolltech.qt.core.QByteArray)"><tt>toHtml</tt></a>(QByteArray()).</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QTextDocument.html#toHtml(com.trolltech.qt.core.QByteArray)">toHtml</A></B>(<A HREF="../../../../com/trolltech/qt/core/QByteArray.html" title="class in com.trolltech.qt.core">QByteArray</A>&nbsp;encoding)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns a string containing an HTML representation of the document.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QTextDocument.html#toPlainText()">toPlainText</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the plain text contained in the document.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QTextDocument.html#undo()">undo</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This is an overloaded member function, provided for convenience.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QTextDocument.html#undo(com.trolltech.qt.gui.QTextCursor)">undo</A></B>(<A HREF="../../../../com/trolltech/qt/gui/QTextCursor.html" title="class in com.trolltech.qt.gui">QTextCursor</A>&nbsp;cursor)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Undoes the last editing operation on the document if undo is
available.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QTextDocument.html#useDesignMetrics()">useDesignMetrics</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns true if this QTextDocument uses design metrics.</TD>
</TR>
</TABLE>
&nbsp;<A NAME="methods_inherited_from_class_com.trolltech.qt.core.QObject"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>Methods inherited from class com.trolltech.qt.core.<A HREF="../../../../com/trolltech/qt/core/QObject.html" title="class in com.trolltech.qt.core">QObject</A></B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><A HREF="../../../../com/trolltech/qt/core/QObject.html#blockSignals(boolean)">blockSignals</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#childEvent(com.trolltech.qt.core.QChildEvent)">childEvent</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#children()">children</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#connectSlotsByName()">connectSlotsByName</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#customEvent(com.trolltech.qt.core.QEvent)">customEvent</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#disposeLater()">disposeLater</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#dumpObjectInfo()">dumpObjectInfo</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#dumpObjectTree()">dumpObjectTree</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#dynamicPropertyNames()">dynamicPropertyNames</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#event(com.trolltech.qt.core.QEvent)">event</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#eventFilter(com.trolltech.qt.core.QObject, com.trolltech.qt.core.QEvent)">eventFilter</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#findChild()">findChild</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#findChild(java.lang.Class)">findChild</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#findChild(java.lang.Class, java.lang.String)">findChild</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#findChildren()">findChildren</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#findChildren(java.lang.Class)">findChildren</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#findChildren(java.lang.Class, com.trolltech.qt.core.QRegExp)">findChildren</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#findChildren(java.lang.Class, java.lang.String)">findChildren</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#installEventFilter(com.trolltech.qt.core.QObject)">installEventFilter</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#isWidgetType()">isWidgetType</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#killTimer(int)">killTimer</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#moveToThread(java.lang.Thread)">moveToThread</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#objectName()">objectName</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#parent()">parent</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#property(java.lang.String)">property</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#removeEventFilter(com.trolltech.qt.core.QObject)">removeEventFilter</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#setObjectName(java.lang.String)">setObjectName</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#setParent(com.trolltech.qt.core.QObject)">setParent</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#setProperty(java.lang.String, java.lang.Object)">setProperty</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#signalsBlocked()">signalsBlocked</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#startTimer(int)">startTimer</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#thread()">thread</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#timerEvent(com.trolltech.qt.core.QTimerEvent)">timerEvent</A></CODE></TD>
</TR>
</TABLE>
&nbsp;<A NAME="methods_inherited_from_class_com.trolltech.qt.QtJambiObject"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>Methods inherited from class com.trolltech.qt.<A HREF="../../../../com/trolltech/qt/QtJambiObject.html" title="class in com.trolltech.qt">QtJambiObject</A></B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><A HREF="../../../../com/trolltech/qt/QtJambiObject.html#dispose()">dispose</A>, <A HREF="../../../../com/trolltech/qt/QtJambiObject.html#disposed()">disposed</A>, <A HREF="../../../../com/trolltech/qt/QtJambiObject.html#finalize()">finalize</A>, <A HREF="../../../../com/trolltech/qt/QtJambiObject.html#reassignNativeResources(com.trolltech.qt.QtJambiObject, java.lang.Class)">reassignNativeResources</A>, <A HREF="../../../../com/trolltech/qt/QtJambiObject.html#tr(java.lang.String)">tr</A>, <A HREF="../../../../com/trolltech/qt/QtJambiObject.html#tr(java.lang.String, java.lang.String)">tr</A>, <A HREF="../../../../com/trolltech/qt/QtJambiObject.html#tr(java.lang.String, java.lang.String, int)">tr</A></CODE></TD>
</TR>
</TABLE>
&nbsp;<A NAME="methods_inherited_from_class_com.trolltech.qt.QSignalEmitter"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>Methods inherited from class com.trolltech.qt.<A HREF="../../../../com/trolltech/qt/QSignalEmitter.html" title="class in com.trolltech.qt">QSignalEmitter</A></B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><A HREF="../../../../com/trolltech/qt/QSignalEmitter.html#disconnect()">disconnect</A>, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.html#disconnect(java.lang.Object)">disconnect</A>, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.html#signalSender()">signalSender</A></CODE></TD>
</TR>
</TABLE>
&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE>equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>
</TR>
</TABLE>
&nbsp;<A NAME="methods_inherited_from_class_com.trolltech.qt.QtJambiInterface"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>Methods inherited from interface com.trolltech.qt.<A HREF="../../../../com/trolltech/qt/QtJambiInterface.html" title="interface in com.trolltech.qt">QtJambiInterface</A></B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><A HREF="../../../../com/trolltech/qt/QtJambiInterface.html#disableGarbageCollection()">disableGarbageCollection</A>, <A HREF="../../../../com/trolltech/qt/QtJambiInterface.html#nativeId()">nativeId</A>, <A HREF="../../../../com/trolltech/qt/QtJambiInterface.html#nativePointer()">nativePointer</A>, <A HREF="../../../../com/trolltech/qt/QtJambiInterface.html#reenableGarbageCollection()">reenableGarbageCollection</A>, <A HREF="../../../../com/trolltech/qt/QtJambiInterface.html#setJavaOwnership()">setJavaOwnership</A></CODE></TD>
</TR>
</TABLE>
&nbsp;
<P>

<!-- ============ FIELD DETAIL =========== -->

<A NAME="field_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
<B>Field Detail</B></FONT></TH>
</TR>
</TABLE>

<A NAME="blockCountChanged"><!-- --></A><H3>
blockCountChanged</H3>
<PRE>
public final <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal1.html" title="class in com.trolltech.qt">QSignalEmitter.Signal1</A>&lt;java.lang.Integer&gt; <B>blockCountChanged</B></PRE>
<DL>
<DD><p>This signal is emitted when the total number of text blocks in the document changes. The value passed in <tt>newBlockCount</tt> is the new total.</p>
<dl>
<dt><b>Compatible Slot Signatures:</b></dt>
<dd><tt>void mySlot(int newBlockCount)</tt></dd>
<dd><tt>void mySlot()</tt></dd>
</dl>
<P>
<DL>
</DL>
</DL>
<HR>

<A NAME="contentsChange"><!-- --></A><H3>
contentsChange</H3>
<PRE>
public final <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal3.html" title="class in com.trolltech.qt">QSignalEmitter.Signal3</A>&lt;java.lang.Integer,java.lang.Integer,java.lang.Integer&gt; <B>contentsChange</B></PRE>
<DL>
<DD><p>This signal is emitted whenever the document's content changes; for example, when text is inserted or deleted, or when formatting is applied.</p>
<p>Information is provided about the <tt>from</tt> of the character in the document where the change occurred, the number of characters removed (<tt>charsRemoves</tt>), and the number of characters added (<tt>charsAdded</tt>).</p>
<p>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.</p>
<dl>
<dt><b>Compatible Slot Signatures:</b></dt>
<dd><tt>void mySlot(int from, int charsRemoves, int charsAdded)</tt></dd>
<dd><tt>void mySlot(int from, int charsRemoves)</tt></dd>
<dd><tt>void mySlot(int from)</tt></dd>
<dd><tt>void mySlot()</tt></dd>
</dl>
<dl>
<dt><b>See Also:</b></dt>
<dd><tt>QAbstractTextDocumentLayout::documentChanged</tt>, <a href="QTextDocument.html#contentsChanged()"><tt>contentsChanged</tt></a></dd>
</dl>
<P>
<DL>
</DL>
</DL>
<HR>

<A NAME="contentsChanged"><!-- --></A><H3>
contentsChanged</H3>
<PRE>
public final <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal0.html" title="class in com.trolltech.qt">QSignalEmitter.Signal0</A> <B>contentsChanged</B></PRE>
<DL>
<DD><p>This signal is emitted whenever the document's content changes; for example, when text is inserted or deleted, or when formatting is applied.</p>
<dl>
<dt><b>Compatible Slot Signature:</b></dt>
<dd><tt>void mySlot()</tt></dd>
</dl>
<dl>
<dt><b>See Also:</b></dt>
<dd><a href="QTextDocument.html#contentsChange(int, int, int)"><tt>contentsChange</tt></a></dd>
</dl>
<P>
<DL>
</DL>
</DL>
<HR>

<A NAME="cursorPositionChanged"><!-- --></A><H3>
cursorPositionChanged</H3>
<PRE>
public final <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal1.html" title="class in com.trolltech.qt">QSignalEmitter.Signal1</A>&lt;<A HREF="../../../../com/trolltech/qt/gui/QTextCursor.html" title="class in com.trolltech.qt.gui">QTextCursor</A>&gt; <B>cursorPositionChanged</B></PRE>
<DL>
<DD><p>This signal is emitted whenever the position of a cursor changed due to an editing operation. The cursor that changed is passed in <tt>cursor</tt>. If you need a signal when the cursor is moved with the arrow keys you can use the cursorPositionChanged() signal in <a href="QTextEdit.html"><tt>QTextEdit</tt></a>.</p>
<dl>
<dt><b>Compatible Slot Signatures:</b></dt>
<dd><tt>void mySlot(com.trolltech.qt.gui.QTextCursor cursor)</tt></dd>
<dd><tt>void mySlot()</tt></dd>
</dl>
<P>
<DL>
</DL>
</DL>
<HR>

<A NAME="modificationChanged"><!-- --></A><H3>
modificationChanged</H3>
<PRE>
public final <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal1.html" title="class in com.trolltech.qt">QSignalEmitter.Signal1</A>&lt;java.lang.Boolean&gt; <B>modificationChanged</B></PRE>
<DL>
<DD><p>This signal is emitted whenever the content of the document changes in a way that affects the modification state. If <tt>m</tt> is true, the document has been modified; otherwise it is false.</p>
<p>For example, calling <a href="QTextDocument.html#setModified(boolean)"><tt>setModified</tt></a>(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.</p>
<dl>
<dt><b>Compatible Slot Signatures:</b></dt>
<dd><tt>void mySlot(boolean m)</tt></dd>
<dd><tt>void mySlot()</tt></dd>
</dl>
<P>
<DL>
</DL>
</DL>
<HR>

<A NAME="redoAvailable"><!-- --></A><H3>
redoAvailable</H3>
<PRE>
public final <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal1.html" title="class in com.trolltech.qt">QSignalEmitter.Signal1</A>&lt;java.lang.Boolean&gt; <B>redoAvailable</B></PRE>
<DL>
<DD><p>This signal is emitted whenever redo operations become available (<tt>arg__1</tt> is true) or unavailable (<tt>arg__1</tt> is false).</p>
<dl>
<dt><b>Compatible Slot Signatures:</b></dt>
<dd><tt>void mySlot(boolean arg__1)</tt></dd>
<dd><tt>void mySlot()</tt></dd>
</dl>
<P>
<DL>
</DL>
</DL>
<HR>

<A NAME="undoAvailable"><!-- --></A><H3>
undoAvailable</H3>
<PRE>
public final <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal1.html" title="class in com.trolltech.qt">QSignalEmitter.Signal1</A>&lt;java.lang.Boolean&gt; <B>undoAvailable</B></PRE>
<DL>
<DD><p>This signal is emitted whenever undo operations become available (<tt>arg__1</tt> is true) or unavailable (<tt>arg__1</tt> is false).</p>
<p>See the <a href="%2E%2E/qundo.html">Qt Undo Framework</tt></a> documentation for details.</p>
<dl>
<dt><b>Compatible Slot Signatures:</b></dt>
<dd><tt>void mySlot(boolean arg__1)</tt></dd>
<dd><tt>void mySlot()</tt></dd>
</dl>
<dl>
<dt><b>See Also:</b></dt>
<dd><a href="QTextDocument.html#undo()"><tt>undo</tt></a>, <a href="QTextDocument.html#isUndoRedoEnabled()"><tt>isUndoRedoEnabled</tt></a></dd>
</dl>
<P>
<DL>
</DL>
</DL>

<!-- ========= CONSTRUCTOR DETAIL ======== -->

<A NAME="constructor_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
<B>Constructor Detail</B></FONT></TH>
</TR>
</TABLE>

<A NAME="QTextDocument()"><!-- --></A><H3>
QTextDocument</H3>
<PRE>
public <B>QTextDocument</B>()</PRE>
<DL>
<DD><p>Equivalent to <a href="QTextDocument.html#QTextDocument(java.lang.String, com.trolltech.qt.core.QObject)"><tt>QTextDocument</tt></a>(0).
<P>
</DL>
<HR>

<A NAME="QTextDocument(com.trolltech.qt.core.QObject)"><!-- --></A><H3>
QTextDocument</H3>
<PRE>
public <B>QTextDocument</B>(<A HREF="../../../../com/trolltech/qt/core/QObject.html" title="class in com.trolltech.qt.core">QObject</A>&nbsp;parent)</PRE>
<DL>
<DD><p>Constructs an empty <a href="QTextDocument.html#QTextDocument(java.lang.String, com.trolltech.qt.core.QObject)"><tt>QTextDocument</tt></a> with the given <tt>parent</tt>.</p>
<P>
</DL>
<HR>

<A NAME="QTextDocument(java.lang.String)"><!-- --></A><H3>
QTextDocument</H3>
<PRE>
public <B>QTextDocument</B>(java.lang.String&nbsp;text)</PRE>
<DL>
<DD><p>Equivalent to <a href="QTextDocument.html#QTextDocument(java.lang.String, com.trolltech.qt.core.QObject)"><tt>QTextDocument</tt></a>(<tt>text</tt>, 0).
<P>
</DL>
<HR>

<A NAME="QTextDocument(java.lang.String, com.trolltech.qt.core.QObject)"><!-- --></A><H3>
QTextDocument</H3>
<PRE>
public <B>QTextDocument</B>(java.lang.String&nbsp;text,
                     <A HREF="../../../../com/trolltech/qt/core/QObject.html" title="class in com.trolltech.qt.core">QObject</A>&nbsp;parent)</PRE>
<DL>
<DD><p>Constructs a <a href="QTextDocument.html#QTextDocument(java.lang.String, com.trolltech.qt.core.QObject)"><tt>QTextDocument</tt></a> containing the plain (unformatted) <tt>text</tt> specified, and with the given <tt>parent</tt>.</p>
<P>
</DL>

<!-- ============ METHOD DETAIL ========== -->

<A NAME="method_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
<B>Method Detail</B></FONT></TH>
</TR>
</TABLE>

<A NAME="addResource(int, com.trolltech.qt.core.QUrl, java.lang.Object)"><!-- --></A><H3>
addResource</H3>
<PRE>
public final void <B>addResource</B>(int&nbsp;type,
                              <A HREF="../../../../com/trolltech/qt/core/QUrl.html" title="class in com.trolltech.qt.core">QUrl</A>&nbsp;name,
                              java.lang.Object&nbsp;resource)</PRE>
<DL>
<DD><p>Adds the resource <tt>resource</tt> to the resource cache, using <tt>type</tt> and <tt>name</tt> as identifiers. <tt>type</tt> should be a value from QTextDocument::ResourceType.</p>
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="adjustSize()"><!-- --></A><H3>
adjustSize</H3>
<PRE>
public final void <B>adjustSize</B>()</PRE>
<DL>
<DD><p>Adjusts the document to a reasonable size.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QTextDocument.html#idealWidth()"><tt>idealWidth</tt></a>, 
<a href="QTextDocument.html#textWidth()"><tt>textWidth</tt></a>, 
<a href="QTextDocument.html#size()">size</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="allFormats()"><!-- --></A><H3>
allFormats</H3>
<PRE>
public final java.util.List&lt;<A HREF="../../../../com/trolltech/qt/gui/QTextFormat.html" title="class in com.trolltech.qt.gui">QTextFormat</A>&gt; <B>allFormats</B>()</PRE>
<DL>
<DD><p>Returns a vector of text formats for all the formats used in the document.</p>
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="begin()"><!-- --></A><H3>
begin</H3>
<PRE>
public final <A HREF="../../../../com/trolltech/qt/gui/QTextBlock.html" title="class in com.trolltech.qt.gui">QTextBlock</A> <B>begin</B>()</PRE>
<DL>
<DD><p>Returns the document's first text block.</p>
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="blockCount()"><!-- --></A><H3>
blockCount</H3>
<PRE>
public final int <B>blockCount</B>()</PRE>
<DL>
<DD><p>Returns the number of text blocks in the document.</p>
<p>The value of this property is undefined in documents with tables or frames.</p>
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="clone()"><!-- --></A><H3>
clone</H3>
<PRE>
public final <A HREF="../../../../com/trolltech/qt/gui/QTextDocument.html" title="class in com.trolltech.qt.gui">QTextDocument</A> <B>clone</B>()</PRE>
<DL>
<DD><p>Equivalent to <a href="QTextDocument.html#clone(com.trolltech.qt.core.QObject)">clone</tt></a>(0).
<P>
<DD><DL>
<DT><B>Overrides:</B><DD><CODE>clone</CODE> in class <CODE>java.lang.Object</CODE></DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="clone(com.trolltech.qt.core.QObject)"><!-- --></A><H3>
clone</H3>
<PRE>
public final <A HREF="../../../../com/trolltech/qt/gui/QTextDocument.html" title="class in com.trolltech.qt.gui">QTextDocument</A> <B>clone</B>(<A HREF="../../../../com/trolltech/qt/core/QObject.html" title="class in com.trolltech.qt.core">QObject</A>&nbsp;parent)</PRE>
<DL>
<DD><p>Creates a new <a href="QTextDocument.html#QTextDocument(java.lang.String, com.trolltech.qt.core.QObject)"><tt>QTextDocument</tt></a> that is a copy of this text document. <tt>parent</tt> is the parent of the returned text document.</p>
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="defaultFont()"><!-- --></A><H3>
defaultFont</H3>
<PRE>
public final <A HREF="../../../../com/trolltech/qt/gui/QFont.html" title="class in com.trolltech.qt.gui">QFont</A> <B>defaultFont</B>()</PRE>
<DL>
<DD><p>Returns the default font used to display the document's text.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QTextDocument.html#setDefaultFont(com.trolltech.qt.gui.QFont)"><tt>setDefaultFont</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="defaultStyleSheet()"><!-- --></A><H3>
defaultStyleSheet</H3>
<PRE>
public final java.lang.String <B>defaultStyleSheet</B>()</PRE>
<DL>
<DD><p>The default style sheet is applied to all newly HTML formatted text that is inserted into the document, for example using <a href="QTextDocument.html#setHtml(java.lang.String)"><tt>setHtml</tt></a> or QTextCursor::insertHtml().</p>
<p>The style sheet needs to be compliant to CSS 2.1 syntax.</p>
<p><b>Note:</b> Changing the default style sheet does not have any effect to the existing content of the document.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QTextDocument.html#setDefaultStyleSheet(java.lang.String)"><tt>setDefaultStyleSheet</tt></a>, 
<a href="%2E%2E/richtext-html-subset.html">Supported HTML Subset</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="defaultTextOption()"><!-- --></A><H3>
defaultTextOption</H3>
<PRE>
public final <A HREF="../../../../com/trolltech/qt/gui/QTextOption.html" title="class in com.trolltech.qt.gui">QTextOption</A> <B>defaultTextOption</B>()</PRE>
<DL>
<DD><p>Returns the default text option will be set on all <a href="QTextLayout.html"><tt>QTextLayout</tt></a>s in the document..</p>
<p>When <a href="QTextBlock.html"><tt>QTextBlock</tt></a>s are created, the <a href="QTextDocument.html#defaultTextOption()"><tt>defaultTextOption</tt></a> is set on their <a href="QTextLayout.html"><tt>QTextLayout</tt></a>. This allows setting global properties for the document such as the default word wrap mode.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QTextDocument.html#setDefaultTextOption(com.trolltech.qt.gui.QTextOption)"><tt>setDefaultTextOption</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="documentLayout()"><!-- --></A><H3>
documentLayout</H3>
<PRE>
public final <A HREF="../../../../com/trolltech/qt/gui/QAbstractTextDocumentLayout.html" title="class in com.trolltech.qt.gui">QAbstractTextDocumentLayout</A> <B>documentLayout</B>()</PRE>
<DL>
<DD><p>Returns the document layout for this document.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QTextDocument.html#setDocumentLayout(com.trolltech.qt.gui.QAbstractTextDocumentLayout)"><tt>setDocumentLayout</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="drawContents(com.trolltech.qt.gui.QPainter)"><!-- --></A><H3>
drawContents</H3>
<PRE>
public final void <B>drawContents</B>(<A HREF="../../../../com/trolltech/qt/gui/QPainter.html" title="class in com.trolltech.qt.gui">QPainter</A>&nbsp;painter)</PRE>
<DL>
<DD><p>Equivalent to <a href="QTextDocument.html#drawContents(com.trolltech.qt.gui.QPainter, com.trolltech.qt.core.QRectF)"><tt>drawContents</tt></a>(<tt>painter</tt>, QRectF()).
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="drawContents(com.trolltech.qt.gui.QPainter, com.trolltech.qt.core.QRectF)"><!-- --></A><H3>
drawContents</H3>
<PRE>
public final void <B>drawContents</B>(<A HREF="../../../../com/trolltech/qt/gui/QPainter.html" title="class in com.trolltech.qt.gui">QPainter</A>&nbsp;painter,
                               <A HREF="../../../../com/trolltech/qt/core/QRectF.html" title="class in com.trolltech.qt.core">QRectF</A>&nbsp;rect)</PRE>
<DL>
<DD><p>Draws the content of the document with painter <tt>painter</tt>, clipped to <tt>rect</tt>. If <tt>rect</tt> is a null rectangle (default) then the document is painted unclipped.</p>
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="end()"><!-- --></A><H3>
end</H3>
<PRE>
public final <A HREF="../../../../com/trolltech/qt/gui/QTextBlock.html" title="class in com.trolltech.qt.gui">QTextBlock</A> <B>end</B>()</PRE>
<DL>
<DD><p>This function returns a block to test for the end of the document while iterating over it.</p>
<pre>        for (QTextBlock it = doc-&gt;begin(); it != doc-&gt;end(); it = it.next())
            cout &lt;&lt; it.text().toStdString() &lt;&lt; endl;</pre>
<p>The block returned is invalid and represents the block after the last block in the document.</p>
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="find(com.trolltech.qt.core.QRegExp, com.trolltech.qt.gui.QTextCursor, com.trolltech.qt.gui.QTextDocument.FindFlag...)"><!-- --></A><H3>
find</H3>
<PRE>
public final <A HREF="../../../../com/trolltech/qt/gui/QTextCursor.html" title="class in com.trolltech.qt.gui">QTextCursor</A> <B>find</B>(<A HREF="../../../../com/trolltech/qt/core/QRegExp.html" title="class in com.trolltech.qt.core">QRegExp</A>&nbsp;expr,
                              <A HREF="../../../../com/trolltech/qt/gui/QTextCursor.html" title="class in com.trolltech.qt.gui">QTextCursor</A>&nbsp;from,
                              <A HREF="../../../../com/trolltech/qt/gui/QTextDocument.FindFlag.html" title="enum in com.trolltech.qt.gui">QTextDocument.FindFlag</A>...&nbsp;options)</PRE>
<DL>
<DD><p>Finds the next occurrence, matching the regular expression, <tt>expr</tt>, in the document. The search starts at the position of the given <tt>from</tt>, and proceeds forwards through the document unless specified otherwise in the search options. The <tt>options</tt> control the type of search performed. The <a href="QTextDocument.html#FindFlag-enum"><tt>FindCaseSensitively</tt></a> option is ignored for this overload, use QRegExp::caseSensitivity instead.</p>
<p>Returns a cursor with the match selected if a match was found; otherwise returns a null cursor.</p>
<p>If the given <tt>from</tt> has a selection, the search begins after the selection; otherwise it begins at the cursor's position.</p>
<p>By default the search is case-sensitive, and can match text anywhere in the document.</p>
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="find(com.trolltech.qt.core.QRegExp, com.trolltech.qt.gui.QTextCursor)"><!-- --></A><H3>
find</H3>
<PRE>
public final <A HREF="../../../../com/trolltech/qt/gui/QTextCursor.html" title="class in com.trolltech.qt.gui">QTextCursor</A> <B>find</B>(<A HREF="../../../../com/trolltech/qt/core/QRegExp.html" title="class in com.trolltech.qt.core">QRegExp</A>&nbsp;expr,
                              <A HREF="../../../../com/trolltech/qt/gui/QTextCursor.html" title="class in com.trolltech.qt.gui">QTextCursor</A>&nbsp;from)</PRE>
<DL>
<DD><p>Equivalent to <a href="QTextDocument.html#find(com.trolltech.qt.core.QRegExp, int, com.trolltech.qt.gui.QTextDocument.FindFlags)">find</tt></a>(<tt>expr</tt>, <tt>from</tt>, 0).
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="find(com.trolltech.qt.core.QRegExp, com.trolltech.qt.gui.QTextCursor, com.trolltech.qt.gui.QTextDocument.FindFlags)"><!-- --></A><H3>
find</H3>
<PRE>
public final <A HREF="../../../../com/trolltech/qt/gui/QTextCursor.html" title="class in com.trolltech.qt.gui">QTextCursor</A> <B>find</B>(<A HREF="../../../../com/trolltech/qt/core/QRegExp.html" title="class in com.trolltech.qt.core">QRegExp</A>&nbsp;expr,
                              <A HREF="../../../../com/trolltech/qt/gui/QTextCursor.html" title="class in com.trolltech.qt.gui">QTextCursor</A>&nbsp;from,
                              <A HREF="../../../../com/trolltech/qt/gui/QTextDocument.FindFlags.html" title="class in com.trolltech.qt.gui">QTextDocument.FindFlags</A>&nbsp;options)</PRE>
<DL>
<DD><p>Finds the next occurrence, matching the regular expression, <tt>expr</tt>, in the document. The search starts at the position of the given <tt>from</tt>, and proceeds forwards through the document unless specified otherwise in the search options. The <tt>options</tt> control the type of search performed. The <a href="QTextDocument.html#FindFlag-enum"><tt>FindCaseSensitively</tt></a> option is ignored for this overload, use QRegExp::caseSensitivity instead.</p>
<p>Returns a cursor with the match selected if a match was found; otherwise returns a null cursor.</p>
<p>If the given <tt>from</tt> has a selection, the search begins after the selection; otherwise it begins at the cursor's position.</p>
<p>By default the search is case-sensitive, and can match text anywhere in the document.</p>
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="find(java.lang.String, com.trolltech.qt.gui.QTextCursor, com.trolltech.qt.gui.QTextDocument.FindFlag...)"><!-- --></A><H3>
find</H3>
<PRE>
public final <A HREF="../../../../com/trolltech/qt/gui/QTextCursor.html" title="class in com.trolltech.qt.gui">QTextCursor</A> <B>find</B>(java.lang.String&nbsp;subString,
                              <A HREF="../../../../com/trolltech/qt/gui/QTextCursor.html" title="class in com.trolltech.qt.gui">QTextCursor</A>&nbsp;from,
                              <A HREF="../../../../com/trolltech/qt/gui/QTextDocument.FindFlag.html" title="enum in com.trolltech.qt.gui">QTextDocument.FindFlag</A>...&nbsp;options)</PRE>
<DL>
<DD><p>Finds the next occurrence of the string, <tt>subString</tt>, in the document. The search starts at the position of the given <tt>from</tt>, and proceeds forwards through the document unless specified otherwise in the search options. The <tt>options</tt> control the type of search performed.</p>
<p>Returns a cursor with the match selected if <tt>subString</tt> was found; otherwise returns a null cursor.</p>
<p>If the given <tt>from</tt> has a selection, the search begins after the selection; otherwise it begins at the cursor's position.</p>
<p>By default the search is case-sensitive, and can match text anywhere in the document.</p>
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="find(java.lang.String, com.trolltech.qt.gui.QTextCursor)"><!-- --></A><H3>
find</H3>
<PRE>
public final <A HREF="../../../../com/trolltech/qt/gui/QTextCursor.html" title="class in com.trolltech.qt.gui">QTextCursor</A> <B>find</B>(java.lang.String&nbsp;subString,
                              <A HREF="../../../../com/trolltech/qt/gui/QTextCursor.html" title="class in com.trolltech.qt.gui">QTextCursor</A>&nbsp;from)</PRE>
<DL>
<DD><p>Equivalent to <a href="QTextDocument.html#find(com.trolltech.qt.core.QRegExp, int, com.trolltech.qt.gui.QTextDocument.FindFlags)">find</tt></a>(<tt>subString</tt>, <tt>from</tt>, 0).
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="find(java.lang.String, com.trolltech.qt.gui.QTextCursor, com.trolltech.qt.gui.QTextDocument.FindFlags)"><!-- --></A><H3>
find</H3>
<PRE>
public final <A HREF="../../../../com/trolltech/qt/gui/QTextCursor.html" title="class in com.trolltech.qt.gui">QTextCursor</A> <B>find</B>(java.lang.String&nbsp;subString,
                              <A HREF="../../../../com/trolltech/qt/gui/QTextCursor.html" title="class in com.trolltech.qt.gui">QTextCursor</A>&nbsp;from,
                              <A HREF="../../../../com/trolltech/qt/gui/QTextDocument.FindFlags.html" title="class in com.trolltech.qt.gui">QTextDocument.FindFlags</A>&nbsp;options)</PRE>
<DL>
<DD><p>Finds the next occurrence of the string, <tt>subString</tt>, in the document. The search starts at the position of the given <tt>from</tt>, and proceeds forwards through the document unless specified otherwise in the search options. The <tt>options</tt> control the type of search performed.</p>
<p>Returns a cursor with the match selected if <tt>subString</tt> was found; otherwise returns a null cursor.</p>
<p>If the given <tt>from</tt> has a selection, the search begins after the selection; otherwise it begins at the cursor's position.</p>
<p>By default the search is case-sensitive, and can match text anywhere in the document.</p>
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="find(com.trolltech.qt.core.QRegExp, int, com.trolltech.qt.gui.QTextDocument.FindFlag...)"><!-- --></A><H3>
find</H3>
<PRE>
public final <A HREF="../../../../com/trolltech/qt/gui/QTextCursor.html" title="class in com.trolltech.qt.gui">QTextCursor</A> <B>find</B>(<A HREF="../../../../com/trolltech/qt/core/QRegExp.html" title="class in com.trolltech.qt.core">QRegExp</A>&nbsp;expr,
                              int&nbsp;from,
                              <A HREF="../../../../com/trolltech/qt/gui/QTextDocument.FindFlag.html" title="enum in com.trolltech.qt.gui">QTextDocument.FindFlag</A>...&nbsp;options)</PRE>
<DL>
<DD><p>Finds the next occurrence, matching the regular expression, <tt>expr</tt>, in the document. The search starts at the given <tt>from</tt>, and proceeds forwards through the document unless specified otherwise in the search options. The <tt>options</tt> control the type of search performed. The <a href="QTextDocument.html#FindFlag-enum"><tt>FindCaseSensitively</tt></a> option is ignored for this overload, use QRegExp::caseSensitivity instead.</p>
<p>Returns a cursor with the match selected if a match was found; otherwise returns a null cursor.</p>
<p>If the <tt>from</tt> is 0 (the default) the search begins from the beginning of the document; otherwise it begins at the specified position.</p>
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="find(com.trolltech.qt.core.QRegExp, int)"><!-- --></A><H3>
find</H3>
<PRE>
public final <A HREF="../../../../com/trolltech/qt/gui/QTextCursor.html" title="class in com.trolltech.qt.gui">QTextCursor</A> <B>find</B>(<A HREF="../../../../com/trolltech/qt/core/QRegExp.html" title="class in com.trolltech.qt.core">QRegExp</A>&nbsp;expr,
                              int&nbsp;from)</PRE>
<DL>
<DD><p>Equivalent to <a href="QTextDocument.html#find(com.trolltech.qt.core.QRegExp, int, com.trolltech.qt.gui.QTextDocument.FindFlags)">find</tt></a>(<tt>expr</tt>, <tt>from</tt>, 0).
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="find(com.trolltech.qt.core.QRegExp)"><!-- --></A><H3>
find</H3>
<PRE>
public final <A HREF="../../../../com/trolltech/qt/gui/QTextCursor.html" title="class in com.trolltech.qt.gui">QTextCursor</A> <B>find</B>(<A HREF="../../../../com/trolltech/qt/core/QRegExp.html" title="class in com.trolltech.qt.core">QRegExp</A>&nbsp;expr)</PRE>
<DL>
<DD><p>Equivalent to <a href="QTextDocument.html#find(com.trolltech.qt.core.QRegExp, int, com.trolltech.qt.gui.QTextDocument.FindFlags)">find</tt></a>(<tt>expr</tt>, 0, 0).
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="find(com.trolltech.qt.core.QRegExp, int, com.trolltech.qt.gui.QTextDocument.FindFlags)"><!-- --></A><H3>
find</H3>
<PRE>
public final <A HREF="../../../../com/trolltech/qt/gui/QTextCursor.html" title="class in com.trolltech.qt.gui">QTextCursor</A> <B>find</B>(<A HREF="../../../../com/trolltech/qt/core/QRegExp.html" title="class in com.trolltech.qt.core">QRegExp</A>&nbsp;expr,
                              int&nbsp;from,
                              <A HREF="../../../../com/trolltech/qt/gui/QTextDocument.FindFlags.html" title="class in com.trolltech.qt.gui">QTextDocument.FindFlags</A>&nbsp;options)</PRE>
<DL>
<DD><p>Finds the next occurrence, matching the regular expression, <tt>expr</tt>, in the document. The search starts at the given <tt>from</tt>, and proceeds forwards through the document unless specified otherwise in the search options. The <tt>options</tt> control the type of search performed. The <a href="QTextDocument.html#FindFlag-enum"><tt>FindCaseSensitively</tt></a> option is ignored for this overload, use QRegExp::caseSensitivity instead.</p>
<p>Returns a cursor with the match selected if a match was found; otherwise returns a null cursor.</p>
<p>If the <tt>from</tt> is 0 (the default) the search begins from the beginning of the document; otherwise it begins at the specified position.</p>
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="find(java.lang.String, int, com.trolltech.qt.gui.QTextDocument.FindFlag...)"><!-- --></A><H3>
find</H3>
<PRE>
public final <A HREF="../../../../com/trolltech/qt/gui/QTextCursor.html" title="class in com.trolltech.qt.gui">QTextCursor</A> <B>find</B>(java.lang.String&nbsp;subString,
                              int&nbsp;from,
                              <A HREF="../../../../com/trolltech/qt/gui/QTextDocument.FindFlag.html" title="enum in com.trolltech.qt.gui">QTextDocument.FindFlag</A>...&nbsp;options)</PRE>
<DL>
<DD><p>Finds the next occurrence of the string, <tt>subString</tt>, in the document. The search starts at the given <tt>from</tt>, and proceeds forwards through the document unless specified otherwise in the search options. The <tt>options</tt> control the type of search performed.</p>
<p>Returns a cursor with the match selected if <tt>subString</tt> was found; otherwise returns a null cursor.</p>
<p>If the <tt>from</tt> is 0 (the default) the search begins from the beginning of the document; otherwise it begins at the specified position.</p>
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="find(java.lang.String, int)"><!-- --></A><H3>
find</H3>
<PRE>
public final <A HREF="../../../../com/trolltech/qt/gui/QTextCursor.html" title="class in com.trolltech.qt.gui">QTextCursor</A> <B>find</B>(java.lang.String&nbsp;subString,
                              int&nbsp;from)</PRE>
<DL>
<DD><p>Equivalent to <a href="QTextDocument.html#find(com.trolltech.qt.core.QRegExp, int, com.trolltech.qt.gui.QTextDocument.FindFlags)">find</tt></a>(<tt>subString</tt>, <tt>from</tt>, 0).
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="find(java.lang.String)"><!-- --></A><H3>
find</H3>
<PRE>
public final <A HREF="../../../../com/trolltech/qt/gui/QTextCursor.html" title="class in com.trolltech.qt.gui">QTextCursor</A> <B>find</B>(java.lang.String&nbsp;subString)</PRE>
<DL>
<DD><p>Equivalent to <a href="QTextDocument.html#find(com.trolltech.qt.core.QRegExp, int, com.trolltech.qt.gui.QTextDocument.FindFlags)">find</tt></a>(<tt>subString</tt>, 0, 0).
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="find(java.lang.String, int, com.trolltech.qt.gui.QTextDocument.FindFlags)"><!-- --></A><H3>
find</H3>
<PRE>
public final <A HREF="../../../../com/trolltech/qt/gui/QTextCursor.html" title="class in com.trolltech.qt.gui">QTextCursor</A> <B>find</B>(java.lang.String&nbsp;subString,
                              int&nbsp;from,
                              <A HREF="../../../../com/trolltech/qt/gui/QTextDocument.FindFlags.html" title="class in com.trolltech.qt.gui">QTextDocument.FindFlags</A>&nbsp;options)</PRE>
<DL>
<DD><p>Finds the next occurrence of the string, <tt>subString</tt>, in the document. The search starts at the given <tt>from</tt>, and proceeds forwards through the document unless specified otherwise in the search options. The <tt>options</tt> control the type of search performed.</p>
<p>Returns a cursor with the match selected if <tt>subString</tt> was found; otherwise returns a null cursor.</p>
<p>If the <tt>from</tt> is 0 (the default) the search begins from the beginning of the document; otherwise it begins at the specified position.</p>
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="findBlock(int)"><!-- --></A><H3>
findBlock</H3>
<PRE>
public final <A HREF="../../../../com/trolltech/qt/gui/QTextBlock.html" title="class in com.trolltech.qt.gui">QTextBlock</A> <B>findBlock</B>(int&nbsp;pos)</PRE>
<DL>
<DD><p>Returns the text block that contains the <tt>pos</tt>-th character.</p>
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="frameAt(int)"><!-- --></A><H3>
frameAt</H3>
<PRE>
public final <A HREF="../../../../com/trolltech/qt/gui/QTextFrame.html" title="class in com.trolltech.qt.gui">QTextFrame</A> <B>frameAt</B>(int&nbsp;pos)</PRE>
<DL>
<DD><p>This method is used internally by Qt Jambi.
Do not use it in your applications.</p>
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="idealWidth()"><!-- --></A><H3>
idealWidth</H3>
<PRE>
public final double <B>idealWidth</B>()</PRE>
<DL>
<DD><p>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 &lt;= <a href="QTextDocument.html#size()"><tt>size</tt></a>.width().</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QTextDocument.html#adjustSize()"><tt>adjustSize</tt></a>, 
<a href="QTextDocument.html#textWidth()"><tt>textWidth</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="isEmpty()"><!-- --></A><H3>
isEmpty</H3>
<PRE>
public final boolean <B>isEmpty</B>()</PRE>
<DL>
<DD><p>Returns true if the document is empty; otherwise returns false.</p>
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="isModified()"><!-- --></A><H3>
isModified</H3>
<PRE>
public final boolean <B>isModified</B>()</PRE>
<DL>
<DD><p>Returns whether the document has been modified by the user.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QTextDocument.html#modificationChanged(boolean)"><tt>modificationChanged</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="isRedoAvailable()"><!-- --></A><H3>
isRedoAvailable</H3>
<PRE>
public final boolean <B>isRedoAvailable</B>()</PRE>
<DL>
<DD><p>Returns true if redo is available; otherwise returns false.</p>
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="isUndoAvailable()"><!-- --></A><H3>
isUndoAvailable</H3>
<PRE>
public final boolean <B>isUndoAvailable</B>()</PRE>
<DL>
<DD><p>Returns true if undo is available; otherwise returns false.</p>
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="isUndoRedoEnabled()"><!-- --></A><H3>
isUndoRedoEnabled</H3>
<PRE>
public final boolean <B>isUndoRedoEnabled</B>()</PRE>
<DL>
<DD><p>Returns whether undo/redo are enabled for this document.</p>
<p>This defaults to true. If disabled, the undo stack is cleared and no items will be added to it.</p>
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="markContentsDirty(int, int)"><!-- --></A><H3>
markContentsDirty</H3>
<PRE>
public final void <B>markContentsDirty</B>(int&nbsp;from,
                                    int&nbsp;length)</PRE>
<DL>
<DD><p>Marks the contents specified by the given <tt>from</tt> and <tt>length</tt> as &quot;dirty&quot;, informing the document that it needs to be laid out again.</p>
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="maximumBlockCount()"><!-- --></A><H3>
maximumBlockCount</H3>
<PRE>
public final int <B>maximumBlockCount</B>()</PRE>
<DL>
<DD><p>Returns Specifies the limit for blocks in the document..</p>
<p>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.</p>
<p>A negative or zero value specifies that the document may contain an unlimited amount of blocks.</p>
<p>The default value is 0.</p>
<p>Note that setting this property will apply the limit immediately to the document contents.</p>
<p>Setting this property also disables the undo redo history.</p>
<p>This property is undefined in documents with tables or frames.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QTextDocument.html#setMaximumBlockCount(int)"><tt>setMaximumBlockCount</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="metaInformation(com.trolltech.qt.gui.QTextDocument.MetaInformation)"><!-- --></A><H3>
metaInformation</H3>
<PRE>
public final java.lang.String <B>metaInformation</B>(<A HREF="../../../../com/trolltech/qt/gui/QTextDocument.MetaInformation.html" title="enum in com.trolltech.qt.gui">QTextDocument.MetaInformation</A>&nbsp;info)</PRE>
<DL>
<DD><p>Returns meta information about the document of the type specified by <tt>info</tt>.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QTextDocument.html#setMetaInformation(com.trolltech.qt.gui.QTextDocument.MetaInformation, java.lang.String)"><tt>setMetaInformation</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="object(int)"><!-- --></A><H3>
object</H3>
<PRE>
public final <A HREF="../../../../com/trolltech/qt/gui/QTextObject.html" title="class in com.trolltech.qt.gui">QTextObject</A> <B>object</B>(int&nbsp;objectIndex)</PRE>
<DL>
<DD><p>Returns the text object associated with the given <tt>objectIndex</tt>.</p>
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="objectForFormat(com.trolltech.qt.gui.QTextFormat)"><!-- --></A><H3>
objectForFormat</H3>
<PRE>
public final <A HREF="../../../../com/trolltech/qt/gui/QTextObject.html" title="class in com.trolltech.qt.gui">QTextObject</A> <B>objectForFormat</B>(<A HREF="../../../../com/trolltech/qt/gui/QTextFormat.html" title="class in com.trolltech.qt.gui">QTextFormat</A>&nbsp;arg__1)</PRE>
<DL>
<DD><p>Returns the text object associated with the format <tt>arg__1</tt>.</p>
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="pageCount()"><!-- --></A><H3>
pageCount</H3>
<PRE>
public final int <B>pageCount</B>()</PRE>
<DL>
<DD><p>returns the number of pages in this document.</p>
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="pageSize()"><!-- --></A><H3>
pageSize</H3>
<PRE>
public final <A HREF="../../../../com/trolltech/qt/core/QSizeF.html" title="class in com.trolltech.qt.core">QSizeF</A> <B>pageSize</B>()</PRE>
<DL>
<DD><p>Returns the page size that should be used for laying out the document.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QTextDocument.html#setPageSize(com.trolltech.qt.core.QSizeF)"><tt>setPageSize</tt></a>, 
<a href="QTextDocument.html#modificationChanged(boolean)"><tt>modificationChanged</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="print(com.trolltech.qt.gui.QPrinter)"><!-- --></A><H3>
print</H3>
<PRE>
public final void <B>print</B>(<A HREF="../../../../com/trolltech/qt/gui/QPrinter.html" title="class in com.trolltech.qt.gui">QPrinter</A>&nbsp;printer)</PRE>
<DL>
<DD><p>Prints the document to the given <tt>printer</tt>. The <a href="QPrinter.html"><tt>QPrinter</tt></a> must be set up before being used with this function.</p>
<p>This is only a convenience method to print the whole document to the printer.</p>
<p>If the document is already paginated through a specified height in the <a href="QTextDocument.html#pageSize()"><tt>pageSize</tt></a> property it is printed as-is.</p>
<p>If the document is not paginated, like for example a document used in a <a href="QTextEdit.html"><tt>QTextEdit</tt></a>, then a temporary copy of the document is created and the copy is broken into multiple pages according to the size of the <a href="QPrinter.html"><tt>QPrinter</tt></a>'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.</p>
<p>Note that QPrinter::Selection is not supported as print range with this function since the selection is a property of <a href="QTextCursor.html"><tt>QTextCursor</tt></a>. If you have a <a href="QTextEdit.html"><tt>QTextEdit</tt></a> associated with your <a href="QTextDocument.html#QTextDocument(java.lang.String, com.trolltech.qt.core.QObject)"><tt>QTextDocument</tt></a> then you can use <a href="QTextEdit.html"><tt>QTextEdit</tt></a>'s <a href="QTextDocument.html#print(com.trolltech.qt.gui.QPrinter)"><tt>print</tt></a> function because <a href="QTextEdit.html"><tt>QTextEdit</tt></a> has access to the user's selection.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><tt>QTextEdit::print</tt></DL>
</DD>
</DL>
<HR>

<A NAME="redo()"><!-- --></A><H3>
redo</H3>
<PRE>
public final void <B>redo</B>()</PRE>
<DL>
<DD><p>Redoes the last editing operation on the document if redo is available</tt>.</p>
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="resource(int, com.trolltech.qt.core.QUrl)"><!-- --></A><H3>
resource</H3>
<PRE>
public final java.lang.Object <B>resource</B>(int&nbsp;type,
                                       <A HREF="../../../../com/trolltech/qt/core/QUrl.html" title="class in com.trolltech.qt.core">QUrl</A>&nbsp;name)</PRE>
<DL>
<DD><p>Returns data of the specified <tt>type</tt> from the resource with the given <tt>name</tt>.</p>
<p>This function is called by the rich text engine to request data that isn't directly stored by <a href="QTextDocument.html#QTextDocument(java.lang.String, com.trolltech.qt.core.QObject)"><tt>QTextDocument</tt></a>, but still associated with it. For example, images are referenced indirectly by the name attribute of a <a href="QTextImageFormat.html"><tt>QTextImageFormat</tt></a> object.</p>
<p>Resources are cached internally in the document. If a resource can not be found in the cache, <a href="QTextDocument.html#loadResource(int, com.trolltech.qt.core.QUrl)"><tt>loadResource</tt></a> is called to try to load the resource. <a href="QTextDocument.html#loadResource(int, com.trolltech.qt.core.QUrl)"><tt>loadResource</tt></a> should then use <a href="QTextDocument.html#addResource(int, com.trolltech.qt.core.QUrl, java.lang.Object)"><tt>addResource</tt></a> to add the resource to the cache.</p>
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="rootFrame()"><!-- --></A><H3>
rootFrame</H3>
<PRE>
public final <A HREF="../../../../com/trolltech/qt/gui/QTextFrame.html" title="class in com.trolltech.qt.gui">QTextFrame</A> <B>rootFrame</B>()</PRE>
<DL>
<DD><p>Returns the document's root frame.</p>
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="setDefaultFont(com.trolltech.qt.gui.QFont)"><!-- --></A><H3>
setDefaultFont</H3>
<PRE>
public final void <B>setDefaultFont</B>(<A HREF="../../../../com/trolltech/qt/gui/QFont.html" title="class in com.trolltech.qt.gui">QFont</A>&nbsp;font)</PRE>
<DL>
<DD><p>Sets the default font used to display the document's text to <tt>font</tt>.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QTextDocument.html#defaultFont()"><tt>defaultFont</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="setDefaultStyleSheet(java.lang.String)"><!-- --></A><H3>
setDefaultStyleSheet</H3>
<PRE>
public final void <B>setDefaultStyleSheet</B>(java.lang.String&nbsp;sheet)</PRE>
<DL>
<DD><p>The default style sheet is applied to all newly HTML formatted text that is inserted into the document, for example using <a href="QTextDocument.html#setHtml(java.lang.String)"><tt>setHtml</tt></a> or QTextCursor::insertHtml().</p>
<p>The style sheet needs to be compliant to CSS 2.1 syntax.</p>
<p><b>Note:</b> Changing the default style sheet does not have any effect to the existing content of the document.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QTextDocument.html#defaultStyleSheet()"><tt>defaultStyleSheet</tt></a>, 
<a href="%2E%2E/richtext-html-subset.html">Supported HTML Subset</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="setDefaultTextOption(com.trolltech.qt.gui.QTextOption)"><!-- --></A><H3>
setDefaultTextOption</H3>
<PRE>
public final void <B>setDefaultTextOption</B>(<A HREF="../../../../com/trolltech/qt/gui/QTextOption.html" title="class in com.trolltech.qt.gui">QTextOption</A>&nbsp;option)</PRE>
<DL>
<DD><p>Sets the default text option will be set on all <a href="QTextLayout.html"><tt>QTextLayout</tt></a>s in the document. to <tt>option</tt>.</p>
<p>When <a href="QTextBlock.html"><tt>QTextBlock</tt></a>s are created, the <a href="QTextDocument.html#defaultTextOption()"><tt>defaultTextOption</tt></a> is set on their <a href="QTextLayout.html"><tt>QTextLayout</tt></a>. This allows setting global properties for the document such as the default word wrap mode.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QTextDocument.html#defaultTextOption()"><tt>defaultTextOption</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="setDocumentLayout(com.trolltech.qt.gui.QAbstractTextDocumentLayout)"><!-- --></A><H3>
setDocumentLayout</H3>
<PRE>
public final void <B>setDocumentLayout</B>(<A HREF="../../../../com/trolltech/qt/gui/QAbstractTextDocumentLayout.html" title="class in com.trolltech.qt.gui">QAbstractTextDocumentLayout</A>&nbsp;layout)</PRE>
<DL>
<DD><p>Sets the document to use the given <tt>layout</tt>. The previous layout is deleted.</p>
<p>Note that when setting a new layout for a <a href="QTextEdit.html"><tt>QTextEdit</tt></a> you have to create a new <a href="QTextDocument.html#QTextDocument(java.lang.String, com.trolltech.qt.core.QObject)"><tt>QTextDocument</tt></a> first, set the new layout on it and then set the new document on <a href="QTextEdit.html"><tt>QTextEdit</tt></a>.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QTextDocument.html#documentLayout()"><tt>documentLayout</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="setHtml(java.lang.String)"><!-- --></A><H3>
setHtml</H3>
<PRE>
public final void <B>setHtml</B>(java.lang.String&nbsp;html)</PRE>
<DL>
<DD><p>Replaces the entire contents of the document with the given HTML-formatted text in the <tt>html</tt> string.</p>
<p>The HTML formatting is respected as much as possible; for example, &quot;&lt;b&gt;bold&lt;/b&gt; text&quot; will produce text where the first word has a font weight that gives it a bold appearance: &quot;<b>bold</b> text&quot;.</p>
<p><b>Note:</b> It is the responsibility of the caller to make sure that the text is correctly decoded when a <a href="%2E%2E/porting4.html#qstring"><tt>QString</tt></a> containing HTML is created and passed to <a href="QTextDocument.html#setHtml(java.lang.String)"><tt>setHtml</tt></a>.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QTextDocument.html#setPlainText(java.lang.String)"><tt>setPlainText</tt></a>, 
<a href="%2E%2E/richtext-html-subset.html">Supported HTML Subset</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="setMaximumBlockCount(int)"><!-- --></A><H3>
setMaximumBlockCount</H3>
<PRE>
public final void <B>setMaximumBlockCount</B>(int&nbsp;maximum)</PRE>
<DL>
<DD><p>Sets Specifies the limit for blocks in the document. to <tt>maximum</tt>.</p>
<p>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.</p>
<p>A negative or zero value specifies that the document may contain an unlimited amount of blocks.</p>
<p>The default value is 0.</p>
<p>Note that setting this property will apply the limit immediately to the document contents.</p>
<p>Setting this property also disables the undo redo history.</p>
<p>This property is undefined in documents with tables or frames.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QTextDocument.html#maximumBlockCount()"><tt>maximumBlockCount</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="setMetaInformation(com.trolltech.qt.gui.QTextDocument.MetaInformation, java.lang.String)"><!-- --></A><H3>
setMetaInformation</H3>
<PRE>
public final void <B>setMetaInformation</B>(<A HREF="../../../../com/trolltech/qt/gui/QTextDocument.MetaInformation.html" title="enum in com.trolltech.qt.gui">QTextDocument.MetaInformation</A>&nbsp;info,
                                     java.lang.String&nbsp;arg__2)</PRE>
<DL>
<DD><p>Sets the document's meta information of the type specified by <tt>info</tt> to the given <tt>arg__2</tt>.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QTextDocument.html#metaInformation(com.trolltech.qt.gui.QTextDocument.MetaInformation)"><tt>metaInformation</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="setModified()"><!-- --></A><H3>
setModified</H3>
<PRE>
public final void <B>setModified</B>()</PRE>
<DL>
<DD><p>Equivalent to <a href="QTextDocument.html#setModified(boolean)"><tt>setModified</tt></a>(true).
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="setModified(boolean)"><!-- --></A><H3>
setModified</H3>
<PRE>
public final void <B>setModified</B>(boolean&nbsp;m)</PRE>
<DL>
<DD><p>Sets whether the document has been modified by the user to <tt>m</tt>.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QTextDocument.html#isModified()"><tt>isModified</tt></a>, 
<a href="QTextDocument.html#modificationChanged(boolean)"><tt>modificationChanged</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="setPageSize(com.trolltech.qt.core.QSizeF)"><!-- --></A><H3>
setPageSize</H3>
<PRE>
public final void <B>setPageSize</B>(<A HREF="../../../../com/trolltech/qt/core/QSizeF.html" title="class in com.trolltech.qt.core">QSizeF</A>&nbsp;size)</PRE>
<DL>
<DD><p>Sets the page size that should be used for laying out the document to <tt>size</tt>.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QTextDocument.html#pageSize()"><tt>pageSize</tt></a>, 
<a href="QTextDocument.html#modificationChanged(boolean)"><tt>modificationChanged</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="setPlainText(java.lang.String)"><!-- --></A><H3>
setPlainText</H3>
<PRE>
public final void <B>setPlainText</B>(java.lang.String&nbsp;text)</PRE>
<DL>
<DD><p>Replaces the entire contents of the document with the given plain <tt>text</tt>.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QTextDocument.html#setHtml(java.lang.String)"><tt>setHtml</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="setTextWidth(double)"><!-- --></A><H3>
setTextWidth</H3>
<PRE>
public final void <B>setTextWidth</B>(double&nbsp;width)</PRE>
<DL>
<DD><p>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 <a href="QTextDocument.html#size()"><tt>size</tt></a> and the <a href="QTextDocument.html#idealWidth()"><tt>idealWidth</tt></a> property will reflect that.</p>
<p>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.</p>
<p>The default value is -1.</p>
<p>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 <a href="QTextDocument.html#pageSize()"><tt>pageSize</tt></a> property instead.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QTextDocument.html#textWidth()"><tt>textWidth</tt></a>, 
<a href="QTextDocument.html#size()"><tt>size</tt></a>, 
<a href="QTextDocument.html#idealWidth()"><tt>idealWidth</tt></a>, 
<a href="QTextDocument.html#pageSize()"><tt>pageSize</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="setUndoRedoEnabled(boolean)"><!-- --></A><H3>
setUndoRedoEnabled</H3>
<PRE>
public final void <B>setUndoRedoEnabled</B>(boolean&nbsp;enable)</PRE>
<DL>
<DD><p>Sets whether undo/redo are enabled for this document to <tt>enable</tt>.</p>
<p>This defaults to true. If disabled, the undo stack is cleared and no items will be added to it.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QTextDocument.html#isUndoRedoEnabled()"><tt>isUndoRedoEnabled</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="setUseDesignMetrics(boolean)"><!-- --></A><H3>
setUseDesignMetrics</H3>
<PRE>
public final void <B>setUseDesignMetrics</B>(boolean&nbsp;b)</PRE>
<DL>
<DD>If <tt>b</tt> is true then the layout will use design metrics; otherwise it will
use the metrics of the paint device (which is the default behavior).
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="size()"><!-- --></A><H3>
size</H3>
<PRE>
public final <A HREF="../../../../com/trolltech/qt/core/QSizeF.html" title="class in com.trolltech.qt.core">QSizeF</A> <B>size</B>()</PRE>
<DL>
<DD><p>Returns the actual size of the document. This is equivalent to <a href="QTextDocument.html#documentLayout()"><tt>documentLayout</tt></a>-&gt;documentSize();</p>
<p>The size of the document can be changed either by setting a text width or setting an entire page size.</p>
<p>Note that the width is always &gt;= <a href="QTextDocument.html#pageSize()"><tt>pageSize</tt></a>.width().</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QTextDocument.html#setTextWidth(double)"><tt>setTextWidth</tt></a>, 
<a href="QTextDocument.html#setPageSize(com.trolltech.qt.core.QSizeF)"><tt>setPageSize</tt></a>, 
<a href="QTextDocument.html#idealWidth()"><tt>idealWidth</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="textWidth()"><!-- --></A><H3>
textWidth</H3>
<PRE>
public final double <B>textWidth</B>()</PRE>
<DL>
<DD><p>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 <a href="QTextDocument.html#size()"><tt>size</tt></a> and the <a href="QTextDocument.html#idealWidth()"><tt>idealWidth</tt></a> property will reflect that.</p>
<p>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.</p>
<p>The default value is -1.</p>
<p>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 <a href="QTextDocument.html#pageSize()"><tt>pageSize</tt></a> property instead.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QTextDocument.html#setTextWidth(double)"><tt>setTextWidth</tt></a>, 
<a href="QTextDocument.html#size()"><tt>size</tt></a>, 
<a href="QTextDocument.html#idealWidth()"><tt>idealWidth</tt></a>, 
<a href="QTextDocument.html#pageSize()"><tt>pageSize</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="toHtml()"><!-- --></A><H3>
toHtml</H3>
<PRE>
public final java.lang.String <B>toHtml</B>()</PRE>
<DL>
<DD><p>Equivalent to <a href="QTextDocument.html#toHtml(com.trolltech.qt.core.QByteArray)"><tt>toHtml</tt></a>(QByteArray()).
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="toHtml(com.trolltech.qt.core.QByteArray)"><!-- --></A><H3>
toHtml</H3>
<PRE>
public final java.lang.String <B>toHtml</B>(<A HREF="../../../../com/trolltech/qt/core/QByteArray.html" title="class in com.trolltech.qt.core">QByteArray</A>&nbsp;encoding)</PRE>
<DL>
<DD><p>Returns a string containing an HTML representation of the document.</p>
<p>The <tt>encoding</tt> 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:</p>
<pre>    &lt;html&gt;&lt;head&gt;&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=utf-8&quot;&gt;&lt;/head&gt;&lt;body&gt;...</pre>
<p>If no encoding is specified then no such meta information is generated.</p>
<p>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.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="%2E%2E/richtext-html-subset.html">Supported HTML Subset</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="toPlainText()"><!-- --></A><H3>
toPlainText</H3>
<PRE>
public final java.lang.String <B>toPlainText</B>()</PRE>
<DL>
<DD><p>Returns the plain text contained in the document. If you want formatting information use a <a href="QTextCursor.html"><tt>QTextCursor</tt></a> instead.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QTextDocument.html#toHtml(com.trolltech.qt.core.QByteArray)"><tt>toHtml</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="undo()"><!-- --></A><H3>
undo</H3>
<PRE>
public final void <B>undo</B>()</PRE>
<DL>
<DD>This is an overloaded member function, provided for convenience.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="useDesignMetrics()"><!-- --></A><H3>
useDesignMetrics</H3>
<PRE>
public final boolean <B>useDesignMetrics</B>()</PRE>
<DL>
<DD>Returns true if this QTextDocument uses design metrics.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="clear()"><!-- --></A><H3>
clear</H3>
<PRE>
public void <B>clear</B>()</PRE>
<DL>
<DD><p>Clears the document.</p>
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="createObject(com.trolltech.qt.gui.QTextFormat)"><!-- --></A><H3>
createObject</H3>
<PRE>
protected <A HREF="../../../../com/trolltech/qt/gui/QTextObject.html" title="class in com.trolltech.qt.gui">QTextObject</A> <B>createObject</B>(<A HREF="../../../../com/trolltech/qt/gui/QTextFormat.html" title="class in com.trolltech.qt.gui">QTextFormat</A>&nbsp;f)</PRE>
<DL>
<DD><p>Creates and returns a new document object (a <a href="QTextObject.html"><tt>QTextObject</tt></a>), based on the given <tt>f</tt>.</p>
<p>QTextObjects will always get created through this method, so you must reimplement it if you use custom text objects inside your document.</p>
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="loadResource(int, com.trolltech.qt.core.QUrl)"><!-- --></A><H3>
loadResource</H3>
<PRE>
protected java.lang.Object <B>loadResource</B>(int&nbsp;type,
                                        <A HREF="../../../../com/trolltech/qt/core/QUrl.html" title="class in com.trolltech.qt.core">QUrl</A>&nbsp;name)</PRE>
<DL>
<DD><p>Loads data of the specified <tt>type</tt> from the resource with the given <tt>name</tt>.</p>
<p>This function is called by the rich text engine to request data that isn't directly stored by <a href="QTextDocument.html#QTextDocument(java.lang.String, com.trolltech.qt.core.QObject)"><tt>QTextDocument</tt></a>, but still associated with it. For example, images are referenced indirectly by the name attribute of a <a href="QTextImageFormat.html"><tt>QTextImageFormat</tt></a> object.</p>
<p>When called by Qt, <tt>type</tt> is one of the values of QTextDocument::ResourceType.</p>
<p>If the <a href="QTextDocument.html#QTextDocument(java.lang.String, com.trolltech.qt.core.QObject)"><tt>QTextDocument</tt></a> is a child object of a <a href="QTextEdit.html"><tt>QTextEdit</tt></a>, <a href="QTextBrowser.html"><tt>QTextBrowser</tt></a>, or a <a href="QTextDocument.html#QTextDocument(java.lang.String, com.trolltech.qt.core.QObject)"><tt>QTextDocument</tt></a> itself then the default implementation tries to retrieve the data from the parent.</p>
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="fromNativePointer(com.trolltech.qt.QNativePointer)"><!-- --></A><H3>
fromNativePointer</H3>
<PRE>
public static <A HREF="../../../../com/trolltech/qt/gui/QTextDocument.html" title="class in com.trolltech.qt.gui">QTextDocument</A> <B>fromNativePointer</B>(<A HREF="../../../../com/trolltech/qt/QNativePointer.html" title="class in com.trolltech.qt">QNativePointer</A>&nbsp;nativePointer)</PRE>
<DL>
<DD>This function returns the QTextDocument instance pointed to by nativePointer
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>nativePointer</CODE> - the QNativePointer of which object should be returned.</DL>
</DD>
</DL>
<HR>

<A NAME="redo(com.trolltech.qt.gui.QTextCursor)"><!-- --></A><H3>
redo</H3>
<PRE>
public final void <B>redo</B>(<A HREF="../../../../com/trolltech/qt/gui/QTextCursor.html" title="class in com.trolltech.qt.gui">QTextCursor</A>&nbsp;cursor)</PRE>
<DL>
<DD>Redoes the last editing operation on the document if
QTextDocument.isRedoAvailable() redo is available.
<p>
The provided <tt>cursor</tt> is positioned at the end of the location where
the edition operation was redone.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="undo(com.trolltech.qt.gui.QTextCursor)"><!-- --></A><H3>
undo</H3>
<PRE>
public final void <B>undo</B>(<A HREF="../../../../com/trolltech/qt/gui/QTextCursor.html" title="class in com.trolltech.qt.gui">QTextCursor</A>&nbsp;cursor)</PRE>
<DL>
<DD>Undoes the last editing operation on the document if undo is
available. The provided <tt>cursor</tt> is positioned at the end of the
location where the edition operation was undone.
<p>
See the \l {Overview of Qt's Undo Framework}{Qt Undo Framework}
documentation for details.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<!-- ========= END OF CLASS DATA ========= -->
<HR>


<!-- ======= START OF BOTTOM NAVBAR ====== -->
<A NAME="navbar_bottom"><!-- --></A>
<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_bottom_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
  <TR ALIGN="center" VALIGN="top">
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  </TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>

<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
&nbsp;<A HREF="../../../../com/trolltech/qt/gui/QTextCursor.SelectionType.html" title="enum in com.trolltech.qt.gui"><B>PREV CLASS</B></A>&nbsp;
&nbsp;<A HREF="../../../../com/trolltech/qt/gui/QTextDocument.FindFlag.html" title="enum in com.trolltech.qt.gui"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  <A HREF="../../../../index.html?com/trolltech/qt/gui/QTextDocument.html" target="_top"><B>FRAMES</B></A>  &nbsp;
&nbsp;<A HREF="QTextDocument.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
&nbsp;<SCRIPT type="text/javascript">
  <!--
  if(window==top) {
    document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
  }
  //-->
</SCRIPT>
<NOSCRIPT>
  <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>
</NOSCRIPT>


</FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  SUMMARY:&nbsp;<A HREF="#nested_class_summary">NESTED</A>&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_bottom"></A>
<!-- ======== END OF BOTTOM NAVBAR ======= -->

<HR>

</BODY>
</HTML>