]> git.lyx.org Git - features.git/blob - src/frontends/controllers/ControlError.h
b74f07ac19bba239e30a35f6d40f5f246594ecd3
[features.git] / src / frontends / controllers / ControlError.h
1 // -*- C++ -*-
2 /*
3  * \file ControlError.h
4  * This file is part of
5  * ======================================================
6  *
7  *           LyX, The Document Processor
8  *
9  *           Copyright 2000-2001 The LyX Team.
10  *
11  * ======================================================
12  *
13  * \author Angus Leeming, a.leeming@.ac.uk
14  */
15
16 #ifndef CONTROLERROR_H
17 #define CONTROLERROR_H
18
19 #ifdef __GNUG__
20 #pragma interface
21 #endif
22
23 #include "ControlInset.h"
24 #include "insets/inseterror.h" // needed for proper instantiation of GUI<>.
25
26 class InsetError;
27
28 /** A controller for LaTeX Error dialogs.
29  */
30 class ControlError : public ControlInset<InsetError, string>
31 {
32 public:
33         ///
34         ControlError(LyXView &, Dialogs &);
35
36 private:
37         /// not needed.
38         virtual void applyParamsToInset() {}
39         ///
40         virtual void applyParamsNoInset() {}
41         /// get the parameters from the string passed to createInset.
42         virtual string const getParams(string const &) { return string(); }
43         /// get the parameters from the inset passed to showInset.
44         virtual string const getParams(InsetError const &);
45 };
46
47 #endif // CONTROLERROR_H