/*
 * Module code.
 *
 * Generated by SIP 4.18.1
 */

#include "sipAPIktexteditor.h"

#line 30 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/ktexteditor/markinterface.sip"
#include <ktexteditor/markinterface.h>
#line 12 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart4.cpp"



/* Call the instance's destructor. */
extern "C" {static void release_KTextEditor_Mark(void *, int);}
static void release_KTextEditor_Mark(void *sipCppV,int)
{
    Py_BEGIN_ALLOW_THREADS

    delete reinterpret_cast<KTextEditor::Mark *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void assign_KTextEditor_Mark(void *, SIP_SSIZE_T, const void *);}
static void assign_KTextEditor_Mark(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<KTextEditor::Mark *>(sipDst)[sipDstIdx] = *reinterpret_cast<const KTextEditor::Mark *>(sipSrc);
}


extern "C" {static void *array_KTextEditor_Mark(SIP_SSIZE_T);}
static void *array_KTextEditor_Mark(SIP_SSIZE_T sipNrElem)
{
    return new KTextEditor::Mark[sipNrElem];
}


extern "C" {static void *copy_KTextEditor_Mark(const void *, SIP_SSIZE_T);}
static void *copy_KTextEditor_Mark(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new KTextEditor::Mark(reinterpret_cast<const KTextEditor::Mark *>(sipSrc)[sipSrcIdx]);
}


extern "C" {static void dealloc_KTextEditor_Mark(sipSimpleWrapper *);}
static void dealloc_KTextEditor_Mark(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_KTextEditor_Mark(sipGetAddress(sipSelf),0);
    }
}


extern "C" {static void *init_type_KTextEditor_Mark(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_KTextEditor_Mark(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    KTextEditor::Mark *sipCpp = 0;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new KTextEditor::Mark();
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    {
        const KTextEditor::Mark* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_KTextEditor_Mark, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new KTextEditor::Mark(*a0);
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    return NULL;
}


extern "C" {static PyObject *varget_KTextEditor_Mark_line(void *, PyObject *, PyObject *);}
static PyObject *varget_KTextEditor_Mark_line(void *sipSelf, PyObject *, PyObject *)
{
    int sipVal;
    KTextEditor::Mark *sipCpp = reinterpret_cast<KTextEditor::Mark *>(sipSelf);

    sipVal = sipCpp->line;

    return SIPLong_FromLong(sipVal);
}


extern "C" {static int varset_KTextEditor_Mark_line(void *, PyObject *, PyObject *);}
static int varset_KTextEditor_Mark_line(void *sipSelf, PyObject *sipPy, PyObject *)
{
    int sipVal;
    KTextEditor::Mark *sipCpp = reinterpret_cast<KTextEditor::Mark *>(sipSelf);

    sipVal = (int)SIPLong_AsLong(sipPy);

    if (PyErr_Occurred() != NULL)
        return -1;

    sipCpp->line = sipVal;

    return 0;
}


extern "C" {static PyObject *varget_KTextEditor_Mark_type(void *, PyObject *, PyObject *);}
static PyObject *varget_KTextEditor_Mark_type(void *sipSelf, PyObject *, PyObject *)
{
    uint sipVal;
    KTextEditor::Mark *sipCpp = reinterpret_cast<KTextEditor::Mark *>(sipSelf);

    sipVal = sipCpp->type;

    return PyLong_FromUnsignedLong(sipVal);
}


extern "C" {static int varset_KTextEditor_Mark_type(void *, PyObject *, PyObject *);}
static int varset_KTextEditor_Mark_type(void *sipSelf, PyObject *sipPy, PyObject *)
{
    uint sipVal;
    KTextEditor::Mark *sipCpp = reinterpret_cast<KTextEditor::Mark *>(sipSelf);

    sipVal = (uint)sipLong_AsUnsignedLong(sipPy);

    if (PyErr_Occurred() != NULL)
        return -1;

    sipCpp->type = sipVal;

    return 0;
}

sipVariableDef variables_KTextEditor_Mark[] = {
    {InstanceVariable, sipName_line, (PyMethodDef *)varget_KTextEditor_Mark_line, (PyMethodDef *)varset_KTextEditor_Mark_line, NULL, NULL},
    {InstanceVariable, sipName_type, (PyMethodDef *)varget_KTextEditor_Mark_type, (PyMethodDef *)varset_KTextEditor_Mark_type, NULL, NULL},
};


pyqt4ClassTypeDef sipTypeDef_ktexteditor_KTextEditor_Mark = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_KTextEditor__Mark,
        {0}
    },
    {
        sipNameNr_Mark,
        {1, 255, 0},
        0, 0,
        0, 0,
        2, variables_KTextEditor_Mark,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    0,
    0,
    init_type_KTextEditor_Mark,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KTextEditor_Mark,
    assign_KTextEditor_Mark,
    array_KTextEditor_Mark,
    copy_KTextEditor_Mark,
    release_KTextEditor_Mark,
    0,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 25 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/ktexteditor/loadsavefiltercheckplugin.sip"
#include <ktexteditor/loadsavefiltercheckplugin.h>
#line 210 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart4.cpp"

#line 29 "/usr/share/python3-sip/PyQt4/QtCore/qobject.sip"
#include <qobject.h>
#line 214 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 30 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/ktexteditor/document.sip"
#include <ktexteditor/document.h>

#include <ktexteditor/modificationinterface.h>
#include <ktexteditor/markinterface.h>
#include <ktexteditor/searchinterface.h>
#include <ktexteditor/sessionconfiginterface.h>
#include <ktexteditor/smartinterface.h>
#include <ktexteditor/templateinterface.h>
#include <ktexteditor/variableinterface.h>
#include <ktexteditor/movinginterface.h>
#include <ktexteditor/annotationinterface.h>
#include <ktexteditor/highlightinterface.h>
#include <ktexteditor/configinterface.h>
#include <ktexteditor/modeinterface.h>
#include <ktexteditor/sessionconfiginterface.h>
#include <ktexteditor/recoveryinterface.h>

#line 233 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 236 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 368 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 239 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 351 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 242 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 269 "/usr/share/python3-sip/PyQt4/QtCore/qvariant.sip"
#include <qvariant.h>
#line 245 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 28 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 248 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 32 "/usr/share/python3-sip/PyQt4/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 251 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 254 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 115 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 257 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qthread.sip"
#include <qthread.h>
#line 260 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 263 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qregexp.sip"
#include <qregexp.h>
#line 266 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 269 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart4.cpp"


class sipKTextEditor_LoadSaveFilterCheckPlugin : public KTextEditor::LoadSaveFilterCheckPlugin
{
public:
    sipKTextEditor_LoadSaveFilterCheckPlugin(QObject*);
    virtual ~sipKTextEditor_LoadSaveFilterCheckPlugin();

    int qt_metacall(QMetaObject::Call,int,void **);
    void *qt_metacast(const char *);
    const QMetaObject *metaObject() const;

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    void disconnectNotify(const char*);
    void connectNotify(const char*);
    void customEvent(QEvent*);
    void childEvent(QChildEvent*);
    void timerEvent(QTimerEvent*);
    bool eventFilter(QObject*,QEvent*);
    bool event(QEvent*);
    void postLoadFilter(KTextEditor::Document*);
    bool postSaveFilterCheck(KTextEditor::Document*,bool);
    bool preSavePostDialogFilterCheck(KTextEditor::Document*);

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipKTextEditor_LoadSaveFilterCheckPlugin(const sipKTextEditor_LoadSaveFilterCheckPlugin &);
    sipKTextEditor_LoadSaveFilterCheckPlugin &operator = (const sipKTextEditor_LoadSaveFilterCheckPlugin &);

    char sipPyMethods[10];
};

sipKTextEditor_LoadSaveFilterCheckPlugin::sipKTextEditor_LoadSaveFilterCheckPlugin(QObject*a0): KTextEditor::LoadSaveFilterCheckPlugin(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipKTextEditor_LoadSaveFilterCheckPlugin::~sipKTextEditor_LoadSaveFilterCheckPlugin()
{
    sipCommonDtor(sipPySelf);
}

const QMetaObject *sipKTextEditor_LoadSaveFilterCheckPlugin::metaObject() const
{
    return sip_ktexteditor_qt_metaobject(sipPySelf,sipType_KTextEditor_LoadSaveFilterCheckPlugin);
}

int sipKTextEditor_LoadSaveFilterCheckPlugin::qt_metacall(QMetaObject::Call _c,int _id,void **_a)
{
    _id = KTextEditor::LoadSaveFilterCheckPlugin::qt_metacall(_c,_id,_a);

    if (_id >= 0)
        _id = sip_ktexteditor_qt_metacall(sipPySelf,sipType_KTextEditor_LoadSaveFilterCheckPlugin,_c,_id,_a);

    return _id;
}

void *sipKTextEditor_LoadSaveFilterCheckPlugin::qt_metacast(const char *_clname)
{
    return (sip_ktexteditor_qt_metacast(sipPySelf, sipType_KTextEditor_LoadSaveFilterCheckPlugin, _clname)) ? this : KTextEditor::LoadSaveFilterCheckPlugin::qt_metacast(_clname);
}

void sipKTextEditor_LoadSaveFilterCheckPlugin::disconnectNotify(const char*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[0],sipPySelf,NULL,sipName_disconnectNotify);

    if (!sipMeth)
    {
        KTextEditor::LoadSaveFilterCheckPlugin::disconnectNotify(a0);
        return;
    }

    typedef void (*sipVH_QtCore_24)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const char*);

    ((sipVH_QtCore_24)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[24]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKTextEditor_LoadSaveFilterCheckPlugin::connectNotify(const char*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[1],sipPySelf,NULL,sipName_connectNotify);

    if (!sipMeth)
    {
        KTextEditor::LoadSaveFilterCheckPlugin::connectNotify(a0);
        return;
    }

    typedef void (*sipVH_QtCore_24)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const char*);

    ((sipVH_QtCore_24)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[24]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKTextEditor_LoadSaveFilterCheckPlugin::customEvent(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[2],sipPySelf,NULL,sipName_customEvent);

    if (!sipMeth)
    {
        KTextEditor::LoadSaveFilterCheckPlugin::customEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_17)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QEvent*);

    ((sipVH_QtCore_17)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[17]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKTextEditor_LoadSaveFilterCheckPlugin::childEvent(QChildEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[3],sipPySelf,NULL,sipName_childEvent);

    if (!sipMeth)
    {
        KTextEditor::LoadSaveFilterCheckPlugin::childEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_25)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QChildEvent*);

    ((sipVH_QtCore_25)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[25]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKTextEditor_LoadSaveFilterCheckPlugin::timerEvent(QTimerEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[4],sipPySelf,NULL,sipName_timerEvent);

    if (!sipMeth)
    {
        KTextEditor::LoadSaveFilterCheckPlugin::timerEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_9)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QTimerEvent*);

    ((sipVH_QtCore_9)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[9]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

bool sipKTextEditor_LoadSaveFilterCheckPlugin::eventFilter(QObject*a0,QEvent*a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[5],sipPySelf,NULL,sipName_eventFilter);

    if (!sipMeth)
        return KTextEditor::LoadSaveFilterCheckPlugin::eventFilter(a0,a1);

    typedef bool (*sipVH_QtCore_18)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QObject*,QEvent*);

    return ((sipVH_QtCore_18)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[18]))(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

bool sipKTextEditor_LoadSaveFilterCheckPlugin::event(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[6],sipPySelf,NULL,sipName_event);

    if (!sipMeth)
        return KTextEditor::LoadSaveFilterCheckPlugin::event(a0);

    typedef bool (*sipVH_QtCore_5)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QEvent*);

    return ((sipVH_QtCore_5)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[5]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKTextEditor_LoadSaveFilterCheckPlugin::postLoadFilter(KTextEditor::Document*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[7],sipPySelf,sipName_LoadSaveFilterCheckPlugin,sipName_postLoadFilter);

    if (!sipMeth)
        return;

    extern void sipVH_ktexteditor_24(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, KTextEditor::Document*);

    sipVH_ktexteditor_24(sipGILState, 0, sipPySelf, sipMeth, a0);
}

bool sipKTextEditor_LoadSaveFilterCheckPlugin::postSaveFilterCheck(KTextEditor::Document*a0,bool a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[8],sipPySelf,sipName_LoadSaveFilterCheckPlugin,sipName_postSaveFilterCheck);

    if (!sipMeth)
        return 0;

    extern bool sipVH_ktexteditor_58(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, KTextEditor::Document*,bool);

    return sipVH_ktexteditor_58(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

bool sipKTextEditor_LoadSaveFilterCheckPlugin::preSavePostDialogFilterCheck(KTextEditor::Document*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[9],sipPySelf,sipName_LoadSaveFilterCheckPlugin,sipName_preSavePostDialogFilterCheck);

    if (!sipMeth)
        return 0;

    extern bool sipVH_ktexteditor_59(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, KTextEditor::Document*);

    return sipVH_ktexteditor_59(sipGILState, 0, sipPySelf, sipMeth, a0);
}


extern "C" {static PyObject *meth_KTextEditor_LoadSaveFilterCheckPlugin_preSavePostDialogFilterCheck(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_LoadSaveFilterCheckPlugin_preSavePostDialogFilterCheck(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    PyObject *sipOrigSelf = sipSelf;

    {
        KTextEditor::Document* a0;
        KTextEditor::LoadSaveFilterCheckPlugin *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KTextEditor_LoadSaveFilterCheckPlugin, &sipCpp, sipType_KTextEditor_Document, &a0))
        {
            bool sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_LoadSaveFilterCheckPlugin, sipName_preSavePostDialogFilterCheck);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->preSavePostDialogFilterCheck(a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_LoadSaveFilterCheckPlugin, sipName_preSavePostDialogFilterCheck, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_LoadSaveFilterCheckPlugin_postSaveFilterCheck(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_LoadSaveFilterCheckPlugin_postSaveFilterCheck(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    PyObject *sipOrigSelf = sipSelf;

    {
        KTextEditor::Document* a0;
        bool a1;
        KTextEditor::LoadSaveFilterCheckPlugin *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8b", &sipSelf, sipType_KTextEditor_LoadSaveFilterCheckPlugin, &sipCpp, sipType_KTextEditor_Document, &a0, &a1))
        {
            bool sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_LoadSaveFilterCheckPlugin, sipName_postSaveFilterCheck);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->postSaveFilterCheck(a0,a1);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_LoadSaveFilterCheckPlugin, sipName_postSaveFilterCheck, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_LoadSaveFilterCheckPlugin_postLoadFilter(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_LoadSaveFilterCheckPlugin_postLoadFilter(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    PyObject *sipOrigSelf = sipSelf;

    {
        KTextEditor::Document* a0;
        KTextEditor::LoadSaveFilterCheckPlugin *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KTextEditor_LoadSaveFilterCheckPlugin, &sipCpp, sipType_KTextEditor_Document, &a0))
        {
            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_LoadSaveFilterCheckPlugin, sipName_postLoadFilter);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipCpp->postLoadFilter(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_LoadSaveFilterCheckPlugin, sipName_postLoadFilter, NULL);

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_KTextEditor_LoadSaveFilterCheckPlugin(void *, int);}
static void release_KTextEditor_LoadSaveFilterCheckPlugin(void *sipCppV,int)
{
    KTextEditor::LoadSaveFilterCheckPlugin *sipCpp = reinterpret_cast<KTextEditor::LoadSaveFilterCheckPlugin *>(sipCppV);

    Py_BEGIN_ALLOW_THREADS

    if (QThread::currentThread() == sipCpp->thread())
        delete sipCpp;
    else
        sipCpp->deleteLater();

    Py_END_ALLOW_THREADS
}


extern "C" {static void dealloc_KTextEditor_LoadSaveFilterCheckPlugin(sipSimpleWrapper *);}
static void dealloc_KTextEditor_LoadSaveFilterCheckPlugin(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipKTextEditor_LoadSaveFilterCheckPlugin *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_KTextEditor_LoadSaveFilterCheckPlugin(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


extern "C" {static void *init_type_KTextEditor_LoadSaveFilterCheckPlugin(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_KTextEditor_LoadSaveFilterCheckPlugin(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **sipOwner, PyObject **sipParseErr)
{
    sipKTextEditor_LoadSaveFilterCheckPlugin *sipCpp = 0;

    {
        QObject* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "JH", sipType_QObject, &a0, sipOwner))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipKTextEditor_LoadSaveFilterCheckPlugin(a0);
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_KTextEditor_LoadSaveFilterCheckPlugin[] = {{141, 0, 1}};


static PyMethodDef methods_KTextEditor_LoadSaveFilterCheckPlugin[] = {
    {SIP_MLNAME_CAST(sipName_postLoadFilter), meth_KTextEditor_LoadSaveFilterCheckPlugin_postLoadFilter, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_postSaveFilterCheck), meth_KTextEditor_LoadSaveFilterCheckPlugin_postSaveFilterCheck, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_preSavePostDialogFilterCheck), meth_KTextEditor_LoadSaveFilterCheckPlugin_preSavePostDialogFilterCheck, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_ktexteditor_KTextEditor_LoadSaveFilterCheckPlugin = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_ABSTRACT|SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_KTextEditor__LoadSaveFilterCheckPlugin,
        {0}
    },
    {
        sipNameNr_LoadSaveFilterCheckPlugin,
        {1, 255, 0},
        3, methods_KTextEditor_LoadSaveFilterCheckPlugin,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_KTextEditor_LoadSaveFilterCheckPlugin,
    0,
    init_type_KTextEditor_LoadSaveFilterCheckPlugin,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KTextEditor_LoadSaveFilterCheckPlugin,
    0,
    0,
    0,
    release_KTextEditor_LoadSaveFilterCheckPlugin,
    0,
    0,
    0,
    0,
    0,
    0,
    0
},
    &KTextEditor::LoadSaveFilterCheckPlugin::staticMetaObject,
    0,
    0
};

#line 25 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/ktexteditor/highlightinterface.sip"
#include <ktexteditor/highlightinterface.h>
#line 729 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart4.cpp"

#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 733 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 30 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/ktexteditor/cursor.sip"
#include <ktexteditor/cursor.h>
#line 736 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 739 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 340 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdecore/typedefs.sip"
#include <ksharedptr.h>
#line 742 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 30 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/ktexteditor/attribute.sip"
#include <ktexteditor/attribute.h>
#line 745 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart4.cpp"


extern "C" {static PyObject *meth_KTextEditor_HighlightInterface_defaultStyle(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_HighlightInterface_defaultStyle(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    PyObject *sipOrigSelf = sipSelf;

    {
        KTextEditor::HighlightInterface::DefaultStyle a0;
        const KTextEditor::HighlightInterface *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_KTextEditor_HighlightInterface, &sipCpp, sipType_KTextEditor_HighlightInterface_DefaultStyle, &a0))
        {
            KTextEditor::Attribute::Ptr*sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_HighlightInterface, sipName_defaultStyle);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KTextEditor::Attribute::Ptr(sipCpp->defaultStyle(a0));
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_KSharedPtr_0100KTextEditor_Attribute,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_HighlightInterface, sipName_defaultStyle, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_HighlightInterface_embeddedHighlightingModes(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_HighlightInterface_embeddedHighlightingModes(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    PyObject *sipOrigSelf = sipSelf;

    {
        const KTextEditor::HighlightInterface *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTextEditor_HighlightInterface, &sipCpp))
        {
            QStringList*sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_HighlightInterface, sipName_embeddedHighlightingModes);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QStringList(sipCpp->embeddedHighlightingModes());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QStringList,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_HighlightInterface, sipName_embeddedHighlightingModes, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_HighlightInterface_highlightingModeAt(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_HighlightInterface_highlightingModeAt(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    PyObject *sipOrigSelf = sipSelf;

    {
        const KTextEditor::Cursor* a0;
        KTextEditor::HighlightInterface *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_KTextEditor_HighlightInterface, &sipCpp, sipType_KTextEditor_Cursor, &a0))
        {
            QString*sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_HighlightInterface, sipName_highlightingModeAt);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->highlightingModeAt(*a0));
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_HighlightInterface, sipName_highlightingModeAt, NULL);

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_KTextEditor_HighlightInterface(void *, int);}
static void release_KTextEditor_HighlightInterface(void *sipCppV,int)
{
    Py_BEGIN_ALLOW_THREADS

    delete reinterpret_cast<KTextEditor::HighlightInterface *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void dealloc_KTextEditor_HighlightInterface(sipSimpleWrapper *);}
static void dealloc_KTextEditor_HighlightInterface(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_KTextEditor_HighlightInterface(sipGetAddress(sipSelf),0);
    }
}


static PyMethodDef methods_KTextEditor_HighlightInterface[] = {
    {SIP_MLNAME_CAST(sipName_defaultStyle), meth_KTextEditor_HighlightInterface_defaultStyle, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_embeddedHighlightingModes), meth_KTextEditor_HighlightInterface_embeddedHighlightingModes, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_highlightingModeAt), meth_KTextEditor_HighlightInterface_highlightingModeAt, METH_VARARGS, NULL}
};

static sipEnumMemberDef enummembers_KTextEditor_HighlightInterface[] = {
    {sipName_dsAlert, static_cast<int>(KTextEditor::HighlightInterface::dsAlert), 35},
    {sipName_dsBaseN, static_cast<int>(KTextEditor::HighlightInterface::dsBaseN), 35},
    {sipName_dsChar, static_cast<int>(KTextEditor::HighlightInterface::dsChar), 35},
    {sipName_dsComment, static_cast<int>(KTextEditor::HighlightInterface::dsComment), 35},
    {sipName_dsDataType, static_cast<int>(KTextEditor::HighlightInterface::dsDataType), 35},
    {sipName_dsDecVal, static_cast<int>(KTextEditor::HighlightInterface::dsDecVal), 35},
    {sipName_dsError, static_cast<int>(KTextEditor::HighlightInterface::dsError), 35},
    {sipName_dsFloat, static_cast<int>(KTextEditor::HighlightInterface::dsFloat), 35},
    {sipName_dsFunction, static_cast<int>(KTextEditor::HighlightInterface::dsFunction), 35},
    {sipName_dsKeyword, static_cast<int>(KTextEditor::HighlightInterface::dsKeyword), 35},
    {sipName_dsNormal, static_cast<int>(KTextEditor::HighlightInterface::dsNormal), 35},
    {sipName_dsOthers, static_cast<int>(KTextEditor::HighlightInterface::dsOthers), 35},
    {sipName_dsRegionMarker, static_cast<int>(KTextEditor::HighlightInterface::dsRegionMarker), 35},
    {sipName_dsString, static_cast<int>(KTextEditor::HighlightInterface::dsString), 35},
};


pyqt4ClassTypeDef sipTypeDef_ktexteditor_KTextEditor_HighlightInterface = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_ABSTRACT|SIP_TYPE_CLASS,
        sipNameNr_KTextEditor__HighlightInterface,
        {0}
    },
    {
        sipNameNr_HighlightInterface,
        {1, 255, 0},
        3, methods_KTextEditor_HighlightInterface,
        14, enummembers_KTextEditor_HighlightInterface,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    0,
    0,
    0,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KTextEditor_HighlightInterface,
    0,
    0,
    0,
    release_KTextEditor_HighlightInterface,
    0,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 31 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/ktexteditor/factory.sip"
#include <ktexteditor/factory.h>
#line 953 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart4.cpp"

#line 29 "/usr/share/python3-sip/PyQt4/QtCore/qobject.sip"
#include <qobject.h>
#line 957 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 34 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/ktexteditor/editor.sip"
#include <ktexteditor/editor.h>
#include <ktexteditor/commandinterface.h>
#include <ktexteditor/containerinterface.h>
#line 962 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 66 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kparts/part.sip"
#include <kparts/part.h>
#line 965 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 32 "/usr/share/python3-sip/PyQt4/QtGui/qwidget.sip"
#include <qwidget.h>
#line 968 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 971 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 26 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdecore/kcomponentdata.sip"
#include <kcomponentdata.h>
#line 974 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 977 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 28 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 980 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qvariant.sip"
#include <qvariant.h>
#line 983 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 269 "/usr/share/python3-sip/PyQt4/QtCore/qvariant.sip"
#include <qvariant.h>
#line 986 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 989 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 368 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 992 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 351 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 995 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 28 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 998 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 32 "/usr/share/python3-sip/PyQt4/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 1001 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 1004 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 115 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 1007 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qthread.sip"
#include <qthread.h>
#line 1010 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qregexp.sip"
#include <qregexp.h>
#line 1013 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 1016 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart4.cpp"


class sipKTextEditor_Factory : public KTextEditor::Factory
{
public:
    sipKTextEditor_Factory(QObject*);
    virtual ~sipKTextEditor_Factory();

    int qt_metacall(QMetaObject::Call,int,void **);
    void *qt_metacast(const char *);
    const QMetaObject *metaObject() const;

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    void disconnectNotify(const char*);
    void connectNotify(const char*);
    void customEvent(QEvent*);
    void childEvent(QChildEvent*);
    void timerEvent(QTimerEvent*);
    bool eventFilter(QObject*,QEvent*);
    bool event(QEvent*);
    QObject* create(const char*,QWidget*,QObject*,const QVariantList&,const QString&);
    QObject* createObject(QObject*,const char*,const QStringList&);
    void setupTranslations();
    KParts::Part* createPartObject(QWidget*,QObject*,const char*,const QStringList&);
    KComponentData partComponentData();
    KTextEditor::Editor* editor();

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipKTextEditor_Factory(const sipKTextEditor_Factory &);
    sipKTextEditor_Factory &operator = (const sipKTextEditor_Factory &);

    char sipPyMethods[13];
};

sipKTextEditor_Factory::sipKTextEditor_Factory(QObject*a0): KTextEditor::Factory(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipKTextEditor_Factory::~sipKTextEditor_Factory()
{
    sipCommonDtor(sipPySelf);
}

const QMetaObject *sipKTextEditor_Factory::metaObject() const
{
    return sip_ktexteditor_qt_metaobject(sipPySelf,sipType_KTextEditor_Factory);
}

int sipKTextEditor_Factory::qt_metacall(QMetaObject::Call _c,int _id,void **_a)
{
    _id = KTextEditor::Factory::qt_metacall(_c,_id,_a);

    if (_id >= 0)
        _id = sip_ktexteditor_qt_metacall(sipPySelf,sipType_KTextEditor_Factory,_c,_id,_a);

    return _id;
}

void *sipKTextEditor_Factory::qt_metacast(const char *_clname)
{
    return (sip_ktexteditor_qt_metacast(sipPySelf, sipType_KTextEditor_Factory, _clname)) ? this : KTextEditor::Factory::qt_metacast(_clname);
}

void sipKTextEditor_Factory::disconnectNotify(const char*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[0],sipPySelf,NULL,sipName_disconnectNotify);

    if (!sipMeth)
    {
        KTextEditor::Factory::disconnectNotify(a0);
        return;
    }

    typedef void (*sipVH_QtCore_24)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const char*);

    ((sipVH_QtCore_24)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[24]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKTextEditor_Factory::connectNotify(const char*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[1],sipPySelf,NULL,sipName_connectNotify);

    if (!sipMeth)
    {
        KTextEditor::Factory::connectNotify(a0);
        return;
    }

    typedef void (*sipVH_QtCore_24)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const char*);

    ((sipVH_QtCore_24)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[24]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKTextEditor_Factory::customEvent(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[2],sipPySelf,NULL,sipName_customEvent);

    if (!sipMeth)
    {
        KTextEditor::Factory::customEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_17)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QEvent*);

    ((sipVH_QtCore_17)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[17]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKTextEditor_Factory::childEvent(QChildEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[3],sipPySelf,NULL,sipName_childEvent);

    if (!sipMeth)
    {
        KTextEditor::Factory::childEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_25)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QChildEvent*);

    ((sipVH_QtCore_25)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[25]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKTextEditor_Factory::timerEvent(QTimerEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[4],sipPySelf,NULL,sipName_timerEvent);

    if (!sipMeth)
    {
        KTextEditor::Factory::timerEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_9)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QTimerEvent*);

    ((sipVH_QtCore_9)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[9]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

bool sipKTextEditor_Factory::eventFilter(QObject*a0,QEvent*a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[5],sipPySelf,NULL,sipName_eventFilter);

    if (!sipMeth)
        return KTextEditor::Factory::eventFilter(a0,a1);

    typedef bool (*sipVH_QtCore_18)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QObject*,QEvent*);

    return ((sipVH_QtCore_18)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[18]))(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

bool sipKTextEditor_Factory::event(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[6],sipPySelf,NULL,sipName_event);

    if (!sipMeth)
        return KTextEditor::Factory::event(a0);

    typedef bool (*sipVH_QtCore_5)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QEvent*);

    return ((sipVH_QtCore_5)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[5]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

QObject* sipKTextEditor_Factory::create(const char*a0,QWidget*a1,QObject*a2,const QVariantList& a3,const QString& a4)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[7],sipPySelf,NULL,sipName_create);

    if (!sipMeth)
        return KTextEditor::Factory::create(a0,a1,a2,a3,a4);

    typedef QObject* (*sipVH_kdecore_16)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const char*,QWidget*,QObject*,const QList<QVariant>&,const QString&);

    return ((sipVH_kdecore_16)(sipModuleAPI_ktexteditor_kdecore->em_virthandlers[16]))(sipGILState, 0, sipPySelf, sipMeth, a0, a1, a2, a3, a4);
}

QObject* sipKTextEditor_Factory::createObject(QObject*a0,const char*a1,const QStringList& a2)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[8],sipPySelf,NULL,sipName_createObject);

    if (!sipMeth)
        return KTextEditor::Factory::createObject(a0,a1,a2);

    typedef QObject* (*sipVH_kdecore_17)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QObject*,const char*,const QStringList&);

    return ((sipVH_kdecore_17)(sipModuleAPI_ktexteditor_kdecore->em_virthandlers[17]))(sipGILState, 0, sipPySelf, sipMeth, a0, a1, a2);
}

void sipKTextEditor_Factory::setupTranslations()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[9],sipPySelf,NULL,sipName_setupTranslations);

    if (!sipMeth)
    {
        KTextEditor::Factory::setupTranslations();
        return;
    }

    typedef void (*sipVH_QtCore_11)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    ((sipVH_QtCore_11)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[11]))(sipGILState, 0, sipPySelf, sipMeth);
}

