Symbian
Symbian Developer Library

SYMBIAN OS V9.4

Feedback

[Index] [Previous] [Next]

#include <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:

Inherited from CBase:

See also:


Construction and destruction


CPrinterDriverUI()

protected: IMPORT_C CPrinterDriverUI();

Description

[Top]


Member functions


BeforePrintL()

IMPORT_C virtual 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()

IMPORT_C virtual void AfterPrintL();

Description

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


SetPropertiesL()

IMPORT_C virtual 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()

IMPORT_C virtual 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(CPrinterDevice *)

virtual TInt SetPrinterDevice(CPrinterDevice *aPrinterDevice)=0;

Description

Sets the printer device.

Parameters

CPrinterDevice *aPrinterDevice

The printer device.

Return value

TInt