/*
 * Module code.
 *
 * Generated by SIP 4.8.2 on Sun Oct 11 20:11:18 2009
 */

#include "sipAPIkhtml.h"

#line 65 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/khtml/dom_xml.sip"
#include <dom_xml.h>
#line 12 "sipkhtmlpart4.cpp"

#line 58 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/khtml/dom_node.sip"
#include <dom_node.h>
#line 16 "sipkhtmlpart4.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qrect.sip"
#include <qrect.h>
#line 19 "sipkhtmlpart4.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 22 "sipkhtmlpart4.cpp"
#line 32 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/khtml/dom_string.sip"
#include <dom_string.h>
#line 25 "sipkhtmlpart4.cpp"
#line 42 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/khtml/dom2_events.sip"
#include <dom2_events.h>
#line 28 "sipkhtmlpart4.cpp"
#line 28 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/khtml/dom2_events.sip"
#include <dom2_events.h>
#line 31 "sipkhtmlpart4.cpp"
#line 52 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/khtml/dom_doc.sip"
#include <dom_doc.h>
#line 34 "sipkhtmlpart4.cpp"
#line 32 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/khtml/dom_node.sip"
#include <dom_node.h>
#line 37 "sipkhtmlpart4.cpp"
#line 141 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/khtml/dom_node.sip"
#include <dom_node.h>
#line 40 "sipkhtmlpart4.cpp"


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_DOM_EntityReference(void *, const sipTypeDef *);}
static void *cast_DOM_EntityReference(void *ptr,const sipTypeDef *targetType)
{
    void *res;

    if (targetType == sipType_DOM_EntityReference)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_DOM_Node)->ctd_cast((DOM::Node *)(DOM::EntityReference *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


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

    delete reinterpret_cast<DOM::EntityReference *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void assign_DOM_EntityReference(void *, const void*);}
static void assign_DOM_EntityReference(void *sipDst, const void *sipSrc)
{
    *reinterpret_cast<DOM::EntityReference *>(sipDst) = *reinterpret_cast<const DOM::EntityReference *>(sipSrc);
}


extern "C" {static void dealloc_DOM_EntityReference(sipSimpleWrapper *);}
static void dealloc_DOM_EntityReference(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_DOM_EntityReference(sipSelf->u.cppPtr,0);
    }
}


extern "C" {static void *init_DOM_EntityReference(sipSimpleWrapper *, PyObject *, PyObject **, int *);}
static void *init_DOM_EntityReference(sipSimpleWrapper *, PyObject *sipArgs, PyObject **, int *sipArgsParsed)
{
    DOM::EntityReference *sipCpp = 0;

    if (!sipCpp)
    {
        if (sipParseArgs(sipArgsParsed,sipArgs,""))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new DOM::EntityReference();
            Py_END_ALLOW_THREADS
        }
    }

    if (!sipCpp)
    {
        const DOM::EntityReference * a0;

        if (sipParseArgs(sipArgsParsed,sipArgs,"J9",sipType_DOM_EntityReference,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new DOM::EntityReference(*a0);
            Py_END_ALLOW_THREADS
        }
    }

    if (!sipCpp)
    {
        const DOM::Node * a0;

        if (sipParseArgs(sipArgsParsed,sipArgs,"J9",sipType_DOM_Node,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new DOM::EntityReference(*a0);
            Py_END_ALLOW_THREADS
        }
    }

    return sipCpp;
}


/* Define this type's super-types. */
static sipEncodedClassDef supers_DOM_EntityReference[] = {{109, 255, 1}};


pyqt4ClassTypeDef pyqt4Type_khtml_DOM_EntityReference = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_DOM__EntityReference,
        {0}
    },
    sipNameNr_EntityReference,
    -1,
    -1,
    {0, 255, 0},
    supers_DOM_EntityReference,
    0,
    0, 0,
    0, 0,
    0, 0,
    init_DOM_EntityReference,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_DOM_EntityReference,
    release_DOM_EntityReference,
    cast_DOM_EntityReference,
    0,
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    0,
    0
},
    assign_DOM_EntityReference,
    0,
    0,
    0
};

#line 45 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/khtml/dom_xml.sip"
#include <dom_xml.h>
#line 182 "sipkhtmlpart4.cpp"

#line 58 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/khtml/dom_node.sip"
#include <dom_node.h>
#line 186 "sipkhtmlpart4.cpp"
#line 32 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/khtml/dom_string.sip"
#include <dom_string.h>
#line 189 "sipkhtmlpart4.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qrect.sip"
#include <qrect.h>
#line 192 "sipkhtmlpart4.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 195 "sipkhtmlpart4.cpp"
#line 42 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/khtml/dom2_events.sip"
#include <dom2_events.h>
#line 198 "sipkhtmlpart4.cpp"
#line 28 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/khtml/dom2_events.sip"
#include <dom2_events.h>
#line 201 "sipkhtmlpart4.cpp"
#line 52 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/khtml/dom_doc.sip"
#include <dom_doc.h>
#line 204 "sipkhtmlpart4.cpp"
#line 32 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/khtml/dom_node.sip"
#include <dom_node.h>
#line 207 "sipkhtmlpart4.cpp"
#line 141 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/khtml/dom_node.sip"
#include <dom_node.h>
#line 210 "sipkhtmlpart4.cpp"


extern "C" {static PyObject *meth_DOM_Entity_publicId(PyObject *, PyObject *);}
static PyObject *meth_DOM_Entity_publicId(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        DOM::Entity *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_DOM_Entity,&sipCpp))
        {
            DOM::DOMString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::DOMString(sipCpp->publicId());
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_Entity,sipName_publicId);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Entity_systemId(PyObject *, PyObject *);}
static PyObject *meth_DOM_Entity_systemId(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        DOM::Entity *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_DOM_Entity,&sipCpp))
        {
            DOM::DOMString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::DOMString(sipCpp->systemId());
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_Entity,sipName_systemId);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Entity_notationName(PyObject *, PyObject *);}
static PyObject *meth_DOM_Entity_notationName(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        DOM::Entity *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_DOM_Entity,&sipCpp))
        {
            DOM::DOMString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::DOMString(sipCpp->notationName());
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_Entity,sipName_notationName);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_DOM_Entity(void *, const sipTypeDef *);}
static void *cast_DOM_Entity(void *ptr,const sipTypeDef *targetType)
{
    void *res;

    if (targetType == sipType_DOM_Entity)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_DOM_Node)->ctd_cast((DOM::Node *)(DOM::Entity *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


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

    delete reinterpret_cast<DOM::Entity *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void assign_DOM_Entity(void *, const void*);}
static void assign_DOM_Entity(void *sipDst, const void *sipSrc)
{
    *reinterpret_cast<DOM::Entity *>(sipDst) = *reinterpret_cast<const DOM::Entity *>(sipSrc);
}


extern "C" {static void dealloc_DOM_Entity(sipSimpleWrapper *);}
static void dealloc_DOM_Entity(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_DOM_Entity(sipSelf->u.cppPtr,0);
    }
}


extern "C" {static void *init_DOM_Entity(sipSimpleWrapper *, PyObject *, PyObject **, int *);}
static void *init_DOM_Entity(sipSimpleWrapper *, PyObject *sipArgs, PyObject **, int *sipArgsParsed)
{
    DOM::Entity *sipCpp = 0;

    if (!sipCpp)
    {
        if (sipParseArgs(sipArgsParsed,sipArgs,""))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new DOM::Entity();
            Py_END_ALLOW_THREADS
        }
    }

    if (!sipCpp)
    {
        const DOM::Entity * a0;

        if (sipParseArgs(sipArgsParsed,sipArgs,"J9",sipType_DOM_Entity,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new DOM::Entity(*a0);
            Py_END_ALLOW_THREADS
        }
    }

    if (!sipCpp)
    {
        const DOM::Node * a0;

        if (sipParseArgs(sipArgsParsed,sipArgs,"J9",sipType_DOM_Node,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new DOM::Entity(*a0);
            Py_END_ALLOW_THREADS
        }
    }

    return sipCpp;
}


/* Define this type's super-types. */
static sipEncodedClassDef supers_DOM_Entity[] = {{109, 255, 1}};


static PyMethodDef methods_DOM_Entity[] = {
    {SIP_MLNAME_CAST(sipName_notationName), meth_DOM_Entity_notationName, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_publicId), meth_DOM_Entity_publicId, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_systemId), meth_DOM_Entity_systemId, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef pyqt4Type_khtml_DOM_Entity = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_DOM__Entity,
        {0}
    },
    sipNameNr_Entity,
    -1,
    -1,
    {0, 255, 0},
    supers_DOM_Entity,
    0,
    3, methods_DOM_Entity,
    0, 0,
    0, 0,
    init_DOM_Entity,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_DOM_Entity,
    release_DOM_Entity,
    cast_DOM_Entity,
    0,
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    0,
    0
},
    assign_DOM_Entity,
    0,
    0,
    0
};

#line 28 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/khtml/dom_xml.sip"
#include <dom_xml.h>
#line 440 "sipkhtmlpart4.cpp"

#line 58 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/khtml/dom_node.sip"
#include <dom_node.h>
#line 444 "sipkhtmlpart4.cpp"
#line 70 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/khtml/dom_text.sip"
#include <dom_text.h>
#line 447 "sipkhtmlpart4.cpp"
#line 32 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/khtml/dom_string.sip"
#include <dom_string.h>
#line 450 "sipkhtmlpart4.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qrect.sip"
#include <qrect.h>
#line 453 "sipkhtmlpart4.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 456 "sipkhtmlpart4.cpp"
#line 42 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/khtml/dom2_events.sip"
#include <dom2_events.h>
#line 459 "sipkhtmlpart4.cpp"
#line 28 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/khtml/dom2_events.sip"
#include <dom2_events.h>
#line 462 "sipkhtmlpart4.cpp"
#line 52 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/khtml/dom_doc.sip"
#include <dom_doc.h>
#line 465 "sipkhtmlpart4.cpp"
#line 32 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/khtml/dom_node.sip"
#include <dom_node.h>
#line 468 "sipkhtmlpart4.cpp"
#line 141 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/khtml/dom_node.sip"
#include <dom_node.h>
#line 471 "sipkhtmlpart4.cpp"


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_DOM_CDATASection(void *, const sipTypeDef *);}
static void *cast_DOM_CDATASection(void *ptr,const sipTypeDef *targetType)
{
    void *res;

    if (targetType == sipType_DOM_CDATASection)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_DOM_Text)->ctd_cast((DOM::Text *)(DOM::CDATASection *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


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

    delete reinterpret_cast<DOM::CDATASection *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void assign_DOM_CDATASection(void *, const void*);}
static void assign_DOM_CDATASection(void *sipDst, const void *sipSrc)
{
    *reinterpret_cast<DOM::CDATASection *>(sipDst) = *reinterpret_cast<const DOM::CDATASection *>(sipSrc);
}


extern "C" {static void dealloc_DOM_CDATASection(sipSimpleWrapper *);}
static void dealloc_DOM_CDATASection(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_DOM_CDATASection(sipSelf->u.cppPtr,0);
    }
}


extern "C" {static void *init_DOM_CDATASection(sipSimpleWrapper *, PyObject *, PyObject **, int *);}
static void *init_DOM_CDATASection(sipSimpleWrapper *, PyObject *sipArgs, PyObject **, int *sipArgsParsed)
{
    DOM::CDATASection *sipCpp = 0;

    if (!sipCpp)
    {
        if (sipParseArgs(sipArgsParsed,sipArgs,""))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new DOM::CDATASection();
            Py_END_ALLOW_THREADS
        }
    }

    if (!sipCpp)
    {
        const DOM::CDATASection * a0;

        if (sipParseArgs(sipArgsParsed,sipArgs,"J9",sipType_DOM_CDATASection,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new DOM::CDATASection(*a0);
            Py_END_ALLOW_THREADS
        }
    }

    if (!sipCpp)
    {
        const DOM::Node * a0;

        if (sipParseArgs(sipArgsParsed,sipArgs,"J9",sipType_DOM_Node,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new DOM::CDATASection(*a0);
            Py_END_ALLOW_THREADS
        }
    }

    return sipCpp;
}


/* Define this type's super-types. */
static sipEncodedClassDef supers_DOM_CDATASection[] = {{127, 255, 1}};


pyqt4ClassTypeDef pyqt4Type_khtml_DOM_CDATASection = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_DOM__CDATASection,
        {0}
    },
    sipNameNr_CDATASection,
    -1,
    -1,
    {0, 255, 0},
    supers_DOM_CDATASection,
    0,
    0, 0,
    0, 0,
    0, 0,
    init_DOM_CDATASection,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_DOM_CDATASection,
    release_DOM_CDATASection,
    cast_DOM_CDATASection,
    0,
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    0,
    0
},
    assign_DOM_CDATASection,
    0,
    0,
    0
};

#line 70 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/khtml/dom_text.sip"
#include <dom_text.h>
#line 613 "sipkhtmlpart4.cpp"

#line 58 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/khtml/dom_node.sip"
#include <dom_node.h>
#line 617 "sipkhtmlpart4.cpp"
#line 32 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/khtml/dom_string.sip"
#include <dom_string.h>
#line 620 "sipkhtmlpart4.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qrect.sip"
#include <qrect.h>
#line 623 "sipkhtmlpart4.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 626 "sipkhtmlpart4.cpp"
#line 42 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/khtml/dom2_events.sip"
#include <dom2_events.h>
#line 629 "sipkhtmlpart4.cpp"
#line 28 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/khtml/dom2_events.sip"
#include <dom2_events.h>
#line 632 "sipkhtmlpart4.cpp"
#line 52 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/khtml/dom_doc.sip"
#include <dom_doc.h>
#line 635 "sipkhtmlpart4.cpp"
#line 32 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/khtml/dom_node.sip"
#include <dom_node.h>
#line 638 "sipkhtmlpart4.cpp"
#line 141 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/khtml/dom_node.sip"
#include <dom_node.h>
#line 641 "sipkhtmlpart4.cpp"


extern "C" {static PyObject *meth_DOM_Text_splitText(PyObject *, PyObject *);}
static PyObject *meth_DOM_Text_splitText(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        unsigned long a0;
        DOM::Text *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"Bm",&sipSelf,sipType_DOM_Text,&sipCpp,&a0))
        {
            DOM::Text *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::Text(sipCpp->splitText(a0));
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_Text,sipName_splitText);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_DOM_Text(void *, const sipTypeDef *);}
static void *cast_DOM_Text(void *ptr,const sipTypeDef *targetType)
{
    void *res;

    if (targetType == sipType_DOM_Text)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_DOM_CharacterData)->ctd_cast((DOM::CharacterData *)(DOM::Text *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


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

    delete reinterpret_cast<DOM::Text *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void assign_DOM_Text(void *, const void*);}
static void assign_DOM_Text(void *sipDst, const void *sipSrc)
{
    *reinterpret_cast<DOM::Text *>(sipDst) = *reinterpret_cast<const DOM::Text *>(sipSrc);
}


extern "C" {static void dealloc_DOM_Text(sipSimpleWrapper *);}
static void dealloc_DOM_Text(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_DOM_Text(sipSelf->u.cppPtr,0);
    }
}


extern "C" {static void *init_DOM_Text(sipSimpleWrapper *, PyObject *, PyObject **, int *);}
static void *init_DOM_Text(sipSimpleWrapper *, PyObject *sipArgs, PyObject **, int *sipArgsParsed)
{
    DOM::Text *sipCpp = 0;

    if (!sipCpp)
    {
        if (sipParseArgs(sipArgsParsed,sipArgs,""))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new DOM::Text();
            Py_END_ALLOW_THREADS
        }
    }

    if (!sipCpp)
    {
        const DOM::Text * a0;

        if (sipParseArgs(sipArgsParsed,sipArgs,"J9",sipType_DOM_Text,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new DOM::Text(*a0);
            Py_END_ALLOW_THREADS
        }
    }

    if (!sipCpp)
    {
        const DOM::Node * a0;

        if (sipParseArgs(sipArgsParsed,sipArgs,"J9",sipType_DOM_Node,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new DOM::Text(*a0);
            Py_END_ALLOW_THREADS
        }
    }

    return sipCpp;
}


/* Define this type's super-types. */
static sipEncodedClassDef supers_DOM_Text[] = {{23, 255, 1}};


static PyMethodDef methods_DOM_Text[] = {
    {SIP_MLNAME_CAST(sipName_splitText), meth_DOM_Text_splitText, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef pyqt4Type_khtml_DOM_Text = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_DOM__Text,
        {0}
    },
    sipNameNr_Text,
    -1,
    -1,
    {0, 255, 0},
    supers_DOM_Text,
    0,
    1, methods_DOM_Text,
    0, 0,
    0, 0,
    init_DOM_Text,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_DOM_Text,
    release_DOM_Text,
    cast_DOM_Text,
    0,
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    0,
    0
},
    assign_DOM_Text,
    0,
    0,
    0
};

#line 53 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/khtml/dom_text.sip"
#include <dom_text.h>
#line 816 "sipkhtmlpart4.cpp"

