]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_fracinset.h
further code uglification to make Jean-Marc's compiler happy
[lyx.git] / src / mathed / math_fracinset.h
index 072d265bca1dfc221a12341fe5e19d1479e0b7d7..d60ca9bd08fd5778d42db28beb2f41c5d0b8d591 100644 (file)
@@ -2,45 +2,32 @@
 #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)
+/** Fraction like objects (frac, binom)
     \author Alejandro Aguilar Sierra
  */
-class MathFracInset : public MathInset {
+class MathFracInset : public MathFracbaseInset {
 public:
        ///
-       explicit MathFracInset(MathInsetTypes ot = LM_OT_FRAC);
+       explicit MathFracInset(bool atop = false);
        ///
-       virtual MathInset * Clone() const;
+       MathInset * clone() const;
        ///
-       virtual void Write(std::ostream &, bool fragile) const;
+       void write(std::ostream &, bool fragile) const;
        ///
-       virtual void WriteNormal(std::ostream &) const;
+       void writeNormal(std::ostream &) const;
        ///
-       virtual void Metrics(MathStyles st);
+       void metrics(MathStyles st) const;
        ///
-       virtual void draw(Painter &, int x, int baseline);
-       ///
-       virtual bool idxUp(int &, int &) const;
-       ///
-       virtual bool idxDown(int &, int &) const;
-       ///
-       virtual bool idxLeft(int &, int &) const;
-       ///
-       virtual bool idxRight(int &, int &) const;
-       ///
-       virtual bool idxFirstUp(int & idx, int & pos) const;
-       ///
-       virtual bool idxFirstDown(int & idx, int & pos) const;
-       ///
-       virtual bool idxLastUp(int & idx, int & pos) const;
+       void draw(Painter &, int x, int y) const;
+public:
        ///
-       virtual bool idxLastDown(int & idx, int & pos) const;
+       const bool atop_;
 };
 
 #endif