]> git.lyx.org Git - lyx.git/blob - src/insets/mailinset.C
Enable convertDefault.sh to run even if its executable bit is not set.
[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 #include "inset.h"
15 #include "BufferView.h"
16 #include "frontends/LyXView.h"
17 #include "frontends/Dialogs.h"
18 #include "support/LAssert.h"
19 #include "Lsstream.h"
20
21 using namespace lyx::support;
22
23 void MailInset::showDialog(BufferView * bv) const
24 {
25         Assert(bv);
26         bv->owner()->getDialogs().show(name(), inset2string(*bv->buffer()),
27                                        &inset());
28 }
29
30
31 void MailInset::updateDialog(BufferView * bv) const
32 {
33         Assert(bv);
34         if(bv->owner()->getDialogs().visible(name()))
35                 bv->owner()->getDialogs().update(name(),
36                                                  inset2string(*bv->buffer()));
37 }
38
39
40 void MailInset::hideDialog() const
41 {
42         Dialogs::hide(name(), &inset());
43 }