Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions | Public Attributes | Private Member Functions
nsPrinterEnumeratorWin Class Reference

#include <nsDeviceContextSpecWin.h>

Inheritance diagram for nsPrinterEnumeratorWin:
Inheritance graph
[legend]
Collaboration diagram for nsPrinterEnumeratorWin:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 nsPrinterEnumeratorWin ()
 ~nsPrinterEnumeratorWin ()
void initPrintSettingsFromPrinter (in wstring aPrinterName, in nsIPrintSettings aPrintSettings)
 Initializes certain settings from the native printer into the PrintSettings These settings include, but are not limited to: Page Orientation Page Size Number of Copies.
void enumeratePrinters (out PRUint32 aCount,[retval, array, size_is(aCount)] out wstring aResult)
 Returns an array of the names of all installed printers.
void displayPropertiesDlg (in wstring aPrinter, in nsIPrintSettings aPrintSettings)

Public Attributes

readonly attribute wstring defaultPrinterName
 The name of the default printer This name must be in the list of printer names returned by "availablePrinters".

Private Member Functions

nsresult DoEnumeratePrinters (PRBool aDoExtended, PRUint32 *aCount, PRUnichar ***aResult)

Detailed Description

Definition at line 92 of file nsDeviceContextSpecWin.h.


Constructor & Destructor Documentation

Definition at line 830 of file nsDeviceContextSpecWin.cpp.

{
}

Definition at line 834 of file nsDeviceContextSpecWin.cpp.

{
  // Do not free printers here
  // GlobalPrinters::GetInstance()->FreeGlobalPrinters();
}

Member Function Documentation

void nsIPrinterEnumerator::displayPropertiesDlg ( in wstring  aPrinter,
in nsIPrintSettings  aPrintSettings 
) [inherited]
nsresult nsPrinterEnumeratorWin::DoEnumeratePrinters ( PRBool  aDoExtended,
PRUint32 aCount,
PRUnichar ***  aResult 
) [private]
void nsIPrinterEnumerator::enumeratePrinters ( out PRUint32  aCount,
[retval, array, size_is(aCount)] out wstring  aResult 
) [inherited]

Returns an array of the names of all installed printers.

Parameters:
aCountreturns number of printers returned
aResultreturns array of names
Returns:
void
void nsIPrinterEnumerator::initPrintSettingsFromPrinter ( in wstring  aPrinterName,
in nsIPrintSettings  aPrintSettings 
) [inherited]

Initializes certain settings from the native printer into the PrintSettings These settings include, but are not limited to: Page Orientation Page Size Number of Copies.


Member Data Documentation

The name of the default printer This name must be in the list of printer names returned by "availablePrinters".

Definition at line 121 of file nsIPrintOptions.idl.


The documentation for this class was generated from the following files: