MPrintProcessObserver Class Reference

class MPrintProcessObserver

Print progress and status notification interface class.

The notification functions are called before, during and after a print or print preview operation, to give notification of its progress.

The print process observer will often be the GUI's standard print progress or print preview dialog.

An object of a class which implements this interface may be passed as a parameter to CPrintSetup::StartPrintL(), or to CPrintSetup::StartPreviewPrintL().

Member Functions Documentation

NotifyBandPrinted(TInt, TInt, TInt)

voidNotifyBandPrinted(TIntaPercentageOfPagePrinted,
TIntaCurrentPageNum,
TIntaCurrentCopyNum
)[pure virtual]

Notifies that a band is about to be printed.

It may be used to display print progress information, including the current page number. It is called immediately before each band is printed.

Parameters

TInt aPercentageOfPagePrintedThe percentage of the page that has been printed.
TInt aCurrentPageNumThe number of the page currently being printed.
TInt aCurrentCopyNumThe number of the copy currently being printed (if multiple copies are being printed).

NotifyPrintEnded(TInt)

voidNotifyPrintEnded(TIntanErrorCode)[pure virtual]

Notifies that the print or print preview operation has completed.

It may be used to display information about how the operation completed, for example any errors that occurred. It is called once, immediately after the print job terminates.

Parameters

TInt anErrorCodeKErrNone if the print job completed successfully, otherwise another of the system-wide error codes.

NotifyPrintStarted(TPrintParameters)

voidNotifyPrintStarted(TPrintParametersaPrintParams)[pure virtual]

Notifies that a print or print preview operation is about to begin.

It may be used to display information about the document to be printed. It is called once, immediately before printing or print previewing begins.

When subclassing, add variables to store initialisation information as required.

Parameters

TPrintParameters aPrintParamsThe parameters for the print job.