
// Auto generated

// include header:
//#include "qtextdocumentwrapper.h"
//#include "header_cpp.h"

#include "qtextdocument_wrapper.h"


// list of registered base casters for this wrapper class:
QList<RJSBasecaster_QTextDocument*> QTextDocument_Wrapper::basecasters_QTextDocument;

// static functions implementation in singleton wrapper:

// Class: QTextDocument
// Function: tr
// Source: QObject
// Static: true
// Parameters: 3
// preceding Parameters: -1

QJSValue
QTextDocument_WrapperSingleton::tr
(

    const QJSValue&
    a1,
    const QJSValue&
    a2,
    const QJSValue&
    a3
)

{

    // check parameter types:
    if (
        RJSHelper::is_char_ptr(handler, a1
                               , true

                              )

        && RJSHelper::is_char_ptr(handler, a2
                                  , true

                                 )

        && RJSHelper::is_int(handler, a3
                             , true

                            )


    ) {

        // prepare parameters:

        // convert js parameter to cpp: sourceText (char)


        // char pointer string:
        QByteArray a1_ba = RJSHelper::js2cpp_char_ptr(handler, a1).toLocal8Bit();
        const char* a1_cpp = a1_ba.constData();

        // convert js parameter to cpp:  (char)


        // char pointer string:
        QByteArray a2_ba = RJSHelper::js2cpp_char_ptr(handler, a2).toLocal8Bit();
        const char* a2_cpp = a2_ba.constData();

        // convert js parameter to cpp:  (int)

        int a3_cpp;


        if (a3.isUndefined()) {
            a3_cpp = -1;
        }
        else {
            a3_cpp = RJSHelper::js2cpp_int(handler, a3);
        }


        // call function:

        // static member function:
        // call base class static function:
        QString res =

            // call static member function:
            QObject::tr(
                a1_cpp
                , a2_cpp
                , a3_cpp

            );

        // return type: QString

        return RJSHelper::cpp2js_QString(
                   handler,
                   // non-copyable: false
                   res

               );

    }

    qWarning() << "no matching function variant found for tr";
    handler.trace();
    return QJSValue();

}

#ifndef QT_NO_CSSPARSER

#endif

#ifndef QT_NO_TEXTHTMLPARSER

#endif

#if QT_CONFIG(textmarkdownwriter)||QT_CONFIG(textmarkdownreader)

#endif

#if QT_CONFIG(textmarkdownwriter)

#endif

#if QT_CONFIG(textmarkdownreader)

#endif

#if QT_CONFIG(regularexpression)

#endif

#ifndef QT_NO_CSSPARSER

#endif

void QTextDocument_Wrapper::init(RJSApi& handler) {

    //qmlRegisterType<QTextDocument_Wrapper>("org.qcad", 1, 0, "QTextDocument_Wrapper");
    qmlRegisterInterface<QTextDocument_Wrapper>("QTextDocument_Wrapper", 1);


    QJSEngine* engine = handler.getEngine();


    // make type scriptable for JS files:
    QJSValue global = engine->globalObject();
    RJSType_QTextDocument* t = new RJSType_QTextDocument();
    global.setProperty("RJSType_QTextDocument", engine->newQObject(t));

    // initialize ID for this type:
    RJSType_QTextDocument::getIdStatic();



    // wrapper:
    QJSValue mo = engine->newQMetaObject(&QTextDocument_Wrapper::staticMetaObject);
    engine->globalObject().setProperty("QTextDocument_Wrapper", mo);



    // JS base class:
    //QJSValue mob = engine->newQMetaObject(&QTextDocument_BaseJs::staticMetaObject);
    //engine->globalObject().setProperty("QTextDocument_BaseJs", mob);

    // singleton wrapper:
    QJSValue mos = engine->newQMetaObject(&QTextDocument_WrapperSingleton::staticMetaObject);
    engine->globalObject().setProperty("QTextDocument_WrapperSingleton", mos);

    // create instance of singleton wrapper for static functions:
    QTextDocument_WrapperSingleton * s = new QTextDocument_WrapperSingleton(handler);
    engine->globalObject().setProperty("QTextDocument_WrapperSingletonInstance", engine->newQObject(s));
    QJSEngine::setObjectOwnership(s, QJSEngine::CppOwnership);

    QString fileName = ":generator/js/QTextDocument.js";
    QFile scriptFile(fileName);
    if (!scriptFile.open(QIODevice::ReadOnly)) {
        qWarning() << "JS script wrapper file not found:" << fileName;
        return;
    }
    QTextStream stream(&scriptFile);
    QString contents = stream.readAll();
    scriptFile.close();

    qDebug() << "Evaluating file: " << fileName;
    QJSValue result = engine->evaluate(contents, fileName);
    if (result.isError()) {
        qWarning()
                << "Uncaught exception at line"
                << result.property("lineNumber").toInt()
                << ":" << result.toString();
    }
}

/*
// special constructor used as prototype:
QTextDocument_Wrapper::QTextDocument_Wrapper(QJSEngine* e) : wrapped(nullptr), wrappedCreated(false) {
        //setObjectName("QTextDocument_Wrapper");
        setEngine(e);

        // signal forwarding:
        //initConnections();
      }

*/


// special constructor to wrap existing object:
QTextDocument_Wrapper::QTextDocument_Wrapper(RJSApi& h, QTextDocument* o, bool wrappedCreated) : RJSWrapperObj(h), wrapped(o), wrappedCreated(wrappedCreated) {
    //RDebug::incCounter(QString("QTextDocument_Wrapper_") + handler.getEngine()->objectName());
    //RDebug::incCounter(QString("QTextDocument_Wrapper"));
    //setObjectName("QTextDocument_Wrapper");
    //setHandler(h);

    // signal forwarding:
    initConnections();
}


// destructor:
QTextDocument_Wrapper::~QTextDocument_Wrapper() {
    //RDebug::decCounter(QString("QTextDocument_Wrapper_") + handler.getEngine()->objectName());
    //RDebug::decCounter(QString("QTextDocument_Wrapper"));

    //qDebug() << "QTextDocument_Wrapper::~QTextDocument_Wrapper";

    // tell script handler that this wrapper no longer exists:
    handler.unregisterWrapper(*this);


    if (wrappedCreated) {

        // never delete wrapped object (non-copyable, CPP ownership or private destructor)
        //qDebug() << "NOT deleting instance of QTextDocument";

    }

}

// initialization of signal forwarding

void QTextDocument_Wrapper::initConnections() {

    //setObjectName("QTextDocument_Wrapper");

    // tell script handler that this wrapper needs to be deleted if the engine is deleted:
    handler.registerWrapper(*this);


    // wrapped object is a QObject and not a wrapper for a null pointer:
    // wrapper is managed by the QObject as child:
    if (hasWrapped()) {
        QJSEngine::setObjectOwnership(this, QJSEngine::CppOwnership);
    }


    if (hasWrapped()) {

        // set parent of wrapper to wrapped:
        // wrapper can be looked up for object:
        QVariant vThis = QVariant::fromValue(this);
        getWrapped()->setProperty("__wrapper__",  vThis);

        // make sure wrapper is deleted when object is deleted:
        // make sure wrapper stays alive as long as the wrapped stays alive::
        QObject::setParent(getWrapped());

        // set up signal forwarding:

        connect(
            getWrapped(),
            SIGNAL(contentsChange(int, int, int)),
            this,
            SLOT(contentsChangeEmitter(int, int, int))
        );

        connect(
            getWrapped(),
            SIGNAL(contentsChanged()),
            this,
            SLOT(contentsChangedEmitter())
        );

        connect(
            getWrapped(),
            SIGNAL(undoAvailable(bool)),
            this,
            SLOT(undoAvailableEmitter(bool))
        );

        connect(
            getWrapped(),
            SIGNAL(redoAvailable(bool)),
            this,
            SLOT(redoAvailableEmitter(bool))
        );

        connect(
            getWrapped(),
            SIGNAL(undoCommandAdded()),
            this,
            SLOT(undoCommandAddedEmitter())
        );

        connect(
            getWrapped(),
            SIGNAL(modificationChanged(bool)),
            this,
            SLOT(modificationChangedEmitter(bool))
        );

        connect(
            getWrapped(),
            SIGNAL(cursorPositionChanged(const QTextCursor&)),
            this,
            SLOT(cursorPositionChangedEmitter(const QTextCursor&))
        );

        connect(
            getWrapped(),
            SIGNAL(blockCountChanged(int)),
            this,
            SLOT(blockCountChangedEmitter(int))
        );

        connect(
            getWrapped(),
            SIGNAL(baseUrlChanged(const QUrl&)),
            this,
            SLOT(baseUrlChangedEmitter(const QUrl&))
        );

        connect(
            getWrapped(),
            SIGNAL(documentLayoutChanged()),
            this,
            SLOT(documentLayoutChangedEmitter())
        );

        /*
        connect(
          getWrapped(),
          SIGNAL(destroyed(QObject*)),
          &handler,
          SLOT(slotDestroyed(QObject*))
        );
        */

    }
}


// constructors:

#ifndef QT_NO_CSSPARSER

#endif

// Class: QTextDocument
// Function:
// Source:
// Static: false
// Parameters: 2
// preceding Parameters: -1
QTextDocument_Wrapper::QTextDocument_Wrapper

(

    // RJSApi:
    QObject* h
    ,
    const QJSValue&
    a1,
    const QJSValue&
    a2
)

    : RJSWrapperObj(*(RJSApi*)h)

{

    //RDebug::incCounter(QString("QTextDocument_Wrapper_") + handler.getEngine()->objectName());
    //RDebug::incCounter(QString("QTextDocument_Wrapper"));

    // check parameter types:
    if (
        RJSHelper::is_QString(handler, a1
                             )

        && RJSHelper::is_QObject_ptr(handler, a2
                                     , true

                                    )


    ) {

        // prepare parameters:

        // convert js parameter to cpp: text (QString)

        QString a1_cpp;

        a1_cpp = RJSHelper::js2cpp_QString(handler, a1);

        // convert js parameter to cpp: parent (QObject)


        // pointer:
        QObject*
        a2_cpp;


        if (a2.isUndefined()) {
            a2_cpp = nullptr;
        }
        else {
            a2_cpp = RJSHelper::js2cpp_QObject_ptr(handler, a2);
        }


        // call function:

        // construct wrapper:


        wrapped = new QTextDocument_Base(
            handler

            ,
            a1_cpp
            , a2_cpp

        );
        wrappedCreated = true;

        // set handler for wrapped base object:
        //((QTextDocument_Base*)wrapped)->setHandler(handler);

        // store self to call into JS:
        ((QTextDocument_Base*)wrapped)->self = handler.getSelf();


        // signal forwarding:
        // TODO
        //connect(wrapped, SIGNAL(triggered(bool)), this, SLOT(triggeredEmitter(bool)));
        initConnections();
        return;


    }

    // check parameter types:
    if (
        RJSHelper::is_QObject_ptr(handler, a1
                                  , true

                                 )


    ) {

        // prepare parameters:

        // convert js parameter to cpp: parent (QObject)


        // pointer:
        QObject*
        a1_cpp;


        if (a1.isUndefined()) {
            a1_cpp = nullptr;
        }
        else {
            a1_cpp = RJSHelper::js2cpp_QObject_ptr(handler, a1);
        }


        // call function:

        // construct wrapper:


        wrapped = new QTextDocument_Base(
            handler

            ,
            a1_cpp

        );
        wrappedCreated = true;

        // set handler for wrapped base object:
        //((QTextDocument_Base*)wrapped)->setHandler(handler);

        // store self to call into JS:
        ((QTextDocument_Base*)wrapped)->self = handler.getSelf();


        // signal forwarding:
        // TODO
        //connect(wrapped, SIGNAL(triggered(bool)), this, SLOT(triggeredEmitter(bool)));
        initConnections();
        return;


    }

    // no constructor without arguments defined
    // allow constructor for prototype objects without args:
    if (
        a1.isUndefined()
        && a2.isUndefined()

    ) {
        wrapped = nullptr;
        wrappedCreated = false;
        return;
    }


    qWarning() << "no matching constructor variant found for QTextDocument";
    wrapped = nullptr;
    wrappedCreated = false;
    handler.trace();

}

