CPrinterDriverUI Class Reference

#include <gdi.h>

Link against: gdi.lib

class CPrinterDriverUI : public CBase

Inherits from

Detailed 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).

See also: CPrinterDriver::CreatePrinterDriverUIL()

Constructor & Destructor Documentation

CPrinterDriverUI ( )

IMPORT_CCPrinterDriverUI()[protected]

Member Function Documentation

AfterPrintL ( )

IMPORT_C voidAfterPrintL()[virtual]

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

BeforePrintL ( )

IMPORT_C TBoolBeforePrintL()[virtual]

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

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

CanSetProperties ( )

IMPORT_C TBoolCanSetProperties()[virtual]

Tests whether printer properties can be set.

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

SetPrinterDevice ( CPrinterDevice * )

TInt SetPrinterDevice(CPrinterDevice *aPrinterDevice)[pure virtual]

Sets the printer device.

Parameters
aPrinterDeviceThe printer device.

SetPropertiesL ( )

IMPORT_C voidSetPropertiesL()[virtual]

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