#define CURSOR_H
#include "cursor_slice.h"
+#include "dispatchresult.h"
#include <iosfwd>
#include <vector>
/// return the cell of the inset this cursor is in
idx_type & idx() { return current().idx(); }
/// return the last possible cell in this inset
- idx_type lastidx() const { return current().lastidx(); }
+ idx_type lastidx() const;
/// return the paragraph this cursor is in
par_type par() const { return current().par(); }
/// return the paragraph this cursor is in
void reset();
/// for spellchecking
void replaceWord(std::string const & replacestring);
+ /// update our view
+ void update();
+ ///
+ void dispatched(dispatch_result_t res);
+ void notdispatched();
+ void noupdate();
/// output
friend std::ostream & operator<<(std::ostream & os, LCursor const & cur);
std::vector<CursorSlice> cursor_;
/// the anchor position
std::vector<CursorSlice> anchor_;
+
+ ///
+ DispatchResult disp_;
private:
///
/// split font inset etc
void handleFont(std::string const & font);
- void releaseMathCursor();
/// are we in mathed?
bool inMathed() const;
/// are we in texted?
void message(std::string const & msg) const;
/// display an error message
void errorMessage(std::string const & msg) const;
+ ///
+ std::string getPossibleLabel();
private:
/// moves cursor index one cell to the left