]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/controllers/ControlCommandBuffer.h
Add a buffer_path arg to InsetGraphicsMailer's params2string, string2params.
[lyx.git] / src / frontends / controllers / ControlCommandBuffer.h
index 9c0c13dc7bd9740737fa1e0809d9e49af54ac3de..608a80ce5a41b3f04310316009143fa43c1c792a 100644 (file)
 
 #include <vector>
 
-#ifdef __GNUG__
-#pragma interface
-#endif
 
-class LyXFunc;
+class LyXView;
 
 /**
  * ControlCommandBuffer
@@ -32,7 +29,7 @@ class LyXFunc;
  */
 class ControlCommandBuffer {
 public:
-       ControlCommandBuffer(LyXFunc & lf);
+       ControlCommandBuffer(LyXView & lv);
 
        /// return the previous history entry if any
        string const historyUp();
@@ -40,6 +37,9 @@ public:
        /// return the next history entry if any
        string const historyDown();
 
+       /// return the font and depth in the active BufferView as a message.
+       string const getCurrentState() const;
+
        /// return the possible completions
        std::vector<string> const completions(string const & prefix,
                                              string & new_prefix);
@@ -47,8 +47,8 @@ public:
        /// dispatch a command
        void dispatch(string const & str);
 private:
-       /// controlling lyxfunc
-       LyXFunc & lyxfunc_;
+       /// controlling LyXView
+       LyXView & lv_;
 
        /// available command names
        std::vector<string> commands_;