Function

TTemplate.GetBoilerplate

Module

uTemplates

Last Modified

7/15/2014 3:26:44 PM

Visibility

Protected

Owner

TTemplate

Declaration

function GetBoilerplate: string;

Calls Hierarchy


TTemplate.GetBoilerplate
 └GetTemplateBoilerplate

Called-By Hierarchy


                               TTemplate.GetBoilerplate
                                         SaveTemplate┤ 
                                   SaveAllTemplates┤ │ 
                 TfrmTemplateEditor.btnApplyClick┤ │ │ 
             TfrmTemplateEditor.mnuRefreshClick┘ │ │ │ 
                    TfrmTemplateEditor.btnOKClick┤ │ │ 
                TfrmTemplateEditor.FormCloseQuery┘ │ │ 
                       TfrmTemplateEditor.InitTrees┘ │ 
                    TfrmTemplateEditor.FormCreate┤   │ 
                   TfrmTemplateEditor.RefreshData┘   │ 
             TfrmTemplateEditor.mnuRefreshClick┘     │ 
                            TTemplate.FullBoilerplate┤ 
                                  TTemplate.GetText┤ │ 
                     ExecuteTemplateOrBoilerPlate┤ │ │ 
                           TfrmDrawers.InsertText┤ │ │ 
                TfrmDrawers.tvTemplatesDblClick┤ │ │ │ 
                 TfrmDrawers.tvTemplatesKeyDown┤ │ │ │ 
                     TfrmDrawers.NewRECDragDrop┤ │ │ │ 
               TfrmDrawers.SetRichEditControl┘ │ │ │ │ 
                      TfrmDCSumm.FormCreate┤   │ │ │ │ 
                    TfrmConsults.FormCreate┤   │ │ │ │ 
                     TfrmSurgery.FormCreate┤   │ │ │ │ 
                       TfrmNotes.FormCreate┘   │ │ │ │ 
             TfrmDrawers.mnuInsertTemplateClick┘ │ │ │ 
       TfrmDCSumm.popSummMemoInsTemplateClick┤   │ │ │ 
     TfrmConsults.popNoteMemoInsTemplateClick┤   │ │ │ 
      TfrmSurgery.popNoteMemoInsTemplateClick┤   │ │ │ 
        TfrmNotes.popNoteMemoInsTemplateClick┘   │ │ │ 
              TfrmDrawers.mnuPreviewTemplateClick┤ │ │ 
             TfrmDCSumm.popSummMemoPreviewClick┤ │ │ │ 
           TfrmConsults.popNoteMemoPreviewClick┤ │ │ │ 
            TfrmSurgery.popNoteMemoPreviewClick┤ │ │ │ 
              TfrmNotes.popNoteMemoPreviewClick┘ │ │ │ 
                 TfrmDrawers.mnuCopyTemplateClick┤ │ │ 
                 TfrmTemplateEditor.mnuBPTryClick┘ │ │ 
               TfrmTemplateEditor.tvTreeKeyDown┘   │ │ 
              TfrmTemplateEditor.DisplayBoilerplate┤ │ 
                      TfrmTemplateEditor.ShowInfo┤ │ │ 
                                  EditTemplates┤ │ │ │ 
          TfrmDCSumm.popSummMemoTemplateClick┤ │ │ │ │ 
               TfrmDCSumm.mnuNewTemplateClick┤ │ │ │ │ 
             TfrmDCSumm.mnuEditTemplatesClick┤ │ │ │ │ 
       TfrmDCSumm.mnuEditSharedTemplatesClick┤ │ │ │ │ 
         TfrmDCSumm.mnuNewSharedTemplateClick┤ │ │ │ │ 
        TfrmConsults.popNoteMemoTemplateClick┤ │ │ │ │ 
           TfrmConsults.mnuEditTemplatesClick┤ │ │ │ │ 
             TfrmConsults.mnuNewTemplateClick┤ │ │ │ │ 
     TfrmConsults.mnuEditSharedTemplatesClick┤ │ │ │ │ 
       TfrmConsults.mnuNewSharedTemplateClick┤ │ │ │ │ 
            TfrmDrawers.mnuEditTemplatesClick┤ │ │ │ │ 
              TfrmDrawers.mnuNewTemplateClick┤ │ │ │ │ 
         TfrmSurgery.popNoteMemoTemplateClick┤ │ │ │ │ 
            TfrmSurgery.mnuEditTemplatesClick┤ │ │ │ │ 
              TfrmSurgery.mnuNewTemplateClick┤ │ │ │ │ 
      TfrmSurgery.mnuEditSharedTemplatesClick┤ │ │ │ │ 
        TfrmSurgery.mnuNewSharedTemplateClick┤ │ │ │ │ 
           TfrmNotes.popNoteMemoTemplateClick┤ │ │ │ │ 
              TfrmNotes.mnuEditTemplatesClick┤ │ │ │ │ 
                TfrmNotes.mnuNewTemplateClick┤ │ │ │ │ 
        TfrmNotes.mnuEditSharedTemplatesClick┤ │ │ │ │ 
          TfrmNotes.mnuNewSharedTemplateClick┘ │ │ │ │ 
                TfrmTemplateEditor.tvTreeChange┤ │ │ │ 
             TfrmTemplateEditor.cbActiveClick┤ │ │ │ │ 
               TfrmTemplateEditor.tvTreeEnter┤ │ │ │ │ 
             TfrmTemplateEditor.cbShHideClick┤ │ │ │ │ 
           TfrmTemplateEditor.cbActiveClick┘ │ │ │ │ │ 
            TfrmTemplateEditor.cbPerHideClick┤ │ │ │ │ 
           TfrmTemplateEditor.cbActiveClick┘ │ │ │ │ │ 
             TfrmTemplateEditor.sbDeleteClick┤ │ │ │ │ 
      TfrmTemplateEditor.mnuNodeDeleteClick┤ │ │ │ │ │ 
           TfrmTemplateEditor.tvTreeKeyDown┘ │ │ │ │ │ 
                    TfrmTemplateEditor.Resync┤ │ │ │ │ 
             TfrmTemplateEditor.btnNewClick┤ │ │ │ │ │ 
                         EditTemplates...┤ │ │ │ │ │ │ 
       TfrmTemplateEditor.mnuAutoGenClick┤ │ │ │ │ │ │ 
