Unit1.h
上传用户:daoqigc
上传日期:2021-04-20
资源大小:2795k
文件大小:2k
源码类别:

RichEdit

开发平台:

Delphi

  1. //---------------------------------------------------------------------------
  2. #ifndef Unit1H
  3. #define Unit1H
  4. //---------------------------------------------------------------------------
  5. #include <vclClasses.hpp>
  6. #include <vclOleCtnrs.hpp>
  7. #include <vclControls.hpp>
  8. #include <vclStdCtrls.hpp>
  9. #include <vclForms.hpp>
  10. #include <vclExtCtrls.hpp>
  11. #include "GifImage.hpp"
  12. #include "RichView.hpp"
  13. #include "RVScroll.hpp"
  14. #include "RVStyle.hpp"
  15. #include <vclDialogs.hpp>
  16. #include <vclComCtrls.hpp>
  17. #include <ImgList.hpp>
  18. //---------------------------------------------------------------------------
  19. class TForm1 : public TForm
  20. {
  21. __published: // IDE-managed Components
  22.     TRichView *RichView1;
  23.     TPanel *Panel1;
  24.     TLabel *Label1;
  25.     TLabel *Label2;
  26.     TButton *Button1;
  27.     TButton *Button2;
  28.     TCheckBox *CheckBox1;
  29.     TEdit *Edit1;
  30.     TEdit *Edit2;
  31.     TStatusBar *StatusBar1;
  32.     TOpenDialog *OpenDialog1;
  33.     TSaveDialog *SaveDialog1;
  34.     TImageList *ImageList1;
  35.     TRVStyle *RVStyle1;
  36.     void __fastcall FormCreate(TObject *Sender);
  37.     void __fastcall Button1Click(TObject *Sender);
  38.     void __fastcall RichView1RVFImageListNeeded(TCustomRichView *Sender,
  39.     int ImageListTag, TCustomImageList *&il);
  40.     void __fastcall RichView1RVMouseMove(TObject *Sender, int id);
  41.     void __fastcall RichView1Jump(TObject *Sender, int id);
  42.     void __fastcall Button2Click(TObject *Sender);
  43.     void __fastcall RichView1HTMLSaveImage(TCustomRichView *Sender,
  44.     TCustomRVData *RVData, int ItemNo, const AnsiString Path,
  45.     TColor BackgroundColor, AnsiString &Location, bool &DoDefault);
  46.     void __fastcall RichView1SaveComponentToFile(TCustomRichView *Sender,
  47.           AnsiString Path, TPersistent *SaveMe, TRVSaveFormat SaveFormat,
  48.           AnsiString &OutStr);
  49.     void __fastcall RichView1SaveHTMLExtra(TCustomRichView *Sender,
  50.           TRVHTMLSaveArea Area, bool CSSVersion, AnsiString &HTMLCode);
  51.     void __fastcall RichView1WriteHyperlink(TCustomRichView *Sender,
  52.           int id, TCustomRVData *RVData, int ItemNo,
  53.           TRVSaveFormat SaveFormat, AnsiString &Target,
  54.           AnsiString &Extras);
  55. private: // User declarations
  56. public: // User declarations
  57.     __fastcall TForm1(TComponent* Owner);
  58. };
  59. //---------------------------------------------------------------------------
  60. extern TForm1 *Form1;
  61. //---------------------------------------------------------------------------
  62. #endif