} else if ( anIID.Equals( ::nsISupports::GetIID() ) ) {
} else if ( anIID.Equals( kISupportsIID ) ) {
nsFindDialog::QueryInterface( REFNSIID anIID, void **anInstancePtr) {    nsresult rv = NS_OK;    if ( anInstancePtr ) {        // Always NULL result, in case of failure        *anInstancePtr = 0;        // Check for interfaces we support and cast this appropriately.        if ( anIID.Equals( nsIXULWindowCallbacks::GetIID() ) ) {            *anInstancePtr = (void*) ((nsIXULWindowCallbacks*)this);            NS_ADDREF_THIS();        } else if ( anIID.Equals( nsIDocumentObserver::GetIID() ) ) {            *anInstancePtr = (void*) ((nsIDocumentObserver*)this);            NS_ADDREF_THIS();        } else if ( anIID.Equals( ::nsISupports::GetIID() ) ) {            *anInstancePtr = (void*) ((nsISupports*)(nsIDocumentObserver*)this);            NS_ADDREF_THIS();        } else {            // Not an interface we support.            rv = NS_ERROR_NO_INTERFACE;        }    } else {        rv = NS_ERROR_NULL_POINTER;    }  return rv;}