X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FFont.h;h=02b996e24f7c906dfe7f55caf6e6c6fa576196e1;hb=169bc143cb21810b18c8ec3253eaa9302e9ffdea;hp=c306daa75ca0a138763d5972d5cd8e7a199bc9c2;hpb=1d894fd5e3d7b945d85e10da21b6f6286c8ff61e;p=lyx.git diff --git a/src/Font.h b/src/Font.h index c306daa75c..02b996e24f 100644 --- a/src/Font.h +++ b/src/Font.h @@ -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 @@ -15,23 +15,19 @@ #ifndef FONT_H #define FONT_H -#ifdef TEX2LYX -#include "tex2lyx/Font.h" -#else - #include "ColorCode.h" #include "FontInfo.h" -#include "support/docstream.h" +#include "support/strfwd.h" namespace lyx { -class Lexer; class BufferParams; class Language; class LaTeXFeatures; class OutputParams; +class otexstream; /// class Font { @@ -53,10 +49,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,7 +82,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, @@ -121,7 +113,6 @@ private: FontInfo bits_; /// Language const * lang_; - /// Did latexWriteStartChanges open an encoding environment? mutable bool open_encoding_; }; @@ -146,26 +137,6 @@ bool operator!=(Font const & font1, Font const & font2) */ 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