]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_scriptinset.h
fix pullArg when pressing <Delete> at the end of an cell
[lyx.git] / src / mathed / math_scriptinset.h
index 2fa10b6e0140a621339daa32f58124fd26d23b49..7f589e953b67d38ed5b4f140aa41bcee872cf915 100644 (file)
@@ -2,7 +2,7 @@
 #ifndef MATH_SCRIPTINSET_H
 #define MATH_SCRIPTINSET_H
 
-#include "math_inset.h"
+#include "math_updowninset.h"
 
 #ifdef __GNUG__
 #pragma interface
     \author André Pönitz
  */
 
-class MathScriptInset : public MathInset {
+class MathScriptInset : public MathUpDownInset {
 public:
-       ///
-       MathScriptInset();
        ///
        MathScriptInset(bool up, bool down);
        ///
        MathInset * clone() const;
        ///
-       void Write(std::ostream &, bool fragile) const;
-       ///
        void WriteNormal(std::ostream &) const;
-       ///
-       void Metrics(MathStyles st);
-       ///
-       void draw(Painter &, int x, int baseline);
-       ///
-       bool idxUp(int & idx, int & pos) const;
-       ///
-       bool idxDown(int & idx, int & pos) const;
-       ///
-       bool idxLeft(int & idx, int & pos) const;
-       ///
-       bool idxRight(int & idx, int & pos) const;
-       ///
-       bool idxFirst(int & idx, int & pos) const;
-       ///
-       bool idxFirstUp(int & idx, int & pos) const;
-       ///
-       bool idxFirstDown(int & idx, int & pos) const;
-       ///
-       bool idxLast(int & idx, int & pos) const;
-       ///
-       bool idxLastUp(int & idx, int & pos) const;
-       ///
-       bool idxLastDown(int & idx, int & pos) const;
-       ///
-       bool up() const;
-       ///
-       bool down() const;
-       ///
-       void up(bool);
-       ///
-       void down(bool);
-       ///
-       bool isActive() const { return false; }
        /// Identifies ScriptInsets
-       bool isScriptInset() const { return true; }
+       bool isUpDownInset() const { return true; }
        ///
        void idxDelete(int & idx, bool & popit, bool & deleteit);
-private:
-       ///
-       bool up_;
-       ///
-       bool down_;
 };
 
 #endif