<!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 16:58:32 CEST 2007 --> <TITLE> QAbstractTextDocumentLayout </TITLE> <META NAME="keywords" CONTENT="com.trolltech.qt.gui.QAbstractTextDocumentLayout class"> <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style"> <SCRIPT type="text/javascript"> function windowTitle() { parent.document.title="QAbstractTextDocumentLayout"; } </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> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> </TR> </TABLE> </TD> <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> </EM> </TD> </TR> <TR> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../com/trolltech/qt/gui/QAbstractTableModel.html" title="class in com.trolltech.qt.gui"><B>PREV CLASS</B></A> <A HREF="../../../../com/trolltech/qt/gui/QAbstractTextDocumentLayout_PaintContext.html" title="class 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/QAbstractTextDocumentLayout.html" target="_top"><B>FRAMES</B></A> <A HREF="QAbstractTextDocumentLayout.html" target="_top"><B>NO FRAMES</B></A> <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: <A HREF="#nested_classes_inherited_from_class_com.trolltech.qt.QSignalEmitter">NESTED</A> | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <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 QAbstractTextDocumentLayout</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.QAbstractTextDocumentLayout</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 abstract class <B>QAbstractTextDocumentLayout</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="QAbstractTextDocumentLayout.html#QAbstractTextDocumentLayout(com.trolltech.qt.gui.QTextDocument)"><tt>QAbstractTextDocumentLayout</tt></a> class is an abstract base class used to implement custom layouts for QTextDocuments.</p> <p>The standard layout provided by Qt can handle simple word processing including inline layouts, lists and tables.</p> <p>Some applications (e.g. a word processor or a DTP application) might need more features than the ones provided by Qt's layout engine, in which case you can subclass <a href="QAbstractTextDocumentLayout.html#QAbstractTextDocumentLayout(com.trolltech.qt.gui.QTextDocument)"><tt>QAbstractTextDocumentLayout</tt></a> to provide your own custom layout behavior for your text documents.</p> <P> <P> <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> </TABLE> <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><<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal1.html" title="type parameter in QSignalEmitter.Signal1">A</A>>, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal2.html" title="class in com.trolltech.qt">QSignalEmitter.Signal2</A><<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>>, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal3.html" title="class in com.trolltech.qt">QSignalEmitter.Signal3</A><<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>>, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal4.html" title="class in com.trolltech.qt">QSignalEmitter.Signal4</A><<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>>, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal5.html" title="class in com.trolltech.qt">QSignalEmitter.Signal5</A><<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>>, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal6.html" title="class in com.trolltech.qt">QSignalEmitter.Signal6</A><<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>>, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal7.html" title="class in com.trolltech.qt">QSignalEmitter.Signal7</A><<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>>, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal8.html" title="class in com.trolltech.qt">QSignalEmitter.Signal8</A><<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>>, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal9.html" title="class in com.trolltech.qt">QSignalEmitter.Signal9</A><<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>></CODE></TD> </TR> </TABLE> <!-- =========== 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> <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal1.html" title="class in com.trolltech.qt">QSignalEmitter.Signal1</A><<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/QAbstractTextDocumentLayout.html#documentSizeChanged">documentSizeChanged</A></B></CODE> <BR> This signal is emitted when the size of the document changes.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal1.html" title="class in com.trolltech.qt">QSignalEmitter.Signal1</A><java.lang.Integer></CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QAbstractTextDocumentLayout.html#pageCountChanged">pageCountChanged</A></B></CODE> <BR> This signal is emitted when the number of pages in the layout changes; <tt>newPages</tt> is the updated page count.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal1.html" title="class in com.trolltech.qt">QSignalEmitter.Signal1</A><<A HREF="../../../../com/trolltech/qt/core/QRectF.html" title="class in com.trolltech.qt.core">QRectF</A>></CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QAbstractTextDocumentLayout.html#update">update</A></B></CODE> <BR> This signal is emitted when the rectangle <tt>arg__1</tt> has been updated.</TD> </TR> </TABLE> <!-- ======== 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/QAbstractTextDocumentLayout.html#QAbstractTextDocumentLayout(com.trolltech.qt.gui.QTextDocument)">QAbstractTextDocumentLayout</A></B>(<A HREF="../../../../com/trolltech/qt/gui/QTextDocument.html" title="class in com.trolltech.qt.gui">QTextDocument</A> doc)</CODE> <BR> Creates a new text document layout for the given <tt>doc</tt>.</TD> </TR> </TABLE> <!-- ========== 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> java.lang.String</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QAbstractTextDocumentLayout.html#anchorAt(com.trolltech.qt.core.QPointF)">anchorAt</A></B>(<A HREF="../../../../com/trolltech/qt/core/QPointF.html" title="class in com.trolltech.qt.core">QPointF</A> pos)</CODE> <BR> Returns the reference of the anchor at the given <tt>pos</tt>, or an empty string if no anchor exists at that point.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>abstract <A HREF="../../../../com/trolltech/qt/core/QRectF.html" title="class in com.trolltech.qt.core">QRectF</A></CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QAbstractTextDocumentLayout.html#blockBoundingRect(com.trolltech.qt.gui.QTextBlock)">blockBoundingRect</A></B>(<A HREF="../../../../com/trolltech/qt/gui/QTextBlock.html" title="class in com.trolltech.qt.gui">QTextBlock</A> block)</CODE> <BR> Returns the bounding rectangle of <tt>block</tt>.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> <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/QAbstractTextDocumentLayout.html#document()">document</A></B>()</CODE> <BR> Returns the text document that this layout is operating on.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>protected abstract void</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QAbstractTextDocumentLayout.html#documentChanged(int, int, int)">documentChanged</A></B>(int from, int charsRemoved, int charsAdded)</CODE> <BR> This function is called whenever the contents of the document change.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>abstract <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/QAbstractTextDocumentLayout.html#documentSize()">documentSize</A></B>()</CODE> <BR> Returns the total size of the document.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>abstract void</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QAbstractTextDocumentLayout.html#draw(com.trolltech.qt.gui.QPainter, com.trolltech.qt.gui.QAbstractTextDocumentLayout_PaintContext)">draw</A></B>(<A HREF="../../../../com/trolltech/qt/gui/QPainter.html" title="class in com.trolltech.qt.gui">QPainter</A> painter, <A HREF="../../../../com/trolltech/qt/gui/QAbstractTextDocumentLayout_PaintContext.html" title="class in com.trolltech.qt.gui">QAbstractTextDocumentLayout_PaintContext</A> context)</CODE> <BR> Draws the layout on the given <tt>painter</tt> with the given <tt>context</tt>.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>protected void</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QAbstractTextDocumentLayout.html#drawInlineObject(com.trolltech.qt.gui.QPainter, com.trolltech.qt.core.QRectF, com.trolltech.qt.gui.QTextInlineObject, int, com.trolltech.qt.gui.QTextFormat)">drawInlineObject</A></B>(<A HREF="../../../../com/trolltech/qt/gui/QPainter.html" title="class in com.trolltech.qt.gui">QPainter</A> painter, <A HREF="../../../../com/trolltech/qt/core/QRectF.html" title="class in com.trolltech.qt.core">QRectF</A> rect, <A HREF="../../../../com/trolltech/qt/gui/QTextInlineObject.html" title="class in com.trolltech.qt.gui">QTextInlineObject</A> object, int posInDocument, <A HREF="../../../../com/trolltech/qt/gui/QTextFormat.html" title="class in com.trolltech.qt.gui">QTextFormat</A> format)</CODE> <BR> Called to draw the inline object <tt>object</tt> on the given <tt>painter</tt> within the rectangle specified by <tt>rect</tt> using the text format specified by <tt>format</tt>.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>protected <A HREF="../../../../com/trolltech/qt/gui/QTextCharFormat.html" title="class in com.trolltech.qt.gui">QTextCharFormat</A></CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QAbstractTextDocumentLayout.html#format(int)">format</A></B>(int pos)</CODE> <BR> Returns the character format that is applicable at the given <tt>pos</tt>.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>protected int</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QAbstractTextDocumentLayout.html#formatIndex(int)">formatIndex</A></B>(int pos)</CODE> <BR> 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>abstract <A HREF="../../../../com/trolltech/qt/core/QRectF.html" title="class in com.trolltech.qt.core">QRectF</A></CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QAbstractTextDocumentLayout.html#frameBoundingRect(com.trolltech.qt.gui.QTextFrame)">frameBoundingRect</A></B>(<A HREF="../../../../com/trolltech/qt/gui/QTextFrame.html" title="class in com.trolltech.qt.gui">QTextFrame</A> frame)</CODE> <BR> Returns the bounding rectacle of <tt>frame</tt>.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>static <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/QAbstractTextDocumentLayout.html#fromNativePointer(com.trolltech.qt.QNativePointer)">fromNativePointer</A></B>(<A HREF="../../../../com/trolltech/qt/QNativePointer.html" title="class in com.trolltech.qt">QNativePointer</A> nativePointer)</CODE> <BR> This function returns the QAbstractTextDocumentLayout instance pointed to by nativePointer</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> <A HREF="../../../../com/trolltech/qt/gui/QTextObjectInterface.html" title="class in com.trolltech.qt.gui">QTextObjectInterface</A></CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QAbstractTextDocumentLayout.html#handlerForObject(int)">handlerForObject</A></B>(int objectType)</CODE> <BR> Returns a handler for objects of the given <tt>objectType</tt>.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>abstract int</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QAbstractTextDocumentLayout.html#hitTest(com.trolltech.qt.core.QPointF, com.trolltech.qt.core.Qt.HitTestAccuracy)">hitTest</A></B>(<A HREF="../../../../com/trolltech/qt/core/QPointF.html" title="class in com.trolltech.qt.core">QPointF</A> point, <A HREF="../../../../com/trolltech/qt/core/Qt.HitTestAccuracy.html" title="enum in com.trolltech.qt.core">Qt.HitTestAccuracy</A> accuracy)</CODE> <BR> Returns the cursor postion for the given <tt>point</tt> with the <tt>accuracy</tt> specified.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>abstract int</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QAbstractTextDocumentLayout.html#pageCount()">pageCount</A></B>()</CODE> <BR> Returns the number of pages required by the layout.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> <A HREF="../../../../com/trolltech/qt/gui/QPaintDeviceInterface.html" title="interface in com.trolltech.qt.gui">QPaintDeviceInterface</A></CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QAbstractTextDocumentLayout.html#paintDevice()">paintDevice</A></B>()</CODE> <BR> Returns the paint device used to render the document's layout.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>protected void</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QAbstractTextDocumentLayout.html#positionInlineObject(com.trolltech.qt.gui.QTextInlineObject, int, com.trolltech.qt.gui.QTextFormat)">positionInlineObject</A></B>(<A HREF="../../../../com/trolltech/qt/gui/QTextInlineObject.html" title="class in com.trolltech.qt.gui">QTextInlineObject</A> item, int posInDocument, <A HREF="../../../../com/trolltech/qt/gui/QTextFormat.html" title="class in com.trolltech.qt.gui">QTextFormat</A> format)</CODE> <BR> Lays out the inline object <tt>item</tt> using the given text <tt>format</tt>.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> void</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QAbstractTextDocumentLayout.html#registerHandler(int, com.trolltech.qt.core.QObject)">registerHandler</A></B>(int objectType, <A HREF="../../../../com/trolltech/qt/core/QObject.html" title="class in com.trolltech.qt.core">QObject</A> component)</CODE> <BR> Registers the given <tt>component</tt> as a handler for items of the given <tt>objectType</tt>.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>protected void</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QAbstractTextDocumentLayout.html#resizeInlineObject(com.trolltech.qt.gui.QTextInlineObject, int, com.trolltech.qt.gui.QTextFormat)">resizeInlineObject</A></B>(<A HREF="../../../../com/trolltech/qt/gui/QTextInlineObject.html" title="class in com.trolltech.qt.gui">QTextInlineObject</A> item, int posInDocument, <A HREF="../../../../com/trolltech/qt/gui/QTextFormat.html" title="class in com.trolltech.qt.gui">QTextFormat</A> format)</CODE> <BR> Sets the size of the inline object <tt>item</tt> in accordance with the text <tt>format</tt>.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> void</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QAbstractTextDocumentLayout.html#setPaintDevice(com.trolltech.qt.gui.QPaintDeviceInterface)">setPaintDevice</A></B>(<A HREF="../../../../com/trolltech/qt/gui/QPaintDeviceInterface.html" title="interface in com.trolltech.qt.gui">QPaintDeviceInterface</A> device)</CODE> <BR> Sets the paint device used for rendering the document's layout to the given <tt>device</tt>.</TD> </TR> </TABLE> <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> <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> <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> <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>clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD> </TR> </TABLE> <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> <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="documentSizeChanged"><!-- --></A><H3> documentSizeChanged</H3> <PRE> public final <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal1.html" title="class in com.trolltech.qt">QSignalEmitter.Signal1</A><<A HREF="../../../../com/trolltech/qt/core/QSizeF.html" title="class in com.trolltech.qt.core">QSizeF</A>> <B>documentSizeChanged</B></PRE> <DL> <DD><p>This signal is emitted when the size of the document changes. The new size is specified by <tt>newSize</tt>.</p> <p>This information is useful to widgets that display text documents since it enables them to update their scroll bars correctly.</p> <dl> <dt><b>Compatible Slot Signatures:</b></dt> <dd><tt>void mySlot(com.trolltech.qt.core.QSizeF newSize)</tt></dd> <dd><tt>void mySlot()</tt></dd> </dl> <dl> <dt><b>See Also:</b></dt> <dd><a href="QAbstractTextDocumentLayout.html#documentSize()"><tt>documentSize</tt></a></dd> </dl> <P> <DL> </DL> </DL> <HR> <A NAME="pageCountChanged"><!-- --></A><H3> pageCountChanged</H3> <PRE> public final <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal1.html" title="class in com.trolltech.qt">QSignalEmitter.Signal1</A><java.lang.Integer> <B>pageCountChanged</B></PRE> <DL> <DD><p>This signal is emitted when the number of pages in the layout changes; <tt>newPages</tt> is the updated page count.</p> <p>Changes to the page count are due to the changes to the layout or the document content itself.</p> <dl> <dt><b>Compatible Slot Signatures:</b></dt> <dd><tt>void mySlot(int newPages)</tt></dd> <dd><tt>void mySlot()</tt></dd> </dl> <dl> <dt><b>See Also:</b></dt> <dd><a href="QAbstractTextDocumentLayout.html#pageCount()"><tt>pageCount</tt></a></dd> </dl> <P> <DL> </DL> </DL> <HR> <A NAME="update"><!-- --></A><H3> update</H3> <PRE> public final <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal1.html" title="class in com.trolltech.qt">QSignalEmitter.Signal1</A><<A HREF="../../../../com/trolltech/qt/core/QRectF.html" title="class in com.trolltech.qt.core">QRectF</A>> <B>update</B></PRE> <DL> <DD><p>This signal is emitted when the rectangle <tt>arg__1</tt> has been updated.</p> <dl> <dt><b>Compatible Slot Signatures:</b></dt> <dd><tt>void mySlot(com.trolltech.qt.core.QRectF arg__1)</tt></dd> <dd><tt>void mySlot()</tt></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="QAbstractTextDocumentLayout(com.trolltech.qt.gui.QTextDocument)"><!-- --></A><H3> QAbstractTextDocumentLayout</H3> <PRE> public <B>QAbstractTextDocumentLayout</B>(<A HREF="../../../../com/trolltech/qt/gui/QTextDocument.html" title="class in com.trolltech.qt.gui">QTextDocument</A> doc)</PRE> <DL> <DD><p>Creates a new text document layout for the given <tt>doc</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="anchorAt(com.trolltech.qt.core.QPointF)"><!-- --></A><H3> anchorAt</H3> <PRE> public final java.lang.String <B>anchorAt</B>(<A HREF="../../../../com/trolltech/qt/core/QPointF.html" title="class in com.trolltech.qt.core">QPointF</A> pos)</PRE> <DL> <DD><p>Returns the reference of the anchor at the given <tt>pos</tt>, or an empty string if no anchor exists at that point.</p> <P> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="document()"><!-- --></A><H3> document</H3> <PRE> public final <A HREF="../../../../com/trolltech/qt/gui/QTextDocument.html" title="class in com.trolltech.qt.gui">QTextDocument</A> <B>document</B>()</PRE> <DL> <DD><p>Returns the text document that this layout is operating on.</p> <P> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="format(int)"><!-- --></A><H3> format</H3> <PRE> protected final <A HREF="../../../../com/trolltech/qt/gui/QTextCharFormat.html" title="class in com.trolltech.qt.gui">QTextCharFormat</A> <B>format</B>(int pos)</PRE> <DL> <DD><p>Returns the character format that is applicable at the given <tt>pos</tt>.</p> <P> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="formatIndex(int)"><!-- --></A><H3> formatIndex</H3> <PRE> protected final int <B>formatIndex</B>(int 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="handlerForObject(int)"><!-- --></A><H3> handlerForObject</H3> <PRE> public final <A HREF="../../../../com/trolltech/qt/gui/QTextObjectInterface.html" title="class in com.trolltech.qt.gui">QTextObjectInterface</A> <B>handlerForObject</B>(int objectType)</PRE> <DL> <DD><p>Returns a handler for objects of the given <tt>objectType</tt>.</p> <P> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="paintDevice()"><!-- --></A><H3> paintDevice</H3> <PRE> public final <A HREF="../../../../com/trolltech/qt/gui/QPaintDeviceInterface.html" title="interface in com.trolltech.qt.gui">QPaintDeviceInterface</A> <B>paintDevice</B>()</PRE> <DL> <DD><p>Returns the paint device used to render the document's layout.</p> <P> <DD><DL> <DT><B>See Also:</B><DD><a href="QAbstractTextDocumentLayout.html#setPaintDevice(com.trolltech.qt.gui.QPaintDeviceInterface)"><tt>setPaintDevice</tt></a></DL> </DD> </DL> <HR> <A NAME="registerHandler(int, com.trolltech.qt.core.QObject)"><!-- --></A><H3> registerHandler</H3> <PRE> public final void <B>registerHandler</B>(int objectType, <A HREF="../../../../com/trolltech/qt/core/QObject.html" title="class in com.trolltech.qt.core">QObject</A> component)</PRE> <DL> <DD><p>Registers the given <tt>component</tt> as a handler for items of the given <tt>objectType</tt>.</p> <P> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="setPaintDevice(com.trolltech.qt.gui.QPaintDeviceInterface)"><!-- --></A><H3> setPaintDevice</H3> <PRE> public final void <B>setPaintDevice</B>(<A HREF="../../../../com/trolltech/qt/gui/QPaintDeviceInterface.html" title="interface in com.trolltech.qt.gui">QPaintDeviceInterface</A> device)</PRE> <DL> <DD><p>Sets the paint device used for rendering the document's layout to the given <tt>device</tt>.</p> <P> <DD><DL> <DT><B>See Also:</B><DD><a href="QAbstractTextDocumentLayout.html#paintDevice()"><tt>paintDevice</tt></a></DL> </DD> </DL> <HR> <A NAME="blockBoundingRect(com.trolltech.qt.gui.QTextBlock)"><!-- --></A><H3> blockBoundingRect</H3> <PRE> public abstract <A HREF="../../../../com/trolltech/qt/core/QRectF.html" title="class in com.trolltech.qt.core">QRectF</A> <B>blockBoundingRect</B>(<A HREF="../../../../com/trolltech/qt/gui/QTextBlock.html" title="class in com.trolltech.qt.gui">QTextBlock</A> block)</PRE> <DL> <DD><p>Returns the bounding rectangle of <tt>block</tt>.</p> <P> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="documentChanged(int, int, int)"><!-- --></A><H3> documentChanged</H3> <PRE> protected abstract void <B>documentChanged</B>(int from, int charsRemoved, int charsAdded)</PRE> <DL> <DD><p>This function is called whenever the contents of the document change. A change occurs when text is inserted, removed, or a combination of the two types of operation. The change is specified by <tt>from</tt>, <tt>charsRemoved</tt>, and <tt>charsAdded</tt> corresponding to the starting character position of the change, the number of character removed from the document, and the number of characters added.</p> <p>For example, when inserting the text "Hello" into an empty document, <tt>charsRemoved</tt> would be 0 and <tt>charsAdded</tt> would be 5 (the length of the string).</p> <p>Replacing text is the combination of removal and insertion. For example, if the text "Hello" gets replaced by "Hi", <tt>charsRemoved</tt> would be 5 and <tt>charsAdded</tt> would be 2.</p> <P> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="documentSize()"><!-- --></A><H3> documentSize</H3> <PRE> public abstract <A HREF="../../../../com/trolltech/qt/core/QSizeF.html" title="class in com.trolltech.qt.core">QSizeF</A> <B>documentSize</B>()</PRE> <DL> <DD><p>Returns the total size of the document. This is useful to display widgets since they can use to information to update their scroll bars correctly</p> <P> <DD><DL> <DT><B>See Also:</B><DD><a href="QAbstractTextDocumentLayout.html#documentSizeChanged(com.trolltech.qt.core.QSizeF)"><tt>documentSizeChanged</tt></a>, <tt>QTextDocument::pageSize</tt></DL> </DD> </DL> <HR> <A NAME="draw(com.trolltech.qt.gui.QPainter, com.trolltech.qt.gui.QAbstractTextDocumentLayout_PaintContext)"><!-- --></A><H3> draw</H3> <PRE> public abstract void <B>draw</B>(<A HREF="../../../../com/trolltech/qt/gui/QPainter.html" title="class in com.trolltech.qt.gui">QPainter</A> painter, <A HREF="../../../../com/trolltech/qt/gui/QAbstractTextDocumentLayout_PaintContext.html" title="class in com.trolltech.qt.gui">QAbstractTextDocumentLayout_PaintContext</A> context)</PRE> <DL> <DD><p>Draws the layout on the given <tt>painter</tt> with the given <tt>context</tt>.</p> <P> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="drawInlineObject(com.trolltech.qt.gui.QPainter, com.trolltech.qt.core.QRectF, com.trolltech.qt.gui.QTextInlineObject, int, com.trolltech.qt.gui.QTextFormat)"><!-- --></A><H3> drawInlineObject</H3> <PRE> protected void <B>drawInlineObject</B>(<A HREF="../../../../com/trolltech/qt/gui/QPainter.html" title="class in com.trolltech.qt.gui">QPainter</A> painter, <A HREF="../../../../com/trolltech/qt/core/QRectF.html" title="class in com.trolltech.qt.core">QRectF</A> rect, <A HREF="../../../../com/trolltech/qt/gui/QTextInlineObject.html" title="class in com.trolltech.qt.gui">QTextInlineObject</A> object, int posInDocument, <A HREF="../../../../com/trolltech/qt/gui/QTextFormat.html" title="class in com.trolltech.qt.gui">QTextFormat</A> format)</PRE> <DL> <DD><p>Called to draw the inline object <tt>object</tt> on the given <tt>painter</tt> within the rectangle specified by <tt>rect</tt> using the text format specified by <tt>format</tt>. <tt>posInDocument</tt> specifies the position of the object within the document.</p> <P> <DD><DL> <DT><B>See Also:</B><DD><a href="QAbstractTextDocumentLayout.html#draw(com.trolltech.qt.gui.QPainter, com.trolltech.qt.gui.QAbstractTextDocumentLayout_PaintContext)"><tt>draw</tt></a></DL> </DD> </DL> <HR> <A NAME="frameBoundingRect(com.trolltech.qt.gui.QTextFrame)"><!-- --></A><H3> frameBoundingRect</H3> <PRE> public abstract <A HREF="../../../../com/trolltech/qt/core/QRectF.html" title="class in com.trolltech.qt.core">QRectF</A> <B>frameBoundingRect</B>(<A HREF="../../../../com/trolltech/qt/gui/QTextFrame.html" title="class in com.trolltech.qt.gui">QTextFrame</A> frame)</PRE> <DL> <DD><p>Returns the bounding rectacle of <tt>frame</tt>. Returns the bounding rectangle of <tt>frame</tt>.</p> <P> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="hitTest(com.trolltech.qt.core.QPointF, com.trolltech.qt.core.Qt.HitTestAccuracy)"><!-- --></A><H3> hitTest</H3> <PRE> public abstract int <B>hitTest</B>(<A HREF="../../../../com/trolltech/qt/core/QPointF.html" title="class in com.trolltech.qt.core">QPointF</A> point, <A HREF="../../../../com/trolltech/qt/core/Qt.HitTestAccuracy.html" title="enum in com.trolltech.qt.core">Qt.HitTestAccuracy</A> accuracy)</PRE> <DL> <DD><p>Returns the cursor postion for the given <tt>point</tt> with the <tt>accuracy</tt> specified. Returns -1 to indicate failure if no valid cursor position was found.</p> <P> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="pageCount()"><!-- --></A><H3> pageCount</H3> <PRE> public abstract int <B>pageCount</B>()</PRE> <DL> <DD><p>Returns the number of pages required by the layout.</p> <P> <DD><DL> <DT><B>See Also:</B><DD><a href="QAbstractTextDocumentLayout.html#pageCountChanged(int)"><tt>pageCountChanged</tt></a></DL> </DD> </DL> <HR> <A NAME="positionInlineObject(com.trolltech.qt.gui.QTextInlineObject, int, com.trolltech.qt.gui.QTextFormat)"><!-- --></A><H3> positionInlineObject</H3> <PRE> protected void <B>positionInlineObject</B>(<A HREF="../../../../com/trolltech/qt/gui/QTextInlineObject.html" title="class in com.trolltech.qt.gui">QTextInlineObject</A> item, int posInDocument, <A HREF="../../../../com/trolltech/qt/gui/QTextFormat.html" title="class in com.trolltech.qt.gui">QTextFormat</A> format)</PRE> <DL> <DD><p>Lays out the inline object <tt>item</tt> using the given text <tt>format</tt>. The base class implementation does nothing. <tt>posInDocument</tt> specifies the position of the object within the document.</p> <P> <DD><DL> <DT><B>See Also:</B><DD><a href="QAbstractTextDocumentLayout.html#drawInlineObject(com.trolltech.qt.gui.QPainter, com.trolltech.qt.core.QRectF, com.trolltech.qt.gui.QTextInlineObject, int, com.trolltech.qt.gui.QTextFormat)"><tt>drawInlineObject</tt></a></DL> </DD> </DL> <HR> <A NAME="resizeInlineObject(com.trolltech.qt.gui.QTextInlineObject, int, com.trolltech.qt.gui.QTextFormat)"><!-- --></A><H3> resizeInlineObject</H3> <PRE> protected void <B>resizeInlineObject</B>(<A HREF="../../../../com/trolltech/qt/gui/QTextInlineObject.html" title="class in com.trolltech.qt.gui">QTextInlineObject</A> item, int posInDocument, <A HREF="../../../../com/trolltech/qt/gui/QTextFormat.html" title="class in com.trolltech.qt.gui">QTextFormat</A> format)</PRE> <DL> <DD><p>Sets the size of the inline object <tt>item</tt> in accordance with the text <tt>format</tt>. <tt>posInDocument</tt> specifies the position of the object within the document.</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/QAbstractTextDocumentLayout.html" title="class in com.trolltech.qt.gui">QAbstractTextDocumentLayout</A> <B>fromNativePointer</B>(<A HREF="../../../../com/trolltech/qt/QNativePointer.html" title="class in com.trolltech.qt">QNativePointer</A> nativePointer)</PRE> <DL> <DD>This function returns the QAbstractTextDocumentLayout 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> <!-- ========= 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> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> </TR> </TABLE> </TD> <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> </EM> </TD> </TR> <TR> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../com/trolltech/qt/gui/QAbstractTableModel.html" title="class in com.trolltech.qt.gui"><B>PREV CLASS</B></A> <A HREF="../../../../com/trolltech/qt/gui/QAbstractTextDocumentLayout_PaintContext.html" title="class 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/QAbstractTextDocumentLayout.html" target="_top"><B>FRAMES</B></A> <A HREF="QAbstractTextDocumentLayout.html" target="_top"><B>NO FRAMES</B></A> <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: <A HREF="#nested_classes_inherited_from_class_com.trolltech.qt.QSignalEmitter">NESTED</A> | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> </TR> </TABLE> <A NAME="skip-navbar_bottom"></A> <!-- ======== END OF BOTTOM NAVBAR ======= --> <HR> </BODY> </HTML>