#line 58 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/khtml/dom_node.sip"
#include <dom_node.h>
#line 820 "sipkhtmlpart4.cpp"
#line 32 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/khtml/dom_string.sip"
#include <dom_string.h>
#line 823 "sipkhtmlpart4.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qrect.sip"
#include <qrect.h>
#line 826 "sipkhtmlpart4.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 829 "sipkhtmlpart4.cpp"
#line 42 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/khtml/dom2_events.sip"
#include <dom2_events.h>
#line 832 "sipkhtmlpart4.cpp"
#line 28 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/khtml/dom2_events.sip"
#include <dom2_events.h>
#line 835 "sipkhtmlpart4.cpp"
#line 52 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/khtml/dom_doc.sip"
#include <dom_doc.h>
#line 838 "sipkhtmlpart4.cpp"
#line 32 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/khtml/dom_node.sip"
#include <dom_node.h>
#line 841 "sipkhtmlpart4.cpp"
#line 141 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/khtml/dom_node.sip"
#include <dom_node.h>
#line 844 "sipkhtmlpart4.cpp"


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_DOM_Comment(void *, const sipTypeDef *);}
static void *cast_DOM_Comment(void *ptr,const sipTypeDef *targetType)
{
    void *res;

    if (targetType == sipType_DOM_Comment)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_DOM_CharacterData)->ctd_cast((DOM::CharacterData *)(DOM::Comment *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


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

    delete reinterpret_cast<DOM::Comment *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void assign_DOM_Comment(void *, const void*);}
static void assign_DOM_Comment(void *sipDst, const void *sipSrc)
{
    *reinterpret_cast<DOM::Comment *>(sipDst) = *reinterpret_cast<const DOM::Comment *>(sipSrc);
}


extern "C" {static void dealloc_DOM_Comment(sipSimpleWrapper *);}
static void dealloc_DOM_Comment(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_DOM_Comment(sipSelf->u.cppPtr,0);
    }
}


extern "C" {static void *init_DOM_Comment(sipSimpleWrapper *, PyObject *, PyObject **, int *);}
static void *init_DOM_Comment(sipSimpleWrapper *, PyObject *sipArgs, PyObject **, int *sipArgsParsed)
{
    DOM::Comment *sipCpp = 0;

    if (!sipCpp)
    {
        if (sipParseArgs(sipArgsParsed,sipArgs,""))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new DOM::Comment();
            Py_END_ALLOW_THREADS
        }
    }

    if (!sipCpp)
    {
        const DOM::Comment * a0;

        if (sipParseArgs(sipArgsParsed,sipArgs,"J9",sipType_DOM_Comment,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new DOM::Comment(*a0);
            Py_END_ALLOW_THREADS
        }
    }

    if (!sipCpp)
    {
        const DOM::Node * a0;

        if (sipParseArgs(sipArgsParsed,sipArgs,"J9",sipType_DOM_Node,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new DOM::Comment(*a0);
            Py_END_ALLOW_THREADS
        }
    }

    return sipCpp;
}


/* Define this type's super-types. */
static sipEncodedClassDef supers_DOM_Comment[] = {{23, 255, 1}};


pyqt4ClassTypeDef pyqt4Type_khtml_DOM_Comment = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_DOM__Comment,
        {0}
    },
    sipNameNr_Comment,
    -1,
    -1,
    {0, 255, 0},
    supers_DOM_Comment,
    0,
    0, 0,
    0, 0,
    0, 0,
    init_DOM_Comment,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_DOM_Comment,
    release_DOM_Comment,
    cast_DOM_Comment,
    0,
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    0,
    0
},
    assign_DOM_Comment,
    0,
    0,
    0
};

#line 28 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/khtml/dom_text.sip"
#include <dom_text.h>
#line 986 "sipkhtmlpart4.cpp"

#line 58 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/khtml/dom_node.sip"
#include <dom_node.h>
#line 990 "sipkhtmlpart4.cpp"
#line 32 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/khtml/dom_string.sip"
#include <dom_string.h>
#line 993 "sipkhtmlpart4.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qrect.sip"
#include <qrect.h>
#line 996 "sipkhtmlpart4.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 999 "sipkhtmlpart4.cpp"
#line 42 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/khtml/dom2_events.sip"
#include <dom2_events.h>
#line 1002 "sipkhtmlpart4.cpp"
#line 28 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/khtml/dom2_events.sip"
#include <dom2_events.h>
#line 1005 "sipkhtmlpart4.cpp"
#line 52 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/khtml/dom_doc.sip"
#include <dom_doc.h>
#line 1008 "sipkhtmlpart4.cpp"
#line 32 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/khtml/dom_node.sip"
#include <dom_node.h>
#line 1011 "sipkhtmlpart4.cpp"
#line 141 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/khtml/dom_node.sip"
#include <dom_node.h>
#line 1014 "sipkhtmlpart4.cpp"


extern "C" {static PyObject *meth_DOM_CharacterData_data(PyObject *, PyObject *);}
static PyObject *meth_DOM_CharacterData_data(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        DOM::CharacterData *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_DOM_CharacterData,&sipCpp))
        {
            DOM::DOMString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::DOMString(sipCpp->data());
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_CharacterData,sipName_data);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_CharacterData_setData(PyObject *, PyObject *);}
static PyObject *meth_DOM_CharacterData_setData(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const DOM::DOMString * a0;
        DOM::CharacterData *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ9",&sipSelf,sipType_DOM_CharacterData,&sipCpp,sipType_DOM_DOMString,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setData(*a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_CharacterData,sipName_setData);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_CharacterData_length(PyObject *, PyObject *);}
static PyObject *meth_DOM_CharacterData_length(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        DOM::CharacterData *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_DOM_CharacterData,&sipCpp))
        {
            unsigned long sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->length();
            Py_END_ALLOW_THREADS

            return PyLong_FromUnsignedLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_CharacterData,sipName_length);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_CharacterData_substringData(PyObject *, PyObject *);}
static PyObject *meth_DOM_CharacterData_substringData(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        unsigned long a0;
        unsigned long a1;
        DOM::CharacterData *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"Bmm",&sipSelf,sipType_DOM_CharacterData,&sipCpp,&a0,&a1))
        {
            DOM::DOMString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::DOMString(sipCpp->substringData(a0,a1));
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_CharacterData,sipName_substringData);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_CharacterData_appendData(PyObject *, PyObject *);}
static PyObject *meth_DOM_CharacterData_appendData(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const DOM::DOMString * a0;
        DOM::CharacterData *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ9",&sipSelf,sipType_DOM_CharacterData,&sipCpp,sipType_DOM_DOMString,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->appendData(*a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_CharacterData,sipName_appendData);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_CharacterData_insertData(PyObject *, PyObject *);}
static PyObject *meth_DOM_CharacterData_insertData(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        unsigned long a0;
        const DOM::DOMString * a1;
        DOM::CharacterData *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BmJ9",&sipSelf,sipType_DOM_CharacterData,&sipCpp,&a0,sipType_DOM_DOMString,&a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->insertData(a0,*a1);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_CharacterData,sipName_insertData);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_CharacterData_deleteData(PyObject *, PyObject *);}
static PyObject *meth_DOM_CharacterData_deleteData(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        unsigned long a0;
        unsigned long a1;
        DOM::CharacterData *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"Bmm",&sipSelf,sipType_DOM_CharacterData,&sipCpp,&a0,&a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->deleteData(a0,a1);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_CharacterData,sipName_deleteData);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_CharacterData_replaceData(PyObject *, PyObject *);}
static PyObject *meth_DOM_CharacterData_replaceData(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        unsigned long a0;
        unsigned long a1;
        const DOM::DOMString * a2;
        DOM::CharacterData *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BmmJ9",&sipSelf,sipType_DOM_CharacterData,&sipCpp,&a0,&a1,sipType_DOM_DOMString,&a2))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->replaceData(a0,a1,*a2);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_CharacterData,sipName_replaceData);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_DOM_CharacterData(void *, const sipTypeDef *);}
static void *cast_DOM_CharacterData(void *ptr,const sipTypeDef *targetType)
{
    void *res;

    if (targetType == sipType_DOM_CharacterData)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_DOM_Node)->ctd_cast((DOM::Node *)(DOM::CharacterData *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


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

    delete reinterpret_cast<DOM::CharacterData *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void assign_DOM_CharacterData(void *, const void*);}
static void assign_DOM_CharacterData(void *sipDst, const void *sipSrc)
{
    *reinterpret_cast<DOM::CharacterData *>(sipDst) = *reinterpret_cast<const DOM::CharacterData *>(sipSrc);
}


extern "C" {static void dealloc_DOM_CharacterData(sipSimpleWrapper *);}
static void dealloc_DOM_CharacterData(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_DOM_CharacterData(sipSelf->u.cppPtr,0);
    }
}


extern "C" {static void *init_DOM_CharacterData(sipSimpleWrapper *, PyObject *, PyObject **, int *);}
static void *init_DOM_CharacterData(sipSimpleWrapper *, PyObject *sipArgs, PyObject **, int *sipArgsParsed)
{
    DOM::CharacterData *sipCpp = 0;

    if (!sipCpp)
    {
        if (sipParseArgs(sipArgsParsed,sipArgs,""))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new DOM::CharacterData();
            Py_END_ALLOW_THREADS
        }
    }

    if (!sipCpp)
    {
        const DOM::CharacterData * a0;

        if (sipParseArgs(sipArgsParsed,sipArgs,"J9",sipType_DOM_CharacterData,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new DOM::CharacterData(*a0);
            Py_END_ALLOW_THREADS
        }
    }

    if (!sipCpp)
    {
        const DOM::Node * a0;

        if (sipParseArgs(sipArgsParsed,sipArgs,"J9",sipType_DOM_Node,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new DOM::CharacterData(*a0);
            Py_END_ALLOW_THREADS
        }
    }

    return sipCpp;
}


/* Define this type's super-types. */
static sipEncodedClassDef supers_DOM_CharacterData[] = {{109, 255, 1}};


static PyMethodDef methods_DOM_CharacterData[] = {
    {SIP_MLNAME_CAST(sipName_appendData), meth_DOM_CharacterData_appendData, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_data), meth_DOM_CharacterData_data, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_deleteData), meth_DOM_CharacterData_deleteData, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_insertData), meth_DOM_CharacterData_insertData, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_length), meth_DOM_CharacterData_length, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_replaceData), meth_DOM_CharacterData_replaceData, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setData), meth_DOM_CharacterData_setData, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_substringData), meth_DOM_CharacterData_substringData, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef pyqt4Type_khtml_DOM_CharacterData = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_DOM__CharacterData,
        {0}
    },
    sipNameNr_CharacterData,
    -1,
    -1,
    {0, 255, 0},
    supers_DOM_CharacterData,
    0,
    8, methods_DOM_CharacterData,
    0, 0,
    0, 0,
    init_DOM_CharacterData,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_DOM_CharacterData,
    release_DOM_CharacterData,
    cast_DOM_CharacterData,
    0,
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    0,
    0
},
    assign_DOM_CharacterData,
    0,
    0,
    0
};

#line 32 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/khtml/dom_string.sip"
#include <dom_string.h>
#line 1390 "sipkhtmlpart4.cpp"

#line 83 "/usr/local/share/py-sip/QtCore/qchar.sip"
#include <qchar.h>
#line 1394 "sipkhtmlpart4.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 1397 "sipkhtmlpart4.cpp"


extern "C" {static PyObject *meth_DOM_DOMString_insert(PyObject *, PyObject *);}
static PyObject *meth_DOM_DOMString_insert(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        DOM::DOMString * a0;
        uint a1;
        DOM::DOMString *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ9u",&sipSelf,sipType_DOM_DOMString,&sipCpp,sipType_DOM_DOMString,&a0,&a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->insert(*a0,a1);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_DOMString,sipName_insert);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_DOMString_find(PyObject *, PyObject *);}
static PyObject *meth_DOM_DOMString_find(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const QChar * a0;
        int a1 = 0;
        DOM::DOMString *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ9|i",&sipSelf,sipType_DOM_DOMString,&sipCpp,sipType_QChar,&a0,&a1))
        {
            int sipRes;

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

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_DOMString,sipName_find);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_DOMString_reverseFind(PyObject *, PyObject *);}
static PyObject *meth_DOM_DOMString_reverseFind(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const QChar * a0;
        int a1 = -1;
        DOM::DOMString *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ9|i",&sipSelf,sipType_DOM_DOMString,&sipCpp,sipType_QChar,&a0,&a1))
        {
            int sipRes;

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

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_DOMString,sipName_reverseFind);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_DOMString_substring(PyObject *, PyObject *);}
static PyObject *meth_DOM_DOMString_substring(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        unsigned a0;
        unsigned a1 = UINT_MAX;
        DOM::DOMString *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"Bu|u",&sipSelf,sipType_DOM_DOMString,&sipCpp,&a0,&a1))
        {
            DOM::DOMString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::DOMString(sipCpp->substring(a0,a1));
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_DOMString,sipName_substring);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_DOMString_length(PyObject *, PyObject *);}
static PyObject *meth_DOM_DOMString_length(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        DOM::DOMString *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_DOM_DOMString,&sipCpp))
        {
            uint sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->length();
            Py_END_ALLOW_THREADS

            return PyLong_FromUnsignedLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_DOMString,sipName_length);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_DOMString_truncate(PyObject *, PyObject *);}
static PyObject *meth_DOM_DOMString_truncate(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        unsigned a0;
        DOM::DOMString *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"Bu",&sipSelf,sipType_DOM_DOMString,&sipCpp,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->truncate(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_DOMString,sipName_truncate);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_DOMString_remove(PyObject *, PyObject *);}
static PyObject *meth_DOM_DOMString_remove(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        unsigned a0;
        int a1 = 1;
        DOM::DOMString *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"Bu|i",&sipSelf,sipType_DOM_DOMString,&sipCpp,&a0,&a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->remove(a0,a1);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_DOMString,sipName_remove);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_DOMString_split(PyObject *, PyObject *);}
static PyObject *meth_DOM_DOMString_split(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        unsigned a0;
        DOM::DOMString *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"Bu",&sipSelf,sipType_DOM_DOMString,&sipCpp,&a0))
        {
            DOM::DOMString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::DOMString(sipCpp->split(a0));
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_DOMString,sipName_split);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_DOMString_lower(PyObject *, PyObject *);}
static PyObject *meth_DOM_DOMString_lower(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        DOM::DOMString *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_DOM_DOMString,&sipCpp))
        {
            DOM::DOMString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::DOMString(sipCpp->lower());
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_DOMString,sipName_lower);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_DOMString_upper(PyObject *, PyObject *);}
static PyObject *meth_DOM_DOMString_upper(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        DOM::DOMString *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_DOM_DOMString,&sipCpp))
        {
            DOM::DOMString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::DOMString(sipCpp->upper());
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_DOMString,sipName_upper);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_DOMString_unicode(PyObject *, PyObject *);}
static PyObject *meth_DOM_DOMString_unicode(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        DOM::DOMString *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_DOM_DOMString,&sipCpp))
        {
            QChar *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->unicode();
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_DOMString,sipName_unicode);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_DOMString_characters(PyObject *, PyObject *);}
static PyObject *meth_DOM_DOMString_characters(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        DOM::DOMString *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_DOM_DOMString,&sipCpp))
        {
            QChar *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->characters();
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_DOMString,sipName_characters);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_DOMString_string(PyObject *, PyObject *);}
static PyObject *meth_DOM_DOMString_string(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        DOM::DOMString *sipCpp;

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

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

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_DOMString,sipName_string);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_DOMString_toInt(PyObject *, PyObject *);}
static PyObject *meth_DOM_DOMString_toInt(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        bool a0;
        DOM::DOMString *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_DOM_DOMString,&sipCpp))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->toInt(&a0);
            Py_END_ALLOW_THREADS

            return sipBuildResult(0,"(ib)",sipRes,a0);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_DOMString,sipName_toInt);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_DOMString_toFloat(PyObject *, PyObject *);}
static PyObject *meth_DOM_DOMString_toFloat(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        bool a0;
        DOM::DOMString *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_DOM_DOMString,&sipCpp))
        {
            float sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->toFloat(&a0);
            Py_END_ALLOW_THREADS

            return sipBuildResult(0,"(fb)",sipRes,a0);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_DOMString,sipName_toFloat);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_DOMString_percentage(PyObject *, PyObject *);}
static PyObject *meth_DOM_DOMString_percentage(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        int a0;
        DOM::DOMString *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_DOM_DOMString,&sipCpp))
        {
            bool sipRes;

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

            return sipBuildResult(0,"(bi)",sipRes,a0);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_DOMString,sipName_percentage);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_DOMString_number(PyObject *, PyObject *);}
static PyObject *meth_DOM_DOMString_number(PyObject *,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        float a0;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"f",&a0))
        {
            DOM::DOMString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::DOMString(DOM::DOMString::number(a0));
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_DOMString,sipName_number);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_DOMString_copy(PyObject *, PyObject *);}
static PyObject *meth_DOM_DOMString_copy(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        DOM::DOMString *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_DOM_DOMString,&sipCpp))
        {
            DOM::DOMString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::DOMString(sipCpp->copy());
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_DOMString,sipName_copy);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_DOMString_isNull(PyObject *, PyObject *);}
static PyObject *meth_DOM_DOMString_isNull(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        DOM::DOMString *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_DOM_DOMString,&sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isNull();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_DOMString,sipName_isNull);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_DOMString_isEmpty(PyObject *, PyObject *);}
static PyObject *meth_DOM_DOMString_isEmpty(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        DOM::DOMString *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_DOM_DOMString,&sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isEmpty();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_DOMString,sipName_isEmpty);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_DOMString_endsWith(PyObject *, PyObject *);}
static PyObject *meth_DOM_DOMString_endsWith(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const DOM::DOMString * a0;
        DOM::DOMString *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ9",&sipSelf,sipType_DOM_DOMString,&sipCpp,sipType_DOM_DOMString,&a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->endsWith(*a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_DOMString,sipName_endsWith);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_DOMString_startsWith(PyObject *, PyObject *);}
static PyObject *meth_DOM_DOMString_startsWith(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const DOM::DOMString * a0;
        DOM::DOMString *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ9",&sipSelf,sipType_DOM_DOMString,&sipCpp,sipType_DOM_DOMString,&a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->startsWith(*a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_DOMString,sipName_startsWith);

    return NULL;
}


extern "C" {static PyObject *slot_DOM_DOMString___getitem__(PyObject *sipSelf,PyObject *sipArg);}
static PyObject *slot_DOM_DOMString___getitem__(PyObject *sipSelf,PyObject *sipArg)
{
    DOM::DOMString *sipCpp = reinterpret_cast<DOM::DOMString *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_DOM_DOMString));

    if (!sipCpp)
        return 0;

    int sipArgsParsed = 0;

    {
        unsigned a0;

        if (sipParseArgs(&sipArgsParsed,sipArg,"1u",&a0))
        {
            QChar *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QChar((*sipCpp)[a0]);
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_DOMString,sipName___getitem__);

    return 0;
}


