|
Original Symbian headers
Selected EUSER, Window Server, networking, graphics and device declarations
|
Printer control interface. More...
#include <gdi.h>
Public Types | |
| enum | TMoreOnPage { EMoreOnPage , ENoMoreOnPage } |
| Flags indicating whether there is more on the page to print. More... | |
Public Member Functions | |
| IMPORT_C | ~CPrinterControl () |
| Destructor. | |
| 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. | |
| virtual void | QueueEndPrint (TRequestStatus &aStatus)=0 |
| Terminates the print process. | |
| virtual void | AbortPrint ()=0 |
| Aborts the print process before it has completed. | |
Public Member Functions inherited from CBase | |
| CBase () | |
| Default constructor. | |
| virtual IMPORT_C | ~CBase () |
| Virtual destructor. | |
| TAny * | operator new (TUint aSize, TAny *aBase) __NO_THROW |
| Initialises the object to binary zeroes. | |
| TAny * | operator new (TUint aSize) __NO_THROW |
| Allocates the object from the heap and then initialises its contents to binary zeroes. | |
| TAny * | operator new (TUint aSize, TLeave) |
| Allocates the object from the heap and then initialises its contents to binary zeroes. | |
| TAny * | operator new (TUint aSize, TUint aExtraSize) __NO_THROW |
| Allocates the object from the heap and then initialises its contents to binary zeroes. | |
| TAny * | operator new (TUint aSize, TLeave, TUint aExtraSize) |
| Allocates the object from the heap and then initialises its contents to binary zeroes. | |
Protected Types | |
| enum | TState { ENotPrinting , EPrinting } |
| State flags. More... | |
Protected Member Functions | |
| IMPORT_C | CPrinterControl (CPrinterPort *aPrinterPort) |
Protected Member Functions inherited from CBase | |
| virtual IMPORT_C TInt | Extension_ (TUint aExtensionId, TAny *&a0, TAny *a1) |
| Extension function. | |
Protected Attributes | |
| TState | iState |
| Printing state. | |
| CPrinterPort * | iPrinterPort |
| Printer port. | |
Additional Inherited Members | |
Static Public Member Functions inherited from CBase | |
| static IMPORT_C void | Delete (CBase *aPtr) |
| Deletes the specified object. | |
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.
|
protected |
| IMPORT_C CPrinterControl::~CPrinterControl | ( | ) |
Destructor.
It frees all resources owned by the object, prior to its destruction.
(generated from Symbian Developer Library)
|
protected |
|
pure virtual |
Aborts the print process before it has completed.
This function should be called if QueueGetBand() reports an error.
|
pure virtual |
Gets the number of bands per page.
|
pure virtual |
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.
| aStatus | Request status object. On successful completion contains KErrNone, otherwise another of the system-wide error codes. |
|
pure virtual |
Prints the next band on the page.
This is an asynchronous function.
| aStatus | Request status object. On successful completion contains KErrNone, otherwise another of the system-wide error codes. |
| aBand | On return, indicates the attributes of the band, including its height and width and whether or not the device will ignore one or other of graphics or text output. This information may be used by applications to draw more efficiently, or may be ignored |
|
protected |