/*
 * Module code.
 *
 * Generated by SIP 4.8.2 on Sun Oct 11 20:19:26 2009
 *
 * 
 *  This file is part of PyKDE4.
 * 
 *  PyKDE4 is free software; you can redistribute it and/or modify
 *  it under the terms of the GNU Lesser General Public License as
 *  published by the Free Software Foundation; either version 2.1 of
 *  the License, or (at your option) any later version.
 * 
 *  PyKDE4 is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 * 
 *  You should have received a copy of the GNU General Public License
 *  along with this program.  If not, see <http:www.gnu.org/licenses/>.
 * 
 */

#include "sipAPIktexteditor.h"

#line 30 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/ktexteditor/attribute.sip"
#include <ktexteditor/attribute.h>
#line 29 "sipktexteditorpart7.cpp"

#line 30 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/ktexteditor/attribute.sip"
#include <ktexteditor/attribute.h>
#line 33 "sipktexteditorpart7.cpp"


extern "C" {static int slot_KTextEditor_Attribute_Effects___bool__(PyObject *sipSelf);}
static int slot_KTextEditor_Attribute_Effects___bool__(PyObject *sipSelf)
{
    KTextEditor::Attribute::Effects *sipCpp = reinterpret_cast<KTextEditor::Attribute::Effects *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KTextEditor_Attribute_Effects));

    if (!sipCpp)
        return -1;


    {
        {
            int sipRes = 0;

#line 271 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator int() != 0);
#line 51 "sipktexteditorpart7.cpp"

            return sipRes;
        }
    }
}


