function out=getinfo(c)
%GETINFO returns a structure containing information about the component
%   I=GETINFO(C)
%
%   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.4 $  $Date: 2000/03/23 19:36:42 $


out=getprotocomp(c);

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

out.Name = xlate('Model Property Table');
out.Type = 'SL';
out.Desc = xlate('Inserts a table which reports on model property-value pairs');

%%%%%%%%%%%%%% Set the .att structure %%%%%%%%%%%%% 

r=rptproptable;
%getattributes sets up an empty .att structure
c.att=getattributes(r,'',1,1);
%applypresettable fills in the .att structure
c=applypresettable(r,c,'Default');
%reassign c.att to out.att
out.att=c.att;

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%property tables require no .attx values