#ifndef FUNC_STATUS_H
#define FUNC_STATUS_H
-#include <string>
+#include "support/docstring.h"
+
+
+namespace lyx {
/// The status of a function.
enum StatusCodes {
/// Command can be executed
OK = 0,
- /// It is unknown wether the command can be executed or not
+ /// This command does not exist, possibly because it is not
+ /// compiled in (e.g. LFUN_THESAURUS) or the user mistyped
+ /// it in the minibuffer. UNKNOWN commands have no menu entry.
UNKNOWN = 1,
/// Command cannot be executed
DISABLED = 2,
unsigned int v_;
- std::string message_;
+ docstring message_;
public:
///
bool onoff(bool b) const;
///
- void message(std::string const & m);
+ void message(docstring const & m);
///
- std::string const & message() const;
+ docstring const & message() const;
};
+
+} // namespace lyx
+
#endif