}
-void FuncStatus::unknown(bool b)
+void FuncStatus::setUnknown(bool b)
{
if (b)
v_ |= UNKNOWN;
}
-bool FuncStatus::onoff(bool b) const
+bool FuncStatus::onOff(bool b) const
{
if (b)
return (v_ & ON);
///
void operator|=(FuncStatus const & f);
///
- void unknown(bool b);
+ void setUnknown(bool b);
///
bool unknown() const;
void setOnOff(bool b);
/// tells whether the menu item should have a check mark
/// (or the toolbar icon should be pushed).
- bool onoff(bool b) const;
+ bool onOff(bool b) const;
///
void message(docstring const & m);
if (cit == floats.end() ||
// and that we know how to generate a list of them
(!cit->second.needsFloatPkg() && cit->second.listCommand().empty())) {
- flag.unknown(true);
+ flag.setUnknown(true);
// probably not necessary, but...
enable = false;
}
{
FuncStatus const status = getStatus(func_);
- if (status.onoff(true)) {
+ if (status.onOff(true)) {
setCheckable(true);
setChecked(true);
- } else if (status.onoff(false)) {
+ } else if (status.onOff(false)) {
setCheckable(true);
setChecked(false);
} else {
}
if (cmd.action() == LFUN_UNKNOWN_ACTION) {
- flag.unknown(true);
+ flag.setUnknown(true);
flag.setEnabled(false);
flag.message(from_utf8(N_("Unknown action")));
return flag;
lyx::getStatus(FuncRequest(LFUN_LAYOUT_TABULAR)).enabled();
bool const review =
lyx::getStatus(FuncRequest(LFUN_CHANGES_TRACK)).enabled() &&
- lyx::getStatus(FuncRequest(LFUN_CHANGES_TRACK)).onoff(true);
+ lyx::getStatus(FuncRequest(LFUN_CHANGES_TRACK)).onOff(true);
bool const mathmacrotemplate =
lyx::getStatus(FuncRequest(LFUN_IN_MATHMACROTEMPLATE)).enabled();
}
if (action == Tabular::LAST_ACTION) {
status.clear();
- status.unknown(true);
+ status.setUnknown(true);
return true;
}