]> git.lyx.org Git - lyx.git/blobdiff - src/LaTeXFonts.h
Account for old versions of Pygments
[lyx.git] / src / LaTeXFonts.h
index d79d45651c494f492760ccff6436ba0e9b7178cb..90d91b35190a54cb7d55324aadb1e0843cb62e33 100644 (file)
@@ -26,7 +26,7 @@ class Lexer;
 class LaTeXFont {
 public:
        /// TeX font
-       LaTeXFont() : switchdefault_(false) {}
+       LaTeXFont() : osfdefault_(false), switchdefault_(false) {}
        /// The font name
        docstring const & name() { return name_; }
        /// The name to appear in the document dialog
@@ -70,6 +70,10 @@ public:
        bool providesOSF(bool ot1, bool complete, bool nomath);
        /// Does this font provide optional true SmallCaps?
        bool providesSC(bool ot1, bool complete, bool nomath);
+       /** does this font provide OSF and Small Caps only via 
+        * a single, undifferentiated expert option?
+        */
+       bool hasMonolithicExpertSet(bool ot1, bool complete, bool nomath);
        /// Does this font provide scaling?
        bool providesScale(bool ot1, bool complete, bool nomath);
        /// Return the LaTeX Code
@@ -78,6 +82,8 @@ public:
                                       int const & scale = 100);
        /// Return the actually used font
        docstring const getUsedFont(bool ot1, bool complete, bool nomath);
+       /// Return the actually used package
+       docstring const getUsedPackage(bool ot1, bool complete, bool nomath);
        ///
        bool read(Lexer & lex);
        ///
@@ -127,6 +133,8 @@ private:
        ///
        docstring requires_;
        ///
+       docstring preamble_;
+       ///
        bool osfdefault_;
        ///
        bool switchdefault_;