<!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:36 CEST 2007 --> <TITLE> QTextTable </TITLE> <META NAME="keywords" CONTENT="com.trolltech.qt.gui.QTextTable class"> <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style"> <SCRIPT type="text/javascript"> function windowTitle() { parent.document.title="QTextTable"; } </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/QTextOption.WrapMode.html" title="enum in com.trolltech.qt.gui"><B>PREV CLASS</B></A> <A HREF="../../../../com/trolltech/qt/gui/QTextTableCell.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/QTextTable.html" target="_top"><B>FRAMES</B></A> <A HREF="QTextTable.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> | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> DETAIL: FIELD | <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 QTextTable</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 "><A HREF="../../../../com/trolltech/qt/gui/QTextObject.html" title="class in com.trolltech.qt.gui">com.trolltech.qt.gui.QTextObject</A> <IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><A HREF="../../../../com/trolltech/qt/gui/QTextFrame.html" title="class in com.trolltech.qt.gui">com.trolltech.qt.gui.QTextFrame</A> <IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><B>com.trolltech.qt.gui.QTextTable</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>QTextTable</B><DT>extends <A HREF="../../../../com/trolltech/qt/gui/QTextFrame.html" title="class in com.trolltech.qt.gui">QTextFrame</A></DL> </PRE> <P> <p>The <a href="QTextTable.html#QTextTable(com.trolltech.qt.gui.QTextDocument)"><tt>QTextTable</tt></a> class represents a table in a <a href="QTextDocument.html"><tt>QTextDocument</tt></a>.</p> <p>A table is a group of cells ordered into rows and columns. Each table contains at least one row and one column. Each cell contains a block, and is surrounded by a frame.</p> <p>Tables are usually created and inserted into a document with the QTextCursor::insertTable() function. For example, we can insert a table with three rows and two columns at the current cursor position in an editor using the following lines of code:</p> <pre> QTextCursor cursor(editor->textCursor()); cursor.movePosition(QTextCursor::Start); QTextTable *table = cursor.insertTable(rows, columns, tableFormat);</pre> <p>The table format is either defined when the table is created or changed later with <a href="QTextTable.html#setFormat(com.trolltech.qt.gui.QTextTableFormat)"><tt>setFormat</tt></a>.</p> <p>The table currently being edited by the cursor is found with QTextCursor::currentTable(). This allows its format or dimensions to be changed after it has been inserted into a document.</p> <p>A table's size can be changed with <a href="QTextTable.html#resize(int, int)"><tt>resize</tt></a>, or by using <a href="QTextTable.html#insertRows(int, int)"><tt>insertRows</tt></a>, <a href="QTextTable.html#insertColumns(int, int)"><tt>insertColumns</tt></a>, <a href="QTextTable.html#removeRows(int, int)"><tt>removeRows</tt></a>, or <a href="QTextTable.html#removeColumns(int, int)"><tt>removeColumns</tt></a>. Use <a href="QTextTable.html#cellAt(int)"><tt>cellAt</tt></a> to retrieve table cells.</p> <p>The starting and ending positions of table rows can be found by moving a cursor within a table, and using the <a href="QTextTable.html#rowStart(com.trolltech.qt.gui.QTextCursor)"><tt>rowStart</tt></a> and <a href="QTextTable.html#rowEnd(com.trolltech.qt.gui.QTextCursor)"><tt>rowEnd</tt></a> functions to obtain cursors at the start and end of each row.</p> <p>Rows and columns within a <a href="QTextTable.html#QTextTable(com.trolltech.qt.gui.QTextDocument)"><tt>QTextTable</tt></a> can be merged and split using the <a href="QTextTable.html#mergeCells(int, int, int, int)"><tt>mergeCells</tt></a> and <a href="QTextTable.html#splitCell(int, int, int, int)"><tt>splitCell</tt></a> functions. However, only cells that span multiple rows or columns can be split. (Merging or splitting does not increase or decrease the number of rows and columns.)</p> <p><table width="80%" align="center" cellpadding="2" cellspacing="1" border="0"> <tr valign="top" class="odd"><td><img src="%2E%2E/images/texttable-split.png" alt="Original Table" /></td><td>Suppose we have a 2x6 table of names and addresses. To merge both columns in the first row we invoke <a href="QTextTable.html#mergeCells(int, int, int, int)"><tt>mergeCells</tt></a> with <tt>row</tt> = 0, <tt>column</tt> = 0, <tt>numRows</tt> = 1 and <tt>numColumns</tt> = 2.<pre> table->mergeCells(0, 0, 1, 2);</pre> </td></tr> <tr valign="top" class="even"><td><img src="%2E%2E/images/texttable-merge.png" /></td><td>This gives us the following table. To split the first row of the table back into two cells, we invoke the <a href="QTextTable.html#splitCell(int, int, int, int)"><tt>splitCell</tt></a> function with <tt>numRows</tt> and <tt>numCols</tt> = 1.<pre> table->splitCell(0, 0, 1, 1);</pre> </td></tr> <tr valign="top" class="odd"><td><img src="%2E%2E/images/texttable-split.png" alt="Split Table" /></td><td>This results in the original table.</td></tr> </table></p> <P> <P> <DL> <DT><B>See Also:</B><DD><a href="QTextTableFormat.html"><tt>QTextTableFormat</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> </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> <!-- ======== 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/QTextTable.html#QTextTable(com.trolltech.qt.gui.QTextDocument)">QTextTable</A></B>(<A HREF="../../../../com/trolltech/qt/gui/QTextDocument.html" title="class in com.trolltech.qt.gui">QTextDocument</A> doc)</CODE> <BR> This method is used internally by Qt Jambi.</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> <A HREF="../../../../com/trolltech/qt/gui/QTextTableCell.html" title="class in com.trolltech.qt.gui">QTextTableCell</A></CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QTextTable.html#cellAt(int)">cellAt</A></B>(int position)</CODE> <BR> Returns the table cell that contains the character at the given <tt>position</tt> in the document.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> <A HREF="../../../../com/trolltech/qt/gui/QTextTableCell.html" title="class in com.trolltech.qt.gui">QTextTableCell</A></CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QTextTable.html#cellAt(int, int)">cellAt</A></B>(int row, int col)</CODE> <BR> Returns the table cell at the given <tt>row</tt> and <tt>col</tt> in the table.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> <A HREF="../../../../com/trolltech/qt/gui/QTextTableCell.html" title="class in com.trolltech.qt.gui">QTextTableCell</A></CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QTextTable.html#cellAt(com.trolltech.qt.gui.QTextCursor)">cellAt</A></B>(<A HREF="../../../../com/trolltech/qt/gui/QTextCursor.html" title="class in com.trolltech.qt.gui">QTextCursor</A> c)</CODE> <BR> Returns the table cell containing the given <tt>c</tt>.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> int</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QTextTable.html#columns()">columns</A></B>()</CODE> <BR> Returns the number of columns in the table.</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/QTextTable.html" title="class in com.trolltech.qt.gui">QTextTable</A></CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QTextTable.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 QTextTable instance pointed to by nativePointer</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/QTextTable.html#insertColumns(int, int)">insertColumns</A></B>(int pos, int num)</CODE> <BR> Inserts a number of <tt>num</tt> before the column with the specified <tt>pos</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/QTextTable.html#insertRows(int, int)">insertRows</A></B>(int pos, int num)</CODE> <BR> Inserts a number of <tt>num</tt> before the row with the specified <tt>pos</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/QTextTable.html#mergeCells(int, int, int, int)">mergeCells</A></B>(int row, int col, int numRows, int numCols)</CODE> <BR> Merges the cell at the specified <tt>row</tt> and <tt>col</tt> with the adjacent cells into one cell.</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/QTextTable.html#mergeCells(com.trolltech.qt.gui.QTextCursor)">mergeCells</A></B>(<A HREF="../../../../com/trolltech/qt/gui/QTextCursor.html" title="class in com.trolltech.qt.gui">QTextCursor</A> cursor)</CODE> <BR> Merges the cells selected by the provided <tt>cursor</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/QTextTable.html#removeColumns(int, int)">removeColumns</A></B>(int pos, int num)</CODE> <BR> Removes a number of <tt>num</tt> starting with the column at the specified <tt>pos</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/QTextTable.html#removeRows(int, int)">removeRows</A></B>(int pos, int num)</CODE> <BR> Removes a number of <tt>num</tt> starting with the row at the specified <tt>pos</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/QTextTable.html#resize(int, int)">resize</A></B>(int rows, int cols)</CODE> <BR> Resizes the table to contain the required number of <tt>rows</tt> and <tt>cols</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/QTextCursor.html" title="class in com.trolltech.qt.gui">QTextCursor</A></CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QTextTable.html#rowEnd(com.trolltech.qt.gui.QTextCursor)">rowEnd</A></B>(<A HREF="../../../../com/trolltech/qt/gui/QTextCursor.html" title="class in com.trolltech.qt.gui">QTextCursor</A> c)</CODE> <BR> Returns a cursor pointing to the end of the row that contains the given <tt>c</tt>.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> int</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QTextTable.html#rows()">rows</A></B>()</CODE> <BR> Returns the number of rows in the table.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> <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/QTextTable.html#rowStart(com.trolltech.qt.gui.QTextCursor)">rowStart</A></B>(<A HREF="../../../../com/trolltech/qt/gui/QTextCursor.html" title="class in com.trolltech.qt.gui">QTextCursor</A> c)</CODE> <BR> Returns a cursor pointing to the start of the row that contains the given <tt>c</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/QTextTable.html#setFormat(com.trolltech.qt.gui.QTextTableFormat)">setFormat</A></B>(<A HREF="../../../../com/trolltech/qt/gui/QTextTableFormat.html" title="class in com.trolltech.qt.gui">QTextTableFormat</A> format)</CODE> <BR> Sets the table's <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/QTextTable.html#splitCell(int, int, int, int)">splitCell</A></B>(int row, int col, int numRows, int numCols)</CODE> <BR> Splits the specified cell at <tt>row</tt> and <tt>col</tt> into an array of multiple cells with dimensions specified by <tt>numRows</tt> and <tt>numCols</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/QTextTableFormat.html" title="class in com.trolltech.qt.gui">QTextTableFormat</A></CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QTextTable.html#tableFormat()">tableFormat</A></B>()</CODE> <BR> Returns the table's format.</TD> </TR> </TABLE> <A NAME="methods_inherited_from_class_com.trolltech.qt.gui.QTextFrame"><!-- --></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.gui.<A HREF="../../../../com/trolltech/qt/gui/QTextFrame.html" title="class in com.trolltech.qt.gui">QTextFrame</A></B></TH> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><CODE><A HREF="../../../../com/trolltech/qt/gui/QTextFrame.html#begin()">begin</A>, <A HREF="../../../../com/trolltech/qt/gui/QTextFrame.html#childFrames()">childFrames</A>, <A HREF="../../../../com/trolltech/qt/gui/QTextFrame.html#end()">end</A>, <A HREF="../../../../com/trolltech/qt/gui/QTextFrame.html#firstCursorPosition()">firstCursorPosition</A>, <A HREF="../../../../com/trolltech/qt/gui/QTextFrame.html#firstPosition()">firstPosition</A>, <A HREF="../../../../com/trolltech/qt/gui/QTextFrame.html#frameFormat()">frameFormat</A>, <A HREF="../../../../com/trolltech/qt/gui/QTextFrame.html#lastCursorPosition()">lastCursorPosition</A>, <A HREF="../../../../com/trolltech/qt/gui/QTextFrame.html#lastPosition()">lastPosition</A>, <A HREF="../../../../com/trolltech/qt/gui/QTextFrame.html#parentFrame()">parentFrame</A>, <A HREF="../../../../com/trolltech/qt/gui/QTextFrame.html#setFrameFormat(com.trolltech.qt.gui.QTextFrameFormat)">setFrameFormat</A></CODE></TD> </TR> </TABLE> <A NAME="methods_inherited_from_class_com.trolltech.qt.gui.QTextObject"><!-- --></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.gui.<A HREF="../../../../com/trolltech/qt/gui/QTextObject.html" title="class in com.trolltech.qt.gui">QTextObject</A></B></TH> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><CODE><A HREF="../../../../com/trolltech/qt/gui/QTextObject.html#document()">document</A>, <A HREF="../../../../com/trolltech/qt/gui/QTextObject.html#format()">format</A>, <A HREF="../../../../com/trolltech/qt/gui/QTextObject.html#formatIndex()">formatIndex</A>, <A HREF="../../../../com/trolltech/qt/gui/QTextObject.html#objectIndex()">objectIndex</A>, <A HREF="../../../../com/trolltech/qt/gui/QTextObject.html#setFormat(com.trolltech.qt.gui.QTextFormat)">setFormat</A></CODE></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> <!-- ========= 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="QTextTable(com.trolltech.qt.gui.QTextDocument)"><!-- --></A><H3> QTextTable</H3> <PRE> public <B>QTextTable</B>(<A HREF="../../../../com/trolltech/qt/gui/QTextDocument.html" title="class in com.trolltech.qt.gui">QTextDocument</A> doc)</PRE> <DL> <DD><p>This method is used internally by Qt Jambi. Do not use it in your applications.</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="cellAt(int)"><!-- --></A><H3> cellAt</H3> <PRE> public final <A HREF="../../../../com/trolltech/qt/gui/QTextTableCell.html" title="class in com.trolltech.qt.gui">QTextTableCell</A> <B>cellAt</B>(int position)</PRE> <DL> <DD><p>Returns the table cell that contains the character at the given <tt>position</tt> in the document.</p> <P> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="cellAt(int, int)"><!-- --></A><H3> cellAt</H3> <PRE> public final <A HREF="../../../../com/trolltech/qt/gui/QTextTableCell.html" title="class in com.trolltech.qt.gui">QTextTableCell</A> <B>cellAt</B>(int row, int col)</PRE> <DL> <DD><p>Returns the table cell at the given <tt>row</tt> and <tt>col</tt> in the table.</p> <P> <DD><DL> <DT><B>See Also:</B><DD><a href="QTextTable.html#columns()"><tt>columns</tt></a>, <a href="QTextTable.html#rows()"><tt>rows</tt></a></DL> </DD> </DL> <HR> <A NAME="cellAt(com.trolltech.qt.gui.QTextCursor)"><!-- --></A><H3> cellAt</H3> <PRE> public final <A HREF="../../../../com/trolltech/qt/gui/QTextTableCell.html" title="class in com.trolltech.qt.gui">QTextTableCell</A> <B>cellAt</B>(<A HREF="../../../../com/trolltech/qt/gui/QTextCursor.html" title="class in com.trolltech.qt.gui">QTextCursor</A> c)</PRE> <DL> <DD><p>Returns the table cell containing the given <tt>c</tt>.</p> <P> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="columns()"><!-- --></A><H3> columns</H3> <PRE> public final int <B>columns</B>()</PRE> <DL> <DD><p>Returns the number of columns in the table.</p> <P> <DD><DL> <DT><B>See Also:</B><DD><a href="QTextTable.html#rows()"><tt>rows</tt></a></DL> </DD> </DL> <HR> <A NAME="tableFormat()"><!-- --></A><H3> tableFormat</H3> <PRE> public final <A HREF="../../../../com/trolltech/qt/gui/QTextTableFormat.html" title="class in com.trolltech.qt.gui">QTextTableFormat</A> <B>tableFormat</B>()</PRE> <DL> <DD><p>Returns the table's format.</p> <P> <DD><DL> <DT><B>See Also:</B><DD><a href="QTextTable.html#setFormat(com.trolltech.qt.gui.QTextTableFormat)"><tt>setFormat</tt></a></DL> </DD> </DL> <HR> <A NAME="insertColumns(int, int)"><!-- --></A><H3> insertColumns</H3> <PRE> public final void <B>insertColumns</B>(int pos, int num)</PRE> <DL> <DD><p>Inserts a number of <tt>num</tt> before the column with the specified <tt>pos</tt>.</p> <P> <DD><DL> <DT><B>See Also:</B><DD><a href="QTextTable.html#insertRows(int, int)"><tt>insertRows</tt></a>, <a href="QTextTable.html#resize(int, int)"><tt>resize</tt></a>, <a href="QTextTable.html#removeRows(int, int)"><tt>removeRows</tt></a>, <a href="QTextTable.html#removeColumns(int, int)"><tt>removeColumns</tt></a></DL> </DD> </DL> <HR> <A NAME="insertRows(int, int)"><!-- --></A><H3> insertRows</H3> <PRE> public final void <B>insertRows</B>(int pos, int num)</PRE> <DL> <DD><p>Inserts a number of <tt>num</tt> before the row with the specified <tt>pos</tt>.</p> <P> <DD><DL> <DT><B>See Also:</B><DD><a href="QTextTable.html#resize(int, int)"><tt>resize</tt></a>, <a href="QTextTable.html#insertColumns(int, int)"><tt>insertColumns</tt></a>, <a href="QTextTable.html#removeRows(int, int)"><tt>removeRows</tt></a>, <a href="QTextTable.html#removeColumns(int, int)"><tt>removeColumns</tt></a></DL> </DD> </DL> <HR> <A NAME="mergeCells(com.trolltech.qt.gui.QTextCursor)"><!-- --></A><H3> mergeCells</H3> <PRE> public final void <B>mergeCells</B>(<A HREF="../../../../com/trolltech/qt/gui/QTextCursor.html" title="class in com.trolltech.qt.gui">QTextCursor</A> cursor)</PRE> <DL> <DD><p>Merges the cells selected by the provided <tt>cursor</tt>.</p> <P> <DD><DL> <DT><B>See Also:</B><DD><a href="QTextTable.html#splitCell(int, int, int, int)"><tt>splitCell</tt></a></DL> </DD> </DL> <HR> <A NAME="mergeCells(int, int, int, int)"><!-- --></A><H3> mergeCells</H3> <PRE> public final void <B>mergeCells</B>(int row, int col, int numRows, int numCols)</PRE> <DL> <DD><p>Merges the cell at the specified <tt>row</tt> and <tt>col</tt> with the adjacent cells into one cell. The new cell will span <tt>numRows</tt> rows and <tt>numCols</tt> columns. If <tt>numRows</tt> or <tt>numCols</tt> is less than the current number of rows or columns the cell spans then this method does nothing.</p> <P> <DD><DL> <DT><B>See Also:</B><DD><a href="QTextTable.html#splitCell(int, int, int, int)"><tt>splitCell</tt></a></DL> </DD> </DL> <HR> <A NAME="removeColumns(int, int)"><!-- --></A><H3> removeColumns</H3> <PRE> public final void <B>removeColumns</B>(int pos, int num)</PRE> <DL> <DD><p>Removes a number of <tt>num</tt> starting with the column at the specified <tt>pos</tt>.</p> <P> <DD><DL> <DT><B>See Also:</B><DD><a href="QTextTable.html#insertRows(int, int)"><tt>insertRows</tt></a>, <a href="QTextTable.html#insertColumns(int, int)"><tt>insertColumns</tt></a>, <a href="QTextTable.html#removeRows(int, int)"><tt>removeRows</tt></a>, <a href="QTextTable.html#resize(int, int)"><tt>resize</tt></a></DL> </DD> </DL> <HR> <A NAME="removeRows(int, int)"><!-- --></A><H3> removeRows</H3> <PRE> public final void <B>removeRows</B>(int pos, int num)</PRE> <DL> <DD><p>Removes a number of <tt>num</tt> starting with the row at the specified <tt>pos</tt>.</p> <P> <DD><DL> <DT><B>See Also:</B><DD><a href="QTextTable.html#insertRows(int, int)"><tt>insertRows</tt></a>, <a href="QTextTable.html#insertColumns(int, int)"><tt>insertColumns</tt></a>, <a href="QTextTable.html#resize(int, int)"><tt>resize</tt></a>, <a href="QTextTable.html#removeColumns(int, int)"><tt>removeColumns</tt></a></DL> </DD> </DL> <HR> <A NAME="resize(int, int)"><!-- --></A><H3> resize</H3> <PRE> public final void <B>resize</B>(int rows, int cols)</PRE> <DL> <DD><p>Resizes the table to contain the required number of <tt>rows</tt> and <tt>cols</tt>.</p> <P> <DD><DL> <DT><B>See Also:</B><DD><a href="QTextTable.html#insertRows(int, int)"><tt>insertRows</tt></a>, <a href="QTextTable.html#insertColumns(int, int)"><tt>insertColumns</tt></a>, <a href="QTextTable.html#removeRows(int, int)"><tt>removeRows</tt></a>, <a href="QTextTable.html#removeColumns(int, int)"><tt>removeColumns</tt></a></DL> </DD> </DL> <HR> <A NAME="rowEnd(com.trolltech.qt.gui.QTextCursor)"><!-- --></A><H3> rowEnd</H3> <PRE> public final <A HREF="../../../../com/trolltech/qt/gui/QTextCursor.html" title="class in com.trolltech.qt.gui">QTextCursor</A> <B>rowEnd</B>(<A HREF="../../../../com/trolltech/qt/gui/QTextCursor.html" title="class in com.trolltech.qt.gui">QTextCursor</A> c)</PRE> <DL> <DD><p>Returns a cursor pointing to the end of the row that contains the given <tt>c</tt>.</p> <P> <DD><DL> <DT><B>See Also:</B><DD><a href="QTextTable.html#rowStart(com.trolltech.qt.gui.QTextCursor)"><tt>rowStart</tt></a></DL> </DD> </DL> <HR> <A NAME="rowStart(com.trolltech.qt.gui.QTextCursor)"><!-- --></A><H3> rowStart</H3> <PRE> public final <A HREF="../../../../com/trolltech/qt/gui/QTextCursor.html" title="class in com.trolltech.qt.gui">QTextCursor</A> <B>rowStart</B>(<A HREF="../../../../com/trolltech/qt/gui/QTextCursor.html" title="class in com.trolltech.qt.gui">QTextCursor</A> c)</PRE> <DL> <DD><p>Returns a cursor pointing to the start of the row that contains the given <tt>c</tt>.</p> <P> <DD><DL> <DT><B>See Also:</B><DD><a href="QTextTable.html#rowEnd(com.trolltech.qt.gui.QTextCursor)"><tt>rowEnd</tt></a></DL> </DD> </DL> <HR> <A NAME="rows()"><!-- --></A><H3> rows</H3> <PRE> public final int <B>rows</B>()</PRE> <DL> <DD><p>Returns the number of rows in the table.</p> <P> <DD><DL> <DT><B>See Also:</B><DD><a href="QTextTable.html#columns()"><tt>columns</tt></a></DL> </DD> </DL> <HR> <A NAME="setFormat(com.trolltech.qt.gui.QTextTableFormat)"><!-- --></A><H3> setFormat</H3> <PRE> public final void <B>setFormat</B>(<A HREF="../../../../com/trolltech/qt/gui/QTextTableFormat.html" title="class in com.trolltech.qt.gui">QTextTableFormat</A> format)</PRE> <DL> <DD><p>Sets the table's <tt>format</tt>.</p> <P> <DD><DL> <DT><B>See Also:</B><DD><a href="QTextObject.html#format()"><tt>format</tt></a></DL> </DD> </DL> <HR> <A NAME="splitCell(int, int, int, int)"><!-- --></A><H3> splitCell</H3> <PRE> public final void <B>splitCell</B>(int row, int col, int numRows, int numCols)</PRE> <DL> <DD><p>Splits the specified cell at <tt>row</tt> and <tt>col</tt> into an array of multiple cells with dimensions specified by <tt>numRows</tt> and <tt>numCols</tt>.</p> <p><b>Note:</b> It is only possible to split cells that span multiple rows or columns, such as rows that have been merged using <a href="QTextTable.html#mergeCells(int, int, int, int)"><tt>mergeCells</tt></a>.</p> <P> <DD><DL> <DT><B>See Also:</B><DD><a href="QTextTable.html#mergeCells(int, int, int, int)"><tt>mergeCells</tt></a></DL> </DD> </DL> <HR> <A NAME="fromNativePointer(com.trolltech.qt.QNativePointer)"><!-- --></A><H3> fromNativePointer</H3> <PRE> public static <A HREF="../../../../com/trolltech/qt/gui/QTextTable.html" title="class in com.trolltech.qt.gui">QTextTable</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 QTextTable 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/QTextOption.WrapMode.html" title="enum in com.trolltech.qt.gui"><B>PREV CLASS</B></A> <A HREF="../../../../com/trolltech/qt/gui/QTextTableCell.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/QTextTable.html" target="_top"><B>FRAMES</B></A> <A HREF="QTextTable.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> | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> DETAIL: FIELD | <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>