// CodeGear C++Builder
// Copyright (c) 1995, 2016 by Embarcadero Technologies, Inc.
// All rights reserved

// (DO NOT EDIT: machine generated header) 'FPdfText.pas' rev: 31.00 (Windows)

#ifndef FpdftextHPP
#define FpdftextHPP

#pragma delphiheader begin
#pragma option push
#pragma option -w-      // All warnings off
#pragma option -Vx      // Zero-length empty class member 
#pragma pack(push,8)
#include <System.hpp>
#include <SysInit.hpp>
#include <FPdfView.hpp>

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

namespace Fpdftext
{
//-- forward type declarations -----------------------------------------------
//-- type declarations -------------------------------------------------------
typedef void * __cdecl (*TFPDFText_LoadPage)(void * page);

typedef void __cdecl (*TFPDFText_ClosePage)(void * text_page);

typedef int __cdecl (*TFPDFText_CountChars)(void * text_page);

typedef unsigned __cdecl (*TFPDFText_GetUnicode)(void * text_page, int index);

typedef void * __cdecl (*TFPDFText_GetTextObject)(void * text_page, int index);

typedef int __cdecl (*TFPDFText_IsGenerated)(void * text_page, int index);

typedef int __cdecl (*TFPDFText_IsHyphen)(void * text_page, int index);

typedef int __cdecl (*TFPDFText_HasUnicodeMapError)(void * text_page, int index);

typedef double __cdecl (*TFPDFText_GetFontSize)(void * text_page, int index);

typedef unsigned __cdecl (*TFPDFText_GetFontInfo)(void * text_page, int index, void * buffer, unsigned buflen, int &flags);

typedef int __cdecl (*TFPDFText_GetFontWeight)(void * text_page, int index);

typedef int __cdecl (*TFPDFText_GetFillColor)(void * text_page, int index, /* out */ unsigned &R, /* out */ unsigned &G, /* out */ unsigned &B, /* out */ unsigned &A);

typedef int __cdecl (*TFPDFText_GetStrokeColor)(void * text_page, int index, /* out */ unsigned &R, /* out */ unsigned &G, /* out */ unsigned &B, /* out */ unsigned &A);

typedef float __cdecl (*TFPDFText_GetCharAngle)(void * text_page, int index);

typedef int __cdecl (*TFPDFText_GetCharBox)(void * text_page, int index, double &left, double &right, double &bottom, double &top);

typedef int __cdecl (*TFPDFText_GetLooseCharBox)(void * text_page, int index, /* out */ Fpdfview::FS_RECTF &rect);

typedef int __cdecl (*TFPDFText_GetMatrix)(void * text_page, int index, /* out */ Fpdfview::FS_MATRIX &matrix);

typedef int __cdecl (*TFPDFText_GetCharOrigin)(void * text_page, int index, double &x, double &y);

typedef int __cdecl (*TFPDFText_GetCharIndexAtPos)(void * text_page, double x, double y, double xTolerance, double yTolerance);

typedef int __cdecl (*TFPDFText_GetText)(void * text_page, int start_index, int count, System::WideChar * result);

typedef int __cdecl (*TFPDFText_CountRects)(void * text_page, int start_index, int count);

typedef int __cdecl (*TFPDFText_GetRect)(void * text_page, int rect_index, double &left, double &top, double &right, double &bottom);

typedef int __cdecl (*TFPDFText_GetBoundedText)(void * text_page, double left, double top, double right, double bottom, System::WideChar * buffer, int buflen);

typedef void * __cdecl (*TFPDFText_FindStart)(void * text_page, System::WideChar * findwhat, unsigned flags, int start_index);

typedef int __cdecl (*TFPDFText_FindNext)(void * handle);

typedef int __cdecl (*TFPDFText_FindPrev)(void * handle);

typedef int __cdecl (*TFPDFText_GetSchResultIndex)(void * handle);

typedef int __cdecl (*TFPDFText_GetSchCount)(void * handle);

typedef void __cdecl (*TFPDFText_FindClose)(void * handle);

typedef void * __cdecl (*TFPDFLink_LoadWebLinks)(void * text_page);

typedef int __cdecl (*TFPDFLink_CountWebLinks)(void * link_page);

typedef int __cdecl (*TFPDFLink_GetURL)(void * link_page, int link_index, System::WideChar * buffer, int buflen);

typedef int __cdecl (*TFPDFLink_CountRects)(void * link_page, int link_index);

typedef int __cdecl (*TFPDFLink_GetRect)(void * link_page, int link_index, int rect_index, double &left, double &top, double &right, double &bottom);

typedef int __cdecl (*TFPDFLink_GetTextRange)(void * link_page, int link_index, /* out */ int &start_char_index, /* out */ int &char_count);

typedef void __cdecl (*TFPDFLink_CloseWebLinks)(void * link_page);

//-- var, const, procedure ---------------------------------------------------
static const System::Int8 FPDF_MATCHCASE = System::Int8(0x1);
static const System::Int8 FPDF_MATCHWHOLEWORD = System::Int8(0x2);
static const System::Int8 FPDF_CONSECUTIVE = System::Int8(0x4);
}	/* namespace Fpdftext */
#if !defined(DELPHIHEADER_NO_IMPLICIT_NAMESPACE_USE) && !defined(NO_USING_NAMESPACE_FPDFTEXT)
using namespace Fpdftext;
#endif
#pragma pack(pop)
#pragma option pop

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