]> git.lyx.org Git - lyx.git/blobdiff - src/Font.h
* make it compile
[lyx.git] / src / Font.h
index 18544f171682ab978831e6d48acd1cbc77eeb34a..6cd84e53b92147360438329b78536285741e7a15 100644 (file)
 
 namespace lyx {
 
-
 class Lexer;
 class BufferParams;
 class Language;
+class LaTeXFeatures;
 class OutputParams;
 
-
 ///
 class Font {
 public:
@@ -323,6 +322,9 @@ public:
        ///
        Color_color realColor() const;
 
+       ///
+       void validate(LaTeXFeatures & features) const;
+
        ///
        friend
        bool operator==(Font const & font1, Font const & font2);
@@ -340,6 +342,11 @@ public:
                return bits.shape;
        }
 
+       /// Set \param data using \param font and \param toggle.
+       std::string toString(bool toggle) const;
+
+       /// Set \param font and \param toggle using \param data. Return success.
+       bool fromString(std::string const & data, bool & toggle);
 
        /** Compaq cxx 6.5 requires that the definition be public so that
            it can compile operator==()
@@ -423,6 +430,11 @@ 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.
+ */
+std::string const freefont2string();
+
 
 } // namespace lyx