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"
17 #include "frontends/Dialogs.h"
18 #include "frontends/LyXView.h"
21 void MailInset::showDialog(BufferView * bv) const
24 bv->owner()->getDialogs().show(name(), inset2string(*bv->buffer()),
29 void MailInset::updateDialog(BufferView * bv) const
32 if(bv->owner()->getDialogs().visible(name()))
33 bv->owner()->getDialogs().update(name(),
34 inset2string(*bv->buffer()));
38 void MailInset::hideDialog() const
40 Dialogs::hide(name(), &inset());