#ifndef QT_NO_TEXTHTMLPARSER

#endif

#if QT_CONFIG(textmarkdownwriter)||QT_CONFIG(textmarkdownreader)

#endif

#if QT_CONFIG(textmarkdownwriter)

#endif

#if QT_CONFIG(textmarkdownreader)

#endif

#if QT_CONFIG(regularexpression)

#endif

#ifndef QT_NO_CSSPARSER

#endif


// non-static functions:

// Class: QTextDocument
// Function: objectName
// Source: QObject
// Static: false
// Parameters: 0
// preceding Parameters: -1

QJSValue
QTextDocument_Wrapper::objectName
(

)

const

{

    {


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        //setRecFlag(true);

        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QTextDocument* w = getWrapped();
        QString res =

            w->objectName(

            );

        //setRecFlag(false);

        // return type: QString

        return RJSHelper::cpp2js_QString(
                   handler,
                   // non-copyable: false
                   res

               );

    }

    qWarning() << "no matching function variant found for objectName";
    handler.trace();
    return QJSValue();

}

// Class: QTextDocument
// Function: setObjectName
// Source: QObject
// Static: false
// Parameters: 1
// preceding Parameters: -1

QJSValue
QTextDocument_Wrapper::setObjectName
(

    const QJSValue&
    a1
)

{

    // check parameter types:
    if (
        RJSHelper::is_QString(handler, a1
                             )


    ) {

        // prepare parameters:

        // convert js parameter to cpp: name (QString)

        QString a1_cpp;

        a1_cpp = RJSHelper::js2cpp_QString(handler, a1);


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        //setRecFlag(true);

        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QTextDocument* w = getWrapped();

        w->setObjectName(
            a1_cpp

        );

        //setRecFlag(false);

        return QJSValue();

    }

    qWarning() << "no matching function variant found for setObjectName";
    handler.trace();
    return QJSValue();

}

// Class: QTextDocument
// Function: isWidgetType
// Source: QObject
// Static: false
// Parameters: 0
// preceding Parameters: -1

QJSValue
QTextDocument_Wrapper::isWidgetType
(

)

const

{

    {


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        //setRecFlag(true);

        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QTextDocument* w = getWrapped();
        bool res =

            w->isWidgetType(

            );

        //setRecFlag(false);

        // return type: bool

        return RJSHelper::cpp2js_bool(
                   handler,
                   // non-copyable: false
                   res

               );

    }

    qWarning() << "no matching function variant found for isWidgetType";
    handler.trace();
    return QJSValue();

}

// Class: QTextDocument
// Function: isWindowType
// Source: QObject
// Static: false
// Parameters: 0
// preceding Parameters: -1

QJSValue
QTextDocument_Wrapper::isWindowType
(

)

const

{

    {


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        //setRecFlag(true);

        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QTextDocument* w = getWrapped();
        bool res =

            w->isWindowType(

            );

        //setRecFlag(false);

        // return type: bool

        return RJSHelper::cpp2js_bool(
                   handler,
                   // non-copyable: false
                   res

               );

    }

    qWarning() << "no matching function variant found for isWindowType";
    handler.trace();
    return QJSValue();

}

// Class: QTextDocument
// Function: signalsBlocked
// Source: QObject
// Static: false
// Parameters: 0
// preceding Parameters: -1

QJSValue
QTextDocument_Wrapper::signalsBlocked
(

)

const

{

    {


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        //setRecFlag(true);

        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QTextDocument* w = getWrapped();
        bool res =

            w->signalsBlocked(

            );

        //setRecFlag(false);

        // return type: bool

        return RJSHelper::cpp2js_bool(
                   handler,
                   // non-copyable: false
                   res

               );

    }

    qWarning() << "no matching function variant found for signalsBlocked";
    handler.trace();
    return QJSValue();

}

// Class: QTextDocument
// Function: blockSignals
// Source: QObject
// Static: false
// Parameters: 1
// preceding Parameters: -1

QJSValue
QTextDocument_Wrapper::blockSignals
(

    const QJSValue&
    a1
)

{

    // check parameter types:
    if (
        RJSHelper::is_bool(handler, a1
                          )


    ) {

        // prepare parameters:

        // convert js parameter to cpp: b (bool)

        bool a1_cpp;

        a1_cpp = RJSHelper::js2cpp_bool(handler, a1);


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        //setRecFlag(true);

        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QTextDocument* w = getWrapped();
        bool res =

            w->blockSignals(
                a1_cpp

            );

        //setRecFlag(false);

        // return type: bool

        return RJSHelper::cpp2js_bool(
                   handler,
                   // non-copyable: false
                   res

               );

    }

    qWarning() << "no matching function variant found for blockSignals";
    handler.trace();
    return QJSValue();

}

// Class: QTextDocument
// Function: findChild
// Source: QObject
// Static: false
// Parameters: 2
// preceding Parameters: -1

QJSValue
QTextDocument_Wrapper::findChild
(

    const QJSValue&
    a1,
    const QJSValue&
    a2
)

const

{

    // check parameter types:
    if (
        RJSHelper::is_QString(handler, a1
                              , true

                             )

        && RJSHelper::is_Qt_FindChildOptions(handler, a2
                , true

                                            )


    ) {

        // prepare parameters:

        // convert js parameter to cpp: aName (QString)

        QString a1_cpp;


        if (a1.isUndefined()) {
            a1_cpp = QString();
        }
        else {
            a1_cpp = RJSHelper::js2cpp_QString(handler, a1);
        }

        // convert js parameter to cpp: options (Qt::FindChildOptions)

        Qt::FindChildOptions a2_cpp;


        if (a2.isUndefined()) {
            a2_cpp = Qt::FindChildrenRecursively;
        }
        else {
            a2_cpp = RJSHelper::js2cpp_Qt_FindChildOptions(handler, a2);
        }


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        //setRecFlag(true);

        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QTextDocument* w = getWrapped();
        QObject* res =

            w->findChild<QObject*>(
                a1_cpp
                , a2_cpp

            );

        //setRecFlag(false);

        // return type: QObject*

        return RJSHelper::cpp2js_QObject(
                   handler,
                   // non-copyable: true
                   res

               );

    }

    qWarning() << "no matching function variant found for findChild";
    handler.trace();
    return QJSValue();

}

// Class: QTextDocument
// Function: children
// Source: QObject
// Static: false
// Parameters: 0
// preceding Parameters: -1

QJSValue
QTextDocument_Wrapper::children
(

)

const

{

    {


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        //setRecFlag(true);

        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QTextDocument* w = getWrapped();

        // return type is reference:
        // use pointer instead 3:
        const QObjectList* res =
            &
            w->children(

            );

        //setRecFlag(false);

        // return type: const QObjectList&

        return RJSHelper::cpp2js_QObjectList(
                   handler,
                   // non-copyable: false
                   // return type is reference, type is copyable:
                   // convert pointer back to reference:
                   *res

               );

    }

    qWarning() << "no matching function variant found for children";
    handler.trace();
    return QJSValue();

}

// Class: QTextDocument
// Function: setParent
// Source: QObject
// Static: false
// Parameters: 1
// preceding Parameters: -1

QJSValue
QTextDocument_Wrapper::setParent
(

    const QJSValue&
    a1
)

{

    // check parameter types:
    if (
        RJSHelper::is_QObject_ptr(handler, a1
                                  , true

                                 )


    ) {

        // prepare parameters:

        // convert js parameter to cpp: parent (QObject)


        // pointer:
        QObject*
        a1_cpp;

        a1_cpp = RJSHelper::js2cpp_QObject_ptr(handler, a1);


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        //setRecFlag(true);

        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QTextDocument* w = getWrapped();

        w->setParent(
            a1_cpp

        );

        //setRecFlag(false);

        return QJSValue();

    }

    qWarning() << "no matching function variant found for setParent";
    handler.trace();
    return QJSValue();

}

// Class: QTextDocument
// Function: installEventFilter
// Source: QObject
// Static: false
// Parameters: 1
// preceding Parameters: -1

QJSValue
QTextDocument_Wrapper::installEventFilter
(

    const QJSValue&
    a1
)

{

    // check parameter types:
    if (
        RJSHelper::is_QObject_ptr(handler, a1
                                  , true

                                 )


    ) {

        // prepare parameters:

        // convert js parameter to cpp: filterObj (QObject)


        // pointer:
        QObject*
        a1_cpp;

        a1_cpp = RJSHelper::js2cpp_QObject_ptr(handler, a1);


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        //setRecFlag(true);

        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QTextDocument* w = getWrapped();

        w->installEventFilter(
            a1_cpp

        );

        //setRecFlag(false);

        return QJSValue();

    }

    qWarning() << "no matching function variant found for installEventFilter";
    handler.trace();
    return QJSValue();

}

// Class: QTextDocument
// Function: removeEventFilter
// Source: QObject
// Static: false
// Parameters: 1
// preceding Parameters: -1

QJSValue
QTextDocument_Wrapper::removeEventFilter
(

    const QJSValue&
    a1
)

{

    // check parameter types:
    if (
        RJSHelper::is_QObject_ptr(handler, a1
                                  , true

                                 )


    ) {

        // prepare parameters:

        // convert js parameter to cpp: obj (QObject)


        // pointer:
        QObject*
        a1_cpp;

        a1_cpp = RJSHelper::js2cpp_QObject_ptr(handler, a1);


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        //setRecFlag(true);

        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QTextDocument* w = getWrapped();

        w->removeEventFilter(
            a1_cpp

        );

        //setRecFlag(false);

        return QJSValue();

    }

    qWarning() << "no matching function variant found for removeEventFilter";
    handler.trace();
    return QJSValue();

}

// Class: QTextDocument
// Function: dumpObjectTree
// Source: QObject
// Static: false
// Parameters: 0
// preceding Parameters: -1

