]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_cursor.h
small mouse click stuff. still not ok...
[lyx.git] / src / mathed / math_cursor.h
index 0df0c4ee612a8938548fc37d178a6795245349fe..3aa02de9566447b9f43027439356b67e1aa575de 100644 (file)
 #include "math_inset.h"
 #include "LString.h"
 
-class MathInset;
-class MathAtom;
-class MathGridInset;
-class MathFuncInset;
-class MathHullInset;
-class MathScriptInset;
-class MathSpaceInset;
 class InsetFormulaBase;
-class MathArray;
-class MathXArray;
 class Painter;
 class Selection;
-class latexkeys;
 
 /// Description of a position 
 struct MathCursorPos {
@@ -120,7 +110,9 @@ public:
        ///
        void delLine();
        /// This is in pixels from (maybe?) the top of inset
-       void setPos(int, int);
+       // don't move further in than the Anchor's inset if respect_anchor == true
+       void setPos(int x, int y, bool respect_anchor = false);
+       /// This is in pixels from (maybe?) the top of inset, don't move further
        ///
        void getPos(int & x, int & y);
        ///