]> git.lyx.org Git - lyx.git/blob - src/frontends/controllers/ControlError.h
Really dull and boring header shit
[lyx.git] / src / frontends / controllers / ControlError.h
1 // -*- C++ -*-
2 /**
3  * \file ControlError.h
4  * Read the file COPYING
5  *
6  * \author Angus Leeming
7  *
8  * Full author contact details are available in file CREDITS
9  */
10
11 #ifndef CONTROLERROR_H
12 #define CONTROLERROR_H
13
14 #ifdef __GNUG__
15 #pragma interface
16 #endif
17
18 #include "ControlInset.h"
19 #include "insets/inseterror.h" // needed for proper instantiation of GUI<>.
20
21 class InsetError;
22
23 /** A controller for LaTeX Error dialogs.
24  */
25 class ControlError : public ControlInset<InsetError, string>
26 {
27 public:
28         ///
29         ControlError(LyXView &, Dialogs &);
30
31 private:
32         /// not needed.
33         virtual void applyParamsToInset() {}
34         ///
35         virtual void applyParamsNoInset() {}
36         /// get the parameters from the string passed to createInset.
37         virtual string const getParams(string const &) { return string(); }
38         /// get the parameters from the inset passed to showInset.
39         virtual string const getParams(InsetError const &);
40 };
41
42 #endif // CONTROLERROR_H