]> git.lyx.org Git - lyx.git/blob - src/frontends/controllers/ControlERT.h
dont use pragma impementation and interface anymore
[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
19 #include "ControlInset.h"
20 #include "insets/insetert.h" // InsetERT::Status
21
22 /** This should be moved back into insetert.h and InsetERT should
23     contain an instance of it. */
24
25 struct ERTParams {
26         ///
27         ERTParams();
28         ///
29         ERTParams(InsetERT const &);
30         ///
31         InsetERT::ERTStatus status;
32 };
33
34
35 ///
36 bool operator==(ERTParams const &, ERTParams const &);
37 ///
38 bool operator!=(ERTParams const &, ERTParams const &);
39
40
41 /** A controller for ERT dialogs.
42  */
43 class ControlERT : public ControlInset<InsetERT, ERTParams>  {
44 public:
45         ///
46         ControlERT(LyXView &, Dialogs &);
47 private:
48         /// Dispatch the changed parameters to the kernel.
49         virtual void applyParamsToInset();
50         ///
51         virtual void applyParamsNoInset();
52         /// get the parameters from the string passed to createInset.
53         virtual ERTParams const getParams(string const &)
54                 { return ERTParams(); }
55         /// get the parameters from the inset passed to showInset.
56         virtual ERTParams const getParams(InsetERT const &);
57 };
58
59 #endif