nsIPrintOptions

IID:CAE87E20-479E-11d4-A856-00105A183419
Inherits From:nsISupports

Print options interface

Do not attempt to freeze this API - it still needs lots of work. Consult John Keiser and Roland Mainz for futher details.

This interface is implemented by the following components:


Constants

Native data constants
PRInt16 kNativeDataPrintRecord = 0

Methods

nsISimpleEnumerator availablePrinters ( ) nsIPrintSettings CreatePrintSettings ( ) void displayJobProperties ( PRUnichar* printer , nsIPrintSettings printSettings , out PRBool displayed ) [noscript] void GetDefaultFont ( nsNativeFontRef font ) [noscript] voidPtr* GetNativeData ( PRInt16 dataType ) PRInt32 getPrinterPrefInt ( nsIPrintSettings printSettings , PRUnichar* prefName ) [noscript] void SetDefaultFont ( nsNativeFontRef font ) [noscript] void SetFontNamePointSize ( nsNativeStringRef name , PRInt32 pointSize ) void ShowPrintSetupDialog ( nsIPrintSettings thePrintSettings )

nsISimpleEnumerator availablePrinters ( )

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.


nsIPrintSettings CreatePrintSettings ( )

Creates a new PrintSettnigs Object and initializes it from prefs


void displayJobProperties ( PRUnichar* printer , nsIPrintSettings printSettings , out PRBool displayed )

Display Printer Job Properties dialog

Arguments:
printer
printSettings
displayed

void GetDefaultFont ( nsNativeFontRef font )

Arguments:
font

voidPtr* GetNativeData ( PRInt16 dataType )

Arguments:
dataType

PRInt32 getPrinterPrefInt ( nsIPrintSettings printSettings , PRUnichar* prefName )

Get a prefixed integer pref

Arguments:
printSettings
prefName

void SetDefaultFont ( nsNativeFontRef font )

Arguments:
font

void SetFontNamePointSize ( nsNativeStringRef name , PRInt32 pointSize )

Arguments:
name
pointSize

void ShowPrintSetupDialog ( nsIPrintSettings thePrintSettings )

Show Native Print Options dialog, this may not be supported on all platforms

Arguments:
thePrintSettings

Reference documentation is generated from Mozilla's source.

Add a note User Contributed Notes
No comments available

Copyright © 1999 - 2005 XULPlanet.com