X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FFont.h;h=79e41b17e9e5c2db290c0b422132885a927b14b7;hb=57065afb45bbb48975cef0df9357048d96a39f89;hp=9b36822cab9deb01df1c5639ffa7f2ebcd4572f6;hpb=f1cba8ff64b369792fd49f5ddf90e8126ab476ac;p=lyx.git diff --git a/src/Font.h b/src/Font.h index 9b36822cab..79e41b17e9 100644 --- a/src/Font.h +++ b/src/Font.h @@ -15,11 +15,6 @@ #ifndef FONT_H #define FONT_H -#ifdef TEX2LYX -#include "tex2lyx/Font.h" -#else - -#include "ColorCode.h" #include "FontInfo.h" #include "support/strfwd.h" @@ -27,18 +22,18 @@ namespace lyx { -class Lexer; 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_; } @@ -53,10 +48,6 @@ public: /// void setLanguage(Language const * l); - /// Returns misc flag after LyX text format - FontState setLyXMisc(std::string const &); - - /// Returns size of font in LaTeX text notation std::string const latexSize() const; @@ -90,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; @@ -121,7 +113,6 @@ private: FontInfo bits_; /// Language const * lang_; - /// Did latexWriteStartChanges open an encoding environment? mutable bool open_encoding_; }; @@ -141,31 +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(); - - -/// Set family after LyX text format -void setLyXFamily(std::string const &, FontInfo &); - -/// Set series after LyX text format -void setLyXSeries(std::string const &, FontInfo &); - -/// Set shape after LyX text format -void setLyXShape(std::string const &, FontInfo &); - -/// Set size after LyX text format -void setLyXSize(std::string const &, FontInfo &); - -/// Sets color after LyX text format -void setLyXColor(std::string const &, FontInfo &); - -/// Read a font specification from Lexer. Used for layout files. -FontInfo lyxRead(Lexer &, FontInfo const & fi = sane_font); - } // namespace lyx -#endif // TEX2LYX #endif