// CodeGear C++Builder
// Copyright (c) 1995, 2011 by Embarcadero Technologies, Inc.
// All rights reserved

// (DO NOT EDIT: machine generated header) 'SMI2HTML.pas' rev: 23.00 (Win32)

#ifndef Smi2htmlHPP
#define Smi2htmlHPP

#pragma delphiheader begin
#pragma option push
#pragma option -w-      // All warnings off
#pragma option -Vx      // Zero-length empty class member functions
#pragma pack(push,8)
#include <System.hpp>	// Pascal unit
#include <SysInit.hpp>	// Pascal unit
#include <System.Classes.hpp>	// Pascal unit
#include <Data.DB.hpp>	// Pascal unit
#include <SMIBase.hpp>	// Pascal unit

//-- user supplied -----------------------------------------------------------

namespace Smi2html
{
//-- type declarations -------------------------------------------------------
#pragma option push -b-
enum TSMIExtTag : unsigned char { etImage, etURL };
#pragma option pop

typedef System::Set<TSMIExtTag, TSMIExtTag::etImage, TSMIExtTag::etURL>  TSMIExtTags;

class DELPHICLASS TSMImportFromHTML;
class PASCALIMPLEMENTATION TSMImportFromHTML : public Smibase::TSMImportBaseComponent
{
	typedef Smibase::TSMImportBaseComponent inherited;
	
private:
	System::Classes::TStrings* lstFileRows;
	System::Classes::TStrings* lstCaptions;
	System::Classes::TList* lst;
	int intCurRow;
	System::UnicodeString strCaptionRow;
	System::UnicodeString strFromFile;
	TSMIExtTags FExtTagsParse;
	
protected:
	virtual void __fastcall BeforeImport(void);
	virtual void __fastcall AfterImport(void);
	virtual bool __fastcall LoadRecord(void);
	virtual void __fastcall GoFirst(void);
	virtual void __fastcall GoNext(void);
	virtual bool __fastcall NeedMore(void);
	virtual int __fastcall GetTotalCount(void);
	virtual System::Variant __fastcall GetFieldValue(const System::Variant &v);
	virtual bool __fastcall NotDefined(System::UnicodeString &strProperty);
	
public:
	__fastcall virtual TSMImportFromHTML(System::Classes::TComponent* AOwner);
	__classmethod virtual System::UnicodeString __fastcall Extension();
	__classmethod virtual System::UnicodeString __fastcall FillFileFilters();
	virtual void __fastcall DetectAutoMapping(void);
	
__published:
	__property TSMIExtTags ExtTagsParse = {read=FExtTagsParse, write=FExtTagsParse, default=0};
	__property SourceFileName;
	__property RowFirst = {default=1};
	__property RowLast = {default=2147483647};
	__property RowFieldNames = {default=1};
public:
	/* TSMImportBaseComponent.Destroy */ inline __fastcall virtual ~TSMImportFromHTML(void) { }
	
};


//-- var, const, procedure ---------------------------------------------------
extern PACKAGE TSMIExtTags DefExtTags;
extern PACKAGE void __fastcall LoadHTMLPreview(System::TObject* grid, System::UnicodeString strFieldList, System::UnicodeString strFileName, System::UnicodeString TableName, int intFirstRow, int intLastRow, int intFieldNameRow, int intRowPreview, bool IsASCII, System::Classes::TStrings* lstFields, Smibase::TPreviewCallback CallBack, TSMIExtTags ExtTags);

}	/* namespace Smi2html */
#if !defined(DELPHIHEADER_NO_IMPLICIT_NAMESPACE_USE) && !defined(NO_USING_NAMESPACE_SMI2HTML)
using namespace Smi2html;
#endif
#pragma pack(pop)
#pragma option pop

#pragma delphiheader end.
//-- end unit ----------------------------------------------------------------
#endif	// Smi2htmlHPP
