]> git.lyx.org Git - lyx.git/blob - src/insets/mailinset.C
* src/LyXAction.C: mark goto-clear-bookmark as working without buffer
[lyx.git] / src / insets / mailinset.C
1 /**
2  * \file mailinset.C
3  * This file is part of LyX, the document processor.
4  * Licence details can be found in the file COPYING.
5  *
6  * \author Angus Leeming
7  *
8  * Full author contact details are available in file CREDITS.
9  */
10
11 #include <config.h>
12
13 #include "mailinset.h"
14
15 #include "BufferView.h"
16 #include "debug.h"
17
18 #include "frontends/Dialogs.h"
19
20
21 namespace lyx {
22
23 using std::string;
24
25
26 void MailInset::showDialog(BufferView * bv) const
27 {
28         BOOST_ASSERT(bv);
29         bv->showInsetDialog(name(), inset2string(*bv->buffer()),
30                                        &inset());
31 }
32
33
34 void MailInset::updateDialog(BufferView * bv) const
35 {
36         BOOST_ASSERT(bv);
37         bv->updateDialog(name(), inset2string(*bv->buffer()));
38 }
39
40
41 void MailInset::hideDialog() const
42 {
43         Dialogs::hide(name(), &inset());
44 }
45
46
47 void print_mailer_error(string const & class_name,
48                         string const & data, int arg_id, string const & arg)
49 {
50         lyxerr << '\n' << class_name << "::string2params(" << data << ")\n"
51                << "Expected arg " << arg_id << " to be \"" << arg << "\"\n"
52                << std::endl;
53 }
54
55
56 } // namespace lyx