]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_nestinset.h
move things around
[lyx.git] / src / mathed / math_nestinset.h
index f2f37a22aef401f8fcfd88a95f4f40fbd2a57d42..068fbad16531d239bd1aaa3bafc3c97f772bf431 100644 (file)
@@ -16,34 +16,34 @@ class LaTeXFeatures;
 class MathNestInset : public MathDimInset {
 public: 
        ///
-       explicit MathNestInset(int na = 0, string const & nm = string());
+       explicit MathNestInset(int ncells);
 
+       ///
+       void metrics(MathStyles st) const;
        /// draw the object, sets xo_ and yo_ cached values 
-       virtual void draw(Painter &, int x, int baseline);
+       void draw(Painter &, int x, int y) const;
        /// appends itself with macro arguments substituted
-       virtual void substitute(MathArray & array, MathMacro const & macro) const;
-       /// compute the size of the object, sets ascend_, descend_ and width_
-       virtual void metrics(MathStyles st) = 0;
+       void substitute(MathArray & array, MathMacro const & macro) const;
 
        /// The left key
-       virtual bool idxLeft(int & idx, int & pos) const;
+       bool idxLeft(int & idx, int & pos) const;
        /// The right key
-       virtual bool idxRight(int & idx, int & pos) const;
+       bool idxRight(int & idx, int & pos) const;
 
        /// Move one physical cell up
-       virtual bool idxNext(int & idx, int & pos) const;
+       bool idxNext(int & idx, int & pos) const;
        /// Move one physical cell down
-       virtual bool idxPrev(int & idx, int & pos) const;
+       bool idxPrev(int & idx, int & pos) const;
 
        /// Target pos when we enter the inset from the left by pressing "Right"
-       virtual bool idxFirst(int & idx, int & pos) const;
+       bool idxFirst(int & idx, int & pos) const;
        /// Target pos when we enter the inset from the right by pressing "Left"
-       virtual bool idxLast(int & idx, int & pos) const;
+       bool idxLast(int & idx, int & pos) const;
 
        /// Where should we go if we press home?
-       virtual bool idxHome(int & idx, int & pos) const;
+       bool idxHome(int & idx, int & pos) const;
        /// Where should we go if we press end?
-       virtual bool idxEnd(int & idx, int & pos) const;
+       bool idxEnd(int & idx, int & pos) const;
 
        ///
        int nargs() const;
@@ -62,8 +62,6 @@ public:
        ///
        void push_back(MathInset *);
        ///
-       void push_back(unsigned char ch, MathTextCodes fcode);
-       ///
        void dump() const;
 
        ///