PythonQtWrapper_QTextTable.h
61 lines
| 2.3 KiB
| text/x-c
|
CLexer
florianlink
|
r13 | #ifndef PYTHONQTWRAPPER_QTEXTTABLE_H | ||
#define PYTHONQTWRAPPER_QTEXTTABLE_H | ||||
#include <qtexttable.h> | ||||
#include <QObject> | ||||
florianlink
|
r24 | #include <PythonQt.h> | ||
florianlink
|
r13 | #include <QTextCursor> | ||
#include <QTextFrame> | ||||
#include <QVariant> | ||||
#include <qbytearray.h> | ||||
#include <qcoreevent.h> | ||||
#include <qlist.h> | ||||
#include <qobject.h> | ||||
#include <qtextcursor.h> | ||||
#include <qtextdocument.h> | ||||
#include <qtextformat.h> | ||||
#include <qtextobject.h> | ||||
#include <qtexttable.h> | ||||
florianlink
|
r24 | class PythonQtShell_QTextTable : public QTextTable | ||
{ | ||||
public: | ||||
PythonQtShell_QTextTable(QTextDocument* doc):QTextTable(doc),_wrapper(NULL) {}; | ||||
virtual void childEvent(QChildEvent* arg__1); | ||||
virtual void customEvent(QEvent* arg__1); | ||||
virtual bool event(QEvent* arg__1); | ||||
virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); | ||||
virtual void timerEvent(QTimerEvent* arg__1); | ||||
PythonQtInstanceWrapper* _wrapper; | ||||
}; | ||||
florianlink
|
r13 | class PythonQtWrapper_QTextTable : public QObject | ||
{ Q_OBJECT | ||||
public: | ||||
public slots: | ||||
QTextTable* new_QTextTable(QTextDocument* doc); | ||||
void delete_QTextTable(QTextTable* obj) { delete obj; } | ||||
florianlink
|
r28 | QTextTableCell cellAt(QTextTable* theWrappedObject, const QTextCursor& c) const; | ||
int rows(QTextTable* theWrappedObject) const; | ||||
florianlink
|
r24 | void insertRows(QTextTable* theWrappedObject, int pos, int num); | ||
florianlink
|
r28 | void mergeCells(QTextTable* theWrappedObject, int row, int col, int numRows, int numCols); | ||
int columns(QTextTable* theWrappedObject) const; | ||||
QTextCursor rowStart(QTextTable* theWrappedObject, const QTextCursor& c) const; | ||||
florianlink
|
r13 | QTextTableFormat format(QTextTable* theWrappedObject) const; | ||
void insertColumns(QTextTable* theWrappedObject, int pos, int num); | ||||
florianlink
|
r28 | QTextCursor rowEnd(QTextTable* theWrappedObject, const QTextCursor& c) const; | ||
void setFormat(QTextTable* theWrappedObject, const QTextTableFormat& format); | ||||
florianlink
|
r13 | void splitCell(QTextTable* theWrappedObject, int row, int col, int numRows, int numCols); | ||
florianlink
|
r24 | QTextTableCell cellAt(QTextTable* theWrappedObject, int position) const; | ||
florianlink
|
r28 | void removeColumns(QTextTable* theWrappedObject, int pos, int num); | ||
florianlink
|
r73 | void removeRows(QTextTable* theWrappedObject, int pos, int num); | ||
florianlink
|
r28 | void resize(QTextTable* theWrappedObject, int rows, int cols); | ||
florianlink
|
r73 | QTextTableCell cellAt(QTextTable* theWrappedObject, int row, int col) const; | ||
void mergeCells(QTextTable* theWrappedObject, const QTextCursor& cursor); | ||||
florianlink
|
r13 | }; | ||
#endif // PYTHONQTWRAPPER_QTEXTTABLE_H | ||||