]> git.lyx.org Git - lyx.git/blob - src/frontends/controllers/ControlError.h
prefs/tabular MVC work
[lyx.git] / src / frontends / controllers / ControlError.h
1 // -*- C++ -*-
2 /**
3  * \file ControlError.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 CONTROLERROR_H
13 #define CONTROLERROR_H
14
15 #ifdef __GNUG__
16 #pragma interface
17 #endif
18
19 #include "ControlInset.h"
20 #include "insets/inseterror.h" // needed for proper instantiation of GUI<>.
21
22 class InsetError;
23
24 /** A controller for LaTeX Error dialogs.
25  */
26 class ControlError : public ControlInset<InsetError, string> {
27 public:
28         ///
29         ControlError(LyXView &, Dialogs &);
30 private:
31         /// not needed.
32         virtual void applyParamsToInset() {}
33         ///
34         virtual void applyParamsNoInset() {}
35         /// get the parameters from the string passed to createInset.
36         virtual string const getParams(string const &) { return string(); }
37         /// get the parameters from the inset passed to showInset.
38         virtual string const getParams(InsetError const &);
39 };
40
41 #endif // CONTROLERROR_H