time | Calls | line |
---|
| | 1 | function [ options, devices, extensions, classes, colorDevs, destinations, descriptions, clipsupport] = printtables( pj )
|
| | 2 | %PRINTTABLES Method to create cell arrays of data on drivers and options available.
|
| | 3 | % Tables are for use in input validation of arguments to PRINT command.
|
| | 4 | %
|
| | 5 | % See also PRINT
|
| | 6 |
|
| | 7 | % Copyright 1984-2015 The MathWorks, Inc.
|
| | 8 |
|
< 0.001 | 36 | 9 | if ~nargin
|
| | 10 | pj = printjob();
|
< 0.001 | 36 | 11 | end
|
| | 12 |
|
0.002 | 36 | 13 | options = localBuildOptions;
|
< 0.001 | 36 | 14 | if nargout == 1
|
| | 15 | % passing in an empty device table since we're not going to use it in
|
| | 16 | % this context.
|
0.002 | 12 | 17 | options = postProcessPrinttables(pj, [], options);
|
< 0.001 | 12 | 18 | return; %shortcircuit - no need to do the rest
|
< 0.001 | 24 | 19 | end
|
| | 20 |
|
0.005 | 24 | 21 | device_table = getDefaultDeviceList();
|
| | 22 |
|
| | 23 | %Set them in table as cell arrays of cell arrays for convenience of entry,
|
| | 24 | %now break them up into individual cell arrays for ease of use.
|
| | 25 | %devices = device_table(:, 1 );
|
| | 26 | %extensions = device_table(:, 2 );
|
| | 27 | %classes = device_table(:, 3 );
|
| | 28 | %colorDevs = device_table(:, 4 );
|
| | 29 | %destinations = device_table(:, 5 );
|
| | 30 | %descriptions = device_table(:, 6 );
|
| | 31 | %clipsupport = device_table(:, 7);
|
0.032 | 24 | 32 | [options, devices, extensions, classes, colorDevs, destinations, descriptions, clipsupport] = ...
|
| 24 | 33 | postProcessPrinttables(pj, device_table, options);
|
< 0.001 | 24 | 34 | end
|
Other subfunctions in this file are not included in this listing.