lazarus-ccr/components/geckoport/version2/gecko10/nsicontroller.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

31 lines
1.2 KiB
PHP

type
nsIController = interface(nsISupports)
['{D5B61B82-1DA4-11d3-BF87-00105A1B0627}']
function isCommandEnabled(command: PAnsiChar) : longbool; safecall;
function supportsCommand(command: PAnsiChar) : longbool; safecall;
procedure doCommand(command: PAnsiChar); safecall;
procedure onEvent(eventName: PAnsiChar); safecall;
end;
nsICommandController = interface(nsISupports)
['{EBE55080-C8A9-11D5-A73C-DD620D6E04BC}']
procedure getCommandStateWithParams(command: PAnsiChar; aCommandParams: nsICommandParams); safecall;
procedure doCommandWithParams(command: PAnsiChar; aCommandParams: nsICommandParams); safecall;
end;
nsIControllerCommandGroup = interface(nsISupports)
['{9F82C404-1C7B-11D5-A73C-ECA43CA836FC}']
procedure addCommandToGroup(aCommand: PAnsiChar; aGroup: PAnsiChar); safecall;
procedure removeCommandFromGroup(aCommand: PAnsiChar; aGroup: PAnsiChar); safecall;
function isCommandInGroup(aCommand: PAnsiChar; aGroup: PAnsiChar) : longbool; safecall;
function getGroupsEnumerator() : nsISimpleEnumerator; safecall;
function getEnumeratorForGroup(aGroup: PAnsiChar) : nsISimpleEnumerator; safecall;
end;