Implement support for grammar checking in wxOSX
Use native support for grammar checking in NSTextView. As we're not passing wxTextProofOptions to the lower level function, this functionality now depends on wxUSE_SPELLCHECK, meaning that even the previously existing MacCheckSpelling() function is not defined any more when wxUSE_SPELLCHECK is set to 0. This is not completely backwards-compatible, but hopefully shouldn't be a problem in practice and shouldn't break any existing applications which can't disable the just added wxUSE_SPELLCHECK.
This commit is contained in:
@@ -1033,7 +1033,8 @@ class WXDLLIMPEXP_CORE wxTextProofOptions
|
||||
/**
|
||||
Enable / disable grammar checking for this control.
|
||||
|
||||
This option is not currently supported and is ignored.
|
||||
This option is currently only supported under macOS and is ignored under
|
||||
the other platforms.
|
||||
*/
|
||||
wxTextProofOptions& GrammarCheck(bool enable = true)
|
||||
|
||||
|
Reference in New Issue
Block a user