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

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

#ifndef DBImageEnHPP
#define DBImageEnHPP

#pragma delphiheader begin
#pragma option push -w-
#pragma option push -Vx
#include <Controls.hpp>	// Pascal unit
#include <ImageEnIO.hpp>	// Pascal unit
#include <ImageEnView.hpp>	// Pascal unit
#include <DBCtrls.hpp>	// Pascal unit
#include <Db.hpp>	// Pascal unit
#include <Graphics.hpp>	// Pascal unit
#include <Classes.hpp>	// Pascal unit
#include <Messages.hpp>	// Pascal unit
#include <Windows.hpp>	// Pascal unit
#include <SysInit.hpp>	// Pascal unit
#include <System.hpp>	// Pascal unit

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

namespace Dbimageen
{
//-- type declarations -------------------------------------------------------
#pragma option push -b-
enum TDataFieldImageFormat { ifBitmap, ifJpeg, ifGif, ifPCX, ifTIFF, ifPNG, ifTGA, ifPXM, ifUnknown 
	};
#pragma option pop

class DELPHICLASS TImageEnDBView;
class PASCALIMPLEMENTATION TImageEnDBView : public Imageenview::TImageEnView 
{
	typedef Imageenview::TImageEnView inherited;
	
private:
	bool FAutoDisplay;
	Dbctrls::TFieldDataLink* FDataLink;
	bool FPictureLoaded;
	TDataFieldImageFormat fDataFieldImageFormat;
	bool fStreamHeaders;
	bool fDoImageChange;
	void __fastcall SetAutoDisplay(bool Value);
	AnsiString __fastcall GetDataField(void);
	Db::TDataSource* __fastcall GetDataSource(void);
	Db::TField* __fastcall GetField(void);
	bool __fastcall GetReadOnly(void);
	void __fastcall SetDataField(const AnsiString Value);
	void __fastcall SetDataSource(Db::TDataSource* Value);
	void __fastcall SetReadOnly(bool Value);
	HIDESBASE MESSAGE void __fastcall WMLButtonDblClk(Messages::TWMMouse &Message);
	void __fastcall SetJPegQuality(int q);
	int __fastcall GetJPegQuality(void);
	Imageenio::TIOParamsVals* __fastcall GetIOParams(void);
	Imageenio::TIOPreviewsParams __fastcall GetIOPreviewsParams(void);
	void __fastcall SetIOPreviewsParams(Imageenio::TIOPreviewsParams v);
	void __fastcall SetPreviewFont(Graphics::TFont* f);
	Graphics::TFont* __fastcall GetPreviewFont(void);
	
protected:
	Imageenio::TImageEnIO* fImageEnIO;
	virtual void __fastcall Notification(Classes::TComponent* AComponent, Classes::TOperation Operation
		);
	virtual void __fastcall DataChange(System::TObject* Sender);
	virtual void __fastcall UpdateData(System::TObject* Sender);
	virtual TDataFieldImageFormat __fastcall GetDataFieldImageFormat(void);
	virtual void __fastcall SetDataFieldImageFormat(TDataFieldImageFormat v);
	void __fastcall LoadPictureEx(Imageenio::TImageEnIO* ffImageEnIO);
	
public:
	__fastcall virtual TImageEnDBView(Classes::TComponent* AOwner);
	__fastcall virtual ~TImageEnDBView(void);
	virtual void __fastcall PaintTo(Graphics::TCanvas* Canvas);
	virtual void __fastcall Paint(void);
	virtual void __fastcall ImageChange(void);
	__property Db::TField* Field = {read=GetField};
	virtual void __fastcall LoadPicture(void);
	virtual TDataFieldImageFormat __fastcall LoadedFieldImageFormat(void);
	__property Imageenio::TIOParamsVals* IOParams = {read=GetIOParams};
	bool __fastcall DoIOPreview(void);
	__property bool PictureLoaded = {read=FPictureLoaded, nodefault};
	
__published:
	__property bool AutoDisplay = {read=FAutoDisplay, write=SetAutoDisplay, default=1};
	__property AnsiString DataField = {read=GetDataField, write=SetDataField};
	__property Db::TDataSource* DataSource = {read=GetDataSource, write=SetDataSource};
	__property bool ReadOnly = {read=GetReadOnly, write=SetReadOnly, default=0};
	__property TDataFieldImageFormat DataFieldImageFormat = {read=GetDataFieldImageFormat, write=SetDataFieldImageFormat
		, default=0};
	__property int JpegQuality = {read=GetJPegQuality, write=SetJPegQuality, default=25};
	__property Imageenio::TIOPreviewsParams IOPreviewsParams = {read=GetIOPreviewsParams, write=SetIOPreviewsParams
		, default=0};
	__property Graphics::TFont* PreviewFont = {read=GetPreviewFont, write=SetPreviewFont};
	__property bool StreamHeaders = {read=fStreamHeaders, write=fStreamHeaders, default=0};
public:
	#pragma option push -w-inl
	/* TWinControl.CreateParented */ inline __fastcall TImageEnDBView(HWND ParentWindow) : Imageenview::TImageEnView(
		ParentWindow) { }
	#pragma option pop
	
};


typedef AnsiString DBImageEn__2[9];

//-- var, const, procedure ---------------------------------------------------
extern PACKAGE AnsiString IESImageFormats[9];

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

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