class CPrinterDriver : public CBase |
Provides access to a store containing printer specification data.
Printer specification data is held as a direct file store, and usually has a .pdr file type.
A printer driver is implemented as two files: a PDR file containing the printer specification data and a PDL file containing the code to link the printer with the graphics printing system.
The printer specification data is generated by compiling a text file (a .pd file type) using the pdrtran tool. Printer specification data defines:
the name of the associated PDL
a list of one or more models supported by this driver, identified by name and UID
device information such as the size of the device, typeface information for each model, including which typefaces are supported, the heights available in each typeface and the width of each character in a font.
Public Member Functions | |
---|---|
~CPrinterDriver() | |
IMPORT_C void | Close() |
IMPORT_C CPrinterDevice * | CreatePrinterDeviceL(TUid) |
IMPORT_C CPrinterDriverUI * | CreatePrinterDriverUIL() |
IMPORT_C TPrinterModelEntry | Model(TInt) |
IMPORT_C CPrinterDriver * | NewL() |
IMPORT_C TInt | NumModels() |
IMPORT_C void | OpenPdrL(const TDesC &) |
CPrinterDevice * | PrinterDevice() |
Private Member Functions | |
---|---|
CPrinterDriver() | |
void | DeletePrinterDevice() |
void | DoCreatePrinterDeviceL(TUid) |
void | DoOpenPdrL(const TDesC &) |
void | LoadLibraryL(RLibrary &, const TDesC &, TUid) |
Private Attributes | |
---|---|
RFs | iFs |
TPrinterModelHeader * | iModelList |
TInt | iNumModels |
RLibrary | iPdlLibrary |
TFileName | iPdlName |
TUid | iPdlUid |
CFileStore * | iPdrStore |
CPrinterDevice * | iPrinterDevice |
RLibrary | iUdlLibrary |
IMPORT_C CPrinterDevice * | CreatePrinterDeviceL | ( | TUid | aModelUid | ) |
TUid aModelUid |
void | DoCreatePrinterDeviceL | ( | TUid | aModelUid | ) | [private] |
TUid aModelUid |
void | LoadLibraryL | ( | RLibrary & | aLibrary, |
const TDesC & | aExt, | |||
TUid | aUid2 | |||
) | [private] |
CPrinterDevice * | PrinterDevice | ( | ) | [inline] |
Gets the associated graphics printer device.
The physical graphics device used for printing.