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

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

#ifndef EnDcxGrHPP
#define EnDcxGrHPP

#pragma delphiheader begin
#pragma option push -w-
#pragma option push -Vx
#include <Graphics.hpp>	// Pascal unit
#include <EnDiGrph.hpp>	// Pascal unit
#include <EnPcxGr.hpp>	// Pascal unit
#include <EnMisc.hpp>	// Pascal unit
#include <Classes.hpp>	// Pascal unit
#include <SysUtils.hpp>	// Pascal unit
#include <Windows.hpp>	// Pascal unit
#include <SysInit.hpp>	// Pascal unit
#include <System.hpp>	// Pascal unit

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

namespace Endcxgr
{
//-- type declarations -------------------------------------------------------
class DELPHICLASS EDcxError;
class PASCALIMPLEMENTATION EDcxError : public Sysutils::Exception 
{
	typedef Sysutils::Exception inherited;
	
public:
	#pragma option push -w-inl
	/* Exception.Create */ inline __fastcall EDcxError(const AnsiString Msg) : Sysutils::Exception(Msg)
		 { }
	#pragma option pop
	#pragma option push -w-inl
	/* Exception.CreateFmt */ inline __fastcall EDcxError(const AnsiString Msg, const System::TVarRec * 
		Args, const int Args_Size) : Sysutils::Exception(Msg, Args, Args_Size) { }
	#pragma option pop
	#pragma option push -w-inl
	/* Exception.CreateRes */ inline __fastcall EDcxError(int Ident)/* overload */ : Sysutils::Exception(
		Ident) { }
	#pragma option pop
	#pragma option push -w-inl
	/* Exception.CreateResFmt */ inline __fastcall EDcxError(int Ident, const System::TVarRec * Args, const 
		int Args_Size)/* overload */ : Sysutils::Exception(Ident, Args, Args_Size) { }
	#pragma option pop
	#pragma option push -w-inl
	/* Exception.CreateHelp */ inline __fastcall EDcxError(const AnsiString Msg, int AHelpContext) : Sysutils::Exception(
		Msg, AHelpContext) { }
	#pragma option pop
	#pragma option push -w-inl
	/* Exception.CreateFmtHelp */ inline __fastcall EDcxError(const AnsiString Msg, const System::TVarRec 
		* Args, const int Args_Size, int AHelpContext) : Sysutils::Exception(Msg, Args, Args_Size, AHelpContext
		) { }
	#pragma option pop
	#pragma option push -w-inl
	/* Exception.CreateResHelp */ inline __fastcall EDcxError(int Ident, int AHelpContext)/* overload */
		 : Sysutils::Exception(Ident, AHelpContext) { }
	#pragma option pop
	#pragma option push -w-inl
	/* Exception.CreateResFmtHelp */ inline __fastcall EDcxError(System::PResStringRec ResStringRec, const 
		System::TVarRec * Args, const int Args_Size, int AHelpContext)/* overload */ : Sysutils::Exception(
		ResStringRec, Args, Args_Size, AHelpContext) { }
	#pragma option pop
	
public:
	#pragma option push -w-inl
	/* TObject.Destroy */ inline __fastcall virtual ~EDcxError(void) { }
	#pragma option pop
	
};


class DELPHICLASS TDcxGraphic;
class PASCALIMPLEMENTATION TDcxGraphic : public Enpcxgr::TPcxGraphic 
{
	typedef Enpcxgr::TPcxGraphic inherited;
	
public:
	__fastcall virtual TDcxGraphic(void);
	__fastcall virtual ~TDcxGraphic(void);
	virtual int __fastcall GetImageCount(const Classes::TStream* Stream);
	virtual void __fastcall SingleLoadFromStream(const Classes::TStream* Stream, const int ImageToLoad)
		;
	virtual void __fastcall SaveToStream(Classes::TStream* Stream);
	virtual void __fastcall AppendToStream(Classes::TStream* Stream);
	
protected:
	#pragma option push -w-inl
	/* virtual class method */ virtual bool __fastcall CanRead(const Classes::TStream* Stream) { return 
		CanRead(__classid(TDcxGraphic), Stream); }
	#pragma option pop
	/*         class method */ static bool __fastcall CanRead(TMetaClass* vmt, const Classes::TStream* 
		Stream);
	void __fastcall CheckHeader(const Classes::TStream* Stream);
	void __fastcall GetPcxStream(const Classes::TStream* DcxStream, const Classes::TMemoryStream* PcxStream
		, const int ImageNo);
	void __fastcall AddImageInHeader(const Classes::TStream* Stream);
};


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

}	/* namespace Endcxgr */
#if !defined(NO_IMPLICIT_NAMESPACE_USE)
using namespace Endcxgr;
#endif
#pragma option pop	// -w-
#pragma option pop	// -Vx

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