extern "C" {static PyObject *slot_DOM_DOMString___add__(PyObject *sipSelf,PyObject *sipArg);}
static PyObject *slot_DOM_DOMString___add__(PyObject *sipSelf,PyObject *sipArg)
{
    DOM::DOMString *sipCpp = reinterpret_cast<DOM::DOMString *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_DOM_DOMString));

    if (!sipCpp)
        return 0;

    int sipArgsParsed = 0;

    {
        const DOM::DOMString * a0;

        if (sipParseArgs(&sipArgsParsed,sipArg,"1J9",sipType_DOM_DOMString,&a0))
        {
            DOM::DOMString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::DOMString(sipCpp->DOM::DOMString::operator+(*a0));
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the argument couldn't be parsed. */
    sipBadOperatorArg(sipSelf,sipArg,concat_slot);

    return NULL;
}


extern "C" {static PyObject *slot_DOM_DOMString___iadd__(PyObject *sipSelf,PyObject *sipArg);}
static PyObject *slot_DOM_DOMString___iadd__(PyObject *sipSelf,PyObject *sipArg)
{
    DOM::DOMString *sipCpp = reinterpret_cast<DOM::DOMString *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_DOM_DOMString));

    if (!sipCpp)
        return 0;

    int sipArgsParsed = 0;

    {
        const DOM::DOMString * a0;

        if (sipParseArgs(&sipArgsParsed,sipArg,"1J9",sipType_DOM_DOMString,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->DOM::DOMString::operator+=(*a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    /* Raise an exception if the argument couldn't be parsed. */
    sipBadOperatorArg(sipSelf,sipArg,iconcat_slot);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_DOM_DOMString(void *, const sipTypeDef *);}
static void *cast_DOM_DOMString(void *ptr,const sipTypeDef *targetType)
{
    if (targetType == sipType_DOM_DOMString)
        return ptr;

    return NULL;
}


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

    delete reinterpret_cast<DOM::DOMString *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void assign_DOM_DOMString(void *, const void*);}
static void assign_DOM_DOMString(void *sipDst, const void *sipSrc)
{
    *reinterpret_cast<DOM::DOMString *>(sipDst) = *reinterpret_cast<const DOM::DOMString *>(sipSrc);
}


extern "C" {static void dealloc_DOM_DOMString(sipSimpleWrapper *);}
static void dealloc_DOM_DOMString(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_DOM_DOMString(sipSelf->u.cppPtr,0);
    }
}


extern "C" {static void *init_DOM_DOMString(sipSimpleWrapper *, PyObject *, PyObject **, int *);}
static void *init_DOM_DOMString(sipSimpleWrapper *, PyObject *sipArgs, PyObject **, int *sipArgsParsed)
{
    DOM::DOMString *sipCpp = 0;

    if (!sipCpp)
    {
        if (sipParseArgs(sipArgsParsed,sipArgs,""))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new DOM::DOMString();
            Py_END_ALLOW_THREADS
        }
    }

    if (!sipCpp)
    {
        const QChar * a0;
        uint a1;

        if (sipParseArgs(sipArgsParsed,sipArgs,"J8u",sipType_QChar,&a0,&a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new DOM::DOMString(a0,a1);
            Py_END_ALLOW_THREADS
        }
    }

    if (!sipCpp)
    {
        const QString * a0;
        int a0State = 0;

        if (sipParseArgs(sipArgsParsed,sipArgs,"J1",sipType_QString,&a0,&a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new DOM::DOMString(*a0);
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
        }
    }

    if (!sipCpp)
    {
        const char * a0;
        PyObject *a0Keep;

        if (sipParseArgs(sipArgsParsed,sipArgs,"AA",&a0Keep,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new DOM::DOMString(a0);
            Py_END_ALLOW_THREADS
            Py_DECREF(a0Keep);
        }
    }

    if (!sipCpp)
    {
        const char * a0;
        PyObject *a0Keep;
        uint a1;

        if (sipParseArgs(sipArgsParsed,sipArgs,"AAu",&a0Keep,&a0,&a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new DOM::DOMString(a0,a1);
            Py_END_ALLOW_THREADS
            Py_DECREF(a0Keep);
        }
    }

    if (!sipCpp)
    {
        const DOM::DOMString * a0;

        if (sipParseArgs(sipArgsParsed,sipArgs,"J9",sipType_DOM_DOMString,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new DOM::DOMString(*a0);
            Py_END_ALLOW_THREADS
        }
    }

    return sipCpp;
}


/* Define this type's Python slots. */
static sipPySlotDef slots_DOM_DOMString[] = {
    {(void *)slot_DOM_DOMString___getitem__, getitem_slot},
    {(void *)slot_DOM_DOMString___add__, concat_slot},
    {(void *)slot_DOM_DOMString___iadd__, iconcat_slot},
    {0, (sipPySlotType)0}
};


static PyMethodDef methods_DOM_DOMString[] = {
    {SIP_MLNAME_CAST(sipName_characters), meth_DOM_DOMString_characters, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_copy), meth_DOM_DOMString_copy, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_endsWith), meth_DOM_DOMString_endsWith, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_find), meth_DOM_DOMString_find, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_insert), meth_DOM_DOMString_insert, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isEmpty), meth_DOM_DOMString_isEmpty, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isNull), meth_DOM_DOMString_isNull, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_length), meth_DOM_DOMString_length, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_lower), meth_DOM_DOMString_lower, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_number), meth_DOM_DOMString_number, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_percentage), meth_DOM_DOMString_percentage, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_remove), meth_DOM_DOMString_remove, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_reverseFind), meth_DOM_DOMString_reverseFind, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_split), meth_DOM_DOMString_split, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_startsWith), meth_DOM_DOMString_startsWith, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_string), meth_DOM_DOMString_string, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_substring), meth_DOM_DOMString_substring, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_toFloat), meth_DOM_DOMString_toFloat, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_toInt), meth_DOM_DOMString_toInt, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_truncate), meth_DOM_DOMString_truncate, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_unicode), meth_DOM_DOMString_unicode, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_upper), meth_DOM_DOMString_upper, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef pyqt4Type_khtml_DOM_DOMString = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_DOM__DOMString,
        {0}
    },
    sipNameNr_DOMString,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    {0, 255, 0},
    0,
    slots_DOM_DOMString,
    22, methods_DOM_DOMString,
    0, 0,
    0, 0,
    init_DOM_DOMString,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_DOM_DOMString,
    release_DOM_DOMString,
    cast_DOM_DOMString,
    0,
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    0,
    0
},
    assign_DOM_DOMString,
    0,
    0,
    0
};

#line 141 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/khtml/dom_node.sip"
#include <dom_node.h>
#line 2313 "sipkhtmlpart4.cpp"

#line 58 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/khtml/dom_node.sip"
#include <dom_node.h>
#line 2317 "sipkhtmlpart4.cpp"


extern "C" {static PyObject *meth_DOM_NodeList_length(PyObject *, PyObject *);}
static PyObject *meth_DOM_NodeList_length(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        DOM::NodeList *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_DOM_NodeList,&sipCpp))
        {
            unsigned long sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->length();
            Py_END_ALLOW_THREADS

            return PyLong_FromUnsignedLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_NodeList,sipName_length);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_NodeList_item(PyObject *, PyObject *);}
static PyObject *meth_DOM_NodeList_item(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        unsigned long a0;
        DOM::NodeList *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"Bm",&sipSelf,sipType_DOM_NodeList,&sipCpp,&a0))
        {
            DOM::Node *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::Node(sipCpp->item(a0));
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_NodeList,sipName_item);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_NodeList_isNull(PyObject *, PyObject *);}
static PyObject *meth_DOM_NodeList_isNull(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        DOM::NodeList *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_DOM_NodeList,&sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isNull();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_NodeList,sipName_isNull);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_DOM_NodeList(void *, const sipTypeDef *);}
static void *cast_DOM_NodeList(void *ptr,const sipTypeDef *targetType)
{
    if (targetType == sipType_DOM_NodeList)
        return ptr;

    return NULL;
}


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

    delete reinterpret_cast<DOM::NodeList *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void assign_DOM_NodeList(void *, const void*);}
static void assign_DOM_NodeList(void *sipDst, const void *sipSrc)
{
    *reinterpret_cast<DOM::NodeList *>(sipDst) = *reinterpret_cast<const DOM::NodeList *>(sipSrc);
}


extern "C" {static void dealloc_DOM_NodeList(sipSimpleWrapper *);}
static void dealloc_DOM_NodeList(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_DOM_NodeList(sipSelf->u.cppPtr,0);
    }
}


extern "C" {static void *init_DOM_NodeList(sipSimpleWrapper *, PyObject *, PyObject **, int *);}
static void *init_DOM_NodeList(sipSimpleWrapper *, PyObject *sipArgs, PyObject **, int *sipArgsParsed)
{
    DOM::NodeList *sipCpp = 0;

    if (!sipCpp)
    {
        if (sipParseArgs(sipArgsParsed,sipArgs,""))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new DOM::NodeList();
            Py_END_ALLOW_THREADS
        }
    }

    if (!sipCpp)
    {
        const DOM::NodeList * a0;

        if (sipParseArgs(sipArgsParsed,sipArgs,"J9",sipType_DOM_NodeList,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new DOM::NodeList(*a0);
            Py_END_ALLOW_THREADS
        }
    }

    return sipCpp;
}


static PyMethodDef methods_DOM_NodeList[] = {
    {SIP_MLNAME_CAST(sipName_isNull), meth_DOM_NodeList_isNull, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_item), meth_DOM_NodeList_item, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_length), meth_DOM_NodeList_length, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef pyqt4Type_khtml_DOM_NodeList = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_DOM__NodeList,
        {0}
    },
    sipNameNr_NodeList,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    {0, 255, 0},
    0,
    0,
    3, methods_DOM_NodeList,
    0, 0,
    0, 0,
    init_DOM_NodeList,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_DOM_NodeList,
    release_DOM_NodeList,
    cast_DOM_NodeList,
    0,
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    0,
    0
},
    assign_DOM_NodeList,
    0,
    0,
    0
};

#line 32 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/khtml/dom_node.sip"
#include <dom_node.h>
#line 2527 "sipkhtmlpart4.cpp"

#line 58 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/khtml/dom_node.sip"
#include <dom_node.h>
#line 2531 "sipkhtmlpart4.cpp"
#line 32 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/khtml/dom_string.sip"
#include <dom_string.h>
#line 2534 "sipkhtmlpart4.cpp"


extern "C" {static PyObject *meth_DOM_NamedNodeMap_length(PyObject *, PyObject *);}
static PyObject *meth_DOM_NamedNodeMap_length(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        DOM::NamedNodeMap *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_DOM_NamedNodeMap,&sipCpp))
        {
            unsigned long sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->length();
            Py_END_ALLOW_THREADS

            return PyLong_FromUnsignedLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_NamedNodeMap,sipName_length);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_NamedNodeMap_getNamedItem(PyObject *, PyObject *);}
static PyObject *meth_DOM_NamedNodeMap_getNamedItem(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const DOM::DOMString * a0;
        DOM::NamedNodeMap *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ9",&sipSelf,sipType_DOM_NamedNodeMap,&sipCpp,sipType_DOM_DOMString,&a0))
        {
            DOM::Node *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::Node(sipCpp->getNamedItem(*a0));
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_NamedNodeMap,sipName_getNamedItem);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_NamedNodeMap_setNamedItem(PyObject *, PyObject *);}
static PyObject *meth_DOM_NamedNodeMap_setNamedItem(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const DOM::Node * a0;
        DOM::NamedNodeMap *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ9",&sipSelf,sipType_DOM_NamedNodeMap,&sipCpp,sipType_DOM_Node,&a0))
        {
            DOM::Node *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::Node(sipCpp->setNamedItem(*a0));
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_NamedNodeMap,sipName_setNamedItem);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_NamedNodeMap_removeNamedItem(PyObject *, PyObject *);}
static PyObject *meth_DOM_NamedNodeMap_removeNamedItem(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const DOM::DOMString * a0;
        DOM::NamedNodeMap *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ9",&sipSelf,sipType_DOM_NamedNodeMap,&sipCpp,sipType_DOM_DOMString,&a0))
        {
            DOM::Node *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::Node(sipCpp->removeNamedItem(*a0));
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_NamedNodeMap,sipName_removeNamedItem);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_NamedNodeMap_item(PyObject *, PyObject *);}
static PyObject *meth_DOM_NamedNodeMap_item(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        unsigned long a0;
        DOM::NamedNodeMap *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"Bm",&sipSelf,sipType_DOM_NamedNodeMap,&sipCpp,&a0))
        {
            DOM::Node *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::Node(sipCpp->item(a0));
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_NamedNodeMap,sipName_item);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_NamedNodeMap_getNamedItemNS(PyObject *, PyObject *);}
static PyObject *meth_DOM_NamedNodeMap_getNamedItemNS(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const DOM::DOMString * a0;
        const DOM::DOMString * a1;
        DOM::NamedNodeMap *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ9J9",&sipSelf,sipType_DOM_NamedNodeMap,&sipCpp,sipType_DOM_DOMString,&a0,sipType_DOM_DOMString,&a1))
        {
            DOM::Node *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::Node(sipCpp->getNamedItemNS(*a0,*a1));
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_NamedNodeMap,sipName_getNamedItemNS);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_NamedNodeMap_setNamedItemNS(PyObject *, PyObject *);}
static PyObject *meth_DOM_NamedNodeMap_setNamedItemNS(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const DOM::Node * a0;
        DOM::NamedNodeMap *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ9",&sipSelf,sipType_DOM_NamedNodeMap,&sipCpp,sipType_DOM_Node,&a0))
        {
            DOM::Node *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::Node(sipCpp->setNamedItemNS(*a0));
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_NamedNodeMap,sipName_setNamedItemNS);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_NamedNodeMap_removeNamedItemNS(PyObject *, PyObject *);}
static PyObject *meth_DOM_NamedNodeMap_removeNamedItemNS(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const DOM::DOMString * a0;
        const DOM::DOMString * a1;
        DOM::NamedNodeMap *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ9J9",&sipSelf,sipType_DOM_NamedNodeMap,&sipCpp,sipType_DOM_DOMString,&a0,sipType_DOM_DOMString,&a1))
        {
            DOM::Node *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::Node(sipCpp->removeNamedItemNS(*a0,*a1));
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_NamedNodeMap,sipName_removeNamedItemNS);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_NamedNodeMap_isNull(PyObject *, PyObject *);}
static PyObject *meth_DOM_NamedNodeMap_isNull(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        DOM::NamedNodeMap *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_DOM_NamedNodeMap,&sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isNull();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_NamedNodeMap,sipName_isNull);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_DOM_NamedNodeMap(void *, const sipTypeDef *);}
static void *cast_DOM_NamedNodeMap(void *ptr,const sipTypeDef *targetType)
{
    if (targetType == sipType_DOM_NamedNodeMap)
        return ptr;

    return NULL;
}


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

    delete reinterpret_cast<DOM::NamedNodeMap *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void assign_DOM_NamedNodeMap(void *, const void*);}
static void assign_DOM_NamedNodeMap(void *sipDst, const void *sipSrc)
{
    *reinterpret_cast<DOM::NamedNodeMap *>(sipDst) = *reinterpret_cast<const DOM::NamedNodeMap *>(sipSrc);
}


extern "C" {static void dealloc_DOM_NamedNodeMap(sipSimpleWrapper *);}
static void dealloc_DOM_NamedNodeMap(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_DOM_NamedNodeMap(sipSelf->u.cppPtr,0);
    }
}


extern "C" {static void *init_DOM_NamedNodeMap(sipSimpleWrapper *, PyObject *, PyObject **, int *);}
static void *init_DOM_NamedNodeMap(sipSimpleWrapper *, PyObject *sipArgs, PyObject **, int *sipArgsParsed)
{
    DOM::NamedNodeMap *sipCpp = 0;

    if (!sipCpp)
    {
        if (sipParseArgs(sipArgsParsed,sipArgs,""))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new DOM::NamedNodeMap();
            Py_END_ALLOW_THREADS
        }
    }

    if (!sipCpp)
    {
        const DOM::NamedNodeMap * a0;

        if (sipParseArgs(sipArgsParsed,sipArgs,"J9",sipType_DOM_NamedNodeMap,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new DOM::NamedNodeMap(*a0);
            Py_END_ALLOW_THREADS
        }
    }

    return sipCpp;
}


