class Cursor;
class CursorSlice;
class DocIterator;
+class docstring_list;
class DocumentClass;
class Inset;
class InsetBibitem;
class ParagraphParameters;
class TexRow;
class Toc;
+class WordLangTuple;
class FontSpan {
public:
bool isSeparator(pos_type pos) const;
///
bool isLineSeparator(pos_type pos) const;
- /// True if the character/inset at this point can be part of a word.
- /// Note that digits in particular are considered as letters
- bool isLetter(pos_type pos) const;
+ /// True if the character/inset at this point is a word separator.
+ /// Note that digits in particular are not considered as word separator.
+ bool isWordSeparator(pos_type pos) const;
/// True if the element at this point is a character that is not a letter.
bool isChar(pos_type pos) const;
/// True if the element at this point is a space
word_location const loc) const;
///
void updateWords();
+
+ /// Spellcheck word at position \p from and fill in found misspelled word.
+ /// \return true if pointed word is misspelled.
+ bool spellCheck(pos_type & from, pos_type & to, WordLangTuple & wl,
+ docstring_list & suggestions) const;
+
/// Spellcheck word at position \p pos.
/// \return true if pointed word is misspelled.
bool isMisspelled(pos_type pos) const;