#ifndef PYTHONQTWRAPPER_QTEXTCHARFORMAT_H #define PYTHONQTWRAPPER_QTEXTCHARFORMAT_H #include #include #include #include #include #include #include #include #include #include class PythonQtWrapper_QTextCharFormat : public QObject { Q_OBJECT public: Q_ENUMS(VerticalAlignment UnderlineStyle ) enum VerticalAlignment{ AlignNormal = QTextCharFormat::AlignNormal, AlignSuperScript = QTextCharFormat::AlignSuperScript, AlignSubScript = QTextCharFormat::AlignSubScript, AlignMiddle = QTextCharFormat::AlignMiddle, AlignTop = QTextCharFormat::AlignTop, AlignBottom = QTextCharFormat::AlignBottom}; enum UnderlineStyle{ NoUnderline = QTextCharFormat::NoUnderline, SingleUnderline = QTextCharFormat::SingleUnderline, DashUnderline = QTextCharFormat::DashUnderline, DotLine = QTextCharFormat::DotLine, DashDotLine = QTextCharFormat::DashDotLine, DashDotDotLine = QTextCharFormat::DashDotDotLine, WaveUnderline = QTextCharFormat::WaveUnderline, SpellCheckUnderline = QTextCharFormat::SpellCheckUnderline}; public slots: QTextCharFormat* new_QTextCharFormat(); void delete_QTextCharFormat(QTextCharFormat* obj) { delete obj; } QString anchorHref(QTextCharFormat* theWrappedObject) const; QStringList anchorNames(QTextCharFormat* theWrappedObject) const; QFont font(QTextCharFormat* theWrappedObject) const; QFont::Capitalization fontCapitalization(QTextCharFormat* theWrappedObject) const; QString fontFamily(QTextCharFormat* theWrappedObject) const; bool fontFixedPitch(QTextCharFormat* theWrappedObject) const; bool fontItalic(QTextCharFormat* theWrappedObject) const; qreal fontLetterSpacing(QTextCharFormat* theWrappedObject) const; bool fontOverline(QTextCharFormat* theWrappedObject) const; qreal fontPointSize(QTextCharFormat* theWrappedObject) const; bool fontStrikeOut(QTextCharFormat* theWrappedObject) const; bool fontUnderline(QTextCharFormat* theWrappedObject) const; int fontWeight(QTextCharFormat* theWrappedObject) const; qreal fontWordSpacing(QTextCharFormat* theWrappedObject) const; bool isAnchor(QTextCharFormat* theWrappedObject) const; bool isValid(QTextCharFormat* theWrappedObject) const; void setAnchor(QTextCharFormat* theWrappedObject, bool anchor); void setAnchorHref(QTextCharFormat* theWrappedObject, const QString& value); void setAnchorNames(QTextCharFormat* theWrappedObject, const QStringList& names); void setFont(QTextCharFormat* theWrappedObject, const QFont& font); void setFontCapitalization(QTextCharFormat* theWrappedObject, QFont::Capitalization capitalization); void setFontFamily(QTextCharFormat* theWrappedObject, const QString& family); void setFontFixedPitch(QTextCharFormat* theWrappedObject, bool fixedPitch); void setFontItalic(QTextCharFormat* theWrappedObject, bool italic); void setFontLetterSpacing(QTextCharFormat* theWrappedObject, qreal spacing); void setFontOverline(QTextCharFormat* theWrappedObject, bool overline); void setFontPointSize(QTextCharFormat* theWrappedObject, qreal size); void setFontStrikeOut(QTextCharFormat* theWrappedObject, bool strikeOut); void setFontUnderline(QTextCharFormat* theWrappedObject, bool underline); void setFontWeight(QTextCharFormat* theWrappedObject, int weight); void setFontWordSpacing(QTextCharFormat* theWrappedObject, qreal spacing); void setTableCellColumnSpan(QTextCharFormat* theWrappedObject, int tableCellColumnSpan); void setTableCellRowSpan(QTextCharFormat* theWrappedObject, int tableCellRowSpan); void setTextOutline(QTextCharFormat* theWrappedObject, const QPen& pen); void setToolTip(QTextCharFormat* theWrappedObject, const QString& tip); void setUnderlineColor(QTextCharFormat* theWrappedObject, const QColor& color); void setUnderlineStyle(QTextCharFormat* theWrappedObject, QTextCharFormat::UnderlineStyle style); void setVerticalAlignment(QTextCharFormat* theWrappedObject, QTextCharFormat::VerticalAlignment alignment); int tableCellColumnSpan(QTextCharFormat* theWrappedObject) const; int tableCellRowSpan(QTextCharFormat* theWrappedObject) const; QPen textOutline(QTextCharFormat* theWrappedObject) const; QString toolTip(QTextCharFormat* theWrappedObject) const; QColor underlineColor(QTextCharFormat* theWrappedObject) const; QTextCharFormat::UnderlineStyle underlineStyle(QTextCharFormat* theWrappedObject) const; QTextCharFormat::VerticalAlignment verticalAlignment(QTextCharFormat* theWrappedObject) const; }; #endif // PYTHONQTWRAPPER_QTEXTCHARFORMAT_H