QJSValue
QTextDocument_Wrapper::dumpObjectTree
(

)

{

    {


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        //setRecFlag(true);

        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QTextDocument* w = getWrapped();

        w->dumpObjectTree(

        );

        //setRecFlag(false);

        return QJSValue();

    }

    {


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        //setRecFlag(true);

        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QTextDocument* w = getWrapped();

        w->dumpObjectTree(

        );

        //setRecFlag(false);

        return QJSValue();

    }

    qWarning() << "no matching function variant found for dumpObjectTree";
    handler.trace();
    return QJSValue();

}

// Class: QTextDocument
// Function: dumpObjectInfo
// Source: QObject
// Static: false
// Parameters: 0
// preceding Parameters: -1

QJSValue
QTextDocument_Wrapper::dumpObjectInfo
(

)

{

    {


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        //setRecFlag(true);

        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QTextDocument* w = getWrapped();

        w->dumpObjectInfo(

        );

        //setRecFlag(false);

        return QJSValue();

    }

    {


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        //setRecFlag(true);

        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QTextDocument* w = getWrapped();

        w->dumpObjectInfo(

        );

        //setRecFlag(false);

        return QJSValue();

    }

    qWarning() << "no matching function variant found for dumpObjectInfo";
    handler.trace();
    return QJSValue();

}

// Class: QTextDocument
// Function: setProperty
// Source: QObject
// Static: false
// Parameters: 2
// preceding Parameters: -1

QJSValue
QTextDocument_Wrapper::setProperty
(

    const QJSValue&
    a1,
    const QJSValue&
    a2
)

{

    // check parameter types:
    if (
        RJSHelper::is_char_ptr(handler, a1
                               , true

                              )

        && RJSHelper::is_QVariant(handler, a2
                                 )


    ) {

        // prepare parameters:

        // convert js parameter to cpp: name (char)


        // char pointer string:
        QByteArray a1_ba = RJSHelper::js2cpp_char_ptr(handler, a1).toLocal8Bit();
        const char* a1_cpp = a1_ba.constData();

        // convert js parameter to cpp: value (QVariant)

        QVariant a2_cpp;

        a2_cpp = RJSHelper::js2cpp_QVariant(handler, a2);


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        //setRecFlag(true);

        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QTextDocument* w = getWrapped();
        bool res =

            w->setProperty(
                a1_cpp
                , a2_cpp

            );

        //setRecFlag(false);

        // return type: bool

        return RJSHelper::cpp2js_bool(
                   handler,
                   // non-copyable: false
                   res

               );

    }

    qWarning() << "no matching function variant found for setProperty";
    handler.trace();
    return QJSValue();

}

// Class: QTextDocument
// Function: property
// Source: QObject
// Static: false
// Parameters: 1
// preceding Parameters: -1

QJSValue
QTextDocument_Wrapper::property
(

    const QJSValue&
    a1
)

const

{

    // check parameter types:
    if (
        RJSHelper::is_char_ptr(handler, a1
                               , true

                              )


    ) {

        // prepare parameters:

        // convert js parameter to cpp: name (char)


        // char pointer string:
        QByteArray a1_ba = RJSHelper::js2cpp_char_ptr(handler, a1).toLocal8Bit();
        const char* a1_cpp = a1_ba.constData();


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        //setRecFlag(true);

        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QTextDocument* w = getWrapped();
        QVariant res =

            w->property(
                a1_cpp

            );

        //setRecFlag(false);

        // return type: QVariant

        return RJSHelper::cpp2js_QVariant(
                   handler,
                   // non-copyable: false
                   res

               );

    }

    qWarning() << "no matching function variant found for property";
    handler.trace();
    return QJSValue();

}

// Class: QTextDocument
// Function: dynamicPropertyNames
// Source: QObject
// Static: false
// Parameters: 0
// preceding Parameters: -1

QJSValue
QTextDocument_Wrapper::dynamicPropertyNames
(

)

const

{

    {


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        //setRecFlag(true);

        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QTextDocument* w = getWrapped();
        QList<QByteArray> res =

            w->dynamicPropertyNames(

            );

        //setRecFlag(false);

        // return type: QList<QByteArray>

        return RJSHelper::cpp2js_QList_QByteArray(
                   handler,
                   // non-copyable: false
                   res

               );

    }

    qWarning() << "no matching function variant found for dynamicPropertyNames";
    handler.trace();
    return QJSValue();

}

// Class: QTextDocument
// Function: parent
// Source: QObject
// Static: false
// Parameters: 0
// preceding Parameters: -1

QJSValue
QTextDocument_Wrapper::parent
(

)

const

{

    {


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        //setRecFlag(true);

        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QTextDocument* w = getWrapped();
        QObject* res =

            w->parent(

            );

        //setRecFlag(false);

        // return type: QObject*

        return RJSHelper::cpp2js_QObject(
                   handler,
                   // non-copyable: true
                   res

               );

    }

    qWarning() << "no matching function variant found for parent";
    handler.trace();
    return QJSValue();

}

// Class: QTextDocument
// Function: deleteLater
// Source: QObject
// Static: false
// Parameters: 0
// preceding Parameters: -1

QJSValue
QTextDocument_Wrapper::deleteLater
(

)

{

    {


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        //setRecFlag(true);

        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QTextDocument* w = getWrapped();

        w->deleteLater(

        );

        //setRecFlag(false);

        return QJSValue();

    }

    qWarning() << "no matching function variant found for deleteLater";
    handler.trace();
    return QJSValue();

}

#ifndef QT_NO_CSSPARSER

#endif

// Class: QTextDocument
// Function: clone
// Source:
// Static: false
// Parameters: 1
// preceding Parameters: -1

QJSValue
QTextDocument_Wrapper::clone
(

    const QJSValue&
    a1
)

const

{

    // check parameter types:
    if (
        RJSHelper::is_QObject_ptr(handler, a1
                                  , true

                                 )


    ) {

        // prepare parameters:

        // convert js parameter to cpp: parent (QObject)


        // pointer:
        QObject*
        a1_cpp;


        if (a1.isUndefined()) {
            a1_cpp = nullptr;
        }
        else {
            a1_cpp = RJSHelper::js2cpp_QObject_ptr(handler, a1);
        }


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        //setRecFlag(true);

        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QTextDocument* w = getWrapped();
        QTextDocument* res =

            w->clone(
                a1_cpp

            );

        //setRecFlag(false);

        // return type: QTextDocument*

        return RJSHelper::cpp2js_QTextDocument(
                   handler,
                   // non-copyable: true
                   res

               );

    }

    qWarning() << "no matching function variant found for clone";
    handler.trace();
    return QJSValue();

}

// Class: QTextDocument
// Function: isEmpty
// Source:
// Static: false
// Parameters: 0
// preceding Parameters: -1

QJSValue
QTextDocument_Wrapper::isEmpty
(

)

const

{

    {


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        //setRecFlag(true);

        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QTextDocument* w = getWrapped();
        bool res =

            w->isEmpty(

            );

        //setRecFlag(false);

        // return type: bool

        return RJSHelper::cpp2js_bool(
                   handler,
                   // non-copyable: false
                   res

               );

    }

    qWarning() << "no matching function variant found for isEmpty";
    handler.trace();
    return QJSValue();

}

// Class: QTextDocument
// Function: clear
// Source:
// Static: false
// Parameters: 0
// preceding Parameters: -1

QJSValue
QTextDocument_Wrapper::clear
(

)

{

    {


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        //setRecFlag(true);

        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QTextDocument* w = getWrapped();

        w->clear(

        );

        //setRecFlag(false);

        return QJSValue();

    }

    qWarning() << "no matching function variant found for clear";
    handler.trace();
    return QJSValue();

}

// Class: QTextDocument
// Function: setUndoRedoEnabled
// Source:
// Static: false
// Parameters: 1
// preceding Parameters: -1

QJSValue
QTextDocument_Wrapper::setUndoRedoEnabled
(

    const QJSValue&
    a1
)

{

    // check parameter types:
    if (
        RJSHelper::is_bool(handler, a1
                          )


    ) {

        // prepare parameters:

        // convert js parameter to cpp: enable (bool)

        bool a1_cpp;

        a1_cpp = RJSHelper::js2cpp_bool(handler, a1);


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        //setRecFlag(true);

        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QTextDocument* w = getWrapped();

        w->setUndoRedoEnabled(
            a1_cpp

        );

        //setRecFlag(false);

        return QJSValue();

    }

    qWarning() << "no matching function variant found for setUndoRedoEnabled";
    handler.trace();
    return QJSValue();

}

// Class: QTextDocument
// Function: isUndoRedoEnabled
// Source:
// Static: false
// Parameters: 0
// preceding Parameters: -1

QJSValue
QTextDocument_Wrapper::isUndoRedoEnabled
(

)

const

{

    {


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        //setRecFlag(true);

        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QTextDocument* w = getWrapped();
        bool res =

            w->isUndoRedoEnabled(

            );

        //setRecFlag(false);

        // return type: bool

        return RJSHelper::cpp2js_bool(
                   handler,
                   // non-copyable: false
                   res

               );

    }

    qWarning() << "no matching function variant found for isUndoRedoEnabled";
    handler.trace();
    return QJSValue();

}

// Class: QTextDocument
// Function: isUndoAvailable
// Source:
// Static: false
// Parameters: 0
// preceding Parameters: -1

QJSValue
QTextDocument_Wrapper::isUndoAvailable
(

)

const

{

    {


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        //setRecFlag(true);

        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QTextDocument* w = getWrapped();
        bool res =

            w->isUndoAvailable(

            );

        //setRecFlag(false);

        // return type: bool

        return RJSHelper::cpp2js_bool(
                   handler,
                   // non-copyable: false
                   res

               );

    }

    qWarning() << "no matching function variant found for isUndoAvailable";
    handler.trace();
    return QJSValue();

}

// Class: QTextDocument
// Function: isRedoAvailable
// Source:
// Static: false
// Parameters: 0
// preceding Parameters: -1

QJSValue
QTextDocument_Wrapper::isRedoAvailable
(

)

const

{

    {


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        //setRecFlag(true);

        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QTextDocument* w = getWrapped();
        bool res =

            w->isRedoAvailable(

            );

        //setRecFlag(false);

        // return type: bool

        return RJSHelper::cpp2js_bool(
                   handler,
                   // non-copyable: false
                   res

               );

    }

    qWarning() << "no matching function variant found for isRedoAvailable";
    handler.trace();
    return QJSValue();

}

// Class: QTextDocument
// Function: availableUndoSteps
// Source:
// Static: false
// Parameters: 0
// preceding Parameters: -1

QJSValue
QTextDocument_Wrapper::availableUndoSteps
(

)

const

{

    {


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        //setRecFlag(true);

        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QTextDocument* w = getWrapped();
        int res =

            w->availableUndoSteps(

            );

        //setRecFlag(false);

        // return type: int

        return RJSHelper::cpp2js_int(
                   handler,
                   // non-copyable: false
                   res

               );

    }

    qWarning() << "no matching function variant found for availableUndoSteps";
    handler.trace();
    return QJSValue();

}

