rem: dump("paperSize        "+gPrintSettings.paperSize+" (deprecated)\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         = "";  var print_resolution_name   = "";  var print_colorspace        = "";  if (gPrintSettings != null) {    var paperSelectedInx = dialog.paperList.selectedIndex;    var plexSelectedInx  = dialog.plexList.selectedIndex;    var resolutionSelectedInx = dialog.resolutionList.selectedIndex;    var colorspaceSelectedInx = dialog.colorspaceList.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;    print_resolution_name  = gResolutionArray[resolutionSelectedInx].name;    print_colorspace       = gColorspaceArray[colorspaceSelectedInx].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;    gPrintSettings.resolutionName  = print_resolution_name;    gPrintSettings.colorspace      = print_colorspace;    // save these out so they can be picked up by the device spec    gPrintSettings.printInColor     = dialog.colorRadio.selected;    gPrintSettings.downloadFonts    = dialog.downloadFonts.checked;    gPrintSettings.printCommand     = dialog.cmdInput.value;    gPrintSettings.title            = dialog.jobTitleInput.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("resolutionName  '"+print_resolution_name+"'\n");      dump("colorspace      '"+print_colorspace+"'\n");      dump("printInColor     "+gPrintSettings.printInColor+"\n");      dump("downloadFonts    "+gPrintSettings.downloadFonts+"\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: 10520	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/10520/0f5116d74f48f43c71789e262dcc5fa8764873cd/printjoboptions.js/buggy/toolkit/components/printing/content/printjoboptions.js