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

// (DO NOT EDIT: machine generated header) 'SMI2XML.pas' rev: 24.00 (Win32)

#ifndef Smi2xmlHPP
#define Smi2xmlHPP

#pragma delphiheader begin
#pragma option push
#pragma option -w-      // All warnings off
#pragma option -Vx      // Zero-length empty class member 
#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
#include <System.Variants.hpp>	// Pascal unit

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

namespace Smi2xml
{
//-- type declarations -------------------------------------------------------
class DELPHICLASS TSMIXMLTags;
#pragma pack(push,4)
class PASCALIMPLEMENTATION TSMIXMLTags : public System::Classes::TPersistent
{
	typedef System::Classes::TPersistent inherited;
	
private:
	bool FCaseSensitive;
	System::UnicodeString FRecordsTag;
	System::UnicodeString FRecordTag;
	System::UnicodeString FRowTag;
	bool FSubNodes;
	
protected:
	bool __fastcall SameStrings(const System::UnicodeString s1, const System::UnicodeString s2);
	
public:
	__fastcall virtual TSMIXMLTags(void);
	virtual void __fastcall Assign(System::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};
	__property bool SubNodes = {read=FSubNodes, write=FSubNodes, default=0};
public:
	/* TPersistent.Destroy */ inline __fastcall virtual ~TSMIXMLTags(void) { }
	
};

#pragma pack(pop)

enum TSMIBLOBEncoding : unsigned char { ibeNone, ibeEncode64 };

class DELPHICLASS TSMImportFromXML;
class PASCALIMPLEMENTATION TSMImportFromXML : public Smibase::TSMImportBaseComponent
{
	typedef Smibase::TSMImportBaseComponent inherited;
	
private:
	System::Classes::TStrings* lstFileRows;
	System::Classes::TStrings* lstCaptions;
	System::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(System::Classes::TComponent* AOwner);
	__fastcall virtual ~TSMImportFromXML(void);
	virtual void __fastcall Assign(System::Classes::TPersistent* Source);
	__classmethod virtual System::UnicodeString __fastcall Extension();
	__classmethod virtual System::UnicodeString __fastcall FillFileFilters();
	virtual void __fastcall DetectAutoMapping(void);
	virtual void __fastcall LoadSpecificationFromStrings(System::Classes::TStrings* lstSpec);
	virtual void __fastcall SaveSpecificationToStream(System::Classes::TStream* Stream, const System::UnicodeString SpecName);
	
__published:
	__property TSMIXMLTags* XMLTags = {read=FXMLTags, write=SetXMLTags};
	__property SourceFileName = {default=0};
	__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, System::Classes::TStrings* Captions, System::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, System::Classes::TStrings* lstFields, Smibase::TPreviewCallback CallBack, TSMIXMLTags* XMLTags);
}	/* namespace Smi2xml */
#if !defined(DELPHIHEADER_NO_IMPLICIT_NAMESPACE_USE) && !defined(NO_USING_NAMESPACE_SMI2XML)
using namespace Smi2xml;
#endif
#pragma pack(pop)
#pragma option pop

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