// Class: QTextDocument
// Function: availableRedoSteps
// Source:
// Static: false
// Parameters: 0
// preceding Parameters: -1

QJSValue
QTextDocument_Wrapper::availableRedoSteps
(

)

const

{

    {


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        //setRecFlag(true);

        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QTextDocument* w = getWrapped();
        int res =

            w->availableRedoSteps(

            );

        //setRecFlag(false);

        // return type: int

        return RJSHelper::cpp2js_int(
                   handler,
                   // non-copyable: false
                   res

               );

    }

    qWarning() << "no matching function variant found for availableRedoSteps";
    handler.trace();
    return QJSValue();

}

// Class: QTextDocument
// Function: revision
// Source:
// Static: false
// Parameters: 0
// preceding Parameters: -1

QJSValue
QTextDocument_Wrapper::revision
(

)

const

{

    {


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        //setRecFlag(true);

        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QTextDocument* w = getWrapped();
        int res =

            w->revision(

            );

        //setRecFlag(false);

        // return type: int

        return RJSHelper::cpp2js_int(
                   handler,
                   // non-copyable: false
                   res

               );

    }

    qWarning() << "no matching function variant found for revision";
    handler.trace();
    return QJSValue();

}

// Class: QTextDocument
// Function: setMetaInformation
// Source:
// Static: false
// Parameters: 2
// preceding Parameters: -1

QJSValue
QTextDocument_Wrapper::setMetaInformation
(

    const QJSValue&
    a1,
    const QJSValue&
    a2
)

{

    // check parameter types:
    if (
        RJSHelper::is_QTextDocument_MetaInformation(handler, a1
                                                   )

        && RJSHelper::is_QString(handler, a2
                                )


    ) {

        // prepare parameters:

        // convert js parameter to cpp: info (QTextDocument::MetaInformation)

        QTextDocument::MetaInformation a1_cpp;

        a1_cpp = RJSHelper::js2cpp_QTextDocument_MetaInformation(handler, a1);

        // convert js parameter to cpp:  (QString)

        QString a2_cpp;

        a2_cpp = RJSHelper::js2cpp_QString(handler, a2);


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        //setRecFlag(true);

        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QTextDocument* w = getWrapped();

        w->setMetaInformation(
            a1_cpp
            , a2_cpp

        );

        //setRecFlag(false);

        return QJSValue();

    }

    qWarning() << "no matching function variant found for setMetaInformation";
    handler.trace();
    return QJSValue();

}

// Class: QTextDocument
// Function: metaInformation
// Source:
// Static: false
// Parameters: 1
// preceding Parameters: -1

QJSValue
QTextDocument_Wrapper::metaInformation
(

    const QJSValue&
    a1
)

const

{

    // check parameter types:
    if (
        RJSHelper::is_QTextDocument_MetaInformation(handler, a1
                                                   )


    ) {

        // prepare parameters:

        // convert js parameter to cpp: info (QTextDocument::MetaInformation)

        QTextDocument::MetaInformation a1_cpp;

        a1_cpp = RJSHelper::js2cpp_QTextDocument_MetaInformation(handler, a1);


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        //setRecFlag(true);

        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QTextDocument* w = getWrapped();
        QString res =

            w->metaInformation(
                a1_cpp

            );

        //setRecFlag(false);

        // return type: QString

        return RJSHelper::cpp2js_QString(
                   handler,
                   // non-copyable: false
                   res

               );

    }

    qWarning() << "no matching function variant found for metaInformation";
    handler.trace();
    return QJSValue();

}

#ifndef QT_NO_TEXTHTMLPARSER

// Class: QTextDocument
// Function: toHtml
// Source:
// Static: false
// Parameters: 0
// preceding Parameters: -1

QJSValue
QTextDocument_Wrapper::toHtml
(

)

const

{

    {


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        //setRecFlag(true);

        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QTextDocument* w = getWrapped();
        QString res =

            w->toHtml(

            );

        //setRecFlag(false);

        // return type: QString

        return RJSHelper::cpp2js_QString(
                   handler,
                   // non-copyable: false
                   res

               );

    }

    qWarning() << "no matching function variant found for toHtml";
    handler.trace();
    return QJSValue();

}

// Class: QTextDocument
// Function: setHtml
// Source:
// Static: false
// Parameters: 1
// preceding Parameters: -1

QJSValue
QTextDocument_Wrapper::setHtml
(

    const QJSValue&
    a1
)

{

    // check parameter types:
    if (
        RJSHelper::is_QString(handler, a1
                             )


    ) {

        // prepare parameters:

        // convert js parameter to cpp: html (QString)

        QString a1_cpp;

        a1_cpp = RJSHelper::js2cpp_QString(handler, a1);


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        //setRecFlag(true);

        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QTextDocument* w = getWrapped();

        w->setHtml(
            a1_cpp

        );

        //setRecFlag(false);

        return QJSValue();

    }

    qWarning() << "no matching function variant found for setHtml";
    handler.trace();
    return QJSValue();

}

#endif

#if QT_CONFIG(textmarkdownwriter)||QT_CONFIG(textmarkdownreader)

#endif

#if QT_CONFIG(textmarkdownwriter)

// Class: QTextDocument
// Function: toMarkdown
// Source:
// Static: false
// Parameters: 1
// preceding Parameters: -1

QJSValue
QTextDocument_Wrapper::toMarkdown
(

    const QJSValue&
    a1
)

const

{

    // check parameter types:
    if (
        RJSHelper::is_QTextDocument_MarkdownFeatures(handler, a1
                , true

                                                    )


    ) {

        // prepare parameters:

        // convert js parameter to cpp: features (QTextDocument::MarkdownFeatures)

        QTextDocument::MarkdownFeatures a1_cpp;


        if (a1.isUndefined()) {
            a1_cpp = QTextDocument::MarkdownDialectGitHub;
        }
        else {
            a1_cpp = RJSHelper::js2cpp_QTextDocument_MarkdownFeatures(handler, a1);
        }


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        //setRecFlag(true);

        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QTextDocument* w = getWrapped();
        QString res =

            w->toMarkdown(
                a1_cpp

            );

        //setRecFlag(false);

        // return type: QString

        return RJSHelper::cpp2js_QString(
                   handler,
                   // non-copyable: false
                   res

               );

    }

    qWarning() << "no matching function variant found for toMarkdown";
    handler.trace();
    return QJSValue();

}

#endif

#if QT_CONFIG(textmarkdownreader)

// Class: QTextDocument
// Function: setMarkdown
// Source:
// Static: false
// Parameters: 2
// preceding Parameters: -1

QJSValue
QTextDocument_Wrapper::setMarkdown
(

    const QJSValue&
    a1,
    const QJSValue&
    a2
)

{

    // check parameter types:
    if (
        RJSHelper::is_QString(handler, a1
                             )

        && RJSHelper::is_QTextDocument_MarkdownFeatures(handler, a2
                , true

                                                       )


    ) {

        // prepare parameters:

        // convert js parameter to cpp: markdown (QString)

        QString a1_cpp;

        a1_cpp = RJSHelper::js2cpp_QString(handler, a1);

        // convert js parameter to cpp: features (QTextDocument::MarkdownFeatures)

        QTextDocument::MarkdownFeatures a2_cpp;


        if (a2.isUndefined()) {
            a2_cpp = QTextDocument::MarkdownDialectGitHub;
        }
        else {
            a2_cpp = RJSHelper::js2cpp_QTextDocument_MarkdownFeatures(handler, a2);
        }


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        //setRecFlag(true);

        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QTextDocument* w = getWrapped();

        w->setMarkdown(
            a1_cpp
            , a2_cpp

        );

        //setRecFlag(false);

        return QJSValue();

    }

    qWarning() << "no matching function variant found for setMarkdown";
    handler.trace();
    return QJSValue();

}

#endif

// Class: QTextDocument
// Function: toRawText
// Source:
// Static: false
// Parameters: 0
// preceding Parameters: -1

QJSValue
QTextDocument_Wrapper::toRawText
(

)

const

{

    {


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        //setRecFlag(true);

        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QTextDocument* w = getWrapped();
        QString res =

            w->toRawText(

            );

        //setRecFlag(false);

        // return type: QString

        return RJSHelper::cpp2js_QString(
                   handler,
                   // non-copyable: false
                   res

               );

    }

    qWarning() << "no matching function variant found for toRawText";
    handler.trace();
    return QJSValue();

}

// Class: QTextDocument
// Function: toPlainText
// Source:
// Static: false
// Parameters: 0
// preceding Parameters: -1

QJSValue
QTextDocument_Wrapper::toPlainText
(

)

const

{

    {


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        //setRecFlag(true);

        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QTextDocument* w = getWrapped();
        QString res =

            w->toPlainText(

            );

        //setRecFlag(false);

        // return type: QString

        return RJSHelper::cpp2js_QString(
                   handler,
                   // non-copyable: false
                   res

               );

    }

    qWarning() << "no matching function variant found for toPlainText";
    handler.trace();
    return QJSValue();

}

// Class: QTextDocument
// Function: setPlainText
// Source:
// Static: false
// Parameters: 1
// preceding Parameters: -1

QJSValue
QTextDocument_Wrapper::setPlainText
(

    const QJSValue&
    a1
)

{

    // check parameter types:
    if (
        RJSHelper::is_QString(handler, a1
                             )


    ) {

        // prepare parameters:

        // convert js parameter to cpp: text (QString)

        QString a1_cpp;

        a1_cpp = RJSHelper::js2cpp_QString(handler, a1);


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        //setRecFlag(true);

        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QTextDocument* w = getWrapped();

        w->setPlainText(
            a1_cpp

        );

        //setRecFlag(false);

        return QJSValue();

    }

    qWarning() << "no matching function variant found for setPlainText";
    handler.trace();
    return QJSValue();

}

// Class: QTextDocument
// Function: characterAt
// Source:
// Static: false
// Parameters: 1
// preceding Parameters: -1

QJSValue
QTextDocument_Wrapper::characterAt
(

    const QJSValue&
    a1
)

const

{

    // check parameter types:
    if (
        RJSHelper::is_int(handler, a1
                         )


    ) {

        // prepare parameters:

        // convert js parameter to cpp: pos (int)

        int a1_cpp;

        a1_cpp = RJSHelper::js2cpp_int(handler, a1);


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        //setRecFlag(true);

        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QTextDocument* w = getWrapped();
        QChar res =

            w->characterAt(
                a1_cpp

            );

        //setRecFlag(false);

        // return type: QChar

        return RJSHelper::cpp2js_QChar(
                   handler,
                   // non-copyable: false
                   res

               );

    }

    qWarning() << "no matching function variant found for characterAt";
    handler.trace();
    return QJSValue();

}

// Class: QTextDocument
// Function: find
// Source:
// Static: false
// Parameters: 3
// preceding Parameters: -1