KParts::Part* sipKTextEditor_Factory::createPartObject(QWidget*a0,QObject*a1,const char*a2,const QStringList& a3)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[10],sipPySelf,sipName_Factory,sipName_createPartObject);

    if (!sipMeth)
        return 0;

    typedef KParts::Part* (*sipVH_kparts_30)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QWidget*,QObject*,const char*,const QStringList&);

    return ((sipVH_kparts_30)(sipModuleAPI_ktexteditor_kparts->em_virthandlers[30]))(sipGILState, 0, sipPySelf, sipMeth, a0, a1, a2, a3);
}

KComponentData sipKTextEditor_Factory::partComponentData()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[11],sipPySelf,NULL,sipName_partComponentData);

    if (!sipMeth)
        return KTextEditor::Factory::partComponentData();

    typedef KComponentData (*sipVH_kdeui_19)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_kdeui_19)(sipModuleAPI_ktexteditor_kdeui->em_virthandlers[19]))(sipGILState, 0, sipPySelf, sipMeth);
}

KTextEditor::Editor* sipKTextEditor_Factory::editor()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[12],sipPySelf,sipName_Factory,sipName_editor);

    if (!sipMeth)
        return 0;

    extern KTextEditor::Editor* sipVH_ktexteditor_61(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_ktexteditor_61(sipGILState, 0, sipPySelf, sipMeth);
}


