Procedure

TTemplate.SetOneItemOnly

Module

uTemplates

Last Modified

7/15/2014 3:26:44 PM

Visibility

Protected

Owner

TTemplate

Declaration

procedure SetOneItemOnly(const Value: boolean);

Calls Hierarchy


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

Called-By Hierarchy


                  TTemplate.SetOneItemOnly
              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

2343  procedure TTemplate.SetOneItemOnly(const Value: boolean);
2344  begin
2345    if(FOneItemOnly <> Value) and CanModify then
2346    begin
2347      with FBkup do
2348      begin
2349        if(not SavedOneItemOnly) and ValidID then
2350        begin
2351          BOneItemOnly := FOneItemOnly;
2352          SavedOneItemOnly := TRUE;
2353        end;
2354      end;
2355      FOneItemOnly := Value;
2356    end;
2357  end;