extern "C" {static PyObject *slot_KTextEditor_Attribute_Effects___ne__(PyObject *sipSelf,PyObject *sipArg);}
static PyObject *slot_KTextEditor_Attribute_Effects___ne__(PyObject *sipSelf,PyObject *sipArg)
{
    KTextEditor::Attribute::Effects *sipCpp = reinterpret_cast<KTextEditor::Attribute::Effects *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KTextEditor_Attribute_Effects));

    if (!sipCpp)
        return 0;

    int sipArgsParsed = 0;

    {
        const KTextEditor::Attribute::Effects * a0;
        int a0State = 0;

        if (sipParseArgs(&sipArgsParsed,sipArg,"1J1",sipType_KTextEditor_Attribute_Effects,&a0,&a0State))
        {
            bool sipRes = 0;

#line 266 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator int() != a0->operator int());
#line 79 "sipktexteditorpart7.cpp"

            sipReleaseType(const_cast<KTextEditor::Attribute::Effects *>(a0),sipType_KTextEditor_Attribute_Effects,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    return sipPySlotExtend(&sipModuleAPI_ktexteditor,ne_slot,sipType_KTextEditor_Attribute_Effects,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_KTextEditor_Attribute_Effects___eq__(PyObject *sipSelf,PyObject *sipArg);}
static PyObject *slot_KTextEditor_Attribute_Effects___eq__(PyObject *sipSelf,PyObject *sipArg)
{
    KTextEditor::Attribute::Effects *sipCpp = reinterpret_cast<KTextEditor::Attribute::Effects *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KTextEditor_Attribute_Effects));

    if (!sipCpp)
        return 0;

    int sipArgsParsed = 0;

    {
        const KTextEditor::Attribute::Effects * a0;
        int a0State = 0;

        if (sipParseArgs(&sipArgsParsed,sipArg,"1J1",sipType_KTextEditor_Attribute_Effects,&a0,&a0State))
        {
            bool sipRes = 0;

#line 261 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator int() == a0->operator int());
#line 111 "sipktexteditorpart7.cpp"

            sipReleaseType(const_cast<KTextEditor::Attribute::Effects *>(a0),sipType_KTextEditor_Attribute_Effects,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    return sipPySlotExtend(&sipModuleAPI_ktexteditor,eq_slot,sipType_KTextEditor_Attribute_Effects,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_KTextEditor_Attribute_Effects___invert__(PyObject *sipSelf);}
static PyObject *slot_KTextEditor_Attribute_Effects___invert__(PyObject *sipSelf)
{
    KTextEditor::Attribute::Effects *sipCpp = reinterpret_cast<KTextEditor::Attribute::Effects *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KTextEditor_Attribute_Effects));

    if (!sipCpp)
        return 0;


    {
        {
            KTextEditor::Attribute::Effects *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KTextEditor::Attribute::Effects(~(*sipCpp));
            Py_END_ALLOW_THREADS

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


extern "C" {static PyObject *slot_KTextEditor_Attribute_Effects___and__(PyObject *sipArg0,PyObject *sipArg1);}
static PyObject *slot_KTextEditor_Attribute_Effects___and__(PyObject *sipArg0,PyObject *sipArg1)
{
    int sipArgsParsed = 0;

    {
        KTextEditor::Attribute::Effects * a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipArgsParsed,sipArg0,sipArg1,"J1i",sipType_KTextEditor_Attribute_Effects,&a0,&a0State,&a1))
        {
            KTextEditor::Attribute::Effects *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KTextEditor::Attribute::Effects((*a0 & a1));
            Py_END_ALLOW_THREADS

            sipReleaseType(a0,sipType_KTextEditor_Attribute_Effects,a0State);

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

    return sipPySlotExtend(&sipModuleAPI_ktexteditor,and_slot,NULL,sipArg0,sipArg1);
}


extern "C" {static PyObject *slot_KTextEditor_Attribute_Effects___xor__(PyObject *sipArg0,PyObject *sipArg1);}
static PyObject *slot_KTextEditor_Attribute_Effects___xor__(PyObject *sipArg0,PyObject *sipArg1)
{
    int sipArgsParsed = 0;

    {
        KTextEditor::Attribute::Effects * a0;
        int a0State = 0;
        KTextEditor::Attribute::Effects * a1;
        int a1State = 0;

        if (sipParsePair(&sipArgsParsed,sipArg0,sipArg1,"J1J1",sipType_KTextEditor_Attribute_Effects,&a0,&a0State,sipType_KTextEditor_Attribute_Effects,&a1,&a1State))
        {
            KTextEditor::Attribute::Effects *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KTextEditor::Attribute::Effects((*a0 ^ *a1));
            Py_END_ALLOW_THREADS

            sipReleaseType(a0,sipType_KTextEditor_Attribute_Effects,a0State);
            sipReleaseType(a1,sipType_KTextEditor_Attribute_Effects,a1State);

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

    return sipPySlotExtend(&sipModuleAPI_ktexteditor,xor_slot,NULL,sipArg0,sipArg1);
}


extern "C" {static PyObject *slot_KTextEditor_Attribute_Effects___or__(PyObject *sipArg0,PyObject *sipArg1);}
static PyObject *slot_KTextEditor_Attribute_Effects___or__(PyObject *sipArg0,PyObject *sipArg1)
{
    int sipArgsParsed = 0;

    {
        KTextEditor::Attribute::Effects * a0;
        int a0State = 0;
        KTextEditor::Attribute::Effects * a1;
        int a1State = 0;

        if (sipParsePair(&sipArgsParsed,sipArg0,sipArg1,"J1J1",sipType_KTextEditor_Attribute_Effects,&a0,&a0State,sipType_KTextEditor_Attribute_Effects,&a1,&a1State))
        {
            KTextEditor::Attribute::Effects *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KTextEditor::Attribute::Effects((*a0 | *a1));
            Py_END_ALLOW_THREADS

            sipReleaseType(a0,sipType_KTextEditor_Attribute_Effects,a0State);
            sipReleaseType(a1,sipType_KTextEditor_Attribute_Effects,a1State);

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

    return sipPySlotExtend(&sipModuleAPI_ktexteditor,or_slot,NULL,sipArg0,sipArg1);
}


extern "C" {static PyObject *slot_KTextEditor_Attribute_Effects___int__(PyObject *sipSelf);}
static PyObject *slot_KTextEditor_Attribute_Effects___int__(PyObject *sipSelf)
{
    KTextEditor::Attribute::Effects *sipCpp = reinterpret_cast<KTextEditor::Attribute::Effects *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KTextEditor_Attribute_Effects));

    if (!sipCpp)
        return 0;


    {
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = *sipCpp;
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }
}


extern "C" {static PyObject *slot_KTextEditor_Attribute_Effects___ixor__(PyObject *sipSelf,PyObject *sipArg);}
static PyObject *slot_KTextEditor_Attribute_Effects___ixor__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_KTextEditor_Attribute_Effects)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    KTextEditor::Attribute::Effects *sipCpp = reinterpret_cast<KTextEditor::Attribute::Effects *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KTextEditor_Attribute_Effects));

    if (!sipCpp)
        return 0;

    int sipArgsParsed = 0;

    {
        KTextEditor::Attribute::Effects * a0;
        int a0State = 0;

        if (sipParseArgs(&sipArgsParsed,sipArg,"1J1",sipType_KTextEditor_Attribute_Effects,&a0,&a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->KTextEditor::Attribute::Effects::operator^=(*a0);
            Py_END_ALLOW_THREADS

            sipReleaseType(a0,sipType_KTextEditor_Attribute_Effects,a0State);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


extern "C" {static PyObject *slot_KTextEditor_Attribute_Effects___ior__(PyObject *sipSelf,PyObject *sipArg);}
static PyObject *slot_KTextEditor_Attribute_Effects___ior__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_KTextEditor_Attribute_Effects)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    KTextEditor::Attribute::Effects *sipCpp = reinterpret_cast<KTextEditor::Attribute::Effects *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KTextEditor_Attribute_Effects));

    if (!sipCpp)
        return 0;

    int sipArgsParsed = 0;

    {
        KTextEditor::Attribute::Effects * a0;
        int a0State = 0;

        if (sipParseArgs(&sipArgsParsed,sipArg,"1J1",sipType_KTextEditor_Attribute_Effects,&a0,&a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->KTextEditor::Attribute::Effects::operator|=(*a0);
            Py_END_ALLOW_THREADS

            sipReleaseType(a0,sipType_KTextEditor_Attribute_Effects,a0State);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


extern "C" {static PyObject *slot_KTextEditor_Attribute_Effects___iand__(PyObject *sipSelf,PyObject *sipArg);}
static PyObject *slot_KTextEditor_Attribute_Effects___iand__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_KTextEditor_Attribute_Effects)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    KTextEditor::Attribute::Effects *sipCpp = reinterpret_cast<KTextEditor::Attribute::Effects *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KTextEditor_Attribute_Effects));

    if (!sipCpp)
        return 0;

    int sipArgsParsed = 0;

    {
        int a0;

        if (sipParseArgs(&sipArgsParsed,sipArg,"1i",&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->KTextEditor::Attribute::Effects::operator&=(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


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

    return NULL;
}


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

    delete reinterpret_cast<KTextEditor::Attribute::Effects *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void assign_KTextEditor_Attribute_Effects(void *, const void*);}
static void assign_KTextEditor_Attribute_Effects(void *sipDst, const void *sipSrc)
{
    *reinterpret_cast<KTextEditor::Attribute::Effects *>(sipDst) = *reinterpret_cast<const KTextEditor::Attribute::Effects *>(sipSrc);
}


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


extern "C" {static void *init_KTextEditor_Attribute_Effects(sipSimpleWrapper *, PyObject *, PyObject **, int *);}
static void *init_KTextEditor_Attribute_Effects(sipSimpleWrapper *, PyObject *sipArgs, PyObject **, int *sipArgsParsed)
{
    KTextEditor::Attribute::Effects *sipCpp = 0;

    if (!sipCpp)
    {
        const KTextEditor::Attribute::Effects * a0;
        int a0State = 0;

        if (sipParseArgs(sipArgsParsed,sipArgs,"J1",sipType_KTextEditor_Attribute_Effects,&a0,&a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new KTextEditor::Attribute::Effects(*a0);
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<KTextEditor::Attribute::Effects *>(a0),sipType_KTextEditor_Attribute_Effects,a0State);
        }
    }

    if (!sipCpp)
    {
        int a0;

        if (sipParseArgs(sipArgsParsed,sipArgs,"i",&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new KTextEditor::Attribute::Effects(a0);
            Py_END_ALLOW_THREADS
        }
    }

    if (!sipCpp)
    {
        if (sipParseArgs(sipArgsParsed,sipArgs,""))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new KTextEditor::Attribute::Effects();
            Py_END_ALLOW_THREADS
        }
    }

    return sipCpp;
}


extern "C" {static int convertTo_KTextEditor_Attribute_Effects(PyObject *, void **, int *, PyObject *);}
static int convertTo_KTextEditor_Attribute_Effects(PyObject *sipPy,void **sipCppPtrV,int *sipIsErr,PyObject *sipTransferObj)
{
    KTextEditor::Attribute::Effects **sipCppPtr = reinterpret_cast<KTextEditor::Attribute::Effects **>(sipCppPtrV);

#line 276 "/usr/local/share/py-sip/QtCore/qglobal.sip"
// Allow an instance of the base enum whenever a KTextEditor::Attribute::Effects is expected.

if (sipIsErr == NULL)
    return (PyObject_TypeCheck(sipPy, sipTypeAsPyTypeObject(sipType_KTextEditor_Attribute_Effect)) ||
            sipCanConvertToType(sipPy, sipType_KTextEditor_Attribute_Effects, SIP_NO_CONVERTORS));

if (PyObject_TypeCheck(sipPy, sipTypeAsPyTypeObject(sipType_KTextEditor_Attribute_Effect)))
{
    *sipCppPtr = new KTextEditor::Attribute::Effects(SIPLong_AsLong(sipPy));

    return sipGetState(sipTransferObj);
}

*sipCppPtr = reinterpret_cast<KTextEditor::Attribute::Effects *>(sipConvertToType(sipPy, sipType_KTextEditor_Attribute_Effects, sipTransferObj, SIP_NO_CONVERTORS, 0, sipIsErr));

return 0;
#line 482 "sipktexteditorpart7.cpp"
}


/* Define this type's Python slots. */
static sipPySlotDef slots_KTextEditor_Attribute_Effects[] = {
    {(void *)slot_KTextEditor_Attribute_Effects___bool__, bool_slot},
    {(void *)slot_KTextEditor_Attribute_Effects___ne__, ne_slot},
    {(void *)slot_KTextEditor_Attribute_Effects___eq__, eq_slot},
    {(void *)slot_KTextEditor_Attribute_Effects___invert__, invert_slot},
    {(void *)slot_KTextEditor_Attribute_Effects___and__, and_slot},
    {(void *)slot_KTextEditor_Attribute_Effects___xor__, xor_slot},
    {(void *)slot_KTextEditor_Attribute_Effects___or__, or_slot},
    {(void *)slot_KTextEditor_Attribute_Effects___int__, int_slot},
    {(void *)slot_KTextEditor_Attribute_Effects___ixor__, ixor_slot},
    {(void *)slot_KTextEditor_Attribute_Effects___ior__, ior_slot},
    {(void *)slot_KTextEditor_Attribute_Effects___iand__, iand_slot},
    {0, (sipPySlotType)0}
};


pyqt4ClassTypeDef pyqt4Type_ktexteditor_KTextEditor_Attribute_Effects = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_KTextEditor__Attribute__Effects,
        {0}
    },
    sipNameNr_Effects,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    {2, 255, 0},
    0,
    slots_KTextEditor_Attribute_Effects,
    0, 0,
    0, 0,
    0, 0,
    init_KTextEditor_Attribute_Effects,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KTextEditor_Attribute_Effects,
    release_KTextEditor_Attribute_Effects,
    cast_KTextEditor_Attribute_Effects,
    convertTo_KTextEditor_Attribute_Effects,
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    0,
    0
},
    assign_KTextEditor_Attribute_Effects,
    0,
    1,
    0
};

#line 30 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/ktexteditor/attribute.sip"
#include <ktexteditor/attribute.h>
#line 550 "sipktexteditorpart7.cpp"

#line 30 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/ktexteditor/attribute.sip"
#include <ktexteditor/attribute.h>
#line 554 "sipktexteditorpart7.cpp"
#line 224 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/typedefs.sip"
#include <ksharedptr.h>
#line 557 "sipktexteditorpart7.cpp"
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 572 "sipktexteditorpart7.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdeui/kaction.sip"
#include <kaction.h>
#line 575 "sipktexteditorpart7.cpp"
#line 30 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/ktexteditor/commandinterface.sip"
#include <ktexteditor/commandinterface.h>
#line 578 "sipktexteditorpart7.cpp"
#line 30 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/ktexteditor/view.sip"
#include <ktexteditor/view.h>

#include <ktexteditor/codecompletioninterface.h>
#include <ktexteditor/sessionconfiginterface.h>
#include <ktexteditor/texthintinterface.h>
#line 585 "sipktexteditorpart7.cpp"
#line 30 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/ktexteditor/document.sip"
#include <ktexteditor/document.h>

#include <ktexteditor/modificationinterface.h>
#include <ktexteditor/markinterface.h>
#include <ktexteditor/searchinterface.h>
#include <ktexteditor/sessionconfiginterface.h>
#include <ktexteditor/smartinterface.h>
#include <ktexteditor/templateinterface.h>
#include <ktexteditor/variableinterface.h>
#line 596 "sipktexteditorpart7.cpp"
#line 30 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/ktexteditor/smartrange.sip"
#include <ktexteditor/smartrange.h>
#line 599 "sipktexteditorpart7.cpp"
#line 30 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/ktexteditor/rangefeedback.sip"
#include <ktexteditor/rangefeedback.h>
#line 602 "sipktexteditorpart7.cpp"
#line 60 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/ktexteditor/rangefeedback.sip"
#include <ktexteditor/rangefeedback.h>
#line 605 "sipktexteditorpart7.cpp"
#line 46 "/usr/local/share/py-sip/QtGui/qbrush.sip"
#include <qbrush.h>
#line 608 "sipktexteditorpart7.cpp"
#line 46 "/usr/local/share/py-sip/QtGui/qfont.sip"
#include <qfont.h>
#line 611 "sipktexteditorpart7.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 614 "sipktexteditorpart7.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 617 "sipktexteditorpart7.cpp"
#line 317 "/usr/local/share/py-sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 620 "sipktexteditorpart7.cpp"
#line 46 "/usr/local/share/py-sip/QtGui/qpen.sip"
#include <qpen.h>
#line 623 "sipktexteditorpart7.cpp"
#line 46 "/usr/local/share/py-sip/QtGui/qcolor.sip"
#include <qcolor.h>
#line 626 "sipktexteditorpart7.cpp"
#line 665 "/usr/local/share/py-sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 629 "sipktexteditorpart7.cpp"
#line 45 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 632 "sipktexteditorpart7.cpp"
#line 77 "/usr/local/share/py-sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 635 "sipktexteditorpart7.cpp"
#line 516 "/usr/local/share/py-sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 638 "sipktexteditorpart7.cpp"
#line 534 "/usr/local/share/py-sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 641 "sipktexteditorpart7.cpp"
#line 628 "/usr/local/share/py-sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 644 "sipktexteditorpart7.cpp"
#line 488 "/usr/local/share/py-sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 647 "sipktexteditorpart7.cpp"
#line 448 "/usr/local/share/py-sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 650 "sipktexteditorpart7.cpp"
#line 43 "/usr/local/share/py-sip/QtCore/qmap.sip"
#include <qmap.h>
#line 154 "/usr/local/share/py-sip/QtCore/qmap.sip"
#include <qmap.h>
#line 655 "sipktexteditorpart7.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 658 "sipktexteditorpart7.cpp"
#line 213 "/usr/local/share/py-sip/QtCore/qvector.sip"
#include <qvector.h>
#include <qpair.h>
#line 43 "/usr/local/share/py-sip/QtCore/qvector.sip"
#include <qvector.h>
#line 43 "/usr/local/share/py-sip/QtCore/qvector.sip"
#include <qvector.h>
#line 43 "/usr/local/share/py-sip/QtCore/qvector.sip"
#include <qvector.h>
#line 43 "/usr/local/share/py-sip/QtCore/qvector.sip"
#include <qvector.h>
#line 43 "/usr/local/share/py-sip/QtCore/qvector.sip"
#include <qvector.h>
#line 43 "/usr/local/share/py-sip/QtCore/qvector.sip"
#include <qvector.h>
#line 43 "/usr/local/share/py-sip/QtCore/qvector.sip"
#include <qvector.h>
#line 43 "/usr/local/share/py-sip/QtCore/qvector.sip"
#include <qvector.h>
#line 43 "/usr/local/share/py-sip/QtCore/qvector.sip"
#include <qvector.h>
#line 43 "/usr/local/share/py-sip/QtCore/qvector.sip"
#include <qvector.h>
#line 682 "sipktexteditorpart7.cpp"
#line 42 "/usr/local/share/py-sip/QtGui/qabstracttextdocumentlayout.sip"
#include <qabstracttextdocumentlayout.h>
#line 53 "/usr/local/share/py-sip/QtGui/qabstracttextdocumentlayout.sip"
#include <qabstracttextdocumentlayout.h>
#line 64 "/usr/local/share/py-sip/QtGui/qabstracttextdocumentlayout.sip"
#include <qabstracttextdocumentlayout.h>
#line 689 "sipktexteditorpart7.cpp"
#line 114 "/usr/local/share/py-sip/QtCore/qline.sip"
#include <qline.h>
#line 692 "sipktexteditorpart7.cpp"
#line 99 "/usr/local/share/py-sip/QtCore/qpoint.sip"
#include <qpoint.h>
#line 695 "sipktexteditorpart7.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qline.sip"
#include <qline.h>
#line 698 "sipktexteditorpart7.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qpoint.sip"
#include <qpoint.h>
#line 701 "sipktexteditorpart7.cpp"
#line 165 "/usr/local/share/py-sip/QtCore/qrect.sip"
#include <qrect.h>
#line 704 "sipktexteditorpart7.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qrect.sip"
#include <qrect.h>
#line 707 "sipktexteditorpart7.cpp"
#line 46 "/usr/local/share/py-sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 710 "sipktexteditorpart7.cpp"
#line 65 "/usr/local/share/py-sip/QtGui/qtextlayout.sip"
#include <qtextlayout.h>
#line 88 "/usr/local/share/py-sip/QtGui/qtextlayout.sip"
#include <qtextlayout.h>
#line 715 "sipktexteditorpart7.cpp"


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

    {
        KTextEditor::Attribute *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->fontBold();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        bool a0 = 1;
        KTextEditor::Attribute *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B|b",&sipSelf,sipType_KTextEditor_Attribute,&sipCpp,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setFontBold(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_Attribute,sipName_setFontBold);

    return NULL;
}


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

    {
        KTextEditor::Attribute *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QBrush(sipCpp->outline());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        const QBrush * a0;
        int a0State = 0;
        KTextEditor::Attribute *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ1",&sipSelf,sipType_KTextEditor_Attribute,&sipCpp,sipType_QBrush,&a0,&a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setOutline(*a0);
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QBrush *>(a0),sipType_QBrush,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        KTextEditor::Attribute *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QBrush(sipCpp->selectedForeground());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        const QBrush * a0;
        int a0State = 0;
        KTextEditor::Attribute *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ1",&sipSelf,sipType_KTextEditor_Attribute,&sipCpp,sipType_QBrush,&a0,&a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setSelectedForeground(*a0);
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QBrush *>(a0),sipType_QBrush,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        KTextEditor::Attribute *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QBrush(sipCpp->selectedBackground());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        const QBrush * a0;
        int a0State = 0;
        KTextEditor::Attribute *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ1",&sipSelf,sipType_KTextEditor_Attribute,&sipCpp,sipType_QBrush,&a0,&a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setSelectedBackground(*a0);
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QBrush *>(a0),sipType_QBrush,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        KTextEditor::Attribute *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->backgroundFillWhitespace();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        bool a0;
        KTextEditor::Attribute *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"Bb",&sipSelf,sipType_KTextEditor_Attribute,&sipCpp,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setBackgroundFillWhitespace(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_Attribute,sipName_setBackgroundFillWhitespace);

    return NULL;
}


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

    {
        KTextEditor::Attribute *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        KTextEditor::Attribute *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->hasAnyProperty();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        KTextEditor::Attribute *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KTextEditor_Attribute,&sipCpp))
        {
            QList<KAction *> *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<KAction *>(sipCpp->associatedActions());
            Py_END_ALLOW_THREADS

            PyObject *sipResObj = sipConvertFromType(sipRes,sipType_QList_0201KAction,NULL);
            delete sipRes;

            return sipResObj;
        }
    }

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

    return NULL;
}


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

    {
        KTextEditor::Attribute *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        KTextEditor::Attribute::ActivationType a0;
        KTextEditor::Attribute *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BE",&sipSelf,sipType_KTextEditor_Attribute,&sipCpp,sipType_KTextEditor_Attribute_ActivationType,&a0))
        {
            KTextEditor::Attribute::Ptr *sipRes;

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

            PyObject *sipResObj = sipConvertFromType(sipRes,sipType_KSharedPtr_0200KTextEditor_Attribute,NULL);
            delete sipRes;

            return sipResObj;
        }
    }

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

    return NULL;
}


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

    {
        KTextEditor::Attribute::ActivationType a0;
        KTextEditor::Attribute::Ptr * a1;
        int a1State = 0;
        KTextEditor::Attribute *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BEJ1",&sipSelf,sipType_KTextEditor_Attribute,&sipCpp,sipType_KTextEditor_Attribute_ActivationType,&a0,sipType_KSharedPtr_0200KTextEditor_Attribute,&a1,&a1State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setDynamicAttribute(a0,*a1);
            Py_END_ALLOW_THREADS

            sipReleaseType(a1,sipType_KSharedPtr_0200KTextEditor_Attribute,a1State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        KTextEditor::Attribute *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KTextEditor_Attribute,&sipCpp))
        {
            KTextEditor::Attribute::Effects *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KTextEditor::Attribute::Effects(sipCpp->effects());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        KTextEditor::Attribute::Effects * a0;
        int a0State = 0;
        KTextEditor::Attribute *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ1",&sipSelf,sipType_KTextEditor_Attribute,&sipCpp,sipType_KTextEditor_Attribute_Effects,&a0,&a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setEffects(*a0);
            Py_END_ALLOW_THREADS

            sipReleaseType(a0,sipType_KTextEditor_Attribute_Effects,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *slot_KTextEditor_Attribute___iadd__(PyObject *sipSelf,PyObject *sipArg);}
static PyObject *slot_KTextEditor_Attribute___iadd__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_KTextEditor_Attribute)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    KTextEditor::Attribute *sipCpp = reinterpret_cast<KTextEditor::Attribute *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KTextEditor_Attribute));

    if (!sipCpp)
        return 0;

    int sipArgsParsed = 0;

    {
        const KTextEditor::Attribute * a0;

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

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


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

    if (targetType == sipType_KTextEditor_Attribute)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_QTextCharFormat)->ctd_cast((QTextCharFormat *)(KTextEditor::Attribute *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


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

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

    Py_END_ALLOW_THREADS
}


extern "C" {static void assign_KTextEditor_Attribute(void *, const void*);}
static void assign_KTextEditor_Attribute(void *sipDst, const void *sipSrc)
{
    *reinterpret_cast<KTextEditor::Attribute *>(sipDst) = *reinterpret_cast<const KTextEditor::Attribute *>(sipSrc);
}


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


extern "C" {static void *init_KTextEditor_Attribute(sipSimpleWrapper *, PyObject *, PyObject **, int *);}
static void *init_KTextEditor_Attribute(sipSimpleWrapper *, PyObject *sipArgs, PyObject **, int *sipArgsParsed)
{
    KTextEditor::Attribute *sipCpp = 0;

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

    if (!sipCpp)
    {
        const KTextEditor::Attribute * a0;

        if (sipParseArgs(sipArgsParsed,sipArgs,"J9",sipType_KTextEditor_Attribute,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new KTextEditor::Attribute(*a0);
            Py_END_ALLOW_THREADS
        }
    }

    return sipCpp;
}


/* Define this type's super-types. */
static sipEncodedClassDef supers_KTextEditor_Attribute[] = {{587, 2, 1}};


/* Define this type's Python slots. */
static sipPySlotDef slots_KTextEditor_Attribute[] = {
    {(void *)slot_KTextEditor_Attribute___iadd__, iadd_slot},
    {0, (sipPySlotType)0}
};


static PyMethodDef methods_KTextEditor_Attribute[] = {
    {SIP_MLNAME_CAST(sipName_associatedActions), meth_KTextEditor_Attribute_associatedActions, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_backgroundFillWhitespace), meth_KTextEditor_Attribute_backgroundFillWhitespace, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_clear), meth_KTextEditor_Attribute_clear, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_clearAssociatedActions), meth_KTextEditor_Attribute_clearAssociatedActions, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_dynamicAttribute), meth_KTextEditor_Attribute_dynamicAttribute, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_effects), meth_KTextEditor_Attribute_effects, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_fontBold), meth_KTextEditor_Attribute_fontBold, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_hasAnyProperty), meth_KTextEditor_Attribute_hasAnyProperty, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_outline), meth_KTextEditor_Attribute_outline, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_selectedBackground), meth_KTextEditor_Attribute_selectedBackground, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_selectedForeground), meth_KTextEditor_Attribute_selectedForeground, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setBackgroundFillWhitespace), meth_KTextEditor_Attribute_setBackgroundFillWhitespace, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setDynamicAttribute), meth_KTextEditor_Attribute_setDynamicAttribute, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setEffects), meth_KTextEditor_Attribute_setEffects, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setFontBold), meth_KTextEditor_Attribute_setFontBold, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setOutline), meth_KTextEditor_Attribute_setOutline, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setSelectedBackground), meth_KTextEditor_Attribute_setSelectedBackground, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setSelectedForeground), meth_KTextEditor_Attribute_setSelectedForeground, METH_VARARGS, NULL}
};

