Home | All Classes | Main Classes | Annotated | Grouped Classes | Functions

QTextTableCell Class Reference

The QTextTableCell class represents the properties of a cell in a QTextTable. More...

#include <QTextTableCell>

List of all members.

Public Functions


Detailed Description

The QTextTableCell class represents the properties of a cell in a QTextTable.

The QTextTable::cellAt() functions return a QTextTableCell object for the given cell. A QTextTableCell holds the format() of a cell, its row() and column(), and rowSpan() and columnSpan(), and the firstCursorPosition() and lastCursorPosition() for the cell.


Member Function Documentation

QTextTableCell::QTextTableCell ()

Constructs an invalid QTextTableCell object.

See also isValid().

QTextTableCell::QTextTableCell ( const QTextTableCell & cell )

Creates a new QTextTableCell object based on cell cell.

QTextTableCell::~QTextTableCell ()

Destroys the object.

QTextFrame::iterator QTextTableCell::begin () const

Returns a frame iterator pointing to the beginning of the table's cell.

See also end().

int QTextTableCell::column () const

Returns the column in the table that contains this cell.

See also row().

int QTextTableCell::columnSpan () const

Returns the number of columns this cell spans. The default is 1.

See also rowSpan().

QTextFrame::iterator QTextTableCell::end () const

Returns a frame iterator pointing to the end of the table's cell.

See also begin().

QTextCursor QTextTableCell::firstCursorPosition () const

Returns the first valid cursor position in this cell.

See also lastCursorPosition().

QTextCharFormat QTextTableCell::format () const

Returns the cell's character format.

bool QTextTableCell::isValid () const

Returns true if this is a valid table cell; otherwise returns false.

QTextCursor QTextTableCell::lastCursorPosition () const

Returns the last valid cursor position in this cell.

See also firstCursorPosition().

int QTextTableCell::row () const

Returns the row in the table that contains this cell.

See also column().

int QTextTableCell::rowSpan () const

Returns the number of rows this cell spans. The default is 1.

See also columnSpan().

bool QTextTableCell::operator!= ( const QTextTableCell & other ) const

Returns true if this cell object and the other cell object describe different cells; otherwise returns false.

QTextTableCell & QTextTableCell::operator= ( const QTextTableCell & other )

Assigns the other table cell to this table cell.

bool QTextTableCell::operator== ( const QTextTableCell & other ) const

Returns true if this cell object and the other cell object describe the same cell; otherwise returns false.


Copyright © 2004 Trolltech. Trademarks
Qt 4.0.0-tp1