rem:  printSettings.marginTop    = dialog.topInput.value; printSettings.marginLeft   = dialog.leftInput.value; printSettings.marginBottom = dialog.bottomInput.value; printSettings.marginRight  = dialog.rightInput.value;   printSettings.headerStrLeft   = dialog.hLeftInput.value; printSettings.headerStrCenter = dialog.hCenterInput.value; printSettings.headerStrRight  = dialog.hRightInput.value;  printSettings.footerStrLeft   = dialog.fLeftInput.value; printSettings.footerStrCenter = dialog.fCenterInput.value; printSettings.footerStrRight  = dialog.fRightInput.value;  printSettings.printBGColors = dialog.printBGColors.checked; printSettings.printBGImages = dialog.printBGImages.checked; 
add: gPrintSettings.printBGColors = gDialog.printBGColors.checked; gPrintSettings.printBGImages = gDialog.printBGImages.checked; 
context: function onAccept(){  var print_paper_type   = gPrintSettingsInterface.kPaperSizeDefined;  var print_paper_unit   = gPrintSettingsInterface.kPaperSizeInches;  var print_paper_width  = 8.5;  var print_paper_height = 11.0;  if (printSettings) {    var selectedInx = dialog.paperList.selectedIndex;    if (paperArray[selectedInx].inches) {      print_paper_unit = gPrintSettingsInterface.kPaperSizeInches;    } else {      print_paper_unit = gPrintSettingsInterface.kPaperSizeMillimeters;    }    print_paper_width  = paperArray[selectedInx].width;    print_paper_height = paperArray[selectedInx].height;    printSettings.paperSizeType = print_paper_type;    printSettings.paperSizeUnit = print_paper_unit;    printSettings.paperWidth    = print_paper_width;    printSettings.paperHeight   = print_paper_height;    printSettings.orientation = dialog.orientation.selectedIndex;    // save these out so they can be picked up by the device spec    printSettings.marginTop    = dialog.topInput.value;    printSettings.marginLeft   = dialog.leftInput.value;    printSettings.marginBottom = dialog.bottomInput.value;    printSettings.marginRight  = dialog.rightInput.value;    printSettings.headerStrLeft   = dialog.hLeftInput.value;    printSettings.headerStrCenter = dialog.hCenterInput.value;    printSettings.headerStrRight  = dialog.hRightInput.value;    printSettings.footerStrLeft   = dialog.fLeftInput.value;    printSettings.footerStrCenter = dialog.fCenterInput.value;    printSettings.footerStrRight  = dialog.fRightInput.value;    printSettings.printBGColors = dialog.printBGColors.checked;    printSettings.printBGImages = dialog.printBGImages.checked;    var scaling = document.getElementById("scalingInput").value;    if (scaling < 50.0 || scaling > 100.0) {      scaling = 100.0;    }    scaling /= 100.0;    printSettings.scaling = scaling;    if (doDebug) {      dump("******* Page Setup Accepting ******\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("print_margin_top    "+dialog.topInput.value+"\n");      dump("print_margin_left   "+dialog.leftInput.value+"\n");      dump("print_margin_right  "+dialog.bottomInput.value+"\n");      dump("print_margin_bottom "+dialog.rightInput.value+"\n");    }  } else {    dump("************ printSettings: "+printSettings+"\n");  }  return true;}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/1fde5f13f3ec7880ec55d21c00cfccab6c2f05ce/printPageSetup.js/clean/xpfe/global/resources/content/printPageSetup.js