QJSValue
QTextDocument_Wrapper::find
(

    const QJSValue&
    a1,
    const QJSValue&
    a2,
    const QJSValue&
    a3
)

const

{

    // check parameter types:
    if (
        RJSHelper::is_QString(handler, a1
                             )

        && RJSHelper::is_int(handler, a2
                             , true

                            )

        && RJSHelper::is_QTextDocument_FindFlags(handler, a3
                , true

                                                )


    ) {

        // prepare parameters:

        // convert js parameter to cpp: subString (QString)

        QString a1_cpp;

        a1_cpp = RJSHelper::js2cpp_QString(handler, a1);

        // convert js parameter to cpp: from (int)

        int a2_cpp;


        if (a2.isUndefined()) {
            a2_cpp = 0;
        }
        else {
            a2_cpp = RJSHelper::js2cpp_int(handler, a2);
        }

        // convert js parameter to cpp: options (QTextDocument::FindFlags)

        QTextDocument::FindFlags a3_cpp;


        if (a3.isUndefined()) {
            a3_cpp = QTextDocument::FindFlags();
        }
        else {
            a3_cpp = RJSHelper::js2cpp_QTextDocument_FindFlags(handler, a3);
        }


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        //setRecFlag(true);

        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QTextDocument* w = getWrapped();
        QTextCursor res =

            w->find(
                a1_cpp
                , a2_cpp
                , a3_cpp

            );

        //setRecFlag(false);

        // return type: QTextCursor

        return RJSHelper::cpp2js_QTextCursor(
                   handler,
                   // non-copyable: false
                   res

               );

    }

    // check parameter types:
    if (
        RJSHelper::is_QString(handler, a1
                             )

        && RJSHelper::is_QTextCursor(handler, a2
                                    )

        && RJSHelper::is_QTextDocument_FindFlags(handler, a3
                , true

                                                )


    ) {

        // prepare parameters:

        // convert js parameter to cpp: subString (QString)

        QString a1_cpp;

        a1_cpp = RJSHelper::js2cpp_QString(handler, a1);

        // convert js parameter to cpp: cursor (QTextCursor)

        QTextCursor a2_cpp;

        a2_cpp = RJSHelper::js2cpp_QTextCursor(handler, a2);

        // convert js parameter to cpp: options (QTextDocument::FindFlags)

        QTextDocument::FindFlags a3_cpp;


        if (a3.isUndefined()) {
            a3_cpp = QTextDocument::FindFlags();
        }
        else {
            a3_cpp = RJSHelper::js2cpp_QTextDocument_FindFlags(handler, a3);
        }


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        //setRecFlag(true);

        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QTextDocument* w = getWrapped();
        QTextCursor res =

            w->find(
                a1_cpp
                , a2_cpp
                , a3_cpp

            );

        //setRecFlag(false);

        // return type: QTextCursor

        return RJSHelper::cpp2js_QTextCursor(
                   handler,
                   // non-copyable: false
                   res

               );

    }

    // check parameter types:
    if (
        RJSHelper::is_QRegularExpression(handler, a1
                                        )

        && RJSHelper::is_int(handler, a2
                             , true

                            )

        && RJSHelper::is_QTextDocument_FindFlags(handler, a3
                , true

                                                )


    ) {

        // prepare parameters:

        // convert js parameter to cpp: expr (QRegularExpression)

        QRegularExpression a1_cpp;

        a1_cpp = RJSHelper::js2cpp_QRegularExpression(handler, a1);

        // convert js parameter to cpp: from (int)

        int a2_cpp;


        if (a2.isUndefined()) {
            a2_cpp = 0;
        }
        else {
            a2_cpp = RJSHelper::js2cpp_int(handler, a2);
        }

        // convert js parameter to cpp: options (QTextDocument::FindFlags)

        QTextDocument::FindFlags a3_cpp;


        if (a3.isUndefined()) {
            a3_cpp = QTextDocument::FindFlags();
        }
        else {
            a3_cpp = RJSHelper::js2cpp_QTextDocument_FindFlags(handler, a3);
        }


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        //setRecFlag(true);

        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QTextDocument* w = getWrapped();
        QTextCursor res =

            w->find(
                a1_cpp
                , a2_cpp
                , a3_cpp

            );

        //setRecFlag(false);

        // return type: QTextCursor

        return RJSHelper::cpp2js_QTextCursor(
                   handler,
                   // non-copyable: false
                   res

               );

    }

    // check parameter types:
    if (
        RJSHelper::is_QRegularExpression(handler, a1
                                        )

        && RJSHelper::is_QTextCursor(handler, a2
                                    )

        && RJSHelper::is_QTextDocument_FindFlags(handler, a3
                , true

                                                )


    ) {

        // prepare parameters:

        // convert js parameter to cpp: expr (QRegularExpression)

        QRegularExpression a1_cpp;

        a1_cpp = RJSHelper::js2cpp_QRegularExpression(handler, a1);

        // convert js parameter to cpp: cursor (QTextCursor)

        QTextCursor a2_cpp;

        a2_cpp = RJSHelper::js2cpp_QTextCursor(handler, a2);

        // convert js parameter to cpp: options (QTextDocument::FindFlags)

        QTextDocument::FindFlags a3_cpp;


        if (a3.isUndefined()) {
            a3_cpp = QTextDocument::FindFlags();
        }
        else {
            a3_cpp = RJSHelper::js2cpp_QTextDocument_FindFlags(handler, a3);
        }


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        //setRecFlag(true);

        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QTextDocument* w = getWrapped();
        QTextCursor res =

            w->find(
                a1_cpp
                , a2_cpp
                , a3_cpp

            );

        //setRecFlag(false);

        // return type: QTextCursor

        return RJSHelper::cpp2js_QTextCursor(
                   handler,
                   // non-copyable: false
                   res

               );

    }

    qWarning() << "no matching function variant found for find";
    handler.trace();
    return QJSValue();

}

#if QT_CONFIG(regularexpression)

#endif

// Class: QTextDocument
// Function: setPageSize
// Source:
// Static: false
// Parameters: 1
// preceding Parameters: -1

QJSValue
QTextDocument_Wrapper::setPageSize
(

    const QJSValue&
    a1
)

{

    // check parameter types:
    if (
        RJSHelper::is_QSizeF(handler, a1
                            )


    ) {

        // prepare parameters:

        // convert js parameter to cpp: size (QSizeF)

        QSizeF a1_cpp;

        a1_cpp = RJSHelper::js2cpp_QSizeF(handler, a1);


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        //setRecFlag(true);

        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QTextDocument* w = getWrapped();

        w->setPageSize(
            a1_cpp

        );

        //setRecFlag(false);

        return QJSValue();

    }

    qWarning() << "no matching function variant found for setPageSize";
    handler.trace();
    return QJSValue();

}

// Class: QTextDocument
// Function: pageSize
// Source:
// Static: false
// Parameters: 0
// preceding Parameters: -1

QJSValue
QTextDocument_Wrapper::pageSize
(

)

const

{

    {


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        //setRecFlag(true);

        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QTextDocument* w = getWrapped();
        QSizeF res =

            w->pageSize(

            );

        //setRecFlag(false);

        // return type: QSizeF

        return RJSHelper::cpp2js_QSizeF(
                   handler,
                   // non-copyable: false
                   res

               );

    }

    qWarning() << "no matching function variant found for pageSize";
    handler.trace();
    return QJSValue();

}

// Class: QTextDocument
// Function: setDefaultFont
// Source:
// Static: false
// Parameters: 1
// preceding Parameters: -1

QJSValue
QTextDocument_Wrapper::setDefaultFont
(

    const QJSValue&
    a1
)

{

    // check parameter types:
    if (
        RJSHelper::is_QFont(handler, a1
                           )


    ) {

        // prepare parameters:

        // convert js parameter to cpp: font (QFont)

        QFont a1_cpp;

        a1_cpp = RJSHelper::js2cpp_QFont(handler, a1);


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        //setRecFlag(true);

        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QTextDocument* w = getWrapped();

        w->setDefaultFont(
            a1_cpp

        );

        //setRecFlag(false);

        return QJSValue();

    }

    qWarning() << "no matching function variant found for setDefaultFont";
    handler.trace();
    return QJSValue();

}

// Class: QTextDocument
// Function: defaultFont
// Source:
// Static: false
// Parameters: 0
// preceding Parameters: -1

QJSValue
QTextDocument_Wrapper::defaultFont
(

)

const

{

    {


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        //setRecFlag(true);

        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QTextDocument* w = getWrapped();
        QFont res =

            w->defaultFont(

            );

        //setRecFlag(false);

        // return type: QFont

        return RJSHelper::cpp2js_QFont(
                   handler,
                   // non-copyable: false
                   res

               );

    }

    qWarning() << "no matching function variant found for defaultFont";
    handler.trace();
    return QJSValue();

}

// Class: QTextDocument
// Function: setSuperScriptBaseline
// Source:
// Static: false
// Parameters: 1
// preceding Parameters: -1

QJSValue
QTextDocument_Wrapper::setSuperScriptBaseline
(

    const QJSValue&
    a1
)

{

    // check parameter types:
    if (
        RJSHelper::is_qreal(handler, a1
                           )


    ) {

        // prepare parameters:

        // convert js parameter to cpp: baseline (qreal)

        qreal a1_cpp;

        a1_cpp = RJSHelper::js2cpp_qreal(handler, a1);


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        //setRecFlag(true);

        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QTextDocument* w = getWrapped();

        w->setSuperScriptBaseline(
            a1_cpp

        );

        //setRecFlag(false);

        return QJSValue();

    }

    qWarning() << "no matching function variant found for setSuperScriptBaseline";
    handler.trace();
    return QJSValue();

}

// Class: QTextDocument
// Function: superScriptBaseline
// Source:
// Static: false
// Parameters: 0
// preceding Parameters: -1

QJSValue
QTextDocument_Wrapper::superScriptBaseline
(

)

const

{

    {


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        //setRecFlag(true);

        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QTextDocument* w = getWrapped();
        qreal res =

            w->superScriptBaseline(

            );

        //setRecFlag(false);

        // return type: qreal

        return RJSHelper::cpp2js_qreal(
                   handler,
                   // non-copyable: false
                   res

               );

    }

    qWarning() << "no matching function variant found for superScriptBaseline";
    handler.trace();
    return QJSValue();

}

// Class: QTextDocument
// Function: setSubScriptBaseline
// Source:
// Static: false
// Parameters: 1
// preceding Parameters: -1

QJSValue
QTextDocument_Wrapper::setSubScriptBaseline
(

    const QJSValue&
    a1
)

{

    // check parameter types:
    if (
        RJSHelper::is_qreal(handler, a1
                           )


    ) {

        // prepare parameters:

        // convert js parameter to cpp: baseline (qreal)

        qreal a1_cpp;

        a1_cpp = RJSHelper::js2cpp_qreal(handler, a1);


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        //setRecFlag(true);

        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QTextDocument* w = getWrapped();

        w->setSubScriptBaseline(
            a1_cpp

        );

        //setRecFlag(false);

        return QJSValue();

    }

    qWarning() << "no matching function variant found for setSubScriptBaseline";
    handler.trace();
    return QJSValue();

}

