Location:
gdi.h
Link against:
gdi.lib
CPrinterControl
Supported from 5.0
Printer control interface.
This abstract base class acts as the interface between a CPrinterDevice
object and the printer. It creates the context for, and controls the progress and termination of the print job.
Only those who need to add new printer drivers should write derived classes. After instantiation of such a class, using CPrinterDevice::CreateControlL()
, the object can be accessed via the iControl
member of CPrinterDevice
.
|
Defined in CPrinterControl
:
AbortPrint()
, BandsPerPage()
, EMoreOnPage
, ENoMoreOnPage
, QueueEndPrint()
, QueueGetBand()
, TMoreOnPage
, ~CPrinterControl()
Inherited from CBase
:
operator new()
~CPrinterControl();
Destructor.
It frees all resources owned by the object, prior to its destruction.
virtual TInt BandsPerPage()=0;
Gets the number of bands per page.
|
virtual TMoreOnPage QueueGetBand(TRequestStatus& aStatus, TBandAttributes& aBand)=0;
Prints the next band on the page.
This is an asynchronous function.
|
|
virtual void QueueEndPrint(TRequestStatus& aStatus)=0;
Terminates the print process.
This is an asynchronous function and is called when no more bands in the document remain to be printed.
Note that all bands have been printed when no more pages or copies remain to be printed, and QueueGetBand()
returns ENoMoreToPrint
.
|
virtual void AbortPrint()=0;
Aborts the print process before it has completed.
This function should be called if QueueGetBand()
reports an error.
TMoreOnPage
More on page to print flags.
|