//---------------------------------------------------------------------------
#ifndef MainFormH
#define MainFormH
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include "Word_2K_SRVR.h"
//#include "Excel_2K_SRVR.h"
#include <ComCtrls.hpp>
#include <ExtCtrls.hpp>
//---------------------------------------------------------------------------
class TfrmMain : public TForm
{
__published: // IDE-managed Components
TPageControl *pgeMain;
TTabSheet *shtWord;
TTabSheet *shtExcel;
TLabel *lblInputFilename;
TLabel *lblOutputFilename;
TButton *btnProcess;
TStatusBar *StatusBar1;
TPanel *pnlWord;
TListBox *lstOutputFiles;
TListBox *lstInputFiles;
TSplitter *Splitter1;
TLabel *Label1;
TLabel *Label2;
TCheckBox *chkShowWord;
TCheckBox *chkKeepWord;
TEdit *edtDocumentCount;
TLabel *Label3;
TUpDown *spnDocumentCount;
TProgressBar *barProgress;
TCheckBox *chkRunningInstance;
TCheckBox *chkNewInstance;
void __fastcall btnProcessClick(TObject *Sender);
void __fastcall FormCreate(TObject *Sender);
private:
TWordApplication* WordApp;
void UpgradeDocFile(const AnsiString &InFile, const AnsiString& OutFile);
bool IsProcessing;
public:
__fastcall TfrmMain(TComponent* Owner);
__fastcall ~TfrmMain(void);
};
//---------------------------------------------------------------------------
extern PACKAGE TfrmMain *frmMain;
//---------------------------------------------------------------------------
#endif