extern "C" {static PyObject *meth_KTextEditor_Factory_editor(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Factory_editor(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    PyObject *sipOrigSelf = sipSelf;

    {
        KTextEditor::Factory *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTextEditor_Factory, &sipCpp))
        {
            KTextEditor::Editor*sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_Factory, sipName_editor);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->editor();
            Py_END_ALLOW_THREADS

            return sipConvertFromType(sipRes,sipType_KTextEditor_Editor,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Factory, sipName_editor, NULL);

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_KTextEditor_Factory(void *, int);}
static void release_KTextEditor_Factory(void *sipCppV,int)
{
    KTextEditor::Factory *sipCpp = reinterpret_cast<KTextEditor::Factory *>(sipCppV);

    Py_BEGIN_ALLOW_THREADS

    if (QThread::currentThread() == sipCpp->thread())
        delete sipCpp;
    else
        sipCpp->deleteLater();

    Py_END_ALLOW_THREADS
}


extern "C" {static void dealloc_KTextEditor_Factory(sipSimpleWrapper *);}
static void dealloc_KTextEditor_Factory(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipKTextEditor_Factory *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_KTextEditor_Factory(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


extern "C" {static void *init_type_KTextEditor_Factory(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_KTextEditor_Factory(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **sipOwner, PyObject **sipParseErr)
{
    sipKTextEditor_Factory *sipCpp = 0;

    {
        QObject* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "JH", sipType_QObject, &a0, sipOwner))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipKTextEditor_Factory(a0);
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_KTextEditor_Factory[] = {{16, 9, 1}};


static PyMethodDef methods_KTextEditor_Factory[] = {
    {SIP_MLNAME_CAST(sipName_editor), meth_KTextEditor_Factory_editor, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_ktexteditor_KTextEditor_Factory = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_ABSTRACT|SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_KTextEditor__Factory,
        {0}
    },
    {
        sipNameNr_Factory,
        {1, 255, 0},
        1, methods_KTextEditor_Factory,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_KTextEditor_Factory,
    0,
    init_type_KTextEditor_Factory,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KTextEditor_Factory,
    0,
    0,
    0,
    release_KTextEditor_Factory,
    0,
    0,
    0,
    0,
    0,
    0,
    0
},
    &KTextEditor::Factory::staticMetaObject,
    0,
    0
};

#line 30 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/ktexteditor/editorchooser.sip"
#include <ktexteditor/editorchooser.h>
#line 1454 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart4.cpp"

#line 32 "/usr/share/python3-sip/PyQt4/QtGui/qwidget.sip"
#include <qwidget.h>
#line 1458 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 34 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/ktexteditor/editor.sip"
#include <ktexteditor/editor.h>
#include <ktexteditor/commandinterface.h>
#include <ktexteditor/containerinterface.h>
#line 1463 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 1466 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 1469 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 34 "/usr/share/python3-sip/PyQt4/QtCore/qmargins.sip"
#include <qmargins.h>
#line 1472 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 1475 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 1478 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 34 "/usr/share/python3-sip/PyQt4/QtGui/qgraphicseffect.sip"
#include <qgraphicseffect.h>
#line 1481 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 28 "/usr/share/python3-sip/PyQt4/QtGui/qgraphicsproxywidget.sip"
#include <qgraphicsproxywidget.h>
#line 1484 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qlocale.sip"
#include <qlocale.h>
#line 1487 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtGui/qpaintdevice.sip"
#include <qpaintdevice.h>
#line 1490 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qpoint.sip"
#include <qpoint.h>
#line 1493 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtGui/qregion.sip"
#include <qregion.h>
#line 1496 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 32 "/usr/share/python3-sip/PyQt4/QtGui/qwidget.sip"
#include <qwidget.h>
#line 1499 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtGui/qpainter.sip"
#include <qpainter.h>
#line 1502 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 32 "/usr/share/python3-sip/PyQt4/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 1505 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qsize.sip"
#include <qsize.h>
#line 1508 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qrect.sip"
#include <qrect.h>
#line 1511 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtGui/qfontinfo.sip"
#include <qfontinfo.h>
#line 1514 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtGui/qfontmetrics.sip"
#include <qfontmetrics.h>
#line 1517 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtGui/qfont.sip"
#include <qfont.h>
#line 1520 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 1523 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtGui/qpalette.sip"
#include <qpalette.h>
#line 1526 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 269 "/usr/share/python3-sip/PyQt4/QtCore/qvariant.sip"
#include <qvariant.h>
#line 1529 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 651 "/usr/share/python3-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 1532 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 1535 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 611 "/usr/share/python3-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 1538 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 600 "/usr/share/python3-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 1541 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 743 "/usr/share/python3-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 1544 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 796 "/usr/share/python3-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 1547 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 769 "/usr/share/python3-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 1550 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 785 "/usr/share/python3-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 1553 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 858 "/usr/share/python3-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 1556 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 407 "/usr/share/python3-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 1559 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 622 "/usr/share/python3-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 1562 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 578 "/usr/share/python3-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 1565 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 565 "/usr/share/python3-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 1568 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 552 "/usr/share/python3-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 1571 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 528 "/usr/share/python3-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 1574 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 509 "/usr/share/python3-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 1577 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 478 "/usr/share/python3-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 1580 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 351 "/usr/share/python3-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 1583 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 256 "/usr/share/python3-sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 1586 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 28 "/usr/share/python3-sip/PyQt4/QtGui/qinputcontext.sip"
#include <qinputcontext.h>
#line 1589 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 56 "/usr/share/python3-sip/PyQt4/QtGui/qpaintengine.sip"
#include <qpaintengine.h>
#line 1592 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 34 "/usr/share/python3-sip/PyQt4/QtGui/qx11info_x11.sip"
#include <qx11info_x11.h>
#line 1595 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 115 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 1598 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtGui/qaction.sip"
#include <qaction.h>
#line 1601 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtGui/qlayout.sip"
#include <qlayout.h>
#line 1604 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtGui/qsizepolicy.sip"
#include <qsizepolicy.h>
#line 1607 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 1610 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtGui/qkeysequence.sip"
#include <qkeysequence.h>
#line 1613 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtGui/qcursor.sip"
#include <qcursor.h>
#line 1616 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtGui/qicon.sip"
#include <qicon.h>
#line 1619 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtGui/qbitmap.sip"
#include <qbitmap.h>
#line 1622 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtGui/qstyle.sip"
#include <qstyle.h>
#line 1625 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 368 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 1628 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 351 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 1631 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 29 "/usr/share/python3-sip/PyQt4/QtCore/qobject.sip"
#include <qobject.h>
#line 1634 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 28 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 1637 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 115 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 1640 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qthread.sip"
#include <qthread.h>
#line 1643 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qregexp.sip"
#include <qregexp.h>
#line 1646 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 1649 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart4.cpp"


class sipKTextEditor_EditorChooser : public KTextEditor::EditorChooser
{
public:
    sipKTextEditor_EditorChooser(QWidget*);
    virtual ~sipKTextEditor_EditorChooser();

    int qt_metacall(QMetaObject::Call,int,void **);
    void *qt_metacast(const char *);
    const QMetaObject *metaObject() const;

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    void disconnectNotify(const char*);
    void connectNotify(const char*);
    void customEvent(QEvent*);
    void childEvent(QChildEvent*);
    void timerEvent(QTimerEvent*);
    bool eventFilter(QObject*,QEvent*);
    void languageChange();
    void windowActivationChange(bool);
    void fontChange(const QFont&);
    void paletteChange(const QPalette&);
    void enabledChange(bool);
    bool focusNextPrevChild(bool);
    QVariant inputMethodQuery(Qt::InputMethodQuery) const;
    void inputMethodEvent(QInputMethodEvent*);
    int metric(QPaintDevice::PaintDeviceMetric) const;
    void changeEvent(QEvent*);
    void hideEvent(QHideEvent*);
    void showEvent(QShowEvent*);
    void dropEvent(QDropEvent*);
    void dragLeaveEvent(QDragLeaveEvent*);
    void dragMoveEvent(QDragMoveEvent*);
    void dragEnterEvent(QDragEnterEvent*);
    void actionEvent(QActionEvent*);
    void tabletEvent(QTabletEvent*);
    void contextMenuEvent(QContextMenuEvent*);
    void closeEvent(QCloseEvent*);
    void resizeEvent(QResizeEvent*);
    void moveEvent(QMoveEvent*);
    void paintEvent(QPaintEvent*);
    void leaveEvent(QEvent*);
    void enterEvent(QEvent*);
    void focusOutEvent(QFocusEvent*);
    void focusInEvent(QFocusEvent*);
    void keyReleaseEvent(QKeyEvent*);
    void keyPressEvent(QKeyEvent*);
    void wheelEvent(QWheelEvent*);
    void mouseMoveEvent(QMouseEvent*);
    void mouseDoubleClickEvent(QMouseEvent*);
    void mouseReleaseEvent(QMouseEvent*);
    void mousePressEvent(QMouseEvent*);
    bool event(QEvent*);
    QPaintEngine* paintEngine() const;
    int heightForWidth(int) const;
    QSize minimumSizeHint() const;
    QSize sizeHint() const;
    void setVisible(bool);
    int devType() const;

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipKTextEditor_EditorChooser(const sipKTextEditor_EditorChooser &);
    sipKTextEditor_EditorChooser &operator = (const sipKTextEditor_EditorChooser &);

    char sipPyMethods[47];
};

sipKTextEditor_EditorChooser::sipKTextEditor_EditorChooser(QWidget*a0): KTextEditor::EditorChooser(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipKTextEditor_EditorChooser::~sipKTextEditor_EditorChooser()
{
    sipCommonDtor(sipPySelf);
}

const QMetaObject *sipKTextEditor_EditorChooser::metaObject() const
{
    return sip_ktexteditor_qt_metaobject(sipPySelf,sipType_KTextEditor_EditorChooser);
}

int sipKTextEditor_EditorChooser::qt_metacall(QMetaObject::Call _c,int _id,void **_a)
{
    _id = KTextEditor::EditorChooser::qt_metacall(_c,_id,_a);

    if (_id >= 0)
        _id = sip_ktexteditor_qt_metacall(sipPySelf,sipType_KTextEditor_EditorChooser,_c,_id,_a);

    return _id;
}

void *sipKTextEditor_EditorChooser::qt_metacast(const char *_clname)
{
    return (sip_ktexteditor_qt_metacast(sipPySelf, sipType_KTextEditor_EditorChooser, _clname)) ? this : KTextEditor::EditorChooser::qt_metacast(_clname);
}

void sipKTextEditor_EditorChooser::disconnectNotify(const char*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[0],sipPySelf,NULL,sipName_disconnectNotify);

    if (!sipMeth)
    {
        KTextEditor::EditorChooser::disconnectNotify(a0);
        return;
    }

    typedef void (*sipVH_QtCore_24)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const char*);

    ((sipVH_QtCore_24)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[24]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKTextEditor_EditorChooser::connectNotify(const char*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[1],sipPySelf,NULL,sipName_connectNotify);

    if (!sipMeth)
    {
        KTextEditor::EditorChooser::connectNotify(a0);
        return;
    }

    typedef void (*sipVH_QtCore_24)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const char*);

    ((sipVH_QtCore_24)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[24]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKTextEditor_EditorChooser::customEvent(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[2],sipPySelf,NULL,sipName_customEvent);

    if (!sipMeth)
    {
        KTextEditor::EditorChooser::customEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_17)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QEvent*);

    ((sipVH_QtCore_17)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[17]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKTextEditor_EditorChooser::childEvent(QChildEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[3],sipPySelf,NULL,sipName_childEvent);

    if (!sipMeth)
    {
        KTextEditor::EditorChooser::childEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_25)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QChildEvent*);

    ((sipVH_QtCore_25)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[25]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKTextEditor_EditorChooser::timerEvent(QTimerEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[4],sipPySelf,NULL,sipName_timerEvent);

    if (!sipMeth)
    {
        KTextEditor::EditorChooser::timerEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_9)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QTimerEvent*);

    ((sipVH_QtCore_9)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[9]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

bool sipKTextEditor_EditorChooser::eventFilter(QObject*a0,QEvent*a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[5],sipPySelf,NULL,sipName_eventFilter);

    if (!sipMeth)
        return KTextEditor::EditorChooser::eventFilter(a0,a1);

    typedef bool (*sipVH_QtCore_18)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QObject*,QEvent*);

    return ((sipVH_QtCore_18)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[18]))(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

void sipKTextEditor_EditorChooser::languageChange()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[6],sipPySelf,NULL,sipName_languageChange);

    if (!sipMeth)
    {
        KTextEditor::EditorChooser::languageChange();
        return;
    }

    typedef void (*sipVH_QtCore_11)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    ((sipVH_QtCore_11)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[11]))(sipGILState, 0, sipPySelf, sipMeth);
}

void sipKTextEditor_EditorChooser::windowActivationChange(bool a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[7],sipPySelf,NULL,sipName_windowActivationChange);

    if (!sipMeth)
    {
        KTextEditor::EditorChooser::windowActivationChange(a0);
        return;
    }

    typedef void (*sipVH_QtGui_6)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, bool);

    ((sipVH_QtGui_6)(sipModuleAPI_ktexteditor_QtGui->em_virthandlers[6]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKTextEditor_EditorChooser::fontChange(const QFont& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[8],sipPySelf,NULL,sipName_fontChange);

    if (!sipMeth)
    {
        KTextEditor::EditorChooser::fontChange(a0);
        return;
    }

    typedef void (*sipVH_QtGui_9)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QFont&);

    ((sipVH_QtGui_9)(sipModuleAPI_ktexteditor_QtGui->em_virthandlers[9]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKTextEditor_EditorChooser::paletteChange(const QPalette& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[9],sipPySelf,NULL,sipName_paletteChange);

    if (!sipMeth)
    {
        KTextEditor::EditorChooser::paletteChange(a0);
        return;
    }

    typedef void (*sipVH_QtGui_10)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QPalette&);

    ((sipVH_QtGui_10)(sipModuleAPI_ktexteditor_QtGui->em_virthandlers[10]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKTextEditor_EditorChooser::enabledChange(bool a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[10],sipPySelf,NULL,sipName_enabledChange);

    if (!sipMeth)
    {
        KTextEditor::EditorChooser::enabledChange(a0);
        return;
    }

    typedef void (*sipVH_QtGui_6)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, bool);

    ((sipVH_QtGui_6)(sipModuleAPI_ktexteditor_QtGui->em_virthandlers[6]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

bool sipKTextEditor_EditorChooser::focusNextPrevChild(bool a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[11],sipPySelf,NULL,sipName_focusNextPrevChild);

    if (!sipMeth)
        return KTextEditor::EditorChooser::focusNextPrevChild(a0);

    typedef bool (*sipVH_QtGui_11)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, bool);

    return ((sipVH_QtGui_11)(sipModuleAPI_ktexteditor_QtGui->em_virthandlers[11]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

QVariant sipKTextEditor_EditorChooser::inputMethodQuery(Qt::InputMethodQuery a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[12]),sipPySelf,NULL,sipName_inputMethodQuery);

    if (!sipMeth)
        return KTextEditor::EditorChooser::inputMethodQuery(a0);

    typedef QVariant (*sipVH_QtGui_12)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, Qt::InputMethodQuery);

    return ((sipVH_QtGui_12)(sipModuleAPI_ktexteditor_QtGui->em_virthandlers[12]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKTextEditor_EditorChooser::inputMethodEvent(QInputMethodEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[13],sipPySelf,NULL,sipName_inputMethodEvent);

    if (!sipMeth)
    {
        KTextEditor::EditorChooser::inputMethodEvent(a0);
        return;
    }

    typedef void (*sipVH_QtGui_13)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QInputMethodEvent*);

    ((sipVH_QtGui_13)(sipModuleAPI_ktexteditor_QtGui->em_virthandlers[13]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

int sipKTextEditor_EditorChooser::metric(QPaintDevice::PaintDeviceMetric a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[14]),sipPySelf,NULL,sipName_metric);

    if (!sipMeth)
        return KTextEditor::EditorChooser::metric(a0);

    typedef int (*sipVH_QtGui_14)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QPaintDevice::PaintDeviceMetric);

    return ((sipVH_QtGui_14)(sipModuleAPI_ktexteditor_QtGui->em_virthandlers[14]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKTextEditor_EditorChooser::changeEvent(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[15],sipPySelf,NULL,sipName_changeEvent);

    if (!sipMeth)
    {
        KTextEditor::EditorChooser::changeEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_17)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QEvent*);

    ((sipVH_QtCore_17)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[17]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKTextEditor_EditorChooser::hideEvent(QHideEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[16],sipPySelf,NULL,sipName_hideEvent);

    if (!sipMeth)
    {
        KTextEditor::EditorChooser::hideEvent(a0);
        return;
    }

    typedef void (*sipVH_QtGui_0)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QHideEvent*);

    ((sipVH_QtGui_0)(sipModuleAPI_ktexteditor_QtGui->em_virthandlers[0]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKTextEditor_EditorChooser::showEvent(QShowEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[17],sipPySelf,NULL,sipName_showEvent);

    if (!sipMeth)
    {
        KTextEditor::EditorChooser::showEvent(a0);
        return;
    }

    typedef void (*sipVH_QtGui_1)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QShowEvent*);

    ((sipVH_QtGui_1)(sipModuleAPI_ktexteditor_QtGui->em_virthandlers[1]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKTextEditor_EditorChooser::dropEvent(QDropEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[18],sipPySelf,NULL,sipName_dropEvent);

    if (!sipMeth)
    {
        KTextEditor::EditorChooser::dropEvent(a0);
        return;
    }

    typedef void (*sipVH_QtGui_15)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QDropEvent*);

    ((sipVH_QtGui_15)(sipModuleAPI_ktexteditor_QtGui->em_virthandlers[15]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKTextEditor_EditorChooser::dragLeaveEvent(QDragLeaveEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[19],sipPySelf,NULL,sipName_dragLeaveEvent);

    if (!sipMeth)
    {
        KTextEditor::EditorChooser::dragLeaveEvent(a0);
        return;
    }

    typedef void (*sipVH_QtGui_16)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QDragLeaveEvent*);

    ((sipVH_QtGui_16)(sipModuleAPI_ktexteditor_QtGui->em_virthandlers[16]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKTextEditor_EditorChooser::dragMoveEvent(QDragMoveEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[20],sipPySelf,NULL,sipName_dragMoveEvent);

    if (!sipMeth)
    {
        KTextEditor::EditorChooser::dragMoveEvent(a0);
        return;
    }

    typedef void (*sipVH_QtGui_17)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QDragMoveEvent*);

    ((sipVH_QtGui_17)(sipModuleAPI_ktexteditor_QtGui->em_virthandlers[17]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKTextEditor_EditorChooser::dragEnterEvent(QDragEnterEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[21],sipPySelf,NULL,sipName_dragEnterEvent);

    if (!sipMeth)
    {
        KTextEditor::EditorChooser::dragEnterEvent(a0);
        return;
    }

    typedef void (*sipVH_QtGui_18)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QDragEnterEvent*);

    ((sipVH_QtGui_18)(sipModuleAPI_ktexteditor_QtGui->em_virthandlers[18]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKTextEditor_EditorChooser::actionEvent(QActionEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[22],sipPySelf,NULL,sipName_actionEvent);

    if (!sipMeth)
    {
        KTextEditor::EditorChooser::actionEvent(a0);
        return;
    }

    typedef void (*sipVH_QtGui_19)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QActionEvent*);

    ((sipVH_QtGui_19)(sipModuleAPI_ktexteditor_QtGui->em_virthandlers[19]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKTextEditor_EditorChooser::tabletEvent(QTabletEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[23],sipPySelf,NULL,sipName_tabletEvent);

    if (!sipMeth)
    {
        KTextEditor::EditorChooser::tabletEvent(a0);
        return;
    }

    typedef void (*sipVH_QtGui_20)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QTabletEvent*);

    ((sipVH_QtGui_20)(sipModuleAPI_ktexteditor_QtGui->em_virthandlers[20]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKTextEditor_EditorChooser::contextMenuEvent(QContextMenuEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[24],sipPySelf,NULL,sipName_contextMenuEvent);

    if (!sipMeth)
    {
        KTextEditor::EditorChooser::contextMenuEvent(a0);
        return;
    }

    typedef void (*sipVH_QtGui_21)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QContextMenuEvent*);

    ((sipVH_QtGui_21)(sipModuleAPI_ktexteditor_QtGui->em_virthandlers[21]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKTextEditor_EditorChooser::closeEvent(QCloseEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[25],sipPySelf,NULL,sipName_closeEvent);

    if (!sipMeth)
    {
        KTextEditor::EditorChooser::closeEvent(a0);
        return;
    }

    typedef void (*sipVH_QtGui_22)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QCloseEvent*);

    ((sipVH_QtGui_22)(sipModuleAPI_ktexteditor_QtGui->em_virthandlers[22]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKTextEditor_EditorChooser::resizeEvent(QResizeEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[26],sipPySelf,NULL,sipName_resizeEvent);

    if (!sipMeth)
    {
        KTextEditor::EditorChooser::resizeEvent(a0);
        return;
    }

    typedef void (*sipVH_QtGui_2)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QResizeEvent*);

    ((sipVH_QtGui_2)(sipModuleAPI_ktexteditor_QtGui->em_virthandlers[2]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKTextEditor_EditorChooser::moveEvent(QMoveEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[27],sipPySelf,NULL,sipName_moveEvent);

    if (!sipMeth)
    {
        KTextEditor::EditorChooser::moveEvent(a0);
        return;
    }

    typedef void (*sipVH_QtGui_23)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QMoveEvent*);

    ((sipVH_QtGui_23)(sipModuleAPI_ktexteditor_QtGui->em_virthandlers[23]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKTextEditor_EditorChooser::paintEvent(QPaintEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[28],sipPySelf,NULL,sipName_paintEvent);

    if (!sipMeth)
    {
        KTextEditor::EditorChooser::paintEvent(a0);
        return;
    }

    typedef void (*sipVH_QtGui_3)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QPaintEvent*);

    ((sipVH_QtGui_3)(sipModuleAPI_ktexteditor_QtGui->em_virthandlers[3]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKTextEditor_EditorChooser::leaveEvent(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[29],sipPySelf,NULL,sipName_leaveEvent);

    if (!sipMeth)
    {
        KTextEditor::EditorChooser::leaveEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_17)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QEvent*);

    ((sipVH_QtCore_17)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[17]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKTextEditor_EditorChooser::enterEvent(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[30],sipPySelf,NULL,sipName_enterEvent);

    if (!sipMeth)
    {
        KTextEditor::EditorChooser::enterEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_17)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QEvent*);

    ((sipVH_QtCore_17)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[17]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKTextEditor_EditorChooser::focusOutEvent(QFocusEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[31],sipPySelf,NULL,sipName_focusOutEvent);

    if (!sipMeth)
    {
        KTextEditor::EditorChooser::focusOutEvent(a0);
        return;
    }

    typedef void (*sipVH_QtGui_24)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QFocusEvent*);

    ((sipVH_QtGui_24)(sipModuleAPI_ktexteditor_QtGui->em_virthandlers[24]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKTextEditor_EditorChooser::focusInEvent(QFocusEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[32],sipPySelf,NULL,sipName_focusInEvent);

    if (!sipMeth)
    {
        KTextEditor::EditorChooser::focusInEvent(a0);
        return;
    }

    typedef void (*sipVH_QtGui_24)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QFocusEvent*);

    ((sipVH_QtGui_24)(sipModuleAPI_ktexteditor_QtGui->em_virthandlers[24]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKTextEditor_EditorChooser::keyReleaseEvent(QKeyEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[33],sipPySelf,NULL,sipName_keyReleaseEvent);

    if (!sipMeth)
    {
        KTextEditor::EditorChooser::keyReleaseEvent(a0);
        return;
    }

    typedef void (*sipVH_QtGui_25)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QKeyEvent*);

    ((sipVH_QtGui_25)(sipModuleAPI_ktexteditor_QtGui->em_virthandlers[25]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKTextEditor_EditorChooser::keyPressEvent(QKeyEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[34],sipPySelf,NULL,sipName_keyPressEvent);

    if (!sipMeth)
    {
        KTextEditor::EditorChooser::keyPressEvent(a0);
        return;
    }

    typedef void (*sipVH_QtGui_25)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QKeyEvent*);

    ((sipVH_QtGui_25)(sipModuleAPI_ktexteditor_QtGui->em_virthandlers[25]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKTextEditor_EditorChooser::wheelEvent(QWheelEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[35],sipPySelf,NULL,sipName_wheelEvent);

    if (!sipMeth)
    {
        KTextEditor::EditorChooser::wheelEvent(a0);
        return;
    }

    typedef void (*sipVH_QtGui_5)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QWheelEvent*);

    ((sipVH_QtGui_5)(sipModuleAPI_ktexteditor_QtGui->em_virthandlers[5]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKTextEditor_EditorChooser::mouseMoveEvent(QMouseEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[36],sipPySelf,NULL,sipName_mouseMoveEvent);

    if (!sipMeth)
    {
        KTextEditor::EditorChooser::mouseMoveEvent(a0);
        return;
    }

    typedef void (*sipVH_QtGui_26)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QMouseEvent*);

    ((sipVH_QtGui_26)(sipModuleAPI_ktexteditor_QtGui->em_virthandlers[26]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKTextEditor_EditorChooser::mouseDoubleClickEvent(QMouseEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[37],sipPySelf,NULL,sipName_mouseDoubleClickEvent);

    if (!sipMeth)
    {
        KTextEditor::EditorChooser::mouseDoubleClickEvent(a0);
        return;
    }

    typedef void (*sipVH_QtGui_26)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QMouseEvent*);

    ((sipVH_QtGui_26)(sipModuleAPI_ktexteditor_QtGui->em_virthandlers[26]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKTextEditor_EditorChooser::mouseReleaseEvent(QMouseEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[38],sipPySelf,NULL,sipName_mouseReleaseEvent);

    if (!sipMeth)
    {
        KTextEditor::EditorChooser::mouseReleaseEvent(a0);
        return;
    }

    typedef void (*sipVH_QtGui_26)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QMouseEvent*);

    ((sipVH_QtGui_26)(sipModuleAPI_ktexteditor_QtGui->em_virthandlers[26]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKTextEditor_EditorChooser::mousePressEvent(QMouseEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[39],sipPySelf,NULL,sipName_mousePressEvent);

    if (!sipMeth)
    {
        KTextEditor::EditorChooser::mousePressEvent(a0);
        return;
    }

    typedef void (*sipVH_QtGui_26)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QMouseEvent*);

    ((sipVH_QtGui_26)(sipModuleAPI_ktexteditor_QtGui->em_virthandlers[26]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

bool sipKTextEditor_EditorChooser::event(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[40],sipPySelf,NULL,sipName_event);

    if (!sipMeth)
        return KTextEditor::EditorChooser::event(a0);

    typedef bool (*sipVH_QtCore_5)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QEvent*);

    return ((sipVH_QtCore_5)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[5]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

QPaintEngine* sipKTextEditor_EditorChooser::paintEngine() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[41]),sipPySelf,NULL,sipName_paintEngine);

    if (!sipMeth)
        return KTextEditor::EditorChooser::paintEngine();

    typedef QPaintEngine* (*sipVH_QtGui_27)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtGui_27)(sipModuleAPI_ktexteditor_QtGui->em_virthandlers[27]))(sipGILState, 0, sipPySelf, sipMeth);
}

int sipKTextEditor_EditorChooser::heightForWidth(int a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[42]),sipPySelf,NULL,sipName_heightForWidth);

    if (!sipMeth)
        return KTextEditor::EditorChooser::heightForWidth(a0);

    typedef int (*sipVH_QtGui_28)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int);

    return ((sipVH_QtGui_28)(sipModuleAPI_ktexteditor_QtGui->em_virthandlers[28]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

QSize sipKTextEditor_EditorChooser::minimumSizeHint() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[43]),sipPySelf,NULL,sipName_minimumSizeHint);

    if (!sipMeth)
        return KTextEditor::EditorChooser::minimumSizeHint();

    typedef QSize (*sipVH_QtGui_4)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtGui_4)(sipModuleAPI_ktexteditor_QtGui->em_virthandlers[4]))(sipGILState, 0, sipPySelf, sipMeth);
}

QSize sipKTextEditor_EditorChooser::sizeHint() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[44]),sipPySelf,NULL,sipName_sizeHint);

    if (!sipMeth)
        return KTextEditor::EditorChooser::sizeHint();

    typedef QSize (*sipVH_QtGui_4)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtGui_4)(sipModuleAPI_ktexteditor_QtGui->em_virthandlers[4]))(sipGILState, 0, sipPySelf, sipMeth);
}

void sipKTextEditor_EditorChooser::setVisible(bool a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[45],sipPySelf,NULL,sipName_setVisible);

    if (!sipMeth)
    {
        KTextEditor::EditorChooser::setVisible(a0);
        return;
    }

    typedef void (*sipVH_QtGui_6)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, bool);

    ((sipVH_QtGui_6)(sipModuleAPI_ktexteditor_QtGui->em_virthandlers[6]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

int sipKTextEditor_EditorChooser::devType() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[46]),sipPySelf,NULL,sipName_devType);

    if (!sipMeth)
        return KTextEditor::EditorChooser::devType();

    typedef int (*sipVH_QtCore_6)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_6)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[6]))(sipGILState, 0, sipPySelf, sipMeth);
}


extern "C" {static PyObject *meth_KTextEditor_EditorChooser_readAppSetting(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_EditorChooser_readAppSetting(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QString& a0def = QString();
        const QString* a0 = &a0def;
        int a0State = 0;
        KTextEditor::EditorChooser *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B|J1", &sipSelf, sipType_KTextEditor_EditorChooser, &sipCpp, sipType_QString,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->readAppSetting(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_EditorChooser, sipName_readAppSetting, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_EditorChooser_writeAppSetting(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_EditorChooser_writeAppSetting(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QString& a0def = QString();
        const QString* a0 = &a0def;
        int a0State = 0;
        KTextEditor::EditorChooser *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B|J1", &sipSelf, sipType_KTextEditor_EditorChooser, &sipCpp, sipType_QString,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->writeAppSetting(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_EditorChooser, sipName_writeAppSetting, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_EditorChooser_editor(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_EditorChooser_editor(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QString& a0def = QString();
        const QString* a0 = &a0def;
        int a0State = 0;
        bool a1 = 1;

        if (sipParseArgs(&sipParseErr, sipArgs, "|J1b", sipType_QString,&a0, &a0State, &a1))
        {
            KTextEditor::Editor*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = KTextEditor::EditorChooser::editor(*a0,a1);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            return sipConvertFromType(sipRes,sipType_KTextEditor_Editor,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_EditorChooser, sipName_editor, NULL);

    return NULL;
}


/* Cast a pointer to a type somewhere in its multiple inheritance hierarchy. */
extern "C" {static void *cast_KTextEditor_EditorChooser(void *, const sipTypeDef *);}
static void *cast_KTextEditor_EditorChooser(void *sipCppV, const sipTypeDef *targetType)
{
    KTextEditor::EditorChooser *sipCpp = reinterpret_cast<KTextEditor::EditorChooser *>(sipCppV);

    if (targetType == sipType_QPaintDevice)
        return static_cast<QPaintDevice *>(sipCpp);

    return sipCppV;
}


/* Call the instance's destructor. */
extern "C" {static void release_KTextEditor_EditorChooser(void *, int);}
static void release_KTextEditor_EditorChooser(void *sipCppV,int)
{
    KTextEditor::EditorChooser *sipCpp = reinterpret_cast<KTextEditor::EditorChooser *>(sipCppV);

    Py_BEGIN_ALLOW_THREADS

    if (QThread::currentThread() == sipCpp->thread())
        delete sipCpp;
    else
        sipCpp->deleteLater();

    Py_END_ALLOW_THREADS
}


extern "C" {static void dealloc_KTextEditor_EditorChooser(sipSimpleWrapper *);}
static void dealloc_KTextEditor_EditorChooser(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipKTextEditor_EditorChooser *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_KTextEditor_EditorChooser(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


extern "C" {static void *init_type_KTextEditor_EditorChooser(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_KTextEditor_EditorChooser(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **sipOwner, PyObject **sipParseErr)
{
    sipKTextEditor_EditorChooser *sipCpp = 0;

    {
        QWidget* a0 = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "|JH", sipType_QWidget, &a0, sipOwner))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipKTextEditor_EditorChooser(a0);
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_KTextEditor_EditorChooser[] = {{755, 2, 1}};


static PyMethodDef methods_KTextEditor_EditorChooser[] = {
    {SIP_MLNAME_CAST(sipName_editor), meth_KTextEditor_EditorChooser_editor, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_readAppSetting), meth_KTextEditor_EditorChooser_readAppSetting, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_writeAppSetting), meth_KTextEditor_EditorChooser_writeAppSetting, METH_VARARGS, NULL}
};


/* Define this type's signals. */
static const pyqt4QtSignal signals_KTextEditor_EditorChooser[] = {
    {"changed()", 0, 0, 0},
    {0, 0, 0, 0}
};


pyqt4ClassTypeDef sipTypeDef_ktexteditor_KTextEditor_EditorChooser = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_KTextEditor__EditorChooser,
        {0}
    },
    {
        sipNameNr_EditorChooser,
        {1, 255, 0},
        3, methods_KTextEditor_EditorChooser,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_KTextEditor_EditorChooser,
    0,
    init_type_KTextEditor_EditorChooser,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KTextEditor_EditorChooser,
    0,
    0,
    0,
    release_KTextEditor_EditorChooser,
    cast_KTextEditor_EditorChooser,
    0,
    0,
    0,
    0,
    0,
    0
},
    &KTextEditor::EditorChooser::staticMetaObject,
    0,
    signals_KTextEditor_EditorChooser,
};

#line 34 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/ktexteditor/editor.sip"
#include <ktexteditor/editor.h>
#include <ktexteditor/commandinterface.h>
#include <ktexteditor/containerinterface.h>
#line 2805 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart4.cpp"

#line 29 "/usr/share/python3-sip/PyQt4/QtCore/qobject.sip"
#include <qobject.h>
#line 2809 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 2812 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 31 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/ktexteditor/containerinterface.sip"
#include <ktexteditor/containerinterface.h>
#line 2815 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 65 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/ktexteditor/commandinterface.sip"
#include <ktexteditor/commandinterface.h>
#line 2818 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 30 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/ktexteditor/document.sip"
#include <ktexteditor/document.h>

#include <ktexteditor/modificationinterface.h>
#include <ktexteditor/markinterface.h>
#include <ktexteditor/searchinterface.h>
#include <ktexteditor/sessionconfiginterface.h>
#include <ktexteditor/smartinterface.h>
#include <ktexteditor/templateinterface.h>
#include <ktexteditor/variableinterface.h>
#include <ktexteditor/movinginterface.h>
#include <ktexteditor/annotationinterface.h>
#include <ktexteditor/highlightinterface.h>
#include <ktexteditor/configinterface.h>
#include <ktexteditor/modeinterface.h>
#include <ktexteditor/sessionconfiginterface.h>
#include <ktexteditor/recoveryinterface.h>

#line 2837 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 33 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdeui/kicon.sip"
#include <kicon.h>
#line 2840 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 30 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/ktexteditor/configpage.sip"
#include <ktexteditor/configpage.h>
#line 2843 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 32 "/usr/share/python3-sip/PyQt4/QtGui/qwidget.sip"
#include <qwidget.h>
#line 2846 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 36 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdecore/kconfig.sip"
#include <kconfig.h>
#line 2849 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 56 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdecore/kaboutdata.sip"
#include <kaboutdata.h>
#line 2852 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 115 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 2855 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 2858 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 368 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 2861 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 351 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 2864 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 269 "/usr/share/python3-sip/PyQt4/QtCore/qvariant.sip"
#include <qvariant.h>
#line 2867 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 28 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 2870 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 32 "/usr/share/python3-sip/PyQt4/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 2873 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 2876 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 115 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 2879 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qthread.sip"
#include <qthread.h>
#line 2882 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qregexp.sip"
#include <qregexp.h>
#line 2885 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 2888 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart4.cpp"


class sipKTextEditor_Editor : public KTextEditor::Editor
{
public:
    sipKTextEditor_Editor(QObject*);
    virtual ~sipKTextEditor_Editor();

    int qt_metacall(QMetaObject::Call,int,void **);
    void *qt_metacast(const char *);
    const QMetaObject *metaObject() const;

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    void disconnectNotify(const char*);
    void connectNotify(const char*);
    void customEvent(QEvent*);
    void childEvent(QChildEvent*);
    void timerEvent(QTimerEvent*);
    bool eventFilter(QObject*,QEvent*);
    bool event(QEvent*);
    KIcon configPageIcon(int) const;
    QString configPageFullName(int) const;
    QString configPageName(int) const;
    KTextEditor::ConfigPage* configPage(int,QWidget*);
    int configPages() const;
    void configDialog(QWidget*);
    bool configDialogSupported() const;
    void writeConfig(KConfig*);
    void readConfig(KConfig*);
    const KAboutData* aboutData() const;
    const QList<KTextEditor::Document*>& documents();
    KTextEditor::Document* createDocument(QObject*);

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipKTextEditor_Editor(const sipKTextEditor_Editor &);
    sipKTextEditor_Editor &operator = (const sipKTextEditor_Editor &);

    char sipPyMethods[19];
};

sipKTextEditor_Editor::sipKTextEditor_Editor(QObject*a0): KTextEditor::Editor(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipKTextEditor_Editor::~sipKTextEditor_Editor()
{
    sipCommonDtor(sipPySelf);
}

const QMetaObject *sipKTextEditor_Editor::metaObject() const
{
    return sip_ktexteditor_qt_metaobject(sipPySelf,sipType_KTextEditor_Editor);
}

int sipKTextEditor_Editor::qt_metacall(QMetaObject::Call _c,int _id,void **_a)
{
    _id = KTextEditor::Editor::qt_metacall(_c,_id,_a);

    if (_id >= 0)
        _id = sip_ktexteditor_qt_metacall(sipPySelf,sipType_KTextEditor_Editor,_c,_id,_a);

    return _id;
}

void *sipKTextEditor_Editor::qt_metacast(const char *_clname)
{
    return (sip_ktexteditor_qt_metacast(sipPySelf, sipType_KTextEditor_Editor, _clname)) ? this : KTextEditor::Editor::qt_metacast(_clname);
}

void sipKTextEditor_Editor::disconnectNotify(const char*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[0],sipPySelf,NULL,sipName_disconnectNotify);

    if (!sipMeth)
    {
        KTextEditor::Editor::disconnectNotify(a0);
        return;
    }

    typedef void (*sipVH_QtCore_24)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const char*);

    ((sipVH_QtCore_24)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[24]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKTextEditor_Editor::connectNotify(const char*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[1],sipPySelf,NULL,sipName_connectNotify);

    if (!sipMeth)
    {
        KTextEditor::Editor::connectNotify(a0);
        return;
    }

    typedef void (*sipVH_QtCore_24)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const char*);

    ((sipVH_QtCore_24)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[24]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKTextEditor_Editor::customEvent(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[2],sipPySelf,NULL,sipName_customEvent);

    if (!sipMeth)
    {
        KTextEditor::Editor::customEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_17)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QEvent*);

    ((sipVH_QtCore_17)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[17]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKTextEditor_Editor::childEvent(QChildEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[3],sipPySelf,NULL,sipName_childEvent);

    if (!sipMeth)
    {
        KTextEditor::Editor::childEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_25)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QChildEvent*);

    ((sipVH_QtCore_25)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[25]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKTextEditor_Editor::timerEvent(QTimerEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[4],sipPySelf,NULL,sipName_timerEvent);

    if (!sipMeth)
    {
        KTextEditor::Editor::timerEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_9)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QTimerEvent*);

    ((sipVH_QtCore_9)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[9]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

bool sipKTextEditor_Editor::eventFilter(QObject*a0,QEvent*a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[5],sipPySelf,NULL,sipName_eventFilter);

    if (!sipMeth)
        return KTextEditor::Editor::eventFilter(a0,a1);

    typedef bool (*sipVH_QtCore_18)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QObject*,QEvent*);

    return ((sipVH_QtCore_18)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[18]))(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

bool sipKTextEditor_Editor::event(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[6],sipPySelf,NULL,sipName_event);

    if (!sipMeth)
        return KTextEditor::Editor::event(a0);

    typedef bool (*sipVH_QtCore_5)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QEvent*);

    return ((sipVH_QtCore_5)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[5]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

KIcon sipKTextEditor_Editor::configPageIcon(int a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[7]),sipPySelf,sipName_Editor,sipName_configPageIcon);

    if (!sipMeth)
        return KIcon();

    extern KIcon sipVH_ktexteditor_62(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int);

    return sipVH_ktexteditor_62(sipGILState, 0, sipPySelf, sipMeth, a0);
}

QString sipKTextEditor_Editor::configPageFullName(int a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[8]),sipPySelf,sipName_Editor,sipName_configPageFullName);

    if (!sipMeth)
        return QString();

    typedef QString (*sipVH_QtGui_111)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int);

    return ((sipVH_QtGui_111)(sipModuleAPI_ktexteditor_QtGui->em_virthandlers[111]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

QString sipKTextEditor_Editor::configPageName(int a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[9]),sipPySelf,sipName_Editor,sipName_configPageName);

    if (!sipMeth)
        return QString();

    typedef QString (*sipVH_QtGui_111)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int);

    return ((sipVH_QtGui_111)(sipModuleAPI_ktexteditor_QtGui->em_virthandlers[111]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

KTextEditor::ConfigPage* sipKTextEditor_Editor::configPage(int a0,QWidget*a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[10],sipPySelf,sipName_Editor,sipName_configPage);

    if (!sipMeth)
        return 0;

    extern KTextEditor::ConfigPage* sipVH_ktexteditor_63(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int,QWidget*);

    return sipVH_ktexteditor_63(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

int sipKTextEditor_Editor::configPages() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[11]),sipPySelf,sipName_Editor,sipName_configPages);

    if (!sipMeth)
        return 0;

    typedef int (*sipVH_QtCore_6)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_6)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[6]))(sipGILState, 0, sipPySelf, sipMeth);
}

void sipKTextEditor_Editor::configDialog(QWidget*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[12],sipPySelf,sipName_Editor,sipName_configDialog);

    if (!sipMeth)
        return;

    typedef void (*sipVH_QtGui_7)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QWidget*);

    ((sipVH_QtGui_7)(sipModuleAPI_ktexteditor_QtGui->em_virthandlers[7]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

bool sipKTextEditor_Editor::configDialogSupported() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[13]),sipPySelf,sipName_Editor,sipName_configDialogSupported);

    if (!sipMeth)
        return 0;

    typedef bool (*sipVH_QtCore_7)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_7)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[7]))(sipGILState, 0, sipPySelf, sipMeth);
}

void sipKTextEditor_Editor::writeConfig(KConfig*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[14],sipPySelf,sipName_Editor,sipName_writeConfig);

    if (!sipMeth)
        return;

    typedef void (*sipVH_kdecore_35)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, KConfig*);

    ((sipVH_kdecore_35)(sipModuleAPI_ktexteditor_kdecore->em_virthandlers[35]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKTextEditor_Editor::readConfig(KConfig*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[15],sipPySelf,sipName_Editor,sipName_readConfig);

    if (!sipMeth)
        return;

    typedef void (*sipVH_kdecore_35)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, KConfig*);

    ((sipVH_kdecore_35)(sipModuleAPI_ktexteditor_kdecore->em_virthandlers[35]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

const KAboutData* sipKTextEditor_Editor::aboutData() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[16]),sipPySelf,sipName_Editor,sipName_aboutData);

    if (!sipMeth)
        return 0;

    typedef const KAboutData* (*sipVH_kdeui_87)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_kdeui_87)(sipModuleAPI_ktexteditor_kdeui->em_virthandlers[87]))(sipGILState, 0, sipPySelf, sipMeth);
}

