class FuncStatus;
class FuncRequest;
class Point;
+class LyXFont;
// these should go
class MathUnknownInset;
void dispatch(FuncRequest const & cmd);
/// get the resut of the last dispatch
DispatchResult result() const;
- /**
- * \returns true if this function made a definitive decision on
- * whether the inset at this cursor position wants to handle the
- * request \p cmd or not. The result of this decision is put into
- * \p status.
- */
- bool getStatus(FuncRequest const & cmd, FuncStatus & flag);
-
/// add a new cursor slice
void push(InsetBase & inset);
/// add a new cursor slice, place cursor on left end
bool & macromode() { return macromode_; }
/// returns x,y position
void getPos(int & x, int & y) const;
- /// returns cursor dimension
- void getDim(int & asc, int & desc) const;
//
// common part
void needsUpdate();
/// don't call update() when done
void noUpdate();
+ /// fix cursor in circumstances that should never happen
+ void fixIfBroken();
/// output
friend std::ostream & operator<<(std::ostream & os, LCursor const & cur);
bool openable(MathAtom const &) const;
///
Encoding const * getEncoding() const;
+ /// font at cursor position
+ LyXFont getFont() const;
};
-
#endif // LYXCURSOR_H