]> git.lyx.org Git - lyx.git/blob - src/insets/mailinset.C
Strip out redundant includes (193 of 'em).
[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
17 #include "frontends/Dialogs.h"
18 #include "frontends/LyXView.h"
19
20 #include "support/LAssert.h"
21
22 using namespace lyx::support;
23
24
25 void MailInset::showDialog(BufferView * bv) const
26 {
27         Assert(bv);
28         bv->owner()->getDialogs().show(name(), inset2string(*bv->buffer()),
29                                        &inset());
30 }
31
32
33 void MailInset::updateDialog(BufferView * bv) const
34 {
35         Assert(bv);
36         if(bv->owner()->getDialogs().visible(name()))
37                 bv->owner()->getDialogs().update(name(),
38                                                  inset2string(*bv->buffer()));
39 }
40
41
42 void MailInset::hideDialog() const
43 {
44         Dialogs::hide(name(), &inset());
45 }