]> git.lyx.org Git - lyx.git/blob - src/insets/mailinset.h
The speed patch: redraw only rows that have changed
[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 class InsetBase;
19 class Buffer;
20 class BufferView;
21
22
23 class MailInset {
24 public:
25         ///
26         virtual ~MailInset() {};
27         ///
28         void showDialog(BufferView *) const;
29         ///
30         void updateDialog(BufferView *) const;
31         ///
32         void hideDialog() const;
33         ///
34         virtual std::string const inset2string(Buffer const &) const = 0;
35
36 protected:
37         ///
38         virtual InsetBase & inset() const = 0;
39         ///
40         virtual std::string const & name() const = 0;
41 };
42
43 void print_mailer_error(std::string const & class_name,
44                         std::string const & data,
45                         int arg_id, std::string const & arg);
46
47
48 #endif // MAILINSET_H