rem: gDialog.hLeftInput.value   = gPrintSettings.headerStrLeft; gDialog.hCenterInput.value = gPrintSettings.headerStrCenter; gDialog.hRightInput.value  = gPrintSettings.headerStrRight; 
add: setHeaderFooter( gDialog.hLeftOption, gPrintSettings.headerStrLeft ); setHeaderFooter( gDialog.hCenterOption, gPrintSettings.headerStrCenter ); setHeaderFooter( gDialog.hRightOption, gPrintSettings.headerStrRight ); 
context: function loadDialog(){  var print_orientation   = 0;  var print_margin_top    = 0.5;  var print_margin_left   = 0.5;  var print_margin_bottom = 0.5;  var print_margin_right  = 0.5;  if (gPrintSettings) {    print_orientation  = gPrintSettings.orientation;    print_margin_top    = gPrintSettings.marginTop;    print_margin_left   = gPrintSettings.marginLeft;    print_margin_right  = gPrintSettings.marginRight;    print_margin_bottom = gPrintSettings.marginBottom;  }  if (gDoDebug) {    dump("orientation   "+print_orientation+"\n");    dump("print_margin_top    "+print_margin_top+"\n");    dump("print_margin_left   "+print_margin_left+"\n");    dump("print_margin_right  "+print_margin_right+"\n");    dump("print_margin_bottom "+print_margin_bottom+"\n");  }  gDialog.printBGColors.checked = gPrintSettings.printBGColors;  gDialog.printBGImages.checked = gPrintSettings.printBGImages;  gDialog.shrinkToFit.checked   = gPrintSettings.shrinkToFit;  doEnableScaling(!gDialog.shrinkToFit.checked);  if (print_orientation == gPrintSettingsInterface.kPortraitOrientation) {    gDialog.orientation.selectedIndex = 0;  } else if (print_orientation == gPrintSettingsInterface.kLandscapeOrientation) {    gDialog.orientation.selectedIndex = 1;  }  gDialog.topInput.value    = getDoubleStr(print_margin_top, 1);  gDialog.bottomInput.value = getDoubleStr(print_margin_bottom, 1);  gDialog.leftInput.value   = getDoubleStr(print_margin_left, 1);  gDialog.rightInput.value  = getDoubleStr(print_margin_right, 1);  gDialog.hLeftInput.value   = gPrintSettings.headerStrLeft;  gDialog.hCenterInput.value = gPrintSettings.headerStrCenter;  gDialog.hRightInput.value  = gPrintSettings.headerStrRight;  gDialog.fLeftInput.value   = gPrintSettings.footerStrLeft;  gDialog.fCenterInput.value = gPrintSettings.footerStrCenter;  gDialog.fRightInput.value  = gPrintSettings.footerStrRight;  gDialog.scalingInput.value  = getDoubleStr(gPrintSettings.scaling * 100.0, 3);}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/154f537ff1884f617e3c73dbceb986f2c6e1bfa5/printPageSetup.js/buggy/xpfe/global/resources/content/printPageSetup.js