// Class: QTextDocument
// Function: subScriptBaseline
// Source:
// Static: false
// Parameters: 0
// preceding Parameters: -1

QJSValue
QTextDocument_Wrapper::subScriptBaseline
(

)

const

{

    {


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        //setRecFlag(true);

        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QTextDocument* w = getWrapped();
        qreal res =

            w->subScriptBaseline(

            );

        //setRecFlag(false);

        // return type: qreal

        return RJSHelper::cpp2js_qreal(
                   handler,
                   // non-copyable: false
                   res

               );

    }

    qWarning() << "no matching function variant found for subScriptBaseline";
    handler.trace();
    return QJSValue();

}

// Class: QTextDocument
// Function: setBaselineOffset
// Source:
// Static: false
// Parameters: 1
// preceding Parameters: -1

QJSValue
QTextDocument_Wrapper::setBaselineOffset
(

    const QJSValue&
    a1
)

{

    // check parameter types:
    if (
        RJSHelper::is_qreal(handler, a1
                           )


    ) {

        // prepare parameters:

        // convert js parameter to cpp: baseline (qreal)

        qreal a1_cpp;

        a1_cpp = RJSHelper::js2cpp_qreal(handler, a1);


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        //setRecFlag(true);

        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QTextDocument* w = getWrapped();

        w->setBaselineOffset(
            a1_cpp

        );

        //setRecFlag(false);

        return QJSValue();

    }

    qWarning() << "no matching function variant found for setBaselineOffset";
    handler.trace();
    return QJSValue();

}

// Class: QTextDocument
// Function: baselineOffset
// Source:
// Static: false
// Parameters: 0
// preceding Parameters: -1

QJSValue
QTextDocument_Wrapper::baselineOffset
(

)

const

{

    {


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        //setRecFlag(true);

        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QTextDocument* w = getWrapped();
        qreal res =

            w->baselineOffset(

            );

        //setRecFlag(false);

        // return type: qreal

        return RJSHelper::cpp2js_qreal(
                   handler,
                   // non-copyable: false
                   res

               );

    }

    qWarning() << "no matching function variant found for baselineOffset";
    handler.trace();
    return QJSValue();

}

// Class: QTextDocument
// Function: pageCount
// Source:
// Static: false
// Parameters: 0
// preceding Parameters: -1

QJSValue
QTextDocument_Wrapper::pageCount
(

)

const

{

    {


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        //setRecFlag(true);

        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QTextDocument* w = getWrapped();
        int res =

            w->pageCount(

            );

        //setRecFlag(false);

        // return type: int

        return RJSHelper::cpp2js_int(
                   handler,
                   // non-copyable: false
                   res

               );

    }

    qWarning() << "no matching function variant found for pageCount";
    handler.trace();
    return QJSValue();

}

// Class: QTextDocument
// Function: isModified
// Source:
// Static: false
// Parameters: 0
// preceding Parameters: -1

QJSValue
QTextDocument_Wrapper::isModified
(

)

const

{

    {


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        //setRecFlag(true);

        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QTextDocument* w = getWrapped();
        bool res =

            w->isModified(

            );

        //setRecFlag(false);

        // return type: bool

        return RJSHelper::cpp2js_bool(
                   handler,
                   // non-copyable: false
                   res

               );

    }

    qWarning() << "no matching function variant found for isModified";
    handler.trace();
    return QJSValue();

}

// Class: QTextDocument
// Function: resource
// Source:
// Static: false
// Parameters: 2
// preceding Parameters: -1

QJSValue
QTextDocument_Wrapper::resource
(

    const QJSValue&
    a1,
    const QJSValue&
    a2
)

const

{

    // check parameter types:
    if (
        RJSHelper::is_int(handler, a1
                         )

        && RJSHelper::is_QUrl(handler, a2
                             )


    ) {

        // prepare parameters:

        // convert js parameter to cpp: type (int)

        int a1_cpp;

        a1_cpp = RJSHelper::js2cpp_int(handler, a1);

        // convert js parameter to cpp: name (QUrl)

        QUrl a2_cpp;

        a2_cpp = RJSHelper::js2cpp_QUrl(handler, a2);


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        //setRecFlag(true);

        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QTextDocument* w = getWrapped();
        QVariant res =

            w->resource(
                a1_cpp
                , a2_cpp

            );

        //setRecFlag(false);

        // return type: QVariant

        return RJSHelper::cpp2js_QVariant(
                   handler,
                   // non-copyable: false
                   res

               );

    }

    qWarning() << "no matching function variant found for resource";
    handler.trace();
    return QJSValue();

}

// Class: QTextDocument
// Function: addResource
// Source:
// Static: false
// Parameters: 3
// preceding Parameters: -1

QJSValue
QTextDocument_Wrapper::addResource
(

    const QJSValue&
    a1,
    const QJSValue&
    a2,
    const QJSValue&
    a3
)

{

    // check parameter types:
    if (
        RJSHelper::is_int(handler, a1
                         )

        && RJSHelper::is_QUrl(handler, a2
                             )

        && RJSHelper::is_QVariant(handler, a3
                                 )


    ) {

        // prepare parameters:

        // convert js parameter to cpp: type (int)

        int a1_cpp;

        a1_cpp = RJSHelper::js2cpp_int(handler, a1);

        // convert js parameter to cpp: name (QUrl)

        QUrl a2_cpp;

        a2_cpp = RJSHelper::js2cpp_QUrl(handler, a2);

        // convert js parameter to cpp: resource (QVariant)

        QVariant a3_cpp;

        a3_cpp = RJSHelper::js2cpp_QVariant(handler, a3);


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        //setRecFlag(true);

        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QTextDocument* w = getWrapped();

        w->addResource(
            a1_cpp
            , a2_cpp
            , a3_cpp

        );

        //setRecFlag(false);

        return QJSValue();

    }

    qWarning() << "no matching function variant found for addResource";
    handler.trace();
    return QJSValue();

}

// Class: QTextDocument
// Function: allFormats
// Source:
// Static: false
// Parameters: 0
// preceding Parameters: -1

QJSValue
QTextDocument_Wrapper::allFormats
(

)

const

{

    {


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        //setRecFlag(true);

        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QTextDocument* w = getWrapped();
        QList<QTextFormat> res =

            w->allFormats(

            );

        //setRecFlag(false);

        // return type: QList<QTextFormat>

        return RJSHelper::cpp2js_QList_QTextFormat(
                   handler,
                   // non-copyable: false
                   res

               );

    }

    qWarning() << "no matching function variant found for allFormats";
    handler.trace();
    return QJSValue();

}

// Class: QTextDocument
// Function: markContentsDirty
// Source:
// Static: false
// Parameters: 2
// preceding Parameters: -1

QJSValue
QTextDocument_Wrapper::markContentsDirty
(

    const QJSValue&
    a1,
    const QJSValue&
    a2
)

{

    // check parameter types:
    if (
        RJSHelper::is_int(handler, a1
                         )

        && RJSHelper::is_int(handler, a2
                            )


    ) {

        // prepare parameters:

        // convert js parameter to cpp: from (int)

        int a1_cpp;

        a1_cpp = RJSHelper::js2cpp_int(handler, a1);

        // convert js parameter to cpp: length (int)

        int a2_cpp;

        a2_cpp = RJSHelper::js2cpp_int(handler, a2);


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        //setRecFlag(true);

        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QTextDocument* w = getWrapped();

        w->markContentsDirty(
            a1_cpp
            , a2_cpp

        );

        //setRecFlag(false);

        return QJSValue();

    }

    qWarning() << "no matching function variant found for markContentsDirty";
    handler.trace();
    return QJSValue();

}

// Class: QTextDocument
// Function: setUseDesignMetrics
// Source:
// Static: false
// Parameters: 1
// preceding Parameters: -1

QJSValue
QTextDocument_Wrapper::setUseDesignMetrics
(

    const QJSValue&
    a1
)

{

    // check parameter types:
    if (
        RJSHelper::is_bool(handler, a1
                          )


    ) {

        // prepare parameters:

        // convert js parameter to cpp: b (bool)

        bool a1_cpp;

        a1_cpp = RJSHelper::js2cpp_bool(handler, a1);


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        //setRecFlag(true);

        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QTextDocument* w = getWrapped();

        w->setUseDesignMetrics(
            a1_cpp

        );

        //setRecFlag(false);

        return QJSValue();

    }

    qWarning() << "no matching function variant found for setUseDesignMetrics";
    handler.trace();
    return QJSValue();

}

// Class: QTextDocument
// Function: useDesignMetrics
// Source:
// Static: false
// Parameters: 0
// preceding Parameters: -1

QJSValue
QTextDocument_Wrapper::useDesignMetrics
(

)

const

{

    {


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        //setRecFlag(true);

        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QTextDocument* w = getWrapped();
        bool res =

            w->useDesignMetrics(

            );

        //setRecFlag(false);

        // return type: bool

        return RJSHelper::cpp2js_bool(
                   handler,
                   // non-copyable: false
                   res

               );

    }

    qWarning() << "no matching function variant found for useDesignMetrics";
    handler.trace();
    return QJSValue();

}

// Class: QTextDocument
// Function: drawContents
// Source:
// Static: false
// Parameters: 2
// preceding Parameters: -1

QJSValue
QTextDocument_Wrapper::drawContents
(

    const QJSValue&
    a1,
    const QJSValue&
    a2
)

{

    // check parameter types:
    if (
        RJSHelper::is_QPainter_ptr(handler, a1
                                   , true

                                  )

        && RJSHelper::is_QRectF(handler, a2
                                , true

                               )


    ) {

        // prepare parameters:

        // convert js parameter to cpp: painter (QPainter)


        // pointer:
        QPainter*
        a1_cpp;

        a1_cpp = RJSHelper::js2cpp_QPainter_ptr(handler, a1);

        // convert js parameter to cpp: rect (QRectF)

        QRectF a2_cpp;


        if (a2.isUndefined()) {
            a2_cpp = QRectF();
        }
        else {
            a2_cpp = RJSHelper::js2cpp_QRectF(handler, a2);
        }


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        //setRecFlag(true);

        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QTextDocument* w = getWrapped();

        w->drawContents(
            a1_cpp
            , a2_cpp

        );

        //setRecFlag(false);

        return QJSValue();

    }

    qWarning() << "no matching function variant found for drawContents";
    handler.trace();
    return QJSValue();

}

// Class: QTextDocument
// Function: setTextWidth
// Source:
// Static: false
// Parameters: 1
// preceding Parameters: -1

QJSValue
QTextDocument_Wrapper::setTextWidth
(

    const QJSValue&
    a1
)

