X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FFuncStatus.C;h=1998db67d1d0a9f81311606931c334c578d9137e;hb=67f9c9fdae42211aa3ff8d0c6f62485bd721d8eb;hp=f82b537379c71ac67861d7ed5f2b4c25037ff5d5;hpb=99d1627a471b92f403598d03dfc861ddc3c11be0;p=lyx.git diff --git a/src/FuncStatus.C b/src/FuncStatus.C index f82b537379..1998db67d1 100644 --- a/src/FuncStatus.C +++ b/src/FuncStatus.C @@ -1,11 +1,12 @@ -/* This file is part of - * ====================================================== +/** + * \file FuncStatus.C + * This file is part of LyX, the document processor. + * Licence details can be found in the file COPYING. * - * LyX, The Document Processor + * \author Jean-Marc Lasgouttes * - * Copyright 2001 The LyX Team. - * - * ====================================================== */ + * Full author contact details are available in file CREDITS. + */ #include @@ -16,56 +17,56 @@ FuncStatus::FuncStatus() : v_(OK) } -FuncStatus & FuncStatus::clear () +void FuncStatus::clear() { v_ = OK; - return *this; } -void FuncStatus::operator |= (FuncStatus const & f) + +void FuncStatus::operator|=(FuncStatus const & f) { v_ |= f.v_; } -FuncStatus & FuncStatus::unknown (bool b) + +void FuncStatus::unknown(bool b) { if (b) v_ |= UNKNOWN; else v_ &= !UNKNOWN; - return *this; } -bool FuncStatus::unknown () const + +bool FuncStatus::unknown() const { return (v_ & UNKNOWN); } -FuncStatus & FuncStatus::disabled (bool b) +void FuncStatus::disabled(bool b) { if (b) v_ |= DISABLED; else v_ &= !DISABLED; - return *this; } -bool FuncStatus::disabled () const +bool FuncStatus::disabled() const { return (v_ & DISABLED); } -void FuncStatus::setOnOff (bool b) +void FuncStatus::setOnOff(bool b) { v_ |= (b ? ON : OFF); } -bool FuncStatus::onoff (bool b) const +bool FuncStatus::onoff(bool b) const { if (b) return (v_ & ON);