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

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

#ifndef SmiutilsHPP
#define SmiutilsHPP

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

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

namespace Smiutils
{
//-- type declarations -------------------------------------------------------
struct TWString
{
	
public:
	System::WideString WString;
	System::TObject* FObject;
};


class DELPHICLASS TWideStrings;
class PASCALIMPLEMENTATION TWideStrings : public System::TObject
{
	typedef System::TObject inherited;
	
public:
	System::WideString operator[](int Index) { return Strings[Index]; }
	
private:
	Classes::TList* FWideStringList;
	System::WideString __fastcall Get(int Index);
	void __fastcall Put(int Index, const System::WideString S);
	System::UnicodeString __fastcall GetText(void);
	
protected:
	virtual System::TObject* __fastcall GetObject(int Index);
	virtual void __fastcall PutObject(int Index, System::TObject* AObject);
	virtual void __fastcall InsertObject(int Index, const System::WideString S, System::TObject* AObject);
	
public:
	__fastcall TWideStrings(void);
	__fastcall virtual ~TWideStrings(void);
	int __fastcall Count(void);
	void __fastcall Clear(void);
	virtual void __fastcall Delete(int Index);
	int __fastcall Add(const System::WideString S);
	virtual int __fastcall AddObject(const System::WideString S, System::TObject* AObject);
	int __fastcall IndexOf(const System::WideString S);
	int __fastcall IndexOfIgnoreCase(const System::WideString S);
	void __fastcall Insert(int Index, const System::WideString S);
	__property System::WideString Strings[int Index] = {read=Get, write=Put/*, default*/};
	__property System::TObject* Objects[int Index] = {read=GetObject, write=PutObject};
	__property System::UnicodeString Text = {read=GetText};
};


//-- var, const, procedure ---------------------------------------------------
#define EWideStringsOutOfBounds L"WideStrings index out of bounds"
extern PACKAGE bool __fastcall DirectoryExists(const System::UnicodeString Name);
extern PACKAGE bool __fastcall ForceDirectories(System::UnicodeString Dir);
extern PACKAGE bool __fastcall SMIOpenSaveFileDialog(unsigned ParentHandle, System::UnicodeString DefExt, const System::UnicodeString Filter, const System::UnicodeString InitialDir, const System::UnicodeString Title, System::UnicodeString &FileName, bool IsOpenDialog);
extern PACKAGE System::UnicodeString __fastcall GetParsedTableName(Db::TDataSet* ds);
extern PACKAGE void __fastcall ReplaceHTMLChars(System::UnicodeString &Value);

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

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