]> git.lyx.org Git - lyx.git/blob - src/frontends/controllers/ControlERT.h
Really dull and boring header shit
[lyx.git] / src / frontends / controllers / ControlERT.h
1 // -*- C++ -*-
2 /**
3  * \file ControlERT.h
4  * Read the file COPYING
5  *
6  * \author Jürgen Vigna
7  * \author Angus Leeming
8  *
9  * Full author contact details are available in file CREDITS
10  */
11
12 #ifndef CONTROLERT_H
13 #define CONTROLERT_H
14
15 #include <vector>
16
17 #ifdef __GNUG__
18 #pragma interface
19 #endif
20
21 #include "ControlInset.h"
22 #include "insets/insetert.h" // InsetERT::Status
23
24 /** This should be moved back into insetert.h and InsetERT should
25     contain an instance of it. */
26
27 struct ERTParams {
28         ///
29         ERTParams();
30         ///
31         ERTParams(InsetERT const &);
32         ///
33         InsetERT::ERTStatus status;
34 };
35
36
37 ///
38 bool operator==(ERTParams const &, ERTParams const &);
39 ///
40 bool operator!=(ERTParams const &, ERTParams const &);
41
42
43 /** A controller for ERT dialogs.
44  */
45 class ControlERT : public ControlInset<InsetERT, ERTParams>  {
46 public:
47         ///
48         ControlERT(LyXView &, Dialogs &);
49
50 private:
51         /// Dispatch the changed parameters to the kernel.
52         virtual void applyParamsToInset();
53         ///
54         virtual void applyParamsNoInset();
55         /// get the parameters from the string passed to createInset.
56         virtual ERTParams const getParams(string const &)
57                 { return ERTParams(); }
58         /// get the parameters from the inset passed to showInset.
59         virtual ERTParams const getParams(InsetERT const &);
60 };
61
62 #endif