Files
lazarus-ccr/components/geckoport/version2/gecko10/nsiprompt.inc
loesje_ 625a4e0e99 * Begin of version 2 of the geckoport package
In this new version the gecko-interfaces are generated directly from the
   idl-files of the gecko-sdk using the idlparser utility. The generated 
   include files are kept as closely to the original as possible. For now
   by defaule Gecko 9 is used, as Gecko 10 has a bug which makes it
   impossible to embed it on Linux systems.



git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@2349 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2012-03-17 10:50:10 +00:00

38 lines
2.3 KiB
PHP

type
nsIPrompt = interface(nsISupports)
['{a63f70c0-148b-11d3-9333-00104ba0fd40}']
procedure alert(dialogTitle: PWideChar; text: PWideChar); safecall;
procedure alertCheck(dialogTitle: PWideChar; text: PWideChar; checkMsg: PWideChar; var checkValue: longbool); safecall;
function confirm(dialogTitle: PWideChar; text: PWideChar) : longbool; safecall;
function confirmCheck(dialogTitle: PWideChar; text: PWideChar; checkMsg: PWideChar; var checkValue: longbool) : longbool; safecall;
function confirmEx(dialogTitle: PWideChar; text: PWideChar; buttonFlags: idlulong; button0Title: PWideChar; button1Title: PWideChar; button2Title: PWideChar; checkMsg: PWideChar; var checkValue: longbool) : PRInt32; safecall;
function prompt(dialogTitle: PWideChar; text: PWideChar; var value: PWideChar; checkMsg: PWideChar; var checkValue: longbool) : longbool; safecall;
function promptPassword(dialogTitle: PWideChar; text: PWideChar; var password: PWideChar; checkMsg: PWideChar; var checkValue: longbool) : longbool; safecall;
function promptUsernameAndPassword(dialogTitle: PWideChar; text: PWideChar; var username: PWideChar; var password: PWideChar; checkMsg: PWideChar; var checkValue: longbool) : longbool; safecall;
function select(dialogTitle: PWideChar; text: PWideChar; count: PRUint32; selectList: PWideChar; out outSelection: idllong) : longbool; safecall;
end;
const
nsIPrompt_BUTTON_POS_0=1;
nsIPrompt_BUTTON_POS_1=1 << 8;
nsIPrompt_BUTTON_POS_2=1 << 16;
nsIPrompt_BUTTON_TITLE_OK=1;
nsIPrompt_BUTTON_TITLE_CANCEL=2;
nsIPrompt_BUTTON_TITLE_YES=3;
nsIPrompt_BUTTON_TITLE_NO=4;
nsIPrompt_BUTTON_TITLE_SAVE=5;
nsIPrompt_BUTTON_TITLE_DONT_SAVE=6;
nsIPrompt_BUTTON_TITLE_REVERT=7;
nsIPrompt_BUTTON_TITLE_IS_STRING=127;
nsIPrompt_BUTTON_POS_0_DEFAULT=0 << 24;
nsIPrompt_BUTTON_POS_1_DEFAULT=1 << 24;
nsIPrompt_BUTTON_POS_2_DEFAULT=2 << 24;
nsIPrompt_BUTTON_DELAY_ENABLE=1 << 26;
nsIPrompt_STD_OK_CANCEL_BUTTONS=(nsIPrompt_BUTTON_TITLE_OK * nsIPrompt_BUTTON_POS_0) +
(nsIPrompt_BUTTON_TITLE_CANCEL * nsIPrompt_BUTTON_POS_1);
nsIPrompt_STD_YES_NO_BUTTONS=(nsIPrompt_BUTTON_TITLE_YES * nsIPrompt_BUTTON_POS_0) +
(nsIPrompt_BUTTON_TITLE_NO * nsIPrompt_BUTTON_POS_1);