Dialogs
The Gadgets package comes with predefined dialogs for previewing the print job or selecting the PostScript printer capabilities.
The
IlvPostScriptPrinterDialog class allows you to select various PostScript printer capabilities such as:

Output Filename

Orientation

Color Mode

Paper Format

Collate Mode

Number of copies

Margins
Usage example: (see
Figure 13.1).
IlvPostScriptPrinterDialog psdialog(display);
psdialog.get();
IlvPrinter::Orientation orientation = psdialog.getOrientation();
IlBoolean collate = psdialog.isCollateOn();
Figure 13.1 PS Printer Example
The
IlvPrinterPreviewDialog class allows you to preview a printing job (see
Figure 13.2). It supports various modes such as:

One page preview

Two page preview

Tiled preview
A custom zooming factor can be specified.
Figure 13.2 Print Preview Example
Version 5.8
Copyright © 2014, Rogue Wave Software, Inc. All Rights Reserved.