rem: var print_paper_type    = 0; var print_paper_unit    = 0; var print_paper_width   = 0.0; var print_paper_height  = 0.0; 
context: function loadDialog(){  var print_paper_type    = 0;  var print_paper_unit    = 0;  var print_paper_width   = 0.0;  var print_paper_height  = 0.0;  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_paper_type   = gPrintSettings.paperSizeType;    print_paper_unit   = gPrintSettings.paperSizeUnit;    print_paper_width  = gPrintSettings.paperWidth;    print_paper_height = gPrintSettings.paperHeight;    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("paperSizeType "+print_paper_unit+"\n");    dump("paperWidth    "+print_paper_width+"\n");    dump("paperHeight   "+print_paper_height+"\n");    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");  }  createPaperArray();  var selectedInx = 0;  for (var i=0;i<gPaperArray.length;i++) {    if (print_paper_width == gPaperArray[i].width && print_paper_height == gPaperArray[i].height) {      selectedInx = i;      break;    }  }  createPaperSizeList(selectedInx);  gDialog.printBGColors.checked = gPrintSettings.printBGColors;  gDialog.printBGImages.checked = gPrintSettings.printBGImages;  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: 5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/52e7e0debac181298ac1f25fe5cdbe355562ae35/printPageSetup.js/buggy/xpfe/global/resources/content/printPageSetup.js