if (aIID.Equals(kISupportsIID)) {
if (aIID.Equals(NS_GET_IID(nsIDOMSelectionListener))) { nsIDOMSelectionListener* tmp = this; *aInstancePtr = (void*) tmp; NS_ADDREF_THIS(); return NS_OK; } if (aIID.Equals(NS_GET_IID(nsISupports))) {
DocumentViewerImpl::QueryInterface(REFNSIID aIID, void** aInstancePtr){  if (NULL == aInstancePtr) {    return NS_ERROR_NULL_POINTER;  }  if (aIID.Equals(kIContentViewerIID)) {    nsIContentViewer* tmp = this;    *aInstancePtr = (void*)tmp;    NS_ADDREF_THIS();    return NS_OK;  }  if (aIID.Equals(kIDocumentViewerIID)) {    nsIDocumentViewer* tmp = this;    *aInstancePtr = (void*) tmp;    NS_ADDREF_THIS();    return NS_OK;  }  if (aIID.Equals(nsIMarkupDocumentViewer::GetIID())) {    nsIMarkupDocumentViewer* tmp = this;    *aInstancePtr = (void*) tmp;    NS_ADDREF_THIS();    return NS_OK;  }  if (aIID.Equals(nsIContentViewerFile::GetIID())) {    nsIContentViewerFile* tmp = this;    *aInstancePtr = (void*) tmp;    NS_ADDREF_THIS();    return NS_OK;  }  if (aIID.Equals(nsIContentViewerEdit::GetIID())) {    nsIContentViewerEdit* tmp = this;    *aInstancePtr = (void*) tmp;    NS_ADDREF_THIS();    return NS_OK;  }  if (aIID.Equals(kISupportsIID)) {    nsIContentViewer* tmp1 = this;    nsISupports* tmp2 = tmp1;    *aInstancePtr = (void*) tmp2;    NS_ADDREF_THIS();    return NS_OK;  }  return NS_NOINTERFACE;}