]> git.lyx.org Git - features.git/blobdiff - src/mathed/math_inset.h
some renaming + safety stuff
[features.git] / src / mathed / math_inset.h
index 779e590fa38925b9bf8b6341770de4b4abbac321..f3018235aaa2382e2de2d0df84de7d163a8f5eea 100644 (file)
@@ -79,6 +79,8 @@ class MathInset : public InsetBase {
 public:
        /// our members behave nicely...
        MathInset() {}
+       /// identification as math inset
+       MathInset * asMathInset() { return this; }
 
        /// substitutes macro arguments if necessary
        virtual void substitute(MathMacro const & macro);
@@ -150,7 +152,7 @@ public:
        /// can we enter this cell?
        virtual bool validCell(idx_type) const { return true; }
        /// get coordinates
-       virtual void getPos(idx_type idx, pos_type pos, int & x, int & y) const;
+       virtual void getScreenPos(idx_type idx, pos_type pos, int & x, int & y) const;
 
        /// identifies certain types of insets
        virtual MathAMSArrayInset       * asAMSArrayInset()       { return 0; }