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