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

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

#ifndef SmwqHPP
#define SmwqHPP

#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 <Classes.hpp>	// Pascal unit
#include <Windows.hpp>	// Pascal unit
#include <Activex.hpp>	// Pascal unit
#include <Comobj.hpp>	// Pascal unit
#include <Sysutils.hpp>	// Pascal unit
#include <Smcells.hpp>	// Pascal unit
#include <Smiutils.hpp>	// Pascal unit
#include <Smi_sum.hpp>	// Pascal unit

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

namespace Smwq
{
//-- type declarations -------------------------------------------------------
#pragma option push -b-
enum TWQVersion { qvUnknown, qvWQ1, qvWQ2, qvWKQ, qvWB3, qvQP9 };
#pragma option pop

class DELPHICLASS TQuattroPro;
class PASCALIMPLEMENTATION TQuattroPro : public Smcells::TSpreadSheetFile
{
	typedef Smcells::TSpreadSheetFile inherited;
	
private:
	TWQVersion FVersion;
	int intSheet;
	int intCol9;
	Sysutils::TByteArray BufferRecord;
	__int64 intCurPos;
	Smi_sum::TSMISummaryInformation* FSummaryInformation;
	void __fastcall SetSummaryInformation(Smi_sum::TSMISummaryInformation* Value);
	bool __fastcall ProcessBIFFRecord(_di_IStream OStream);
	bool __fastcall ProcessBIFFRecord9(_di_IStream OStream);
	
protected:
	virtual void __fastcall ApplyEvents(void);
	void __fastcall ImportFromStream(Classes::TStream* AStream);
	void __fastcall ImportFromOLEStream(_di_IStorage Storage);
	
public:
	Smiutils::TWideStrings* SST;
	__fastcall virtual TQuattroPro(Classes::TComponent* AOwner);
	__fastcall virtual ~TQuattroPro(void);
	virtual void __fastcall LoadFromStream(Classes::TStream* AStream);
	virtual void __fastcall LoadFromFile(const System::WideString FileName);
	
__published:
	__property Smi_sum::TSMISummaryInformation* SummaryInformation = {read=FSummaryInformation, write=SetSummaryInformation};
	__property TWQVersion Version = {read=FVersion, write=FVersion, nodefault};
};


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

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

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