QTextTableCellFormat Class
The QTextTableCellFormat class provides formatting information for table cells in a QTextDocument. \inmodule
QtGui. More...
Header: | #include <QTextTableCellFormat> |
Inherits: | QTextCharFormat |
Public Functions
QTextTableCellFormat() | |
qreal | bottomBorder() const |
QBrush | bottomBorderBrush() const |
QTextFrameFormat::BorderStyle | bottomBorderStyle() const |
qreal | bottomPadding() const |
bool | isValid() const |
qreal | leftBorder() const |
QBrush | leftBorderBrush() const |
QTextFrameFormat::BorderStyle | leftBorderStyle() const |
qreal | leftPadding() const |
qreal | rightBorder() const |
QBrush | rightBorderBrush() const |
QTextFrameFormat::BorderStyle | rightBorderStyle() const |
qreal | rightPadding() const |
void | setBorder(qreal width) |
void | setBorderBrush(const QBrush &brush) |
void | setBorderStyle(QTextFrameFormat::BorderStyle style) |
void | setBottomBorder(qreal width) |
void | setBottomBorderBrush(const QBrush &brush) |
void | setBottomBorderStyle(QTextFrameFormat::BorderStyle style) |
void | setBottomPadding(qreal padding) |
void | setLeftBorder(qreal width) |
void | setLeftBorderBrush(const QBrush &brush) |
void | setLeftBorderStyle(QTextFrameFormat::BorderStyle style) |
void | setLeftPadding(qreal padding) |
void | setPadding(qreal padding) |
void | setRightBorder(qreal width) |
void | setRightBorderBrush(const QBrush &brush) |
void | setRightBorderStyle(QTextFrameFormat::BorderStyle style) |
void | setRightPadding(qreal padding) |
void | setTopBorder(qreal width) |
void | setTopBorderBrush(const QBrush &brush) |
void | setTopBorderStyle(QTextFrameFormat::BorderStyle style) |
void | setTopPadding(qreal padding) |
qreal | topBorder() const |
QBrush | topBorderBrush() const |
QTextFrameFormat::BorderStyle | topBorderStyle() const |
qreal | topPadding() const |
Protected Functions
QTextTableCellFormat(const QTextFormat &other) |
Detailed Description
\reentrant
\since
4.4
\ingroup
richtext-processing \ingroup
shared
The table cell format of a table cell in a document specifies the visual properties of the table cell.
The padding properties of a table cell are controlled by setLeftPadding(), setRightPadding(), setTopPadding(), and setBottomPadding(). All the paddings can be set at once using setPadding().
See also QTextFormat, QTextBlockFormat, QTextTableFormat, and QTextCharFormat.
Member Function Documentation
QTextTableCellFormat::QTextTableCellFormat()
\since
4.4
Constructs a new table cell format object.
[explicit protected]
QTextTableCellFormat::QTextTableCellFormat(const QTextFormat &other)
\internal
Creates a new table cell format with the same attributes as the given text format.
qreal QTextTableCellFormat::bottomBorder() const
\since
5.14
Returns the bottom border width of the table cell.
See also setBottomBorder().
QBrush QTextTableCellFormat::bottomBorderBrush() const
\since
5.14
Returns the bottom border brush of the table cell.
See also setBottomBorderBrush().
QTextFrameFormat::BorderStyle QTextTableCellFormat::bottomBorderStyle() const
\since
5.14
Returns the bottom border style of the table cell.
See also setBottomBorderStyle().
qreal QTextTableCellFormat::bottomPadding() const
\since
4.4
Gets the bottom padding of the table cell.
See also setBottomPadding(), leftPadding(), rightPadding(), and topPadding().
bool QTextTableCellFormat::isValid() const
\since
4.4
Returns true
if this table cell format is valid; otherwise returns false
.
qreal QTextTableCellFormat::leftBorder() const
\since
5.14
Returns the left border width of the table cell.
See also setLeftBorder().
QBrush QTextTableCellFormat::leftBorderBrush() const
\since
5.14
Returns the left border brush of the table cell.
See also setLeftBorderBrush().
QTextFrameFormat::BorderStyle QTextTableCellFormat::leftBorderStyle() const
\since
5.14
Returns the left border style of the table cell.
See also setLeftBorderStyle().
qreal QTextTableCellFormat::leftPadding() const
\since
4.4
Gets the left padding of the table cell.
See also setLeftPadding(), rightPadding(), topPadding(), and bottomPadding().
qreal QTextTableCellFormat::rightBorder() const
\since
5.14
Returns the right border width of the table cell.
See also setRightBorder().
QBrush QTextTableCellFormat::rightBorderBrush() const
\since
5.14
Returns the right border brush of the table cell.
See also setRightBorderBrush().
QTextFrameFormat::BorderStyle QTextTableCellFormat::rightBorderStyle() const
\since
5.14
Returns the right border style of the table cell.
See also setRightBorderStyle().
qreal QTextTableCellFormat::rightPadding() const
\since
4.4
Gets the right padding of the table cell.
See also setRightPadding(), leftPadding(), topPadding(), and bottomPadding().
void QTextTableCellFormat::setBorder(qreal width)
\since
5.14
Sets the left, right, top, and bottom border width of the table cell.
See also setLeftBorder(), setRightBorder(), setTopBorder(), setBottomBorder(), and QTextTableFormat::setBorderCollapse.
void QTextTableCellFormat::setBorderBrush(const QBrush &brush)
\since
5.14
Sets the left, right, top, and bottom border brush of the table cell.
See also setLeftBorderBrush(), setRightBorderBrush(), setTopBorderBrush(), setBottomBorderBrush(), and QTextTableFormat::setBorderCollapse.
void QTextTableCellFormat::setBorderStyle(QTextFrameFormat::BorderStyle style)
\since
5.14
Sets the left, right, top, and bottom border style of the table cell.
See also setLeftBorderStyle(), setRightBorderStyle(), setTopBorderStyle(), setBottomBorderStyle(), and QTextTableFormat::setBorderCollapse.
void QTextTableCellFormat::setBottomBorder(qreal width)
\since
5.14
Sets the bottom border width of the table cell.
See also bottomBorder() and QTextTableFormat::setBorderCollapse.
void QTextTableCellFormat::setBottomBorderBrush(const QBrush &brush)
\since
5.14
Sets the bottom border brush of the table cell.
See also bottomBorderBrush() and QTextTableFormat::setBorderCollapse.
void QTextTableCellFormat::setBottomBorderStyle(QTextFrameFormat::BorderStyle style)
\since
5.14
Sets the bottom border style of the table cell.
See also bottomBorderStyle() and QTextTableFormat::setBorderCollapse.
void QTextTableCellFormat::setBottomPadding(qreal padding)
\since
4.4
Sets the bottom padding of the table cell.
See also bottomPadding(), setLeftPadding(), setRightPadding(), and setTopPadding().
void QTextTableCellFormat::setLeftBorder(qreal width)
\since
5.14
Sets the left border width of the table cell.
See also leftBorder() and QTextTableFormat::setBorderCollapse.
void QTextTableCellFormat::setLeftBorderBrush(const QBrush &brush)
\since
5.14
Sets the left border brush of the table cell.
See also leftBorderBrush() and QTextTableFormat::setBorderCollapse.
void QTextTableCellFormat::setLeftBorderStyle(QTextFrameFormat::BorderStyle style)
\since
5.14
Sets the left border style of the table cell.
See also leftBorderStyle() and QTextTableFormat::setBorderCollapse.
void QTextTableCellFormat::setLeftPadding(qreal padding)
\since
4.4
Sets the left padding of the table cell.
See also leftPadding(), setRightPadding(), setTopPadding(), and setBottomPadding().
void QTextTableCellFormat::setPadding(qreal padding)
\since
4.4
Sets the left, right, top, and bottom padding of the table cell.
See also setLeftPadding(), setRightPadding(), setTopPadding(), and setBottomPadding().
void QTextTableCellFormat::setRightBorder(qreal width)
\since
5.14
Sets the right border width of the table cell.
See also rightBorder() and QTextTableFormat::setBorderCollapse.
void QTextTableCellFormat::setRightBorderBrush(const QBrush &brush)
\since
5.14
Sets the right border brush of the table cell.
See also rightBorderBrush() and QTextTableFormat::setBorderCollapse.
void QTextTableCellFormat::setRightBorderStyle(QTextFrameFormat::BorderStyle style)
\since
5.14
Sets the right border style of the table cell.
See also rightBorderStyle() and QTextTableFormat::setBorderCollapse.
void QTextTableCellFormat::setRightPadding(qreal padding)
\since
4.4
Sets the right padding of the table cell.
See also rightPadding(), setLeftPadding(), setTopPadding(), and setBottomPadding().
void QTextTableCellFormat::setTopBorder(qreal width)
\since
5.14
Sets the top border width of the table cell.
See also topBorder() and QTextTableFormat::setBorderCollapse.
void QTextTableCellFormat::setTopBorderBrush(const QBrush &brush)
\since
5.14
Sets the top border brush of the table cell.
See also topBorderBrush() and QTextTableFormat::setBorderCollapse.
void QTextTableCellFormat::setTopBorderStyle(QTextFrameFormat::BorderStyle style)
\since
5.14
Sets the top border style of the table cell.
See also topBorderStyle() and QTextTableFormat::setBorderCollapse.
void QTextTableCellFormat::setTopPadding(qreal padding)
\since
4.4
Sets the top padding of the table cell.
See also topPadding(), setLeftPadding(), setRightPadding(), and setBottomPadding().
qreal QTextTableCellFormat::topBorder() const
\since
5.14
Returns the top border width of the table cell.
See also setTopBorder().
QBrush QTextTableCellFormat::topBorderBrush() const
\since
5.14
Returns the top border brush of the table cell.
See also setTopBorderBrush().
QTextFrameFormat::BorderStyle QTextTableCellFormat::topBorderStyle() const
\since
5.14
Returns the top border style of the table cell.
See also setTopBorderStyle().
qreal QTextTableCellFormat::topPadding() const
\since
4.4
Gets the top padding of the table cell.
See also setTopPadding(), leftPadding(), rightPadding(), and bottomPadding().