3 * This file is part of LyX, the document processor.
4 * Licence details can be found in the file COPYING.
6 * \author Jean-Marc Lasgouttes
8 * Full author contact details are available in file CREDITS.
13 #include "FuncStatus.h"
18 FuncStatus::FuncStatus()
24 void FuncStatus::clear()
31 void FuncStatus::operator|=(FuncStatus const & f)
34 if (!f.message_.empty())
35 message_ = f.message_;
39 void FuncStatus::unknown(bool b)
49 bool FuncStatus::unknown() const
51 return (v_ & UNKNOWN);
55 void FuncStatus::setEnabled(bool b)
64 bool FuncStatus::enabled() const
66 return !(v_ & DISABLED);
70 void FuncStatus::setOnOff(bool b)
76 bool FuncStatus::onoff(bool b) const
85 void FuncStatus::message(docstring const & m)
91 docstring const & FuncStatus::message() const