PythonQtWrapper_QTextDocument.cpp
524 lines
| 17.4 KiB
| text/x-c
|
CppLexer
florianlink
|
r13 | #include "PythonQtWrapper_QTextDocument.h" | ||
florianlink
|
r24 | #include <PythonQtSignalReceiver.h> | ||
#include <PythonQtMethodInfo.h> | ||||
#include <PythonQtConversion.h> | ||||
florianlink
|
r13 | #include <QTextBlock> | ||
#include <QTextCursor> | ||||
#include <QTextFormat> | ||||
#include <QVariant> | ||||
#include <qbytearray.h> | ||||
#include <qcoreevent.h> | ||||
#include <qfont.h> | ||||
#include <qlist.h> | ||||
#include <qobject.h> | ||||
#include <qpainter.h> | ||||
#include <qprinter.h> | ||||
#include <qrect.h> | ||||
#include <qregexp.h> | ||||
#include <qsize.h> | ||||
#include <qtextcursor.h> | ||||
#include <qtextdocument.h> | ||||
#include <qtextformat.h> | ||||
#include <qtextobject.h> | ||||
#include <qurl.h> | ||||
#include <qvector.h> | ||||
florianlink
|
r24 | void PythonQtShell_QTextDocument::childEvent(QChildEvent* arg__1) | ||
{ | ||||
if (_wrapper) { | ||||
PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); | ||||
PyErr_Clear(); | ||||
if (obj && !PythonQtSlotFunction_Check(obj)) { | ||||
florianlink
|
r73 | static const char* argumentList[] ={"" , "QChildEvent*"}; | ||
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); | ||||
florianlink
|
r24 | void* args[2] = {NULL, (void*)&arg__1}; | ||
PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); | ||||
if (result) { Py_DECREF(result); } | ||||
Py_DECREF(obj); | ||||
return; | ||||
} | ||||
} | ||||
QTextDocument::childEvent(arg__1); | ||||
} | ||||
void PythonQtShell_QTextDocument::clear() | ||||
{ | ||||
if (_wrapper) { | ||||
PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "clear"); | ||||
PyErr_Clear(); | ||||
if (obj && !PythonQtSlotFunction_Check(obj)) { | ||||
florianlink
|
r73 | static const char* argumentList[] ={""}; | ||
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); | ||||
florianlink
|
r24 | void* args[1] = {NULL}; | ||
PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); | ||||
if (result) { Py_DECREF(result); } | ||||
Py_DECREF(obj); | ||||
return; | ||||
} | ||||
} | ||||
QTextDocument::clear(); | ||||
} | ||||
QTextObject* PythonQtShell_QTextDocument::createObject(const QTextFormat& f) | ||||
{ | ||||
if (_wrapper) { | ||||
PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "createObject"); | ||||
PyErr_Clear(); | ||||
if (obj && !PythonQtSlotFunction_Check(obj)) { | ||||
florianlink
|
r73 | static const char* argumentList[] ={"QTextObject*" , "const QTextFormat&"}; | ||
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); | ||||
QTextObject* returnValue; | ||||
florianlink
|
r24 | void* args[2] = {NULL, (void*)&f}; | ||
PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); | ||||
if (result) { | ||||
args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); | ||||
if (args[0]!=&returnValue) { | ||||
florianlink
|
r73 | if (args[0]==NULL) { | ||
PythonQt::priv()->handleVirtualOverloadReturnError("createObject", methodInfo, result); | ||||
} else { | ||||
returnValue = *((QTextObject**)args[0]); | ||||
} | ||||
florianlink
|
r24 | } | ||
} | ||||
if (result) { Py_DECREF(result); } | ||||
Py_DECREF(obj); | ||||
return returnValue; | ||||
} | ||||
} | ||||
return QTextDocument::createObject(f); | ||||
} | ||||
void PythonQtShell_QTextDocument::customEvent(QEvent* arg__1) | ||||
{ | ||||
if (_wrapper) { | ||||
PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); | ||||
PyErr_Clear(); | ||||
if (obj && !PythonQtSlotFunction_Check(obj)) { | ||||
florianlink
|
r73 | static const char* argumentList[] ={"" , "QEvent*"}; | ||
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); | ||||
florianlink
|
r24 | void* args[2] = {NULL, (void*)&arg__1}; | ||
PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); | ||||
if (result) { Py_DECREF(result); } | ||||
Py_DECREF(obj); | ||||
return; | ||||
} | ||||
} | ||||
QTextDocument::customEvent(arg__1); | ||||
} | ||||
bool PythonQtShell_QTextDocument::event(QEvent* arg__1) | ||||
{ | ||||
if (_wrapper) { | ||||
PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); | ||||
PyErr_Clear(); | ||||
if (obj && !PythonQtSlotFunction_Check(obj)) { | ||||
florianlink
|
r73 | static const char* argumentList[] ={"bool" , "QEvent*"}; | ||
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); | ||||
bool returnValue; | ||||
florianlink
|
r24 | void* args[2] = {NULL, (void*)&arg__1}; | ||
PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); | ||||
if (result) { | ||||
args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); | ||||
if (args[0]!=&returnValue) { | ||||
florianlink
|
r73 | if (args[0]==NULL) { | ||
PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); | ||||
} else { | ||||
returnValue = *((bool*)args[0]); | ||||
} | ||||
florianlink
|
r24 | } | ||
} | ||||
if (result) { Py_DECREF(result); } | ||||
Py_DECREF(obj); | ||||
return returnValue; | ||||
} | ||||
} | ||||
return QTextDocument::event(arg__1); | ||||
} | ||||
bool PythonQtShell_QTextDocument::eventFilter(QObject* arg__1, QEvent* arg__2) | ||||
{ | ||||
if (_wrapper) { | ||||
PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); | ||||
PyErr_Clear(); | ||||
if (obj && !PythonQtSlotFunction_Check(obj)) { | ||||
florianlink
|
r73 | static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; | ||
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); | ||||
bool returnValue; | ||||
florianlink
|
r24 | void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; | ||
PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); | ||||
if (result) { | ||||
args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); | ||||
if (args[0]!=&returnValue) { | ||||
florianlink
|
r73 | if (args[0]==NULL) { | ||
PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); | ||||
} else { | ||||
returnValue = *((bool*)args[0]); | ||||
} | ||||
florianlink
|
r24 | } | ||
} | ||||
if (result) { Py_DECREF(result); } | ||||
Py_DECREF(obj); | ||||
return returnValue; | ||||
} | ||||
} | ||||
return QTextDocument::eventFilter(arg__1, arg__2); | ||||
} | ||||
QVariant PythonQtShell_QTextDocument::loadResource(int type, const QUrl& name) | ||||
{ | ||||
if (_wrapper) { | ||||
PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "loadResource"); | ||||
PyErr_Clear(); | ||||
if (obj && !PythonQtSlotFunction_Check(obj)) { | ||||
florianlink
|
r73 | static const char* argumentList[] ={"QVariant" , "int" , "const QUrl&"}; | ||
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); | ||||
QVariant returnValue; | ||||
florianlink
|
r24 | void* args[3] = {NULL, (void*)&type, (void*)&name}; | ||
PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); | ||||
if (result) { | ||||
args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); | ||||
if (args[0]!=&returnValue) { | ||||
florianlink
|
r73 | if (args[0]==NULL) { | ||
PythonQt::priv()->handleVirtualOverloadReturnError("loadResource", methodInfo, result); | ||||
} else { | ||||
returnValue = *((QVariant*)args[0]); | ||||
} | ||||
florianlink
|
r24 | } | ||
} | ||||
if (result) { Py_DECREF(result); } | ||||
Py_DECREF(obj); | ||||
return returnValue; | ||||
} | ||||
} | ||||
return QTextDocument::loadResource(type, name); | ||||
} | ||||
void PythonQtShell_QTextDocument::timerEvent(QTimerEvent* arg__1) | ||||
{ | ||||
if (_wrapper) { | ||||
PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); | ||||
PyErr_Clear(); | ||||
if (obj && !PythonQtSlotFunction_Check(obj)) { | ||||
florianlink
|
r73 | static const char* argumentList[] ={"" , "QTimerEvent*"}; | ||
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); | ||||
florianlink
|
r24 | void* args[2] = {NULL, (void*)&arg__1}; | ||
PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); | ||||
if (result) { Py_DECREF(result); } | ||||
Py_DECREF(obj); | ||||
return; | ||||
} | ||||
} | ||||
QTextDocument::timerEvent(arg__1); | ||||
} | ||||
florianlink
|
r13 | QTextDocument* PythonQtWrapper_QTextDocument::new_QTextDocument(QObject* parent) | ||
{ | ||||
florianlink
|
r24 | return new PythonQtShell_QTextDocument(parent); } | ||
florianlink
|
r13 | |||
QTextDocument* PythonQtWrapper_QTextDocument::new_QTextDocument(const QString& text, QObject* parent) | ||||
{ | ||||
florianlink
|
r24 | return new PythonQtShell_QTextDocument(text, parent); } | ||
florianlink
|
r13 | |||
florianlink
|
r73 | QTextFrame* PythonQtWrapper_QTextDocument::frameAt(QTextDocument* theWrappedObject, int pos) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->frameAt(pos)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | QSizeF PythonQtWrapper_QTextDocument::pageSize(QTextDocument* theWrappedObject) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->pageSize()); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | void PythonQtWrapper_QTextDocument::adjustSize(QTextDocument* theWrappedObject) | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | ( theWrappedObject->adjustSize()); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | QTextBlock PythonQtWrapper_QTextDocument::begin(QTextDocument* theWrappedObject) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->begin()); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | qreal PythonQtWrapper_QTextDocument::idealWidth(QTextDocument* theWrappedObject) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->idealWidth()); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | qreal PythonQtWrapper_QTextDocument::indentWidth(QTextDocument* theWrappedObject) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->indentWidth()); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | void PythonQtWrapper_QTextDocument::setPlainText(QTextDocument* theWrappedObject, const QString& text) | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | ( theWrappedObject->setPlainText(text)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | void PythonQtWrapper_QTextDocument::setHtml(QTextDocument* theWrappedObject, const QString& html) | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | ( theWrappedObject->setHtml(html)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | void PythonQtWrapper_QTextDocument::setMaximumBlockCount(QTextDocument* theWrappedObject, int maximum) | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | ( theWrappedObject->setMaximumBlockCount(maximum)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | QString PythonQtWrapper_QTextDocument::metaInformation(QTextDocument* theWrappedObject, QTextDocument::MetaInformation info) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->metaInformation(info)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | QTextBlock PythonQtWrapper_QTextDocument::lastBlock(QTextDocument* theWrappedObject) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->lastBlock()); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | QTextBlock PythonQtWrapper_QTextDocument::findBlock(QTextDocument* theWrappedObject, int pos) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->findBlock(pos)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | QTextBlock PythonQtWrapper_QTextDocument::end(QTextDocument* theWrappedObject) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->end()); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | bool PythonQtWrapper_QTextDocument::isEmpty(QTextDocument* theWrappedObject) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->isEmpty()); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | QTextObject* PythonQtWrapper_QTextDocument::objectForFormat(QTextDocument* theWrappedObject, const QTextFormat& arg__1) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->objectForFormat(arg__1)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | qreal PythonQtWrapper_QTextDocument::textWidth(QTextDocument* theWrappedObject) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->textWidth()); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | QTextObject* PythonQtWrapper_QTextDocument::createObject(QTextDocument* theWrappedObject, const QTextFormat& f) | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( ((PythonQtPublicPromoter_QTextDocument*)theWrappedObject)->promoted_createObject(f)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | QVector<QTextFormat > PythonQtWrapper_QTextDocument::allFormats(QTextDocument* theWrappedObject) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->allFormats()); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | void PythonQtWrapper_QTextDocument::undo(QTextDocument* theWrappedObject, QTextCursor* cursor) | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | ( theWrappedObject->undo(cursor)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | QString PythonQtWrapper_QTextDocument::toPlainText(QTextDocument* theWrappedObject) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->toPlainText()); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | QString PythonQtWrapper_QTextDocument::defaultStyleSheet(QTextDocument* theWrappedObject) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->defaultStyleSheet()); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | QAbstractTextDocumentLayout* PythonQtWrapper_QTextDocument::documentLayout(QTextDocument* theWrappedObject) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->documentLayout()); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | void PythonQtWrapper_QTextDocument::drawContents(QTextDocument* theWrappedObject, QPainter* painter, const QRectF& rect) | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | ( theWrappedObject->drawContents(painter, rect)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | QTextObject* PythonQtWrapper_QTextDocument::object(QTextDocument* theWrappedObject, int objectIndex) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->object(objectIndex)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | void PythonQtWrapper_QTextDocument::clear(QTextDocument* theWrappedObject) | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | ( ((PythonQtPublicPromoter_QTextDocument*)theWrappedObject)->promoted_clear()); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | void PythonQtWrapper_QTextDocument::markContentsDirty(QTextDocument* theWrappedObject, int from, int length) | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | ( theWrappedObject->markContentsDirty(from, length)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | int PythonQtWrapper_QTextDocument::pageCount(QTextDocument* theWrappedObject) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->pageCount()); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | void PythonQtWrapper_QTextDocument::setDefaultFont(QTextDocument* theWrappedObject, const QFont& font) | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | ( theWrappedObject->setDefaultFont(font)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | void PythonQtWrapper_QTextDocument::setDefaultStyleSheet(QTextDocument* theWrappedObject, const QString& sheet) | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | ( theWrappedObject->setDefaultStyleSheet(sheet)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | QVariant PythonQtWrapper_QTextDocument::resource(QTextDocument* theWrappedObject, int type, const QUrl& name) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->resource(type, name)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | void PythonQtWrapper_QTextDocument::setUndoRedoEnabled(QTextDocument* theWrappedObject, bool enable) | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | ( theWrappedObject->setUndoRedoEnabled(enable)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | QTextOption PythonQtWrapper_QTextDocument::defaultTextOption(QTextDocument* theWrappedObject) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->defaultTextOption()); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | QTextCursor PythonQtWrapper_QTextDocument::find(QTextDocument* theWrappedObject, const QRegExp& expr, int from, QTextDocument::FindFlags options) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->find(expr, from, options)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | bool PythonQtWrapper_QTextDocument::isUndoAvailable(QTextDocument* theWrappedObject) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->isUndoAvailable()); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | bool PythonQtWrapper_QTextDocument::isModified(QTextDocument* theWrappedObject) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->isModified()); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | void PythonQtWrapper_QTextDocument::setDocumentLayout(QTextDocument* theWrappedObject, QAbstractTextDocumentLayout* layout) | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | ( theWrappedObject->setDocumentLayout(layout)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | void PythonQtWrapper_QTextDocument::setTextWidth(QTextDocument* theWrappedObject, qreal width) | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | ( theWrappedObject->setTextWidth(width)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | void PythonQtWrapper_QTextDocument::addResource(QTextDocument* theWrappedObject, int type, const QUrl& name, const QVariant& resource) | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | ( theWrappedObject->addResource(type, name, resource)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | QTextCursor PythonQtWrapper_QTextDocument::find(QTextDocument* theWrappedObject, const QRegExp& expr, const QTextCursor& from, QTextDocument::FindFlags options) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->find(expr, from, options)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | void PythonQtWrapper_QTextDocument::setIndentWidth(QTextDocument* theWrappedObject, qreal width) | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | ( theWrappedObject->setIndentWidth(width)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | void PythonQtWrapper_QTextDocument::setUseDesignMetrics(QTextDocument* theWrappedObject, bool b) | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | ( theWrappedObject->setUseDesignMetrics(b)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | void PythonQtWrapper_QTextDocument::setDefaultTextOption(QTextDocument* theWrappedObject, const QTextOption& option) | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | ( theWrappedObject->setDefaultTextOption(option)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | QTextCursor PythonQtWrapper_QTextDocument::find(QTextDocument* theWrappedObject, const QString& subString, int from, QTextDocument::FindFlags options) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->find(subString, from, options)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | QTextDocument* PythonQtWrapper_QTextDocument::clone(QTextDocument* theWrappedObject, QObject* parent) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->clone(parent)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | void PythonQtWrapper_QTextDocument::setPageSize(QTextDocument* theWrappedObject, const QSizeF& size) | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | ( theWrappedObject->setPageSize(size)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | int PythonQtWrapper_QTextDocument::blockCount(QTextDocument* theWrappedObject) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->blockCount()); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | int PythonQtWrapper_QTextDocument::revision(QTextDocument* theWrappedObject) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->revision()); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | QTextCursor PythonQtWrapper_QTextDocument::find(QTextDocument* theWrappedObject, const QString& subString, const QTextCursor& from, QTextDocument::FindFlags options) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->find(subString, from, options)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | QTextBlock PythonQtWrapper_QTextDocument::firstBlock(QTextDocument* theWrappedObject) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->firstBlock()); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | QTextBlock PythonQtWrapper_QTextDocument::findBlockByNumber(QTextDocument* theWrappedObject, int blockNumber) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->findBlockByNumber(blockNumber)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | void PythonQtWrapper_QTextDocument::print(QTextDocument* theWrappedObject, QPrinter* printer) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | ( theWrappedObject->print(printer)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | void PythonQtWrapper_QTextDocument::redo(QTextDocument* theWrappedObject, QTextCursor* cursor) | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | ( theWrappedObject->redo(cursor)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | QTextFrame* PythonQtWrapper_QTextDocument::rootFrame(QTextDocument* theWrappedObject) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->rootFrame()); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | QSizeF PythonQtWrapper_QTextDocument::size(QTextDocument* theWrappedObject) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->size()); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | bool PythonQtWrapper_QTextDocument::isRedoAvailable(QTextDocument* theWrappedObject) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->isRedoAvailable()); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | QFont PythonQtWrapper_QTextDocument::defaultFont(QTextDocument* theWrappedObject) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->defaultFont()); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | QString PythonQtWrapper_QTextDocument::toHtml(QTextDocument* theWrappedObject, const QByteArray& encoding) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->toHtml(encoding)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | bool PythonQtWrapper_QTextDocument::useDesignMetrics(QTextDocument* theWrappedObject) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->useDesignMetrics()); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | int PythonQtWrapper_QTextDocument::maximumBlockCount(QTextDocument* theWrappedObject) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->maximumBlockCount()); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | void PythonQtWrapper_QTextDocument::setMetaInformation(QTextDocument* theWrappedObject, QTextDocument::MetaInformation info, const QString& arg__2) | ||
florianlink
|
r24 | { | ||
florianlink
|
r73 | ( theWrappedObject->setMetaInformation(info, arg__2)); | ||
florianlink
|
r24 | } | ||
florianlink
|
r73 | QVariant PythonQtWrapper_QTextDocument::loadResource(QTextDocument* theWrappedObject, int type, const QUrl& name) | ||
florianlink
|
r24 | { | ||
florianlink
|
r73 | return ( ((PythonQtPublicPromoter_QTextDocument*)theWrappedObject)->promoted_loadResource(type, name)); | ||
florianlink
|
r24 | } | ||
florianlink
|
r73 | bool PythonQtWrapper_QTextDocument::isUndoRedoEnabled(QTextDocument* theWrappedObject) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->isUndoRedoEnabled()); | ||
florianlink
|
r13 | } | ||