PythonQtWrapper_QTextFormat.cpp
265 lines
| 7.6 KiB
| text/x-c
|
CppLexer
florianlink
|
r13 | #include "PythonQtWrapper_QTextFormat.h" | ||
florianlink
|
r24 | #include <PythonQtSignalReceiver.h> | ||
#include <PythonQtMethodInfo.h> | ||||
#include <PythonQtConversion.h> | ||||
florianlink
|
r13 | #include <QVariant> | ||
#include <qbrush.h> | ||||
#include <qcolor.h> | ||||
#include <qdatastream.h> | ||||
#include <qpen.h> | ||||
#include <qtextformat.h> | ||||
#include <qvector.h> | ||||
QTextFormat* PythonQtWrapper_QTextFormat::new_QTextFormat() | ||||
{ | ||||
return new QTextFormat(); } | ||||
QTextFormat* PythonQtWrapper_QTextFormat::new_QTextFormat(const QTextFormat& rhs) | ||||
{ | ||||
return new QTextFormat(rhs); } | ||||
QTextFormat* PythonQtWrapper_QTextFormat::new_QTextFormat(int type) | ||||
{ | ||||
return new QTextFormat(type); } | ||||
florianlink
|
r73 | int PythonQtWrapper_QTextFormat::type(QTextFormat* theWrappedObject) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->type()); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | int PythonQtWrapper_QTextFormat::intProperty(QTextFormat* theWrappedObject, int propertyId) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->intProperty(propertyId)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | void PythonQtWrapper_QTextFormat::merge(QTextFormat* theWrappedObject, const QTextFormat& other) | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | ( theWrappedObject->merge(other)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | void PythonQtWrapper_QTextFormat::setObjectType(QTextFormat* theWrappedObject, int type) | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | ( theWrappedObject->setObjectType(type)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | bool PythonQtWrapper_QTextFormat::isTableCellFormat(QTextFormat* theWrappedObject) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->isTableCellFormat()); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | Qt::LayoutDirection PythonQtWrapper_QTextFormat::layoutDirection(QTextFormat* theWrappedObject) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->layoutDirection()); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | int PythonQtWrapper_QTextFormat::objectIndex(QTextFormat* theWrappedObject) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->objectIndex()); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | void PythonQtWrapper_QTextFormat::clearBackground(QTextFormat* theWrappedObject) | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | ( theWrappedObject->clearBackground()); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | QTextCharFormat PythonQtWrapper_QTextFormat::toCharFormat(QTextFormat* theWrappedObject) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->toCharFormat()); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | int PythonQtWrapper_QTextFormat::propertyCount(QTextFormat* theWrappedObject) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->propertyCount()); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | QTextListFormat PythonQtWrapper_QTextFormat::toListFormat(QTextFormat* theWrappedObject) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->toListFormat()); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | int PythonQtWrapper_QTextFormat::objectType(QTextFormat* theWrappedObject) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->objectType()); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | QVariant PythonQtWrapper_QTextFormat::property(QTextFormat* theWrappedObject, int propertyId) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->property(propertyId)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | bool PythonQtWrapper_QTextFormat::isValid(QTextFormat* theWrappedObject) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->isValid()); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | void PythonQtWrapper_QTextFormat::clearProperty(QTextFormat* theWrappedObject, int propertyId) | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | ( theWrappedObject->clearProperty(propertyId)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | QMap<int , QVariant > PythonQtWrapper_QTextFormat::properties(QTextFormat* theWrappedObject) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->properties()); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | void PythonQtWrapper_QTextFormat::setLayoutDirection(QTextFormat* theWrappedObject, Qt::LayoutDirection direction) | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | ( theWrappedObject->setLayoutDirection(direction)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | qreal PythonQtWrapper_QTextFormat::doubleProperty(QTextFormat* theWrappedObject, int propertyId) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->doubleProperty(propertyId)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | void PythonQtWrapper_QTextFormat::readFrom(QTextFormat* theWrappedObject, QDataStream& arg__1) | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | arg__1 >> (*theWrappedObject); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | void PythonQtWrapper_QTextFormat::writeTo(QTextFormat* theWrappedObject, QDataStream& arg__1) | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | arg__1 << (*theWrappedObject); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | void PythonQtWrapper_QTextFormat::setProperty(QTextFormat* theWrappedObject, int propertyId, const QVariant& value) | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | ( theWrappedObject->setProperty(propertyId, value)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | bool PythonQtWrapper_QTextFormat::isListFormat(QTextFormat* theWrappedObject) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->isListFormat()); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | bool PythonQtWrapper_QTextFormat::operator_equal(QTextFormat* theWrappedObject, const QTextFormat& rhs) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( (*theWrappedObject)== rhs); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | QColor PythonQtWrapper_QTextFormat::colorProperty(QTextFormat* theWrappedObject, int propertyId) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->colorProperty(propertyId)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | bool PythonQtWrapper_QTextFormat::isFrameFormat(QTextFormat* theWrappedObject) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->isFrameFormat()); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | bool PythonQtWrapper_QTextFormat::isImageFormat(QTextFormat* theWrappedObject) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->isImageFormat()); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | QString PythonQtWrapper_QTextFormat::stringProperty(QTextFormat* theWrappedObject, int propertyId) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->stringProperty(propertyId)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | QBrush PythonQtWrapper_QTextFormat::brushProperty(QTextFormat* theWrappedObject, int propertyId) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->brushProperty(propertyId)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | QPen PythonQtWrapper_QTextFormat::penProperty(QTextFormat* theWrappedObject, int propertyId) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->penProperty(propertyId)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | bool PythonQtWrapper_QTextFormat::boolProperty(QTextFormat* theWrappedObject, int propertyId) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->boolProperty(propertyId)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | QTextFrameFormat PythonQtWrapper_QTextFormat::toFrameFormat(QTextFormat* theWrappedObject) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->toFrameFormat()); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | QTextImageFormat PythonQtWrapper_QTextFormat::toImageFormat(QTextFormat* theWrappedObject) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->toImageFormat()); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | bool PythonQtWrapper_QTextFormat::isBlockFormat(QTextFormat* theWrappedObject) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->isBlockFormat()); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | QBrush PythonQtWrapper_QTextFormat::foreground(QTextFormat* theWrappedObject) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->foreground()); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | void PythonQtWrapper_QTextFormat::setBackground(QTextFormat* theWrappedObject, const QBrush& brush) | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | ( theWrappedObject->setBackground(brush)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | bool PythonQtWrapper_QTextFormat::hasProperty(QTextFormat* theWrappedObject, int propertyId) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->hasProperty(propertyId)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | void PythonQtWrapper_QTextFormat::setObjectIndex(QTextFormat* theWrappedObject, int object) | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | ( theWrappedObject->setObjectIndex(object)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | QTextLength PythonQtWrapper_QTextFormat::lengthProperty(QTextFormat* theWrappedObject, int propertyId) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->lengthProperty(propertyId)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | QBrush PythonQtWrapper_QTextFormat::background(QTextFormat* theWrappedObject) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->background()); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | void PythonQtWrapper_QTextFormat::setProperty(QTextFormat* theWrappedObject, int propertyId, const QVector<QTextLength >& lengths) | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | ( theWrappedObject->setProperty(propertyId, lengths)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | void PythonQtWrapper_QTextFormat::clearForeground(QTextFormat* theWrappedObject) | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | ( theWrappedObject->clearForeground()); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | QVector<QTextLength > PythonQtWrapper_QTextFormat::lengthVectorProperty(QTextFormat* theWrappedObject, int propertyId) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->lengthVectorProperty(propertyId)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | QTextTableCellFormat PythonQtWrapper_QTextFormat::toTableCellFormat(QTextFormat* theWrappedObject) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->toTableCellFormat()); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | QTextBlockFormat PythonQtWrapper_QTextFormat::toBlockFormat(QTextFormat* theWrappedObject) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->toBlockFormat()); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | void PythonQtWrapper_QTextFormat::setForeground(QTextFormat* theWrappedObject, const QBrush& brush) | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | ( theWrappedObject->setForeground(brush)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | bool PythonQtWrapper_QTextFormat::isTableFormat(QTextFormat* theWrappedObject) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->isTableFormat()); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | QTextTableFormat PythonQtWrapper_QTextFormat::toTableFormat(QTextFormat* theWrappedObject) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->toTableFormat()); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | bool PythonQtWrapper_QTextFormat::isCharFormat(QTextFormat* theWrappedObject) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->isCharFormat()); | ||
florianlink
|
r13 | } | ||