Sophie

Sophie

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

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

<class name="QTextTableFormat" doc="/**
&lt;p&gt;The &lt;a href=&quot;QTextTableFormat.html#QTextTableFormat()&quot;&gt;&lt;tt&gt;QTextTableFormat&lt;/tt&gt;&lt;/a&gt; class provides formatting information for tables in a &lt;a href=&quot;QTextDocument.html&quot;&gt;&lt;tt&gt;QTextDocument&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;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. Tables in rich text documents are formatted using the properties defined in this class.&lt;/p&gt;
&lt;p&gt;Tables are horizontally justified within their parent frame according to the table's alignment. This can be read with the &lt;a href=&quot;QTextTableFormat.html#alignment()&quot;&gt;&lt;tt&gt;alignment&lt;/tt&gt;&lt;/a&gt; function and set with &lt;a href=&quot;QTextTableFormat.html#setAlignment(com.trolltech.qt.core.Qt.Alignment)&quot;&gt;&lt;tt&gt;setAlignment&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Cells within the table are separated by cell spacing. The number of pixels between cells is set with &lt;a href=&quot;QTextTableFormat.html#setCellSpacing(double)&quot;&gt;&lt;tt&gt;setCellSpacing&lt;/tt&gt;&lt;/a&gt; and read with &lt;a href=&quot;QTextTableFormat.html#cellSpacing()&quot;&gt;&lt;tt&gt;cellSpacing&lt;/tt&gt;&lt;/a&gt;. The contents of each cell is surrounded by cell padding. The number of pixels between each cell edge and its contents is set with &lt;a href=&quot;QTextTableFormat.html#setCellPadding(double)&quot;&gt;&lt;tt&gt;setCellPadding&lt;/tt&gt;&lt;/a&gt; and read with &lt;a href=&quot;QTextTableFormat.html#cellPadding()&quot;&gt;&lt;tt&gt;cellPadding&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p align=&quot;center&quot;&gt;&lt;img src=&quot;%2E%2E/images/qtexttableformat-cell.png&quot; /&gt;&lt;/p&gt;&lt;p&gt;The table's background color can be read with the &lt;a href=&quot;QTextFormat.html#background()&quot;&gt;&lt;tt&gt;background&lt;/tt&gt;&lt;/a&gt; function, and can be specified with &lt;a href=&quot;QTextFormat.html#setBackground(com.trolltech.qt.gui.QBrush)&quot;&gt;&lt;tt&gt;setBackground&lt;/tt&gt;&lt;/a&gt;. The background color of each cell can be set independently, and will control the color of the cell within the padded area.&lt;/p&gt;
&lt;p&gt;The table format also provides a way to constrain the widths of the columns in the table. Columns can be assigned a fixed width, a variable width, or a percentage of the available width (see &lt;a href=&quot;QTextLength.html&quot;&gt;&lt;tt&gt;QTextLength&lt;/tt&gt;&lt;/a&gt;). The &lt;a href=&quot;QTextTableFormat.html#columns()&quot;&gt;&lt;tt&gt;columns&lt;/tt&gt;&lt;/a&gt; function returns the number of columns with constraints, and the &lt;a href=&quot;QTextTableFormat.html#columnWidthConstraints()&quot;&gt;&lt;tt&gt;columnWidthConstraints&lt;/tt&gt;&lt;/a&gt; function returns the constraints defined for the table. These quantities can also be set by calling &lt;a href=&quot;QTextTableFormat.html#setColumnWidthConstraints(java.util.List&lt;com.trolltech.qt.gui.QTextLength&gt;)&quot;&gt;&lt;tt&gt;setColumnWidthConstraints&lt;/tt&gt;&lt;/a&gt; with a vector containing new constraints. If no constraints are required, &lt;a href=&quot;QTextTableFormat.html#clearColumnWidthConstraints()&quot;&gt;&lt;tt&gt;clearColumnWidthConstraints&lt;/tt&gt;&lt;/a&gt; can be used to remove them.&lt;/p&gt;

@see &lt;a href=&quot;QTextTable.html&quot;&gt;&lt;tt&gt;QTextTable&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QTextTableCell.html&quot;&gt;&lt;tt&gt;QTextTableCell&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QTextLength.html&quot;&gt;&lt;tt&gt;QTextLength&lt;/tt&gt;&lt;/a&gt; */">
    <method name="public QTextTableFormat()" doc="/**
&lt;p&gt;Constructs a new table format object.&lt;/p&gt;
 */"/>
    <method name="public final com.trolltech.qt.core.Qt.Alignment alignment()" doc="/**
&lt;p&gt;Returns the table's alignment.&lt;/p&gt;