static PyMethodDef methods_DOM_NamedNodeMap[] = {
    {SIP_MLNAME_CAST(sipName_getNamedItem), meth_DOM_NamedNodeMap_getNamedItem, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_getNamedItemNS), meth_DOM_NamedNodeMap_getNamedItemNS, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isNull), meth_DOM_NamedNodeMap_isNull, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_item), meth_DOM_NamedNodeMap_item, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_length), meth_DOM_NamedNodeMap_length, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_removeNamedItem), meth_DOM_NamedNodeMap_removeNamedItem, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_removeNamedItemNS), meth_DOM_NamedNodeMap_removeNamedItemNS, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setNamedItem), meth_DOM_NamedNodeMap_setNamedItem, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setNamedItemNS), meth_DOM_NamedNodeMap_setNamedItemNS, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef pyqt4Type_khtml_DOM_NamedNodeMap = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_DOM__NamedNodeMap,
        {0}
    },
    sipNameNr_NamedNodeMap,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    {0, 255, 0},
    0,
    0,
    9, methods_DOM_NamedNodeMap,
    0, 0,
    0, 0,
    init_DOM_NamedNodeMap,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_DOM_NamedNodeMap,
    release_DOM_NamedNodeMap,
    cast_DOM_NamedNodeMap,
    0,
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    0,
    0
},
    assign_DOM_NamedNodeMap,
    0,
    0,
    0
};

#line 28 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/khtml/dom_exception.sip"
#include <dom_exception.h>
#line 2920 "sipkhtmlpart4.cpp"



/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_DOM_DOMException(void *, const sipTypeDef *);}
static void *cast_DOM_DOMException(void *ptr,const sipTypeDef *targetType)
{
    if (targetType == sipType_DOM_DOMException)
        return ptr;

    return NULL;
}


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

    delete reinterpret_cast<DOM::DOMException *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void dealloc_DOM_DOMException(sipSimpleWrapper *);}
static void dealloc_DOM_DOMException(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_DOM_DOMException(sipSelf->u.cppPtr,0);
    }
}


extern "C" {static void *init_DOM_DOMException(sipSimpleWrapper *, PyObject *, PyObject **, int *);}
static void *init_DOM_DOMException(sipSimpleWrapper *, PyObject *sipArgs, PyObject **, int *sipArgsParsed)
{
    DOM::DOMException *sipCpp = 0;

    if (!sipCpp)
    {
        unsigned short a0;

        if (sipParseArgs(sipArgsParsed,sipArgs,"t",&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new DOM::DOMException(a0);
            Py_END_ALLOW_THREADS
        }
    }

    if (!sipCpp)
    {
        const DOM::DOMException * a0;

        if (sipParseArgs(sipArgsParsed,sipArgs,"J9",sipType_DOM_DOMException,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new DOM::DOMException(*a0);
            Py_END_ALLOW_THREADS
        }
    }

    return sipCpp;
}

static sipEnumMemberDef enummembers_DOM_DOMException[] = {
    {sipName_DOMSTRING_SIZE_ERR, DOM::DOMException::DOMSTRING_SIZE_ERR, 28},
    {sipName_HIERARCHY_REQUEST_ERR, DOM::DOMException::HIERARCHY_REQUEST_ERR, 28},
    {sipName_INDEX_SIZE_ERR, DOM::DOMException::INDEX_SIZE_ERR, 28},
    {sipName_INUSE_ATTRIBUTE_ERR, DOM::DOMException::INUSE_ATTRIBUTE_ERR, 28},
    {sipName_INVALID_ACCESS_ERR, DOM::DOMException::INVALID_ACCESS_ERR, 28},
    {sipName_INVALID_CHARACTER_ERR, DOM::DOMException::INVALID_CHARACTER_ERR, 28},
    {sipName_INVALID_MODIFICATION_ERR, DOM::DOMException::INVALID_MODIFICATION_ERR, 28},
    {sipName_INVALID_STATE_ERR, DOM::DOMException::INVALID_STATE_ERR, 28},
    {sipName_NAMESPACE_ERR, DOM::DOMException::NAMESPACE_ERR, 28},
    {sipName_NOT_FOUND_ERR, DOM::DOMException::NOT_FOUND_ERR, 28},
    {sipName_NOT_SUPPORTED_ERR, DOM::DOMException::NOT_SUPPORTED_ERR, 28},
    {sipName_NO_DATA_ALLOWED_ERR, DOM::DOMException::NO_DATA_ALLOWED_ERR, 28},
    {sipName_NO_MODIFICATION_ALLOWED_ERR, DOM::DOMException::NO_MODIFICATION_ALLOWED_ERR, 28},
    {sipName_SECURITY_ERR, DOM::DOMException::SECURITY_ERR, 28},
    {sipName_SYNTAX_ERR, DOM::DOMException::SYNTAX_ERR, 28},
    {sipName_TYPE_MISMATCH_ERR, DOM::DOMException::TYPE_MISMATCH_ERR, 28},
    {sipName_VALIDATION_ERR, DOM::DOMException::VALIDATION_ERR, 28},
    {sipName_WRONG_DOCUMENT_ERR, DOM::DOMException::WRONG_DOCUMENT_ERR, 28},
};


extern "C" {static PyObject *varget_DOM_DOMException_code(void *, PyObject *);}
static PyObject *varget_DOM_DOMException_code(void *sipSelf, PyObject *)
{
    unsigned short sipVal;
    DOM::DOMException *sipCpp = reinterpret_cast<DOM::DOMException *>(sipSelf);

    sipVal = sipCpp->code;

    return PyLong_FromUnsignedLong(sipVal);
}


extern "C" {static int varset_DOM_DOMException_code(void *, PyObject *, PyObject *);}
static int varset_DOM_DOMException_code(void *sipSelf, PyObject *sipPy, PyObject *)
{
    unsigned short sipVal;
    DOM::DOMException *sipCpp = reinterpret_cast<DOM::DOMException *>(sipSelf);

    sipVal = (unsigned short)sipLong_AsUnsignedLong(sipPy);

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

    sipCpp->code = sipVal;

    return 0;
}

sipVariableDef variables_DOM_DOMException[] = {
    {sipName_code, varget_DOM_DOMException_code, varset_DOM_DOMException_code, 0},
};


pyqt4ClassTypeDef pyqt4Type_khtml_DOM_DOMException = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_DOM__DOMException,
        {0}
    },
    sipNameNr_DOMException,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    {0, 255, 0},
    0,
    0,
    0, 0,
    18, enummembers_DOM_DOMException,
    1, variables_DOM_DOMException,
    init_DOM_DOMException,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_DOM_DOMException,
    release_DOM_DOMException,
    cast_DOM_DOMException,
    0,
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    0,
    0
},
    0,
    0,
    0,
    0
};

#line 230 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/khtml/dom_element.sip"
#include <dom_element.h>
#line 3091 "sipkhtmlpart4.cpp"

#line 58 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/khtml/dom_node.sip"
#include <dom_node.h>
#line 3095 "sipkhtmlpart4.cpp"
#line 32 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/khtml/dom_string.sip"
#include <dom_string.h>
#line 3098 "sipkhtmlpart4.cpp"
#line 28 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/khtml/css_value.sip"
#include <css_value.h>
#line 3101 "sipkhtmlpart4.cpp"
#line 49 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/khtml/dom_element.sip"
#include <dom_element.h>
#line 3104 "sipkhtmlpart4.cpp"
#line 141 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/khtml/dom_node.sip"
#include <dom_node.h>
#line 3107 "sipkhtmlpart4.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qrect.sip"
#include <qrect.h>
#line 3110 "sipkhtmlpart4.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 3113 "sipkhtmlpart4.cpp"
#line 42 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/khtml/dom2_events.sip"
#include <dom2_events.h>
#line 3116 "sipkhtmlpart4.cpp"
#line 28 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/khtml/dom2_events.sip"
#include <dom2_events.h>
#line 3119 "sipkhtmlpart4.cpp"
#line 52 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/khtml/dom_doc.sip"
#include <dom_doc.h>
#line 3122 "sipkhtmlpart4.cpp"
#line 32 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/khtml/dom_node.sip"
#include <dom_node.h>
#line 3125 "sipkhtmlpart4.cpp"


extern "C" {static PyObject *meth_DOM_Element_tagName(PyObject *, PyObject *);}
static PyObject *meth_DOM_Element_tagName(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        DOM::Element *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_DOM_Element,&sipCpp))
        {
            DOM::DOMString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::DOMString(sipCpp->tagName());
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_Element,sipName_tagName);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Element_getAttribute(PyObject *, PyObject *);}
static PyObject *meth_DOM_Element_getAttribute(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const DOM::DOMString * a0;
        DOM::Element *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ9",&sipSelf,sipType_DOM_Element,&sipCpp,sipType_DOM_DOMString,&a0))
        {
            DOM::DOMString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::DOMString(sipCpp->getAttribute(*a0));
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_Element,sipName_getAttribute);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Element_setAttribute(PyObject *, PyObject *);}
static PyObject *meth_DOM_Element_setAttribute(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const DOM::DOMString * a0;
        const DOM::DOMString * a1;
        DOM::Element *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ9J9",&sipSelf,sipType_DOM_Element,&sipCpp,sipType_DOM_DOMString,&a0,sipType_DOM_DOMString,&a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setAttribute(*a0,*a1);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_Element,sipName_setAttribute);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Element_removeAttribute(PyObject *, PyObject *);}
static PyObject *meth_DOM_Element_removeAttribute(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const DOM::DOMString * a0;
        DOM::Element *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ9",&sipSelf,sipType_DOM_Element,&sipCpp,sipType_DOM_DOMString,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->removeAttribute(*a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_Element,sipName_removeAttribute);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Element_getAttributeNode(PyObject *, PyObject *);}
static PyObject *meth_DOM_Element_getAttributeNode(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const DOM::DOMString * a0;
        DOM::Element *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ9",&sipSelf,sipType_DOM_Element,&sipCpp,sipType_DOM_DOMString,&a0))
        {
            DOM::Attr *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::Attr(sipCpp->getAttributeNode(*a0));
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_Element,sipName_getAttributeNode);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Element_setAttributeNode(PyObject *, PyObject *);}
static PyObject *meth_DOM_Element_setAttributeNode(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const DOM::Attr * a0;
        DOM::Element *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ9",&sipSelf,sipType_DOM_Element,&sipCpp,sipType_DOM_Attr,&a0))
        {
            DOM::Attr *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::Attr(sipCpp->setAttributeNode(*a0));
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_Element,sipName_setAttributeNode);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Element_removeAttributeNode(PyObject *, PyObject *);}
static PyObject *meth_DOM_Element_removeAttributeNode(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const DOM::Attr * a0;
        DOM::Element *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ9",&sipSelf,sipType_DOM_Element,&sipCpp,sipType_DOM_Attr,&a0))
        {
            DOM::Attr *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::Attr(sipCpp->removeAttributeNode(*a0));
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_Element,sipName_removeAttributeNode);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Element_getElementsByTagName(PyObject *, PyObject *);}
static PyObject *meth_DOM_Element_getElementsByTagName(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const DOM::DOMString * a0;
        DOM::Element *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ9",&sipSelf,sipType_DOM_Element,&sipCpp,sipType_DOM_DOMString,&a0))
        {
            DOM::NodeList *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::NodeList(sipCpp->getElementsByTagName(*a0));
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_Element,sipName_getElementsByTagName);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Element_getElementsByTagNameNS(PyObject *, PyObject *);}
static PyObject *meth_DOM_Element_getElementsByTagNameNS(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const DOM::DOMString * a0;
        const DOM::DOMString * a1;
        DOM::Element *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ9J9",&sipSelf,sipType_DOM_Element,&sipCpp,sipType_DOM_DOMString,&a0,sipType_DOM_DOMString,&a1))
        {
            DOM::NodeList *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::NodeList(sipCpp->getElementsByTagNameNS(*a0,*a1));
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_Element,sipName_getElementsByTagNameNS);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Element_getElementsByClassName(PyObject *, PyObject *);}
static PyObject *meth_DOM_Element_getElementsByClassName(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const DOM::DOMString * a0;
        DOM::Element *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ9",&sipSelf,sipType_DOM_Element,&sipCpp,sipType_DOM_DOMString,&a0))
        {
            DOM::NodeList *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::NodeList(sipCpp->getElementsByClassName(*a0));
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_Element,sipName_getElementsByClassName);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Element_getAttributeNS(PyObject *, PyObject *);}
static PyObject *meth_DOM_Element_getAttributeNS(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const DOM::DOMString * a0;
        const DOM::DOMString * a1;
        DOM::Element *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ9J9",&sipSelf,sipType_DOM_Element,&sipCpp,sipType_DOM_DOMString,&a0,sipType_DOM_DOMString,&a1))
        {
            DOM::DOMString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::DOMString(sipCpp->getAttributeNS(*a0,*a1));
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_Element,sipName_getAttributeNS);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Element_setAttributeNS(PyObject *, PyObject *);}
static PyObject *meth_DOM_Element_setAttributeNS(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const DOM::DOMString * a0;
        const DOM::DOMString * a1;
        const DOM::DOMString * a2;
        DOM::Element *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ9J9J9",&sipSelf,sipType_DOM_Element,&sipCpp,sipType_DOM_DOMString,&a0,sipType_DOM_DOMString,&a1,sipType_DOM_DOMString,&a2))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setAttributeNS(*a0,*a1,*a2);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_Element,sipName_setAttributeNS);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Element_removeAttributeNS(PyObject *, PyObject *);}
static PyObject *meth_DOM_Element_removeAttributeNS(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const DOM::DOMString * a0;
        const DOM::DOMString * a1;
        DOM::Element *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ9J9",&sipSelf,sipType_DOM_Element,&sipCpp,sipType_DOM_DOMString,&a0,sipType_DOM_DOMString,&a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->removeAttributeNS(*a0,*a1);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_Element,sipName_removeAttributeNS);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Element_getAttributeNodeNS(PyObject *, PyObject *);}
static PyObject *meth_DOM_Element_getAttributeNodeNS(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const DOM::DOMString * a0;
        const DOM::DOMString * a1;
        DOM::Element *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ9J9",&sipSelf,sipType_DOM_Element,&sipCpp,sipType_DOM_DOMString,&a0,sipType_DOM_DOMString,&a1))
        {
            DOM::Attr *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::Attr(sipCpp->getAttributeNodeNS(*a0,*a1));
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_Element,sipName_getAttributeNodeNS);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Element_setAttributeNodeNS(PyObject *, PyObject *);}
static PyObject *meth_DOM_Element_setAttributeNodeNS(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const DOM::Attr * a0;
        DOM::Element *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ9",&sipSelf,sipType_DOM_Element,&sipCpp,sipType_DOM_Attr,&a0))
        {
            DOM::Attr *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::Attr(sipCpp->setAttributeNodeNS(*a0));
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_Element,sipName_setAttributeNodeNS);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Element_hasAttribute(PyObject *, PyObject *);}
static PyObject *meth_DOM_Element_hasAttribute(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const DOM::DOMString * a0;
        DOM::Element *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ9",&sipSelf,sipType_DOM_Element,&sipCpp,sipType_DOM_DOMString,&a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->hasAttribute(*a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_Element,sipName_hasAttribute);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Element_hasAttributeNS(PyObject *, PyObject *);}
static PyObject *meth_DOM_Element_hasAttributeNS(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const DOM::DOMString * a0;
        const DOM::DOMString * a1;
        DOM::Element *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ9J9",&sipSelf,sipType_DOM_Element,&sipCpp,sipType_DOM_DOMString,&a0,sipType_DOM_DOMString,&a1))
        {
            bool sipRes;

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

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_Element,sipName_hasAttributeNS);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Element_style(PyObject *, PyObject *);}
static PyObject *meth_DOM_Element_style(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        DOM::Element *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_DOM_Element,&sipCpp))
        {
            DOM::CSSStyleDeclaration *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::CSSStyleDeclaration(sipCpp->style());
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_Element,sipName_style);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Element_firstElementChild(PyObject *, PyObject *);}
static PyObject *meth_DOM_Element_firstElementChild(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        DOM::Element *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_DOM_Element,&sipCpp))
        {
            DOM::Element *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::Element(sipCpp->firstElementChild());
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_Element,sipName_firstElementChild);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Element_lastElementChild(PyObject *, PyObject *);}
static PyObject *meth_DOM_Element_lastElementChild(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        DOM::Element *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_DOM_Element,&sipCpp))
        {
            DOM::Element *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::Element(sipCpp->lastElementChild());
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_Element,sipName_lastElementChild);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Element_previousElementSibling(PyObject *, PyObject *);}
static PyObject *meth_DOM_Element_previousElementSibling(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        DOM::Element *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_DOM_Element,&sipCpp))
        {
            DOM::Element *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::Element(sipCpp->previousElementSibling());
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_Element,sipName_previousElementSibling);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Element_nextElementSibling(PyObject *, PyObject *);}
static PyObject *meth_DOM_Element_nextElementSibling(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        DOM::Element *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_DOM_Element,&sipCpp))
        {
            DOM::Element *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::Element(sipCpp->nextElementSibling());
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_Element,sipName_nextElementSibling);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Element_childElementCount(PyObject *, PyObject *);}
static PyObject *meth_DOM_Element_childElementCount(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        DOM::Element *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_DOM_Element,&sipCpp))
        {
            unsigned long sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->childElementCount();
            Py_END_ALLOW_THREADS

            return PyLong_FromUnsignedLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_Element,sipName_childElementCount);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Element_isHTMLElement(PyObject *, PyObject *);}
