]> git.lyx.org Git - lyx.git/blobdiff - src/lyxfunc.h
Fix fuer #209
[lyx.git] / src / lyxfunc.h
index c74eecf984f501baefde589ccfcece36e6231b1a..9cd6458def1c9d28723a9a2fd1e2c71166595594 100644 (file)
@@ -35,18 +35,18 @@ public:
 
        /// The same as dispatch, but also shows shortcuts and command
        /// name in minibuffer if show_sc is true (more to come?) 
-       void const LyXFunc::verboseDispatch(kb_action action,
-                                           string const & argument,
-                                           bool show_sc);
+       void verboseDispatch(kb_action action,
+                            string const & argument,
+                            bool show_sc);
        
        /// Same as above, using a pseudoaction as argument
-       void const LyXFunc::verboseDispatch(int ac, bool show_sc);
+       void verboseDispatch(int ac, bool show_sc);
 
        /// Same as above, when the command is provided as a string
-       void const LyXFunc::verboseDispatch(string const & s, bool show_sc);
+       void verboseDispatch(string const & s, bool show_sc);
 
        /// 
-       void LyXFunc::miniDispatch(string const & s);
+       void miniDispatch(string const & s);
 
        ///
        void initMiniBuffer();
@@ -67,11 +67,15 @@ public:
         /// True if lyxfunc reports an error
         bool errorStat() const { return errorstat; }
         /// Buffer to store result messages
-        void setMessage(string const & m);
+        void setMessage(string const & m) const;
         /// Buffer to store result messages
         void setErrorMessage(string const &) const; 
+        /// Buffer to store result messages from getStatus
+        void setStatusMessage(string const &) const; 
         /// Buffer to store result messages
         string const getMessage() const { return dispatch_buffer; }
+        /// Buffer to store result messages
+        string const getStatusMessage() const { return status_buffer; }
        /// Handle a accented char keysequenze
        void handleKeyFunc(kb_action action);
 
@@ -101,6 +105,9 @@ private:
            good reason to have this one as static in Dispatch? (Ale)
        */
         mutable string dispatch_buffer;
+        /** Buffer to store messages and result data from getStatus
+       */
+        mutable string status_buffer;
        /// Command name and shortcut information
        string commandshortcut;