home *** CD-ROM | disk | FTP | other *** search
/ Delphi Magazine Collection 2001 / Delphi Magazine Collection 20001 (2001).iso / DISKS / Issue49 / Factory / FReportDataExport.pas < prev    next >
Encoding:
Pascal/Delphi Source File  |  1999-06-16  |  1.5 KB  |  60 lines

  1. {* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
  2.   TechInsite Pty. Ltd.
  3.   PO Box 429, Abbotsford, Melbourne. 3067 Australia
  4.   Phone: +61 3 9419 6456
  5.   Fax:   +61 3 9419 1682
  6.   Web:   www.techinsite.com.au
  7.   EMail: peter_hinrichsen@techinsite.com.au
  8.  
  9.   Created: 01/06/1999
  10.  
  11.   Notes: Concrete report for factory demo
  12.  
  13. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *}
  14. unit FReportDataExport;
  15.  
  16. interface
  17.  
  18. uses
  19.   Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
  20.   FReportAbstract, StdCtrls, Buttons;
  21.  
  22. type
  23.   TFormReportDataExport = class(TFormReportAbstract)
  24.   private
  25.     { Private declarations }
  26.   public
  27.     { Public declarations }
  28.     procedure Execute; override ;
  29.   end;
  30.  
  31. implementation
  32. uses
  33.    FactoryReport
  34.   ,FactoryConcreteReport 
  35.   ,Constants
  36.   ;
  37.  
  38. {$R *.DFM}
  39.  
  40. //----------------------------------------------------------
  41. procedure TFormReportDataExport.Execute;
  42. begin
  43.   Caption := cgStrReportNameDataExport ;
  44.   MemoReport.Lines.Add( 'A demonstration of the ' +
  45.                         cgStrReportNameDataExport + ' report.' ) ;
  46.   inherited ;
  47. end;
  48.  
  49. initialization
  50.   // Register report with the simple factory
  51.   gFactoryReport.RegisterReport( cgStrReportNameDataExport,
  52.                                  TFormReportDataExport ) ;
  53.  
  54.   // Register report with the abstract / concrete factory
  55.   gFactoryConcreteReport.RegisterClass( cgStrReportNameDataExport,
  56.                                  TFormReportDataExport ) ;
  57.  
  58. end.
  59.  
  60.