CursorSlice const & current() const;
/// how many nested insets do we have?
size_t depth() const { return cursor_.size(); }
+ /// depth of current slice
+ int currentDepth() const { return current_; }
//
// selection
void handleFont(std::string const & font);
void releaseMathCursor();
-
+ /// are we in mathed?
bool inMathed() const;
+ /// display a message
+ void message(std::string const & msg) const;
+ /// display an error message
+ void errorMessage(std::string const & msg) const;
+
private:
/// moves cursor index one cell to the left
bool idxLeft();