]> git.lyx.org Git - lyx.git/blob - src/frontends/controllers/ControlERT.C
remove preamble dialog from the qt frontend
[lyx.git] / src / frontends / controllers / ControlERT.C
1 /**
2  * \file ControlERT.C
3  * This file is part of LyX, the document processor.
4  * Licence details can be found in 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 #include <config.h>
13
14 #ifdef __GNUG__
15 #pragma implementation
16 #endif
17
18 #include "ControlERT.h"
19
20 // sorry this is just a temporary hack we should include vspace.h! (Jug)
21 extern const char * stringFromUnit(int);
22
23
24 ControlERT::ControlERT(LyXView & lv, Dialogs & d)
25         : ControlInset<InsetERT, ERTParams>(lv, d)
26 {}
27
28
29 void ControlERT::applyParamsToInset()
30 {
31         inset()->status(bufferview(), params().status);
32 }
33
34
35 void ControlERT::applyParamsNoInset()
36 {
37 }
38
39
40 ERTParams const ControlERT::getParams(InsetERT const & inset)
41 {
42         return ERTParams(inset);
43 }
44
45
46 ERTParams::ERTParams()
47         : status(InsetERT::Collapsed)
48 {}
49
50
51 ERTParams::ERTParams(InsetERT const & inset)
52         : status(inset.status())
53 {}
54
55
56 bool operator==(ERTParams const & p1, ERTParams const & p2)
57 {
58         return (p1.status == p2.status);
59 }
60
61
62 bool operator!=(ERTParams const & p1, ERTParams const & p2)
63 {
64         return !(p1 == p2);
65 }