xpfe/communicator/resources/content/utilityOverlay.js,1.54 | . | Disk File |
Skipping to line 117 | . | |
} catch(e) { |
. |
} catch(e) { |
} |
. |
} |
return "chrome://navigator/content/navigator.xul"; |
. |
return "chrome://navigator/content/navigator.xul"; |
} |
. |
} |
|
. |
|
function goPageSetup() |
. |
function goPageSetup(printSettings) |
{ |
. |
{ |
  |
. |
if (printSettings == null) { |
  |
. |
alert("PrintSettings arg is null!"); |
  |
. |
} |
// This code brings up the native page setup dialog (for platforms that |
. |
// This code brings up the native page setup dialog (for platforms that |
// implement nsIPrintOptions.ShowNativeDialog()). |
. |
// implement nsIPrintOptions.ShowNativeDialog()). |
var printOptionsService = Components.classes["@mozilla.org/gfx/printoptions;
1"] |
. |
window.openDialog("chrome://global/content/printpagesetup.xul","PageSetup",
"chrome,modal,centerscreen", printSettings); |
.getService(Components.interfaces.n
sIPrintOptions); |
. |
 
|
printOptionsService.ReadPrefs(); |
. |
  |
printOptionsService.ShowNativeDialog(); |
. |
  |
printOptionsService.WritePrefs(); |
. |
  |
} |
. |
} |
|
. |
|
function goPreferences(containerID, paneURL, itemID) |
. |
function goPreferences(containerID, paneURL, itemID) |
{ |
. |
{ |
var resizable; |
. |
var resizable; |