| 1 |
// Lister API definitions. |
| 2 |
// This unit is written by Christian Ghisler, it's from Total Commander |
| 3 |
// Lister API Guide, which can be found at http://ghisler.com. |
| 4 |
// Version: 1.8. |
| 5 |
|
| 6 |
unit WLXPlugin; |
| 7 |
|
| 8 |
interface |
| 9 |
|
| 10 |
{$IFDEF MSWINDOWS} |
| 11 |
uses |
| 12 |
Windows;{$ENDIF} |
| 13 |
|
| 14 |
const |
| 15 |
lc_copy=1; |
| 16 |
lc_newparams=2; |
| 17 |
lc_selectall=3; |
| 18 |
lc_setpercent=4; |
| 19 |
lcp_wraptext=1; |
| 20 |
lcp_fittowindow=2; |
| 21 |
lcp_ansi=4; |
| 22 |
lcp_ascii=8; |
| 23 |
lcp_variable=12; |
| 24 |
lcp_forceshow=16; |
| 25 |
lcp_fitlargeronly=32; |
| 26 |
lcp_center=64; |
| 27 |
lcs_findfirst=1; |
| 28 |
lcs_matchcase=2; |
| 29 |
lcs_wholewords=4; |
| 30 |
lcs_backwards=8; |
| 31 |
itm_percent=$FFFE; |
| 32 |
itm_fontstyle=$FFFD; |
| 33 |
itm_wrap=$FFFC; |
| 34 |
itm_fit=$FFFB; |
| 35 |
itm_next=$FFFA; |
| 36 |
itm_center=$FFF9; |
| 37 |
LISTPLUGIN_OK=0; |
| 38 |
LISTPLUGIN_ERROR=1; |
| 39 |
|
| 40 |
const MAX_PATH=32000; |
| 41 |
|
| 42 |
type |
| 43 |
tListDefaultParamStruct=record |
| 44 |
size, |
| 45 |
PluginInterfaceVersionLow, |
| 46 |
PluginInterfaceVersionHi:longint; |
| 47 |
DefaultIniName:array[0..MAX_PATH-1] of char; |
| 48 |
end; |
| 49 |
|
| 50 |
pListDefaultParamStruct=^tListDefaultParamStruct; |
| 51 |
|
| 52 |
type tdateformat=record |
| 53 |
wYear,wMonth,wDay:word; |
| 54 |
end; |
| 55 |
pdateformat=^tdateformat; |
| 56 |
|
| 57 |
type ttimeformat=record |
| 58 |
wHour,wMinute,wSecond:word; |
| 59 |
end; |
| 60 |
ptimeformat=^ttimeformat; |
| 61 |
|
| 62 |
type HBITMAP = type LongWord; |
| 63 |
|
| 64 |
|
| 65 |
{ Function prototypes: Functions need to be defined exactly like this!} |
| 66 |
{ |
| 67 |
function ListLoad(ParentWin:thandle;FileToLoad:pchar;ShowFlags:integer):thandle; stdcall; |
| 68 |
function ListLoadNext(ParentWin,PluginWin:thandle;FileToLoad:pchar;ShowFlags:integer):integer; stdcall; |
| 69 |
procedure ListCloseWindow(ListWin:thandle); stdcall; |
| 70 |
procedure ListGetDetectString(DetectString:pchar;maxlen:integer); stdcall; |
| 71 |
function ListSearchText(ListWin:thandle;SearchString:pchar; |
| 72 |
SearchParameter:integer):integer; stdcall; |
| 73 |
function ListSearchDialog(ListWin:thandle;FindNext:integer):integer; stdcall; |
| 74 |
function ListSendCommand(ListWin:thandle;Command,Parameter:integer):integer; stdcall; |
| 75 |
function ListPrint(ListWin:thandle;FileToPrint,DefPrinter:pchar; |
| 76 |
PrintFlags:integer;var Margins:trect):integer; stdcall; |
| 77 |
function ListNotificationReceived(ListWin:thandle;Message,wParam,lParam:integer):integer; stdcall; |
| 78 |
procedure ListSetDefaultParams(dps:pListDefaultParamStruct); stdcall; |
| 79 |
function ListGetPreviewBitmap(FileToLoad:pchar;width,height:integer; |
| 80 |
contentbuf:pchar;contentbuflen:integer):hbitmap; stdcall; |
| 81 |
} |
| 82 |
|
| 83 |
implementation |
| 84 |
|
| 85 |
end. |