|
||
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(CPrinterPort *)
, 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()
Aborts the print process before it has completed.BandsPerPage()
Gets the number of bands per page.CPrinterControl(CPrinterPort *)
EMoreOnPage
Indicates there is more to print on the current page. ENoMoreOnPage
Indicates there is no more to print on the current page. ENotPrinting
Not printing. EPrinting
Printing. QueueEndPrint(TRequestStatus &)
Terminates the print process.QueueGetBand(TRequestStatus &,TBandAttributes &)
Prints the next band on the page.TMoreOnPage
Flags indicating whether there is more on the page to print. TState
State flags. iPrinterPort
Printer port. iState
Printing state. ~CPrinterControl()
Destructor.Inherited from CBase
:
Delete(CBase *)
Deletes the specified object.Extension_(TUint,TAny *&,TAny *)
Extension function operator new(TUint)
Allocates the object from the heap and then initialises its contents to binary z...operator new(TUint,TAny *)
Initialises the object to binary zeroes.operator new(TUint,TLeave)
Allocates the object from the heap and then initialises its contents to binary z...operator new(TUint,TLeave,TUint)
Allocates the object from the heap and then initialises its contents to binary z...operator new(TUint,TUint)
Allocates the object from the heap and then initialises its contents to binary z...CPrinterDevice
Printer graphics device interface.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 CPrinterControl::QueueGetBand(TRequestStatus &,TBandAttributes &)
returns ENoMoreToPrint.
|
virtual void AbortPrint()=0;
Aborts the print process before it has completed.
This function should be called if CPrinterControl::QueueGetBand(TRequestStatus &,TBandAttributes &)
reports an error.
TMoreOnPage
Flags indicating whether there is more on the page to print.
|
protected: CPrinterPort * iPrinterPort;
Printer port.