]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_fontinset.h
split LyXText::rowlist_ into individual Paragraph::rows_ chunks
[lyx.git] / src / mathed / math_fontinset.h
index 18c8e1b4aee138c0d36362e5e7d622abd796a8f5..dd63764043388baf3005ed5fe5a9143f44bb1d6d 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;
@@ -19,17 +18,21 @@ public:
        ///
        explicit MathFontInset(latexkeys const * key);
        ///
-       MathInset * clone() const;
+       virtual std::auto_ptr<InsetBase> 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 metrics(MetricsInfo & mi, Dimension & dim) const;
        ///
-       void draw(MathPainterInfo & pi, int x, int y) const;
+       void draw(PainterInfo & pi, int x, int y) const;
        ///
-       void metricsT(TextMetricsInfo const & mi) const;
+       void metricsT(TextMetricsInfo const & mi, Dimension & dim) const;
        ///
        void drawT(TextPainter & pi, int x, int y) const;
        ///