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

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

#ifndef AdvUtilHPP
#define AdvUtilHPP

#pragma delphiheader begin
#pragma option push -w-
#pragma option push -Vx
#include <StdCtrls.hpp>	// Pascal unit
#include <Controls.hpp>	// Pascal unit
#include <Classes.hpp>	// Pascal unit
#include <Grids.hpp>	// Pascal unit
#include <Graphics.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 Advutil
{
//-- type declarations -------------------------------------------------------
#pragma option push -b-
enum TAutoType { atNumeric, atFloat, atString, atDate, atTime };
#pragma option pop

#pragma option push -b-
enum TTextType { ttText, ttHTML, ttRTF, ttFormula, ttURL, ttUnicode };
#pragma option pop

typedef Set<char, 0, 255>  TCharSet;

//-- var, const, procedure ---------------------------------------------------
extern PACKAGE AnsiString __fastcall CSVQuotes(const AnsiString S);
extern PACKAGE int __fastcall CheckLimits(int Value, int LowLimit, int UpLimit);
extern PACKAGE Graphics::TColor __fastcall DarkenColor(Graphics::TColor Color);
extern PACKAGE int __fastcall FIPos(AnsiString su, AnsiString s);
extern PACKAGE int __fastcall VarCharPos(char ch, const AnsiString s, int &Res);
extern PACKAGE int __fastcall VarCharPosNC(char ch, const AnsiString s, int &Res);
extern PACKAGE int __fastcall CharPos(char ch, const AnsiString s);
extern PACKAGE bool __fastcall IsInGridRect(const Grids::TGridRect &rc, int c, int r);
extern PACKAGE AnsiString __fastcall GetToken(AnsiString &s, AnsiString separator);
extern PACKAGE int __fastcall Max(int i1, int i2);
extern PACKAGE int __fastcall Min(int i1, int i2);
extern PACKAGE AnsiString __fastcall StringListToText(Classes::TStringList* st);
extern PACKAGE int __fastcall VarPos(AnsiString su, AnsiString s, int &respos);
extern PACKAGE char __fastcall FirstChar(const TCharSet &charset, AnsiString s);
extern PACKAGE bool __fastcall NameToCell(AnsiString s, Windows::TPoint &cell);
extern PACKAGE bool __fastcall IsURL(const AnsiString s);
extern PACKAGE void __fastcall StripURLProtocol(AnsiString &s);
extern PACKAGE TTextType __fastcall TextType(AnsiString s, bool allowhtml);
extern PACKAGE AnsiString __fastcall RemoveSeps(AnsiString s);
extern PACKAGE AnsiString __fastcall HTMLLineBreaks(AnsiString s);
extern PACKAGE AnsiString __fastcall HTMLColor(unsigned l);
extern PACKAGE TAutoType __fastcall IsType(AnsiString s);
extern PACKAGE AnsiString __fastcall CLFToLF(AnsiString s);
extern PACKAGE AnsiString __fastcall LFToCLF(AnsiString s);
extern PACKAGE void __fastcall StringToPassword(AnsiString &s, char passwordchar);
extern PACKAGE void __fastcall StringToOem(AnsiString &s);
extern PACKAGE void __fastcall OemToString(AnsiString &s);
extern PACKAGE AnsiString __fastcall DoubleToSingleChar(char ch, const AnsiString s);
extern PACKAGE void __fastcall LineFeedsToCSV(AnsiString &s);
extern PACKAGE void __fastcall LineFeedsToCSVNQ(AnsiString &s);
extern PACKAGE void __fastcall CSVToLineFeeds(AnsiString &s);
extern PACKAGE void __fastcall LineFeedsToJava(AnsiString &s);
extern PACKAGE void __fastcall JavaToLineFeeds(AnsiString &s);
extern PACKAGE bool __fastcall MatchStrEx(AnsiString s1, AnsiString s2, bool DoCase);
extern PACKAGE bool __fastcall MatchStr(AnsiString s1, AnsiString s2, bool DoCase);
extern PACKAGE bool __fastcall Matches(char * s0a, char * s1a);
extern PACKAGE AnsiString __fastcall LfToFile(AnsiString s);
extern PACKAGE AnsiString __fastcall FileToLf(AnsiString s, bool multiline);
extern PACKAGE AnsiString __fastcall GetNextLine(AnsiString &s, bool multiline);
extern PACKAGE int __fastcall LinesInText(AnsiString s, bool multiline);
extern PACKAGE AnsiString __fastcall RectString(const Windows::TRect &r);
extern PACKAGE AnsiString __fastcall FixDecimalSeparator(AnsiString s);
extern PACKAGE System::TDateTime __fastcall GetNextDate(System::TDateTime d, Word dye, Word dmo, Word 
	dda, System::TDateTime dtv);
extern PACKAGE void __fastcall DrawBitmapResourceTransp(Graphics::TCanvas* Canvas, Graphics::TColor 
	bkColor, const Windows::TRect &r, AnsiString ResName);
extern PACKAGE void __fastcall DrawBitmapTransp(Graphics::TCanvas* Canvas, Graphics::TBitmap* bmp, Graphics::TColor 
	bkcolor, const Windows::TRect &r);
extern PACKAGE int __fastcall SinglePos(char p, AnsiString s, int &sp);
extern PACKAGE int __fastcall NumSingleChar(char p, AnsiString s);
extern PACKAGE int __fastcall NumChar(char p, AnsiString s);
extern PACKAGE int __fastcall NumCharInStr(char p, AnsiString s);
extern PACKAGE AnsiString __fastcall LineFeedsToXLS(AnsiString s);
extern PACKAGE AnsiString __fastcall CRToLF(AnsiString s);
extern PACKAGE AnsiString __fastcall ShiftCase(AnsiString Name);
extern PACKAGE System::TDateTime __fastcall StrToShortdateUS(AnsiString s);
extern PACKAGE System::TDateTime __fastcall StrToShortDateEU(AnsiString s);
extern PACKAGE void __fastcall DrawErrorLines(Controls::TWinControl* Parent, Graphics::TCanvas* Canvas
	, AnsiString TmpStr, const Windows::TRect &Rect, int Height, int ErrPos, int ErrLen);
extern PACKAGE void __fastcall DrawRangeIndicator(Graphics::TCanvas* Canvas, const Windows::TRect &r
	, int Value, int Range, bool ShowValue, Graphics::TColor NegColor, Graphics::TColor PosColor);
extern PACKAGE void __fastcall DrawProgressLin(Graphics::TCanvas* Canvas, const Windows::TRect &r, Graphics::TColor 
	Color1, Graphics::TColor TColor1, Graphics::TColor Color2, Graphics::TColor TColor2, int p, int Mx, 
	int My, int Min, int Max, AnsiString Fmt, Graphics::TColor BorderColor, bool print);
extern PACKAGE void __fastcall DrawProgressPie(Graphics::TCanvas* Canvas, const Windows::TRect &r, Graphics::TColor 
	Color, int p, bool print);
extern PACKAGE void __fastcall DrawGradient(Graphics::TCanvas* Canvas, Graphics::TColor FromColor, Graphics::TColor 
	ToColor, int Steps, const Windows::TRect &R, bool Direction);
extern PACKAGE Graphics::TColor __fastcall GradientAt(Graphics::TColor FromColor, Graphics::TColor ToColor
	, int Left, int Right, int Pos);
extern PACKAGE void __fastcall DrawComboButton(Graphics::TCanvas* Canvas, unsigned Handle, const Windows::TRect 
	&ARect, bool WinXP, bool Flat);
extern PACKAGE WideString __fastcall DecodeWideStr(AnsiString s);
extern PACKAGE AnsiString __fastcall EncodeWideStr(WideString s);
extern PACKAGE int __fastcall StrPosWide(WideString SubStr, WideString Str);
extern PACKAGE bool __fastcall IsDateStr(AnsiString s);
extern PACKAGE void __fastcall MakeFragment(AnsiString &HTML);
extern PACKAGE bool __fastcall DynaLink_UpdateLayeredWindow(unsigned hwnd, unsigned hdcDst, Windows::PPoint 
	pptDst, Windows::PPoint size, unsigned hdcSrc, Windows::PPoint pptSrc, unsigned crKey, _BLENDFUNCTION 
	&pblend, unsigned dwFlags);
extern PACKAGE bool __fastcall DynaLink_SetLayeredWindowAttributes(unsigned HWND, unsigned crKey, Byte 
	bAlpha, unsigned dwFlags);

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

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