]> git.lyx.org Git - lyx.git/blob - src/insets/mailinset.C
Collapse all those LFUN_XYZ_APPLY to a single LFUN_INSET_APPLY.
[lyx.git] / src / insets / mailinset.C
1 // -*- C++ -*-
2 /**
3  * \file mailinset.C
4  * This file is part of LyX, the document processor.
5  * Licence details can be found in the file COPYING.
6  *
7  * \author Angus Leeming
8  *
9  * Full author contact details are available in file CREDITS
10  */
11
12 #include <config.h>
13
14 #include "mailinset.h"
15 #include "inset.h"
16 #include "BufferView.h"
17 #include "frontends/LyXView.h"
18 #include "frontends/Dialogs.h"
19 #include "Lsstream.h"
20
21
22 void MailInset::showDialog() const
23 {
24         BufferView * bv = inset().view();
25         if (!bv)
26                 return;
27
28         bv->owner()->getDialogs().show(name(), inset2string(), &inset());
29 }
30
31
32 void MailInset::updateDialog() const
33 {
34         BufferView * bv = inset().view();
35         if (!bv)
36                 return;
37
38         bv->owner()->getDialogs().update(name(), inset2string());
39 }
40
41
42 void MailInset::hideDialog() const
43 {
44         BufferView * bv = inset().view();
45         if (!bv)
46                 return;
47
48         bv->owner()->getDialogs().hide(name());
49 }