Procedure

TTemplate.SetFirstLine

Module

uTemplates

Last Modified

7/15/2014 3:26:44 PM

Visibility

Protected

Owner

TTemplate

Declaration

procedure SetFirstLine(const Value: boolean);

Calls Hierarchy


TTemplate.SetFirstLine
 ├TTemplate.CanModify
 │ ├TTemplate.ValidID
 │ └LockTemplate
 └TTemplate.ValidID

Called-By Hierarchy


                    TTemplate.SetFirstLine
              TfrmTemplateEditor.cbClick┘ 
 TfrmTemplateEditor.cbDisplayOnlyClick┤   
   TfrmTemplateEditor.cbFirstLineClick┤   
 TfrmTemplateEditor.cbOneItemOnlyClick┤   
TfrmTemplateEditor.cbHideDlgItemsClick┤   
   TfrmTemplateEditor.cbHideItemsClick┤   
      TfrmTemplateEditor.cbIndentClick┤   
        TfrmTemplateEditor.cbLockClick┘   

Calls

Name Declaration Comments
TTemplate.CanModify function CanModify: boolean; -
TTemplate.ValidID function ValidID: boolean; -

Called-By

Name Declaration Comments
TfrmTemplateEditor.cbClick procedure cbClick(Sender: TCheckBox; Index: integer); -


Source

2295  procedure TTemplate.SetFirstLine(const Value: boolean);
2296  begin
2297    if(FFirstLine <> Value) and CanModify then
2298    begin
2299      with FBkup do
2300      begin
2301        if(not SavedFirstLine) and ValidID then
2302        begin
2303          BFirstLine := FFirstLine;
2304          SavedFirstLine := TRUE;
2305        end;
2306      end;
2307      FFirstLine := Value;
2308    end;
2309  end;