Location:
GDI.H
Link against: gdi.lib
class CPrinterControl : public CBase;
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
.
CBase
- Base class for all classes to be instantiated on the heap
CPrinterControl
- Printer control interface
Defined in CPrinterControl
:
AbortPrint()
, BandsPerPage()
, CPrinterControl()
, EMoreOnPage
, ENoMoreOnPage
, ENotPrinting
, EPrinting
, QueueEndPrint()
, QueueGetBand()
, TMoreOnPage
, TState
, iPrinterPort
, iState
, ~CPrinterControl()
Inherited from CBase
:
Delete()
,
Extension_()
,
operator new()
IMPORT_C ~CPrinterControl();
Destructor.
It frees all resources owned by the object, prior to its destruction.
protected: IMPORT_C CPrinterControl(CPrinterPort *aPrinterPort);
|
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
Flags indicating whether there is more on the page to print.
|
protected: CPrinterPort * iPrinterPort;
Printer port.