class printerSetupDialog

superclass(es) object
subclass(es) -
description This class displays the standard printer setup dialog. It displays the current printer and let the user choose another printer or change printer options.
see also printer - printerCanvas - printJobDialog - canvas

tasks

Before the printer setup dialog can be displayed an instance of the printer class must be allocated, this instance is used by the dialog to retrieve the current printer settings and store the new settings chosen by the user. If the dialog is closed by pressing on the "Ok" button the settings are stored in the printer instance, the printer instance can be assigned by the method putPrinter/1.

To show the dialog the method execute/2 must be used.

methods

putPrinter(Printer)

func Assign the printer instance to use for retrieving and storing printer settings.
pre The variable Printer must refer to an instance of the class printer.
post The value of the parameter Printer was stored.

execute(Parent, Output)

func Show the printer setup dialog.
pre The variable Parent must refer to an instance of the class window.
post If the user pressed the "Ok" button the boolean value of true was assigned to Output, else was false assigned.