static PyObject *meth_DOM_Element_isHTMLElement(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        DOM::Element *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_DOM_Element,&sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isHTMLElement();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_Element,sipName_isHTMLElement);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Element_form(PyObject *, PyObject *);}
static PyObject *meth_DOM_Element_form(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        DOM::Element *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_DOM_Element,&sipCpp))
        {
            DOM::Element *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::Element(sipCpp->form());
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_Element,sipName_form);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Element_khtmlValidAttrName(PyObject *, PyObject *);}
static PyObject *meth_DOM_Element_khtmlValidAttrName(PyObject *,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const DOM::DOMString * a0;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"J9",sipType_DOM_DOMString,&a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = DOM::Element::khtmlValidAttrName(*a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_Element,sipName_khtmlValidAttrName);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Element_khtmlValidPrefix(PyObject *, PyObject *);}
static PyObject *meth_DOM_Element_khtmlValidPrefix(PyObject *,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const DOM::DOMString * a0;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"J9",sipType_DOM_DOMString,&a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = DOM::Element::khtmlValidPrefix(*a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_Element,sipName_khtmlValidPrefix);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Element_khtmlValidQualifiedName(PyObject *, PyObject *);}
static PyObject *meth_DOM_Element_khtmlValidQualifiedName(PyObject *,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const DOM::DOMString * a0;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"J9",sipType_DOM_DOMString,&a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = DOM::Element::khtmlValidQualifiedName(*a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_Element,sipName_khtmlValidQualifiedName);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Element_khtmlMalformedQualifiedName(PyObject *, PyObject *);}
static PyObject *meth_DOM_Element_khtmlMalformedQualifiedName(PyObject *,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const DOM::DOMString * a0;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"J9",sipType_DOM_DOMString,&a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = DOM::Element::khtmlMalformedQualifiedName(*a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_Element,sipName_khtmlMalformedQualifiedName);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Element_khtmlMalformedPrefix(PyObject *, PyObject *);}
static PyObject *meth_DOM_Element_khtmlMalformedPrefix(PyObject *,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const DOM::DOMString * a0;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"J9",sipType_DOM_DOMString,&a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = DOM::Element::khtmlMalformedPrefix(*a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_Element,sipName_khtmlMalformedPrefix);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_DOM_Element(void *, const sipTypeDef *);}
static void *cast_DOM_Element(void *ptr,const sipTypeDef *targetType)
{
    void *res;

    if (targetType == sipType_DOM_Element)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_DOM_Node)->ctd_cast((DOM::Node *)(DOM::Element *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


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

    delete reinterpret_cast<DOM::Element *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void assign_DOM_Element(void *, const void*);}
static void assign_DOM_Element(void *sipDst, const void *sipSrc)
{
    *reinterpret_cast<DOM::Element *>(sipDst) = *reinterpret_cast<const DOM::Element *>(sipSrc);
}


extern "C" {static void dealloc_DOM_Element(sipSimpleWrapper *);}
static void dealloc_DOM_Element(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_DOM_Element(sipSelf->u.cppPtr,0);
    }
}


extern "C" {static void *init_DOM_Element(sipSimpleWrapper *, PyObject *, PyObject **, int *);}
static void *init_DOM_Element(sipSimpleWrapper *, PyObject *sipArgs, PyObject **, int *sipArgsParsed)
{
    DOM::Element *sipCpp = 0;

    if (!sipCpp)
    {
        if (sipParseArgs(sipArgsParsed,sipArgs,""))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new DOM::Element();
            Py_END_ALLOW_THREADS
        }
    }

    if (!sipCpp)
    {
        const DOM::Node * a0;

        if (sipParseArgs(sipArgsParsed,sipArgs,"J9",sipType_DOM_Node,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new DOM::Element(*a0);
            Py_END_ALLOW_THREADS
        }
    }

    if (!sipCpp)
    {
        const DOM::Element * a0;

        if (sipParseArgs(sipArgsParsed,sipArgs,"J9",sipType_DOM_Element,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new DOM::Element(*a0);
            Py_END_ALLOW_THREADS
        }
    }

    return sipCpp;
}


/* Define this type's super-types. */
static sipEncodedClassDef supers_DOM_Element[] = {{109, 255, 1}};


static PyMethodDef methods_DOM_Element[] = {
    {SIP_MLNAME_CAST(sipName_childElementCount), meth_DOM_Element_childElementCount, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_firstElementChild), meth_DOM_Element_firstElementChild, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_form), meth_DOM_Element_form, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_getAttribute), meth_DOM_Element_getAttribute, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_getAttributeNS), meth_DOM_Element_getAttributeNS, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_getAttributeNode), meth_DOM_Element_getAttributeNode, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_getAttributeNodeNS), meth_DOM_Element_getAttributeNodeNS, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_getElementsByClassName), meth_DOM_Element_getElementsByClassName, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_getElementsByTagName), meth_DOM_Element_getElementsByTagName, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_getElementsByTagNameNS), meth_DOM_Element_getElementsByTagNameNS, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_hasAttribute), meth_DOM_Element_hasAttribute, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_hasAttributeNS), meth_DOM_Element_hasAttributeNS, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isHTMLElement), meth_DOM_Element_isHTMLElement, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_khtmlMalformedPrefix), meth_DOM_Element_khtmlMalformedPrefix, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_khtmlMalformedQualifiedName), meth_DOM_Element_khtmlMalformedQualifiedName, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_khtmlValidAttrName), meth_DOM_Element_khtmlValidAttrName, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_khtmlValidPrefix), meth_DOM_Element_khtmlValidPrefix, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_khtmlValidQualifiedName), meth_DOM_Element_khtmlValidQualifiedName, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_lastElementChild), meth_DOM_Element_lastElementChild, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_nextElementSibling), meth_DOM_Element_nextElementSibling, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_previousElementSibling), meth_DOM_Element_previousElementSibling, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_removeAttribute), meth_DOM_Element_removeAttribute, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_removeAttributeNS), meth_DOM_Element_removeAttributeNS, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_removeAttributeNode), meth_DOM_Element_removeAttributeNode, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setAttribute), meth_DOM_Element_setAttribute, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setAttributeNS), meth_DOM_Element_setAttributeNS, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setAttributeNode), meth_DOM_Element_setAttributeNode, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setAttributeNodeNS), meth_DOM_Element_setAttributeNodeNS, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_style), meth_DOM_Element_style, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_tagName), meth_DOM_Element_tagName, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef pyqt4Type_khtml_DOM_Element = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_DOM__Element,
        {0}
    },
    sipNameNr_Element,
    -1,
    -1,
    {0, 255, 0},
    supers_DOM_Element,
    0,
    30, methods_DOM_Element,
    0, 0,
    0, 0,
    init_DOM_Element,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_DOM_Element,
    release_DOM_Element,
    cast_DOM_Element,
    0,
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    0,
    0
},
    assign_DOM_Element,
    0,
    0,
    0
};

#line 49 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/khtml/dom_element.sip"
#include <dom_element.h>
#line 4131 "sipkhtmlpart4.cpp"

#line 58 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/khtml/dom_node.sip"
#include <dom_node.h>
#line 4135 "sipkhtmlpart4.cpp"
#line 230 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/khtml/dom_element.sip"
#include <dom_element.h>
#line 4138 "sipkhtmlpart4.cpp"
#line 32 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/khtml/dom_string.sip"
#include <dom_string.h>
#line 4141 "sipkhtmlpart4.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qrect.sip"
#include <qrect.h>
#line 4144 "sipkhtmlpart4.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 4147 "sipkhtmlpart4.cpp"
#line 42 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/khtml/dom2_events.sip"
#include <dom2_events.h>
#line 4150 "sipkhtmlpart4.cpp"
#line 28 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/khtml/dom2_events.sip"
#include <dom2_events.h>
#line 4153 "sipkhtmlpart4.cpp"
#line 52 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/khtml/dom_doc.sip"
#include <dom_doc.h>
#line 4156 "sipkhtmlpart4.cpp"
#line 32 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/khtml/dom_node.sip"
#include <dom_node.h>
#line 4159 "sipkhtmlpart4.cpp"
#line 141 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/khtml/dom_node.sip"
#include <dom_node.h>
#line 4162 "sipkhtmlpart4.cpp"


extern "C" {static PyObject *meth_DOM_Attr_name(PyObject *, PyObject *);}
static PyObject *meth_DOM_Attr_name(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        DOM::Attr *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_DOM_Attr,&sipCpp))
        {
            DOM::DOMString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::DOMString(sipCpp->name());
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_Attr,sipName_name);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Attr_specified(PyObject *, PyObject *);}
static PyObject *meth_DOM_Attr_specified(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        DOM::Attr *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_DOM_Attr,&sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->specified();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_Attr,sipName_specified);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Attr_value(PyObject *, PyObject *);}
static PyObject *meth_DOM_Attr_value(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        DOM::Attr *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_DOM_Attr,&sipCpp))
        {
            DOM::DOMString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::DOMString(sipCpp->value());
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_Attr,sipName_value);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Attr_setValue(PyObject *, PyObject *);}
static PyObject *meth_DOM_Attr_setValue(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const DOM::DOMString * a0;
        DOM::Attr *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ9",&sipSelf,sipType_DOM_Attr,&sipCpp,sipType_DOM_DOMString,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setValue(*a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_Attr,sipName_setValue);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Attr_ownerElement(PyObject *, PyObject *);}
static PyObject *meth_DOM_Attr_ownerElement(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        DOM::Attr *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_DOM_Attr,&sipCpp))
        {
            DOM::Element *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::Element(sipCpp->ownerElement());
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_Attr,sipName_ownerElement);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_DOM_Attr(void *, const sipTypeDef *);}
static void *cast_DOM_Attr(void *ptr,const sipTypeDef *targetType)
{
    void *res;

    if (targetType == sipType_DOM_Attr)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_DOM_Node)->ctd_cast((DOM::Node *)(DOM::Attr *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


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

    delete reinterpret_cast<DOM::Attr *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void assign_DOM_Attr(void *, const void*);}
static void assign_DOM_Attr(void *sipDst, const void *sipSrc)
{
    *reinterpret_cast<DOM::Attr *>(sipDst) = *reinterpret_cast<const DOM::Attr *>(sipSrc);
}


extern "C" {static void dealloc_DOM_Attr(sipSimpleWrapper *);}
static void dealloc_DOM_Attr(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_DOM_Attr(sipSelf->u.cppPtr,0);
    }
}


extern "C" {static void *init_DOM_Attr(sipSimpleWrapper *, PyObject *, PyObject **, int *);}
static void *init_DOM_Attr(sipSimpleWrapper *, PyObject *sipArgs, PyObject **, int *sipArgsParsed)
{
    DOM::Attr *sipCpp = 0;

    if (!sipCpp)
    {
        if (sipParseArgs(sipArgsParsed,sipArgs,""))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new DOM::Attr();
            Py_END_ALLOW_THREADS
        }
    }

    if (!sipCpp)
    {
        const DOM::Node * a0;

        if (sipParseArgs(sipArgsParsed,sipArgs,"J9",sipType_DOM_Node,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new DOM::Attr(*a0);
            Py_END_ALLOW_THREADS
        }
    }

    if (!sipCpp)
    {
        const DOM::Attr * a0;

        if (sipParseArgs(sipArgsParsed,sipArgs,"J9",sipType_DOM_Attr,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new DOM::Attr(*a0);
            Py_END_ALLOW_THREADS
        }
    }

    return sipCpp;
}


/* Define this type's super-types. */
static sipEncodedClassDef supers_DOM_Attr[] = {{109, 255, 1}};


static PyMethodDef methods_DOM_Attr[] = {
    {SIP_MLNAME_CAST(sipName_name), meth_DOM_Attr_name, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_ownerElement), meth_DOM_Attr_ownerElement, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setValue), meth_DOM_Attr_setValue, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_specified), meth_DOM_Attr_specified, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_value), meth_DOM_Attr_value, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef pyqt4Type_khtml_DOM_Attr = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_DOM__Attr,
        {0}
    },
    sipNameNr_Attr,
    -1,
    -1,
    {0, 255, 0},
    supers_DOM_Attr,
    0,
    5, methods_DOM_Attr,
    0, 0,
    0, 0,
    init_DOM_Attr,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_DOM_Attr,
    release_DOM_Attr,
    cast_DOM_Attr,
    0,
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    0,
    0
},
    assign_DOM_Attr,
    0,
    0,
    0
};

#line 137 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/khtml/dom_doc.sip"
#include <dom_doc.h>
#line 4448 "sipkhtmlpart4.cpp"

#line 58 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/khtml/dom_node.sip"
#include <dom_node.h>
#line 4452 "sipkhtmlpart4.cpp"
#line 32 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/khtml/dom_string.sip"
#include <dom_string.h>
#line 4455 "sipkhtmlpart4.cpp"
#line 32 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/khtml/dom_node.sip"
#include <dom_node.h>
#line 4458 "sipkhtmlpart4.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qrect.sip"
#include <qrect.h>
#line 4461 "sipkhtmlpart4.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 4464 "sipkhtmlpart4.cpp"
#line 42 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/khtml/dom2_events.sip"
#include <dom2_events.h>
#line 4467 "sipkhtmlpart4.cpp"
#line 28 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/khtml/dom2_events.sip"
#include <dom2_events.h>
#line 4470 "sipkhtmlpart4.cpp"
#line 52 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/khtml/dom_doc.sip"
#include <dom_doc.h>
#line 4473 "sipkhtmlpart4.cpp"
#line 141 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/khtml/dom_node.sip"
#include <dom_node.h>
#line 4476 "sipkhtmlpart4.cpp"


extern "C" {static PyObject *meth_DOM_DocumentType_name(PyObject *, PyObject *);}
static PyObject *meth_DOM_DocumentType_name(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        DOM::DocumentType *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_DOM_DocumentType,&sipCpp))
        {
            DOM::DOMString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::DOMString(sipCpp->name());
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_DocumentType,sipName_name);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_DocumentType_entities(PyObject *, PyObject *);}
static PyObject *meth_DOM_DocumentType_entities(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        DOM::DocumentType *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_DOM_DocumentType,&sipCpp))
        {
            DOM::NamedNodeMap *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::NamedNodeMap(sipCpp->entities());
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_DocumentType,sipName_entities);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_DocumentType_notations(PyObject *, PyObject *);}
static PyObject *meth_DOM_DocumentType_notations(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        DOM::DocumentType *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_DOM_DocumentType,&sipCpp))
        {
            DOM::NamedNodeMap *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::NamedNodeMap(sipCpp->notations());
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_DocumentType,sipName_notations);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_DocumentType_publicId(PyObject *, PyObject *);}
static PyObject *meth_DOM_DocumentType_publicId(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        DOM::DocumentType *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_DOM_DocumentType,&sipCpp))
        {
            DOM::DOMString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::DOMString(sipCpp->publicId());
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_DocumentType,sipName_publicId);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_DocumentType_systemId(PyObject *, PyObject *);}
static PyObject *meth_DOM_DocumentType_systemId(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        DOM::DocumentType *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_DOM_DocumentType,&sipCpp))
        {
            DOM::DOMString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::DOMString(sipCpp->systemId());
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_DocumentType,sipName_systemId);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_DocumentType_internalSubset(PyObject *, PyObject *);}
static PyObject *meth_DOM_DocumentType_internalSubset(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        DOM::DocumentType *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_DOM_DocumentType,&sipCpp))
        {
            DOM::DOMString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::DOMString(sipCpp->internalSubset());
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_DocumentType,sipName_internalSubset);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_DOM_DocumentType(void *, const sipTypeDef *);}
static void *cast_DOM_DocumentType(void *ptr,const sipTypeDef *targetType)
{
    void *res;

    if (targetType == sipType_DOM_DocumentType)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_DOM_Node)->ctd_cast((DOM::Node *)(DOM::DocumentType *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


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

    delete reinterpret_cast<DOM::DocumentType *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void assign_DOM_DocumentType(void *, const void*);}
static void assign_DOM_DocumentType(void *sipDst, const void *sipSrc)
{
    *reinterpret_cast<DOM::DocumentType *>(sipDst) = *reinterpret_cast<const DOM::DocumentType *>(sipSrc);
}


extern "C" {static void dealloc_DOM_DocumentType(sipSimpleWrapper *);}
static void dealloc_DOM_DocumentType(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_DOM_DocumentType(sipSelf->u.cppPtr,0);
    }
}


extern "C" {static void *init_DOM_DocumentType(sipSimpleWrapper *, PyObject *, PyObject **, int *);}
static void *init_DOM_DocumentType(sipSimpleWrapper *, PyObject *sipArgs, PyObject **, int *sipArgsParsed)
{
    DOM::DocumentType *sipCpp = 0;

    if (!sipCpp)
    {
        if (sipParseArgs(sipArgsParsed,sipArgs,""))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new DOM::DocumentType();
            Py_END_ALLOW_THREADS
        }
    }

    if (!sipCpp)
    {
        const DOM::DocumentType * a0;

        if (sipParseArgs(sipArgsParsed,sipArgs,"J9",sipType_DOM_DocumentType,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new DOM::DocumentType(*a0);
            Py_END_ALLOW_THREADS
        }
    }

    if (!sipCpp)
    {
        const DOM::Node * a0;

        if (sipParseArgs(sipArgsParsed,sipArgs,"J9",sipType_DOM_Node,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new DOM::DocumentType(*a0);
            Py_END_ALLOW_THREADS
        }
    }

    return sipCpp;
}


/* Define this type's super-types. */
static sipEncodedClassDef supers_DOM_DocumentType[] = {{109, 255, 1}};


static PyMethodDef methods_DOM_DocumentType[] = {
    {SIP_MLNAME_CAST(sipName_entities), meth_DOM_DocumentType_entities, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_internalSubset), meth_DOM_DocumentType_internalSubset, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_name), meth_DOM_DocumentType_name, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_notations), meth_DOM_DocumentType_notations, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_publicId), meth_DOM_DocumentType_publicId, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_systemId), meth_DOM_DocumentType_systemId, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef pyqt4Type_khtml_DOM_DocumentType = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_DOM__DocumentType,
        {0}
    },
    sipNameNr_DocumentType,
    -1,
    -1,
    {0, 255, 0},
    supers_DOM_DocumentType,
    0,
    6, methods_DOM_DocumentType,
    0, 0,
    0, 0,
    init_DOM_DocumentType,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_DOM_DocumentType,
    release_DOM_DocumentType,
    cast_DOM_DocumentType,
    0,
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    0,
    0
},
    assign_DOM_DocumentType,
    0,
    0,
    0
};