{

    // check parameter types:
    if (
        RJSHelper::is_qreal(handler, a1
                           )


    ) {

        // prepare parameters:

        // convert js parameter to cpp: width (qreal)

        qreal a1_cpp;

        a1_cpp = RJSHelper::js2cpp_qreal(handler, a1);


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        //setRecFlag(true);

        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QTextDocument* w = getWrapped();

        w->setTextWidth(
            a1_cpp

        );

        //setRecFlag(false);

        return QJSValue();

    }

    qWarning() << "no matching function variant found for setTextWidth";
    handler.trace();
    return QJSValue();

}

// Class: QTextDocument
// Function: textWidth
// Source:
// Static: false
// Parameters: 0
// preceding Parameters: -1

QJSValue
QTextDocument_Wrapper::textWidth
(

)

const

{

    {


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        //setRecFlag(true);

        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QTextDocument* w = getWrapped();
        qreal res =

            w->textWidth(

            );

        //setRecFlag(false);

        // return type: qreal

        return RJSHelper::cpp2js_qreal(
                   handler,
                   // non-copyable: false
                   res

               );

    }

    qWarning() << "no matching function variant found for textWidth";
    handler.trace();
    return QJSValue();

}

// Class: QTextDocument
// Function: idealWidth
// Source:
// Static: false
// Parameters: 0
// preceding Parameters: -1

QJSValue
QTextDocument_Wrapper::idealWidth
(

)

const

{

    {


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        //setRecFlag(true);

        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QTextDocument* w = getWrapped();
        qreal res =

            w->idealWidth(

            );

        //setRecFlag(false);

        // return type: qreal

        return RJSHelper::cpp2js_qreal(
                   handler,
                   // non-copyable: false
                   res

               );

    }

    qWarning() << "no matching function variant found for idealWidth";
    handler.trace();
    return QJSValue();

}

// Class: QTextDocument
// Function: indentWidth
// Source:
// Static: false
// Parameters: 0
// preceding Parameters: -1

QJSValue
QTextDocument_Wrapper::indentWidth
(

)

const

{

    {


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        //setRecFlag(true);

        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QTextDocument* w = getWrapped();
        qreal res =

            w->indentWidth(

            );

        //setRecFlag(false);

        // return type: qreal

        return RJSHelper::cpp2js_qreal(
                   handler,
                   // non-copyable: false
                   res

               );

    }

    qWarning() << "no matching function variant found for indentWidth";
    handler.trace();
    return QJSValue();

}

// Class: QTextDocument
// Function: setIndentWidth
// Source:
// Static: false
// Parameters: 1
// preceding Parameters: -1

QJSValue
QTextDocument_Wrapper::setIndentWidth
(

    const QJSValue&
    a1
)

{

    // check parameter types:
    if (
        RJSHelper::is_qreal(handler, a1
                           )


    ) {

        // prepare parameters:

        // convert js parameter to cpp: width (qreal)

        qreal a1_cpp;

        a1_cpp = RJSHelper::js2cpp_qreal(handler, a1);


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        //setRecFlag(true);

        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QTextDocument* w = getWrapped();

        w->setIndentWidth(
            a1_cpp

        );

        //setRecFlag(false);

        return QJSValue();

    }

    qWarning() << "no matching function variant found for setIndentWidth";
    handler.trace();
    return QJSValue();

}

// Class: QTextDocument
// Function: documentMargin
// Source:
// Static: false
// Parameters: 0
// preceding Parameters: -1

QJSValue
QTextDocument_Wrapper::documentMargin
(

)

const

{

    {


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        //setRecFlag(true);

        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QTextDocument* w = getWrapped();
        qreal res =

            w->documentMargin(

            );

        //setRecFlag(false);

        // return type: qreal

        return RJSHelper::cpp2js_qreal(
                   handler,
                   // non-copyable: false
                   res

               );

    }

    qWarning() << "no matching function variant found for documentMargin";
    handler.trace();
    return QJSValue();

}

// Class: QTextDocument
// Function: setDocumentMargin
// Source:
// Static: false
// Parameters: 1
// preceding Parameters: -1

QJSValue
QTextDocument_Wrapper::setDocumentMargin
(

    const QJSValue&
    a1
)

{

    // check parameter types:
    if (
        RJSHelper::is_qreal(handler, a1
                           )


    ) {

        // prepare parameters:

        // convert js parameter to cpp: margin (qreal)

        qreal a1_cpp;

        a1_cpp = RJSHelper::js2cpp_qreal(handler, a1);


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        //setRecFlag(true);

        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QTextDocument* w = getWrapped();

        w->setDocumentMargin(
            a1_cpp

        );

        //setRecFlag(false);

        return QJSValue();

    }

    qWarning() << "no matching function variant found for setDocumentMargin";
    handler.trace();
    return QJSValue();

}

// Class: QTextDocument
// Function: adjustSize
// Source:
// Static: false
// Parameters: 0
// preceding Parameters: -1

QJSValue
QTextDocument_Wrapper::adjustSize
(

)

{

    {


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        //setRecFlag(true);

        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QTextDocument* w = getWrapped();

        w->adjustSize(

        );

        //setRecFlag(false);

        return QJSValue();

    }

    qWarning() << "no matching function variant found for adjustSize";
    handler.trace();
    return QJSValue();

}

// Class: QTextDocument
// Function: size
// Source:
// Static: false
// Parameters: 0
// preceding Parameters: -1

QJSValue
QTextDocument_Wrapper::size
(

)

const

{

    {


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        //setRecFlag(true);

        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QTextDocument* w = getWrapped();
        QSizeF res =

            w->size(

            );

        //setRecFlag(false);

        // return type: QSizeF

        return RJSHelper::cpp2js_QSizeF(
                   handler,
                   // non-copyable: false
                   res

               );

    }

    qWarning() << "no matching function variant found for size";
    handler.trace();
    return QJSValue();

}

// Class: QTextDocument
// Function: blockCount
// Source:
// Static: false
// Parameters: 0
// preceding Parameters: -1

QJSValue
QTextDocument_Wrapper::blockCount
(

)

const

{

    {


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        //setRecFlag(true);

        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QTextDocument* w = getWrapped();
        int res =

            w->blockCount(

            );

        //setRecFlag(false);

        // return type: int

        return RJSHelper::cpp2js_int(
                   handler,
                   // non-copyable: false
                   res

               );

    }

    qWarning() << "no matching function variant found for blockCount";
    handler.trace();
    return QJSValue();

}

// Class: QTextDocument
// Function: lineCount
// Source:
// Static: false
// Parameters: 0
// preceding Parameters: -1

QJSValue
QTextDocument_Wrapper::lineCount
(

)

const

{

    {


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        //setRecFlag(true);

        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QTextDocument* w = getWrapped();
        int res =

            w->lineCount(

            );

        //setRecFlag(false);

        // return type: int

        return RJSHelper::cpp2js_int(
                   handler,
                   // non-copyable: false
                   res

               );

    }

    qWarning() << "no matching function variant found for lineCount";
    handler.trace();
    return QJSValue();

}

// Class: QTextDocument
// Function: characterCount
// Source:
// Static: false
// Parameters: 0
// preceding Parameters: -1

QJSValue
QTextDocument_Wrapper::characterCount
(

)

const

{

    {


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        //setRecFlag(true);

        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QTextDocument* w = getWrapped();
        int res =

            w->characterCount(

            );

        //setRecFlag(false);

        // return type: int

        return RJSHelper::cpp2js_int(
                   handler,
                   // non-copyable: false
                   res

               );

    }

    qWarning() << "no matching function variant found for characterCount";
    handler.trace();
    return QJSValue();

}

#ifndef QT_NO_CSSPARSER

// Class: QTextDocument
// Function: setDefaultStyleSheet
// Source:
// Static: false
// Parameters: 1
// preceding Parameters: -1

QJSValue
QTextDocument_Wrapper::setDefaultStyleSheet
(

    const QJSValue&
    a1
)

{

    // check parameter types:
    if (
        RJSHelper::is_QString(handler, a1
                             )


    ) {

        // prepare parameters:

        // convert js parameter to cpp: sheet (QString)

        QString a1_cpp;

        a1_cpp = RJSHelper::js2cpp_QString(handler, a1);


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        //setRecFlag(true);

        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QTextDocument* w = getWrapped();

        w->setDefaultStyleSheet(
            a1_cpp

        );

        //setRecFlag(false);

        return QJSValue();

    }

    qWarning() << "no matching function variant found for setDefaultStyleSheet";
    handler.trace();
    return QJSValue();

}

// Class: QTextDocument
// Function: defaultStyleSheet
// Source:
// Static: false
// Parameters: 0
// preceding Parameters: -1

QJSValue
QTextDocument_Wrapper::defaultStyleSheet
(

)

const

{

    {


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        //setRecFlag(true);

        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QTextDocument* w = getWrapped();
        QString res =

            w->defaultStyleSheet(

            );

        //setRecFlag(false);

        // return type: QString

        return RJSHelper::cpp2js_QString(
                   handler,
                   // non-copyable: false
                   res

               );

    }

    qWarning() << "no matching function variant found for defaultStyleSheet";
    handler.trace();
    return QJSValue();

}

#endif

// Class: QTextDocument
// Function: clearUndoRedoStacks
// Source:
// Static: false
// Parameters: 1
// preceding Parameters: -1

QJSValue
QTextDocument_Wrapper::clearUndoRedoStacks
(

    const QJSValue&
    a1
)

{

    // check parameter types:
    if (
        RJSHelper::is_QTextDocument_Stacks(handler, a1
                                           , true

                                          )


    ) {

        // prepare parameters:

        // convert js parameter to cpp: historyToClear (QTextDocument::Stacks)

        QTextDocument::Stacks a1_cpp;


        if (a1.isUndefined()) {
            a1_cpp = QTextDocument::UndoAndRedoStacks;
        }
        else {
            a1_cpp = RJSHelper::js2cpp_QTextDocument_Stacks(handler, a1);
        }


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        //setRecFlag(true);

        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QTextDocument* w = getWrapped();

        w->clearUndoRedoStacks(
            a1_cpp

        );

        //setRecFlag(false);

        return QJSValue();

    }

    qWarning() << "no matching function variant found for clearUndoRedoStacks";
    handler.trace();
    return QJSValue();

}

// Class: QTextDocument
// Function: maximumBlockCount
// Source:
// Static: false
// Parameters: 0
// preceding Parameters: -1

QJSValue
QTextDocument_Wrapper::maximumBlockCount
(

)

const

{

    {


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        //setRecFlag(true);

        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QTextDocument* w = getWrapped();
        int res =

            w->maximumBlockCount(

            );

        //setRecFlag(false);

        // return type: int

        return RJSHelper::cpp2js_int(
                   handler,
                   // non-copyable: false
                   res

               );

    }

    qWarning() << "no matching function variant found for maximumBlockCount";
    handler.trace();
    return QJSValue();

}

// Class: QTextDocument
// Function: setMaximumBlockCount
// Source:
// Static: false
// Parameters: 1
// preceding Parameters: -1

QJSValue
QTextDocument_Wrapper::setMaximumBlockCount
(

    const QJSValue&
    a1
)

