PythonQtWrapper_QTextFrameFormat.h
72 lines
| 3.9 KiB
| text/x-c
|
CLexer
florianlink
|
r13 | #ifndef PYTHONQTWRAPPER_QTEXTFRAMEFORMAT_H | ||
#define PYTHONQTWRAPPER_QTEXTFRAMEFORMAT_H | ||||
#include <qtextformat.h> | ||||
#include <QObject> | ||||
florianlink
|
r24 | #include <PythonQt.h> | ||
florianlink
|
r13 | #include <QVariant> | ||
#include <qbrush.h> | ||||
#include <qcolor.h> | ||||
#include <qpen.h> | ||||
#include <qtextformat.h> | ||||
#include <qvector.h> | ||||
florianlink
|
r24 | class PythonQtShell_QTextFrameFormat : public QTextFrameFormat | ||
{ | ||||
public: | ||||
PythonQtShell_QTextFrameFormat():QTextFrameFormat(),_wrapper(NULL) {}; | ||||
PythonQtShell_QTextFrameFormat(const QTextFormat& fmt):QTextFrameFormat(fmt),_wrapper(NULL) {}; | ||||
PythonQtInstanceWrapper* _wrapper; | ||||
}; | ||||
florianlink
|
r13 | class PythonQtWrapper_QTextFrameFormat : public QObject | ||
{ Q_OBJECT | ||||
public: | ||||
Q_ENUMS(Position BorderStyle ) | ||||
enum Position{ | ||||
InFlow = QTextFrameFormat::InFlow, FloatLeft = QTextFrameFormat::FloatLeft, FloatRight = QTextFrameFormat::FloatRight}; | ||||
enum BorderStyle{ | ||||
BorderStyle_None = QTextFrameFormat::BorderStyle_None, BorderStyle_Dotted = QTextFrameFormat::BorderStyle_Dotted, BorderStyle_Dashed = QTextFrameFormat::BorderStyle_Dashed, BorderStyle_Solid = QTextFrameFormat::BorderStyle_Solid, BorderStyle_Double = QTextFrameFormat::BorderStyle_Double, BorderStyle_DotDash = QTextFrameFormat::BorderStyle_DotDash, BorderStyle_DotDotDash = QTextFrameFormat::BorderStyle_DotDotDash, BorderStyle_Groove = QTextFrameFormat::BorderStyle_Groove, BorderStyle_Ridge = QTextFrameFormat::BorderStyle_Ridge, BorderStyle_Inset = QTextFrameFormat::BorderStyle_Inset, BorderStyle_Outset = QTextFrameFormat::BorderStyle_Outset}; | ||||
public slots: | ||||
QTextFrameFormat* new_QTextFrameFormat(); | ||||
florianlink
|
r24 | QTextFrameFormat* new_QTextFrameFormat(const QTextFrameFormat& other) { | ||
PythonQtShell_QTextFrameFormat* a = new PythonQtShell_QTextFrameFormat(); | ||||
*((QTextFrameFormat*)a) = other; | ||||
return a; } | ||||
florianlink
|
r13 | void delete_QTextFrameFormat(QTextFrameFormat* obj) { delete obj; } | ||
florianlink
|
r73 | QTextLength width(QTextFrameFormat* theWrappedObject) const; | ||
void setWidth(QTextFrameFormat* theWrappedObject, const QTextLength& length); | ||||
qreal margin(QTextFrameFormat* theWrappedObject) const; | ||||
qreal padding(QTextFrameFormat* theWrappedObject) const; | ||||
florianlink
|
r13 | QBrush borderBrush(QTextFrameFormat* theWrappedObject) const; | ||
florianlink
|
r28 | void setPosition(QTextFrameFormat* theWrappedObject, QTextFrameFormat::Position f); | ||
florianlink
|
r73 | bool isValid(QTextFrameFormat* theWrappedObject) const; | ||
florianlink
|
r28 | void setBorderBrush(QTextFrameFormat* theWrappedObject, const QBrush& brush); | ||
qreal rightMargin(QTextFrameFormat* theWrappedObject) const; | ||||
florianlink
|
r73 | void setBorder(QTextFrameFormat* theWrappedObject, qreal border); | ||
void setWidth(QTextFrameFormat* theWrappedObject, qreal width); | ||||
florianlink
|
r28 | void setHeight(QTextFrameFormat* theWrappedObject, qreal height); | ||
void setHeight(QTextFrameFormat* theWrappedObject, const QTextLength& height); | ||||
florianlink
|
r73 | QTextFrameFormat::BorderStyle borderStyle(QTextFrameFormat* theWrappedObject) const; | ||
florianlink
|
r24 | QTextFrameFormat::Position position(QTextFrameFormat* theWrappedObject) const; | ||
florianlink
|
r73 | void setLeftMargin(QTextFrameFormat* theWrappedObject, qreal margin); | ||
qreal topMargin(QTextFrameFormat* theWrappedObject) const; | ||||
florianlink
|
r24 | qreal leftMargin(QTextFrameFormat* theWrappedObject) const; | ||
florianlink
|
r28 | void setTopMargin(QTextFrameFormat* theWrappedObject, qreal margin); | ||
void setPadding(QTextFrameFormat* theWrappedObject, qreal padding); | ||||
void setBorderStyle(QTextFrameFormat* theWrappedObject, QTextFrameFormat::BorderStyle style); | ||||
florianlink
|
r73 | QTextLength height(QTextFrameFormat* theWrappedObject) const; | ||
QTextFormat::PageBreakFlags pageBreakPolicy(QTextFrameFormat* theWrappedObject) const; | ||||
florianlink
|
r28 | void setMargin(QTextFrameFormat* theWrappedObject, qreal margin); | ||
florianlink
|
r73 | qreal border(QTextFrameFormat* theWrappedObject) const; | ||
florianlink
|
r24 | qreal bottomMargin(QTextFrameFormat* theWrappedObject) const; | ||
florianlink
|
r73 | void setPageBreakPolicy(QTextFrameFormat* theWrappedObject, QTextFormat::PageBreakFlags flags); | ||
void setRightMargin(QTextFrameFormat* theWrappedObject, qreal margin); | ||||
florianlink
|
r28 | void setBottomMargin(QTextFrameFormat* theWrappedObject, qreal margin); | ||
florianlink
|
r13 | }; | ||
#endif // PYTHONQTWRAPPER_QTEXTFRAMEFORMAT_H | ||||