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 operator|=(FuncStatus
const & f
);
62 void setEnabled(bool b
);
63 /// tells whether it can be invoked (otherwise it will be grayed-out).
67 void setOnOff(bool b
);
68 /// tells whether the menu item should have a check mark
69 /// (or the toolbar icon should be pushed).
70 bool onoff(bool b
) const;
73 void message(docstring
const & m
);
75 docstring
const & message() const;