// Borland C++ Builder
// Copyright (c) 1995, 2005 by Borland Software Corporation
// All rights reserved

// (DO NOT EDIT: machine generated header) 'Xlsbasetemplatestore.pas' rev: 10.00

#ifndef XlsbasetemplatestoreHPP
#define XlsbasetemplatestoreHPP

#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 <Sysutils.hpp>	// Pascal unit
#include <Classes.hpp>	// Pascal unit
#include <Contnrs.hpp>	// Pascal unit
#include <Wole2stream.hpp>	// Pascal unit
#include <Xlsmessages.hpp>	// Pascal unit
#include <Uflxmessages.hpp>	// Pascal unit

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

namespace Xlsbasetemplatestore
{
//-- type declarations -------------------------------------------------------
class DELPHICLASS TXlsStorage;
class DELPHICLASS TXlsStorageList;
class PASCALIMPLEMENTATION TXlsStorageList : public Contnrs::TObjectList 
{
	typedef Contnrs::TObjectList inherited;
	
public:
	TXlsStorage* operator[](int index) { return Items[index]; }
	
public:
	bool Compress;
	void __fastcall WriteData(Classes::TStream* Stream);
	void __fastcall ReadData(Classes::TStream* Stream);
	void __fastcall LoadFrom(const AnsiString aFileName);
	void __fastcall SaveAs(const AnsiString aFileName);
	
private:
	TXlsStorage* __fastcall GetItems(int index);
	Classes::TStream* __fastcall GetStream(WideString Name);
	
public:
	void __fastcall LoadStorage(const Wole2stream::TOle2Storage* DocIN, const bool LoadWorkbook = true);
	__property TXlsStorage* Items[int index] = {read=GetItems/*, default*/};
	__property Classes::TStream* Stream[WideString Name] = {read=GetStream};
public:
	#pragma option push -w-inl
	/* TObjectList.Create */ inline __fastcall TXlsStorageList(void)/* overload */ : Contnrs::TObjectList() { }
	#pragma option pop
	
public:
	#pragma option push -w-inl
	/* TList.Destroy */ inline __fastcall virtual ~TXlsStorageList(void) { }
	#pragma option pop
	
};


class PASCALIMPLEMENTATION TXlsStorage : public System::TObject 
{
	typedef System::TObject inherited;
	
private:
	bool FCompress;
	void __fastcall SetCompress(const bool Value);
	
public:
	AnsiString Name;
	Classes::TMemoryStream* Data;
	TXlsStorageList* SubStorages;
	__property bool Compress = {read=FCompress, write=SetCompress, nodefault};
	__fastcall TXlsStorage(void);
	__fastcall virtual ~TXlsStorage(void);
	void __fastcall WriteData(Classes::TStream* Stream);
	void __fastcall ReadData(Classes::TStream* Stream);
	void __fastcall SaveToDoc(const Wole2stream::TOle2Storage* DocOUT);
};


class DELPHICLASS TXlsBaseTemplateStore;
class PASCALIMPLEMENTATION TXlsBaseTemplateStore : public Classes::TComponent 
{
	typedef Classes::TComponent inherited;
	
protected:
	virtual TXlsStorageList* __fastcall GetStorages(AnsiString Name) = 0 ;
	
public:
	__fastcall virtual TXlsBaseTemplateStore(Classes::TComponent* AOwner);
	virtual void __fastcall Loaded(void);
	virtual bool __fastcall IsUpToDate(void) = 0 ;
	virtual void __fastcall Refresh(void) = 0 ;
	__property TXlsStorageList* Storages[AnsiString Name] = {read=GetStorages};
public:
	#pragma option push -w-inl
	/* TComponent.Destroy */ inline __fastcall virtual ~TXlsBaseTemplateStore(void) { }
	#pragma option pop
	
};


//-- var, const, procedure ---------------------------------------------------

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

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