#line 120 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/khtml/dom_doc.sip"
#include <dom_doc.h>
#line 4790 "sipkhtmlpart4.cpp"

#line 58 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/khtml/dom_node.sip"
#include <dom_node.h>
#line 4794 "sipkhtmlpart4.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qrect.sip"
#include <qrect.h>
#line 4797 "sipkhtmlpart4.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 4800 "sipkhtmlpart4.cpp"
#line 32 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/khtml/dom_string.sip"
#include <dom_string.h>
#line 4803 "sipkhtmlpart4.cpp"
#line 42 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/khtml/dom2_events.sip"
#include <dom2_events.h>
#line 4806 "sipkhtmlpart4.cpp"
#line 28 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/khtml/dom2_events.sip"
#include <dom2_events.h>
#line 4809 "sipkhtmlpart4.cpp"
#line 52 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/khtml/dom_doc.sip"
#include <dom_doc.h>
#line 4812 "sipkhtmlpart4.cpp"
#line 32 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/khtml/dom_node.sip"
#include <dom_node.h>
#line 4815 "sipkhtmlpart4.cpp"
#line 141 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/khtml/dom_node.sip"
#include <dom_node.h>
#line 4818 "sipkhtmlpart4.cpp"


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_DOM_DocumentFragment(void *, const sipTypeDef *);}
static void *cast_DOM_DocumentFragment(void *ptr,const sipTypeDef *targetType)
{
    void *res;

    if (targetType == sipType_DOM_DocumentFragment)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_DOM_Node)->ctd_cast((DOM::Node *)(DOM::DocumentFragment *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


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

    delete reinterpret_cast<DOM::DocumentFragment *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void assign_DOM_DocumentFragment(void *, const void*);}
static void assign_DOM_DocumentFragment(void *sipDst, const void *sipSrc)
{
    *reinterpret_cast<DOM::DocumentFragment *>(sipDst) = *reinterpret_cast<const DOM::DocumentFragment *>(sipSrc);
}


extern "C" {static void dealloc_DOM_DocumentFragment(sipSimpleWrapper *);}
static void dealloc_DOM_DocumentFragment(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_DOM_DocumentFragment(sipSelf->u.cppPtr,0);
    }
}


extern "C" {static void *init_DOM_DocumentFragment(sipSimpleWrapper *, PyObject *, PyObject **, int *);}
static void *init_DOM_DocumentFragment(sipSimpleWrapper *, PyObject *sipArgs, PyObject **, int *sipArgsParsed)
{
    DOM::DocumentFragment *sipCpp = 0;

    if (!sipCpp)
    {
        if (sipParseArgs(sipArgsParsed,sipArgs,""))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new DOM::DocumentFragment();
            Py_END_ALLOW_THREADS
        }
    }

    if (!sipCpp)
    {
        const DOM::DocumentFragment * a0;

        if (sipParseArgs(sipArgsParsed,sipArgs,"J9",sipType_DOM_DocumentFragment,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new DOM::DocumentFragment(*a0);
            Py_END_ALLOW_THREADS
        }
    }

    if (!sipCpp)
    {
        const DOM::Node * a0;

        if (sipParseArgs(sipArgsParsed,sipArgs,"J9",sipType_DOM_Node,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new DOM::DocumentFragment(*a0);
            Py_END_ALLOW_THREADS
        }
    }

    return sipCpp;
}


/* Define this type's super-types. */
static sipEncodedClassDef supers_DOM_DocumentFragment[] = {{109, 255, 1}};


pyqt4ClassTypeDef pyqt4Type_khtml_DOM_DocumentFragment = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_DOM__DocumentFragment,
        {0}
    },
    sipNameNr_DocumentFragment,
    -1,
    -1,
    {0, 255, 0},
    supers_DOM_DocumentFragment,
    0,
    0, 0,
    0, 0,
    0, 0,
    init_DOM_DocumentFragment,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_DOM_DocumentFragment,
    release_DOM_DocumentFragment,
    cast_DOM_DocumentFragment,
    0,
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    0,
    0
},
    assign_DOM_DocumentFragment,
    0,
    0,
    0
};

#line 58 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/khtml/dom_node.sip"
#include <dom_node.h>
#line 4960 "sipkhtmlpart4.cpp"

#line 46 "/usr/local/share/py-sip/QtCore/qrect.sip"
#include <qrect.h>
#line 4964 "sipkhtmlpart4.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 4967 "sipkhtmlpart4.cpp"
#line 32 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/khtml/dom_string.sip"
#include <dom_string.h>
#line 4970 "sipkhtmlpart4.cpp"
#line 42 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/khtml/dom2_events.sip"
#include <dom2_events.h>
#line 4973 "sipkhtmlpart4.cpp"
#line 28 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/khtml/dom2_events.sip"
#include <dom2_events.h>
#line 4976 "sipkhtmlpart4.cpp"
#line 52 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/khtml/dom_doc.sip"
#include <dom_doc.h>
#line 4979 "sipkhtmlpart4.cpp"
#line 32 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/khtml/dom_node.sip"
#include <dom_node.h>
#line 4982 "sipkhtmlpart4.cpp"
#line 141 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/khtml/dom_node.sip"
#include <dom_node.h>
#line 4985 "sipkhtmlpart4.cpp"


extern "C" {static PyObject *meth_DOM_Node_nodeName(PyObject *, PyObject *);}
static PyObject *meth_DOM_Node_nodeName(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        DOM::Node *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_DOM_Node,&sipCpp))
        {
            DOM::DOMString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::DOMString(sipCpp->nodeName());
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_Node,sipName_nodeName);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Node_nodeValue(PyObject *, PyObject *);}
static PyObject *meth_DOM_Node_nodeValue(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        DOM::Node *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_DOM_Node,&sipCpp))
        {
            DOM::DOMString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::DOMString(sipCpp->nodeValue());
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_Node,sipName_nodeValue);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Node_setNodeValue(PyObject *, PyObject *);}
static PyObject *meth_DOM_Node_setNodeValue(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const DOM::DOMString * a0;
        DOM::Node *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ9",&sipSelf,sipType_DOM_Node,&sipCpp,sipType_DOM_DOMString,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setNodeValue(*a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_Node,sipName_setNodeValue);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Node_nodeType(PyObject *, PyObject *);}
static PyObject *meth_DOM_Node_nodeType(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        DOM::Node *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_DOM_Node,&sipCpp))
        {
            unsigned short sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->nodeType();
            Py_END_ALLOW_THREADS

            return PyLong_FromUnsignedLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_Node,sipName_nodeType);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Node_parentNode(PyObject *, PyObject *);}
static PyObject *meth_DOM_Node_parentNode(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        DOM::Node *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_DOM_Node,&sipCpp))
        {
            DOM::Node *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::Node(sipCpp->parentNode());
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_Node,sipName_parentNode);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Node_childNodes(PyObject *, PyObject *);}
static PyObject *meth_DOM_Node_childNodes(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        DOM::Node *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_DOM_Node,&sipCpp))
        {
            DOM::NodeList *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::NodeList(sipCpp->childNodes());
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_Node,sipName_childNodes);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Node_firstChild(PyObject *, PyObject *);}
static PyObject *meth_DOM_Node_firstChild(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        DOM::Node *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_DOM_Node,&sipCpp))
        {
            DOM::Node *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::Node(sipCpp->firstChild());
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_Node,sipName_firstChild);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Node_lastChild(PyObject *, PyObject *);}
static PyObject *meth_DOM_Node_lastChild(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        DOM::Node *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_DOM_Node,&sipCpp))
        {
            DOM::Node *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::Node(sipCpp->lastChild());
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_Node,sipName_lastChild);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Node_previousSibling(PyObject *, PyObject *);}
static PyObject *meth_DOM_Node_previousSibling(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        DOM::Node *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_DOM_Node,&sipCpp))
        {
            DOM::Node *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::Node(sipCpp->previousSibling());
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_Node,sipName_previousSibling);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Node_nextSibling(PyObject *, PyObject *);}
static PyObject *meth_DOM_Node_nextSibling(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        DOM::Node *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_DOM_Node,&sipCpp))
        {
            DOM::Node *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::Node(sipCpp->nextSibling());
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_Node,sipName_nextSibling);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Node_attributes(PyObject *, PyObject *);}
static PyObject *meth_DOM_Node_attributes(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        DOM::Node *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_DOM_Node,&sipCpp))
        {
            DOM::NamedNodeMap *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::NamedNodeMap(sipCpp->attributes());
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_Node,sipName_attributes);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Node_ownerDocument(PyObject *, PyObject *);}
static PyObject *meth_DOM_Node_ownerDocument(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        DOM::Node *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_DOM_Node,&sipCpp))
        {
            DOM::Document *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::Document(sipCpp->ownerDocument());
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_Node,sipName_ownerDocument);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Node_insertBefore(PyObject *, PyObject *);}
static PyObject *meth_DOM_Node_insertBefore(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const DOM::Node * a0;
        const DOM::Node * a1;
        DOM::Node *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ9J9",&sipSelf,sipType_DOM_Node,&sipCpp,sipType_DOM_Node,&a0,sipType_DOM_Node,&a1))
        {
            DOM::Node *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::Node(sipCpp->insertBefore(*a0,*a1));
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_Node,sipName_insertBefore);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Node_replaceChild(PyObject *, PyObject *);}
static PyObject *meth_DOM_Node_replaceChild(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const DOM::Node * a0;
        const DOM::Node * a1;
        DOM::Node *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ9J9",&sipSelf,sipType_DOM_Node,&sipCpp,sipType_DOM_Node,&a0,sipType_DOM_Node,&a1))
        {
            DOM::Node *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::Node(sipCpp->replaceChild(*a0,*a1));
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_Node,sipName_replaceChild);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Node_removeChild(PyObject *, PyObject *);}
static PyObject *meth_DOM_Node_removeChild(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const DOM::Node * a0;
        DOM::Node *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ9",&sipSelf,sipType_DOM_Node,&sipCpp,sipType_DOM_Node,&a0))
        {
            DOM::Node *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::Node(sipCpp->removeChild(*a0));
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_Node,sipName_removeChild);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Node_appendChild(PyObject *, PyObject *);}
static PyObject *meth_DOM_Node_appendChild(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const DOM::Node * a0;
        DOM::Node *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ9",&sipSelf,sipType_DOM_Node,&sipCpp,sipType_DOM_Node,&a0))
        {
            DOM::Node *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::Node(sipCpp->appendChild(*a0));
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_Node,sipName_appendChild);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Node_hasChildNodes(PyObject *, PyObject *);}
static PyObject *meth_DOM_Node_hasChildNodes(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        DOM::Node *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_DOM_Node,&sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->hasChildNodes();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_Node,sipName_hasChildNodes);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Node_cloneNode(PyObject *, PyObject *);}
static PyObject *meth_DOM_Node_cloneNode(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        bool a0;
        DOM::Node *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"Bb",&sipSelf,sipType_DOM_Node,&sipCpp,&a0))
        {
            DOM::Node *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::Node(sipCpp->cloneNode(a0));
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_Node,sipName_cloneNode);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Node_normalize(PyObject *, PyObject *);}
static PyObject *meth_DOM_Node_normalize(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        DOM::Node *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_DOM_Node,&sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->normalize();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_Node,sipName_normalize);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Node_isSupported(PyObject *, PyObject *);}
static PyObject *meth_DOM_Node_isSupported(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const DOM::DOMString * a0;
        const DOM::DOMString * a1;
        DOM::Node *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ9J9",&sipSelf,sipType_DOM_Node,&sipCpp,sipType_DOM_DOMString,&a0,sipType_DOM_DOMString,&a1))
        {
            bool sipRes;

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

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_Node,sipName_isSupported);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Node_namespaceURI(PyObject *, PyObject *);}
static PyObject *meth_DOM_Node_namespaceURI(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        DOM::Node *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_DOM_Node,&sipCpp))
        {
            DOM::DOMString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::DOMString(sipCpp->namespaceURI());
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_Node,sipName_namespaceURI);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Node_prefix(PyObject *, PyObject *);}
static PyObject *meth_DOM_Node_prefix(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        DOM::Node *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_DOM_Node,&sipCpp))
        {
            DOM::DOMString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::DOMString(sipCpp->prefix());
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_Node,sipName_prefix);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Node_setPrefix(PyObject *, PyObject *);}
static PyObject *meth_DOM_Node_setPrefix(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const DOM::DOMString * a0;
        DOM::Node *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ9",&sipSelf,sipType_DOM_Node,&sipCpp,sipType_DOM_DOMString,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setPrefix(*a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_Node,sipName_setPrefix);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Node_localName(PyObject *, PyObject *);}
static PyObject *meth_DOM_Node_localName(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        DOM::Node *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_DOM_Node,&sipCpp))
        {
            DOM::DOMString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::DOMString(sipCpp->localName());
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_Node,sipName_localName);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Node_hasAttributes(PyObject *, PyObject *);}
static PyObject *meth_DOM_Node_hasAttributes(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        DOM::Node *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_DOM_Node,&sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->hasAttributes();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_Node,sipName_hasAttributes);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Node_addEventListener(PyObject *, PyObject *);}
static PyObject *meth_DOM_Node_addEventListener(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const DOM::DOMString * a0;
        DOM::EventListener * a1;
        bool a2;
        DOM::Node *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ9J8b",&sipSelf,sipType_DOM_Node,&sipCpp,sipType_DOM_DOMString,&a0,sipType_DOM_EventListener,&a1,&a2))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->addEventListener(*a0,a1,a2);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_Node,sipName_addEventListener);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Node_removeEventListener(PyObject *, PyObject *);}
static PyObject *meth_DOM_Node_removeEventListener(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const DOM::DOMString * a0;
        DOM::EventListener * a1;
        bool a2;
        DOM::Node *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ9J8b",&sipSelf,sipType_DOM_Node,&sipCpp,sipType_DOM_DOMString,&a0,sipType_DOM_EventListener,&a1,&a2))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->removeEventListener(*a0,a1,a2);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_Node,sipName_removeEventListener);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Node_dispatchEvent(PyObject *, PyObject *);}
static PyObject *meth_DOM_Node_dispatchEvent(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const DOM::Event * a0;
        DOM::Node *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ9",&sipSelf,sipType_DOM_Node,&sipCpp,sipType_DOM_Event,&a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->dispatchEvent(*a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_Node,sipName_dispatchEvent);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Node_textContent(PyObject *, PyObject *);}
static PyObject *meth_DOM_Node_textContent(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        DOM::Node *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_DOM_Node,&sipCpp))
        {
            DOM::DOMString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::DOMString(sipCpp->textContent());
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_Node,sipName_textContent);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Node_setTextContent(PyObject *, PyObject *);}
static PyObject *meth_DOM_Node_setTextContent(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const DOM::DOMString * a0;
        DOM::Node *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ9",&sipSelf,sipType_DOM_Node,&sipCpp,sipType_DOM_DOMString,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setTextContent(*a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_Node,sipName_setTextContent);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Node_compareDocumentPosition(PyObject *, PyObject *);}
static PyObject *meth_DOM_Node_compareDocumentPosition(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const DOM::Node * a0;
        DOM::Node *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ9",&sipSelf,sipType_DOM_Node,&sipCpp,sipType_DOM_Node,&a0))
        {
            unsigned sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->compareDocumentPosition(*a0);
            Py_END_ALLOW_THREADS

            return PyLong_FromUnsignedLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_Node,sipName_compareDocumentPosition);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Node_elementId(PyObject *, PyObject *);}
static PyObject *meth_DOM_Node_elementId(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        DOM::Node *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_DOM_Node,&sipCpp))
        {
            quint32 sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->elementId();
            Py_END_ALLOW_THREADS

            return PyLong_FromUnsignedLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_Node,sipName_elementId);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Node_isNull(PyObject *, PyObject *);}
static PyObject *meth_DOM_Node_isNull(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        DOM::Node *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_DOM_Node,&sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isNull();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_Node,sipName_isNull);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Node_index(PyObject *, PyObject *);}
static PyObject *meth_DOM_Node_index(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        DOM::Node *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_DOM_Node,&sipCpp))
        {
            unsigned long sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->index();
            Py_END_ALLOW_THREADS

            return PyLong_FromUnsignedLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_Node,sipName_index);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Node_toHTML(PyObject *, PyObject *);}
static PyObject *meth_DOM_Node_toHTML(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        DOM::Node *sipCpp;

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

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

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_Node,sipName_toHTML);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Node_applyChanges(PyObject *, PyObject *);}
static PyObject *meth_DOM_Node_applyChanges(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        DOM::Node *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_DOM_Node,&sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->applyChanges();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_Node,sipName_applyChanges);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Node_getCursor(PyObject *, PyObject *);}
static PyObject *meth_DOM_Node_getCursor(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        int a0;
        int a1;
        int a2;
        int a3;
        DOM::Node *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"Bi",&sipSelf,sipType_DOM_Node,&sipCpp,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->getCursor(a0,a1,a2,a3);
            Py_END_ALLOW_THREADS

            return sipBuildResult(0,"(iii)",a1,a2,a3);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_Node,sipName_getCursor);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Node_getRect(PyObject *, PyObject *);}
static PyObject *meth_DOM_Node_getRect(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        DOM::Node *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_DOM_Node,&sipCpp))
        {
            QRect *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QRect(sipCpp->getRect());
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_Node,sipName_getRect);

    return NULL;
}


