Implement minimal support for spell checking in wxOSX too

Reuse the existing CheckSpelling() function.

Also deprecate wxTextCtrl::MacCheckSpelling() in favour of the new
portable EnableProofCheck().
This commit is contained in:
Vadim Zeitlin
2021-08-22 22:11:39 +02:00
parent af43b7c965
commit 90e79d8ed4
8 changed files with 54 additions and 7 deletions

View File

@@ -738,6 +738,7 @@ public :
virtual int GetLineLength(long lineNo) const ;
virtual wxString GetLineText(long lineNo) const ;
virtual void CheckSpelling(bool WXUNUSED(check)) { }
virtual bool IsSpellingCheckEnabled() const { return false; }
virtual void EnableAutomaticQuoteSubstitution(bool WXUNUSED(enable)) {}
virtual void EnableAutomaticDashSubstitution(bool WXUNUSED(enable)) {}