@see &lt;a href=&quot;QTextTableFormat.html#setAlignment(com.trolltech.qt.core.Qt.Alignment)&quot;&gt;&lt;tt&gt;setAlignment&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final double cellPadding()" doc="/**
&lt;p&gt;Returns the table's cell padding. This describes the distance between the border of a cell and its contents.&lt;/p&gt;

@see &lt;a href=&quot;QTextTableFormat.html#setCellPadding(double)&quot;&gt;&lt;tt&gt;setCellPadding&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final double cellSpacing()" doc="/**
&lt;p&gt;Returns the table's cell spacing. This describes the distance between adjacent cells.&lt;/p&gt;

@see &lt;a href=&quot;QTextTableFormat.html#setCellSpacing(double)&quot;&gt;&lt;tt&gt;setCellSpacing&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void clearColumnWidthConstraints()" doc="/**
&lt;p&gt;Clears the column width constraints for the table.&lt;/p&gt;

@see &lt;a href=&quot;QTextTableFormat.html#columnWidthConstraints()&quot;&gt;&lt;tt&gt;columnWidthConstraints&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QTextTableFormat.html#setColumnWidthConstraints(java.util.List&lt;com.trolltech.qt.gui.QTextLength&gt;)&quot;&gt;&lt;tt&gt;setColumnWidthConstraints&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final java.util.List&lt;com.trolltech.qt.gui.QTextLength&gt; columnWidthConstraints()" doc="/**
&lt;p&gt;Returns a list of constraints used by this table format to control the appearance of columns in a table.&lt;/p&gt;

@see &lt;a href=&quot;QTextTableFormat.html#setColumnWidthConstraints(java.util.List&lt;com.trolltech.qt.gui.QTextLength&gt;)&quot;&gt;&lt;tt&gt;setColumnWidthConstraints&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final int columns()" doc="/**
&lt;p&gt;Returns the number of columns specified by the table format.&lt;/p&gt;

@see &lt;a href=&quot;QTextTableFormat.html#setColumns(int)&quot;&gt;&lt;tt&gt;setColumns&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final int headerRowCount()" doc="/**
&lt;p&gt;Returns the number of rows in the table that define the header.&lt;/p&gt;

@see &lt;a href=&quot;QTextTableFormat.html#setHeaderRowCount(int)&quot;&gt;&lt;tt&gt;setHeaderRowCount&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final boolean isValid()" doc="/**
&lt;p&gt;Returns true if this table format is valid; otherwise returns false.&lt;/p&gt;
 */"/>
    <method name="public final void setAlignment(com.trolltech.qt.core.Qt.Alignment alignment)" doc="/**
&lt;p&gt;Sets the table's &lt;tt&gt;alignment&lt;/tt&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QTextTableFormat.html#alignment()&quot;&gt;&lt;tt&gt;alignment&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setCellPadding(double padding)" doc="/**
&lt;p&gt;Sets the cell &lt;tt&gt;padding&lt;/tt&gt; for the table. This determines the distance between the border of a cell and its contents.&lt;/p&gt;

@see &lt;a href=&quot;QTextTableFormat.html#cellPadding()&quot;&gt;&lt;tt&gt;cellPadding&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setCellSpacing(double spacing)" doc="/**
&lt;p&gt;Sets the cell &lt;tt&gt;spacing&lt;/tt&gt; for the table. This determines the distance between adjacent cells.&lt;/p&gt;

@see &lt;a href=&quot;QTextTableFormat.html#cellSpacing()&quot;&gt;&lt;tt&gt;cellSpacing&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setColumnWidthConstraints(java.util.List&lt;com.trolltech.qt.gui.QTextLength&gt; constraints)" doc="/**
&lt;p&gt;Sets the column width &lt;tt&gt;constraints&lt;/tt&gt; for the table.&lt;/p&gt;

@see &lt;a href=&quot;QTextTableFormat.html#columnWidthConstraints()&quot;&gt;&lt;tt&gt;columnWidthConstraints&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QTextTableFormat.html#clearColumnWidthConstraints()&quot;&gt;&lt;tt&gt;clearColumnWidthConstraints&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setColumns(int columns)" doc="/**
&lt;p&gt;This method is used internally by Qt Jambi.
Do not use it in your applications.&lt;/p&gt;

@see &lt;a href=&quot;QTextTableFormat.html#columns()&quot;&gt;&lt;tt&gt;columns&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setHeaderRowCount(int count)" doc="/**
&lt;p&gt;Declares the first &lt;tt&gt;count&lt;/tt&gt; rows of the table as table header. The table header rows get repeated when a table is broken across a page boundary.&lt;/p&gt;

@see &lt;a href=&quot;QTextTableFormat.html#headerRowCount()&quot;&gt;&lt;tt&gt;headerRowCount&lt;/tt&gt;&lt;/a&gt; */"/>
</class>