Methods, Plugins-related


procedure RemovePlugins;
Clears internal plugins list.
function AddPlugin(const AFilename, ADetectStr: string): Boolean;
Adds plugin record (file name and detect-string) to internal plugins list.
Result is True if record was added.
Notes:
  • Detect-string is a plugin's "property". For a plugin supporting PDF and RTF formats it can look like:
    EXT:PDF,RTF
function GetPlugin(AIndex: word; var AFilename, ADetectStr: string): Boolean;
Returns plugin record (file name and detect-string) from internal list.
Result is True if record with index AIndex exists and was returned.
Note:
  • To get all plugin records, call this function in cycle with AIndex := 1 to 100, until it returns False.