rem: gPrintSettings.printInColor = dialog.colorRadio.selected; gPrintSettings.printCommand = dialog.cmdInput.value; 
add: gPrintSettings.printInColor     = dialog.colorRadio.selected; gPrintSettings.downloadFonts    = dialog.downloadFonts.checked; gPrintSettings.printCommand     = dialog.cmdInput.value; gPrintSettings.title            = dialog.jobTitleInput.value; 
context: function onAccept(){  var print_paper_type   = gPrintSettingsInterface.kPaperSizeDefined;  var print_paper_unit   = gPrintSettingsInterface.kPaperSizeInches;  var print_paper_width  = 0.0;  var print_paper_height = 0.0;  var print_paper_name   = "";  var print_plex_name    = "";  if (gPrintSettings != null) {    var paperSelectedInx = dialog.paperList.selectedIndex;    var plexSelectedInx  = dialog.plexList.selectedIndex;    if (gPaperArray[paperSelectedInx].inches) {      print_paper_unit = gPrintSettingsInterface.kPaperSizeInches;    } else {      print_paper_unit = gPrintSettingsInterface.kPaperSizeMillimeters;    }    print_paper_width  = gPaperArray[paperSelectedInx].width;    print_paper_height = gPaperArray[paperSelectedInx].height;    print_paper_name   = gPaperArray[paperSelectedInx].name;    print_plex_name    = gPlexArray[plexSelectedInx].name;    gPrintSettings.paperSize = gPaperArray[paperSelectedInx].paperSize; // deprecated    gPrintSettings.paperSizeType = print_paper_type;    gPrintSettings.paperSizeUnit = print_paper_unit;    gPrintSettings.paperWidth    = print_paper_width;    gPrintSettings.paperHeight   = print_paper_height;    gPrintSettings.paperName     = print_paper_name;    gPrintSettings.plexName      = print_plex_name;    // save these out so they can be picked up by the device spec    gPrintSettings.printInColor = dialog.colorRadio.selected;    gPrintSettings.printCommand = dialog.cmdInput.value;    //     try {      var printerName = gPrintSettings.printerName;      var i = dialog.topInput.value * 100;      gPrefs.setIntPref("print.printer_"+printerName+".print_edge_top", i);      i = dialog.bottomInput.value * 100;      gPrefs.setIntPref("print.printer_"+printerName+".print_edge_bottom", i);      i = dialog.leftInput.value * 100;      gPrefs.setIntPref("print.printer_"+printerName+".print_edge_left", i);      i = dialog.rightInput.value * 100;      gPrefs.setIntPref("print.printer_"+printerName+".print_edge_right", i);    } catch (e) {    }    if (doDebug) {      dump("onAccept******************************\n");      dump("paperSize     "+gPrintSettings.paperSize+" (deprecated)\n");      dump("paperSizeType "+print_paper_type+" (should be 1)\n");      dump("paperSizeUnit "+print_paper_unit+"\n");      dump("paperWidth    "+print_paper_width+"\n");      dump("paperHeight   "+print_paper_height+"\n");      dump("paperName     '"+print_paper_name+"'\n");      dump("plexName      '"+print_plex_name+"'\n");      dump("printInColor  "+gPrintSettings.printInColor+"\n");      dump("printCommand  '"+gPrintSettings.printCommand+"'\n");    }  } else {    dump("************ onAccept gPrintSettings: "+gPrintSettings+"\n");  }  if (paramBlock) {    // set return value to "ok"    paramBlock.SetInt(0, 1);  } else {    dump("*** FATAL ERROR: paramBlock missing\n");  }  return true;}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/a2afb458636c1e10e8da90ac39d264b7e9d656b7/printjoboptions.js/clean/xpfe/global/resources/content/unix/printjoboptions.js