3 * This file is part of LyX, the document processor.
4 * Licence details can be found in the file COPYING.
7 * \author Angus Leeming
9 * Full author contact details are available in file CREDITS
15 #include "ControlERT.h"
17 // sorry this is just a temporary hack we should include vspace.h! (Jug)
18 extern const char * stringFromUnit(int);
21 ControlERT::ControlERT(LyXView & lv, Dialogs & d)
22 : ControlInset<InsetERT, ERTParams>(lv, d)
26 void ControlERT::applyParamsToInset()
28 inset()->status(bufferview(), params().status);
32 void ControlERT::applyParamsNoInset()
37 ERTParams const ControlERT::getParams(InsetERT const & inset)
39 return ERTParams(inset);
43 ERTParams::ERTParams()
44 : status(InsetERT::Collapsed)
48 ERTParams::ERTParams(InsetERT const & inset)
49 : status(inset.status())
53 bool operator==(ERTParams const & p1, ERTParams const & p2)
55 return (p1.status == p2.status);
59 bool operator!=(ERTParams const & p1, ERTParams const & p2)