home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 1997 May / Pcwk0597.iso / borland / cb / setup / cbuilder / data.z / MDIEDIT.H < prev    next >
C/C++ Source or Header  |  1997-02-28  |  3KB  |  90 lines

  1. //----------------------------------------------------------------------------
  2. //Borland C++Builder
  3. //Copyright (c) 1987, 1997 Borland International Inc. All Rights Reserved.
  4. //----------------------------------------------------------------------------
  5. //---------------------------------------------------------------------------
  6. #ifndef MDIEditH
  7. #define MDIEditH
  8. //---------------------------------------------------------------------------
  9. #include <vcl\Classes.hpp>
  10. #include <vcl\Controls.hpp>
  11. #include <vcl\StdCtrls.hpp>
  12. #include <vcl\Forms.hpp>
  13. #include <vcl\ComCtrls.hpp>
  14. #include <vcl\Menus.hpp>
  15. #include <vcl\Dialogs.hpp>
  16. #include <vcl\Printers.hpp>
  17. #include <vcl\Clipbrd.hpp>
  18. //---------------------------------------------------------------------------
  19. class TEditForm : public TForm
  20. {
  21. __published:    // IDE-managed Components 
  22.     TRichEdit *Editor;
  23.     TMainMenu *MainMenu1;
  24.     TMenuItem *File1;
  25.     TMenuItem *New1;
  26.     TMenuItem *Open1;
  27.     TMenuItem *Close1;
  28.     TMenuItem *Save1;
  29.     TMenuItem *Saveas1;
  30.     TMenuItem *Print1;
  31.     TMenuItem *Printersetup1;
  32.     TMenuItem *N2;
  33.     TMenuItem *Exit1;
  34.     TMenuItem *Edit1;
  35.     TMenuItem *Cut1;
  36.     TMenuItem *Copy1;
  37.     TMenuItem *Paste1;
  38.     TMenuItem *Delete1;
  39.     TMenuItem *N3;
  40.     TMenuItem *Selectall1;
  41.     TMenuItem *Character1;
  42.     TMenuItem *Left1;
  43.     TMenuItem *Right1;
  44.     TMenuItem *Center1;
  45.     TMenuItem *N4;
  46.     TMenuItem *Wordwrap1;
  47.     TMenuItem *N5;
  48.     TMenuItem *Font1;
  49.     TPopupMenu *PopupMenu1;
  50.     TMenuItem *Cut2;
  51.     TMenuItem *Copy2;
  52.     TMenuItem *Paste2;
  53.     TSaveDialog *SaveFileDialog;
  54.     TFontDialog *FontDialog1;
  55.     TPrinterSetupDialog *PrinterSetupDialog1;
  56.     TPrintDialog *PrintDialog1;
  57.     void __fastcall New1Click(TObject *Sender);
  58.     void __fastcall Open1Click(TObject *Sender);
  59.     void __fastcall Close1Click(TObject *Sender);
  60.     void __fastcall Exit1Click(TObject *Sender);
  61.     void __fastcall Save1Click(TObject *Sender);
  62.     void __fastcall Saveas1Click(TObject *Sender);
  63.     void __fastcall Print1Click(TObject *Sender);
  64.     void __fastcall Printersetup1Click(TObject *Sender);
  65.     void __fastcall Cut1Click(TObject *Sender);
  66.     void __fastcall Copy1Click(TObject *Sender);
  67.     void __fastcall Paste1Click(TObject *Sender);
  68.     void __fastcall Delete1Click(TObject *Sender);
  69.     void __fastcall Selectall1Click(TObject *Sender);
  70.     void __fastcall Font1Click(TObject *Sender);
  71.     void __fastcall Wordwrap1Click(TObject *Sender);
  72.     void __fastcall Left1Click(TObject *Sender);
  73.     void __fastcall Edit1Click(TObject *Sender);
  74.     void __fastcall FormClose(TObject *Sender, TCloseAction &Action);
  75.     void __fastcall FormCloseQuery(TObject *Sender, bool &CanClose);
  76.     
  77.     void __fastcall FormCreate(TObject *Sender);
  78. private:    // User declarations
  79.     AnsiString PathName;
  80. public:        // User declarations
  81.     void    __fastcall Open(const AnsiString AFileName);
  82.     virtual __fastcall TEditForm(TComponent* Owner);
  83.     
  84. };
  85. //---------------------------------------------------------------------------
  86. extern TEditForm *EditForm;
  87. //---------------------------------------------------------------------------
  88.  
  89. #endif
  90.