Function

TfrmTemplateEditor.AutoDel

Module

fTemplateEditor

Last Modified

7/15/2014 3:26:44 PM

Visibility

Protected

Owner

TfrmTemplateEditor

Declaration

function AutoDel(Template: TTemplate): boolean;

Calls Hierarchy


TfrmTemplateEditor.AutoDel
 └TTemplate.GetBoilerplate
   └GetTemplateBoilerplate

Called-By Hierarchy


               TfrmTemplateEditor.AutoDel
       TfrmTemplateEditor.sbDeleteClick┤ 
TfrmTemplateEditor.mnuNodeDeleteClick┤ │ 
     TfrmTemplateEditor.tvTreeKeyDown┘ │ 
         TfrmTemplateEditor.edtNameExit┘ 

Calls

Name Declaration Comments
TTemplate.GetBoilerplate function GetBoilerplate: string; -

Called-By

Name Declaration Comments
TfrmTemplateEditor.edtNameExit procedure edtNameExit(Sender: TObject); -
TfrmTemplateEditor.sbDeleteClick procedure sbDeleteClick(Sender: TObject); -


Source

3206  function TfrmTemplateEditor.AutoDel(Template: TTemplate): boolean;
3207  begin
3208    if (assigned(Template)) then
3209      Result := (((Template.ID = '0') or (Template.ID = '')) and
3210        (Template.PrintName = NewTemplateName) and
3211        (Template.Boilerplate = ''))
3212    else
3213      Result := FALSE;
3214  end;