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

// (DO NOT EDIT: machine generated header) 'Smi2xml.pas' rev: 21.00

#ifndef Smi2xmlHPP
#define Smi2xmlHPP

#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 <Classes.hpp>	// Pascal unit
#include <Db.hpp>	// Pascal unit
#include <Smibase.hpp>	// Pascal unit
#include <Variants.hpp>	// Pascal unit

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

namespace Smi2xml
{
//-- type declarations -------------------------------------------------------
class DELPHICLASS TSMIXMLTags;
class PASCALIMPLEMENTATION TSMIXMLTags : public Classes::TPersistent
{
	typedef Classes::TPersistent inherited;
	
private:
	bool FCaseSensitive;
	System::UnicodeString FRecordsTag;
	System::UnicodeString FRecordTag;
	System::UnicodeString FRowTag;
	
protected:
	bool __fastcall SameStrings(const System::UnicodeString s1, const System::UnicodeString s2);
	
public:
	__fastcall virtual TSMIXMLTags(void);
	virtual void __fastcall Assign(Classes::TPersistent* Source);
	
__published:
	__property bool CaseSensitive = {read=FCaseSensitive, write=FCaseSensitive, default=0};
	__property System::UnicodeString RecordsTag = {read=FRecordsTag, write=FRecordsTag};
	__property System::UnicodeString RecordTag = {read=FRecordTag, write=FRecordTag};
	__property System::UnicodeString RowTag = {read=FRowTag, write=FRowTag};
public:
	/* TPersistent.Destroy */ inline __fastcall virtual ~TSMIXMLTags(void) { }
	
};


#pragma option push -b-
enum TSMIBLOBEncoding { ibeNone, ibeEncode64 };
#pragma option pop

class DELPHICLASS TSMImportFromXML;
class PASCALIMPLEMENTATION TSMImportFromXML : public Smibase::TSMImportBaseComponent
{
	typedef Smibase::TSMImportBaseComponent inherited;
	
private:
	Classes::TStrings* lstFileRows;
	Classes::TStrings* lstCaptions;
	Classes::TList* lst;
	int intCurRow;
	System::UnicodeString strFromFile;
	System::UnicodeString FEncoding;
	TSMIBLOBEncoding FBLOBEncoding;
	TSMIXMLTags* FXMLTags;
	void __fastcall SetXMLTags(TSMIXMLTags* Value);
	
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);
	virtual bool __fastcall BLOBIsMIME(void);
	
public:
	__fastcall virtual TSMImportFromXML(Classes::TComponent* AOwner);
	__fastcall virtual ~TSMImportFromXML(void);
	__classmethod virtual System::UnicodeString __fastcall Extension();
	__classmethod virtual System::UnicodeString __fastcall FillFileFilters();
	virtual void __fastcall DetectAutoMapping(void);
	
__published:
	__property TSMIXMLTags* XMLTags = {read=FXMLTags, write=SetXMLTags};
	__property SourceFileName;
	__property System::UnicodeString Encoding = {read=FEncoding, write=FEncoding};
	__property TSMIBLOBEncoding BLOBEncoding = {read=FBLOBEncoding, write=FBLOBEncoding, default=1};
	__property RowFirst = {default=1};
	__property RowLast = {default=2147483647};
};


//-- var, const, procedure ---------------------------------------------------
extern PACKAGE void __fastcall LoadXMLFile(bool IsLimited, Classes::TStrings* Captions, Classes::TStrings* lst, System::UnicodeString FileName, System::UnicodeString TableName, System::UnicodeString &Encoding, int intFirstRow, int intLastRow, int intRowPreview, TSMIXMLTags* XMLTags);
extern PACKAGE void __fastcall LoadXMLPreview(System::TObject* grid, System::UnicodeString strFieldList, System::UnicodeString strFileName, System::UnicodeString TableName, int intFirstRow, int intLastRow, int intRowPreview, bool IsASCII, Classes::TStrings* lstFields, Smibase::TPreviewCallback CallBack, TSMIXMLTags* XMLTags);

}	/* namespace Smi2xml */
using namespace Smi2xml;
#pragma pack(pop)
#pragma option pop

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