]> git.lyx.org Git - lyx.git/blobdiff - src/Font.h
grammar
[lyx.git] / src / Font.h
index 9b36822cab9deb01df1c5639ffa7f2ebcd4572f6..97d403627ecd1087ada19c1e54b155946d7974da 100644 (file)
@@ -47,6 +47,10 @@ public:
        ///
        Language const * language() const { return lang_; }
        ///
+       void setMisspelled(bool misspelled) { misspelled_ = misspelled; }
+       ///
+       bool isMisspelled() const { return misspelled_; }
+       ///
        bool isRightToLeft() const;
        ///
        bool isVisibleRightToLeft() const;
@@ -121,6 +125,8 @@ private:
        FontInfo bits_;
        ///
        Language const * lang_;
+       ///
+       bool misspelled_;
 
        /// Did latexWriteStartChanges open an encoding environment?
        mutable bool open_encoding_;
@@ -131,7 +137,8 @@ private:
 inline
 bool operator==(Font const & font1, Font const & font2)
 {
-       return font1.bits_ == font2.bits_ && font1.lang_ == font2.lang_;
+       return font1.bits_ == font2.bits_ && font1.lang_ == font2.lang_
+           && font1.misspelled_ == font2.misspelled_;
 }
 
 ///