const QList<KTextEditor::Document*>& sipKTextEditor_Editor::documents()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[17],sipPySelf,sipName_Editor,sipName_documents);

    if (!sipMeth)
        return *new QList<KTextEditor::Document*>();

    extern const QList<KTextEditor::Document*>& sipVH_ktexteditor_64(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_ktexteditor_64(sipGILState, 0, sipPySelf, sipMeth);
}

KTextEditor::Document* sipKTextEditor_Editor::createDocument(QObject*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[18],sipPySelf,sipName_Editor,sipName_createDocument);

    if (!sipMeth)
        return 0;

    extern KTextEditor::Document* sipVH_ktexteditor_65(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QObject*);

    return sipVH_ktexteditor_65(sipGILState, 0, sipPySelf, sipMeth, a0);
}


extern "C" {static PyObject *meth_KTextEditor_Editor_createDocument(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Editor_createDocument(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    PyObject *sipOrigSelf = sipSelf;

    {
        QObject* a0;
        KTextEditor::Editor *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ:", &sipSelf, sipType_KTextEditor_Editor, &sipCpp, sipType_QObject, &a0))
        {
            KTextEditor::Document*sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_Editor, sipName_createDocument);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->createDocument(a0);
            Py_END_ALLOW_THREADS

            return sipConvertFromType(sipRes,sipType_KTextEditor_Document,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Editor, sipName_createDocument, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Editor_documents(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Editor_documents(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    PyObject *sipOrigSelf = sipSelf;

    {
        KTextEditor::Editor *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTextEditor_Editor, &sipCpp))
        {
            QList<KTextEditor::Document*>*sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_Editor, sipName_documents);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<KTextEditor::Document*>(sipCpp->documents());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QList_0101KTextEditor_Document,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Editor, sipName_documents, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Editor_aboutData(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Editor_aboutData(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    PyObject *sipOrigSelf = sipSelf;

    {
        const KTextEditor::Editor *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTextEditor_Editor, &sipCpp))
        {
            const KAboutData*sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_Editor, sipName_aboutData);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->aboutData();
            Py_END_ALLOW_THREADS

            return sipConvertFromType(const_cast<KAboutData *>(sipRes),sipType_KAboutData,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Editor, sipName_aboutData, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Editor_readConfig(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Editor_readConfig(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    PyObject *sipOrigSelf = sipSelf;

    {
        KConfig* a0 = 0;
        KTextEditor::Editor *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B|J8", &sipSelf, sipType_KTextEditor_Editor, &sipCpp, sipType_KConfig, &a0))
        {
            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_Editor, sipName_readConfig);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipCpp->readConfig(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Editor, sipName_readConfig, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Editor_writeConfig(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Editor_writeConfig(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    PyObject *sipOrigSelf = sipSelf;

    {
        KConfig* a0 = 0;
        KTextEditor::Editor *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B|J8", &sipSelf, sipType_KTextEditor_Editor, &sipCpp, sipType_KConfig, &a0))
        {
            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_Editor, sipName_writeConfig);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipCpp->writeConfig(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Editor, sipName_writeConfig, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Editor_configDialogSupported(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Editor_configDialogSupported(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    PyObject *sipOrigSelf = sipSelf;

    {
        const KTextEditor::Editor *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTextEditor_Editor, &sipCpp))
        {
            bool sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_Editor, sipName_configDialogSupported);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->configDialogSupported();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Editor, sipName_configDialogSupported, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Editor_configDialog(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Editor_configDialog(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    PyObject *sipOrigSelf = sipSelf;

    {
        QWidget* a0;
        KTextEditor::Editor *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ:", &sipSelf, sipType_KTextEditor_Editor, &sipCpp, sipType_QWidget, &a0))
        {
            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_Editor, sipName_configDialog);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipCpp->configDialog(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Editor, sipName_configDialog, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Editor_configPages(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Editor_configPages(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    PyObject *sipOrigSelf = sipSelf;

    {
        const KTextEditor::Editor *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTextEditor_Editor, &sipCpp))
        {
            int sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_Editor, sipName_configPages);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->configPages();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Editor, sipName_configPages, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Editor_configPage(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Editor_configPage(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    PyObject *sipOrigSelf = sipSelf;

    {
        int a0;
        QWidget* a1;
        KTextEditor::Editor *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BiJ:", &sipSelf, sipType_KTextEditor_Editor, &sipCpp, &a0, sipType_QWidget, &a1))
        {
            KTextEditor::ConfigPage*sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_Editor, sipName_configPage);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->configPage(a0,a1);
            Py_END_ALLOW_THREADS

            return sipConvertFromType(sipRes,sipType_KTextEditor_ConfigPage,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Editor, sipName_configPage, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Editor_configPageName(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Editor_configPageName(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    PyObject *sipOrigSelf = sipSelf;

    {
        int a0;
        const KTextEditor::Editor *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_KTextEditor_Editor, &sipCpp, &a0))
        {
            QString*sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_Editor, sipName_configPageName);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->configPageName(a0));
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Editor, sipName_configPageName, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Editor_configPageFullName(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Editor_configPageFullName(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    PyObject *sipOrigSelf = sipSelf;

    {
        int a0;
        const KTextEditor::Editor *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_KTextEditor_Editor, &sipCpp, &a0))
        {
            QString*sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_Editor, sipName_configPageFullName);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->configPageFullName(a0));
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Editor, sipName_configPageFullName, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Editor_configPageIcon(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Editor_configPageIcon(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    PyObject *sipOrigSelf = sipSelf;

    {
        int a0;
        const KTextEditor::Editor *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_KTextEditor_Editor, &sipCpp, &a0))
        {
            KIcon*sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_Editor, sipName_configPageIcon);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KIcon(sipCpp->configPageIcon(a0));
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_KIcon,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Editor, sipName_configPageIcon, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Editor_setSimpleMode(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Editor_setSimpleMode(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        bool a0;
        KTextEditor::Editor *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bb", &sipSelf, sipType_KTextEditor_Editor, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setSimpleMode(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Editor, sipName_setSimpleMode, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Editor_simpleMode(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Editor_simpleMode(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const KTextEditor::Editor *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTextEditor_Editor, &sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->simpleMode();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Editor, sipName_simpleMode, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Editor_defaultEncoding(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Editor_defaultEncoding(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const KTextEditor::Editor *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTextEditor_Editor, &sipCpp))
        {
            QString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->defaultEncoding());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Editor, sipName_defaultEncoding, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Editor_commandInterface(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Editor_commandInterface(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        KTextEditor::Editor *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTextEditor_Editor, &sipCpp))
        {
            KTextEditor::CommandInterface*sipRes = 0;

#line 68 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/ktexteditor/editor.sip"
    Py_BEGIN_ALLOW_THREADS
    sipRes = dynamic_cast<KTextEditor::CommandInterface*>(sipCpp);
    Py_END_ALLOW_THREADS
#line 3778 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart4.cpp"

            return sipConvertFromType(sipRes,sipType_KTextEditor_CommandInterface,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Editor, sipName_commandInterface, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Editor_containerInterface(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Editor_containerInterface(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        KTextEditor::Editor *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTextEditor_Editor, &sipCpp))
        {
            KTextEditor::ContainerInterface*sipRes = 0;

#line 75 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/ktexteditor/editor.sip"
    Py_BEGIN_ALLOW_THREADS
    sipRes = dynamic_cast<KTextEditor::ContainerInterface*>(sipCpp);
    Py_END_ALLOW_THREADS
#line 3807 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart4.cpp"

            return sipConvertFromType(sipRes,sipType_KTextEditor_ContainerInterface,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Editor, sipName_containerInterface, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Editor_setDefaultEncoding(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Editor_setDefaultEncoding(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QString* a0;
        int a0State = 0;
        KTextEditor::Editor *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "pJ1", &sipSelf, sipType_KTextEditor_Editor, &sipCpp, sipType_QString,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setDefaultEncoding(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Editor, sipName_setDefaultEncoding, NULL);

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_KTextEditor_Editor(void *, int);}
static void release_KTextEditor_Editor(void *sipCppV,int)
{
    KTextEditor::Editor *sipCpp = reinterpret_cast<KTextEditor::Editor *>(sipCppV);

    Py_BEGIN_ALLOW_THREADS

    if (QThread::currentThread() == sipCpp->thread())
        delete sipCpp;
    else
        sipCpp->deleteLater();

    Py_END_ALLOW_THREADS
}


extern "C" {static void dealloc_KTextEditor_Editor(sipSimpleWrapper *);}
static void dealloc_KTextEditor_Editor(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipKTextEditor_Editor *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_KTextEditor_Editor(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


extern "C" {static void *init_type_KTextEditor_Editor(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_KTextEditor_Editor(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **sipOwner, PyObject **sipParseErr)
{
    sipKTextEditor_Editor *sipCpp = 0;

    {
        QObject* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "JH", sipType_QObject, &a0, sipOwner))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipKTextEditor_Editor(a0);
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_KTextEditor_Editor[] = {{141, 0, 1}};


static PyMethodDef methods_KTextEditor_Editor[] = {
    {SIP_MLNAME_CAST(sipName_aboutData), meth_KTextEditor_Editor_aboutData, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_commandInterface), meth_KTextEditor_Editor_commandInterface, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_configDialog), meth_KTextEditor_Editor_configDialog, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_configDialogSupported), meth_KTextEditor_Editor_configDialogSupported, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_configPage), meth_KTextEditor_Editor_configPage, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_configPageFullName), meth_KTextEditor_Editor_configPageFullName, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_configPageIcon), meth_KTextEditor_Editor_configPageIcon, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_configPageName), meth_KTextEditor_Editor_configPageName, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_configPages), meth_KTextEditor_Editor_configPages, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_containerInterface), meth_KTextEditor_Editor_containerInterface, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_createDocument), meth_KTextEditor_Editor_createDocument, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_defaultEncoding), meth_KTextEditor_Editor_defaultEncoding, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_documents), meth_KTextEditor_Editor_documents, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_readConfig), meth_KTextEditor_Editor_readConfig, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setDefaultEncoding), meth_KTextEditor_Editor_setDefaultEncoding, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setSimpleMode), meth_KTextEditor_Editor_setSimpleMode, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_simpleMode), meth_KTextEditor_Editor_simpleMode, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_writeConfig), meth_KTextEditor_Editor_writeConfig, METH_VARARGS, NULL}
};


/* Define this type's signals. */
static const pyqt4QtSignal signals_KTextEditor_Editor[] = {
    {"documentCreated(KTextEditor::Editor*,KTextEditor::Document*)", 0, 0, 0},
    {0, 0, 0, 0}
};


pyqt4ClassTypeDef sipTypeDef_ktexteditor_KTextEditor_Editor = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_ABSTRACT|SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_KTextEditor__Editor,
        {0}
    },
    {
        sipNameNr_Editor,
        {1, 255, 0},
        18, methods_KTextEditor_Editor,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_KTextEditor_Editor,
    0,
    init_type_KTextEditor_Editor,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KTextEditor_Editor,
    0,
    0,
    0,
    release_KTextEditor_Editor,
    0,
    0,
    0,
    0,
    0,
    0,
    0
},
    &KTextEditor::Editor::staticMetaObject,
    0,
    signals_KTextEditor_Editor,
};

#line 30 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/ktexteditor/document.sip"
#include <ktexteditor/document.h>

#include <ktexteditor/modificationinterface.h>
#include <ktexteditor/markinterface.h>
#include <ktexteditor/searchinterface.h>
#include <ktexteditor/sessionconfiginterface.h>
#include <ktexteditor/smartinterface.h>
#include <ktexteditor/templateinterface.h>
#include <ktexteditor/variableinterface.h>
#include <ktexteditor/movinginterface.h>
#include <ktexteditor/annotationinterface.h>
#include <ktexteditor/highlightinterface.h>
#include <ktexteditor/configinterface.h>
#include <ktexteditor/modeinterface.h>
#include <ktexteditor/sessionconfiginterface.h>
#include <ktexteditor/recoveryinterface.h>

#line 4007 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart4.cpp"

#line 29 "/usr/share/python3-sip/PyQt4/QtCore/qobject.sip"
#include <qobject.h>
#line 4011 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 25 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/ktexteditor/recoveryinterface.sip"
#include <ktexteditor/recoveryinterface.h>
#line 4014 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 30 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/ktexteditor/sessionconfiginterface.sip"
#include <ktexteditor/sessionconfiginterface.h>
#line 4017 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 47 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/ktexteditor/sessionconfiginterface.sip"
#include <ktexteditor/sessionconfiginterface.h>
#line 4020 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 30 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/ktexteditor/configinterface.sip"
#include <ktexteditor/configinterface.h>
#line 4023 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 25 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/ktexteditor/highlightinterface.sip"
#include <ktexteditor/highlightinterface.h>
#line 4026 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 25 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/ktexteditor/movinginterface.sip"
#include <ktexteditor/movinginterface.h>
#line 4029 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 30 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/ktexteditor/variableinterface.sip"
#include <ktexteditor/variableinterface.h>
#line 4032 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 53 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/ktexteditor/searchinterface.sip"
#include <ktexteditor/searchinterface.h>
#line 4035 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 30 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/ktexteditor/modificationinterface.sip"
#include <ktexteditor/modificationinterface.h>
#line 4038 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 45 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/ktexteditor/markinterface.sip"
#include <ktexteditor/markinterface.h>
#line 4041 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 38 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/ktexteditor/annotationinterface.sip"
#include <ktexteditor/annotationinterface.h>
#line 4044 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 4047 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 4050 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 30 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/ktexteditor/range.sip"
#include <ktexteditor/range.h>
#line 4053 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 30 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/ktexteditor/cursor.sip"
#include <ktexteditor/cursor.h>
#line 4056 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 67 "/usr/share/python3-sip/PyQt4/QtCore/qchar.sip"
#include <qchar.h>
#line 4059 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 30 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/ktexteditor/view.sip"
#include <ktexteditor/view.h>

#include <ktexteditor/codecompletioninterface.h>
#include <ktexteditor/sessionconfiginterface.h>
#include <ktexteditor/texthintinterface.h>
#include <ktexteditor/annotationinterface.h>
#include <ktexteditor/configinterface.h>
#include <ktexteditor/templateinterface.h>
#include <ktexteditor/templateinterface2.h>
#line 4070 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 115 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 4073 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 32 "/usr/share/python3-sip/PyQt4/QtGui/qwidget.sip"
#include <qwidget.h>
#line 4076 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 34 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/ktexteditor/editor.sip"
#include <ktexteditor/editor.h>
#include <ktexteditor/commandinterface.h>
#include <ktexteditor/containerinterface.h>
#line 4081 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 33 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdecore/kurl.sip"
#include <kurl.h>
#line 4084 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 81 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kparts/event.sip"
#include <kparts/event.h>
#line 4087 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 43 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kio/jobclasses.sip"
#include <jobclasses.h>
#line 4090 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 32 "/usr/share/python3-sip/PyQt4/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 4093 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 113 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kparts/part.sip"
#include <kparts/part.h>
#line 4096 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 126 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kparts/browserextension.sip"
#include <kparts/browserextension.h>
#line 4099 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 127 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kparts/event.sip"
#include <kparts/event.h>
#line 4102 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 103 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kparts/event.sip"
#include <kparts/event.h>
#line 4105 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 4108 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 26 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdeui/kiconloader.sip"
#include <kiconloader.h>
#line 4111 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 66 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kparts/part.sip"
#include <kparts/part.h>
#line 4114 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qpoint.sip"
#include <qpoint.h>
#line 4117 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 28 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kparts/partmanager.sip"
#include <kparts/partmanager.h>
#line 4120 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 368 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 4123 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 351 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 4126 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 269 "/usr/share/python3-sip/PyQt4/QtCore/qvariant.sip"
#include <qvariant.h>
#line 4129 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 28 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 4132 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 4135 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 115 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 4138 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qthread.sip"
#include <qthread.h>
#line 4141 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qregexp.sip"
#include <qregexp.h>
#line 4144 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 4147 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 26 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdecore/kcomponentdata.sip"
#include <kcomponentdata.h>
#line 4150 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 26 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdeui/kxmlguiclient.sip"
#include <kxmlguiclient.h>
#line 4153 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 211 "/usr/share/python3-sip/PyQt4/QtXml/qdom.sip"
#include <qdom.h>
#line 4156 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 26 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdeui/kxmlguiclient.sip"
#include <kxmlguiclient.h>
#line 4159 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 115 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 4162 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtGui/qaction.sip"
#include <qaction.h>
#line 4165 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 26 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdeui/kxmlguibuilder.sip"
#include <kxmlguibuilder.h>
#line 4168 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 115 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 4171 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 27 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdeui/kxmlguifactory.sip"
#include <kxmlguifactory.h>
#line 4174 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 26 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdeui/kactioncollection.sip"
#include <kactioncollection.h>
#line 4177 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 340 "/usr/share/python3-sip/PyQt4/QtXml/qdom.sip"
#include <qdom.h>
#line 4180 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart4.cpp"


class sipKTextEditor_Document : public KTextEditor::Document
{
public:
    sipKTextEditor_Document(QObject*);
    virtual ~sipKTextEditor_Document();

    int qt_metacall(QMetaObject::Call,int,void **);
    void *qt_metacast(const char *);
    const QMetaObject *metaObject() const;

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    void stateChanged(const QString&,KXMLGUIClient::ReverseStateChange);
    void setDOMDocument(const QDomDocument&,bool);
    void setXML(const QString&,bool);
    void setLocalXMLFile(const QString&);
    void setXMLFile(const QString&,bool,bool);
    QString localXMLFile() const;
    QString xmlFile() const;
    QDomDocument domDocument() const;
    KComponentData componentData() const;
    KActionCollection* actionCollection() const;
    QAction* action(const QDomElement&) const;
    void setComponentData(const KComponentData&,bool);
    void setComponentData(const KComponentData&);
    void disconnectNotify(const char*);
    void connectNotify(const char*);
    void childEvent(QChildEvent*);
    void timerEvent(QTimerEvent*);
    bool eventFilter(QObject*,QEvent*);
    bool event(QEvent*);
    void partSelectEvent(KParts::PartSelectEvent*);
    void partActivateEvent(KParts::PartActivateEvent*);
    void customEvent(QEvent*);
    void setWidget(QWidget*);
    void setSelectable(bool);
    KParts::Part* hitTest(QWidget*,const QPoint&);
    void setManager(KParts::PartManager*);
    QWidget* widget();
    void embed(QWidget*);
    void guiActivateEvent(KParts::GUIActivateEvent*);
    bool openFile();
    bool openUrl(const KUrl&);
    bool saveToUrl();
    bool saveFile();
    bool save();
    void setModified(bool);
    bool saveAs(const KUrl&);
    bool closeUrl(bool);
    bool closeUrl();
    bool queryClose();
    void setReadWrite(bool);
    QString modeSection(int) const;
    QString highlightingModeSection(int) const;
    bool setHighlightingMode(const QString&);
    bool setMode(const QString&);
    QStringList highlightingModes() const;
    QStringList modes() const;
    QString highlightingMode() const;
    QString mode() const;
    bool removeLine(int);
    bool insertLines(int,const QStringList&);
    bool insertLine(int,const QString&);
    bool cursorInText(const KTextEditor::Cursor&);
    bool removeText(const KTextEditor::Range&,bool);
    bool replaceText(const KTextEditor::Range&,const QStringList&,bool);
    bool replaceText(const KTextEditor::Range&,const QString&,bool);
    bool insertText(const KTextEditor::Cursor&,const QStringList&,bool);
    bool insertText(const KTextEditor::Cursor&,const QString&,bool);
    bool clear();
    bool setText(const QStringList&);
    bool setText(const QString&);
    int lineLength(int) const;
    bool isEmpty() const;
    int totalCharacters() const;
    KTextEditor::Cursor documentEnd() const;
    int lines() const;
    QString line(int) const;
    QStringList textLines(const KTextEditor::Range&,bool) const;
    QChar character(const KTextEditor::Cursor&) const;
    QString text(const KTextEditor::Range&,bool) const;
    QString text() const;
    bool endEditing();
    bool startEditing();
    bool documentSaveAs();
    bool documentSave();
    bool documentReload();
    const QString& encoding() const;
    bool setEncoding(const QString&);
    QString mimeType();
    const QString& documentName() const;
    const QList<KTextEditor::View*>& views() const;
    KTextEditor::View* activeView() const;
    KTextEditor::View* createView(QWidget*);
    KTextEditor::Editor* editor();

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipKTextEditor_Document(const sipKTextEditor_Document &);
    sipKTextEditor_Document &operator = (const sipKTextEditor_Document &);

    char sipPyMethods[83];
};

sipKTextEditor_Document::sipKTextEditor_Document(QObject*a0): KTextEditor::Document(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipKTextEditor_Document::~sipKTextEditor_Document()
{
    sipCommonDtor(sipPySelf);
}

const QMetaObject *sipKTextEditor_Document::metaObject() const
{
    return sip_ktexteditor_qt_metaobject(sipPySelf,sipType_KTextEditor_Document);
}

int sipKTextEditor_Document::qt_metacall(QMetaObject::Call _c,int _id,void **_a)
{
    _id = KTextEditor::Document::qt_metacall(_c,_id,_a);

    if (_id >= 0)
        _id = sip_ktexteditor_qt_metacall(sipPySelf,sipType_KTextEditor_Document,_c,_id,_a);

    return _id;
}

void *sipKTextEditor_Document::qt_metacast(const char *_clname)
{
    return (sip_ktexteditor_qt_metacast(sipPySelf, sipType_KTextEditor_Document, _clname)) ? this : KTextEditor::Document::qt_metacast(_clname);
}

void sipKTextEditor_Document::stateChanged(const QString& a0,KXMLGUIClient::ReverseStateChange a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[0],sipPySelf,NULL,sipName_stateChanged);

    if (!sipMeth)
    {
        KTextEditor::Document::stateChanged(a0,a1);
        return;
    }

    typedef void (*sipVH_kdeui_14)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QString&,KXMLGUIClient::ReverseStateChange);

    ((sipVH_kdeui_14)(sipModuleAPI_ktexteditor_kdeui->em_virthandlers[14]))(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

void sipKTextEditor_Document::setDOMDocument(const QDomDocument& a0,bool a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[1],sipPySelf,NULL,sipName_setDOMDocument);

    if (!sipMeth)
    {
        KTextEditor::Document::setDOMDocument(a0,a1);
        return;
    }

    typedef void (*sipVH_kdeui_15)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QDomDocument&,bool);

    ((sipVH_kdeui_15)(sipModuleAPI_ktexteditor_kdeui->em_virthandlers[15]))(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

void sipKTextEditor_Document::setXML(const QString& a0,bool a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[2],sipPySelf,NULL,sipName_setXML);

    if (!sipMeth)
    {
        KTextEditor::Document::setXML(a0,a1);
        return;
    }

    typedef void (*sipVH_QtXml_24)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QString&,bool);

    ((sipVH_QtXml_24)(sipModuleAPI_ktexteditor_QtXml->em_virthandlers[24]))(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

void sipKTextEditor_Document::setLocalXMLFile(const QString& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[3],sipPySelf,NULL,sipName_setLocalXMLFile);

    if (!sipMeth)
    {
        KTextEditor::Document::setLocalXMLFile(a0);
        return;
    }

    typedef void (*sipVH_QtCore_33)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QString&);

    ((sipVH_QtCore_33)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[33]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKTextEditor_Document::setXMLFile(const QString& a0,bool a1,bool a2)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[4],sipPySelf,NULL,sipName_setXMLFile);

    if (!sipMeth)
    {
        KTextEditor::Document::setXMLFile(a0,a1,a2);
        return;
    }

    typedef void (*sipVH_kdeui_16)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QString&,bool,bool);

    ((sipVH_kdeui_16)(sipModuleAPI_ktexteditor_kdeui->em_virthandlers[16]))(sipGILState, 0, sipPySelf, sipMeth, a0, a1, a2);
}

QString sipKTextEditor_Document::localXMLFile() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[5]),sipPySelf,NULL,sipName_localXMLFile);

    if (!sipMeth)
        return KTextEditor::Document::localXMLFile();

    typedef QString (*sipVH_QtCore_62)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_62)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[62]))(sipGILState, 0, sipPySelf, sipMeth);
}

QString sipKTextEditor_Document::xmlFile() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[6]),sipPySelf,NULL,sipName_xmlFile);

    if (!sipMeth)
        return KTextEditor::Document::xmlFile();

    typedef QString (*sipVH_QtCore_62)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_62)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[62]))(sipGILState, 0, sipPySelf, sipMeth);
}

QDomDocument sipKTextEditor_Document::domDocument() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[7]),sipPySelf,NULL,sipName_domDocument);

    if (!sipMeth)
        return KTextEditor::Document::domDocument();

    typedef QDomDocument (*sipVH_kdeui_18)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_kdeui_18)(sipModuleAPI_ktexteditor_kdeui->em_virthandlers[18]))(sipGILState, 0, sipPySelf, sipMeth);
}

