]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_pos.h
architectural changes to tex2lyx
[lyx.git] / src / mathed / math_pos.h
index d238fb93f69c1617546ebd77e4fb1244f0b62b92..4c79faa3cc2af8fac5808fab77ab8eda65ade688 100644 (file)
@@ -1,17 +1,18 @@
 #ifndef MATH_POS_H
 #define MATH_POS_H
 
+
 #include <iosfwd>
 #include "math_data.h"
 
 
 /// Description of a position
-class MathCursorPos {
+class CursorPos {
 public:
        ///
-       MathCursorPos();
+       CursorPos();
        ///
-       explicit MathCursorPos(MathInset *);
+       explicit CursorPos(MathInset *);
 
        /// returns cell corresponding to this position
        MathArray & cell() const;
@@ -19,10 +20,12 @@ public:
        MathArray & cell(MathArray::idx_type idx) 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
-       MathInset * par_;
+       MathInset * inset_;
        /// cell index of a position in this inset
        MathArray::idx_type idx_;
        /// position in this cell
@@ -30,12 +33,12 @@ public:
 };
 
 /// test for equality
-bool operator==(MathCursorPos const &, MathCursorPos const &);
+bool operator==(CursorPos const &, CursorPos const &);
 /// test for inequality
-bool operator!=(MathCursorPos const &, MathCursorPos const &);
+bool operator!=(CursorPos const &, CursorPos const &);
 /// test for order
-bool operator<(MathCursorPos const &, MathCursorPos const &);
+bool operator<(CursorPos const &, CursorPos const &);
 /// output
-std::ostream & operator<<(std::ostream &, MathCursorPos const &);
+std::ostream & operator<<(std::ostream &, CursorPos const &);
 
 #endif