]> git.lyx.org Git - lyx.git/blobdiff - src/Cursor.h
That didn't really work. So revert to old CSS for gray notes.
[lyx.git] / src / Cursor.h
index 276bf2e989968e80e33fe5dd240510278da66784..2b1505a5489c061ef1bfaab053e82ed8314df3b9 100644 (file)
@@ -45,6 +45,8 @@ public:
        /// create the cursor of a BufferView
        explicit Cursor(BufferView & bv);
 
+       /// returns true if we made a decision
+       bool getStatus(FuncRequest const & cmd, FuncStatus & flag) const;
        /// dispatch from innermost inset upwards
        void dispatch(FuncRequest const & cmd);
        /// get the resut of the last dispatch
@@ -63,6 +65,8 @@ public:
        void leaveInset(Inset const & inset);
        /// sets cursor part
        void setCursor(DocIterator const & it);
+       /// sets the cursor to the anchor
+       void setCursorToAnchor();
 
        ///
        void setCurrentFont();
@@ -202,9 +206,9 @@ public:
        void info(odocstream & os) const;
        /// are we in math mode (2), text mode (1) or unsure (0)?
        int currentMode();
-       /// reset cursor bottom to the beginning of the given inset
+       /// reset cursor bottom to the beginning of the top inset
        // (sort of 'chroot' environment...)
-       void reset(Inset &);
+       void reset();
        /// for spellchecking
        void replaceWord(std::string const & replacestring);
        /**
@@ -373,7 +377,8 @@ public:
        ///
        void niceInsert(MathAtom const & at);
        ///
-       void niceInsert(docstring const & str, Parse::flags f = Parse::NORMAL);
+       void niceInsert(docstring const & str, Parse::flags f = Parse::NORMAL,
+                       bool enter = true);
 
        /// in pixels from top of screen
        void setScreenPos(int x, int y);