time | Calls | line |
---|
| | 1 | function [ device_table ] = getDefaultDeviceList()
|
| | 2 | % List of all supported devices used for input validation.
|
| | 3 | %
|
| | 4 | %The first column contains the device name
|
| | 5 | %the second column contains the default filename extension,
|
| | 6 | %the third column indicates what type of output device is employed,
|
| | 7 | %the fourth indicates Monochrome or Color device, and
|
| | 8 | %the fifth is what do with output for that driver, P for print or X for export
|
| | 9 | %the sixth is a brief description of the device
|
| | 10 | %the seventh indicates whether or not the format supports copy to clipboard
|
| | 11 | %
|
| | 12 | % Copyright 2012 The MathWorks, Inc.
|
| | 13 | %
|
< 0.001 | 48 | 14 | device_table = [
|
| | 15 | %Postscript device options
|
| | 16 | {'ps' 'ps' 'PS' 'M' 'P' 'Postscript', 0}
|
| | 17 | {'psc' 'ps' 'PS' 'C' 'P' 'Postscript Color', 0}
|
| | 18 | {'ps2' 'ps' 'PS' 'M' 'P' 'Postscript Level 2', 0}
|
| | 19 | {'ps2c' 'ps' 'PS' 'C' 'P' ['Postscript' ...
|
| | 20 | ' Level 2 Color'], 0}
|
| | 21 | {'psc2' 'ps' 'PS' 'C' 'P' ['Postscript' ...
|
| | 22 | ' Level 2 Color'], 0}
|
| | 23 | {'eps' 'eps' 'EP' 'M' 'X' 'EPS file', 0}
|
| | 24 | {'epsc' 'eps' 'EP' 'C' 'X' 'EPS Color file', 0}
|
| | 25 | {'eps2' 'eps' 'EP' 'M' 'X' 'EPS Level 2 file', 0}
|
| | 26 | {'eps2c' 'eps' 'EP' 'C' 'X' '', 0}
|
| | 27 | {'epsc2' 'eps' 'EP' 'C' 'X' 'EPS Level 2 Color file', 0}
|
| | 28 |
|
| | 29 | %Other built-in device options
|
| | 30 | {'hpgl' 'hgl' 'BI' 'C' 'P' 'HPGL', 0}
|
| | 31 | {'ill' 'ai' 'BI' 'C' 'X' 'Adobe Illustrator file', 0}
|
| | 32 | {'mfile' '' 'BI' 'C' 'X' '', 0}
|
| | 33 | {'tiff' 'tif' 'IM' 'C' 'X' 'TIFF image', 0}
|
| | 34 | {'tiffnocompression' 'tif' 'IM' 'C' 'X' 'TIFF no compression image', 0}
|
| | 35 | {'bmp' 'bmp' 'IM' 'C' 'X' '', 0}
|
| | 36 | {'hdf' 'hdf' 'IM' 'C' 'X' '', 0}
|
| | 37 | {'png' 'png' 'IM' 'C' 'X' 'Portable Network Graphics file', 0}
|
| | 38 | {'svg' 'svg' 'QT' 'C' 'X' 'Scalable Vector Graphics file', 0}
|
| | 39 | ];
|
< 0.001 | 48 | 40 | if ~feature('ShowFigureWindows')
|
| | 41 | device_table = [ device_table ;
|
| | 42 | {'jpeg' 'jpg' 'GS' 'C' 'X' 'JPEG image', 0}
|
| | 43 | ];
|
< 0.001 | 48 | 44 | else
|
0.002 | 48 | 45 | device_table = [ device_table ;
|
| | 46 | {'jpeg' 'jpg' 'IM' 'C' 'X' 'JPEG image', 0}
|
| | 47 | ];
|
< 0.001 | 48 | 48 | end
|
| | 49 |
|
| | 50 | %GhostScript device options
|
0.002 | 48 | 51 | device_table = [ device_table ;
|
| | 52 | {'laserjet' 'jet' 'GS' 'M' 'P' 'HP LaserJet', 0}
|
| | 53 | {'ljetplus' 'jet' 'GS' 'M' 'P' 'HP LaserJet Plus', 0}
|
| | 54 | {'ljet2p' 'jet' 'GS' 'M' 'P' 'HP LaserJet IId/IIp', 0}
|
| | 55 | {'ljet3' 'jet' 'GS' 'M' 'P' 'HP LaserJet III', 0}
|
| | 56 | {'ljet4' 'jet' 'GS' 'M' 'P' 'HP LaserJet 4/5L/5P', 0}
|
| | 57 | {'pxlmono' 'jet' 'GS' 'M' 'P' 'HP LaserJet 5/6', 0}
|
| | 58 | {'cdjcolor' 'jet' 'GS' 'C' 'P' ['HP DeskJet 500C 24bit' ...
|
| | 59 | 'color'], 0}
|
| | 60 | {'cdjmono' 'jet' 'GS' 'M' 'P' 'HP DeskJet 500C b+w', 0}
|
| | 61 | {'deskjet' 'jet' 'GS' 'M' 'P' 'HP DeskJet/DeskJet Plus', 0}
|
| | 62 | {'cdj550' 'jet' 'GS' 'C' 'P' ['HP DeskJet 550C/' ...
|
| | 63 | '560C/660C/660Cse'], 0}
|
| | 64 | {'djet500' 'jet' 'GS' 'M' 'P' 'HP DeskJet 500C/540C', 0}
|
| | 65 | {'cdj500' 'jet' 'GS' 'C' 'P' 'HP DeskJet 500C', 0}
|
| | 66 | {'paintjet' 'jet' 'GS' 'C' 'P' 'HP PaintJet', 0}
|
| | 67 | {'pjetxl' 'jet' 'GS' 'C' 'P' 'HP PaintJet XL', 0}
|
| | 68 | {'pjxl' 'jet' 'GS' 'C' 'P' 'HP PaintJet XL (alternate)', 0}
|
| | 69 | {'pjxl300' 'jet' 'GS' 'C' 'P' 'HP PaintJet XL300', 0}
|
| | 70 | {'dnj650c' 'jet' 'GS' 'C' 'P' 'HP DesignJet 650C', 0}
|
| | 71 | {'bj10e' 'jet' 'GS' 'M' 'P' 'Canon BubbleJet 10e', 0}
|
| | 72 | {'bj200' 'jet' 'GS' 'C' 'P' 'Canon BubbleJet 200', 0}
|
| | 73 | {'bjc600' 'jet' 'GS' 'C' 'P' 'Canon Color BubbleJet 600/4000/70', 0}
|
| | 74 | {'bjc800' 'jet' 'GS' 'C' 'P' 'Canon Color BubbleJet 800', 0}
|
| | 75 | {'epson' 'ep' 'GS' 'M' 'P' 'Epson', 0}
|
| | 76 | {'epsonc' 'ep' 'GS' 'C' 'P' 'Epson LQ-2550', 0}
|
| | 77 | {'eps9high' 'ep' 'GS' 'M' 'P' 'Epson 9-pin', 0}
|
| | 78 | {'ibmpro' 'ibm' 'GS' 'M' 'P' 'IBM Proprinter', 0}
|
| | 79 | {'pcxmono' 'pcx' 'GS' 'M' 'X' '', 0}
|
| | 80 | {'pcxgray' 'pcx' 'GS' 'C' 'X' '', 0}
|
| | 81 | {'pcx16' 'pcx' 'GS' 'C' 'X' '', 0}
|
| | 82 | {'pcx256' 'pcx' 'GS' 'C' 'X' '', 0}
|
| | 83 | {'pcx24b' 'pcx' 'GS' 'C' 'X' 'Paintbrush 24-bit file', 0}
|
| | 84 | {'bmpmono' 'bmp' 'GS' 'M' 'X' '', 0}
|
| | 85 | {'bmp16m' 'bmp' 'GS' 'C' 'X' '', 0}
|
| | 86 | {'bmp256' 'bmp' 'GS' 'C' 'X' '', 0}
|
| | 87 | {'pngmono' 'png' 'GS' 'M' 'X' '', 0}
|
| | 88 | {'pnggray' 'png' 'GS' 'C' 'X' '', 0}
|
| | 89 | {'png16m' 'png' 'GS' 'C' 'X' '', 0}
|
| | 90 | {'png256' 'png' 'GS' 'C' 'X' '', 0}
|
| | 91 | {'pbm' 'pbm' 'GS' 'C' 'X' 'Portable Bitmap file', 0}
|
| | 92 | {'pbmraw' 'pbm' 'GS' 'C' 'X' '', 0}
|
| | 93 | {'pgm' 'pgm' 'GS' 'C' 'X' 'Portable Graymap file', 0}
|
| | 94 | {'pgmraw' 'pgm' 'GS' 'C' 'X' '', 0}
|
| | 95 | {'ppm' 'ppm' 'GS' 'C' 'X' 'Portable Pixmap file', 0}
|
| | 96 | {'ppmraw' 'ppm' 'GS' 'C' 'X' '', 0}
|
| | 97 | {'pkm' 'pkm' 'GS' 'C' 'X' 'Portable inKmap file', 0}
|
| | 98 | {'pkmraw' 'pkm' 'GS' 'C' 'X' '', 0}
|
| | 99 | {'tifflzw' 'tif' 'GS' 'C' 'X' '', 0}
|
| | 100 | {'tiffpack' 'tif' 'GS' 'C' 'X' '', 0}
|
| | 101 | {'tiff24nc' 'tif' 'GS' 'C' 'X' '', 0}
|
| | 102 | {'pdfwrite' 'pdf' 'GS' 'C' 'X' 'Portable Document Format', 0}
|
| | 103 | ];
|
| | 104 |
|
< 0.001 | 48 | 105 | if ispc
|
| | 106 | platform_device_table = [
|
| | 107 | {'win' '' 'MW' 'M' 'P' 'Windows', 0}
|
| | 108 | {'winc' '' 'MW' 'C' 'P' 'Color Windows', 0}
|
| | 109 | {'meta' 'emf' 'MW' 'C' 'X' 'Enhanced metafile', 1}
|
| | 110 | {'bitmap' 'bmp' 'MW' 'C' 'X' 'Bitmap file', 1}
|
| | 111 | {'setup' '' 'MW' 'M' '' '', 0}
|
| | 112 | ];
|
| | 113 |
|
< 0.001 | 48 | 114 | else %Unix
|
< 0.001 | 48 | 115 | platform_device_table = ...
|
| | 116 | {'bitmap' 'bmp' 'QT' 'C' 'X' 'Bitmap file', 0};
|
< 0.001 | 48 | 117 | end
|
| | 118 |
|
< 0.001 | 48 | 119 | device_table = [ platform_device_table ; device_table ];
|
< 0.001 | 48 | 120 | end
|
Other subfunctions in this file are not included in this listing.