MainFrm.h
上传用户:daoqigc
上传日期:2021-04-20
资源大小:2795k
文件大小:2k
- //---------------------------------------------------------------------------
- #ifndef MainFrmH
- #define MainFrmH
- //---------------------------------------------------------------------------
- #include <vclClasses.hpp>
- #include <vclControls.hpp>
- #include <vclStdCtrls.hpp>
- #include <vclForms.hpp>
- #include "RVEdit.hpp"
- #include "RichView.hpp"
- #include "RVScroll.hpp"
- #include <vclExtCtrls.hpp>
- #include <vclComCtrls.hpp>
- #include <vclDialogs.hpp>
- #include "RVStyle.hpp"
- #include "RVOfficeCnv.hpp"
- //---------------------------------------------------------------------------
- class TfrmMain : public TForm
- {
- __published: // IDE-managed Components
- TRichViewEdit *rve;
- TPanel *Panel1;
- TButton *btnOpen;
- TButton *btnSave;
- TProgressBar *pb;
- TOpenDialog *od;
- TRVStyle *rvs;
- TRVOfficeConverter *rvc;
- TSaveDialog *sd;
- void __fastcall FormCreate(TObject *Sender);
- void __fastcall btnOpenClick(TObject *Sender);
- void __fastcall btnSaveClick(TObject *Sender);
- void __fastcall rvcConverting(TObject *Sender, int Percent);
- void __fastcall rveReadHyperlink(TCustomRichView *Sender,
- const AnsiString Target, const AnsiString Extras, TRVLoadFormat DocFormat,
- int &StyleNo, int &ItemTag, AnsiString &ItemName);
-
- void __fastcall rveJump(TObject *Sender, int id);
- void __fastcall rveWriteHyperlink(TCustomRichView *Sender, int id,
- TCustomRVData *RVData, int ItemNo, TRVSaveFormat SaveFormat,
- AnsiString &Target, AnsiString &Extras);
- private: // User declarations
- public: // User declarations
- __fastcall TfrmMain(TComponent* Owner);
- };
- //---------------------------------------------------------------------------
- extern TfrmMain *frmMain;
- //---------------------------------------------------------------------------
- #endif