mAppShell = nsDontQueryInterface<nsIAppShellService>( appShell );
nsIDOMHTMLDocument *doc = nsnull; mWindow->GetDocument(doc); if (nsnull != doc) { doc->GetElementById(NS_ConvertASCIItoUCS2("find"),       &mFindBtn); doc->GetElementById(NS_ConvertASCIItoUCS2("searchup"),   &mUpRB); doc->GetElementById(NS_ConvertASCIItoUCS2("searchdown"), &mDwnRB); doc->GetElementById(NS_ConvertASCIItoUCS2("matchcase"),  &mMatchCaseCB);
nsFindComponent::Initialize( nsIAppShellService *appShell,                             nsICmdLineService *args ) {    nsresult rv = NS_OK;    // Remember the app shell service in case we need it.    mAppShell = nsDontQueryInterface<nsIAppShellService>( appShell );    return rv;}