time | calls | line |
---|
| | 1 | function result = setup( pj )
|
| | 2 | %SETUP Open the printer setup dialog.
|
| | 3 | % If the device driver in the PrintJob object is setup, opens the window
|
| | 4 | % system specific dialog for setting options for printing. Normally this
|
| | 5 | % dialog will affect all future printing using the window system's driver
|
| | 6 | % (i.e. Windows drivers), not just the current Figure or model.
|
| | 7 | %
|
| | 8 | % Ex:
|
| | 9 | % err_code = SETUP( pj ); %returns 1 if successfully opened setup
|
| | 10 | % dialog, 0 if not.
|
| | 11 | %
|
| | 12 | % See also PRINT.
|
| | 13 |
|
| | 14 | % Copyright 1984-2012 The MathWorks, Inc.
|
| | 15 |
|
| 6 | 16 | if strcmp('setup', pj.Driver)
|
| | 17 | result = 1;
|
| | 18 | if pj.UseOriginalHGPrinting
|
| | 19 | hardcopy(pj.Handles{1}(1), '-dsetup');
|
| | 20 | else
|
| | 21 | result = 0;
|
| | 22 | end
|
| 6 | 23 | else
|
| 6 | 24 | result = 0;
|
| 6 | 25 | end
|
Other subfunctions in this file are not included in this listing.