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

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

#ifndef UFlxMessagesHPP
#define UFlxMessagesHPP

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

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

namespace Uflxmessages
{
//-- type declarations -------------------------------------------------------
#pragma pack(push, 1)
struct TClientAnchor
{
	Word Flag;
	Word Col1;
	Word Dx1;
	Word Row1;
	Word Dy1;
	Word Col2;
	Word Dx2;
	Word Row2;
	Word Dy2;
} ;
#pragma pack(pop)

typedef TClientAnchor *PClientAnchor;

typedef DynamicArray<WideString >  WidestringArray;

typedef Shortint TColorPaletteRange;

struct TXlsCellRange
{
	int Left;
	int Top;
	int Right;
	int Bottom;
} ;

#pragma pack(push, 1)
struct TXlsMargins
{
	Extended Left;
	Extended Top;
	Extended Right;
	Extended Bottom;
	Extended Header;
	Extended Footer;
} ;
#pragma pack(pop)

#pragma option push -b-
enum TXlsSheetVisible { sv_Visible, sv_Hidden, sv_VeryHidden };
#pragma option pop

struct TRTFRun
{
	Word FirstChar;
	Word FontIndex;
} ;

typedef DynamicArray<TRTFRun >  TRTFRunList;

struct TRichString
{
	WideString Value;
	DynamicArray<TRTFRun >  RTFRuns;
} ;

#pragma option push -b-
enum THyperLinkType { hl_URL, hl_LocalFile, hl_UNC, hl_CurrentWorkbook };
#pragma option pop

struct THyperLink
{
	THyperLinkType LinkType;
	WideString Description;
	WideString TargetFrame;
	WideString TextMark;
	WideString Text;
	WideString Hint;
} ;

typedef void __fastcall (__closure *TOnGetFileNameEvent)(System::TObject* Sender, const int FileFormat
	, AnsiString &Filename);

typedef void __fastcall (__closure *TOnGetOutStreamEvent)(System::TObject* Sender, const int FileFormat
	, Classes::TStream* &OutStream);

#pragma option push -b-
enum TXlsImgTypes { xli_Emf, xli_Wmf, xli_Jpeg, xli_Png, xli_Bmp, xli_Unknown };
#pragma option pop

typedef Variant VariantArray[134217727];

typedef DynamicArray<Variant >  ArrayOfVariant;

struct TXlsCellValue
{
	Variant Value;
	int XF;
	bool IsFormula;
} ;

#pragma option push -b-
enum TFlxAnchorType { at_MoveAndResize, at_MoveAndDontResize, at_DontMoveAndDontResize };
#pragma option pop

struct TImageProperties
{
	int Col1;
	int dx1;
	int Row1;
	int dy1;
	int Col2;
	int dx2;
	int Row2;
	int dy2;
	WideString FileName;
} ;

//-- var, const, procedure ---------------------------------------------------
static const Word FLX_VAR_LOCALE_USER_DEFAULT = 0x400;
extern PACKAGE System::ResourceString _FieldStr;
#define Uflxmessages_FieldStr System::LoadResourceString(&Uflxmessages::_FieldStr)
extern PACKAGE System::ResourceString _DataSetStr;
#define Uflxmessages_DataSetStr System::LoadResourceString(&Uflxmessages::_DataSetStr)
extern PACKAGE System::ResourceString _VarStr;
#define Uflxmessages_VarStr System::LoadResourceString(&Uflxmessages::_VarStr)
extern PACKAGE System::ResourceString _StrOpen;
#define Uflxmessages_StrOpen System::LoadResourceString(&Uflxmessages::_StrOpen)
extern PACKAGE System::ResourceString _StrClose;
#define Uflxmessages_StrClose System::LoadResourceString(&Uflxmessages::_StrClose)
extern PACKAGE System::ResourceString _ExtrasDelim;
#define Uflxmessages_ExtrasDelim System::LoadResourceString(&Uflxmessages::_ExtrasDelim)
extern PACKAGE System::ResourceString _MarkedRowStr;
#define Uflxmessages_MarkedRowStr System::LoadResourceString(&Uflxmessages::_MarkedRowStr)
extern PACKAGE System::ResourceString _HPageBreakStr;
#define Uflxmessages_HPageBreakStr System::LoadResourceString(&Uflxmessages::_HPageBreakStr)
extern PACKAGE System::ResourceString _FullDataSetStr;
#define Uflxmessages_FullDataSetStr System::LoadResourceString(&Uflxmessages::_FullDataSetStr)
extern PACKAGE System::ResourceString _MainTxt;
#define Uflxmessages_MainTxt System::LoadResourceString(&Uflxmessages::_MainTxt)
extern PACKAGE System::ResourceString _RecordCountPrefix;
#define Uflxmessages_RecordCountPrefix System::LoadResourceString(&Uflxmessages::_RecordCountPrefix)
	
extern PACKAGE System::ResourceString _DefaultDateTimeFormat;
#define Uflxmessages_DefaultDateTimeFormat System::LoadResourceString(&Uflxmessages::_DefaultDateTimeFormat)
	
extern PACKAGE System::ResourceString _FlexCelVersion;
#define Uflxmessages_FlexCelVersion System::LoadResourceString(&Uflxmessages::_FlexCelVersion)
extern PACKAGE System::ResourceString _ErrNoAdapter;
#define Uflxmessages_ErrNoAdapter System::LoadResourceString(&Uflxmessages::_ErrNoAdapter)
extern PACKAGE System::ResourceString _ErrTooManySheets;
#define Uflxmessages_ErrTooManySheets System::LoadResourceString(&Uflxmessages::_ErrTooManySheets)
extern PACKAGE System::ResourceString _ErrNoDataSet;
#define Uflxmessages_ErrNoDataSet System::LoadResourceString(&Uflxmessages::_ErrNoDataSet)
extern PACKAGE System::ResourceString _ErrNoPropDefined;
#define Uflxmessages_ErrNoPropDefined System::LoadResourceString(&Uflxmessages::_ErrNoPropDefined)
extern PACKAGE System::ResourceString _ErrBadProp;
#define Uflxmessages_ErrBadProp System::LoadResourceString(&Uflxmessages::_ErrBadProp)
extern PACKAGE System::ResourceString _ErrTooManyDimensions;
#define Uflxmessages_ErrTooManyDimensions System::LoadResourceString(&Uflxmessages::_ErrTooManyDimensions)
	
extern PACKAGE System::ResourceString _ErrIndexOutBounds;
#define Uflxmessages_ErrIndexOutBounds System::LoadResourceString(&Uflxmessages::_ErrIndexOutBounds)
	
extern PACKAGE System::ResourceString _ErrInvalidDrawingType;
#define Uflxmessages_ErrInvalidDrawingType System::LoadResourceString(&Uflxmessages::_ErrInvalidDrawingType)
	
extern PACKAGE System::ResourceString _ErrNoOpenFile;
#define Uflxmessages_ErrNoOpenFile System::LoadResourceString(&Uflxmessages::_ErrNoOpenFile)
extern PACKAGE System::ResourceString _ErrCantFindFile;
#define Uflxmessages_ErrCantFindFile System::LoadResourceString(&Uflxmessages::_ErrCantFindFile)
extern PACKAGE System::ResourceString _ErrNoTemplate;
#define Uflxmessages_ErrNoTemplate System::LoadResourceString(&Uflxmessages::_ErrNoTemplate)
extern PACKAGE System::ResourceString _ErrDocumentNotSaved;
#define Uflxmessages_ErrDocumentNotSaved System::LoadResourceString(&Uflxmessages::_ErrDocumentNotSaved)
	
extern PACKAGE System::ResourceString _ErrFieldNil;
#define Uflxmessages_ErrFieldNil System::LoadResourceString(&Uflxmessages::_ErrFieldNil)
extern PACKAGE System::ResourceString _ErrDupField;
#define Uflxmessages_ErrDupField System::LoadResourceString(&Uflxmessages::_ErrDupField)
extern PACKAGE System::ResourceString _ErrFieldNotFound;
#define Uflxmessages_ErrFieldNotFound System::LoadResourceString(&Uflxmessages::_ErrFieldNotFound)
extern PACKAGE System::ResourceString _ErrInvalidColumnCount;
#define Uflxmessages_ErrInvalidColumnCount System::LoadResourceString(&Uflxmessages::_ErrInvalidColumnCount)
	
extern PACKAGE System::ResourceString _MsgAbout;
#define Uflxmessages_MsgAbout System::LoadResourceString(&Uflxmessages::_MsgAbout)
extern PACKAGE System::ResourceString _TxtDatasets;
#define Uflxmessages_TxtDatasets System::LoadResourceString(&Uflxmessages::_TxtDatasets)
extern PACKAGE System::ResourceString _TxtProperties;
#define Uflxmessages_TxtProperties System::LoadResourceString(&Uflxmessages::_TxtProperties)
extern PACKAGE System::ResourceString _TxtExtras;
#define Uflxmessages_TxtExtras System::LoadResourceString(&Uflxmessages::_TxtExtras)
extern PACKAGE System::ResourceString _TxtFileModified;
#define Uflxmessages_TxtFileModified System::LoadResourceString(&Uflxmessages::_TxtFileModified)
extern PACKAGE System::ResourceString _TxtFileModifiedCaption;
#define Uflxmessages_TxtFileModifiedCaption System::LoadResourceString(&Uflxmessages::_TxtFileModifiedCaption)
	
extern PACKAGE System::ResourceString _TxtEditing;
#define Uflxmessages_TxtEditing System::LoadResourceString(&Uflxmessages::_TxtEditing)
extern PACKAGE System::ResourceString _TxtEditTemplate;
#define Uflxmessages_TxtEditTemplate System::LoadResourceString(&Uflxmessages::_TxtEditTemplate)
extern PACKAGE System::ResourceString _TxtRefreshTemplate;
#define Uflxmessages_TxtRefreshTemplate System::LoadResourceString(&Uflxmessages::_TxtRefreshTemplate)
	
extern PACKAGE System::ResourceString _TxtTemplateStoreRefreshed;
#define Uflxmessages_TxtTemplateStoreRefreshed System::LoadResourceString(&Uflxmessages::_TxtTemplateStoreRefreshed)
	
extern PACKAGE System::ResourceString _TxtDeleteRange;
#define Uflxmessages_TxtDeleteRange System::LoadResourceString(&Uflxmessages::_TxtDeleteRange)
extern PACKAGE System::ResourceString _TxtDeleteRangeCaption;
#define Uflxmessages_TxtDeleteRangeCaption System::LoadResourceString(&Uflxmessages::_TxtDeleteRangeCaption)
	
extern PACKAGE System::ResourceString _TxtNamedRangeFormula;
#define Uflxmessages_TxtNamedRangeFormula System::LoadResourceString(&Uflxmessages::_TxtNamedRangeFormula)
	
extern PACKAGE System::ResourceString _ErrComponentIsNotXlsDataSet;
#define Uflxmessages_ErrComponentIsNotXlsDataSet System::LoadResourceString(&Uflxmessages::_ErrComponentIsNotXlsDataSet)
	
extern PACKAGE System::ResourceString _ErrUseFasterAdapter;
#define Uflxmessages_ErrUseFasterAdapter System::LoadResourceString(&Uflxmessages::_ErrUseFasterAdapter)
	
extern PACKAGE System::ResourceString _TxtTrue;
#define Uflxmessages_TxtTrue System::LoadResourceString(&Uflxmessages::_TxtTrue)
extern PACKAGE System::ResourceString _TxtFalse;
#define Uflxmessages_TxtFalse System::LoadResourceString(&Uflxmessages::_TxtFalse)
extern PACKAGE System::ResourceString _ErrInvalidWmf;
#define Uflxmessages_ErrInvalidWmf System::LoadResourceString(&Uflxmessages::_ErrInvalidWmf)
extern PACKAGE System::ResourceString _TxtSepLog;
#define Uflxmessages_TxtSepLog System::LoadResourceString(&Uflxmessages::_TxtSepLog)
extern PACKAGE System::ResourceString _TxtCheckHeader;
#define Uflxmessages_TxtCheckHeader System::LoadResourceString(&Uflxmessages::_TxtCheckHeader)
extern PACKAGE System::ResourceString _TxtError;
#define Uflxmessages_TxtError System::LoadResourceString(&Uflxmessages::_TxtError)
extern PACKAGE System::ResourceString _TxtOK;
#define Uflxmessages_TxtOK System::LoadResourceString(&Uflxmessages::_TxtOK)
extern PACKAGE System::ResourceString _ErrInvalidRangeName;
#define Uflxmessages_ErrInvalidRangeName System::LoadResourceString(&Uflxmessages::_ErrInvalidRangeName)
	
extern PACKAGE System::ResourceString _ErrRangeNameNotFound;
#define Uflxmessages_ErrRangeNameNotFound System::LoadResourceString(&Uflxmessages::_ErrRangeNameNotFound)
	
extern PACKAGE System::ResourceString _ErrRangeNameInvalidType;
#define Uflxmessages_ErrRangeNameInvalidType System::LoadResourceString(&Uflxmessages::_ErrRangeNameInvalidType)
	
extern PACKAGE System::ResourceString _ErrCheckCellDots;
#define Uflxmessages_ErrCheckCellDots System::LoadResourceString(&Uflxmessages::_ErrCheckCellDots)
extern PACKAGE System::ResourceString _ErrCheckDotCommandsCol;
#define Uflxmessages_ErrCheckDotCommandsCol System::LoadResourceString(&Uflxmessages::_ErrCheckDotCommandsCol)
	
extern PACKAGE System::ResourceString _ErrInvalidCellDB;
#define Uflxmessages_ErrInvalidCellDB System::LoadResourceString(&Uflxmessages::_ErrInvalidCellDB)
extern PACKAGE System::ResourceString _ErrInvalidCellDB2;
#define Uflxmessages_ErrInvalidCellDB2 System::LoadResourceString(&Uflxmessages::_ErrInvalidCellDB2)
	
extern PACKAGE System::ResourceString _ErrInvalidField;
#define Uflxmessages_ErrInvalidField System::LoadResourceString(&Uflxmessages::_ErrInvalidField)
extern PACKAGE System::ResourceString _ErrInvalidPagesField;
#define Uflxmessages_ErrInvalidPagesField System::LoadResourceString(&Uflxmessages::_ErrInvalidPagesField)
	
extern PACKAGE System::ResourceString _ErrFieldOutsideRange;
#define Uflxmessages_ErrFieldOutsideRange System::LoadResourceString(&Uflxmessages::_ErrFieldOutsideRange)
	
extern PACKAGE System::ResourceString _ErrInvalidImageDB;
#define Uflxmessages_ErrInvalidImageDB System::LoadResourceString(&Uflxmessages::_ErrInvalidImageDB)
	
extern PACKAGE System::ResourceString _ErrInvalidImageField;
#define Uflxmessages_ErrInvalidImageField System::LoadResourceString(&Uflxmessages::_ErrInvalidImageField)
	
extern PACKAGE System::ResourceString _ErrInvalidImageType;
#define Uflxmessages_ErrInvalidImageType System::LoadResourceString(&Uflxmessages::_ErrInvalidImageType)
	
extern PACKAGE System::ResourceString _ErrTemplateNotRefreshed;
#define Uflxmessages_ErrTemplateNotRefreshed System::LoadResourceString(&Uflxmessages::_ErrTemplateNotRefreshed)
	
extern PACKAGE System::ResourceString _ErrNoAdvStrGrid;
#define Uflxmessages_ErrNoAdvStrGrid System::LoadResourceString(&Uflxmessages::_ErrNoAdvStrGrid)
extern PACKAGE System::ResourceString _ErrInvalidSheetName;
#define Uflxmessages_ErrInvalidSheetName System::LoadResourceString(&Uflxmessages::_ErrInvalidSheetName)
	
extern PACKAGE System::ResourceString _xls_Emf;
#define Uflxmessages_xls_Emf System::LoadResourceString(&Uflxmessages::_xls_Emf)
extern PACKAGE System::ResourceString _xls_Wmf;
#define Uflxmessages_xls_Wmf System::LoadResourceString(&Uflxmessages::_xls_Wmf)
extern PACKAGE System::ResourceString _xls_Jpeg;
#define Uflxmessages_xls_Jpeg System::LoadResourceString(&Uflxmessages::_xls_Jpeg)
extern PACKAGE System::ResourceString _xls_Png;
#define Uflxmessages_xls_Png System::LoadResourceString(&Uflxmessages::_xls_Png)
extern PACKAGE System::ResourceString _FlexCelTempPrefix;
#define Uflxmessages_FlexCelTempPrefix System::LoadResourceString(&Uflxmessages::_FlexCelTempPrefix)
	
extern PACKAGE int DefColWidthAdapt;
static const Shortint fpo_LeftToRight = 0x1;
static const Shortint fpo_Orientation = 0x2;
static const Shortint fpo_NoPls = 0x4;
static const Shortint fpo_NoColor = 0x8;
static const Shortint fpo_Draft = 0x10;
static const Shortint fpo_Notes = 0x20;
static const Shortint fpo_NoOrient = 0x40;
static const Byte fpo_UsePage = 0x80;
extern PACKAGE Extended ColMult;
extern PACKAGE Extended RowMult;
extern PACKAGE AnsiString __fastcall EncodeColumn(const int C);
extern PACKAGE AnsiString __fastcall SearchPathStr(const AnsiString AFileName);
extern PACKAGE AnsiString __fastcall IncludeTrailingPathDelimiter(const AnsiString S);
extern PACKAGE bool __fastcall VarIsClear(const Variant &v);
extern PACKAGE WideString __fastcall StringReplaceSkipQuotes(const WideString S, const WideString OldPattern
	, const WideString NewPattern);
extern PACKAGE bool __fastcall FlxTryStrToDateTime(const WideString S, /* out */ System::TDateTime &
	Value, WideString &dFormat, bool &HasDate, bool &HasTime, const WideString DateFormat, const WideString 
	TimeFormat);
extern PACKAGE TXlsCellRange __fastcall OffsetRange(const TXlsCellRange &CellRange, const int DeltaRow
	, const int DeltaCol);

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

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