{

    // check parameter types:
    if (
        RJSHelper::is_int(handler, a1
                         )


    ) {

        // prepare parameters:

        // convert js parameter to cpp: maximum (int)

        int a1_cpp;

        a1_cpp = RJSHelper::js2cpp_int(handler, a1);


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        //setRecFlag(true);

        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QTextDocument* w = getWrapped();

        w->setMaximumBlockCount(
            a1_cpp

        );

        //setRecFlag(false);

        return QJSValue();

    }

    qWarning() << "no matching function variant found for setMaximumBlockCount";
    handler.trace();
    return QJSValue();

}

// Class: QTextDocument
// Function: baseUrl
// Source:
// Static: false
// Parameters: 0
// preceding Parameters: -1

QJSValue
QTextDocument_Wrapper::baseUrl
(

)

const

{

    {


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        //setRecFlag(true);

        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QTextDocument* w = getWrapped();
        QUrl res =

            w->baseUrl(

            );

        //setRecFlag(false);

        // return type: QUrl

        return RJSHelper::cpp2js_QUrl(
                   handler,
                   // non-copyable: false
                   res

               );

    }

    qWarning() << "no matching function variant found for baseUrl";
    handler.trace();
    return QJSValue();

}

// Class: QTextDocument
// Function: setBaseUrl
// Source:
// Static: false
// Parameters: 1
// preceding Parameters: -1

QJSValue
QTextDocument_Wrapper::setBaseUrl
(

    const QJSValue&
    a1
)

{

    // check parameter types:
    if (
        RJSHelper::is_QUrl(handler, a1
                          )


    ) {

        // prepare parameters:

        // convert js parameter to cpp: url (QUrl)

        QUrl a1_cpp;

        a1_cpp = RJSHelper::js2cpp_QUrl(handler, a1);


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        //setRecFlag(true);

        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QTextDocument* w = getWrapped();

        w->setBaseUrl(
            a1_cpp

        );

        //setRecFlag(false);

        return QJSValue();

    }

    qWarning() << "no matching function variant found for setBaseUrl";
    handler.trace();
    return QJSValue();

}

// Class: QTextDocument
// Function: defaultCursorMoveStyle
// Source:
// Static: false
// Parameters: 0
// preceding Parameters: -1

QJSValue
QTextDocument_Wrapper::defaultCursorMoveStyle
(

)

const

{

    {


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        //setRecFlag(true);

        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QTextDocument* w = getWrapped();
        Qt::CursorMoveStyle res =

            w->defaultCursorMoveStyle(

            );

        //setRecFlag(false);

        // return type: Qt::CursorMoveStyle

        return RJSHelper::cpp2js_Qt_CursorMoveStyle(
                   handler,
                   // non-copyable: false
                   res

               );

    }

    qWarning() << "no matching function variant found for defaultCursorMoveStyle";
    handler.trace();
    return QJSValue();

}

// Class: QTextDocument
// Function: setDefaultCursorMoveStyle
// Source:
// Static: false
// Parameters: 1
// preceding Parameters: -1

QJSValue
QTextDocument_Wrapper::setDefaultCursorMoveStyle
(

    const QJSValue&
    a1
)

{

    // check parameter types:
    if (
        RJSHelper::is_Qt_CursorMoveStyle(handler, a1
                                        )


    ) {

        // prepare parameters:

        // convert js parameter to cpp: style (Qt::CursorMoveStyle)

        Qt::CursorMoveStyle a1_cpp;

        a1_cpp = RJSHelper::js2cpp_Qt_CursorMoveStyle(handler, a1);


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        //setRecFlag(true);

        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QTextDocument* w = getWrapped();

        w->setDefaultCursorMoveStyle(
            a1_cpp

        );

        //setRecFlag(false);

        return QJSValue();

    }

    qWarning() << "no matching function variant found for setDefaultCursorMoveStyle";
    handler.trace();
    return QJSValue();

}

// Class: QTextDocument
// Function: contentsChange
// Source:
// Static: false
// Parameters: 3
// preceding Parameters: -1

// signal emitter: called when signal is emitted from wrapped object:
void
QTextDocument_Wrapper::contentsChangeEmitter(
    int from, int charsRemoved, int charsAdded
) {
    // convert cpp parameters to js:

    // parameter: from (int)



    QJSValue a1_js = RJSHelper::cpp2js_int(
                         handler,
                         from
                     );

    // parameter: charsRemoved (int)



    QJSValue a2_js = RJSHelper::cpp2js_int(
                         handler,
                         charsRemoved
                     );

    // parameter: charsAdded (int)



    QJSValue a3_js = RJSHelper::cpp2js_int(
                         handler,
                         charsAdded
                     );


    emit contentsChange(
        a1_js, a2_js, a3_js
    );
}

// Class: QTextDocument
// Function: contentsChanged
// Source:
// Static: false
// Parameters: 0
// preceding Parameters: -1

// signal emitter: called when signal is emitted from wrapped object:
void
QTextDocument_Wrapper::contentsChangedEmitter(

) {
    // convert cpp parameters to js:


    emit contentsChanged(

    );
}

// Class: QTextDocument
// Function: undoAvailable
// Source:
// Static: false
// Parameters: 1
// preceding Parameters: -1

// signal emitter: called when signal is emitted from wrapped object:
void
QTextDocument_Wrapper::undoAvailableEmitter(
    bool a1
) {
    // convert cpp parameters to js:

    // parameter:  (bool)



    QJSValue a1_js = RJSHelper::cpp2js_bool(
                         handler,
                         a1
                     );


    emit undoAvailable(
        a1_js
    );
}

// Class: QTextDocument
// Function: redoAvailable
// Source:
// Static: false
// Parameters: 1
// preceding Parameters: -1

// signal emitter: called when signal is emitted from wrapped object:
void
QTextDocument_Wrapper::redoAvailableEmitter(
    bool a1
) {
    // convert cpp parameters to js:

    // parameter:  (bool)



    QJSValue a1_js = RJSHelper::cpp2js_bool(
                         handler,
                         a1
                     );


    emit redoAvailable(
        a1_js
    );
}

// Class: QTextDocument
// Function: undoCommandAdded
// Source:
// Static: false
// Parameters: 0
// preceding Parameters: -1

// signal emitter: called when signal is emitted from wrapped object:
void
QTextDocument_Wrapper::undoCommandAddedEmitter(

) {
    // convert cpp parameters to js:


    emit undoCommandAdded(

    );
}

// Class: QTextDocument
// Function: modificationChanged
// Source:
// Static: false
// Parameters: 1
// preceding Parameters: -1

// signal emitter: called when signal is emitted from wrapped object:
void
QTextDocument_Wrapper::modificationChangedEmitter(
    bool m
) {
    // convert cpp parameters to js:

    // parameter: m (bool)



    QJSValue a1_js = RJSHelper::cpp2js_bool(
                         handler,
                         m
                     );


    emit modificationChanged(
        a1_js
    );
}

// Class: QTextDocument
// Function: cursorPositionChanged
// Source:
// Static: false
// Parameters: 1
// preceding Parameters: -1

// signal emitter: called when signal is emitted from wrapped object:
void
QTextDocument_Wrapper::cursorPositionChangedEmitter(
    const QTextCursor& cursor
) {
    // convert cpp parameters to js:

    // parameter: cursor (QTextCursor)



    QJSValue a1_js = RJSHelper::cpp2js_QTextCursor(
                         handler,
                         cursor
                     );


    emit cursorPositionChanged(
        a1_js
    );
}

// Class: QTextDocument
// Function: blockCountChanged
// Source:
// Static: false
// Parameters: 1
// preceding Parameters: -1

// signal emitter: called when signal is emitted from wrapped object:
void
QTextDocument_Wrapper::blockCountChangedEmitter(
    int newBlockCount
) {
    // convert cpp parameters to js:

    // parameter: newBlockCount (int)



    QJSValue a1_js = RJSHelper::cpp2js_int(
                         handler,
                         newBlockCount
                     );


    emit blockCountChanged(
        a1_js
    );
}

// Class: QTextDocument
// Function: baseUrlChanged
// Source:
// Static: false
// Parameters: 1
// preceding Parameters: -1

// signal emitter: called when signal is emitted from wrapped object:
void
QTextDocument_Wrapper::baseUrlChangedEmitter(
    const QUrl& url
) {
    // convert cpp parameters to js:

    // parameter: url (QUrl)



    QJSValue a1_js = RJSHelper::cpp2js_QUrl(
                         handler,
                         url
                     );


    emit baseUrlChanged(
        a1_js
    );
}

// Class: QTextDocument
// Function: documentLayoutChanged
// Source:
// Static: false
// Parameters: 0
// preceding Parameters: -1

// signal emitter: called when signal is emitted from wrapped object:
void
QTextDocument_Wrapper::documentLayoutChangedEmitter(

) {
    // convert cpp parameters to js:


    emit documentLayoutChanged(

    );
}

// Class: QTextDocument
// Function: undo
// Source:
// Static: false
// Parameters: 0
// preceding Parameters: -1

QJSValue
QTextDocument_Wrapper::undo
(

)

{

    {


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        //setRecFlag(true);

        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QTextDocument* w = getWrapped();

        w->undo(

        );

        //setRecFlag(false);

        return QJSValue();

    }

    qWarning() << "no matching function variant found for undo";
    handler.trace();
    return QJSValue();

}

// Class: QTextDocument
// Function: redo
// Source:
// Static: false
// Parameters: 0
// preceding Parameters: -1

QJSValue
QTextDocument_Wrapper::redo
(

)

{

    {


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        //setRecFlag(true);

        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QTextDocument* w = getWrapped();

        w->redo(

        );

        //setRecFlag(false);

        return QJSValue();

    }

    qWarning() << "no matching function variant found for redo";
    handler.trace();
    return QJSValue();

}

// Class: QTextDocument
// Function: setModified
// Source:
// Static: false
// Parameters: 1
// preceding Parameters: -1

QJSValue
QTextDocument_Wrapper::setModified
(

    const QJSValue&
    a1
)

{

    // check parameter types:
    if (
        RJSHelper::is_bool(handler, a1
                           , true

                          )


    ) {

        // prepare parameters:

        // convert js parameter to cpp: m (bool)

        bool a1_cpp;


        if (a1.isUndefined()) {
            a1_cpp = true;
        }
        else {
            a1_cpp = RJSHelper::js2cpp_bool(handler, a1);
        }


        // call function:

        if (!hasWrapped()) {
            qWarning() << "wrapped is NULL";
            handler.trace();
            return QJSValue();
        }


        //setRecFlag(true);

        // non-static member function:
        // call function of wrapped object:

        // call function of C++ class:
        QTextDocument* w = getWrapped();

        w->setModified(
            a1_cpp

        );

        //setRecFlag(false);

        return QJSValue();

    }

    qWarning() << "no matching function variant found for setModified";
    handler.trace();
    return QJSValue();

}


// member functions for static properties, forward to static function



// protected overwritten functions / events and their public invokable counterparts:

