]> git.lyx.org Git - lyx.git/blobdiff - src/Paragraph.h
LogUi.ui: string redundancy.
[lyx.git] / src / Paragraph.h
index c256faf4fc5191b3e48f85775dd17c775e1330d4..dec527cbc85590ec8963ad4d5b11057e514d81a7 100644 (file)
@@ -34,6 +34,7 @@ class Counters;
 class Cursor;
 class CursorSlice;
 class DocIterator;
+class docstring_list;
 class DocumentClass;
 class Inset;
 class InsetBibitem;
@@ -49,6 +50,7 @@ class PainterInfo;
 class ParagraphParameters;
 class TexRow;
 class Toc;
+class WordLangTuple;
 
 class FontSpan {
 public:
@@ -362,9 +364,9 @@ 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
@@ -417,6 +419,12 @@ public:
                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;