KComponentData sipKTextEditor_Document::componentData() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[8]),sipPySelf,NULL,sipName_componentData);

    if (!sipMeth)
        return KTextEditor::Document::componentData();

    typedef KComponentData (*sipVH_kdeui_19)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_kdeui_19)(sipModuleAPI_ktexteditor_kdeui->em_virthandlers[19]))(sipGILState, 0, sipPySelf, sipMeth);
}

KActionCollection* sipKTextEditor_Document::actionCollection() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[9]),sipPySelf,NULL,sipName_actionCollection);

    if (!sipMeth)
        return KTextEditor::Document::actionCollection();

    typedef KActionCollection* (*sipVH_kdeui_20)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_kdeui_20)(sipModuleAPI_ktexteditor_kdeui->em_virthandlers[20]))(sipGILState, 0, sipPySelf, sipMeth);
}

QAction* sipKTextEditor_Document::action(const QDomElement& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[10]),sipPySelf,NULL,sipName_action);

    if (!sipMeth)
        return KTextEditor::Document::action(a0);

    typedef QAction* (*sipVH_kdeui_21)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QDomElement&);

    return ((sipVH_kdeui_21)(sipModuleAPI_ktexteditor_kdeui->em_virthandlers[21]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKTextEditor_Document::setComponentData(const KComponentData& a0,bool a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[11],sipPySelf,NULL,sipName_setComponentData);

    if (!sipMeth)
    {
        KTextEditor::Document::setComponentData(a0,a1);
        return;
    }

    typedef void (*sipVH_kparts_22)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const KComponentData&,bool);

    ((sipVH_kparts_22)(sipModuleAPI_ktexteditor_kparts->em_virthandlers[22]))(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

void sipKTextEditor_Document::setComponentData(const KComponentData& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[12],sipPySelf,NULL,sipName_setComponentData);

    if (!sipMeth)
    {
        KTextEditor::Document::setComponentData(a0);
        return;
    }

    typedef void (*sipVH_kdeui_17)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const KComponentData&);

    ((sipVH_kdeui_17)(sipModuleAPI_ktexteditor_kdeui->em_virthandlers[17]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKTextEditor_Document::disconnectNotify(const char*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[13],sipPySelf,NULL,sipName_disconnectNotify);

    if (!sipMeth)
    {
        KTextEditor::Document::disconnectNotify(a0);
        return;
    }

    typedef void (*sipVH_QtCore_24)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const char*);

    ((sipVH_QtCore_24)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[24]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKTextEditor_Document::connectNotify(const char*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[14],sipPySelf,NULL,sipName_connectNotify);

    if (!sipMeth)
    {
        KTextEditor::Document::connectNotify(a0);
        return;
    }

    typedef void (*sipVH_QtCore_24)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const char*);

    ((sipVH_QtCore_24)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[24]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKTextEditor_Document::childEvent(QChildEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[15],sipPySelf,NULL,sipName_childEvent);

    if (!sipMeth)
    {
        KTextEditor::Document::childEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_25)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QChildEvent*);

    ((sipVH_QtCore_25)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[25]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKTextEditor_Document::timerEvent(QTimerEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[16],sipPySelf,NULL,sipName_timerEvent);

    if (!sipMeth)
    {
        KTextEditor::Document::timerEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_9)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QTimerEvent*);

    ((sipVH_QtCore_9)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[9]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

bool sipKTextEditor_Document::eventFilter(QObject*a0,QEvent*a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[17],sipPySelf,NULL,sipName_eventFilter);

    if (!sipMeth)
        return KTextEditor::Document::eventFilter(a0,a1);

    typedef bool (*sipVH_QtCore_18)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QObject*,QEvent*);

    return ((sipVH_QtCore_18)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[18]))(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

bool sipKTextEditor_Document::event(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[18],sipPySelf,NULL,sipName_event);

    if (!sipMeth)
        return KTextEditor::Document::event(a0);

    typedef bool (*sipVH_QtCore_5)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QEvent*);

    return ((sipVH_QtCore_5)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[5]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKTextEditor_Document::partSelectEvent(KParts::PartSelectEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[19],sipPySelf,NULL,sipName_partSelectEvent);

    if (!sipMeth)
    {
        KTextEditor::Document::partSelectEvent(a0);
        return;
    }

    typedef void (*sipVH_kparts_18)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, KParts::PartSelectEvent*);

    ((sipVH_kparts_18)(sipModuleAPI_ktexteditor_kparts->em_virthandlers[18]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKTextEditor_Document::partActivateEvent(KParts::PartActivateEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[20],sipPySelf,NULL,sipName_partActivateEvent);

    if (!sipMeth)
    {
        KTextEditor::Document::partActivateEvent(a0);
        return;
    }

    typedef void (*sipVH_kparts_19)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, KParts::PartActivateEvent*);

    ((sipVH_kparts_19)(sipModuleAPI_ktexteditor_kparts->em_virthandlers[19]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKTextEditor_Document::customEvent(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[21],sipPySelf,NULL,sipName_customEvent);

    if (!sipMeth)
    {
        KTextEditor::Document::customEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_17)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QEvent*);

    ((sipVH_QtCore_17)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[17]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKTextEditor_Document::setWidget(QWidget*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[22],sipPySelf,NULL,sipName_setWidget);

    if (!sipMeth)
    {
        KTextEditor::Document::setWidget(a0);
        return;
    }

    typedef void (*sipVH_QtGui_7)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QWidget*);

    ((sipVH_QtGui_7)(sipModuleAPI_ktexteditor_QtGui->em_virthandlers[7]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKTextEditor_Document::setSelectable(bool a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[23],sipPySelf,NULL,sipName_setSelectable);

    if (!sipMeth)
    {
        KTextEditor::Document::setSelectable(a0);
        return;
    }

    typedef void (*sipVH_QtNetwork_1)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, bool);

    ((sipVH_QtNetwork_1)(sipModuleAPI_ktexteditor_QtNetwork->em_virthandlers[1]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

KParts::Part* sipKTextEditor_Document::hitTest(QWidget*a0,const QPoint& a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[24],sipPySelf,NULL,sipName_hitTest);

    if (!sipMeth)
        return KTextEditor::Document::hitTest(a0,a1);

    typedef KParts::Part* (*sipVH_kparts_20)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QWidget*,const QPoint&);

    return ((sipVH_kparts_20)(sipModuleAPI_ktexteditor_kparts->em_virthandlers[20]))(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

void sipKTextEditor_Document::setManager(KParts::PartManager*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[25],sipPySelf,NULL,sipName_setManager);

    if (!sipMeth)
    {
        KTextEditor::Document::setManager(a0);
        return;
    }

    typedef void (*sipVH_kparts_21)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, KParts::PartManager*);

    ((sipVH_kparts_21)(sipModuleAPI_ktexteditor_kparts->em_virthandlers[21]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

QWidget* sipKTextEditor_Document::widget()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[26],sipPySelf,NULL,sipName_widget);

    if (!sipMeth)
        return KTextEditor::Document::widget();

    typedef QWidget* (*sipVH_QtGui_106)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtGui_106)(sipModuleAPI_ktexteditor_QtGui->em_virthandlers[106]))(sipGILState, 0, sipPySelf, sipMeth);
}

void sipKTextEditor_Document::embed(QWidget*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[27],sipPySelf,NULL,sipName_embed);

    if (!sipMeth)
    {
        KTextEditor::Document::embed(a0);
        return;
    }

    typedef void (*sipVH_QtGui_7)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QWidget*);

    ((sipVH_QtGui_7)(sipModuleAPI_ktexteditor_QtGui->em_virthandlers[7]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKTextEditor_Document::guiActivateEvent(KParts::GUIActivateEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[28],sipPySelf,NULL,sipName_guiActivateEvent);

    if (!sipMeth)
    {
        KTextEditor::Document::guiActivateEvent(a0);
        return;
    }

    typedef void (*sipVH_kparts_17)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, KParts::GUIActivateEvent*);

    ((sipVH_kparts_17)(sipModuleAPI_ktexteditor_kparts->em_virthandlers[17]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

bool sipKTextEditor_Document::openFile()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[29],sipPySelf,sipName_Document,sipName_openFile);

    if (!sipMeth)
        return 0;

    typedef bool (*sipVH_QtCore_7)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_7)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[7]))(sipGILState, 0, sipPySelf, sipMeth);
}

