WARNING: Most of this content (with the exception of the Mozilla 1.9 XPCOM reference) is very old, and can be expected to be out of date and possibly obsolete. For better XUL documentation, please visit the XUL hub at the Mozilla Developer Center.

nsIPrintOptions

IID:92597c2b-109b-40bb-8f93-9b9acfa31de8
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

nsIPrintSettings CreatePrintSettings ( ) void displayJobProperties ( PRUnichar* printer , nsIPrintSettings printSettings , out PRBool displayed ) [noscript] voidPtr* GetNativeData ( PRInt16 dataType ) PRInt32 getPrinterPrefInt ( nsIPrintSettings printSettings , PRUnichar* prefName ) void ShowPrintSetupDialog ( nsIPrintSettings thePrintSettings )

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

voidPtr* GetNativeData ( PRInt16 dataType )

Arguments:
dataType

PRInt32 getPrinterPrefInt ( nsIPrintSettings printSettings , PRUnichar* prefName )

Get a prefixed integer pref

Arguments:
printSettings
prefName

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.

Copyright © 1999-2006 XULPlanet.com