4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
7 * \author Jean-Marc Lasgouttes
9 * Full author contact details are available in file CREDITS.
15 #include "support/docstring.h"
20 /// The status of a function.
27 /// Command can be executed
29 /// This command does not exist, possibly because it is not
30 /// compiled in (e.g. LFUN_THESAURUS) or the user mistyped
31 /// it in the minibuffer. UNKNOWN commands have no menu entry.
33 /// Command cannot be executed
35 /// Command is on (i. e. the menu item has a checkmark
36 /// and the toolbar icon is pushed).
37 /// Not all commands use this
39 /// Command is off (i. e. the menu item has no checkmark
40 /// and the toolbar icon is not pushed).
41 /// Not all commands use this
55 void setUnknown(bool b);
60 void setEnabled(bool b);
61 /// tells whether it can be invoked (otherwise it will be grayed-out).
65 void setOnOff(bool b);
66 /// tells whether the menu item should have a check mark
67 /// (or the toolbar icon should be pushed).
68 bool onOff(bool b) const;
71 void message(docstring const & m);
73 docstring const & message() const;