rem: gSendMailMessageMode = window.arguments[0]; if (gSendMailMessageMode) 
add: sendMailMessageMode = window.arguments[0]; var skipBlockQuotes = window.arguments[1];  if (skipBlockQuotes) 
context: function Startup(){  if (!GetCurrentEditor())  {    window.close();    return;  }  // Get the spellChecker shell  gSpellChecker = Components.classes['@mozilla.org/editor/editorspellchecker;1'].createInstance(Components.interfaces.nsIEditorSpellCheck);  if (!gSpellChecker)  {    dump("SpellChecker not found!!!\n");    window.close();    return;  }  // Start the spell checker module.  try {    // TxtSrv Filter Contract Id    var filterContractId;    gSendMailMessageMode = window.arguments[0];    if (gSendMailMessageMode)      filterContractId = "@mozilla.org/editor/txtsrvfiltermail;1";    else      filterContractId = "@mozilla.org/editor/txtsrvfilter;1";    gSpellChecker.setFilter(Components.classes[filterContractId].createInstance(Components.interfaces.nsITextServicesFilter));    gSpellChecker.InitSpellChecker(GetCurrentEditor());   // XXX: We need to read in a pref here so we can set the   //      default language for the spellchecker!   // gSpellChecker.SetCurrentDictionary();  }  catch(ex) {   dump("*** Exception error: InitSpellChecker\n");    window.close();    return;  }  gDialog.MisspelledWordLabel = document.getElementById("MisspelledWordLabel");  gDialog.MisspelledWord      = document.getElementById("MisspelledWord");  gDialog.ReplaceButton       = document.getElementById("Replace");  gDialog.IgnoreButton        = document.getElementById("Ignore");  gDialog.StopButton          = document.getElementById("Stop");  gDialog.CloseButton         = document.getElementById("Close");  gDialog.ReplaceWordInput    = document.getElementById("ReplaceWordInput");  gDialog.SuggestedList       = document.getElementById("SuggestedList");  gDialog.LanguageMenulist    = document.getElementById("LanguageMenulist");  // Fill in the language menulist and sync it up  // with the spellchecker's current language.  var curLang;  try {    curLang = gSpellChecker.GetCurrentDictionary();  } catch(ex) {    curLang = "";  }  InitLanguageMenu(curLang);    // Get the first misspelled word and setup all UI  NextWord();  // When startup param is true, setup different UI when spell checking   //   just before sending mail message    if (gSendMailMessageMode)  {    // If no misspelled words found, simply close dialog and send message    if (!gMisspelledWord)    {      onClose();      return;    }    // Hide "Close" button and use "Send" instead    gDialog.CloseButton.hidden = true;    gDialog.CloseButton = document.getElementById("Send");    gDialog.CloseButton.hidden = false;  }  else  {    // Normal spell checking - hide the "Stop" button    // (Note that this button is the "Cancel" button for    //  Esc keybinding and related window close actions)    gDialog.StopButton.hidden = true;  }  // Clear flag that determines message when  //  no misspelled word is found  //  (different message when used for the first time)  gFirstTime = false;}
meta: 5459	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5459/2e91b525574910817035b6651be2c61b9a6e3df8/EdSpellCheck.js/clean/editor/ui/dialogs/content/EdSpellCheck.js