Class TAspellProcess

Unit

Declaration

type TAspellProcess = class(TObject)

Description

This is a class to interface with aspell through pipe. It uses underlying TProcessLineTalk to execute and "talk" with aspell.

Source: source/component/PasDoc_Aspell.pas (line 55).

Hierarchy

Show Additional Members:

Overview

Methods

Public constructor Create(const AAspellMode, AAspellLanguage: string; AOnMessage: TPasDocMessageEvent);
Public destructor Destroy; override;
Public procedure SetIgnoreWords(Value: TStringList);
Public procedure CheckString(const AString: string; const AErrors: TSpellingErrorList);

Properties

Public property AspellMode: string read FAspellMode;
Public property AspellLanguage: string read FAspellLanguage;
Public property OnMessage: TPasDocMessageEvent read FOnMessage write FOnMessage;

Description

Methods

Public constructor Create(const AAspellMode, AAspellLanguage: string; AOnMessage: TPasDocMessageEvent);

Constructor. Values for AspellMode and AspellLanguage are the same as for aspell --mode and --lang command-line options. You can pass here '', then we will not pass appropriate command-line option to aspell.

Source: source/component/PasDoc_Aspell.pas (line 70).

Public destructor Destroy; override;

This item has no description.

Source: source/component/PasDoc_Aspell.pas (line 72).

Public procedure SetIgnoreWords(Value: TStringList);

Tell Aspell to ignore all words in Value for subsequent CheckString calls.

Source: source/component/PasDoc_Aspell.pas (line 86).

Public procedure CheckString(const AString: string; const AErrors: TSpellingErrorList);

Spellchecks AString and returns result. Will create an array of TSpellingError objects, one entry for each misspelled word. Offsets of TSpellingErrors will be relative to AString.

Source: source/component/PasDoc_Aspell.pas (line 92).

Properties

Public property AspellMode: string read FAspellMode;

Aspell input mode (passed to aspell --mode command-line option) passed at construction. Empty string means the Aspell default.

Source: source/component/PasDoc_Aspell.pas (line 77).

Public property AspellLanguage: string read FAspellLanguage;

Language code for aspell (passed to aspell --lang command-line option) passed at construction. Empty string means the Aspell default.

Source: source/component/PasDoc_Aspell.pas (line 82).

Public property OnMessage: TPasDocMessageEvent read FOnMessage write FOnMessage;

Callback for diagnostic messages.

Source: source/component/PasDoc_Aspell.pas (line 95).


Generated by PasDoc 1.0.2.