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 "support/debug.h"
18 #include "frontends/Application.h"
20 #include <boost/assert.hpp>
27 void MailInset::showDialog(BufferView * bv) const
30 bv->showDialog(name(), inset2string(bv->buffer()), &inset());
34 void MailInset::updateDialog(BufferView * bv) const
37 bv->updateDialog(name(), inset2string(bv->buffer()));
41 void MailInset::hideDialog() const
44 theApp()->hideDialogs(name(), &inset());
48 void print_mailer_error(string const & class_name,
49 string const & data, int arg_id, string const & arg)
51 LYXERR0('\n' << class_name << "::string2params(" << data << ")\n"
52 << "Expected arg " << arg_id << " to be \"" << arg << "\"\n");