]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_frameboxinset.h
architectural changes to tex2lyx
[lyx.git] / src / mathed / math_frameboxinset.h
index 95a9dabf21a1929ef3409ceaf02db1e8f332e1b5..a563099d39ebb179716cf2a37b2c673119e44136 100644 (file)
@@ -4,9 +4,6 @@
 
 #include "math_nestinset.h"
 
-#ifdef __GNUG__
-#pragma interface
-#endif
 
 /** Extra nesting
  *  \author André Pönitz
@@ -19,15 +16,17 @@ public:
        ///
        MathFrameboxInset();
        ///
-       MathInset * clone() const;
+       virtual std::auto_ptr<InsetBase> clone() 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 write(WriteStream & os) const;
        /// write normalized content
        void normalize(NormalStream & ns) const;
+       ///
+       mode_type currentMode() const { return TEXT_MODE; }
 private:
        /// width of '[' in current font
        mutable int w_;