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

// (DO NOT EDIT: machine generated header) 'SMWQ.pas' rev: 23.00 (Win32)

#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 <System.Classes.hpp>	// Pascal unit
#include <Winapi.Windows.hpp>	// Pascal unit
#include <Winapi.ActiveX.hpp>	// Pascal unit
#include <System.Win.ComObj.hpp>	// Pascal unit
#include <System.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 : unsigned char { qvUnknown, qvWQ1, qvWQ2, qvWKQ, qvWB2, 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;
	System::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(System::Classes::TStream* AStream);
	void __fastcall ImportFromOLEStream(_di_IStorage Storage);
	
public:
	Smiutils::TWideStrings* SST;
	__fastcall virtual TQuattroPro(System::Classes::TComponent* AOwner);
	__fastcall virtual ~TQuattroPro(void);
	virtual void __fastcall LoadFromStream(System::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 */
#if !defined(DELPHIHEADER_NO_IMPLICIT_NAMESPACE_USE) && !defined(NO_USING_NAMESPACE_SMWQ)
using namespace Smwq;
#endif
#pragma pack(pop)
#pragma option pop

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