#include <wx/textctrl.h>
This class provides a convenient means of passing multiple parameters to wxTextCtrl::EnableProofCheck().
By default, i.e. when calling EnableProofCheck() without any parameters, Default() proof options are used, which enable spelling (but not grammar) checks for the current language.
However it is also possible to customize the options:
or disable the all checks entirely:
Note that this class has no public constructor, except for the copy constructor, so its objects can only be created using the static factory methods Default() or Disable().
Private Member Functions | |
wxTextProofOptions & | SpellCheck (bool enable=true) |
Enable / disable spell checking for this control. More... | |
wxTextProofOptions & | GrammarCheck (bool enable=true) |
Enable / disable grammar checking for this control. More... | |
wxTextProofOptions & | Language (const wxString &lang) |
Sets the language for the spell checker (and grammar checker on macOS) from a canonical name (e.g., "fr" or "en"). More... | |
bool | IsSpellCheckEnabled () const |
Return true if spell checking is enabled. More... | |
bool | IsGrammarCheckEnabled () const |
Return true if grammar checking is enabled. More... | |
bool | AnyChecksEnabled () const |
Returns true if any checks are enabled. More... | |
Static Private Member Functions | |
static wxTextProofOptions | Default () |
Create an object corresponding to the default checks. More... | |
static wxTextProofOptions | Disable () |
Create an object disabling all checks. More... | |
|
private |
Returns true if any checks are enabled.
|
staticprivate |
Create an object corresponding to the default checks.
The returned object enables spelling checks and disables grammar checks.
|
staticprivate |
Create an object disabling all checks.
The returned object can be passed to wxTextCtrl::EnableProofCheck() to disable all checks in the text control.
|
private |
Enable / disable grammar checking for this control.
This option is currently only supported under macOS and is ignored under the other platforms.
|
private |
Return true if grammar checking is enabled.
|
private |
Return true if spell checking is enabled.
|
private |
Sets the language for the spell checker (and grammar checker on macOS) from a canonical name (e.g., "fr" or "en").
|
private |
Enable / disable spell checking for this control.