bool sipKTextEditor_Document::openUrl(const KUrl& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[30],sipPySelf,NULL,sipName_openUrl);

    if (!sipMeth)
        return KTextEditor::Document::openUrl(a0);

    typedef bool (*sipVH_kparts_16)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const KUrl&);

    return ((sipVH_kparts_16)(sipModuleAPI_ktexteditor_kparts->em_virthandlers[16]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

bool sipKTextEditor_Document::saveToUrl()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[31],sipPySelf,NULL,sipName_saveToUrl);

    if (!sipMeth)
        return KTextEditor::Document::saveToUrl();

    typedef bool (*sipVH_QtCore_7)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_7)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[7]))(sipGILState, 0, sipPySelf, sipMeth);
}

bool sipKTextEditor_Document::saveFile()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[32],sipPySelf,sipName_Document,sipName_saveFile);

    if (!sipMeth)
        return 0;

    typedef bool (*sipVH_QtCore_7)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_7)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[7]))(sipGILState, 0, sipPySelf, sipMeth);
}

bool sipKTextEditor_Document::save()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[33],sipPySelf,NULL,sipName_save);

    if (!sipMeth)
        return KTextEditor::Document::save();

    typedef bool (*sipVH_QtCore_7)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_7)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[7]))(sipGILState, 0, sipPySelf, sipMeth);
}

void sipKTextEditor_Document::setModified(bool a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[34],sipPySelf,NULL,sipName_setModified);

    if (!sipMeth)
    {
        KTextEditor::Document::setModified(a0);
        return;
    }

    typedef void (*sipVH_QtNetwork_1)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, bool);

    ((sipVH_QtNetwork_1)(sipModuleAPI_ktexteditor_QtNetwork->em_virthandlers[1]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

bool sipKTextEditor_Document::saveAs(const KUrl& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[35],sipPySelf,NULL,sipName_saveAs);

    if (!sipMeth)
        return KTextEditor::Document::saveAs(a0);

    typedef bool (*sipVH_kparts_16)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const KUrl&);

    return ((sipVH_kparts_16)(sipModuleAPI_ktexteditor_kparts->em_virthandlers[16]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

bool sipKTextEditor_Document::closeUrl(bool a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[36],sipPySelf,NULL,sipName_closeUrl);

    if (!sipMeth)
        return KTextEditor::Document::closeUrl(a0);

    typedef bool (*sipVH_QtGui_11)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, bool);

    return ((sipVH_QtGui_11)(sipModuleAPI_ktexteditor_QtGui->em_virthandlers[11]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

bool sipKTextEditor_Document::closeUrl()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[37],sipPySelf,NULL,sipName_closeUrl);

    if (!sipMeth)
        return KTextEditor::Document::closeUrl();

    typedef bool (*sipVH_QtCore_7)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_7)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[7]))(sipGILState, 0, sipPySelf, sipMeth);
}

bool sipKTextEditor_Document::queryClose()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[38],sipPySelf,NULL,sipName_queryClose);

    if (!sipMeth)
        return KTextEditor::Document::queryClose();

    typedef bool (*sipVH_QtCore_7)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_7)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[7]))(sipGILState, 0, sipPySelf, sipMeth);
}

void sipKTextEditor_Document::setReadWrite(bool a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[39],sipPySelf,NULL,sipName_setReadWrite);

    if (!sipMeth)
    {
        KTextEditor::Document::setReadWrite(a0);
        return;
    }

    typedef void (*sipVH_QtNetwork_1)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, bool);

    ((sipVH_QtNetwork_1)(sipModuleAPI_ktexteditor_QtNetwork->em_virthandlers[1]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

QString sipKTextEditor_Document::modeSection(int a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[40]),sipPySelf,sipName_Document,sipName_modeSection);

    if (!sipMeth)
        return QString();

    typedef QString (*sipVH_QtGui_111)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int);

    return ((sipVH_QtGui_111)(sipModuleAPI_ktexteditor_QtGui->em_virthandlers[111]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

QString sipKTextEditor_Document::highlightingModeSection(int a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[41]),sipPySelf,sipName_Document,sipName_highlightingModeSection);

    if (!sipMeth)
        return QString();

    typedef QString (*sipVH_QtGui_111)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int);

    return ((sipVH_QtGui_111)(sipModuleAPI_ktexteditor_QtGui->em_virthandlers[111]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

bool sipKTextEditor_Document::setHighlightingMode(const QString& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[42],sipPySelf,sipName_Document,sipName_setHighlightingMode);

    if (!sipMeth)
        return 0;

    typedef bool (*sipVH_QtCore_28)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QString&);

    return ((sipVH_QtCore_28)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[28]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

bool sipKTextEditor_Document::setMode(const QString& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[43],sipPySelf,sipName_Document,sipName_setMode);

    if (!sipMeth)
        return 0;

    typedef bool (*sipVH_QtCore_28)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QString&);

    return ((sipVH_QtCore_28)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[28]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

QStringList sipKTextEditor_Document::highlightingModes() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[44]),sipPySelf,sipName_Document,sipName_highlightingModes);

    if (!sipMeth)
        return QStringList();

    typedef QStringList (*sipVH_QtCore_27)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_27)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[27]))(sipGILState, 0, sipPySelf, sipMeth);
}

QStringList sipKTextEditor_Document::modes() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[45]),sipPySelf,sipName_Document,sipName_modes);

    if (!sipMeth)
        return QStringList();

    typedef QStringList (*sipVH_QtCore_27)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_27)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[27]))(sipGILState, 0, sipPySelf, sipMeth);
}

QString sipKTextEditor_Document::highlightingMode() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[46]),sipPySelf,sipName_Document,sipName_highlightingMode);

    if (!sipMeth)
        return QString();

    typedef QString (*sipVH_QtCore_62)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_62)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[62]))(sipGILState, 0, sipPySelf, sipMeth);
}

QString sipKTextEditor_Document::mode() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[47]),sipPySelf,sipName_Document,sipName_mode);

    if (!sipMeth)
        return QString();

    typedef QString (*sipVH_QtCore_62)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_62)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[62]))(sipGILState, 0, sipPySelf, sipMeth);
}

bool sipKTextEditor_Document::removeLine(int a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[48],sipPySelf,sipName_Document,sipName_removeLine);

    if (!sipMeth)
        return 0;

    typedef bool (*sipVH_QtCore_23)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int);

    return ((sipVH_QtCore_23)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[23]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

bool sipKTextEditor_Document::insertLines(int a0,const QStringList& a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[49],sipPySelf,sipName_Document,sipName_insertLines);

    if (!sipMeth)
        return 0;

    extern bool sipVH_ktexteditor_66(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int,const QStringList&);

    return sipVH_ktexteditor_66(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

bool sipKTextEditor_Document::insertLine(int a0,const QString& a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[50],sipPySelf,sipName_Document,sipName_insertLine);

    if (!sipMeth)
        return 0;

    extern bool sipVH_ktexteditor_67(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int,const QString&);

    return sipVH_ktexteditor_67(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

bool sipKTextEditor_Document::cursorInText(const KTextEditor::Cursor& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[51],sipPySelf,NULL,sipName_cursorInText);

    if (!sipMeth)
        return KTextEditor::Document::cursorInText(a0);

    extern bool sipVH_ktexteditor_68(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const KTextEditor::Cursor&);

    return sipVH_ktexteditor_68(sipGILState, 0, sipPySelf, sipMeth, a0);
}

bool sipKTextEditor_Document::removeText(const KTextEditor::Range& a0,bool a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[52],sipPySelf,sipName_Document,sipName_removeText);

    if (!sipMeth)
        return 0;

    extern bool sipVH_ktexteditor_69(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const KTextEditor::Range&,bool);

    return sipVH_ktexteditor_69(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

bool sipKTextEditor_Document::replaceText(const KTextEditor::Range& a0,const QStringList& a1,bool a2)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[53],sipPySelf,NULL,sipName_replaceText);

    if (!sipMeth)
        return KTextEditor::Document::replaceText(a0,a1,a2);

    extern bool sipVH_ktexteditor_70(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const KTextEditor::Range&,const QStringList&,bool);

    return sipVH_ktexteditor_70(sipGILState, 0, sipPySelf, sipMeth, a0, a1, a2);
}

bool sipKTextEditor_Document::replaceText(const KTextEditor::Range& a0,const QString& a1,bool a2)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[54],sipPySelf,NULL,sipName_replaceText);

    if (!sipMeth)
        return KTextEditor::Document::replaceText(a0,a1,a2);

    extern bool sipVH_ktexteditor_71(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const KTextEditor::Range&,const QString&,bool);

    return sipVH_ktexteditor_71(sipGILState, 0, sipPySelf, sipMeth, a0, a1, a2);
}

bool sipKTextEditor_Document::insertText(const KTextEditor::Cursor& a0,const QStringList& a1,bool a2)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[55],sipPySelf,sipName_Document,sipName_insertText);

    if (!sipMeth)
        return 0;

    extern bool sipVH_ktexteditor_72(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const KTextEditor::Cursor&,const QStringList&,bool);

    return sipVH_ktexteditor_72(sipGILState, 0, sipPySelf, sipMeth, a0, a1, a2);
}

bool sipKTextEditor_Document::insertText(const KTextEditor::Cursor& a0,const QString& a1,bool a2)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[56],sipPySelf,sipName_Document,sipName_insertText);

    if (!sipMeth)
        return 0;

    extern bool sipVH_ktexteditor_73(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const KTextEditor::Cursor&,const QString&,bool);

    return sipVH_ktexteditor_73(sipGILState, 0, sipPySelf, sipMeth, a0, a1, a2);
}

bool sipKTextEditor_Document::clear()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[57],sipPySelf,sipName_Document,sipName_clear);

    if (!sipMeth)
        return 0;

    typedef bool (*sipVH_QtCore_7)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_7)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[7]))(sipGILState, 0, sipPySelf, sipMeth);
}

bool sipKTextEditor_Document::setText(const QStringList& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[58],sipPySelf,sipName_Document,sipName_setText);

    if (!sipMeth)
        return 0;

    extern bool sipVH_ktexteditor_74(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QStringList&);

    return sipVH_ktexteditor_74(sipGILState, 0, sipPySelf, sipMeth, a0);
}

bool sipKTextEditor_Document::setText(const QString& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[59],sipPySelf,sipName_Document,sipName_setText);

    if (!sipMeth)
        return 0;

    typedef bool (*sipVH_QtCore_28)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QString&);

    return ((sipVH_QtCore_28)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[28]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

int sipKTextEditor_Document::lineLength(int a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[60]),sipPySelf,sipName_Document,sipName_lineLength);

    if (!sipMeth)
        return 0;

    typedef int (*sipVH_QtGui_28)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int);

    return ((sipVH_QtGui_28)(sipModuleAPI_ktexteditor_QtGui->em_virthandlers[28]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

bool sipKTextEditor_Document::isEmpty() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[61]),sipPySelf,NULL,sipName_isEmpty);

    if (!sipMeth)
        return KTextEditor::Document::isEmpty();

    typedef bool (*sipVH_QtCore_7)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_7)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[7]))(sipGILState, 0, sipPySelf, sipMeth);
}

int sipKTextEditor_Document::totalCharacters() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[62]),sipPySelf,sipName_Document,sipName_totalCharacters);

    if (!sipMeth)
        return 0;

    typedef int (*sipVH_QtCore_6)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_6)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[6]))(sipGILState, 0, sipPySelf, sipMeth);
}

KTextEditor::Cursor sipKTextEditor_Document::documentEnd() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[63]),sipPySelf,sipName_Document,sipName_documentEnd);

    if (!sipMeth)
        return KTextEditor::Cursor();

    extern KTextEditor::Cursor sipVH_ktexteditor_5(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_ktexteditor_5(sipGILState, 0, sipPySelf, sipMeth);
}

int sipKTextEditor_Document::lines() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[64]),sipPySelf,sipName_Document,sipName_lines);

    if (!sipMeth)
        return 0;

    typedef int (*sipVH_QtCore_6)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_6)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[6]))(sipGILState, 0, sipPySelf, sipMeth);
}

QString sipKTextEditor_Document::line(int a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[65]),sipPySelf,sipName_Document,sipName_line);

    if (!sipMeth)
        return QString();

    typedef QString (*sipVH_QtGui_111)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int);

    return ((sipVH_QtGui_111)(sipModuleAPI_ktexteditor_QtGui->em_virthandlers[111]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

QStringList sipKTextEditor_Document::textLines(const KTextEditor::Range& a0,bool a1) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[66]),sipPySelf,sipName_Document,sipName_textLines);

    if (!sipMeth)
        return QStringList();

    extern QStringList sipVH_ktexteditor_75(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const KTextEditor::Range&,bool);

    return sipVH_ktexteditor_75(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

QChar sipKTextEditor_Document::character(const KTextEditor::Cursor& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[67]),sipPySelf,sipName_Document,sipName_character);

    if (!sipMeth)
        return QChar();

    extern QChar sipVH_ktexteditor_76(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const KTextEditor::Cursor&);

    return sipVH_ktexteditor_76(sipGILState, 0, sipPySelf, sipMeth, a0);
}

QString sipKTextEditor_Document::text(const KTextEditor::Range& a0,bool a1) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[68]),sipPySelf,sipName_Document,sipName_text);

    if (!sipMeth)
        return QString();

    extern QString sipVH_ktexteditor_77(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const KTextEditor::Range&,bool);

    return sipVH_ktexteditor_77(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

QString sipKTextEditor_Document::text() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[69]),sipPySelf,sipName_Document,sipName_text);

    if (!sipMeth)
        return QString();

    typedef QString (*sipVH_QtCore_62)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_62)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[62]))(sipGILState, 0, sipPySelf, sipMeth);
}

bool sipKTextEditor_Document::endEditing()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[70],sipPySelf,sipName_Document,sipName_endEditing);

    if (!sipMeth)
        return 0;

    typedef bool (*sipVH_QtCore_7)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_7)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[7]))(sipGILState, 0, sipPySelf, sipMeth);
}

bool sipKTextEditor_Document::startEditing()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[71],sipPySelf,sipName_Document,sipName_startEditing);

    if (!sipMeth)
        return 0;

    typedef bool (*sipVH_QtCore_7)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_7)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[7]))(sipGILState, 0, sipPySelf, sipMeth);
}

bool sipKTextEditor_Document::documentSaveAs()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[72],sipPySelf,sipName_Document,sipName_documentSaveAs);

    if (!sipMeth)
        return 0;

    typedef bool (*sipVH_QtCore_7)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_7)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[7]))(sipGILState, 0, sipPySelf, sipMeth);
}

bool sipKTextEditor_Document::documentSave()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[73],sipPySelf,sipName_Document,sipName_documentSave);

    if (!sipMeth)
        return 0;

    typedef bool (*sipVH_QtCore_7)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_7)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[7]))(sipGILState, 0, sipPySelf, sipMeth);
}

bool sipKTextEditor_Document::documentReload()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[74],sipPySelf,sipName_Document,sipName_documentReload);

    if (!sipMeth)
        return 0;

    typedef bool (*sipVH_QtCore_7)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_7)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[7]))(sipGILState, 0, sipPySelf, sipMeth);
}

const QString& sipKTextEditor_Document::encoding() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[75]),sipPySelf,sipName_Document,sipName_encoding);

    if (!sipMeth)
        return *new QString();

    typedef const QString& (*sipVH_kdeui_37)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_kdeui_37)(sipModuleAPI_ktexteditor_kdeui->em_virthandlers[37]))(sipGILState, 0, sipPySelf, sipMeth);
}

bool sipKTextEditor_Document::setEncoding(const QString& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[76],sipPySelf,sipName_Document,sipName_setEncoding);

    if (!sipMeth)
        return 0;

    typedef bool (*sipVH_QtCore_28)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QString&);

    return ((sipVH_QtCore_28)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[28]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

QString sipKTextEditor_Document::mimeType()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[77],sipPySelf,sipName_Document,sipName_mimeType);

    if (!sipMeth)
        return QString();

    typedef QString (*sipVH_QtCore_62)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_62)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[62]))(sipGILState, 0, sipPySelf, sipMeth);
}

const QString& sipKTextEditor_Document::documentName() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[78]),sipPySelf,sipName_Document,sipName_documentName);

    if (!sipMeth)
        return *new QString();

    typedef const QString& (*sipVH_kdeui_37)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_kdeui_37)(sipModuleAPI_ktexteditor_kdeui->em_virthandlers[37]))(sipGILState, 0, sipPySelf, sipMeth);
}

const QList<KTextEditor::View*>& sipKTextEditor_Document::views() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[79]),sipPySelf,sipName_Document,sipName_views);

    if (!sipMeth)
        return *new QList<KTextEditor::View*>();

    extern const QList<KTextEditor::View*>& sipVH_ktexteditor_78(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_ktexteditor_78(sipGILState, 0, sipPySelf, sipMeth);
}

KTextEditor::View* sipKTextEditor_Document::activeView() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[80]),sipPySelf,sipName_Document,sipName_activeView);

    if (!sipMeth)
        return 0;

    extern KTextEditor::View* sipVH_ktexteditor_31(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_ktexteditor_31(sipGILState, 0, sipPySelf, sipMeth);
}

KTextEditor::View* sipKTextEditor_Document::createView(QWidget*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[81],sipPySelf,sipName_Document,sipName_createView);

    if (!sipMeth)
        return 0;

    extern KTextEditor::View* sipVH_ktexteditor_79(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QWidget*);

    return sipVH_ktexteditor_79(sipGILState, 0, sipPySelf, sipMeth, a0);
}

KTextEditor::Editor* sipKTextEditor_Document::editor()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[82],sipPySelf,sipName_Document,sipName_editor);

    if (!sipMeth)
        return 0;

    extern KTextEditor::Editor* sipVH_ktexteditor_61(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_ktexteditor_61(sipGILState, 0, sipPySelf, sipMeth);
}


