time | Calls | line |
---|
| | 1 | function pt = printtemplate( varargin )
|
| | 2 | %PRINTTEMPLATE Constructor for PrintTemplate objects.
|
| | 3 | % PrintTemplate is an object used to encapsulate settings and methods
|
| | 4 | % to format Figures and models during output. This constructor defines
|
| | 5 | % each class variable and supplies default values. Methods of this object
|
| | 6 | % will be called during the export process to manipulate Handle Graphics
|
| | 7 | % and Simulink model properties to achieve the desired output.
|
| | 8 | %
|
| | 9 | % See also PRINT, @PRINTJOB.
|
| | 10 |
|
| | 11 | % Copyright 1984-2002 The MathWorks, Inc.
|
| | 12 |
|
< 0.001 | 1 | 13 | if nargin == 1 && (isa(varargin{1}, 'printtemplate') || isstruct(varargin{1}))
|
| | 14 | %Copy creation
|
| | 15 | pt = varargin{1};
|
| | 16 | return
|
| | 17 | end
|
| | 18 |
|
< 0.001 | 1 | 19 | pt.VersionNumber = 1.0;
|
| | 20 |
|
< 0.001 | 1 | 21 | pt.Name = ''; %Name for this template
|
< 0.001 | 1 | 22 | pt.FrameName = ''; %Name of printframe, if any, to use
|
| | 23 |
|
| | 24 | %Lines and Text objects do not look good dithered, user can ask for them not to be.
|
< 0.001 | 1 | 25 | pt.DriverColor = 0; %True if want Lines and Text left in color
|
| | 26 |
|
< 0.001 | 1 | 27 | pt.AxesFreezeTicks = 0; %True if Axes output with same tick marks as on screen
|
< 0.001 | 1 | 28 | pt.tickState = {}; %Cell array of Axes handles and XYZtickMode values
|
< 0.001 | 1 | 29 | pt.AxesFreezeLimits = 0; %True if Axes output with same limits as on screen
|
< 0.001 | 1 | 30 | pt.limState = {}; %Cell array of Axes handles and XYZlimMode values
|
| | 31 |
|
< 0.001 | 1 | 32 | pt.Loose = 0; %Use loose bounding box for PS and Ghostscript drivers
|
< 0.001 | 1 | 33 | pt.CMYK = 0; %Use CMYK colors in PS and Ghostscript drivers instead of RGB
|
< 0.001 | 1 | 34 | pt.Append = 0; %Append to existing PS file without overwriting
|
< 0.001 | 1 | 35 | pt.Adobecset = 0; %Use Adobe PS default character set encoding
|
< 0.001 | 1 | 36 | pt.PrintUI = 1; %Print user interface controls
|
< 0.001 | 1 | 37 | pt.Renderer = 'auto'; %Print using a specific renderer
|
< 0.001 | 1 | 38 | pt.ResolutionMode = 'auto'; %Print using a specified resolution
|
< 0.001 | 1 | 39 | pt.DPI = 0; %Resolution to use when ResolutionMode is 'manual'
|
< 0.001 | 1 | 40 | pt.FileName = 'untitled'; %The name last used to save this object to disk
|
< 0.001 | 1 | 41 | pt.Destination = 'printer'; %'file' | 'printer'; where last PRINT command exported object
|
| | 42 | %Gets name of last printer used from appdata, or preferences when available
|
< 0.001 | 1 | 43 | pt.PrintDriver = ''; %Driver used when this Figure was last printed
|
| | 44 |
|
< 0.001 | 1 | 45 | pt.DebugMode = 0; %Boolean true to output diagnostics while printing.
|
< 0.001 | 1 | 46 | pt.Tag = 'printtemplate'; %Use for printtemplate identification
|
Other subfunctions in this file are not included in this listing.