//---------------------------------------------------------------------------
#ifndef MainFrmH
#define MainFrmH
//---------------------------------------------------------------------------
#include <vcl\Classes.hpp>
#include <vcl\Controls.hpp>
#include <vcl\StdCtrls.hpp>
#include <vcl\Forms.hpp>
#include "RVEdit.hpp"
#include "RichView.hpp"
#include "RVScroll.hpp"
#include <vcl\ExtCtrls.hpp>
#include <vcl\ComCtrls.hpp>
#include <vcl\Dialogs.hpp>
#include "RVStyle.hpp"
#include "RVOfficeCnv.hpp"
#include <Graphics.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, TRVRawByteString &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
