rem: dump("printToFile             "+gPrintToFile+"\n"); 
add: dump("print_tofile            "+print_tofile+"\n"); 
context: function loadDialog(){  var print_copies        = 1;  var print_file          = default_file;  var print_selection_radio_enabled = false;  var print_frametype     = gPrintSetInterface.kSelectedFrame;  var print_howToEnableUI = gPrintSetInterface.kFrameEnableNone;  try {    printService = Components.classes["@mozilla.org/gfx/printoptions;1"];    if (printService) {      printService = printService.getService();      if (printService) {        printService = printService.QueryInterface(Components.interfaces.nsIPrintOptions);      }    }  } catch(e) {}  if (gPrintSettings) {    gPrinterName        = gPrintSettings.printerName;    gPrintToFile        = gPrintSettings.printToFile;    gOriginalNumCopies  = gPrintSettings.numCopies;    print_copies        = gPrintSettings.numCopies;    print_file          = gPrintSettings.toFileName;    print_frametype     = gPrintSettings.printFrameType;    print_howToEnableUI = gPrintSettings.howToEnableFrameUI;    print_selection_radio_enabled = gPrintSettings.GetPrintOptions(gPrintSetInterface.kEnableSelectionRB);  }  if (doDebug) {    dump("loadDialog*********************************************\n");    dump("toFileName              ["+print_file+"]\n");    dump("printToFile             "+gPrintToFile+"\n");    dump("print_frame             "+print_frametype+"\n");    dump("print_howToEnableUI     "+print_howToEnableUI+"\n");    dump("selection_radio_enabled "+print_selection_radio_enabled+"\n");  }  if (print_file == "") {    print_file = default_file;  }  dialog.printrangeGroup.selectedItem = dialog.allpagesRadio;  if (print_selection_radio_enabled) {    dialog.selectionRadio.removeAttribute("disabled");  } else {    dialog.selectionRadio.setAttribute("disabled","true");  }  doPrintRange(dialog.rangeRadio.selected);  dialog.frompageInput.value  = 1;  dialog.topageInput.value    = 1;  dialog.numCopiesInput.value = 1;  dialog.fileInput.value   = print_file;  // NOTE: getPRinters sets up the PrintToFile radio buttons  getPrinters();  if (gPrintSettings.toFileName != "") {    dialog.fileInput.value = gPrintSettings.toFileName;  }  if (doDebug) {    dump("print_howToEnableUI: "+print_howToEnableUI+"\n");  }  // print frame  if (print_howToEnableUI == gPrintSetInterface.kFrameEnableAll) {    dialog.aslaidoutRadio.removeAttribute("disabled");    dialog.selectedframeRadio.removeAttribute("disabled");    dialog.eachframesepRadio.removeAttribute("disabled");    dialog.printframeGroupLabel.removeAttribute("disabled");    // initialize radio group    dialog.printframeGroup.selectedItem = dialog.selectedframeRadio;  } else if (print_howToEnableUI == gPrintSetInterface.kFrameEnableAsIsAndEach) {    dialog.aslaidoutRadio.removeAttribute("disabled");       //enable    dialog.selectedframeRadio.setAttribute("disabled","true"); // disable    dialog.eachframesepRadio.removeAttribute("disabled");       // enable    dialog.printframeGroupLabel.removeAttribute("disabled");    // enable    // initialize    dialog.printframeGroup.selectedItem = dialog.eachframesepRadio;  } else {    dialog.aslaidoutRadio.setAttribute("disabled","true");    dialog.selectedframeRadio.setAttribute("disabled","true");    dialog.eachframesepRadio.setAttribute("disabled","true");    dialog.printframeGroupLabel.setAttribute("disabled","true");  }  dialog.printButton.label = dialog.printName.getAttribute("label");}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/276eba685039480a64972261b8afb044bd57e26d/printdialog.js/clean/xpfe/global/resources/content/printdialog.js