]> git.lyx.org Git - lyx.git/blob - src/frontends/controllers/ControlERT.h
ws fixes, formatting and some other small changes
[lyx.git] / src / frontends / controllers / ControlERT.h
1 // -*- C++ -*-
2 /**
3  * \file ControlERT.h
4  * This file is part of LyX, the document processor.
5  * Licence details can be found in the file COPYING.
6  *
7  * \author Jürgen Vigna
8  * \author Angus Leeming
9  *
10  * Full author contact details are available in file CREDITS
11  */
12
13 #ifndef CONTROLERT_H
14 #define CONTROLERT_H
15
16 #include <vector>
17
18 #ifdef __GNUG__
19 #pragma interface
20 #endif
21
22 #include "ControlInset.h"
23 #include "insets/insetert.h" // InsetERT::Status
24
25 /** This should be moved back into insetert.h and InsetERT should
26     contain an instance of it. */
27
28 struct ERTParams {
29         ///
30         ERTParams();
31         ///
32         ERTParams(InsetERT const &);
33         ///
34         InsetERT::ERTStatus status;
35 };
36
37
38 ///
39 bool operator==(ERTParams const &, ERTParams const &);
40 ///
41 bool operator!=(ERTParams const &, ERTParams const &);
42
43
44 /** A controller for ERT dialogs.
45  */
46 class ControlERT : public ControlInset<InsetERT, ERTParams>  {
47 public:
48         ///
49         ControlERT(LyXView &, Dialogs &);
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