X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FFont.h;h=79e41b17e9e5c2db290c0b422132885a927b14b7;hb=7af6575cf6cd764b8b567b358907ac9a7a8e322b;hp=7c0b61134fdcd00d7abd5e79de58520a26c6374d;hpb=0c1ff6d89e72ae82e4a68f99934b735ade5fea5c;p=lyx.git diff --git a/src/Font.h b/src/Font.h index 7c0b61134f..79e41b17e9 100644 --- a/src/Font.h +++ b/src/Font.h @@ -15,7 +15,6 @@ #ifndef FONT_H #define FONT_H -#include "ColorCode.h" #include "FontInfo.h" #include "support/strfwd.h" @@ -27,13 +26,14 @@ class BufferParams; class Language; class LaTeXFeatures; class OutputParams; +class otexstream; /// class Font { public: /// - explicit Font(FontInfo = sane_font, Language const * l = 0); + explicit Font(FontInfo = sane_font, Language const * l = nullptr); /// FontInfo & fontInfo() { return bits_; } @@ -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,15 +81,16 @@ 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, + bool & needPar, bool const & closeLanguage = true) const; /// Build GUI description of font state - docstring const stateText(BufferParams * params) const; + docstring const stateText(BufferParams * params = nullptr, bool const terse = false) const; /// void validate(LaTeXFeatures & features) const; @@ -116,9 +113,6 @@ private: FontInfo bits_; /// Language const * lang_; - /// - bool misspelled_; - /// Did latexWriteStartChanges open an encoding environment? mutable bool open_encoding_; }; @@ -128,8 +122,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_; } /// @@ -139,11 +132,6 @@ bool operator!=(Font const & font1, Font const & font2) return !(font1 == font2); } -/** Returns the current freefont, encoded as a std::string to be passed to the - * frontends. Implemented in Text3.cpp. - */ -std::string const freefont2string(); - } // namespace lyx #endif