TfrmTemplateEditor.mnuImportTemplateClick┘ │ │ │ │ │ │ 
           TfrmTemplateEditor.sbMoveUpClick┤ │ │ │ │ │ 
         TfrmTemplateEditor.sbMoveDownClick┤ │ │ │ │ │ 
        TfrmTemplateEditor.sbDeleteClick...┤ │ │ │ │ │ 
          TfrmTemplateEditor.tvTreeDragDrop┤ │ │ │ │ │ 
       TfrmTemplateEditor.sbCopyLeftClick┤ │ │ │ │ │ │ 
      TfrmTemplateEditor.sbCopyRightClick┤ │ │ │ │ │ │ 
     TfrmTemplateEditor.mnuNodePasteClick┘ │ │ │ │ │ │ 
            TfrmTemplateEditor.mnuSortClick┤ │ │ │ │ │ 
          TfrmTemplateEditor.TemplateLocked┘ │ │ │ │ │ 
            TfrmTemplateEditor.FormCreate┘   │ │ │ │ │ 
             TfrmTemplateEditor.SharedEditing┤ │ │ │ │ 
              TfrmTemplateEditor.FormCreate┤ │ │ │ │ │ 
       TfrmTemplateEditor.cbEditSharedClick┘ │ │ │ │ │ 
             TfrmTemplateEditor.cbxTypeChange┘ │ │ │ │ 
                TfrmTemplateEditor.reBoilChange┤ │ │ │ 
             TfrmTemplateEditor.mnuAutoGenClick┤ │ │ │ 
      TfrmTemplateEditor.mnuImportTemplateClick┘ │ │ │ 
                  TfrmTemplateEditor.edtGapChange┘ │ │ 
                    TfrmTemplateEditor.reBoilChange┘ │ 
                                  TTemplate.TrueClone┤ 
                                    TTemplate.Clone┘ │ 
                         TfrmTemplateEditor.Clone┘   │ 
              TfrmTemplateEditor.btnNewClick...┤     │ 
            TfrmTemplateEditor.edtNameOldChange┤     │ 
          TfrmTemplateEditor.tvTreeNodeEdited┤ │     │ 
           TfrmTemplateEditor.mnuAutoGenClick┘ │     │ 
               TfrmTemplateEditor.cbActiveClick┤     │ 
              TfrmTemplateEditor.cbExcludeClick┤     │ 
                TfrmTemplateEditor.edtGapChange┤     │ 
               TfrmTemplateEditor.sbMoveUpClick┤     │ 
             TfrmTemplateEditor.sbMoveDownClick┤     │ 
            TfrmTemplateEditor.sbDeleteClick...┤     │ 
           TfrmTemplateEditor.tvTreeDragDrop...┤     │ 
                                      ..(rec)..┤     │ 
                TfrmTemplateEditor.reBoilChange┤     │ 
               TfrmTemplateEditor.reNotesChange┤     │ 
                     TfrmTemplateEditor.cbClick┤     │ 
        TfrmTemplateEditor.cbDisplayOnlyClick┤ │     │ 
          TfrmTemplateEditor.cbFirstLineClick┤ │     │ 
        TfrmTemplateEditor.cbOneItemOnlyClick┤ │     │ 
       TfrmTemplateEditor.cbHideDlgItemsClick┤ │     │ 
          TfrmTemplateEditor.cbHideItemsClick┤ │     │ 
             TfrmTemplateEditor.cbIndentClick┤ │     │ 
               TfrmTemplateEditor.cbLockClick┘ │     │ 
               TfrmTemplateEditor.cbxTypeChange┤     │ 
            TfrmTemplateEditor.cbxRemDlgsChange┘     │ 
                           TTemplate.DialogProperties┤ 
                          TTemplate.ItemBoilerplate┤ │ 
                     TTemplate.FullBoilerplate...┘ │ │ 
                       TTemplate.FullBoilerplate...┘ │ 
                               TTemplate.CanExportXML┤ 
                                          ..(rec)..┤ │ 
          TfrmTemplateEditor.mnuExportTemplateClick┘ │ 
                   TTemplate.UpdateImportedFieldNames┤ 
                                          ..(rec)..┤ │ 
          TfrmTemplateEditor.mnuImportTemplateClick┘ │ 
                       TfrmTemplateEditor.ShowInfo...┤ 
             TfrmTemplateEditor.DisplayBoilerplate...┤ 
                      TfrmTemplateEditor.reBoilChange┤ 
                           TfrmTemplateEditor.AutoDel┘ 
                TfrmTemplateEditor.sbDeleteClick...┤   
                     TfrmTemplateEditor.edtNameExit┘   

