]> git.lyx.org Git - lyx.git/blob - src/frontends/controllers/ControlERT.C
Really dull and boring header shit
[lyx.git] / src / frontends / controllers / ControlERT.C
1 /**
2  * \file ControlERT.C
3  * Read the file COPYING
4  *
5  * \author Jürgen Vigna
6  * \author Angus Leeming
7  *
8  * Full author contact details are available in file CREDITS
9  */
10
11 #include <config.h>
12
13 #ifdef __GNUG__
14 #pragma implementation
15 #endif
16
17 #include "ControlERT.h"
18
19 // sorry this is just a temporary hack we should include vspace.h! (Jug)
20 extern const char * stringFromUnit(int);
21
22
23 ControlERT::ControlERT(LyXView & lv, Dialogs & d)
24         : ControlInset<InsetERT, ERTParams>(lv, d)
25 {}
26
27
28 void ControlERT::applyParamsToInset()
29 {
30         inset()->status(bufferview(), params().status);
31 }
32
33
34 void ControlERT::applyParamsNoInset()
35 {
36 }
37
38
39 ERTParams const ControlERT::getParams(InsetERT const & inset)
40 {
41         return ERTParams(inset);
42 }
43
44
45 ERTParams::ERTParams()
46         : status(InsetERT::Collapsed)
47 {}
48
49
50 ERTParams::ERTParams(InsetERT const & inset)
51         : status(inset.status())
52 {}
53
54
55 bool operator==(ERTParams const & p1, ERTParams const & p2)
56 {
57         return (p1.status == p2.status);
58 }
59
60
61 bool operator!=(ERTParams const & p1, ERTParams const & p2)
62 {
63         return !(p1 == p2);
64 }