Symbian
Symbian OS Library

SYMBIAN OS V9.3

[Index] [Spacer] [Previous] [Next]



Location: GDI.H
Link against: gdi.lib

Class CPrinterDriverUI

class CPrinterDriverUI : public CBase;

Description

Printer specific user interface.

The class is used to implement a printer specific setup dialog. A concrete implementation of the class is supplied in a UDL (i.e. a UI DLL).

CPrinterDriver::CreatePrinterDriverUIL() is used to construct a CPrinterDriverUI object for a specific printer. (This function calls the ordinal 1 exported function of the UDL that performs the construction of the CPrinterDriverUI object).

Derivation

Members

Defined in CPrinterDriverUI:
AfterPrintL(), BeforePrintL(), CPrinterDriverUI(), CanSetProperties(), SetPrinterDevice(), SetPropertiesL()

Inherited from CBase:
Delete(), Extension_(), operator new()

See also:


Construction and destruction


CPrinterDriverUI()

protected: IMPORT_C CPrinterDriverUI();

Description

[Top]


Member functions


BeforePrintL()

virtual IMPORT_C TBool BeforePrintL();

Description

Provides an opportunity for a dialog to be put up before printing begins.

Return value

TBool

ETrue, if printing is to continue; EFalse, if printing is to be cancelled. The default implementation returns ETrue.


AfterPrintL()

virtual IMPORT_C void AfterPrintL();

Description

Provides an opportunity for a dialog to be put up after printing is complete. The default implementation is empty.


SetPropertiesL()

virtual IMPORT_C void SetPropertiesL();

Description

Provides an opportunity for a dialog to be put up to capture or change printer properties. The default implementation is empty.


CanSetProperties()

virtual IMPORT_C TBool CanSetProperties();

Description

Tests whether printer properties can be set.

Return value

TBool

ETrue, if printer properties can be set; EFalse, otherwise. The default implementation returns EFalse.


SetPrinterDevice()

virtual TInt SetPrinterDevice(CPrinterDevice *aPrinterDevice)=0;

Description

Sets the printer device.

Parameters

CPrinterDevice *aPrinterDevice

The printer device.

Return value

TInt