]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_fontinset.h
fix #1073
[lyx.git] / src / mathed / math_fontinset.h
index 91e20458d341ba7129f10667cd2d4c16f173d87c..7673b0742297ba26fe8855fb8f08a58d5d266712 100644 (file)
@@ -4,12 +4,11 @@
 
 #include "math_nestinset.h"
 
-#ifdef __GNUG__
-#pragma interface
-#endif
 
 /** Inset for font changes
-    \author André Pönitz
+ *  \author André Pönitz
+ *
+ * Full author contact details are available in file CREDITS
  */
 
 class latexkeys;
@@ -20,21 +19,23 @@ public:
        explicit MathFontInset(latexkeys const * key);
        ///
        MathInset * clone() const;
+       ///
+       MathFontInset * asFontInset() { return this; }
+       ///
+       MathFontInset const * asFontInset() const { return this; }
        /// are we in math mode, text mode, or unsure?
        mode_type currentMode() const;
        ///
-       void metrics(MathMetricsInfo & mi) const;
+       string name() const;
        ///
-       void draw(MathPainterInfo & pi, int x, int y) const;
+       void metrics(MetricsInfo & mi) const;
+       ///
+       void draw(PainterInfo & pi, int x, int y) const;
        ///
        void metricsT(TextMetricsInfo const & mi) const;
        ///
        void drawT(TextPainter & pi, int x, int y) const;
        ///
-       void write(WriteStream & os) const;
-       ///
-       void normalize(NormalStream &) const;
-       ///
        void validate(LaTeXFeatures & features) const;
        ///
        void infoize(std::ostream & os) const;