Calls

Name Declaration Comments
GetTemplateBoilerplate procedure GetTemplateBoilerplate(ID: string); -

Called-By

Name Declaration Comments
TfrmTemplateEditor.AutoDel function AutoDel(Template: TTemplate): boolean; -
TTemplate.CanExportXML function CanExportXML(Data, Fields: TStringList; IndentLevel: integer = 0): boolean; -
TTemplate.DialogProperties function DialogProperties(Parent: TTemplate = nil): string; -
TfrmTemplateEditor.DisplayBoilerplate procedure DisplayBoilerplate(Node: TTreeNode); -
TTemplate.FullBoilerplate function FullBoilerplate: string; -
TfrmTemplateEditor.reBoilChange procedure reBoilChange(Sender: TObject); -
SaveTemplate procedure SaveTemplate(Template: TTemplate; Idx: integer; ErrorList: TStrings = nil); -
TfrmTemplateEditor.ShowInfo procedure ShowInfo(Node: TTreeNode); -
TTemplate.TrueClone function TrueClone: TTemplate; -
TTemplate.UpdateImportedFieldNames procedure UpdateImportedFieldNames(List: TStrings); -


Source

1792  function TTemplate.GetBoilerplate: string;
1793  begin
1794    Result := '';
1795    if FIsReminderDialog or FIsCOMObject then exit;
1796    if(RealType in [ttDoc, ttGroup]) then
1797    begin
1798      if(not FBoilerPlateLoaded) then
1799      begin
1800        StatusText('Loading Template Boilerplate...');
1801        try
1802          GetTemplateBoilerplate(FID);
1803          FBoilerplate := RPCBrokerV.Results.Text;
1804          FBoilerPlateLoaded := TRUE;
1805        finally
1806          StatusText('');
1807        end;
1808      end;
1809      Result := FBoilerplate;
1810    end;
1811  end;