extern "C" {static PyObject *slot_DOM_Node___ne__(PyObject *sipSelf,PyObject *sipArg);}
static PyObject *slot_DOM_Node___ne__(PyObject *sipSelf,PyObject *sipArg)
{
    DOM::Node *sipCpp = reinterpret_cast<DOM::Node *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_DOM_Node));

    if (!sipCpp)
        return 0;

    int sipArgsParsed = 0;

    {
        const DOM::Node * a0;

        if (sipParseArgs(&sipArgsParsed,sipArg,"1J9",sipType_DOM_Node,&a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->DOM::Node::operator!=(*a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    return sipPySlotExtend(&sipModuleAPI_khtml,ne_slot,sipType_DOM_Node,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_DOM_Node___eq__(PyObject *sipSelf,PyObject *sipArg);}
static PyObject *slot_DOM_Node___eq__(PyObject *sipSelf,PyObject *sipArg)
{
    DOM::Node *sipCpp = reinterpret_cast<DOM::Node *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_DOM_Node));

    if (!sipCpp)
        return 0;

    int sipArgsParsed = 0;

    {
        const DOM::Node * a0;

        if (sipParseArgs(&sipArgsParsed,sipArg,"1J9",sipType_DOM_Node,&a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->DOM::Node::operator==(*a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    return sipPySlotExtend(&sipModuleAPI_khtml,eq_slot,sipType_DOM_Node,sipSelf,sipArg);
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_DOM_Node(void *, const sipTypeDef *);}
static void *cast_DOM_Node(void *ptr,const sipTypeDef *targetType)
{
    if (targetType == sipType_DOM_Node)
        return ptr;

    return NULL;
}


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

    delete reinterpret_cast<DOM::Node *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void assign_DOM_Node(void *, const void*);}
static void assign_DOM_Node(void *sipDst, const void *sipSrc)
{
    *reinterpret_cast<DOM::Node *>(sipDst) = *reinterpret_cast<const DOM::Node *>(sipSrc);
}


extern "C" {static void dealloc_DOM_Node(sipSimpleWrapper *);}
static void dealloc_DOM_Node(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_DOM_Node(sipSelf->u.cppPtr,0);
    }
}


extern "C" {static void *init_DOM_Node(sipSimpleWrapper *, PyObject *, PyObject **, int *);}
static void *init_DOM_Node(sipSimpleWrapper *, PyObject *sipArgs, PyObject **, int *sipArgsParsed)
{
    DOM::Node *sipCpp = 0;

    if (!sipCpp)
    {
        if (sipParseArgs(sipArgsParsed,sipArgs,""))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new DOM::Node();
            Py_END_ALLOW_THREADS
        }
    }

    if (!sipCpp)
    {
        const DOM::Node * a0;

        if (sipParseArgs(sipArgsParsed,sipArgs,"J9",sipType_DOM_Node,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new DOM::Node(*a0);
            Py_END_ALLOW_THREADS
        }
    }

    return sipCpp;
}


/* Define this type's Python slots. */
static sipPySlotDef slots_DOM_Node[] = {
    {(void *)slot_DOM_Node___ne__, ne_slot},
    {(void *)slot_DOM_Node___eq__, eq_slot},
    {0, (sipPySlotType)0}
};


static PyMethodDef methods_DOM_Node[] = {
    {SIP_MLNAME_CAST(sipName_addEventListener), meth_DOM_Node_addEventListener, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_appendChild), meth_DOM_Node_appendChild, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_applyChanges), meth_DOM_Node_applyChanges, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_attributes), meth_DOM_Node_attributes, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_childNodes), meth_DOM_Node_childNodes, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_cloneNode), meth_DOM_Node_cloneNode, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_compareDocumentPosition), meth_DOM_Node_compareDocumentPosition, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_dispatchEvent), meth_DOM_Node_dispatchEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_elementId), meth_DOM_Node_elementId, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_firstChild), meth_DOM_Node_firstChild, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_getCursor), meth_DOM_Node_getCursor, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_getRect), meth_DOM_Node_getRect, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_hasAttributes), meth_DOM_Node_hasAttributes, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_hasChildNodes), meth_DOM_Node_hasChildNodes, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_index), meth_DOM_Node_index, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_insertBefore), meth_DOM_Node_insertBefore, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isNull), meth_DOM_Node_isNull, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isSupported), meth_DOM_Node_isSupported, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_lastChild), meth_DOM_Node_lastChild, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_localName), meth_DOM_Node_localName, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_namespaceURI), meth_DOM_Node_namespaceURI, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_nextSibling), meth_DOM_Node_nextSibling, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_nodeName), meth_DOM_Node_nodeName, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_nodeType), meth_DOM_Node_nodeType, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_nodeValue), meth_DOM_Node_nodeValue, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_normalize), meth_DOM_Node_normalize, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_ownerDocument), meth_DOM_Node_ownerDocument, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_parentNode), meth_DOM_Node_parentNode, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_prefix), meth_DOM_Node_prefix, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_previousSibling), meth_DOM_Node_previousSibling, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_removeChild), meth_DOM_Node_removeChild, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_removeEventListener), meth_DOM_Node_removeEventListener, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_replaceChild), meth_DOM_Node_replaceChild, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setNodeValue), meth_DOM_Node_setNodeValue, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setPrefix), meth_DOM_Node_setPrefix, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setTextContent), meth_DOM_Node_setTextContent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_textContent), meth_DOM_Node_textContent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_toHTML), meth_DOM_Node_toHTML, METH_VARARGS, NULL}
};

static sipEnumMemberDef enummembers_DOM_Node[] = {
    {sipName_ATTRIBUTE_NODE, DOM::Node::ATTRIBUTE_NODE, 111},
    {sipName_CDATA_SECTION_NODE, DOM::Node::CDATA_SECTION_NODE, 111},
    {sipName_COMMENT_NODE, DOM::Node::COMMENT_NODE, 111},
    {sipName_DOCUMENT_FRAGMENT_NODE, DOM::Node::DOCUMENT_FRAGMENT_NODE, 111},
    {sipName_DOCUMENT_NODE, DOM::Node::DOCUMENT_NODE, 111},
    {sipName_DOCUMENT_POSITION_CONTAINED_BY, DOM::Node::DOCUMENT_POSITION_CONTAINED_BY, 110},
    {sipName_DOCUMENT_POSITION_CONTAINS, DOM::Node::DOCUMENT_POSITION_CONTAINS, 110},
    {sipName_DOCUMENT_POSITION_DISCONNECTED, DOM::Node::DOCUMENT_POSITION_DISCONNECTED, 110},
    {sipName_DOCUMENT_POSITION_FOLLOWING, DOM::Node::DOCUMENT_POSITION_FOLLOWING, 110},
    {sipName_DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, DOM::Node::DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, 110},
    {sipName_DOCUMENT_POSITION_PRECEDING, DOM::Node::DOCUMENT_POSITION_PRECEDING, 110},
    {sipName_DOCUMENT_TYPE_NODE, DOM::Node::DOCUMENT_TYPE_NODE, 111},
    {sipName_ELEMENT_NODE, DOM::Node::ELEMENT_NODE, 111},
    {sipName_ENTITY_NODE, DOM::Node::ENTITY_NODE, 111},
    {sipName_ENTITY_REFERENCE_NODE, DOM::Node::ENTITY_REFERENCE_NODE, 111},
    {sipName_NOTATION_NODE, DOM::Node::NOTATION_NODE, 111},
    {sipName_PROCESSING_INSTRUCTION_NODE, DOM::Node::PROCESSING_INSTRUCTION_NODE, 111},
    {sipName_TEXT_NODE, DOM::Node::TEXT_NODE, 111},
};


pyqt4ClassTypeDef pyqt4Type_khtml_DOM_Node = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_DOM__Node,
        {0}
    },
    sipNameNr_Node,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    {0, 255, 0},
    0,
    slots_DOM_Node,
    38, methods_DOM_Node,
    18, enummembers_DOM_Node,
    0, 0,
    init_DOM_Node,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_DOM_Node,
    release_DOM_Node,
    cast_DOM_Node,
    0,
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    0,
    0
},
    assign_DOM_Node,
    0,
    0,
    0
};

#line 52 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/khtml/dom_doc.sip"
#include <dom_doc.h>
#line 6276 "sipkhtmlpart4.cpp"

#line 58 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/khtml/dom_node.sip"
#include <dom_node.h>
#line 6280 "sipkhtmlpart4.cpp"
#line 32 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/khtml/dom_string.sip"
#include <dom_string.h>
#line 6283 "sipkhtmlpart4.cpp"
#line 28 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/khtml/css_value.sip"
#include <css_value.h>
#line 6286 "sipkhtmlpart4.cpp"
#line 230 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/khtml/dom_element.sip"
#include <dom_element.h>
#line 6289 "sipkhtmlpart4.cpp"
#line 32 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/khtml/khtmlview.sip"
#include <khtmlview.h>
#line 6292 "sipkhtmlpart4.cpp"
#line 32 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/khtml/css_stylesheet.sip"
#include <css_stylesheet.h>
#line 6295 "sipkhtmlpart4.cpp"
#line 101 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/khtml/css_stylesheet.sip"
#include <css_stylesheet.h>
#line 6298 "sipkhtmlpart4.cpp"
#line 28 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/khtml/dom2_views.sip"
#include <dom2_views.h>
#line 6301 "sipkhtmlpart4.cpp"
#line 42 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/khtml/dom2_events.sip"
#include <dom2_events.h>
#line 6304 "sipkhtmlpart4.cpp"
#line 114 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/khtml/dom2_traversal.sip"
#include <dom2_traversal.h>
#line 6307 "sipkhtmlpart4.cpp"
#line 53 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/khtml/dom2_traversal.sip"
#include <dom2_traversal.h>
#line 6310 "sipkhtmlpart4.cpp"
#line 28 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/khtml/dom2_traversal.sip"
#include <dom2_traversal.h>
#line 6313 "sipkhtmlpart4.cpp"
#line 51 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/khtml/dom2_range.sip"
#include <dom2_range.h>
#line 6316 "sipkhtmlpart4.cpp"
#line 141 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/khtml/dom_node.sip"
#include <dom_node.h>
#line 6319 "sipkhtmlpart4.cpp"
#line 65 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/khtml/dom_xml.sip"
#include <dom_xml.h>
#line 6322 "sipkhtmlpart4.cpp"
#line 49 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/khtml/dom_element.sip"
#include <dom_element.h>
#line 6325 "sipkhtmlpart4.cpp"
#line 101 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/khtml/dom_xml.sip"
#include <dom_xml.h>
#line 6328 "sipkhtmlpart4.cpp"
#line 28 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/khtml/dom_xml.sip"
#include <dom_xml.h>
#line 6331 "sipkhtmlpart4.cpp"
#line 53 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/khtml/dom_text.sip"
#include <dom_text.h>
#line 6334 "sipkhtmlpart4.cpp"
#line 70 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/khtml/dom_text.sip"
#include <dom_text.h>
#line 6337 "sipkhtmlpart4.cpp"
#line 120 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/khtml/dom_doc.sip"
#include <dom_doc.h>
#line 6340 "sipkhtmlpart4.cpp"
#line 28 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/khtml/dom_doc.sip"
#include <dom_doc.h>
#line 6343 "sipkhtmlpart4.cpp"
#line 137 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/khtml/dom_doc.sip"
#include <dom_doc.h>
#line 6346 "sipkhtmlpart4.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qrect.sip"
#include <qrect.h>
#line 6349 "sipkhtmlpart4.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 6352 "sipkhtmlpart4.cpp"
#line 28 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/khtml/dom2_events.sip"
#include <dom2_events.h>
#line 6355 "sipkhtmlpart4.cpp"
#line 32 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/khtml/dom_node.sip"
#include <dom_node.h>
#line 6358 "sipkhtmlpart4.cpp"


