]> git.lyx.org Git - lyx.git/blob - src/insets/MailInset.cpp
Fix text frame drawing.
[lyx.git] / src / insets / MailInset.cpp
1 /**
2  * \file MailInset.cpp
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 #include "LyX.h"
18
19
20 namespace lyx {
21
22 using std::string;
23
24
25 void MailInset::showDialog(BufferView * bv) const
26 {
27         BOOST_ASSERT(bv);
28         bv->showInsetDialog(name(), inset2string(bv->buffer()),
29                                        &inset());
30 }
31
32
33 void MailInset::updateDialog(BufferView * bv) const
34 {
35         BOOST_ASSERT(bv);
36         bv->updateDialog(name(), inset2string(bv->buffer()));
37 }
38
39
40 void MailInset::hideDialog() const
41 {
42         LyX::cref().hideDialogs(name(), &inset());
43 }
44
45
46 void print_mailer_error(string const & class_name,
47                         string const & data, int arg_id, string const & arg)
48 {
49         lyxerr << '\n' << class_name << "::string2params(" << data << ")\n"
50                << "Expected arg " << arg_id << " to be \"" << arg << "\"\n"
51                << std::endl;
52 }
53
54
55 } // namespace lyx