/** * \file FormInset.C * This file is part of LyX, the document processor. * Licence details can be found in the file COPYING. * * \author Angus Leeming * * Full author contact details are available in file CREDITS */ #include #include FORMS_H_LOCATION #ifdef __GNUG__ #pragma implementation #endif #include "FormInset.h" #include "frontends/Dialogs.h" #include FormInset::FormInset(LyXView & lv, Dialogs & d, string const & t) : FormBaseBD(lv, d, t) {} void FormInset::connect() { u_ = d_.updateBufferDependent. connect(boost::bind(&FormInset::updateSlot, this, _1)); h_ = d_.hideBufferDependent. connect(boost::bind(&FormInset::hide, this)); FormBaseDeprecated::connect(); } void FormInset::disconnect() { ih_.disconnect(); FormBaseBD::disconnect(); } void FormInset::updateSlot(bool switched) { if (switched) hide(); else update(); }