Changeset 541 for cprs/branches/tmg-cprs/CPRS-Chart/Templates
- Timestamp:
- Aug 12, 2009, 7:14:16 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cprs/branches/tmg-cprs/CPRS-Chart/Templates/uTemplates.pas
r453 r541 284 284 ConsultsTemplate: TTemplate = nil; 285 285 ProceduresTemplate: TTemplate = nil; 286 bUsingHTMLMode : boolean = false; //kt 8/09 286 287 287 288 implementation … … 291 292 XMLUtils, fTemplateImport, Word97, uSpell, rCore, uConst, ORCtrls, uEventHooks, 292 293 fReminderDialog, rODBase 293 , DKLang //kt294 , rHTMLTools, DKLang //kt 294 295 ; 295 296 … … 1943 1944 // FDialogAborted := DoTemplateDialog(TmpSL, 'Template: ' + FPrintName, TemplatePreviewMode); <-- original line. //kt 8/8/2007 1944 1945 FDialogAborted := DoTemplateDialog(TmpSL, DKLangConstW('uTemplates_Templatex') + FPrintName, TemplatePreviewMode); //kt added 8/8/2007 1946 if bUsingHTMLMode then begin //kt 8/09 1947 if rHTMLTools.IsHTML(TmpSL.Text) then begin //kt 8/09 1948 TmpSL.Text := rHTMLTools.FixHTMLCRLF(TmpSL.Text); //kt 8/09 1949 TmpSL.Text := rHTMLTools.ProtectHTMLSpaces(TmpSL.Text); //kt 8/09 1950 TmpSL.Text := rHTMLTools.UnwrapHTML(TmpSL.Text); //kt 8/09 1951 end else begin //kt 8/09 1952 TmpSL.Text := rHTMLTools.Text2HTML(TmpSL); //kt 8/09 1953 end; //kt 8/09 1954 bUsingHTMLMode := false; //force reset each call. //kt 8/09 1955 end; //kt 8/09 1945 1956 Result := TmpSL.Text; 1946 1957 finally
Note:
See TracChangeset
for help on using the changeset viewer.