PythonQtWrapper_QTextBlockFormat.h
60 lines
| 2.5 KiB
| text/x-c
|
CLexer
florianlink
|
r13 | #ifndef PYTHONQTWRAPPER_QTEXTBLOCKFORMAT_H | ||
#define PYTHONQTWRAPPER_QTEXTBLOCKFORMAT_H | ||||
#include <qtextformat.h> | ||||
#include <QObject> | ||||
florianlink
|
r24 | #include <PythonQt.h> | ||
florianlink
|
r13 | #include <QVariant> | ||
#include <qbrush.h> | ||||
#include <qcolor.h> | ||||
#include <qlist.h> | ||||
#include <qpen.h> | ||||
#include <qtextformat.h> | ||||
#include <qvector.h> | ||||
florianlink
|
r24 | class PythonQtShell_QTextBlockFormat : public QTextBlockFormat | ||
{ | ||||
public: | ||||
PythonQtShell_QTextBlockFormat():QTextBlockFormat(),_wrapper(NULL) {}; | ||||
PythonQtShell_QTextBlockFormat(const QTextFormat& fmt):QTextBlockFormat(fmt),_wrapper(NULL) {}; | ||||
PythonQtInstanceWrapper* _wrapper; | ||||
}; | ||||
florianlink
|
r13 | class PythonQtWrapper_QTextBlockFormat : public QObject | ||
{ Q_OBJECT | ||||
public: | ||||
public slots: | ||||
QTextBlockFormat* new_QTextBlockFormat(); | ||||
florianlink
|
r24 | QTextBlockFormat* new_QTextBlockFormat(const QTextBlockFormat& other) { | ||
PythonQtShell_QTextBlockFormat* a = new PythonQtShell_QTextBlockFormat(); | ||||
*((QTextBlockFormat*)a) = other; | ||||
return a; } | ||||
florianlink
|
r13 | void delete_QTextBlockFormat(QTextBlockFormat* obj) { delete obj; } | ||
florianlink
|
r28 | void setLeftMargin(QTextBlockFormat* theWrappedObject, qreal margin); | ||
void setTopMargin(QTextBlockFormat* theWrappedObject, qreal margin); | ||||
florianlink
|
r73 | void setBottomMargin(QTextBlockFormat* theWrappedObject, qreal margin); | ||
florianlink
|
r13 | void setRightMargin(QTextBlockFormat* theWrappedObject, qreal margin); | ||
qreal textIndent(QTextBlockFormat* theWrappedObject) const; | ||||
florianlink
|
r73 | qreal topMargin(QTextBlockFormat* theWrappedObject) const; | ||
qreal rightMargin(QTextBlockFormat* theWrappedObject) const; | ||||
void setTextIndent(QTextBlockFormat* theWrappedObject, qreal margin); | ||||
qreal bottomMargin(QTextBlockFormat* theWrappedObject) const; | ||||
bool isValid(QTextBlockFormat* theWrappedObject) const; | ||||
bool nonBreakableLines(QTextBlockFormat* theWrappedObject) const; | ||||
florianlink
|
r28 | qreal leftMargin(QTextBlockFormat* theWrappedObject) const; | ||
void setIndent(QTextBlockFormat* theWrappedObject, int indent); | ||||
florianlink
|
r73 | QList<QTextOption::Tab > tabPositions(QTextBlockFormat* theWrappedObject) const; | ||
florianlink
|
r24 | Qt::Alignment alignment(QTextBlockFormat* theWrappedObject) const; | ||
florianlink
|
r28 | void setTabPositions(QTextBlockFormat* theWrappedObject, const QList<QTextOption::Tab >& tabs); | ||
florianlink
|
r73 | void setAlignment(QTextBlockFormat* theWrappedObject, Qt::Alignment alignment); | ||
int indent(QTextBlockFormat* theWrappedObject) const; | ||||
void setNonBreakableLines(QTextBlockFormat* theWrappedObject, bool b); | ||||
florianlink
|
r28 | QTextFormat::PageBreakFlags pageBreakPolicy(QTextBlockFormat* theWrappedObject) const; | ||
florianlink
|
r73 | void setPageBreakPolicy(QTextBlockFormat* theWrappedObject, QTextFormat::PageBreakFlags flags); | ||
florianlink
|
r13 | }; | ||
#endif // PYTHONQTWRAPPER_QTEXTBLOCKFORMAT_H | ||||