3 * This file is part of LyX, the document processor.
4 * Licence details can be found in the file COPYING.
6 * \author Angus Leeming
8 * Full author contact details are available in file CREDITS.
13 #include "mailinset.h"
15 #include "BufferView.h"
16 #include "frontends/LyXView.h"
17 #include "frontends/Dialogs.h"
18 #include "support/LAssert.h"
21 using namespace lyx::support;
23 void MailInset::showDialog(BufferView * bv) const
26 bv->owner()->getDialogs().show(name(), inset2string(*bv->buffer()),
31 void MailInset::updateDialog(BufferView * bv) const
34 if(bv->owner()->getDialogs().visible(name()))
35 bv->owner()->getDialogs().update(name(),
36 inset2string(*bv->buffer()));
40 void MailInset::hideDialog() const
42 Dialogs::hide(name(), &inset());