3 * Read the file COPYING
6 * \author Angus Leeming
8 * Full author contact details are available in file CREDITS
14 #pragma implementation
17 #include "ControlERT.h"
19 // sorry this is just a temporary hack we should include vspace.h! (Jug)
20 extern const char * stringFromUnit(int);
23 ControlERT::ControlERT(LyXView & lv, Dialogs & d)
24 : ControlInset<InsetERT, ERTParams>(lv, d)
28 void ControlERT::applyParamsToInset()
30 inset()->status(bufferview(), params().status);
34 void ControlERT::applyParamsNoInset()
39 ERTParams const ControlERT::getParams(InsetERT const & inset)
41 return ERTParams(inset);
45 ERTParams::ERTParams()
46 : status(InsetERT::Collapsed)
50 ERTParams::ERTParams(InsetERT const & inset)
51 : status(inset.status())
55 bool operator==(ERTParams const & p1, ERTParams const & p2)
57 return (p1.status == p2.status);
61 bool operator!=(ERTParams const & p1, ERTParams const & p2)