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

// (DO NOT EDIT: machine generated header) 'Xc12Common5.pas' rev: 28.00 (Windows)

#ifndef Xc12common5HPP
#define Xc12common5HPP

#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 <System.SysUtils.hpp>	// Pascal unit
#include <System.Contnrs.hpp>	// Pascal unit
#include <XLSUtils5.hpp>	// Pascal unit

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

namespace Xc12common5
{
//-- type declarations -------------------------------------------------------
class DELPHICLASS TXLSIndexObject;
#pragma pack(push,4)
class PASCALIMPLEMENTATION TXLSIndexObject : public System::TObject
{
	typedef System::TObject inherited;
	
protected:
	int FIndex;
	
public:
	__property int Index = {read=FIndex, nodefault};
public:
	/* TObject.Create */ inline __fastcall TXLSIndexObject(void) : System::TObject() { }
	/* TObject.Destroy */ inline __fastcall virtual ~TXLSIndexObject(void) { }
	
};

#pragma pack(pop)

class DELPHICLASS TXLSStyleObject;
class DELPHICLASS TXLSStyleObjectList;
#pragma pack(push,4)
class PASCALIMPLEMENTATION TXLSStyleObject : public Xlsutils5::TIndexObject
{
	typedef Xlsutils5::TIndexObject inherited;
	
private:
	int FRefCount;
	
protected:
	bool FHashvalid;
	unsigned FHash;
	bool FLocked;
	virtual void __fastcall CalcHash(void) = 0 ;
	TXLSStyleObjectList* FOwner;
	void __fastcall IncRef(void);
	void __fastcall DecRef(void);
	virtual bool __fastcall Equal(TXLSStyleObject* AItem) = 0 ;
	unsigned __fastcall HashKey(void);
	
public:
	__fastcall TXLSStyleObject(TXLSStyleObjectList* AOwner);
	virtual System::UnicodeString __fastcall AsString(const int AIndent = 0x0);
	__property TXLSStyleObjectList* Owner = {read=FOwner};
	__property bool Locked = {read=FLocked, write=FLocked, nodefault};
	__property int RefCount = {read=FRefCount, nodefault};
public:
	/* TObject.Destroy */ inline __fastcall virtual ~TXLSStyleObject(void) { }
	
};

#pragma pack(pop)

class DELPHICLASS TXLSIndexObjectList;
#pragma pack(push,4)
class PASCALIMPLEMENTATION TXLSIndexObjectList : public System::Contnrs::TObjectList
{
	typedef System::Contnrs::TObjectList inherited;
	
protected:
	bool FIsDestroying;
	void __fastcall Enumerate(int AStartIndex = 0x0);
	virtual void __fastcall Notify(void * Ptr, System::Classes::TListNotification Action);
	
public:
	__fastcall virtual ~TXLSIndexObjectList(void);
public:
	/* TObjectList.Create */ inline __fastcall TXLSIndexObjectList(void)/* overload */ : System::Contnrs::TObjectList() { }
	/* TObjectList.Create */ inline __fastcall TXLSIndexObjectList(bool AOwnsObjects)/* overload */ : System::Contnrs::TObjectList(AOwnsObjects) { }
	
};

#pragma pack(pop)

struct TXLSHashItem;
typedef TXLSHashItem *PXLSHashItem;

typedef PXLSHashItem *PPXLSHashItem;

struct DECLSPEC_DRECORD TXLSHashItem
{
public:
	TXLSHashItem *Next;
	TXLSStyleObject* Key;
};


class DELPHICLASS TXLSStyleObjectHash;
#pragma pack(push,4)
class PASCALIMPLEMENTATION TXLSStyleObjectHash : public System::TObject
{
	typedef System::TObject inherited;
	
private:
	typedef System::DynamicArray<PXLSHashItem> _TXLSStyleObjectHash__1;
	
	
private:
	_TXLSStyleObjectHash__1 FBuckets;
	
protected:
	PPXLSHashItem __fastcall Find(TXLSStyleObject* AKey);
	
public:
	__fastcall TXLSStyleObjectHash(const unsigned ASize);
	__fastcall virtual ~TXLSStyleObjectHash(void);
	void __fastcall Add(TXLSStyleObject* AKey);
	void __fastcall Clear(void);
	void __fastcall Remove(TXLSStyleObject* AKey);
};

#pragma pack(pop)

#pragma pack(push,4)
class PASCALIMPLEMENTATION TXLSStyleObjectList : public TXLSIndexObjectList
{
	typedef TXLSIndexObjectList inherited;
	
private:
	TXLSStyleObjectHash* FItemHash;
	bool FItemHashValid;
	void __fastcall UpdateItemHash(void);
	TXLSStyleObject* __fastcall GetItems(int Index);
	
protected:
	virtual void __fastcall Notify(void * Ptr, System::Classes::TListNotification Action);
	
public:
	__fastcall TXLSStyleObjectList(const int AHashSize);
	__fastcall virtual ~TXLSStyleObjectList(void);
	TXLSStyleObject* __fastcall Find(TXLSStyleObject* AItem);
	virtual void __fastcall SetIsDefault(void) = 0 ;
	int __fastcall DefaultCount(void);
	HIDESBASE void __fastcall Add(TXLSStyleObject* AObject);
	__property TXLSStyleObject* StyleItems[int Index] = {read=GetItems};
};

#pragma pack(pop)

class DELPHICLASS TXc12Data;
#pragma pack(push,4)
class PASCALIMPLEMENTATION TXc12Data : public System::TObject
{
	typedef System::TObject inherited;
	
public:
	/* TObject.Create */ inline __fastcall TXc12Data(void) : System::TObject() { }
	/* TObject.Destroy */ inline __fastcall virtual ~TXc12Data(void) { }
	
};

#pragma pack(pop)

//-- var, const, procedure ---------------------------------------------------
}	/* namespace Xc12common5 */
#if !defined(DELPHIHEADER_NO_IMPLICIT_NAMESPACE_USE) && !defined(NO_USING_NAMESPACE_XC12COMMON5)
using namespace Xc12common5;
#endif
#pragma pack(pop)
#pragma option pop

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