]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_pos.h
small up/down tweaking
[lyx.git] / src / mathed / math_pos.h
index 8d8e9e951ae33375670d114bfaa79ae3ce35dae0..a885294adbd8fda22c18bbc78002f3c6eb3b3f0d 100644 (file)
@@ -1,34 +1,34 @@
 #ifndef MATH_POS_H
 #define MATH_POS_H
 
+#ifdef __GNUG__
+#pragma interface
+#endif
+
 #include <iosfwd>
-#include "math_xdata.h"
+#include "math_data.h"
 
 
-/// Description of a position 
+/// Description of a position
 class MathCursorPos {
 public:
-       /// 
+       ///
        MathCursorPos();
-       /// 
-       explicit MathCursorPos(MathAtom &);
+       ///
+       explicit MathCursorPos(MathInset *);
 
        /// returns cell corresponding to this position
        MathArray & cell() const;
        /// returns cell corresponding to this position
        MathArray & cell(MathArray::idx_type idx) const;
-       /// returns xcell corresponding to this position
-       MathXArray & xcell() const;
-       /// returns xcell corresponding to this position
-       MathXArray & xcell(MathArray::idx_type idx) const;
-       ///
-       int xpos() const;
-       ///
-       int ypos() const;
+       /// gets screen position of the thing
+       void getPos(int & x, int & y) const;
+       /// set position
+       void setPos(MathArray::pos_type pos);
 
 public:
        /// pointer to an inset
-       MathAtom * par_;
+       MathInset * par_;
        /// cell index of a position in this inset
        MathArray::idx_type idx_;
        /// position in this cell