]> git.lyx.org Git - lyx.git/blobdiff - src/Font.h
Check path of Qt tools if qtchooser is detected
[lyx.git] / src / Font.h
index 7c0b61134fdcd00d7abd5e79de58520a26c6374d..58f2696fa6e531ace6d6812aeee8b7e15841916d 100644 (file)
@@ -15,7 +15,6 @@
 #ifndef FONT_H
 #define FONT_H
 
-#include "ColorCode.h"
 #include "FontInfo.h"
 
 #include "support/strfwd.h"
@@ -27,6 +26,7 @@ class BufferParams;
 class Language;
 class LaTeXFeatures;
 class OutputParams;
+class otexstream;
 
 ///
 class Font {
@@ -42,10 +42,6 @@ public:
        ///
        Language const * language() const { return lang_; }
        ///
-       void setMisspelled(bool misspelled) { misspelled_ = misspelled; }
-       ///
-       bool isMisspelled() const { return misspelled_; }
-       ///
        bool isRightToLeft() const;
        ///
        bool isVisibleRightToLeft() const;
@@ -85,7 +81,7 @@ public:
            Returns number of chars written. Base is the font state we want
            to achieve.
        */
-       int latexWriteEndChanges(odocstream &, BufferParams const & bparams,
+       int latexWriteEndChanges(otexstream &, BufferParams const & bparams,
                                 OutputParams const & runparams,
                                 Font const & base,
                                 Font const & next,
@@ -116,9 +112,6 @@ private:
        FontInfo bits_;
        ///
        Language const * lang_;
-       ///
-       bool misspelled_;
-
        /// Did latexWriteStartChanges open an encoding environment?
        mutable bool open_encoding_;
 };
@@ -128,8 +121,7 @@ private:
 inline
 bool operator==(Font const & font1, Font const & font2)
 {
-       return font1.bits_ == font2.bits_ && font1.lang_ == font2.lang_
-           && font1.misspelled_ == font2.misspelled_;
+       return font1.bits_ == font2.bits_ && font1.lang_ == font2.lang_;
 }
 
 ///