##// END OF EJS Templates
fixed builtin package name...
fixed builtin package name git-svn-id: svn://svn.code.sf.net/p/pythonqt/code/trunk@130 ea8d5007-eb21-0410-b261-ccb3ea6e24a9

File last commit:

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