extern "C" {static PyObject *meth_KTextEditor_Document_editor(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Document_editor(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    PyObject *sipOrigSelf = sipSelf;

    {
        KTextEditor::Document *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTextEditor_Document, &sipCpp))
        {
            KTextEditor::Editor*sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_Document, sipName_editor);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->editor();
            Py_END_ALLOW_THREADS

            return sipConvertFromType(sipRes,sipType_KTextEditor_Editor,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Document, sipName_editor, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Document_createView(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Document_createView(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    PyObject *sipOrigSelf = sipSelf;

    {
        QWidget* a0;
        KTextEditor::Document *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ:", &sipSelf, sipType_KTextEditor_Document, &sipCpp, sipType_QWidget, &a0))
        {
            KTextEditor::View*sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_Document, sipName_createView);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->createView(a0);
            Py_END_ALLOW_THREADS

            return sipConvertFromType(sipRes,sipType_KTextEditor_View,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Document, sipName_createView, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Document_activeView(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Document_activeView(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    PyObject *sipOrigSelf = sipSelf;

    {
        const KTextEditor::Document *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTextEditor_Document, &sipCpp))
        {
            KTextEditor::View*sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_Document, sipName_activeView);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->activeView();
            Py_END_ALLOW_THREADS

            return sipConvertFromType(sipRes,sipType_KTextEditor_View,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Document, sipName_activeView, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Document_views(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Document_views(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    PyObject *sipOrigSelf = sipSelf;

    {
        const KTextEditor::Document *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTextEditor_Document, &sipCpp))
        {
            QList<KTextEditor::View*>*sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_Document, sipName_views);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<KTextEditor::View*>(sipCpp->views());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QList_0101KTextEditor_View,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Document, sipName_views, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Document_documentName(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Document_documentName(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    PyObject *sipOrigSelf = sipSelf;

    {
        const KTextEditor::Document *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTextEditor_Document, &sipCpp))
        {
            QString*sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_Document, sipName_documentName);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->documentName());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Document, sipName_documentName, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Document_mimeType(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Document_mimeType(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    PyObject *sipOrigSelf = sipSelf;

    {
        KTextEditor::Document *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTextEditor_Document, &sipCpp))
        {
            QString*sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_Document, sipName_mimeType);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->mimeType());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Document, sipName_mimeType, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Document_setEncoding(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Document_setEncoding(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    PyObject *sipOrigSelf = sipSelf;

    {
        const QString* a0;
        int a0State = 0;
        KTextEditor::Document *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KTextEditor_Document, &sipCpp, sipType_QString,&a0, &a0State))
        {
            bool sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_Document, sipName_setEncoding);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->setEncoding(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Document, sipName_setEncoding, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Document_encoding(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Document_encoding(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    PyObject *sipOrigSelf = sipSelf;

    {
        const KTextEditor::Document *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTextEditor_Document, &sipCpp))
        {
            QString*sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_Document, sipName_encoding);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->encoding());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Document, sipName_encoding, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Document_documentReload(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Document_documentReload(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    PyObject *sipOrigSelf = sipSelf;

    {
        KTextEditor::Document *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTextEditor_Document, &sipCpp))
        {
            bool sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_Document, sipName_documentReload);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->documentReload();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Document, sipName_documentReload, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Document_documentSave(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Document_documentSave(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    PyObject *sipOrigSelf = sipSelf;

    {
        KTextEditor::Document *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTextEditor_Document, &sipCpp))
        {
            bool sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_Document, sipName_documentSave);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->documentSave();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Document, sipName_documentSave, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Document_documentSaveAs(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Document_documentSaveAs(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    PyObject *sipOrigSelf = sipSelf;

    {
        KTextEditor::Document *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTextEditor_Document, &sipCpp))
        {
            bool sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_Document, sipName_documentSaveAs);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->documentSaveAs();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Document, sipName_documentSaveAs, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Document_startEditing(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Document_startEditing(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    PyObject *sipOrigSelf = sipSelf;

    {
        KTextEditor::Document *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTextEditor_Document, &sipCpp))
        {
            bool sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_Document, sipName_startEditing);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->startEditing();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Document, sipName_startEditing, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Document_endEditing(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Document_endEditing(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    PyObject *sipOrigSelf = sipSelf;

    {
        KTextEditor::Document *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTextEditor_Document, &sipCpp))
        {
            bool sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_Document, sipName_endEditing);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->endEditing();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Document, sipName_endEditing, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Document_text(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Document_text(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    PyObject *sipOrigSelf = sipSelf;

    {
        const KTextEditor::Document *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTextEditor_Document, &sipCpp))
        {
            QString*sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_Document, sipName_text);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->text());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    {
        const KTextEditor::Range* a0;
        bool a1 = 0;
        const KTextEditor::Document *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9|b", &sipSelf, sipType_KTextEditor_Document, &sipCpp, sipType_KTextEditor_Range, &a0, &a1))
        {
            QString*sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_Document, sipName_text);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->text(*a0,a1));
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Document, sipName_text, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Document_character(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Document_character(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    PyObject *sipOrigSelf = sipSelf;

    {
        const KTextEditor::Cursor* a0;
        const KTextEditor::Document *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_KTextEditor_Document, &sipCpp, sipType_KTextEditor_Cursor, &a0))
        {
            QChar*sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_Document, sipName_character);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QChar(sipCpp->character(*a0));
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QChar,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Document, sipName_character, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Document_textLines(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Document_textLines(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    PyObject *sipOrigSelf = sipSelf;

    {
        const KTextEditor::Range* a0;
        bool a1 = 0;
        const KTextEditor::Document *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9|b", &sipSelf, sipType_KTextEditor_Document, &sipCpp, sipType_KTextEditor_Range, &a0, &a1))
        {
            QStringList*sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_Document, sipName_textLines);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QStringList(sipCpp->textLines(*a0,a1));
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QStringList,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Document, sipName_textLines, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Document_line(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Document_line(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    PyObject *sipOrigSelf = sipSelf;

    {
        int a0;
        const KTextEditor::Document *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_KTextEditor_Document, &sipCpp, &a0))
        {
            QString*sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_Document, sipName_line);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->line(a0));
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Document, sipName_line, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Document_lines(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Document_lines(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    PyObject *sipOrigSelf = sipSelf;

    {
        const KTextEditor::Document *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTextEditor_Document, &sipCpp))
        {
            int sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_Document, sipName_lines);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->lines();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Document, sipName_lines, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Document_documentEnd(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Document_documentEnd(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    PyObject *sipOrigSelf = sipSelf;

    {
        const KTextEditor::Document *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTextEditor_Document, &sipCpp))
        {
            KTextEditor::Cursor*sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_Document, sipName_documentEnd);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KTextEditor::Cursor(sipCpp->documentEnd());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_KTextEditor_Cursor,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Document, sipName_documentEnd, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Document_documentRange(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Document_documentRange(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const KTextEditor::Document *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTextEditor_Document, &sipCpp))
        {
            KTextEditor::Range*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KTextEditor::Range(sipCpp->documentRange());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_KTextEditor_Range,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Document, sipName_documentRange, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Document_totalCharacters(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Document_totalCharacters(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    PyObject *sipOrigSelf = sipSelf;

    {
        const KTextEditor::Document *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTextEditor_Document, &sipCpp))
        {
            int sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_Document, sipName_totalCharacters);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->totalCharacters();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Document, sipName_totalCharacters, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Document_isEmpty(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Document_isEmpty(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const KTextEditor::Document *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTextEditor_Document, &sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->KTextEditor::Document::isEmpty() : sipCpp->isEmpty());
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Document, sipName_isEmpty, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Document_lineLength(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Document_lineLength(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    PyObject *sipOrigSelf = sipSelf;

    {
        int a0;
        const KTextEditor::Document *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_KTextEditor_Document, &sipCpp, &a0))
        {
            int sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_Document, sipName_lineLength);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->lineLength(a0);
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Document, sipName_lineLength, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Document_endOfLine(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Document_endOfLine(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        const KTextEditor::Document *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_KTextEditor_Document, &sipCpp, &a0))
        {
            KTextEditor::Cursor*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KTextEditor::Cursor(sipCpp->endOfLine(a0));
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_KTextEditor_Cursor,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Document, sipName_endOfLine, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Document_setText(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Document_setText(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    PyObject *sipOrigSelf = sipSelf;

    {
        const QString* a0;
        int a0State = 0;
        KTextEditor::Document *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KTextEditor_Document, &sipCpp, sipType_QString,&a0, &a0State))
        {
            bool sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_Document, sipName_setText);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->setText(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    {
        const QStringList* a0;
        int a0State = 0;
        KTextEditor::Document *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KTextEditor_Document, &sipCpp, sipType_QStringList,&a0, &a0State))
        {
            bool sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_Document, sipName_setText);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->setText(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QStringList *>(a0),sipType_QStringList,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Document, sipName_setText, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Document_clear(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Document_clear(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    PyObject *sipOrigSelf = sipSelf;

    {
        KTextEditor::Document *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTextEditor_Document, &sipCpp))
        {
            bool sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_Document, sipName_clear);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->clear();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Document, sipName_clear, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Document_insertText(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Document_insertText(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    PyObject *sipOrigSelf = sipSelf;

    {
        const KTextEditor::Cursor* a0;
        const QString* a1;
        int a1State = 0;
        bool a2 = 0;
        KTextEditor::Document *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9J1|b", &sipSelf, sipType_KTextEditor_Document, &sipCpp, sipType_KTextEditor_Cursor, &a0, sipType_QString,&a1, &a1State, &a2))
        {
            bool sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_Document, sipName_insertText);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->insertText(*a0,*a1,a2);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);

            return PyBool_FromLong(sipRes);
        }
    }

    {
        const KTextEditor::Cursor* a0;
        const QStringList* a1;
        int a1State = 0;
        bool a2 = 0;
        KTextEditor::Document *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9J1|b", &sipSelf, sipType_KTextEditor_Document, &sipCpp, sipType_KTextEditor_Cursor, &a0, sipType_QStringList,&a1, &a1State, &a2))
        {
            bool sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_Document, sipName_insertText);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->insertText(*a0,*a1,a2);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QStringList *>(a1),sipType_QStringList,a1State);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Document, sipName_insertText, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Document_replaceText(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Document_replaceText(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const KTextEditor::Range* a0;
        const QString* a1;
        int a1State = 0;
        bool a2 = 0;
        KTextEditor::Document *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9J1|b", &sipSelf, sipType_KTextEditor_Document, &sipCpp, sipType_KTextEditor_Range, &a0, sipType_QString,&a1, &a1State, &a2))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->KTextEditor::Document::replaceText(*a0,*a1,a2) : sipCpp->replaceText(*a0,*a1,a2));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);

            return PyBool_FromLong(sipRes);
        }
    }

    {
        const KTextEditor::Range* a0;
        const QStringList* a1;
        int a1State = 0;
        bool a2 = 0;
        KTextEditor::Document *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9J1|b", &sipSelf, sipType_KTextEditor_Document, &sipCpp, sipType_KTextEditor_Range, &a0, sipType_QStringList,&a1, &a1State, &a2))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->KTextEditor::Document::replaceText(*a0,*a1,a2) : sipCpp->replaceText(*a0,*a1,a2));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QStringList *>(a1),sipType_QStringList,a1State);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Document, sipName_replaceText, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Document_removeText(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Document_removeText(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    PyObject *sipOrigSelf = sipSelf;

    {
        const KTextEditor::Range* a0;
        bool a1 = 0;
        KTextEditor::Document *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9|b", &sipSelf, sipType_KTextEditor_Document, &sipCpp, sipType_KTextEditor_Range, &a0, &a1))
        {
            bool sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_Document, sipName_removeText);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->removeText(*a0,a1);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Document, sipName_removeText, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Document_cursorInText(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Document_cursorInText(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const KTextEditor::Cursor* a0;
        KTextEditor::Document *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_KTextEditor_Document, &sipCpp, sipType_KTextEditor_Cursor, &a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->KTextEditor::Document::cursorInText(*a0) : sipCpp->cursorInText(*a0));
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Document, sipName_cursorInText, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Document_insertLine(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Document_insertLine(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    PyObject *sipOrigSelf = sipSelf;

    {
        int a0;
        const QString* a1;
        int a1State = 0;
        KTextEditor::Document *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BiJ1", &sipSelf, sipType_KTextEditor_Document, &sipCpp, &a0, sipType_QString,&a1, &a1State))
        {
            bool sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_Document, sipName_insertLine);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->insertLine(a0,*a1);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Document, sipName_insertLine, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Document_insertLines(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Document_insertLines(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    PyObject *sipOrigSelf = sipSelf;

    {
        int a0;
        const QStringList* a1;
        int a1State = 0;
        KTextEditor::Document *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BiJ1", &sipSelf, sipType_KTextEditor_Document, &sipCpp, &a0, sipType_QStringList,&a1, &a1State))
        {
            bool sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_Document, sipName_insertLines);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->insertLines(a0,*a1);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QStringList *>(a1),sipType_QStringList,a1State);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Document, sipName_insertLines, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Document_removeLine(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Document_removeLine(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    PyObject *sipOrigSelf = sipSelf;

    {
        int a0;
        KTextEditor::Document *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_KTextEditor_Document, &sipCpp, &a0))
        {
            bool sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_Document, sipName_removeLine);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->removeLine(a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Document, sipName_removeLine, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Document_mode(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Document_mode(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    PyObject *sipOrigSelf = sipSelf;

    {
        const KTextEditor::Document *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTextEditor_Document, &sipCpp))
        {
            QString*sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_Document, sipName_mode);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->mode());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Document, sipName_mode, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Document_highlightingMode(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Document_highlightingMode(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    PyObject *sipOrigSelf = sipSelf;

    {
        const KTextEditor::Document *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTextEditor_Document, &sipCpp))
        {
            QString*sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_Document, sipName_highlightingMode);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->highlightingMode());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Document, sipName_highlightingMode, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Document_modes(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Document_modes(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    PyObject *sipOrigSelf = sipSelf;

    {
        const KTextEditor::Document *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTextEditor_Document, &sipCpp))
        {
            QStringList*sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_Document, sipName_modes);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QStringList(sipCpp->modes());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QStringList,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Document, sipName_modes, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Document_highlightingModes(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Document_highlightingModes(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    PyObject *sipOrigSelf = sipSelf;

    {
        const KTextEditor::Document *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTextEditor_Document, &sipCpp))
        {
            QStringList*sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_Document, sipName_highlightingModes);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QStringList(sipCpp->highlightingModes());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QStringList,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Document, sipName_highlightingModes, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Document_setMode(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Document_setMode(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    PyObject *sipOrigSelf = sipSelf;

    {
        const QString* a0;
        int a0State = 0;
        KTextEditor::Document *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KTextEditor_Document, &sipCpp, sipType_QString,&a0, &a0State))
        {
            bool sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_Document, sipName_setMode);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->setMode(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Document, sipName_setMode, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Document_setHighlightingMode(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Document_setHighlightingMode(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    PyObject *sipOrigSelf = sipSelf;

    {
        const QString* a0;
        int a0State = 0;
        KTextEditor::Document *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KTextEditor_Document, &sipCpp, sipType_QString,&a0, &a0State))
        {
            bool sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_Document, sipName_setHighlightingMode);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->setHighlightingMode(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Document, sipName_setHighlightingMode, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Document_highlightingModeSection(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Document_highlightingModeSection(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    PyObject *sipOrigSelf = sipSelf;

    {
        int a0;
        const KTextEditor::Document *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_KTextEditor_Document, &sipCpp, &a0))
        {
            QString*sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_Document, sipName_highlightingModeSection);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->highlightingModeSection(a0));
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Document, sipName_highlightingModeSection, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Document_modeSection(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Document_modeSection(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    PyObject *sipOrigSelf = sipSelf;

    {
        int a0;
        const KTextEditor::Document *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_KTextEditor_Document, &sipCpp, &a0))
        {
            QString*sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_Document, sipName_modeSection);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->modeSection(a0));
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Document, sipName_modeSection, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Document_setSuppressOpeningErrorDialogs(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Document_setSuppressOpeningErrorDialogs(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        bool a0;
        KTextEditor::Document *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bb", &sipSelf, sipType_KTextEditor_Document, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setSuppressOpeningErrorDialogs(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Document, sipName_setSuppressOpeningErrorDialogs, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Document_suppressOpeningErrorDialogs(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Document_suppressOpeningErrorDialogs(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const KTextEditor::Document *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTextEditor_Document, &sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->suppressOpeningErrorDialogs();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Document, sipName_suppressOpeningErrorDialogs, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Document_openingError(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Document_openingError(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const KTextEditor::Document *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTextEditor_Document, &sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->openingError();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Document, sipName_openingError, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Document_openingErrorMessage(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Document_openingErrorMessage(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const KTextEditor::Document *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTextEditor_Document, &sipCpp))
        {
            QString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->openingErrorMessage());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Document, sipName_openingErrorMessage, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Document_setOpeningError(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Document_setOpeningError(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        bool a0;
        KTextEditor::Document *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "pb", &sipSelf, sipType_KTextEditor_Document, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setOpeningError(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Document, sipName_setOpeningError, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Document_setOpeningErrorMessage(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Document_setOpeningErrorMessage(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QString* a0;
        int a0State = 0;
        KTextEditor::Document *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "pJ1", &sipSelf, sipType_KTextEditor_Document, &sipCpp, sipType_QString,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setOpeningErrorMessage(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Document, sipName_setOpeningErrorMessage, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Document_annotationInterface(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Document_annotationInterface(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        KTextEditor::Document *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTextEditor_Document, &sipCpp))
        {
            KTextEditor::AnnotationInterface*sipRes = 0;

#line 148 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/ktexteditor/document.sip"
    Py_BEGIN_ALLOW_THREADS
    sipRes = dynamic_cast<KTextEditor::AnnotationInterface*>(sipCpp);
    Py_END_ALLOW_THREADS
#line 7309 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart4.cpp"

            return sipConvertFromType(sipRes,sipType_KTextEditor_AnnotationInterface,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Document, sipName_annotationInterface, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Document_markInterface(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Document_markInterface(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        KTextEditor::Document *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTextEditor_Document, &sipCpp))
        {
            KTextEditor::MarkInterface*sipRes = 0;

#line 155 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/ktexteditor/document.sip"
    Py_BEGIN_ALLOW_THREADS
    sipRes = dynamic_cast<KTextEditor::MarkInterface*>(sipCpp);
    Py_END_ALLOW_THREADS
#line 7338 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart4.cpp"

            return sipConvertFromType(sipRes,sipType_KTextEditor_MarkInterface,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Document, sipName_markInterface, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Document_modificationInterface(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Document_modificationInterface(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        KTextEditor::Document *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTextEditor_Document, &sipCpp))
        {
            KTextEditor::ModificationInterface*sipRes = 0;

#line 162 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/ktexteditor/document.sip"
    Py_BEGIN_ALLOW_THREADS
    sipRes = dynamic_cast<KTextEditor::ModificationInterface*>(sipCpp);
    Py_END_ALLOW_THREADS
#line 7367 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart4.cpp"

            return sipConvertFromType(sipRes,sipType_KTextEditor_ModificationInterface,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Document, sipName_modificationInterface, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Document_searchInterface(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Document_searchInterface(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        KTextEditor::Document *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTextEditor_Document, &sipCpp))
        {
            KTextEditor::SearchInterface*sipRes = 0;

#line 169 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/ktexteditor/document.sip"
    Py_BEGIN_ALLOW_THREADS
    sipRes = dynamic_cast<KTextEditor::SearchInterface*>(sipCpp);
    Py_END_ALLOW_THREADS
#line 7396 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart4.cpp"

            return sipConvertFromType(sipRes,sipType_KTextEditor_SearchInterface,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Document, sipName_searchInterface, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Document_variableInterface(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Document_variableInterface(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        KTextEditor::Document *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTextEditor_Document, &sipCpp))
        {
            KTextEditor::VariableInterface*sipRes = 0;

#line 176 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/ktexteditor/document.sip"
    Py_BEGIN_ALLOW_THREADS
    sipRes = dynamic_cast<KTextEditor::VariableInterface*>(sipCpp);
    Py_END_ALLOW_THREADS
#line 7425 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart4.cpp"

            return sipConvertFromType(sipRes,sipType_KTextEditor_VariableInterface,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Document, sipName_variableInterface, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Document_movingInterface(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Document_movingInterface(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        KTextEditor::Document *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTextEditor_Document, &sipCpp))
        {
            KTextEditor::MovingInterface*sipRes = 0;

#line 183 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/ktexteditor/document.sip"
    Py_BEGIN_ALLOW_THREADS
    sipRes = dynamic_cast<KTextEditor::MovingInterface*>(sipCpp);
    Py_END_ALLOW_THREADS
#line 7454 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart4.cpp"

            return sipConvertFromType(sipRes,sipType_KTextEditor_MovingInterface,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Document, sipName_movingInterface, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Document_highlightInterface(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Document_highlightInterface(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        KTextEditor::Document *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTextEditor_Document, &sipCpp))
        {
            KTextEditor::HighlightInterface*sipRes = 0;

#line 190 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/ktexteditor/document.sip"
    Py_BEGIN_ALLOW_THREADS
    sipRes = dynamic_cast<KTextEditor::HighlightInterface*>(sipCpp);
    Py_END_ALLOW_THREADS
#line 7483 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart4.cpp"

            return sipConvertFromType(sipRes,sipType_KTextEditor_HighlightInterface,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Document, sipName_highlightInterface, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Document_configInterface(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Document_configInterface(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        KTextEditor::Document *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTextEditor_Document, &sipCpp))
        {
            KTextEditor::ConfigInterface*sipRes = 0;

#line 197 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/ktexteditor/document.sip"
    Py_BEGIN_ALLOW_THREADS
    sipRes = dynamic_cast<KTextEditor::ConfigInterface*>(sipCpp);
    Py_END_ALLOW_THREADS
#line 7512 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart4.cpp"

            return sipConvertFromType(sipRes,sipType_KTextEditor_ConfigInterface,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Document, sipName_configInterface, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Document_parameterizedSessionConfigInterface(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Document_parameterizedSessionConfigInterface(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        KTextEditor::Document *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTextEditor_Document, &sipCpp))
        {
            KTextEditor::ParameterizedSessionConfigInterface*sipRes = 0;

#line 204 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/ktexteditor/document.sip"
    Py_BEGIN_ALLOW_THREADS
    sipRes = dynamic_cast<KTextEditor::ParameterizedSessionConfigInterface*>(sipCpp);
    Py_END_ALLOW_THREADS
#line 7541 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart4.cpp"

            return sipConvertFromType(sipRes,sipType_KTextEditor_ParameterizedSessionConfigInterface,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Document, sipName_parameterizedSessionConfigInterface, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Document_sessionConfigInterface(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Document_sessionConfigInterface(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        KTextEditor::Document *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTextEditor_Document, &sipCpp))
        {
            KTextEditor::SessionConfigInterface*sipRes = 0;

#line 211 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/ktexteditor/document.sip"
    Py_BEGIN_ALLOW_THREADS
    sipRes = dynamic_cast<KTextEditor::SessionConfigInterface*>(sipCpp);
    Py_END_ALLOW_THREADS
#line 7570 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart4.cpp"

            return sipConvertFromType(sipRes,sipType_KTextEditor_SessionConfigInterface,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Document, sipName_sessionConfigInterface, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Document_recoveryInterface(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Document_recoveryInterface(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        KTextEditor::Document *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTextEditor_Document, &sipCpp))
        {
            KTextEditor::RecoveryInterface*sipRes = 0;

#line 218 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/ktexteditor/document.sip"
    Py_BEGIN_ALLOW_THREADS
    sipRes = dynamic_cast<KTextEditor::RecoveryInterface*>(sipCpp);
    Py_END_ALLOW_THREADS
#line 7599 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart4.cpp"

            return sipConvertFromType(sipRes,sipType_KTextEditor_RecoveryInterface,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Document, sipName_recoveryInterface, NULL);

    return NULL;
}


/* Cast a pointer to a type somewhere in its multiple inheritance hierarchy. */
extern "C" {static void *cast_KTextEditor_Document(void *, const sipTypeDef *);}
static void *cast_KTextEditor_Document(void *sipCppV, const sipTypeDef *targetType)
{
    KTextEditor::Document *sipCpp = reinterpret_cast<KTextEditor::Document *>(sipCppV);

    if (targetType == sipType_KParts_PartBase)
        return static_cast<KParts::PartBase *>(sipCpp);

    if (targetType == sipType_KXMLGUIClient)
        return static_cast<KXMLGUIClient *>(sipCpp);

    return sipCppV;
}


/* Call the instance's destructor. */
extern "C" {static void release_KTextEditor_Document(void *, int);}
static void release_KTextEditor_Document(void *sipCppV,int)
{
    KTextEditor::Document *sipCpp = reinterpret_cast<KTextEditor::Document *>(sipCppV);

    Py_BEGIN_ALLOW_THREADS

    if (QThread::currentThread() == sipCpp->thread())
        delete sipCpp;
    else
        sipCpp->deleteLater();

    Py_END_ALLOW_THREADS
}


extern "C" {static void dealloc_KTextEditor_Document(sipSimpleWrapper *);}
static void dealloc_KTextEditor_Document(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipKTextEditor_Document *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_KTextEditor_Document(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


extern "C" {static void *init_type_KTextEditor_Document(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_KTextEditor_Document(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **sipOwner, PyObject **sipParseErr)
{
    sipKTextEditor_Document *sipCpp = 0;

    {
        QObject* a0 = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "|JH", sipType_QObject, &a0, sipOwner))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipKTextEditor_Document(a0);
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_KTextEditor_Document[] = {{47, 9, 1}};


static PyMethodDef methods_KTextEditor_Document[] = {
    {SIP_MLNAME_CAST(sipName_activeView), meth_KTextEditor_Document_activeView, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_annotationInterface), meth_KTextEditor_Document_annotationInterface, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_character), meth_KTextEditor_Document_character, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_clear), meth_KTextEditor_Document_clear, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_configInterface), meth_KTextEditor_Document_configInterface, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_createView), meth_KTextEditor_Document_createView, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_cursorInText), meth_KTextEditor_Document_cursorInText, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_documentEnd), meth_KTextEditor_Document_documentEnd, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_documentName), meth_KTextEditor_Document_documentName, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_documentRange), meth_KTextEditor_Document_documentRange, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_documentReload), meth_KTextEditor_Document_documentReload, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_documentSave), meth_KTextEditor_Document_documentSave, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_documentSaveAs), meth_KTextEditor_Document_documentSaveAs, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_editor), meth_KTextEditor_Document_editor, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_encoding), meth_KTextEditor_Document_encoding, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_endEditing), meth_KTextEditor_Document_endEditing, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_endOfLine), meth_KTextEditor_Document_endOfLine, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_highlightInterface), meth_KTextEditor_Document_highlightInterface, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_highlightingMode), meth_KTextEditor_Document_highlightingMode, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_highlightingModeSection), meth_KTextEditor_Document_highlightingModeSection, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_highlightingModes), meth_KTextEditor_Document_highlightingModes, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_insertLine), meth_KTextEditor_Document_insertLine, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_insertLines), meth_KTextEditor_Document_insertLines, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_insertText), meth_KTextEditor_Document_insertText, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isEmpty), meth_KTextEditor_Document_isEmpty, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_line), meth_KTextEditor_Document_line, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_lineLength), meth_KTextEditor_Document_lineLength, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_lines), meth_KTextEditor_Document_lines, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_markInterface), meth_KTextEditor_Document_markInterface, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_mimeType), meth_KTextEditor_Document_mimeType, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_mode), meth_KTextEditor_Document_mode, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_modeSection), meth_KTextEditor_Document_modeSection, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_modes), meth_KTextEditor_Document_modes, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_modificationInterface), meth_KTextEditor_Document_modificationInterface, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_movingInterface), meth_KTextEditor_Document_movingInterface, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_openingError), meth_KTextEditor_Document_openingError, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_openingErrorMessage), meth_KTextEditor_Document_openingErrorMessage, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_parameterizedSessionConfigInterface), meth_KTextEditor_Document_parameterizedSessionConfigInterface, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_recoveryInterface), meth_KTextEditor_Document_recoveryInterface, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_removeLine), meth_KTextEditor_Document_removeLine, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_removeText), meth_KTextEditor_Document_removeText, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_replaceText), meth_KTextEditor_Document_replaceText, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_searchInterface), meth_KTextEditor_Document_searchInterface, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_sessionConfigInterface), meth_KTextEditor_Document_sessionConfigInterface, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setEncoding), meth_KTextEditor_Document_setEncoding, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setHighlightingMode), meth_KTextEditor_Document_setHighlightingMode, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setMode), meth_KTextEditor_Document_setMode, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setOpeningError), meth_KTextEditor_Document_setOpeningError, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setOpeningErrorMessage), meth_KTextEditor_Document_setOpeningErrorMessage, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setSuppressOpeningErrorDialogs), meth_KTextEditor_Document_setSuppressOpeningErrorDialogs, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setText), meth_KTextEditor_Document_setText, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_startEditing), meth_KTextEditor_Document_startEditing, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_suppressOpeningErrorDialogs), meth_KTextEditor_Document_suppressOpeningErrorDialogs, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_text), meth_KTextEditor_Document_text, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_textLines), meth_KTextEditor_Document_textLines, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_totalCharacters), meth_KTextEditor_Document_totalCharacters, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_variableInterface), meth_KTextEditor_Document_variableInterface, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_views), meth_KTextEditor_Document_views, METH_VARARGS, NULL}
};


/* Define this type's signals. */
static const pyqt4QtSignal signals_KTextEditor_Document[] = {
    {"exclusiveEditEnd(KTextEditor::Document*)", 0, 0, 0},
    {"exclusiveEditStart(KTextEditor::Document*)", 0, 0, 0},
    {"reloaded(KTextEditor::Document*)", 0, 0, 0},
    {"aboutToReload(KTextEditor::Document*)", 0, 0, 0},
    {"documentSavedOrUploaded(KTextEditor::Document*,bool)", 0, 0, 0},
    {"highlightingModeChanged(KTextEditor::Document*)", 0, 0, 0},
    {"modeChanged(KTextEditor::Document*)", 0, 0, 0},
    {"aboutToClose(KTextEditor::Document*)", 0, 0, 0},
    {"textRemoved(KTextEditor::Document*,KTextEditor::Range)", 0, 0, 0},
    {"textRemoved(KTextEditor::Document*,KTextEditor::Range,QString)", 0, 0, 0},
    {"textInserted(KTextEditor::Document*,KTextEditor::Range)", 0, 0, 0},
    {"textChanged(KTextEditor::Document*)", 0, 0, 0},
    {"textChanged(KTextEditor::Document*,KTextEditor::Range,KTextEditor::Range)", 0, 0, 0},
    {"textChanged(KTextEditor::Document*,KTextEditor::Range,QString,KTextEditor::Range)", 0, 0, 0},
    {"modifiedChanged(KTextEditor::Document*)", 0, 0, 0},
    {"documentUrlChanged(KTextEditor::Document*)", 0, 0, 0},
    {"documentNameChanged(KTextEditor::Document*)", 0, 0, 0},
    {"viewCreated(KTextEditor::Document*,KTextEditor::View*)", 0, 0, 0},
    {0, 0, 0, 0}
};


pyqt4ClassTypeDef sipTypeDef_ktexteditor_KTextEditor_Document = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_ABSTRACT|SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_KTextEditor__Document,
        {0}
    },
    {
        sipNameNr_Document,
        {1, 255, 0},
        58, methods_KTextEditor_Document,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_KTextEditor_Document,
    0,
    init_type_KTextEditor_Document,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KTextEditor_Document,
    0,
    0,
    0,
    release_KTextEditor_Document,
    cast_KTextEditor_Document,
    0,
    0,
    0,
    0,
    0,
    0
},
    &KTextEditor::Document::staticMetaObject,
    0,
    signals_KTextEditor_Document,
};

#line 30 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/ktexteditor/cursor.sip"
#include <ktexteditor/cursor.h>
#line 7827 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart4.cpp"

#line 30 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/ktexteditor/range.sip"
#include <ktexteditor/range.h>
#line 7831 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart4.cpp"


class sipKTextEditor_Cursor : public KTextEditor::Cursor
{
public:
    sipKTextEditor_Cursor();
    sipKTextEditor_Cursor(int,int);
    sipKTextEditor_Cursor(const KTextEditor::Cursor&);
    virtual ~sipKTextEditor_Cursor();

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    void setRange(KTextEditor::Range*);
    void setColumn(int);
    void setLine(int);
    int line() const;
    void setPosition(const KTextEditor::Cursor&);
    bool isValid() const;

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipKTextEditor_Cursor(const sipKTextEditor_Cursor &);
    sipKTextEditor_Cursor &operator = (const sipKTextEditor_Cursor &);

    char sipPyMethods[6];
};

sipKTextEditor_Cursor::sipKTextEditor_Cursor(): KTextEditor::Cursor(), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipKTextEditor_Cursor::sipKTextEditor_Cursor(int a0,int a1): KTextEditor::Cursor(a0,a1), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipKTextEditor_Cursor::sipKTextEditor_Cursor(const KTextEditor::Cursor& a0): KTextEditor::Cursor(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipKTextEditor_Cursor::~sipKTextEditor_Cursor()
{
    sipCommonDtor(sipPySelf);
}

void sipKTextEditor_Cursor::setRange(KTextEditor::Range*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[0],sipPySelf,NULL,sipName_setRange);

    if (!sipMeth)
    {
        KTextEditor::Cursor::setRange(a0);
        return;
    }

    extern void sipVH_ktexteditor_80(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, KTextEditor::Range*);

    sipVH_ktexteditor_80(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKTextEditor_Cursor::setColumn(int a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[1],sipPySelf,NULL,sipName_setColumn);

    if (!sipMeth)
    {
        KTextEditor::Cursor::setColumn(a0);
        return;
    }

    typedef void (*sipVH_QtCore_4)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int);

    ((sipVH_QtCore_4)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[4]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKTextEditor_Cursor::setLine(int a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[2],sipPySelf,NULL,sipName_setLine);

    if (!sipMeth)
    {
        KTextEditor::Cursor::setLine(a0);
        return;
    }

    typedef void (*sipVH_QtCore_4)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int);

    ((sipVH_QtCore_4)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[4]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

int sipKTextEditor_Cursor::line() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[3]),sipPySelf,NULL,sipName_line);

    if (!sipMeth)
        return KTextEditor::Cursor::line();

    typedef int (*sipVH_QtCore_6)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_6)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[6]))(sipGILState, 0, sipPySelf, sipMeth);
}

void sipKTextEditor_Cursor::setPosition(const KTextEditor::Cursor& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[4],sipPySelf,NULL,sipName_setPosition);

    if (!sipMeth)
    {
        KTextEditor::Cursor::setPosition(a0);
        return;
    }

    extern void sipVH_ktexteditor_41(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const KTextEditor::Cursor&);

    sipVH_ktexteditor_41(sipGILState, 0, sipPySelf, sipMeth, a0);
}

bool sipKTextEditor_Cursor::isValid() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[5]),sipPySelf,NULL,sipName_isValid);

    if (!sipMeth)
        return KTextEditor::Cursor::isValid();

    typedef bool (*sipVH_QtCore_7)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_7)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[7]))(sipGILState, 0, sipPySelf, sipMeth);
}


extern "C" {static PyObject *meth_KTextEditor_Cursor_isValid(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Cursor_isValid(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const KTextEditor::Cursor *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTextEditor_Cursor, &sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->KTextEditor::Cursor::isValid() : sipCpp->isValid());
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Cursor, sipName_isValid, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Cursor_invalid(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Cursor_invalid(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            KTextEditor::Cursor*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KTextEditor::Cursor(KTextEditor::Cursor::invalid());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_KTextEditor_Cursor,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Cursor, sipName_invalid, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Cursor_start(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Cursor_start(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            KTextEditor::Cursor*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KTextEditor::Cursor(KTextEditor::Cursor::start());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_KTextEditor_Cursor,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Cursor, sipName_start, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Cursor_setPosition(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Cursor_setPosition(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const KTextEditor::Cursor* a0;
        KTextEditor::Cursor *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_KTextEditor_Cursor, &sipCpp, sipType_KTextEditor_Cursor, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp->KTextEditor::Cursor::setPosition(*a0) : sipCpp->setPosition(*a0));
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        int a0;
        int a1;
        KTextEditor::Cursor *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bii", &sipSelf, sipType_KTextEditor_Cursor, &sipCpp, &a0, &a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setPosition(a0,a1);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Cursor, sipName_setPosition, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Cursor_line(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Cursor_line(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const KTextEditor::Cursor *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTextEditor_Cursor, &sipCpp))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->KTextEditor::Cursor::line() : sipCpp->line());
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Cursor, sipName_line, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Cursor_setLine(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Cursor_setLine(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        int a0;
        KTextEditor::Cursor *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_KTextEditor_Cursor, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp->KTextEditor::Cursor::setLine(a0) : sipCpp->setLine(a0));
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Cursor, sipName_setLine, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Cursor_column(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Cursor_column(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const KTextEditor::Cursor *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTextEditor_Cursor, &sipCpp))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->column();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Cursor, sipName_column, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Cursor_setColumn(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Cursor_setColumn(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        int a0;
        KTextEditor::Cursor *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_KTextEditor_Cursor, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp->KTextEditor::Cursor::setColumn(a0) : sipCpp->setColumn(a0));
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Cursor, sipName_setColumn, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Cursor_atStartOfLine(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Cursor_atStartOfLine(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const KTextEditor::Cursor *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTextEditor_Cursor, &sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->atStartOfLine();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Cursor, sipName_atStartOfLine, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Cursor_atStartOfDocument(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Cursor_atStartOfDocument(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const KTextEditor::Cursor *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTextEditor_Cursor, &sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->atStartOfDocument();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Cursor, sipName_atStartOfDocument, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Cursor_position(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Cursor_position(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        int a1;
        const KTextEditor::Cursor *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTextEditor_Cursor, &sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->position(a0,a1);
            Py_END_ALLOW_THREADS

            return sipBuildResult(0,"(ii)",a0,a1);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Cursor, sipName_position, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Cursor_range(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Cursor_range(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const KTextEditor::Cursor *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTextEditor_Cursor, &sipCpp))
        {
            KTextEditor::Range*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->range();
            Py_END_ALLOW_THREADS

            return sipConvertFromType(sipRes,sipType_KTextEditor_Range,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Cursor, sipName_range, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Cursor_setRange(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Cursor_setRange(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        KTextEditor::Range* a0;
        KTextEditor::Cursor *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "pJ8", &sipSelf, sipType_KTextEditor_Cursor, &sipCpp, sipType_KTextEditor_Range, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp->KTextEditor::Cursor::setRange(a0) : sipCpp->setRange(a0));
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Cursor, sipName_setRange, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Cursor_cursorChangedDirectly(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Cursor_cursorChangedDirectly(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const KTextEditor::Cursor* a0;
        KTextEditor::Cursor *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "pJ9", &sipSelf, sipType_KTextEditor_Cursor, &sipCpp, sipType_KTextEditor_Cursor, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->cursorChangedDirectly(*a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Cursor, sipName_cursorChangedDirectly, NULL);

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_KTextEditor_Cursor(void *, int);}
static void release_KTextEditor_Cursor(void *sipCppV,int sipState)
{
    Py_BEGIN_ALLOW_THREADS

    if (sipState & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipKTextEditor_Cursor *>(sipCppV);
    else
        delete reinterpret_cast<KTextEditor::Cursor *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void assign_KTextEditor_Cursor(void *, SIP_SSIZE_T, const void *);}
static void assign_KTextEditor_Cursor(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<KTextEditor::Cursor *>(sipDst)[sipDstIdx] = *reinterpret_cast<const KTextEditor::Cursor *>(sipSrc);
}


extern "C" {static void *array_KTextEditor_Cursor(SIP_SSIZE_T);}
static void *array_KTextEditor_Cursor(SIP_SSIZE_T sipNrElem)
{
    return new KTextEditor::Cursor[sipNrElem];
}


extern "C" {static void *copy_KTextEditor_Cursor(const void *, SIP_SSIZE_T);}
static void *copy_KTextEditor_Cursor(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new KTextEditor::Cursor(reinterpret_cast<const KTextEditor::Cursor *>(sipSrc)[sipSrcIdx]);
}


extern "C" {static void dealloc_KTextEditor_Cursor(sipSimpleWrapper *);}
static void dealloc_KTextEditor_Cursor(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipKTextEditor_Cursor *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_KTextEditor_Cursor(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


extern "C" {static void *init_type_KTextEditor_Cursor(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_KTextEditor_Cursor(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    sipKTextEditor_Cursor *sipCpp = 0;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipKTextEditor_Cursor();
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        int a0;
        int a1;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "ii", &a0, &a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipKTextEditor_Cursor(a0,a1);
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const KTextEditor::Cursor* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_KTextEditor_Cursor, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipKTextEditor_Cursor(*a0);
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


static PyMethodDef methods_KTextEditor_Cursor[] = {
    {SIP_MLNAME_CAST(sipName_atStartOfDocument), meth_KTextEditor_Cursor_atStartOfDocument, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_atStartOfLine), meth_KTextEditor_Cursor_atStartOfLine, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_column), meth_KTextEditor_Cursor_column, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_cursorChangedDirectly), meth_KTextEditor_Cursor_cursorChangedDirectly, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_invalid), meth_KTextEditor_Cursor_invalid, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isValid), meth_KTextEditor_Cursor_isValid, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_line), meth_KTextEditor_Cursor_line, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_position), meth_KTextEditor_Cursor_position, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_range), meth_KTextEditor_Cursor_range, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setColumn), meth_KTextEditor_Cursor_setColumn, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setLine), meth_KTextEditor_Cursor_setLine, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setPosition), meth_KTextEditor_Cursor_setPosition, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setRange), meth_KTextEditor_Cursor_setRange, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_start), meth_KTextEditor_Cursor_start, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_ktexteditor_KTextEditor_Cursor = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_KTextEditor__Cursor,
        {0}
    },
    {
        sipNameNr_Cursor,
        {1, 255, 0},
        14, methods_KTextEditor_Cursor,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    0,
    0,
    init_type_KTextEditor_Cursor,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KTextEditor_Cursor,
    assign_KTextEditor_Cursor,
    array_KTextEditor_Cursor,
    copy_KTextEditor_Cursor,
    release_KTextEditor_Cursor,
    0,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};
