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

// (DO NOT EDIT: machine generated header) 'pQRBarCode.pas' rev: 6.00

#ifndef pQRBarCodeHPP
#define pQRBarCodeHPP

#pragma delphiheader begin
#pragma option push -w-
#pragma option push -Vx
#include <HBarCode.hpp>	// Pascal unit
#include <Forms.hpp>	// Pascal unit
#include <Graphics.hpp>	// Pascal unit
#include <QRCtrls.hpp>	// Pascal unit
#include <QuickRpt.hpp>	// Pascal unit
#include <Controls.hpp>	// Pascal unit
#include <Classes.hpp>	// Pascal unit
#include <SysUtils.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 Pqrbarcode
{
//-- type declarations -------------------------------------------------------
typedef void __fastcall (__closure *TInvalidChar)(System::TObject* Sender, AnsiString &Barcode);

class DELPHICLASS TQRBarcode;
class PASCALIMPLEMENTATION TQRBarcode : public Qrctrls::TQRImage 
{
	typedef Qrctrls::TQRImage inherited;
	
private:
	AnsiString FBarCode;
	Hbarcode::TBarType FBarType;
	int FBarHeight;
	int FModul;
	double FRatio;
	Hbarcode::TCheckSum FCheckSum;
	Graphics::TColor FColorSpc;
	Graphics::TColor FColorBar;
	Hbarcode::TOrientation FOrientation;
	Hbarcode::TTextShow FTextShow;
	Hbarcode::TTextPosition FTextPosition;
	Graphics::TColor FTextColor;
	int FHMargin;
	bool FAutoWidth;
	Graphics::TFont* FFont;
	Classes::TNotifyEvent FOnChange;
	TInvalidChar FOnInvalidChar;
	bool FDisplayBar;
	double __fastcall GetAngle(void);
	void __fastcall SetBarType(const Hbarcode::TBarType Value);
	void __fastcall SetBarHeight(const int Value);
	void __fastcall SetModul(const int Value);
	void __fastcall SetRatio(const double Value);
	void __fastcall SetCheckSum(const Hbarcode::TCheckSum Value);
	void __fastcall SetColorSpc(const Graphics::TColor Value);
	void __fastcall SetColorBar(const Graphics::TColor Value);
	void __fastcall SetOrientation(const Hbarcode::TOrientation Value);
	void __fastcall SetTextShow(const Hbarcode::TTextShow Value);
	void __fastcall SetTextPosition(const Hbarcode::TTextPosition Value);
	void __fastcall SetTextColor(const Graphics::TColor Value);
	void __fastcall SetHMargin(const int Value);
	void __fastcall SetAutoWidth(const bool Value);
	AnsiString __fastcall GetBarTypeName();
	void __fastcall SetAbout(const AnsiString Value);
	AnsiString __fastcall GetAbout();
	HIDESBASE void __fastcall SetFont(const Graphics::TFont* Value);
	
protected:
	virtual void __fastcall SetBarcode(const AnsiString Value);
	virtual void __fastcall DoChange(void);
	
public:
	__fastcall virtual TQRBarcode(Classes::TComponent* Owner);
	__fastcall virtual ~TQRBarcode(void);
	virtual void __fastcall Assign(Classes::TPersistent* Source);
	virtual void __fastcall Paint(void);
	virtual void __fastcall Loaded(void);
	int __fastcall AutoSetWidth(int H_Margin);
	int __fastcall GetBarWidth(void);
	int __fastcall GetBarHeight(void);
	__property AnsiString BarTypeName = {read=GetBarTypeName};
	__property int BarWidth = {read=GetBarWidth, nodefault};
	
__published:
	__property Hbarcode::TBarType BarType = {read=FBarType, write=SetBarType, default=3};
	__property AnsiString BarCode = {read=FBarCode, write=SetBarcode};
	__property int BarHeight = {read=FBarHeight, write=SetBarHeight, default=0};
	__property int Modul = {read=FModul, write=SetModul, nodefault};
	__property double Ratio = {read=FRatio, write=SetRatio};
	__property Hbarcode::TCheckSum CheckSum = {read=FCheckSum, write=SetCheckSum, default=0};
	__property Graphics::TColor ColorSpc = {read=FColorSpc, write=SetColorSpc, default=16777215};
	__property Graphics::TColor ColorBar = {read=FColorBar, write=SetColorBar, default=0};
	__property Hbarcode::TOrientation Orientation = {read=FOrientation, write=SetOrientation, default=0};
	__property Hbarcode::TTextShow TextShow = {read=FTextShow, write=SetTextShow, default=0};
	__property Hbarcode::TTextPosition TextPosition = {read=FTextPosition, write=SetTextPosition, default=5};
	__property Graphics::TColor TextColor = {read=FTextColor, write=SetTextColor, default=16777215};
	__property bool AutoWidth = {read=FAutoWidth, write=SetAutoWidth, default=0};
	__property int HMargin = {read=FHMargin, write=SetHMargin, default=0};
	__property AnsiString About = {read=GetAbout, write=SetAbout};
	__property Graphics::TFont* Font = {read=FFont, write=SetFont};
	__property Classes::TNotifyEvent OnChange = {read=FOnChange, write=FOnChange};
	__property TInvalidChar OnInvalidChar = {read=FOnInvalidChar, write=FOnInvalidChar};
	__property Alignment ;
	__property AutoSize  = {default=0};
	__property Color  = {default=-2147483643};
	__property Constraints ;
	__property Ctl3D ;
	__property UseDockManager  = {default=1};
	__property DockSite  = {default=0};
	__property DragCursor  = {default=-12};
	__property DragKind  = {default=0};
	__property DragMode  = {default=0};
	__property Enabled  = {default=1};
public:
	#pragma option push -w-inl
	/* TWinControl.CreateParented */ inline __fastcall TQRBarcode(HWND ParentWindow) : Qrctrls::TQRImage(ParentWindow) { }
	#pragma option pop
	
};


//-- var, const, procedure ---------------------------------------------------
#define ErrorBarcode "Barcode must be numeric."
#define ErrorBarType "Wrong barcode type."
#define ErrorLength "Invalid barcode length."
#define ErrorCode93 "Code_93 bad data."
#define ErrorInternal "Internal Error."
#define CopyrightInfo "BarCode VCL Component, Copyright(C) Han-soft Software.(htt"\
	"p://www.han-soft.com)"
#define Author "Han-soft Software"
#define Registration "9nt/(u'(&[yz*}t3HJtr=xu'k$`0J%&r#tNp$N<x{*1.?6-0yAnJp<A$v"\
	"{C$c}0WI"
#define TrialMessage "=TXn`0YZl9QZZ9DX"
#define TrialYear "z2?dWI"
#define YearFormat "b{)GYD"
#define BuilderClass "=C >V&p\"%Y#:X"
#define AlignClass "=C{7{~Wv-Y%{zHG"
#define AlignCaption "*nx5#UI"

}	/* namespace Pqrbarcode */
using namespace Pqrbarcode;
#pragma option pop	// -w-
#pragma option pop	// -Vx

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