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

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

#ifndef HBarCodeHPP
#define HBarCodeHPP

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

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

namespace Hbarcode
{
//-- type declarations -------------------------------------------------------
#pragma pack(push, 4)
struct TBCdata
{
	AnsiString Name;
	bool num;
} ;
#pragma pack(pop)

#pragma option push -b-
enum TBarType { bcCode_2_5_interleaved, bcCode_2_5_industrial, bcCode_2_5_matrix, bcCode39, bcCode39Extended, bcCode128A, bcCode128B, bcCode128C, bcCode93, bcCode93Extended, bcCodeMSI, bcCodePostNet, bcCodeCodabar, bcCodeEAN8, bcCodeEAN13, bcCodeUPC_A, bcCodeUPC_E0, bcCodeUPC_E1, bcCodeUPC_Supp2, bcCodeUPC_Supp5, bcCodeEAN128A, bcCodeEAN128B, bcCodeEAN128C };
#pragma option pop

#pragma option push -b-
enum TOrientation { toLeftRight, toRightLeft, toTopBottom, toBottomTop };
#pragma option pop

#pragma option push -b-
enum TCheckSum { csNone, csModulo10 };
#pragma option pop

#pragma option push -b-
enum TTextShow { tsNone, tsBarCode, tsBarType, tsBoth };
#pragma option pop

#pragma option push -b-
enum TTextPosition { tpTopLeft, tpTopRight, tpTopCenter, tpBottomLeft, tpBottomRight, tpBottomCenter };
#pragma option pop

#pragma option push -b-
enum TUnits { utMillimeter, utInch };
#pragma option pop

#pragma option push -b-
enum TBarLineType { white, black, black_half };
#pragma option pop

typedef TBCdata HBarCode__1[23];

//-- 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"
#define mmPerInch  (2.540000E+01)
extern PACKAGE TBCdata BCData[23];
extern PACKAGE bool __fastcall LWE(AnsiString C, AnsiString W);
extern PACKAGE AnsiString __fastcall DCR(AnsiString S);
extern PACKAGE void __fastcall H_DrawBar(Graphics::TCanvas* H_Canvas, const TBarType H_BarType, const AnsiString H_BarCode, const int H_Modul, const double H_Ratio, const TCheckSum H_CheckSum, const int H_Left, const int H_Top, const int H_Height, const Graphics::TFont* H_TextFont, const TTextShow H_TextShow, const TTextPosition H_TextPosition, const Graphics::TColor H_BarColor, const Graphics::TColor H_SpcColor, const Graphics::TColor H_BackColor, const double H_Angle);
extern PACKAGE int __fastcall H_GetBarWidth(const TBarType BW_Type, const AnsiString BW_Code, const int BW_Modul, const double BW_Ratio, const TCheckSum BW_CheckSum);
extern PACKAGE AnsiString __fastcall H_GetBarTypeName(const TBarType BN_BarType);
extern PACKAGE int __fastcall H_GetCanvasHeight(const TBarType CH_Type, const AnsiString CH_Code, const int CH_Modul, const double CH_Ratio, const TCheckSum CH_CheckSum, const int CH_Height, const double CH_Angle);
extern PACKAGE int __fastcall H_GetCanvasWidth(const TBarType CW_Type, const AnsiString CW_Code, const int CW_Modul, const double CW_Ratio, const TCheckSum CW_CheckSum, const int CW_Height, const double CW_Angle);
extern PACKAGE void __fastcall H_PrintBar(const TUnits H_Unit, const TBarType H_BarType, const AnsiString H_BarCode, const double H_Modul, const double H_Ratio, const TCheckSum H_CheckSum, const double H_Left, const double H_Top, const double H_Height, const Graphics::TFont* H_TextFont, const TTextShow H_TextShow, const TTextPosition H_TextPosition, const Graphics::TColor H_BarColor, const Graphics::TColor H_SpcColor, const Graphics::TColor H_BackColor, const double H_Angle);
extern PACKAGE double __fastcall H_GetPrnBarWidth(const TUnits BW_Unit, const TBarType BW_Type, const AnsiString BW_Code, const double BW_Modul, const double BW_Ratio, const TCheckSum BW_CheckSum);
extern PACKAGE double __fastcall H_PrnCanvasWidth(const TUnits CW_Unit, const TBarType CW_Type, const AnsiString CW_Code, const double CW_Modul, const double CW_Ratio, const TCheckSum CW_CheckSum, const double CW_Height, const double CW_Angle);
extern PACKAGE double __fastcall H_PrnCanvasHeight(const TUnits CH_Unit, const TBarType CH_Type, const AnsiString CH_Code, const double CH_Modul, const double CH_Ratio, const TCheckSum CH_CheckSum, const double CH_Height, const double CH_Angle);

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

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