// Borland C++ Builder
// Copyright (c) 1995, 2005 by Borland Software Corporation
// All rights reserved

// (DO NOT EDIT: machine generated header) 'Iwcompedit.pas' rev: 10.00

#ifndef IwcompeditHPP
#define IwcompeditHPP

#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 <Iwvclcomponent.hpp>	// Pascal unit
#include <Forms.hpp>	// Pascal unit
#include <Iwfileparser.hpp>	// Pascal unit
#include <Graphics.hpp>	// Pascal unit
#include <Classes.hpp>	// Pascal unit
#include <Iwcontrol.hpp>	// Pascal unit
#include <Iwbasecontrol.hpp>	// Pascal unit
#include <Iwtypes.hpp>	// Pascal unit
#include <Iwscriptevents.hpp>	// Pascal unit
#include <Iwhtmltag.hpp>	// Pascal unit
#include <Iwcolor.hpp>	// Pascal unit
#include <Iwrendercontext.hpp>	// Pascal unit
#include <Iwbaseinterfaces.hpp>	// Pascal unit
#include <Iwcompbutton.hpp>	// Pascal unit
#include <Iwvclbasecontrol.hpp>	// Pascal unit
#include <Iwbasehtmlcontrol.hpp>	// Pascal unit
#include <Controls.hpp>	// Pascal unit
#include <Iwfont.hpp>	// Pascal unit

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

