]> git.lyx.org Git - lyx.git/blobdiff - src/Font.h
1.) some white spaces removed
[lyx.git] / src / Font.h
index c306daa75ca0a138763d5972d5cd8e7a199bc9c2..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
@@ -22,7 +22,7 @@
 #include "ColorCode.h"
 #include "FontInfo.h"
 
-#include "support/docstream.h"
+#include "support/strfwd.h"
 
 
 namespace lyx {
@@ -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_;
 }
 
 ///