#include <mw/prninf.h>
class MPrintProcessObserver |
Public Member Functions | |
---|---|
pure virtual void | NotifyBandPrinted(TInt, TInt, TInt) |
pure virtual void | NotifyPrintEnded(TInt) |
pure virtual void | NotifyPrintStarted(TPrintParameters) |
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().
void | NotifyBandPrinted | ( | TInt | aPercentageOfPagePrinted, |
TInt | aCurrentPageNum, | |||
TInt | aCurrentCopyNum | |||
) | [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.
Parameter | Description |
---|---|
aPercentageOfPagePrinted | The percentage of the page that has been printed. |
aCurrentPageNum | The number of the page currently being printed. |
aCurrentCopyNum | The number of the copy currently being printed (if multiple copies are being printed). |
void | NotifyPrintEnded | ( | TInt | anErrorCode | ) | [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.
Parameter | Description |
---|---|
anErrorCode | KErrNone if the print job completed successfully, otherwise another of the system-wide error codes. |
void | NotifyPrintStarted | ( | TPrintParameters | aPrintParams | ) | [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.
Parameter | Description |
---|---|
aPrintParams | The parameters for the print job. |