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

// (DO NOT EDIT: machine generated header) 'mwadbjpg.pas' rev: 3.00

#ifndef mwadbjpgHPP
#define mwadbjpgHPP
#include <Controls.hpp>
#include <mwajpeg.hpp>
#include <Classes.hpp>
#include <ExtCtrls.hpp>
#include <Messages.hpp>
#include <DBTables.hpp>
#include <DBCtrls.hpp>
#include <Db.hpp>
#include <SysInit.hpp>
#include <System.hpp>

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

namespace Mwadbjpg
{
//-- type declarations -------------------------------------------------------
class DELPHICLASS TDBJPEGImage;
class PASCALIMPLEMENTATION TDBJPEGImage : public Extctrls::TImage 
{
	typedef Extctrls::TImage inherited;
	
private:
	Dbctrls::TFieldDataLink* FDataLink;
	Classes::TNotifyEvent FOldPictureChanged;
	bool FAutoDisplay;
	bool FLoading;
	bool FChanging;
	bool FPictureLoaded;
	Mwajpeg::TJPEGFileCompressor* FJPEGCompressor;
	Mwajpeg::TJPEGFileDecompressor* FJPEGDecompressor;
	System::AnsiString __fastcall GetDataField();
	Db::TDataSource* __fastcall GetDataSource(void);
	Db::TField* __fastcall GetField(void);
	bool __fastcall GetReadOnly(void);
	Mwajpeg::TJPEGFileDecompressor* __fastcall GetJPEGDecompressor(void);
	Mwajpeg::TJPEGFileCompressor* __fastcall GetJPEGCompressor(void);
	void __fastcall SetDataField(const System::AnsiString Value);
	void __fastcall SetDataSource(Db::TDataSource* Value);
	void __fastcall SetReadOnly(bool Value);
	void __fastcall ActiveChanged(System::TObject* Sender);
	void __fastcall DataChange(System::TObject* Sender);
	void __fastcall UpdateData(System::TObject* Sender);
	void __fastcall PictureChange(System::TObject* Sender);
	MESSAGE void __fastcall WMCut(Messages::TMessage &Message);
	MESSAGE void __fastcall WMCopy(Messages::TMessage &Message);
	MESSAGE void __fastcall WMPaste(Messages::TMessage &Message);
	
protected:
	virtual void __fastcall Notification(Classes::TComponent* AComponent, Classes::TOperation Operation
		);
	
public:
	__fastcall virtual TDBJPEGImage(Classes::TComponent* AOwner);
	__fastcall virtual ~TDBJPEGImage(void);
	void __fastcall CopyToClipboard(void);
	void __fastcall CutToClipboard(void);
	void __fastcall PasteFromClipboard(void);
	void __fastcall LoadPicture(void);
	__property Db::TField* Field = {read=GetField};
	
__published:
	__property bool AutoDisplay = {read=FAutoDisplay, write=FAutoDisplay, default=1};
	__property System::AnsiString DataField = {read=GetDataField, write=SetDataField};
	__property Db::TDataSource* DataSource = {read=GetDataSource, write=SetDataSource};
	__property bool ReadOnly = {read=GetReadOnly, write=SetReadOnly, nodefault};
	__property Mwajpeg::TJPEGFileCompressor* JPEGCompressor = {read=FJPEGCompressor, write=FJPEGCompressor
		};
	__property Mwajpeg::TJPEGFileDecompressor* JPEGDecompressor = {read=FJPEGDecompressor, write=FJPEGDecompressor
		};
};

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

}	/* namespace Mwadbjpg */
#if !defined(NO_IMPLICIT_NAMESPACE_USE)
using namespace Mwadbjpg;
#endif
//-- end unit ----------------------------------------------------------------
#endif	// mwadbjpg
