Implemented by
Print options interface Do not attempt to freeze this API - it still needs lots of work. Consult John Keiser <jkeiser@netscape.com> and Roland Mainz <roland.mainz@informatik.med.uni-giessen.de> for futher details.
[scriptable, uuid(d9948a4d-f49c-4456-938a-acda2c8d7741)]
interface nsIPrintOptions : nsISupports
Constants
Native data constants
const
short
kNativeDataPrintRecord = 0
Methods
available Printers It returns an enumerator object or throws an exception on error cases like if internal setup failed and/or no printers are available.
nsISimpleEnumerator
availablePrinters()
Creates a new PrintSettnigs Object and initializes it from prefs
nsIPrintSettings
CreatePrintSettings()
display Printer Job Properties dialog
void
displayJobProperties(in wstring aPrinter, in nsIPrintSettings aPrintSettings, out boolean aDisplayed)
[noscript]
void
GetDefaultFont(in nsNativeFontRef aFont)
[noscript]
voidPtr
GetNativeData(in short aDataType)
Get a prefixed integer pref
PRInt32
getPrinterPrefInt(in nsIPrintSettings aPrintSettings, in wstring aPrefName)
[noscript]
void
SetDefaultFont(in nsNativeFontRef aFont)
void
setFontNamePointSize(in AString aName, in PRInt32 aPointSize)
Show Native Print Options dialog, this may not be supported on all platforms
void
ShowPrintSetupDialog(in nsIPrintSettings aThePrintSettings)
Compare to: