CopperSpice API  1.8.2
QTextTableCellFormat Class Reference

The QTextTableCellFormat class provides formatting information for table cells in a QTextDocument. More...

Inheritance diagram for QTextTableCellFormat:
QTextCharFormat QTextFormat

Public Methods

 QTextTableCellFormat ()
qreal bottomPadding () const
bool isValid () const
qreal leftPadding () const
qreal rightPadding () const
void setBottomPadding (qreal padding)
void setLeftPadding (qreal padding)
void setPadding (qreal padding)
void setRightPadding (qreal padding)
void setTopPadding (qreal padding)
qreal topPadding () const
- Public Methods inherited from QTextCharFormat
 QTextCharFormat ()
QString anchorHref () const
QString anchorName () const
QStringList anchorNames () const
QFont font () const
QFont::Capitalization fontCapitalization () const
QString fontFamily () const
bool fontFixedPitch () const
QFont::HintingPreference fontHintingPreference () const
bool fontItalic () const
bool fontKerning () const
qreal fontLetterSpacing () const
QFont::SpacingType fontLetterSpacingType () const
bool fontOverline () const
qreal fontPointSize () const
int fontStretch () const
bool fontStrikeOut () const
QFont::StyleHint fontStyleHint () const
QFont::StyleStrategy fontStyleStrategy () const
bool fontUnderline () const
int fontWeight () const
qreal fontWordSpacing () const
bool isAnchor () const
bool isValid () const
void setAnchor (bool anchor)
void setAnchorHref (const QString &value)
void setAnchorName (const QString &name)
void setAnchorNames (const QStringList &names)
void setFont (const QFont &font)
void setFont (const QFont &font, FontPropertiesInheritanceBehavior behavior)
void setFontCapitalization (QFont::Capitalization capitalization)
void setFontFamily (const QString &family)
void setFontFixedPitch (bool fixedPitch)
void setFontHintingPreference (QFont::HintingPreference hintingPreference)
void setFontItalic (bool italic)
void setFontKerning (bool enable)
void setFontLetterSpacing (qreal spacing)
void setFontLetterSpacingType (QFont::SpacingType letterSpacingType)
void setFontOverline (bool overline)
void setFontPointSize (qreal size)
void setFontStretch (int factor)
void setFontStrikeOut (bool strikeOut)
void setFontStyleHint (QFont::StyleHint hint, QFont::StyleStrategy strategy=QFont::PreferDefault)
void setFontStyleStrategy (QFont::StyleStrategy strategy)
void setFontUnderline (bool underline)
void setFontWeight (int weight)
void setFontWordSpacing (qreal spacing)
void setTextOutline (const QPen &pen)
void setToolTip (const QString &text)
void setUnderlineColor (const QColor &color)
void setUnderlineStyle (UnderlineStyle style)
void setVerticalAlignment (VerticalAlignment alignment)
QPen textOutline () const
QString toolTip () const
QColor underlineColor () const
UnderlineStyle underlineStyle () const
VerticalAlignment verticalAlignment () const
- Public Methods inherited from QTextFormat
 QTextFormat ()
 QTextFormat (const QTextFormat &other)
 QTextFormat (int type)
 ~QTextFormat ()
QBrush background () const
bool boolProperty (int propertyId) const
QBrush brushProperty (int propertyId) const
void clearBackground ()
void clearForeground ()
void clearProperty (int propertyId)
QColor colorProperty (int propertyId) const
qreal doubleProperty (int propertyId) const
QBrush foreground () const
bool hasProperty (int propertyId) const
int intProperty (int propertyId) const
bool isBlockFormat () const
bool isCharFormat () const
bool isEmpty () const
bool isFrameFormat () const
bool isImageFormat () const
bool isListFormat () const
bool isTableCellFormat () const
bool isTableFormat () const
bool isValid () const
Qt::LayoutDirection layoutDirection () const
QTextLength lengthProperty (int propertyId) const
QVector< QTextLengthlengthVectorProperty (int propertyId) const
void merge (const QTextFormat &other)
int objectIndex () const
int objectType () const
 operator QVariant () const
bool operator!= (const QTextFormat &other) const
QTextFormat & operator= (const QTextFormat &other)
bool operator== (const QTextFormat &other) const
QPen penProperty (int propertyId) const
QMap< int, QVariantproperties () const
QVariant property (int propertyId) const
int propertyCount () const
void setBackground (const QBrush &brush)
void setForeground (const QBrush &brush)
void setLayoutDirection (Qt::LayoutDirection direction)
void setObjectIndex (int index)
void setObjectType (int type)
void setProperty (int propertyId, const QVariant &value)
void setProperty (int propertyId, const QVector< QTextLength > &value)
QString stringProperty (int propertyId) const
void swap (QTextFormat &other)
QTextBlockFormat toBlockFormat () const
QTextCharFormat toCharFormat () const
QTextFrameFormat toFrameFormat () const
QTextImageFormat toImageFormat () const
QTextListFormat toListFormat () const
QTextTableCellFormat toTableCellFormat () const
QTextTableFormat toTableFormat () const
int type () const


class QTextFormat

Additional Inherited Members

- Public Types inherited from QTextCharFormat
enum  FontPropertiesInheritanceBehavior
enum  UnderlineStyle
enum  VerticalAlignment
- Public Types inherited from QTextFormat
enum  FormatType
enum  ObjectTypes
enum  Property

Detailed Description

The QTextTableCellFormat class provides formatting information for table cells in a QTextDocument. 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, QTextCharFormat

Constructor & Destructor Documentation

QTextTableCellFormat::QTextTableCellFormat ( )

Constructs a new table cell format object.

Method Documentation

qreal QTextTableCellFormat::bottomPadding ( ) const

Gets the bottom padding of the table cell.

See also
setBottomPadding(), leftPadding(), rightPadding(), topPadding()
bool QTextTableCellFormat::isValid ( ) const

Returns true if this table cell format is valid, otherwise returns false.

qreal QTextTableCellFormat::leftPadding ( ) const

Gets the left padding of the table cell.

See also
setLeftPadding(), rightPadding(), topPadding(), bottomPadding()
qreal QTextTableCellFormat::rightPadding ( ) const

Gets the right padding of the table cell.

See also
setRightPadding(), leftPadding(), topPadding(), bottomPadding()
void QTextTableCellFormat::setBottomPadding ( qreal  padding)

Sets the bottom padding of the table cell.

See also
bottomPadding(), setLeftPadding(), setRightPadding(), setTopPadding()
void QTextTableCellFormat::setLeftPadding ( qreal  padding)

Sets the left padding of the table cell.

See also
leftPadding(), setRightPadding(), setTopPadding(), setBottomPadding()
void QTextTableCellFormat::setPadding ( qreal  padding)

Sets the left, right, top, and bottom padding of the table cell.

See also
setLeftPadding(), setRightPadding(), setTopPadding(), setBottomPadding()
void QTextTableCellFormat::setRightPadding ( qreal  padding)

Sets the right padding of the table cell.

See also
rightPadding(), setLeftPadding(), setTopPadding(), setBottomPadding()
void QTextTableCellFormat::setTopPadding ( qreal  padding)

Sets the top padding of the table cell.

See also
topPadding(), setLeftPadding(), setRightPadding(), setBottomPadding()
qreal QTextTableCellFormat::topPadding ( ) const

Gets the top padding of the table cell.

See also
setTopPadding(), leftPadding(), rightPadding(), bottomPadding()