static sipEnumMemberDef enummembers_KTextEditor_Attribute[] = {
    {sipName_ActivateCaretIn, KTextEditor::Attribute::ActivateCaretIn, 3},
    {sipName_ActivateMouseIn, KTextEditor::Attribute::ActivateMouseIn, 3},
    {sipName_AttributeDynamicEffect, KTextEditor::Attribute::AttributeDynamicEffect, 4},
    {sipName_AttributeInternalProperty, KTextEditor::Attribute::AttributeInternalProperty, 4},
    {sipName_AttributeUserProperty, KTextEditor::Attribute::AttributeUserProperty, 4},
    {sipName_BackgroundFillWhitespace, KTextEditor::Attribute::BackgroundFillWhitespace, 4},
    {sipName_EffectCycleGradient, KTextEditor::Attribute::EffectCycleGradient, 5},
    {sipName_EffectFadeIn, KTextEditor::Attribute::EffectFadeIn, 5},
    {sipName_EffectFadeOut, KTextEditor::Attribute::EffectFadeOut, 5},
    {sipName_EffectNone, KTextEditor::Attribute::EffectNone, 5},
    {sipName_EffectPulse, KTextEditor::Attribute::EffectPulse, 5},
    {sipName_Outline, KTextEditor::Attribute::Outline, 4},
    {sipName_SelectedBackground, KTextEditor::Attribute::SelectedBackground, 4},
    {sipName_SelectedForeground, KTextEditor::Attribute::SelectedForeground, 4},
};


