rem: 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"); 
add: 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("resolutionName  '"+print_resolution_name+"'\n"); dump("colorspace      '"+print_colorspace+"'\n"); 
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: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/0d5875e3b79dfb82f238bdc2e9b560ce1b505012/printjoboptions.js/clean/toolkit/components/printing/content/printjoboptions.js