Back to index
|Obligatory virtual destructor for polymorphic objects. |
|virtual nsresult||SetNumCopies (int aNumCopies)=0|
|Set the number of copies for this print job. |
|virtual void||SetJobTitle (const PRUnichar *aTitle)|
|Set the print job title. |
|virtual nsresult||StartSubmission (FILE **aHandle)=0|
|Begin submitting a print job. |
|virtual nsresult||FinishSubmission ()=0|
|Finish submitting a print job. |
|virtual nsresult||Init (nsIDeviceContextSpecPS *aContext)=0|
|Initialize an object from a device context spec. |
Finish submitting a print job.
The caller must call this after calling StartSubmission() and writing the text of the print job to the file handle. The return value indicates the overall success or failure of the print operation.
Initialize an object from a device context spec.
This must be called before any of the public methods.
|aContext||The device context spec describing the desired print job.|
Set the print job title.
Some printing systems accept a job title which is displayed on a banner page, in a print queue listing, etc.
|aTitle||The job title.|
Reimplemented in nsPrintJobCUPS.
Set the number of copies for this print job.
Some printing systems allow setting this out of band, instead of embedding it into the postscript.
|aNumCopies||Number of copies requested. Values <= 1 are interpreted as "do not specify a copy count to the printing system" when possible, or else as one copy.|
Begin submitting a print job.
|aHandle||If the return value is NS_OK, this will be filled in with a file handle which the caller should use to write the text of the print job. The file handle may not support seeking. The caller must not close the file handle.|