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

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

#ifndef EnPpmGrHPP
#define EnPpmGrHPP

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

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

namespace Enppmgr
{
//-- type declarations -------------------------------------------------------
#pragma option push -b-
enum TPpmMode { pmAscii, pmBinary };
#pragma option pop

class DELPHICLASS TPpmGraphic;
class PASCALIMPLEMENTATION TPpmGraphic : public Endigrph::TDibGraphic 
{
	typedef Endigrph::TDibGraphic inherited;
	
protected:
	TPpmMode FMode;
	#pragma option push -w-inl
	/* virtual class method */ virtual bool __fastcall CanRead(const Classes::TStream* Stream) { return 
		CanRead(__classid(TPpmGraphic), Stream); }
	#pragma option pop
	/*         class method */ static bool __fastcall CanRead(TMetaClass* vmt, const Classes::TStream* 
		Stream);
	
private:
	void __fastcall RaisePPMError(const AnsiString Msg);
	
public:
	__fastcall virtual TPpmGraphic(void);
	virtual void __fastcall SingleLoadFromStream(const Classes::TStream* Stream, const int ImageToLoad)
		;
	virtual void __fastcall SaveToStream(Classes::TStream* Stream);
	__property TPpmMode Mode = {read=FMode, write=FMode, nodefault};
public:
	#pragma option push -w-inl
	/* TDibGraphic.Destroy */ inline __fastcall virtual ~TPpmGraphic(void) { }
	#pragma option pop
	
};


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

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

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