if (iid.Equals(nsIXULCommandDispatcher::GetIID()) || iid.Equals(kISupportsIID)) {
if (iid.Equals(kISupportsIID)) { *result = (nsISupports*)(nsIXULCommandDispatcher*)this; NS_ADDREF_THIS(); return NS_OK; } else if (iid.Equals(nsIXULCommandDispatcher::GetIID())) {
XULCommandDispatcherImpl::QueryInterface(REFNSIID iid, void** result){    if (! result)        return NS_ERROR_NULL_POINTER;    *result = nsnull;    if (iid.Equals(nsIXULCommandDispatcher::GetIID()) ||        iid.Equals(kISupportsIID)) {        *result = NS_STATIC_CAST(nsIXULCommandDispatcher*, this);        NS_ADDREF_THIS();        return NS_OK;    }     else if (iid.Equals(nsIDOMXULCommandDispatcher::GetIID())) {        *result = NS_STATIC_CAST(nsIDOMXULCommandDispatcher*, this);        NS_ADDREF_THIS();        return NS_OK;    }    else if (iid.Equals(nsIDOMFocusListener::GetIID())) {        *result = NS_STATIC_CAST(nsIDOMFocusListener*, this);        NS_ADDREF_THIS();        return NS_OK;    }    else if (iid.Equals(kIDomEventListenerIID)) {        *result = (nsIDOMEventListener*)(nsIDOMFocusListener*)this;        NS_ADDREF_THIS();        return NS_OK;    }    return NS_NOINTERFACE;}