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"
17 FuncStatus::FuncStatus() : v_(OK)
22 void FuncStatus::clear()
29 void FuncStatus::operator|=(FuncStatus const & f)
32 if (!f.message_.empty())
33 message_ = f.message_;
37 void FuncStatus::unknown(bool b)
47 bool FuncStatus::unknown() const
49 return (v_ & UNKNOWN);
53 void FuncStatus::enabled(bool b)
62 bool FuncStatus::enabled() const
64 return !(v_ & DISABLED);
68 void FuncStatus::setOnOff(bool b)
74 bool FuncStatus::onoff(bool b) const
83 void FuncStatus::message(string const & m)
89 string const & FuncStatus::message() const