// Borland C++ Builder
// Copyright (c) 1995, 1999 by Borland International
// All rights reserved

// (DO NOT EDIT: machine generated header) 'XlsBaseTemplateStore.pas' rev: 5.00

#ifndef XlsBaseTemplateStoreHPP
#define XlsBaseTemplateStoreHPP

#pragma delphiheader begin
#pragma option push -w-
#pragma option push -Vx
#include <UFlxMessages.hpp>	// Pascal unit
#include <XlsMessages.hpp>	// Pascal unit
#include <WOLE2Stream.hpp>	// Pascal unit
#include <Contnrs.hpp>	// Pascal unit
#include <Classes.hpp>	// Pascal unit
#include <SysUtils.hpp>	// Pascal unit
#include <SysInit.hpp>	// Pascal unit
#include <System.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:
	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);
	__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 */
#if !defined(NO_IMPLICIT_NAMESPACE_USE)
using namespace Xlsbasetemplatestore;
#endif
#pragma option pop	// -w-
#pragma option pop	// -Vx

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