]> git.lyx.org Git - lyx.git/blobdiff - src/Font.h
grammar
[lyx.git] / src / Font.h
index 49c8f31b5b9ed52ffba3ce325fa43c156c0feb59..97d403627ecd1087ada19c1e54b155946d7974da 100644 (file)
@@ -4,7 +4,7 @@
  * This file is part of LyX, the document processor.
  * Licence details can be found in the file COPYING.
  *
- * \author Lars Gullik Bjønnes
+ * \author Lars Gullik Bjønnes
  * \author Jean-Marc Lasgouttes
  * \author Angus Leeming
  * \author Dekel Tsur
@@ -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_;
 }
 
 ///