pyqt4ClassTypeDef pyqt4Type_ktexteditor_KTextEditor_Attribute = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_KTextEditor__Attribute,
        {0}
    },
    sipNameNr_Attribute,
    -1,
    -1,
    {1, 255, 0},
    supers_KTextEditor_Attribute,
    slots_KTextEditor_Attribute,
    18, methods_KTextEditor_Attribute,
    14, enummembers_KTextEditor_Attribute,
    0, 0,
    init_KTextEditor_Attribute,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KTextEditor_Attribute,
    release_KTextEditor_Attribute,
    cast_KTextEditor_Attribute,
    0,
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    0,
    0
},
    assign_KTextEditor_Attribute,
    0,
    0,
    0
};


#line 34 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/ktexteditor/editor.sip"
#include <ktexteditor/editor.h>
#line 1436 "sipktexteditorpart7.cpp"
#line 30 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/ktexteditor/plugin.sip"
#include <ktexteditor/plugin.h>
#line 1439 "sipktexteditorpart7.cpp"
#line 224 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/typedefs.sip"
#include <ksharedptr.h>
#line 224 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/typedefs.sip"
#include <ksharedptr.h>
#line 224 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/typedefs.sip"
#include <ksharedptr.h>
#line 224 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/typedefs.sip"
#include <ksharedptr.h>
#line 224 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/typedefs.sip"
#include <ksharedptr.h>
#line 224 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/typedefs.sip"
#include <ksharedptr.h>
#line 224 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/typedefs.sip"
#include <ksharedptr.h>
#line 1454 "sipktexteditorpart7.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/klockfile.sip"
#include <klockfile.h>
#line 1457 "sipktexteditorpart7.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kmimetype.sip"
#include <kmimetype.h>
#line 1460 "sipktexteditorpart7.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kservice.sip"
#include <kservice.h>
#line 1463 "sipktexteditorpart7.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kservicegroup.sip"
#include <kservicegroup.h>
#line 1466 "sipktexteditorpart7.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kservicetype.sip"
#include <kservicetype.h>
#line 1469 "sipktexteditorpart7.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/ksharedconfig.sip"
#include <ksharedconfig.h>
#line 1472 "sipktexteditorpart7.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/ksycocaentry.sip"
#include <ksycocaentry.h>
#line 1475 "sipktexteditorpart7.cpp"
#line 45 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 1478 "sipktexteditorpart7.cpp"


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

    {
        KService::Ptr * a0;
        int a0State = 0;
        QObject * a1;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"J1J8",sipType_KSharedPtr_0200KService,&a0,&a0State,sipType_QObject,&a1))
        {
            KTextEditor::Plugin *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = KTextEditor::createPlugin(*a0,a1);
            Py_END_ALLOW_THREADS

            sipReleaseType(a0,sipType_KSharedPtr_0200KService,a0State);

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoFunction(sipArgsParsed,sipName_createPlugin);

    return NULL;
}


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

    {
        const char * a0;
        PyObject *a0Keep;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"AA",&a0Keep,&a0))
        {
            KTextEditor::Editor *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = KTextEditor::editor(a0);
            Py_END_ALLOW_THREADS
            Py_DECREF(a0Keep);

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoFunction(sipArgsParsed,sipName_editor);

    return NULL;
}


static PyMethodDef methods_KTextEditor[] = {
    {SIP_MLNAME_CAST(sipName_createPlugin), meth_KTextEditor_createPlugin, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_editor), meth_KTextEditor_editor, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef pyqt4Type_ktexteditor_KTextEditor = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_NAMESPACE,
        sipNameNr_KTextEditor,
        {0}
    },
    sipNameNr_KTextEditor,
    -1,
    -1,
    {0, 0, 1},
    0,
    0,
    2, methods_KTextEditor,
    0, 0,
    0, 0,
    0,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    0,
    0,
    0,
    0,
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    0,
    0
},
    0,
    0,
    0,
    0
};
