//Auto-generated by /usr/bin/smokegen. DO NOT EDIT.
#include <khtml_includes.h>

#include <smoke.h>
#include <khtml_smoke.h>

class __internal_SmokeClass {};

namespace __smokekhtml {

class x_DOM__RangeException : public DOM::RangeException, public __internal_SmokeClass {
    SmokeBinding* _binding;
public:
    void x_0(Smoke::Stack x) {
        // set the smoke binding
        _binding = (SmokeBinding*)x[1].s_class;
    }
    static void x_1(Smoke::Stack x) {
        // DOM::RangeException* RangeException(unsigned short)
        x_DOM__RangeException* xret = new x_DOM__RangeException((unsigned short)x[1].s_ushort);
        x[0].s_class = (void*)xret;
    }
    explicit x_DOM__RangeException(unsigned short x1) : RangeException(x1) {}
    static void x_2(Smoke::Stack x) {
        // DOM::RangeException* RangeException(const DOM::RangeException&)
        x_DOM__RangeException* xret = new x_DOM__RangeException(*(const DOM::RangeException*)x[1].s_class);
        x[0].s_class = (void*)xret;
    }
    explicit x_DOM__RangeException(const DOM::RangeException& x1) : RangeException(x1) {}
    void x_3(Smoke::Stack x) {
        // DOM::RangeException& operator=(const DOM::RangeException&)
        DOM::RangeException& xret = this->DOM::RangeException::operator=(*(const DOM::RangeException*)x[1].s_class);
        x[0].s_class = (void*)&xret;
    }
    void x_4(Smoke::Stack x) {
        // DOM::DOMString codeAsString() const
        DOM::DOMString xret = ((const x_DOM__RangeException*)this)->DOM::RangeException::codeAsString();
        x[0].s_class = (void*)new DOM::DOMString(xret);
    }
    static void x_5(Smoke::Stack x) {
        // static DOM::DOMString codeAsString(int)
        DOM::DOMString xret = DOM::RangeException::codeAsString((int)x[1].s_int);
        x[0].s_class = (void*)new DOM::DOMString(xret);
    }
    static void x_6(Smoke::Stack x) {
        // static bool isRangeExceptionCode(int)
        bool xret = DOM::RangeException::isRangeExceptionCode((int)x[1].s_int);
        x[0].s_bool = xret;
    }
    void x_7(Smoke::Stack x) {
        // unsigned short code
        x[0].s_ushort = this->DOM::RangeException::code;
    }
    void x_8(Smoke::Stack x) {
        // unsigned short code=
        this->DOM::RangeException::code = (unsigned short)x[1].s_ushort;
    }
    static void x_9(Smoke::Stack x) {
        x[0].s_enum = (long)DOM::RangeException::BAD_BOUNDARYPOINTS_ERR;
    }
    static void x_10(Smoke::Stack x) {
        x[0].s_enum = (long)DOM::RangeException::INVALID_NODE_TYPE_ERR;
    }
    static void x_11(Smoke::Stack x) {
        x[0].s_enum = (long)DOM::RangeException::_EXCEPTION_OFFSET;
    }
    static void x_12(Smoke::Stack x) {
        x[0].s_enum = (long)DOM::RangeException::_EXCEPTION_MAX;
    }
    static void xenum_operation(Smoke::EnumOperation xop, Smoke::Index xtype, void *&xdata, long &xvalue) {
        switch(xtype) {
        case 264: //DOM::RangeException::RangeExceptionCode
            switch(xop) {
                case Smoke::EnumNew:
                    xdata = (void*)new DOM::RangeException::RangeExceptionCode;
                    break;
                case Smoke::EnumDelete:
                    delete (DOM::RangeException::RangeExceptionCode*)xdata;
                    break;
                case Smoke::EnumFromLong:
                    *(DOM::RangeException::RangeExceptionCode*)xdata = (DOM::RangeException::RangeExceptionCode)xvalue;
                    break;
                case Smoke::EnumToLong:
                    xvalue = (long)*(DOM::RangeException::RangeExceptionCode*)xdata;
                    break;
            }
            break;
        }
    }
    ~x_DOM__RangeException() { this->_binding->deleted(111, (void*)this); }
};
void xenum_DOM__RangeException(Smoke::EnumOperation xop, Smoke::Index xtype, void *&xdata, long &xvalue) {
    x_DOM__RangeException::xenum_operation(xop, xtype, xdata, xvalue);
}
void xcall_DOM__RangeException(Smoke::Index xi, void *obj, Smoke::Stack args) {
    x_DOM__RangeException *xself = (x_DOM__RangeException*)obj;
    switch(xi) {
        case 0: xself->x_0(args);	break;
        case 1: x_DOM__RangeException::x_1(args);	break;
        case 2: x_DOM__RangeException::x_2(args);	break;
        case 3: xself->x_3(args);	break;
        case 4: xself->x_4(args);	break;
        case 5: x_DOM__RangeException::x_5(args);	break;
        case 6: x_DOM__RangeException::x_6(args);	break;
        case 7: xself->x_7(args);	break;
        case 8: xself->x_8(args);	break;
        case 9: x_DOM__RangeException::x_9(args);	break;
        case 10: x_DOM__RangeException::x_10(args);	break;
        case 11: x_DOM__RangeException::x_11(args);	break;
        case 12: x_DOM__RangeException::x_12(args);	break;
        case 13: delete (DOM::RangeException*)xself;	break;
    }
}
class x_DOM__Rect : public DOM::Rect {
    SmokeBinding* _binding;
public:
    void x_0(Smoke::Stack x) {
        // set the smoke binding
        _binding = (SmokeBinding*)x[1].s_class;
    }
    static void x_1(Smoke::Stack x) {
        // DOM::Rect* Rect()
        x_DOM__Rect* xret = new x_DOM__Rect();
        x[0].s_class = (void*)xret;
    }
    explicit x_DOM__Rect() : Rect() {}
    static void x_2(Smoke::Stack x) {
        // DOM::Rect* Rect(const DOM::Rect&)
        x_DOM__Rect* xret = new x_DOM__Rect(*(const DOM::Rect*)x[1].s_class);
        x[0].s_class = (void*)xret;
    }
    explicit x_DOM__Rect(const DOM::Rect& x1) : Rect(x1) {}
    void x_3(Smoke::Stack x) {
        // DOM::Rect& operator=(const DOM::Rect&)
        DOM::Rect& xret = this->DOM::Rect::operator=(*(const DOM::Rect*)x[1].s_class);
        x[0].s_class = (void*)&xret;
    }
    void x_4(Smoke::Stack x) {
        // DOM::CSSPrimitiveValue top() const
        DOM::CSSPrimitiveValue xret = ((const x_DOM__Rect*)this)->DOM::Rect::top();
        x[0].s_class = (void*)new DOM::CSSPrimitiveValue(xret);
    }
    void x_5(Smoke::Stack x) {
        // DOM::CSSPrimitiveValue right() const
        DOM::CSSPrimitiveValue xret = ((const x_DOM__Rect*)this)->DOM::Rect::right();
        x[0].s_class = (void*)new DOM::CSSPrimitiveValue(xret);
    }
    void x_6(Smoke::Stack x) {
        // DOM::CSSPrimitiveValue bottom() const
        DOM::CSSPrimitiveValue xret = ((const x_DOM__Rect*)this)->DOM::Rect::bottom();
        x[0].s_class = (void*)new DOM::CSSPrimitiveValue(xret);
    }
    void x_7(Smoke::Stack x) {
        // DOM::CSSPrimitiveValue left() const
        DOM::CSSPrimitiveValue xret = ((const x_DOM__Rect*)this)->DOM::Rect::left();
        x[0].s_class = (void*)new DOM::CSSPrimitiveValue(xret);
    }
    void x_8(Smoke::Stack x) {
        // bool isNull() const
        bool xret = ((const x_DOM__Rect*)this)->DOM::Rect::isNull();
        x[0].s_bool = xret;
    }
    ~x_DOM__Rect() { this->_binding->deleted(112, (void*)this); }
};
void xcall_DOM__Rect(Smoke::Index xi, void *obj, Smoke::Stack args) {
    x_DOM__Rect *xself = (x_DOM__Rect*)obj;
    switch(xi) {
        case 0: xself->x_0(args);	break;
        case 1: x_DOM__Rect::x_1(args);	break;
        case 2: x_DOM__Rect::x_2(args);	break;
        case 3: xself->x_3(args);	break;
        case 4: xself->x_4(args);	break;
        case 5: xself->x_5(args);	break;
        case 6: xself->x_6(args);	break;
        case 7: xself->x_7(args);	break;
        case 8: xself->x_8(args);	break;
        case 9: delete (DOM::Rect*)xself;	break;
    }
}
class x_DOM__StyleSheet : public DOM::StyleSheet {
    SmokeBinding* _binding;
public:
    void x_0(Smoke::Stack x) {
        // set the smoke binding
        _binding = (SmokeBinding*)x[1].s_class;
    }
    static void x_1(Smoke::Stack x) {
        // DOM::StyleSheet* StyleSheet()
        x_DOM__StyleSheet* xret = new x_DOM__StyleSheet();
        x[0].s_class = (void*)xret;
    }
    explicit x_DOM__StyleSheet() : StyleSheet() {}
    static void x_2(Smoke::Stack x) {
        // DOM::StyleSheet* StyleSheet(const DOM::StyleSheet&)
        x_DOM__StyleSheet* xret = new x_DOM__StyleSheet(*(const DOM::StyleSheet*)x[1].s_class);
        x[0].s_class = (void*)xret;
    }
    explicit x_DOM__StyleSheet(const DOM::StyleSheet& x1) : StyleSheet(x1) {}
    void x_3(Smoke::Stack x) {
        // DOM::StyleSheet& operator=(const DOM::StyleSheet&)
        DOM::StyleSheet& xret = this->DOM::StyleSheet::operator=(*(const DOM::StyleSheet*)x[1].s_class);
        x[0].s_class = (void*)&xret;
    }
    void x_4(Smoke::Stack x) {
        // DOM::DOMString type() const
        DOM::DOMString xret = ((const x_DOM__StyleSheet*)this)->DOM::StyleSheet::type();
        x[0].s_class = (void*)new DOM::DOMString(xret);
    }
    void x_5(Smoke::Stack x) {
        // bool disabled() const
        bool xret = ((const x_DOM__StyleSheet*)this)->DOM::StyleSheet::disabled();
        x[0].s_bool = xret;
    }
    void x_6(Smoke::Stack x) {
        // void setDisabled(bool)
        this->DOM::StyleSheet::setDisabled((bool)x[1].s_bool);
        (void)x; // noop (for compiler warning)
    }
    void x_7(Smoke::Stack x) {
        // DOM::Node ownerNode() const
        DOM::Node xret = ((const x_DOM__StyleSheet*)this)->DOM::StyleSheet::ownerNode();
        x[0].s_class = (void*)new DOM::Node(xret);
    }
    void x_8(Smoke::Stack x) {
        // DOM::StyleSheet parentStyleSheet() const
        DOM::StyleSheet xret = ((const x_DOM__StyleSheet*)this)->DOM::StyleSheet::parentStyleSheet();
        x[0].s_class = (void*)new DOM::StyleSheet(xret);
    }
    void x_9(Smoke::Stack x) {
        // DOM::DOMString href() const
        DOM::DOMString xret = ((const x_DOM__StyleSheet*)this)->DOM::StyleSheet::href();
        x[0].s_class = (void*)new DOM::DOMString(xret);
    }
    void x_10(Smoke::Stack x) {
        // DOM::DOMString title() const
        DOM::DOMString xret = ((const x_DOM__StyleSheet*)this)->DOM::StyleSheet::title();
        x[0].s_class = (void*)new DOM::DOMString(xret);
    }
    void x_11(Smoke::Stack x) {
        // DOM::MediaList media() const
        DOM::MediaList xret = ((const x_DOM__StyleSheet*)this)->DOM::StyleSheet::media();
        x[0].s_class = (void*)new DOM::MediaList(xret);
    }
    void x_12(Smoke::Stack x) {
        // KUrl baseUrl()
        KUrl xret = this->DOM::StyleSheet::baseUrl();
        x[0].s_class = (void*)new KUrl(xret);
    }
    void x_13(Smoke::Stack x) {
        // bool isCSSStyleSheet() const
        bool xret = ((const x_DOM__StyleSheet*)this)->DOM::StyleSheet::isCSSStyleSheet();
        x[0].s_bool = xret;
    }
    void x_14(Smoke::Stack x) {
        // bool isNull() const
        bool xret = ((const x_DOM__StyleSheet*)this)->DOM::StyleSheet::isNull();
        x[0].s_bool = xret;
    }
    ~x_DOM__StyleSheet() { this->_binding->deleted(113, (void*)this); }
};
void xcall_DOM__StyleSheet(Smoke::Index xi, void *obj, Smoke::Stack args) {
    x_DOM__StyleSheet *xself = (x_DOM__StyleSheet*)obj;
    switch(xi) {
        case 0: xself->x_0(args);	break;
        case 1: x_DOM__StyleSheet::x_1(args);	break;
        case 2: x_DOM__StyleSheet::x_2(args);	break;
        case 3: xself->x_3(args);	break;
        case 4: xself->x_4(args);	break;
        case 5: xself->x_5(args);	break;
        case 6: xself->x_6(args);	break;
        case 7: xself->x_7(args);	break;
        case 8: xself->x_8(args);	break;
        case 9: xself->x_9(args);	break;
        case 10: xself->x_10(args);	break;
        case 11: xself->x_11(args);	break;
        case 12: xself->x_12(args);	break;
        case 13: xself->x_13(args);	break;
        case 14: xself->x_14(args);	break;
        case 15: delete (DOM::StyleSheet*)xself;	break;
    }
}
class x_DOM__StyleSheetList : public DOM::StyleSheetList {
    SmokeBinding* _binding;
public:
    void x_0(Smoke::Stack x) {
        // set the smoke binding
        _binding = (SmokeBinding*)x[1].s_class;
    }
    static void x_1(Smoke::Stack x) {
        // DOM::StyleSheetList* StyleSheetList()
        x_DOM__StyleSheetList* xret = new x_DOM__StyleSheetList();
        x[0].s_class = (void*)xret;
    }
    explicit x_DOM__StyleSheetList() : StyleSheetList() {}
    static void x_2(Smoke::Stack x) {
        // DOM::StyleSheetList* StyleSheetList(const DOM::StyleSheetList&)
        x_DOM__StyleSheetList* xret = new x_DOM__StyleSheetList(*(const DOM::StyleSheetList*)x[1].s_class);
        x[0].s_class = (void*)xret;
    }
    explicit x_DOM__StyleSheetList(const DOM::StyleSheetList& x1) : StyleSheetList(x1) {}
    void x_3(Smoke::Stack x) {
        // DOM::StyleSheetList& operator=(const DOM::StyleSheetList&)
        DOM::StyleSheetList& xret = this->DOM::StyleSheetList::operator=(*(const DOM::StyleSheetList*)x[1].s_class);
        x[0].s_class = (void*)&xret;
    }
    void x_4(Smoke::Stack x) {
        // unsigned long length() const
        unsigned long xret = ((const x_DOM__StyleSheetList*)this)->DOM::StyleSheetList::length();
        x[0].s_ulong = xret;
    }
    void x_5(Smoke::Stack x) {
        // DOM::StyleSheet item(unsigned long)
        DOM::StyleSheet xret = this->DOM::StyleSheetList::item((unsigned long)x[1].s_ulong);
        x[0].s_class = (void*)new DOM::StyleSheet(xret);
    }
    void x_6(Smoke::Stack x) {
        // bool isNull() const
        bool xret = ((const x_DOM__StyleSheetList*)this)->DOM::StyleSheetList::isNull();
        x[0].s_bool = xret;
    }
    ~x_DOM__StyleSheetList() { this->_binding->deleted(114, (void*)this); }
};
void xcall_DOM__StyleSheetList(Smoke::Index xi, void *obj, Smoke::Stack args) {
    x_DOM__StyleSheetList *xself = (x_DOM__StyleSheetList*)obj;
    switch(xi) {
        case 0: xself->x_0(args);	break;
        case 1: x_DOM__StyleSheetList::x_1(args);	break;
        case 2: x_DOM__StyleSheetList::x_2(args);	break;
        case 3: xself->x_3(args);	break;
        case 4: xself->x_4(args);	break;
        case 5: xself->x_5(args);	break;
        case 6: xself->x_6(args);	break;
        case 7: delete (DOM::StyleSheetList*)xself;	break;
    }
}
class x_DOM__Text : public DOM::Text, public __internal_SmokeClass {
    SmokeBinding* _binding;
public:
    void x_0(Smoke::Stack x) {
        // set the smoke binding
        _binding = (SmokeBinding*)x[1].s_class;
    }
    static void x_1(Smoke::Stack x) {
        // DOM::Text* Text()
        x_DOM__Text* xret = new x_DOM__Text();
        x[0].s_class = (void*)xret;
    }
    explicit x_DOM__Text() : Text() {}
    static void x_2(Smoke::Stack x) {
        // DOM::Text* Text(const DOM::Text&)
        x_DOM__Text* xret = new x_DOM__Text(*(const DOM::Text*)x[1].s_class);
        x[0].s_class = (void*)xret;
    }
    explicit x_DOM__Text(const DOM::Text& x1) : Text(x1) {}
    static void x_3(Smoke::Stack x) {
        // DOM::Text* Text(const DOM::Node&)
        x_DOM__Text* xret = new x_DOM__Text(*(const DOM::Node*)x[1].s_class);
        x[0].s_class = (void*)xret;
    }
    explicit x_DOM__Text(const DOM::Node& x1) : Text(x1) {}
    void x_4(Smoke::Stack x) {
        // DOM::Text& operator=(const DOM::Node&)
        DOM::Text& xret = this->DOM::Text::operator=(*(const DOM::Node*)x[1].s_class);
        x[0].s_class = (void*)&xret;
    }
    void x_5(Smoke::Stack x) {
        // DOM::Text& operator=(const DOM::Text&)
        DOM::Text& xret = this->DOM::Text::operator=(*(const DOM::Text*)x[1].s_class);
        x[0].s_class = (void*)&xret;
    }
    void x_6(Smoke::Stack x) {
        // DOM::Text splitText(const unsigned long)
        DOM::Text xret = this->DOM::Text::splitText((const unsigned long)x[1].s_ulong);
        x[0].s_class = (void*)new DOM::Text(xret);
    }
    ~x_DOM__Text() { this->_binding->deleted(115, (void*)this); }
};
void xcall_DOM__Text(Smoke::Index xi, void *obj, Smoke::Stack args) {
    x_DOM__Text *xself = (x_DOM__Text*)obj;
    switch(xi) {
        case 0: xself->x_0(args);	break;
        case 1: x_DOM__Text::x_1(args);	break;
        case 2: x_DOM__Text::x_2(args);	break;
        case 3: x_DOM__Text::x_3(args);	break;
        case 4: xself->x_4(args);	break;
        case 5: xself->x_5(args);	break;
        case 6: xself->x_6(args);	break;
        case 7: delete (DOM::Text*)xself;	break;
    }
}
class x_DOM__TextEvent : public DOM::TextEvent, public __internal_SmokeClass {
    SmokeBinding* _binding;
public:
    void x_0(Smoke::Stack x) {
        // set the smoke binding
        _binding = (SmokeBinding*)x[1].s_class;
    }
    static void x_1(Smoke::Stack x) {
        // DOM::TextEvent* TextEvent()
        x_DOM__TextEvent* xret = new x_DOM__TextEvent();
        x[0].s_class = (void*)xret;
    }
    explicit x_DOM__TextEvent() : TextEvent() {}
    static void x_2(Smoke::Stack x) {
        // DOM::TextEvent* TextEvent(const DOM::TextEvent&)
        x_DOM__TextEvent* xret = new x_DOM__TextEvent(*(const DOM::TextEvent*)x[1].s_class);
        x[0].s_class = (void*)xret;
    }
    explicit x_DOM__TextEvent(const DOM::TextEvent& x1) : TextEvent(x1) {}
    static void x_3(Smoke::Stack x) {
        // DOM::TextEvent* TextEvent(const DOM::Event&)
        x_DOM__TextEvent* xret = new x_DOM__TextEvent(*(const DOM::Event*)x[1].s_class);
        x[0].s_class = (void*)xret;
    }
    explicit x_DOM__TextEvent(const DOM::Event& x1) : TextEvent(x1) {}
    void x_4(Smoke::Stack x) {
        // DOM::TextEvent& operator=(const DOM::TextEvent&)
        DOM::TextEvent& xret = this->DOM::TextEvent::operator=(*(const DOM::TextEvent*)x[1].s_class);
        x[0].s_class = (void*)&xret;
    }
    void x_5(Smoke::Stack x) {
        // DOM::TextEvent& operator=(const DOM::Event&)
        DOM::TextEvent& xret = this->DOM::TextEvent::operator=(*(const DOM::Event*)x[1].s_class);
        x[0].s_class = (void*)&xret;
    }
    void x_6(Smoke::Stack x) {
        // void initTextEvent(const DOM::DOMString&, bool, bool, const DOM::AbstractView&, const DOM::DOMString&)
        this->DOM::TextEvent::initTextEvent(*(const DOM::DOMString*)x[1].s_class,(bool)x[2].s_bool,(bool)x[3].s_bool,*(const DOM::AbstractView*)x[4].s_class,*(const DOM::DOMString*)x[5].s_class);
        (void)x; // noop (for compiler warning)
    }
    ~x_DOM__TextEvent() { this->_binding->deleted(116, (void*)this); }
};
void xcall_DOM__TextEvent(Smoke::Index xi, void *obj, Smoke::Stack args) {
    x_DOM__TextEvent *xself = (x_DOM__TextEvent*)obj;
    switch(xi) {
        case 0: xself->x_0(args);	break;
        case 1: x_DOM__TextEvent::x_1(args);	break;
        case 2: x_DOM__TextEvent::x_2(args);	break;
        case 3: x_DOM__TextEvent::x_3(args);	break;
        case 4: xself->x_4(args);	break;
        case 5: xself->x_5(args);	break;
        case 6: xself->x_6(args);	break;
        case 7: delete (DOM::TextEvent*)xself;	break;
    }
}

}
