rem: gDialog.scalingInput.value  = getDoubleStr(gPrintSettings.scaling * 100.0, 3); 
add: gDialog.scalingInput.value = (gPrintSettings.scaling * 100).toFixed(0); 
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;  try {    gPrefs = Components.classes["@mozilla.org/preferences-service;1"].getService(Components.interfaces.nsIPrefBranch);      gPrintService = Components.classes["@mozilla.org/gfx/printsettings-service;1"];    if (gPrintService) {      gPrintService = gPrintService.getService();      if (gPrintService) {        gPrintService = gPrintService.QueryInterface(Components.interfaces.nsIPrintSettingsService);      }    }  } catch(ex) {    dump("loadDialog: ex="+ex+"\n");  }  setPrinterDefaultsForSelectedPrinter();  gDialog.printBG.checked = gPrintSettings.printBGColors || gPrintSettings.printBGImages;  gDialog.shrinkToFit.checked   = gPrintSettings.shrinkToFit;  gDialog.scalingLabel.disabled = gDialog.scalingInput.disabled = gDialog.shrinkToFit.checked;  var marginGroupLabel = gDialog.marginGroup.label;  if (gPrintSettings.paperSizeUnit == gPrintSettingsInterface.kPaperSizeInches) {    marginGroupLabel = marginGroupLabel.replace(/#1/, gDialog.strings["marginUnits.inches"]);    gDoingMetric = false;  } else {    marginGroupLabel = marginGroupLabel.replace(/#1/, gDialog.strings["marginUnits.metric"]);    // Also, set global page dimensions for A4 paper, in millimeters (assumes portrait at this point).    gPageWidth = 2100;    gPageHeight = 2970;    gDoingMetric = true;  }  gDialog.marginGroup.label = marginGroupLabel;  print_orientation   = gPrintSettings.orientation;  print_margin_top    = convertMarginInchesToUnits(gPrintSettings.marginTop, gDoingMetric);  print_margin_left   = convertMarginInchesToUnits(gPrintSettings.marginLeft, gDoingMetric);  print_margin_right  = convertMarginInchesToUnits(gPrintSettings.marginRight, gDoingMetric);  print_margin_bottom = convertMarginInchesToUnits(gPrintSettings.marginBottom, gDoingMetric);  if (gDoDebug) {    dump("print_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");  }  if (print_orientation == gPrintSettingsInterface.kPortraitOrientation) {    gDialog.orientation.selectedItem = gDialog.portrait;  } else if (print_orientation == gPrintSettingsInterface.kLandscapeOrientation) {    gDialog.orientation.selectedItem = gDialog.landscape;  }  // Set orientation the first time on a timeout so the dialog sizes to the  // maximum height specified in the .xul file.  Otherwise, if the user switches  // from landscape to portrait, the content grows and the buttons are clipped.  setTimeout( setOrientation, 0 );  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);  changeMargins();  setHeaderFooter( gDialog.hLeftOption, gPrintSettings.headerStrLeft );  setHeaderFooter( gDialog.hCenterOption, gPrintSettings.headerStrCenter );  setHeaderFooter( gDialog.hRightOption, gPrintSettings.headerStrRight );  setHeaderFooter( gDialog.fLeftOption, gPrintSettings.footerStrLeft );  setHeaderFooter( gDialog.fCenterOption, gPrintSettings.footerStrCenter );  setHeaderFooter( gDialog.fRightOption, gPrintSettings.footerStrRight );  gDialog.scalingInput.value  = getDoubleStr(gPrintSettings.scaling * 100.0, 3);  // Enable/disable widgets based in the information whether the selected  // printer supports the matching feature or not  if (isListOfPrinterFeaturesAvailable()) {    if (gPrefs.getBoolPref("print.tmp.printerfeatures." + gPrintSettings.printerName + ".can_change_orientation"))      gDialog.orientation.removeAttribute("disabled");    else      gDialog.orientation.setAttribute("disabled","true");  }  // Give initial focus to the orientation radio group.  // Done on a timeout due to to bug 103197.  setTimeout( function() { gDialog.orientation.focus(); }, 0 );}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/ca428eedf1cd3c8ccfd6ebd9378a7ae0ee3d8b3b/printPageSetup.js/clean/xpfe/global/resources/content/printPageSetup.js