]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_pos.C
split inset -> inset + updatableinset
[lyx.git] / src / mathed / math_pos.C
index 2dfa32839bf15579d95ac930014e290bcb85da9b..3ed162d8b801c412cd8e800ed08a528d2178d27b 100644 (file)
@@ -1,8 +1,4 @@
 
-#ifdef __GNUG__
-#pragma implementation 
-#endif
-
 #include "config.h"
 #include "math_pos.h"
 #include "math_inset.h"
@@ -44,9 +40,15 @@ void MathCursorPos::getPos(int & x, int & y) const
 }
 
 
+void MathCursorPos::setPos(MathArray::pos_type pos)
+{
+       pos_ = pos;
+}
+
+
 std::ostream & operator<<(std::ostream & os, MathCursorPos const & p)
 {
-       os << "(par: " << p.par_ << " idx: " << p.idx_ << " pos: " << p.pos_ << ")";
+       os << "(par: " << p.par_ << " idx: " << p.idx_ << " pos: " << p.pos_ << ')';
        return os;
 }