extern "C" {static PyObject *meth_DOM_Document_doctype(PyObject *, PyObject *);}
static PyObject *meth_DOM_Document_doctype(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        DOM::Document *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_DOM_Document,&sipCpp))
        {
            DOM::DocumentType *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::DocumentType(sipCpp->doctype());
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_Document,sipName_doctype);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Document_implementation(PyObject *, PyObject *);}
static PyObject *meth_DOM_Document_implementation(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        DOM::Document *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_DOM_Document,&sipCpp))
        {
            DOM::DOMImplementation *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::DOMImplementation(sipCpp->implementation());
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_Document,sipName_implementation);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Document_documentElement(PyObject *, PyObject *);}
static PyObject *meth_DOM_Document_documentElement(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        DOM::Document *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_DOM_Document,&sipCpp))
        {
            DOM::Element *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::Element(sipCpp->documentElement());
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_Document,sipName_documentElement);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Document_createElement(PyObject *, PyObject *);}
static PyObject *meth_DOM_Document_createElement(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const DOM::DOMString * a0;
        DOM::Document *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ9",&sipSelf,sipType_DOM_Document,&sipCpp,sipType_DOM_DOMString,&a0))
        {
            DOM::Element *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::Element(sipCpp->createElement(*a0));
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_Document,sipName_createElement);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Document_createElementNS(PyObject *, PyObject *);}
static PyObject *meth_DOM_Document_createElementNS(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const DOM::DOMString * a0;
        const DOM::DOMString * a1;
        DOM::Document *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ9J9",&sipSelf,sipType_DOM_Document,&sipCpp,sipType_DOM_DOMString,&a0,sipType_DOM_DOMString,&a1))
        {
            DOM::Element *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::Element(sipCpp->createElementNS(*a0,*a1));
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_Document,sipName_createElementNS);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Document_createDocumentFragment(PyObject *, PyObject *);}
static PyObject *meth_DOM_Document_createDocumentFragment(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        DOM::Document *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_DOM_Document,&sipCpp))
        {
            DOM::DocumentFragment *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::DocumentFragment(sipCpp->createDocumentFragment());
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_Document,sipName_createDocumentFragment);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Document_createTextNode(PyObject *, PyObject *);}
static PyObject *meth_DOM_Document_createTextNode(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const DOM::DOMString * a0;
        DOM::Document *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ9",&sipSelf,sipType_DOM_Document,&sipCpp,sipType_DOM_DOMString,&a0))
        {
            DOM::Text *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::Text(sipCpp->createTextNode(*a0));
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_Document,sipName_createTextNode);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Document_createComment(PyObject *, PyObject *);}
static PyObject *meth_DOM_Document_createComment(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const DOM::DOMString * a0;
        DOM::Document *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ9",&sipSelf,sipType_DOM_Document,&sipCpp,sipType_DOM_DOMString,&a0))
        {
            DOM::Comment *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::Comment(sipCpp->createComment(*a0));
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_Document,sipName_createComment);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Document_createCDATASection(PyObject *, PyObject *);}
static PyObject *meth_DOM_Document_createCDATASection(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const DOM::DOMString * a0;
        DOM::Document *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ9",&sipSelf,sipType_DOM_Document,&sipCpp,sipType_DOM_DOMString,&a0))
        {
            DOM::CDATASection *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::CDATASection(sipCpp->createCDATASection(*a0));
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_Document,sipName_createCDATASection);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Document_createProcessingInstruction(PyObject *, PyObject *);}
static PyObject *meth_DOM_Document_createProcessingInstruction(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const DOM::DOMString * a0;
        const DOM::DOMString * a1;
        DOM::Document *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ9J9",&sipSelf,sipType_DOM_Document,&sipCpp,sipType_DOM_DOMString,&a0,sipType_DOM_DOMString,&a1))
        {
            DOM::ProcessingInstruction *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::ProcessingInstruction(sipCpp->createProcessingInstruction(*a0,*a1));
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_Document,sipName_createProcessingInstruction);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Document_createAttribute(PyObject *, PyObject *);}
static PyObject *meth_DOM_Document_createAttribute(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const DOM::DOMString * a0;
        DOM::Document *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ9",&sipSelf,sipType_DOM_Document,&sipCpp,sipType_DOM_DOMString,&a0))
        {
            DOM::Attr *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::Attr(sipCpp->createAttribute(*a0));
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_Document,sipName_createAttribute);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Document_createAttributeNS(PyObject *, PyObject *);}
static PyObject *meth_DOM_Document_createAttributeNS(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const DOM::DOMString * a0;
        const DOM::DOMString * a1;
        DOM::Document *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ9J9",&sipSelf,sipType_DOM_Document,&sipCpp,sipType_DOM_DOMString,&a0,sipType_DOM_DOMString,&a1))
        {
            DOM::Attr *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::Attr(sipCpp->createAttributeNS(*a0,*a1));
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_Document,sipName_createAttributeNS);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Document_createEntityReference(PyObject *, PyObject *);}
static PyObject *meth_DOM_Document_createEntityReference(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const DOM::DOMString * a0;
        DOM::Document *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ9",&sipSelf,sipType_DOM_Document,&sipCpp,sipType_DOM_DOMString,&a0))
        {
            DOM::EntityReference *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::EntityReference(sipCpp->createEntityReference(*a0));
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_Document,sipName_createEntityReference);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Document_getElementById(PyObject *, PyObject *);}
static PyObject *meth_DOM_Document_getElementById(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const DOM::DOMString * a0;
        DOM::Document *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ9",&sipSelf,sipType_DOM_Document,&sipCpp,sipType_DOM_DOMString,&a0))
        {
            DOM::Element *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::Element(sipCpp->getElementById(*a0));
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_Document,sipName_getElementById);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Document_getElementsByTagName(PyObject *, PyObject *);}
static PyObject *meth_DOM_Document_getElementsByTagName(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const DOM::DOMString * a0;
        DOM::Document *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ9",&sipSelf,sipType_DOM_Document,&sipCpp,sipType_DOM_DOMString,&a0))
        {
            DOM::NodeList *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::NodeList(sipCpp->getElementsByTagName(*a0));
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_Document,sipName_getElementsByTagName);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Document_getElementsByTagNameNS(PyObject *, PyObject *);}
static PyObject *meth_DOM_Document_getElementsByTagNameNS(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const DOM::DOMString * a0;
        const DOM::DOMString * a1;
        DOM::Document *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ9J9",&sipSelf,sipType_DOM_Document,&sipCpp,sipType_DOM_DOMString,&a0,sipType_DOM_DOMString,&a1))
        {
            DOM::NodeList *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::NodeList(sipCpp->getElementsByTagNameNS(*a0,*a1));
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_Document,sipName_getElementsByTagNameNS);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Document_getElementsByClassName(PyObject *, PyObject *);}
static PyObject *meth_DOM_Document_getElementsByClassName(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const DOM::DOMString * a0;
        DOM::Document *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ9",&sipSelf,sipType_DOM_Document,&sipCpp,sipType_DOM_DOMString,&a0))
        {
            DOM::NodeList *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::NodeList(sipCpp->getElementsByClassName(*a0));
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_Document,sipName_getElementsByClassName);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Document_importNode(PyObject *, PyObject *);}
static PyObject *meth_DOM_Document_importNode(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const DOM::Node * a0;
        bool a1;
        DOM::Document *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ9b",&sipSelf,sipType_DOM_Document,&sipCpp,sipType_DOM_Node,&a0,&a1))
        {
            DOM::Node *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::Node(sipCpp->importNode(*a0,a1));
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_Document,sipName_importNode);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Document_isHTMLDocument(PyObject *, PyObject *);}
static PyObject *meth_DOM_Document_isHTMLDocument(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        DOM::Document *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_DOM_Document,&sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isHTMLDocument();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_Document,sipName_isHTMLDocument);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Document_createRange(PyObject *, PyObject *);}
static PyObject *meth_DOM_Document_createRange(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        DOM::Document *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_DOM_Document,&sipCpp))
        {
            DOM::Range *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::Range(sipCpp->createRange());
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_Document,sipName_createRange);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Document_createNodeIterator(PyObject *, PyObject *);}
static PyObject *meth_DOM_Document_createNodeIterator(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        DOM::Node * a0;
        unsigned long a1;
        DOM::NodeFilter * a2;
        bool a3;
        DOM::Document *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ9mJ9b",&sipSelf,sipType_DOM_Document,&sipCpp,sipType_DOM_Node,&a0,&a1,sipType_DOM_NodeFilter,&a2,&a3))
        {
            DOM::NodeIterator *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::NodeIterator(sipCpp->createNodeIterator(*a0,a1,*a2,a3));
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_Document,sipName_createNodeIterator);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Document_createTreeWalker(PyObject *, PyObject *);}
static PyObject *meth_DOM_Document_createTreeWalker(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        DOM::Node * a0;
        unsigned long a1;
        DOM::NodeFilter * a2;
        bool a3;
        DOM::Document *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ9mJ9b",&sipSelf,sipType_DOM_Document,&sipCpp,sipType_DOM_Node,&a0,&a1,sipType_DOM_NodeFilter,&a2,&a3))
        {
            DOM::TreeWalker *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::TreeWalker(sipCpp->createTreeWalker(*a0,a1,*a2,a3));
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_Document,sipName_createTreeWalker);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Document_createEvent(PyObject *, PyObject *);}
static PyObject *meth_DOM_Document_createEvent(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const DOM::DOMString * a0;
        DOM::Document *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ9",&sipSelf,sipType_DOM_Document,&sipCpp,sipType_DOM_DOMString,&a0))
        {
            DOM::Event *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::Event(sipCpp->createEvent(*a0));
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_Document,sipName_createEvent);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Document_defaultView(PyObject *, PyObject *);}
static PyObject *meth_DOM_Document_defaultView(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        DOM::Document *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_DOM_Document,&sipCpp))
        {
            DOM::AbstractView *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::AbstractView(sipCpp->defaultView());
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_Document,sipName_defaultView);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Document_styleSheets(PyObject *, PyObject *);}
static PyObject *meth_DOM_Document_styleSheets(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        DOM::Document *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_DOM_Document,&sipCpp))
        {
            DOM::StyleSheetList *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::StyleSheetList(sipCpp->styleSheets());
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_Document,sipName_styleSheets);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Document_preferredStylesheetSet(PyObject *, PyObject *);}
static PyObject *meth_DOM_Document_preferredStylesheetSet(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        DOM::Document *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_DOM_Document,&sipCpp))
        {
            DOM::DOMString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::DOMString(sipCpp->preferredStylesheetSet());
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_Document,sipName_preferredStylesheetSet);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Document_selectedStylesheetSet(PyObject *, PyObject *);}
static PyObject *meth_DOM_Document_selectedStylesheetSet(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        DOM::Document *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_DOM_Document,&sipCpp))
        {
            DOM::DOMString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::DOMString(sipCpp->selectedStylesheetSet());
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_Document,sipName_selectedStylesheetSet);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Document_setSelectedStylesheetSet(PyObject *, PyObject *);}
static PyObject *meth_DOM_Document_setSelectedStylesheetSet(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const DOM::DOMString * a0;
        DOM::Document *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ9",&sipSelf,sipType_DOM_Document,&sipCpp,sipType_DOM_DOMString,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setSelectedStylesheetSet(*a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_Document,sipName_setSelectedStylesheetSet);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Document_addStyleSheet(PyObject *, PyObject *);}
static PyObject *meth_DOM_Document_addStyleSheet(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const DOM::StyleSheet * a0;
        DOM::Document *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ9",&sipSelf,sipType_DOM_Document,&sipCpp,sipType_DOM_StyleSheet,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->addStyleSheet(*a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_Document,sipName_addStyleSheet);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Document_removeStyleSheet(PyObject *, PyObject *);}
static PyObject *meth_DOM_Document_removeStyleSheet(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const DOM::StyleSheet * a0;
        DOM::Document *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ9",&sipSelf,sipType_DOM_Document,&sipCpp,sipType_DOM_StyleSheet,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->removeStyleSheet(*a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_Document,sipName_removeStyleSheet);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Document_view(PyObject *, PyObject *);}
static PyObject *meth_DOM_Document_view(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        DOM::Document *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_DOM_Document,&sipCpp))
        {
            KHTMLView *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->view();
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_Document,sipName_view);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Document_getOverrideStyle(PyObject *, PyObject *);}
static PyObject *meth_DOM_Document_getOverrideStyle(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const DOM::Element * a0;
        const DOM::DOMString * a1;
        DOM::Document *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ9J9",&sipSelf,sipType_DOM_Document,&sipCpp,sipType_DOM_Element,&a0,sipType_DOM_DOMString,&a1))
        {
            DOM::CSSStyleDeclaration *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::CSSStyleDeclaration(sipCpp->getOverrideStyle(*a0,*a1));
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_Document,sipName_getOverrideStyle);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Document_async(PyObject *, PyObject *);}
static PyObject *meth_DOM_Document_async(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        DOM::Document *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_DOM_Document,&sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->async();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_Document,sipName_async);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Document_setAsync(PyObject *, PyObject *);}
static PyObject *meth_DOM_Document_setAsync(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        bool a0;
        DOM::Document *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"Bb",&sipSelf,sipType_DOM_Document,&sipCpp,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setAsync(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_Document,sipName_setAsync);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Document_abort(PyObject *, PyObject *);}
static PyObject *meth_DOM_Document_abort(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        DOM::Document *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_DOM_Document,&sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->abort();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_Document,sipName_abort);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Document_load(PyObject *, PyObject *);}
static PyObject *meth_DOM_Document_load(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const DOM::DOMString * a0;
        DOM::Document *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ9",&sipSelf,sipType_DOM_Document,&sipCpp,sipType_DOM_DOMString,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->load(*a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_Document,sipName_load);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Document_loadXML(PyObject *, PyObject *);}
static PyObject *meth_DOM_Document_loadXML(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const DOM::DOMString * a0;
        DOM::Document *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ9",&sipSelf,sipType_DOM_Document,&sipCpp,sipType_DOM_DOMString,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->loadXML(*a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_Document,sipName_loadXML);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Document_designMode(PyObject *, PyObject *);}
static PyObject *meth_DOM_Document_designMode(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        DOM::Document *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_DOM_Document,&sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->designMode();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_Document,sipName_designMode);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Document_setDesignMode(PyObject *, PyObject *);}
static PyObject *meth_DOM_Document_setDesignMode(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        bool a0;
        DOM::Document *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"Bb",&sipSelf,sipType_DOM_Document,&sipCpp,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setDesignMode(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_Document,sipName_setDesignMode);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Document_completeURL(PyObject *, PyObject *);}
static PyObject *meth_DOM_Document_completeURL(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const DOM::DOMString * a0;
        DOM::Document *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ9",&sipSelf,sipType_DOM_Document,&sipCpp,sipType_DOM_DOMString,&a0))
        {
            DOM::DOMString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::DOMString(sipCpp->completeURL(*a0));
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_Document,sipName_completeURL);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Document_toString(PyObject *, PyObject *);}
static PyObject *meth_DOM_Document_toString(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        DOM::Document *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_DOM_Document,&sipCpp))
        {
            DOM::DOMString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::DOMString(sipCpp->toString());
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_Document,sipName_toString);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Document_execCommand(PyObject *, PyObject *);}
static PyObject *meth_DOM_Document_execCommand(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const DOM::DOMString * a0;
        bool a1;
        const DOM::DOMString * a2;
        DOM::Document *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ9bJ9",&sipSelf,sipType_DOM_Document,&sipCpp,sipType_DOM_DOMString,&a0,&a1,sipType_DOM_DOMString,&a2))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->execCommand(*a0,a1,*a2);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_Document,sipName_execCommand);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Document_queryCommandEnabled(PyObject *, PyObject *);}
static PyObject *meth_DOM_Document_queryCommandEnabled(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const DOM::DOMString * a0;
        DOM::Document *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ9",&sipSelf,sipType_DOM_Document,&sipCpp,sipType_DOM_DOMString,&a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->queryCommandEnabled(*a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_Document,sipName_queryCommandEnabled);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Document_queryCommandIndeterm(PyObject *, PyObject *);}
static PyObject *meth_DOM_Document_queryCommandIndeterm(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const DOM::DOMString * a0;
        DOM::Document *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ9",&sipSelf,sipType_DOM_Document,&sipCpp,sipType_DOM_DOMString,&a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->queryCommandIndeterm(*a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_Document,sipName_queryCommandIndeterm);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Document_queryCommandState(PyObject *, PyObject *);}
static PyObject *meth_DOM_Document_queryCommandState(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const DOM::DOMString * a0;
        DOM::Document *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ9",&sipSelf,sipType_DOM_Document,&sipCpp,sipType_DOM_DOMString,&a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->queryCommandState(*a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_Document,sipName_queryCommandState);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Document_queryCommandSupported(PyObject *, PyObject *);}
static PyObject *meth_DOM_Document_queryCommandSupported(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const DOM::DOMString * a0;
        DOM::Document *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ9",&sipSelf,sipType_DOM_Document,&sipCpp,sipType_DOM_DOMString,&a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->queryCommandSupported(*a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_Document,sipName_queryCommandSupported);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Document_queryCommandValue(PyObject *, PyObject *);}
static PyObject *meth_DOM_Document_queryCommandValue(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const DOM::DOMString * a0;
        DOM::Document *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ9",&sipSelf,sipType_DOM_Document,&sipCpp,sipType_DOM_DOMString,&a0))
        {
            DOM::DOMString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::DOMString(sipCpp->queryCommandValue(*a0));
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_Document,sipName_queryCommandValue);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Document_updateRendering(PyObject *, PyObject *);}
static PyObject *meth_DOM_Document_updateRendering(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        DOM::Document *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_DOM_Document,&sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->updateRendering();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_Document,sipName_updateRendering);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_DOM_Document(void *, const sipTypeDef *);}
static void *cast_DOM_Document(void *ptr,const sipTypeDef *targetType)
{
    void *res;

    if (targetType == sipType_DOM_Document)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_DOM_Node)->ctd_cast((DOM::Node *)(DOM::Document *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


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

    delete reinterpret_cast<DOM::Document *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void assign_DOM_Document(void *, const void*);}
static void assign_DOM_Document(void *sipDst, const void *sipSrc)
{
    *reinterpret_cast<DOM::Document *>(sipDst) = *reinterpret_cast<const DOM::Document *>(sipSrc);
}


extern "C" {static void dealloc_DOM_Document(sipSimpleWrapper *);}
static void dealloc_DOM_Document(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_DOM_Document(sipSelf->u.cppPtr,0);
    }
}


extern "C" {static void *init_DOM_Document(sipSimpleWrapper *, PyObject *, PyObject **, int *);}
static void *init_DOM_Document(sipSimpleWrapper *, PyObject *sipArgs, PyObject **, int *sipArgsParsed)
{
    DOM::Document *sipCpp = 0;

    if (!sipCpp)
    {
        if (sipParseArgs(sipArgsParsed,sipArgs,""))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new DOM::Document();
            Py_END_ALLOW_THREADS
        }
    }

    if (!sipCpp)
    {
        bool a0;

        if (sipParseArgs(sipArgsParsed,sipArgs,"b",&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new DOM::Document(a0);
            Py_END_ALLOW_THREADS
        }
    }

    if (!sipCpp)
    {
        const DOM::Document * a0;

        if (sipParseArgs(sipArgsParsed,sipArgs,"J9",sipType_DOM_Document,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new DOM::Document(*a0);
            Py_END_ALLOW_THREADS
        }
    }

    if (!sipCpp)
    {
        const DOM::Node * a0;

        if (sipParseArgs(sipArgsParsed,sipArgs,"J9",sipType_DOM_Node,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new DOM::Document(*a0);
            Py_END_ALLOW_THREADS
        }
    }

    return sipCpp;
}


/* Define this type's super-types. */
static sipEncodedClassDef supers_DOM_Document[] = {{109, 255, 1}};


static PyMethodDef methods_DOM_Document[] = {
    {SIP_MLNAME_CAST(sipName_abort), meth_DOM_Document_abort, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_addStyleSheet), meth_DOM_Document_addStyleSheet, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_async), meth_DOM_Document_async, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_completeURL), meth_DOM_Document_completeURL, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_createAttribute), meth_DOM_Document_createAttribute, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_createAttributeNS), meth_DOM_Document_createAttributeNS, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_createCDATASection), meth_DOM_Document_createCDATASection, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_createComment), meth_DOM_Document_createComment, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_createDocumentFragment), meth_DOM_Document_createDocumentFragment, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_createElement), meth_DOM_Document_createElement, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_createElementNS), meth_DOM_Document_createElementNS, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_createEntityReference), meth_DOM_Document_createEntityReference, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_createEvent), meth_DOM_Document_createEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_createNodeIterator), meth_DOM_Document_createNodeIterator, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_createProcessingInstruction), meth_DOM_Document_createProcessingInstruction, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_createRange), meth_DOM_Document_createRange, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_createTextNode), meth_DOM_Document_createTextNode, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_createTreeWalker), meth_DOM_Document_createTreeWalker, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_defaultView), meth_DOM_Document_defaultView, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_designMode), meth_DOM_Document_designMode, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_doctype), meth_DOM_Document_doctype, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_documentElement), meth_DOM_Document_documentElement, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_execCommand), meth_DOM_Document_execCommand, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_getElementById), meth_DOM_Document_getElementById, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_getElementsByClassName), meth_DOM_Document_getElementsByClassName, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_getElementsByTagName), meth_DOM_Document_getElementsByTagName, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_getElementsByTagNameNS), meth_DOM_Document_getElementsByTagNameNS, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_getOverrideStyle), meth_DOM_Document_getOverrideStyle, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_implementation), meth_DOM_Document_implementation, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_importNode), meth_DOM_Document_importNode, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isHTMLDocument), meth_DOM_Document_isHTMLDocument, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_load), meth_DOM_Document_load, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_loadXML), meth_DOM_Document_loadXML, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_preferredStylesheetSet), meth_DOM_Document_preferredStylesheetSet, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_queryCommandEnabled), meth_DOM_Document_queryCommandEnabled, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_queryCommandIndeterm), meth_DOM_Document_queryCommandIndeterm, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_queryCommandState), meth_DOM_Document_queryCommandState, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_queryCommandSupported), meth_DOM_Document_queryCommandSupported, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_queryCommandValue), meth_DOM_Document_queryCommandValue, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_removeStyleSheet), meth_DOM_Document_removeStyleSheet, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_selectedStylesheetSet), meth_DOM_Document_selectedStylesheetSet, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setAsync), meth_DOM_Document_setAsync, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setDesignMode), meth_DOM_Document_setDesignMode, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setSelectedStylesheetSet), meth_DOM_Document_setSelectedStylesheetSet, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_styleSheets), meth_DOM_Document_styleSheets, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_toString), meth_DOM_Document_toString, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_updateRendering), meth_DOM_Document_updateRendering, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_view), meth_DOM_Document_view, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef pyqt4Type_khtml_DOM_Document = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_DOM__Document,
        {0}
    },
    sipNameNr_Document,
    -1,
    -1,
    {0, 255, 0},
    supers_DOM_Document,
    0,
    48, methods_DOM_Document,
    0, 0,
    0, 0,
    init_DOM_Document,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_DOM_Document,
    release_DOM_Document,
    cast_DOM_Document,
    0,
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    0,
    0
},
    assign_DOM_Document,
    0,
    0,
    0
};
