]> git.lyx.org Git - lyx.git/blobdiff - src/cursor.h
more cursor dispatch
[lyx.git] / src / cursor.h
index 0d316b2fac98667e6bdc4f9976207b7ab99395b3..0951333da97d878c1449e99fdd301da982ac948f 100644 (file)
@@ -82,6 +82,8 @@ public:
        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
@@ -401,9 +403,14 @@ public:
        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();