]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_fontinset.h
split inset -> inset + updatableinset
[lyx.git] / src / mathed / math_fontinset.h
index 5b0dfdd427309a5863af0280e24e45ddf77d6ca9..48791027acd28c7d234e4e36d077bc0ffe9838f4 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;
@@ -21,6 +20,14 @@ public:
        ///
        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;
+       ///
+       string name() const;
+       ///
        void metrics(MathMetricsInfo & mi) const;
        ///
        void draw(MathPainterInfo & pi, int x, int y) const;
@@ -29,10 +36,6 @@ public:
        ///
        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;