]> git.lyx.org Git - lyx.git/blob - src/insets/mailinset.h
* src/LyXAction.C: mark goto-clear-bookmark as working without buffer
[lyx.git] / src / insets / mailinset.h
1 // -*- C++ -*-
2 /**
3  * \file mailinset.h
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 #ifndef MAILINSET_H
13 #define MAILINSET_H
14
15 #include <string>
16
17
18 namespace lyx {
19
20
21 class InsetBase;
22 class Buffer;
23 class BufferView;
24
25
26 class MailInset {
27 public:
28         ///
29         virtual ~MailInset() {};
30         ///
31         void showDialog(BufferView *) const;
32         ///
33         void updateDialog(BufferView *) const;
34         ///
35         void hideDialog() const;
36         ///
37         virtual std::string const inset2string(Buffer const &) const = 0;
38
39 protected:
40         ///
41         virtual InsetBase & inset() const = 0;
42         ///
43         virtual std::string const & name() const = 0;
44 };
45
46 void print_mailer_error(std::string const & class_name,
47                         std::string const & data,
48                         int arg_id, std::string const & arg);
49
50
51
52 } // namespace lyx
53
54 #endif // MAILINSET_H