]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_fracinset.h
rename commandtags.h to lfuns.h and renumber/cleanup. Rebuild the tree !
[lyx.git] / src / mathed / math_fracinset.h
index 27d9ed61a5a3305bf938d19aec48e706e4ffb3b4..53ec035ca6be4e946f0f654ff4b6c09a8d3ce59b 100644 (file)
@@ -2,37 +2,48 @@
 #ifndef MATH_FRACINSET_H
 #define MATH_FRACINSET_H
 
-#include "math_inset.h"
+#include "math_fracbase.h"
 
-#ifdef __GNUG__
-#pragma interface
-#endif
 
-/** Fraction like objects (frac, stackrel, binom)
-    \author Alejandro Aguilar Sierra
+/** Fraction like objects (frac, binom)
+ *  \author Alejandro Aguilar Sierra
+ *
+ * Full author contact details are available in file CREDITS
  */
-class MathFracInset : public MathInset {
+class MathFracInset : public MathFracbaseInset {
 public:
        ///
-       explicit MathFracInset(short ot = LM_OT_FRAC);
+       explicit MathFracInset(bool atop = false);
+       ///
+       MathInset * clone() const;
+       ///
+       void metrics(MathMetricsInfo & mi) const;
        ///
-       virtual MathInset * Clone() const;
+       void draw(MathPainterInfo &, int x, int y) const;
        ///
-       virtual void Write(std::ostream &, bool fragile) const;
+       void metricsT(TextMetricsInfo const & mi) const;
        ///
-       virtual void WriteNormal(std::ostream &) const;
+       void drawT(TextPainter &, int x, int y) const;
+       /// identifies FracInsets
+       MathFracInset * asFracInset();
+       /// identifies FracInsets
+       MathFracInset const * asFracInset() const;
        ///
-       virtual void Metrics(MathStyles st);
+       string name() const;
+
+       ///
+       void write(WriteStream & os) const;
        ///
-       virtual void draw(Painter &, int x, int baseline);
+       void maple(MapleStream &) const;
        ///
-       virtual bool idxUp(int &, int &) const;
+       void mathematica(MathematicaStream &) const;
        ///
-       virtual bool idxDown(int &, int &) const;
+       void octave(OctaveStream &) const;
        ///
-       virtual bool idxLeft(int &, int &) const;
+       void mathmlize(MathMLStream &) const;
+public:
        ///
-       virtual bool idxRight(int &, int &) const;
+       const bool atop_;
 };
 
 #endif