namespace Iwcompedit
{
//-- type declarations -------------------------------------------------------
class DELPHICLASS TIWCustomEdit;
class PASCALIMPLEMENTATION TIWCustomEdit : public Iwcontrol::TIWCustomControl 
{
	typedef Iwcontrol::TIWCustomControl inherited;
	
protected:
	AnsiString FSubmitParam;
	Classes::TAlignment FAlignment;
	Iwcolor::TIWColor FBGColor;
	Iwcolor::TIWColor FFocusColor;
	int FMaxLength;
	Classes::TNotifyEvent FOnSubmit;
	bool FPasswordPrompt;
	bool FRequired;
	bool FReadOnly;
	AnsiString FTagType;
	void __fastcall DoSubmit(void);
	virtual void __fastcall HookEvents(Iwrendercontext::TIWPageContext40* AContext, Iwscriptevents::TIWScriptEvents* AScriptEvents);
	virtual void __fastcall SetValue(const AnsiString AValue);
	virtual void __fastcall Submit(const AnsiString AValue);
	void __fastcall SetPasswordPrompt(const bool AValue);
	void __fastcall SetBGColor(const Iwcolor::TIWColor Value);
	void __fastcall SetAlignment(const Classes::TAlignment Value);
	void __fastcall SetFocusColor(const Iwcolor::TIWColor Value);
	void __fastcall SetMaxLength(const int AValue);
	void __fastcall SetReadOnly(const bool AValue);
	void __fastcall SetRequired(const bool AValue);
	virtual void __fastcall InitControl(void);
	bool __fastcall FormHasOnDefaultActionSet(void);
	virtual bool __fastcall get_ShouldRenderTabOrder(void);
	
public:
	virtual Iwhtmltag::TIWHTMLTag* __fastcall RenderHTML(Iwrendercontext::TIWBaseHTMLComponentContext* AContext);
	virtual AnsiString __fastcall RenderStyle(Iwrendercontext::TIWBaseHTMLComponentContext* AContext);
	__property bool PasswordPrompt = {read=FPasswordPrompt, write=SetPasswordPrompt, nodefault};
	AnsiString __fastcall GetSubmitParam();
	
__published:
	__property Classes::TAlignment Alignment = {read=FAlignment, write=SetAlignment, nodefault};
	__property Iwcolor::TIWColor BGColor = {read=FBGColor, write=SetBGColor, nodefault};
	__property Iwcolor::TIWColor FocusColor = {read=FFocusColor, write=SetFocusColor, nodefault};
	__property DoSubmitValidation ;
	__property Editable ;
	__property NonEditableAsLabel ;
	__property Font ;
	__property ExtraTagParams ;
	__property FriendlyName ;
	__property int MaxLength = {read=FMaxLength, write=SetMaxLength, nodefault};
	__property bool ReadOnly = {read=FReadOnly, write=SetReadOnly, nodefault};
	__property bool Required = {read=FRequired, write=SetRequired, nodefault};
	__property ScriptEvents ;
	__property TabOrder ;
	__property Classes::TNotifyEvent OnSubmit = {read=FOnSubmit, write=FOnSubmit};
public:
	#pragma option push -w-inl
	/* TIWVCLBaseControl.Create */ inline __fastcall virtual TIWCustomEdit(Classes::TComponent* AOwner) : Iwcontrol::TIWCustomControl(AOwner) { }
	#pragma option pop
	#pragma option push -w-inl
	/* TIWVCLBaseControl.Destroy */ inline __fastcall virtual ~TIWCustomEdit(void) { }
	#pragma option pop
	
private:
	void *__IIWInputControl;	/* Iwbaseinterfaces::IIWInputControl */
	void *__IIWSubmitControl;	/* Iwbaseinterfaces::IIWSubmitControl */
	
public:
	operator IIWSubmitControl*(void) { return (IIWSubmitControl*)&__IIWSubmitControl; }
	operator IIWInputControl*(void) { return (IIWInputControl*)&__IIWInputControl; }
	
};


class DELPHICLASS TIWEdit;
class PASCALIMPLEMENTATION TIWEdit : public TIWCustomEdit 
{
	typedef TIWCustomEdit inherited;
	
public:
	void __fastcall Clear(void);
	
__published:
	__property Enabled  = {default=1};
	__property PasswordPrompt ;
	__property Text ;
public:
	#pragma option push -w-inl
	/* TIWVCLBaseControl.Create */ inline __fastcall virtual TIWEdit(Classes::TComponent* AOwner) : TIWCustomEdit(AOwner) { }
	#pragma option pop
	#pragma option push -w-inl
	/* TIWVCLBaseControl.Destroy */ inline __fastcall virtual ~TIWEdit(void) { }
	#pragma option pop
	
};


typedef void __fastcall (__closure *TReceivedFileEvent)(System::TObject* ASender, const AnsiString AFilename);

#pragma option push -b-
enum TIWFileButtonPosition { ubpBelowEdit, ubpNextToBrowse };
#pragma option pop

class DELPHICLASS TIWCustomFile;
class PASCALIMPLEMENTATION TIWCustomFile : public Iwcontrol::TIWCustomControl 
{
	typedef Iwcontrol::TIWCustomControl inherited;
	
protected:
	AnsiString FSubmitParam;
	Iwcolor::TIWColor FBGColor;
	Iwcolor::TIWColor FFrameBGColor;
	AnsiString FContentType;
	AnsiString FFileName;
	int FButtonHeight;
	Iwfileparser::THTTPFile* FFile;
	AnsiString __fastcall GetContentType();
	int __fastcall GetSize(void);
	virtual void __fastcall SetValue(const AnsiString AValue);
	virtual void __fastcall SetFileValue(Iwfileparser::THTTPFile* AFile);
	virtual void __fastcall InitControl(void);
	virtual void __fastcall Submit(const AnsiString AValue);
	void __fastcall DoUploadButtonChange(System::TObject* Sender);
	void __fastcall SetBGColor(const Iwcolor::TIWColor Value);
	void __fastcall SetFrameBGColor(const Iwcolor::TIWColor Value);
	virtual void __fastcall Dispose(bool ADispose);
	
public:
	virtual Iwhtmltag::TIWHTMLTag* __fastcall RenderHTML(Iwrendercontext::TIWBaseHTMLComponentContext* AContext);
	virtual AnsiString __fastcall RenderStyle(Iwrendercontext::TIWBaseHTMLComponentContext* AContext);
	AnsiString __fastcall GetSubmitParam();
	void __fastcall SaveToFile(AnsiString AFilename = "");
	void __fastcall SaveToStream(Classes::TStream* AStream);
	__property AnsiString ContentType = {read=GetContentType};
	__property AnsiString Filename = {read=FFileName};
	__property int ButtonHeight = {read=FButtonHeight, write=FButtonHeight, nodefault};
	__property Iwcolor::TIWColor BGColor = {read=FBGColor, write=SetBGColor, nodefault};
	__property Iwcolor::TIWColor FrameBGColor = {read=FFrameBGColor, write=SetFrameBGColor, nodefault};
	
__published:
	__property TabOrder ;
public:
	#pragma option push -w-inl
	/* TIWVCLBaseControl.Create */ inline __fastcall virtual TIWCustomFile(Classes::TComponent* AOwner) : Iwcontrol::TIWCustomControl(AOwner) { }
	#pragma option pop
	#pragma option push -w-inl
	/* TIWVCLBaseControl.Destroy */ inline __fastcall virtual ~TIWCustomFile(void) { }
	#pragma option pop
	
private:
	void *__IIWInputControl;	/* Iwbaseinterfaces::IIWInputControl */
	void *__IIWSubmitControl;	/* Iwbaseinterfaces::IIWSubmitControl */
	
public:
	operator IIWSubmitControl*(void) { return (IIWSubmitControl*)&__IIWSubmitControl; }
	operator IIWInputControl*(void) { return (IIWInputControl*)&__IIWInputControl; }
	
};


class DELPHICLASS TIWFile;
class PASCALIMPLEMENTATION TIWFile : public TIWCustomFile 
{
	typedef TIWCustomFile inherited;
	
__published:
	__property Enabled  = {default=1};
	__property FriendlyName ;
	__property Font ;
	__property BGColor ;
	__property ButtonHeight ;
	__property FrameBGColor ;
public:
	#pragma option push -w-inl
	/* TIWVCLBaseControl.Create */ inline __fastcall virtual TIWFile(Classes::TComponent* AOwner) : TIWCustomFile(AOwner) { }
	#pragma option pop
	#pragma option push -w-inl
	/* TIWVCLBaseControl.Destroy */ inline __fastcall virtual ~TIWFile(void) { }
	#pragma option pop
	
};


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

}	/* namespace Iwcompedit */
using namespace Iwcompedit;
#pragma pack(pop)
#pragma option pop

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