function out=getinfo(c)
%GETINFO returns an information structure about the component
%   I=GETINFO(CSLSNAPSHOT)
%
%   I.Name - component informal name
%   I.Type - component general category 2-letter code
%   I.Desc - short description of the component
%   I.ValidChildren - shows whether or not component can have children
%          ValidChildren={logical(0)} for no children
%          ValidChildren={logical(1)} if children are allowed
%   I.att - component attributes
%   I.attx - information about component attributes
%   I.ref - reference structure
%   I.x - temporary attribute page handle structure


%   Copyright (c) 1997-2000 by The MathWorks, Inc.
%   $Revision: 1.8 $  $Date: 2000/03/23 19:37:53 $

out=getprotocomp(c);

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

out.Name = xlate('System Snapshot');
out.Type = 'SL';
out.Desc = xlate('Inserts a picture of a Simulink system.');

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

out.att.format='AUTOSL';
out.att.PaperOrientation='portrait';
out.att.ImageSize='dynamic';
out.att.PaperSize=[5 3];
out.att.PaperUnits='inches';
out.att.isPrintFrame=logical(0);
out.att.PrintFrameName='rptdefaultframe.fig';
out.att.CaptionType='$none';
out.att.CaptionString='';

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%-----------------------
%FORMAT
%Image format for the snapshot.
%AUTOSL (the default) references preferences.format.ImageSL
allFormats=getimgformat(c,'ALLSL');
out.attx.format.String='Image file format';
out.attx.format.enumValues={allFormats.ID};
out.attx.format.enumNames={allFormats.name};

out.attx.ImageSize.String='Image size';
out.attx.ImageSize.enumValues={'dynamic' 'manual'};
out.attx.ImageSize.enumNames={'Dynamic (same size as on-screen) ',...
      'Manual'};
out.attx.ImageSize.UIcontrol='radiobutton';

out.attx.PaperSize.String='';

out.attx.PaperUnits.String='';
out.attx.PaperUnits.enumValues={'inches' ...
      'centimeters' 'points'};
out.attx.PaperUnits.UIcontrol='popupmenu';

out.attx.isPrintFrame.String='Use printframe: ';

out.attx.PrintFrameName.String='';
out.attx.PrintFrameName.Ext='.fig';

out.attx.PaperOrientation.String='Paper orientation';
out.attx.PaperOrientation.enumValues={'' ...
      'portrait' 'landscape'};
out.attx.PaperOrientation.enumNames={'Use system orientation' ...
      'Portrait' 'Landscape'};
out.attx.PaperOrientation.UIcontrol='radiobutton';

out.attx.CaptionType.String='Caption ';
out.attx.CaptionType.enumValues={'$none','$auto','$manual'};
out.attx.CaptionType.enumNames={
   'No caption'
   'Automatic (use system description)'
   'Manual: '};
out.attx.CaptionType.UIcontrol='radiobutton';

out.attx.CaptionString.String='';
out.attx.CaptionString.isParsedText=logical(1);

