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 #pragma implementation
18 #include "ControlERT.h"
20 // sorry this is just a temporary hack we should include vspace.h! (Jug)
21 extern const char * stringFromUnit(int);
24 ControlERT::ControlERT(LyXView & lv, Dialogs & d)
25 : ControlInset<InsetERT, ERTParams>(lv, d)
29 void ControlERT::applyParamsToInset()
31 inset()->status(bufferview(), params().status);
35 void ControlERT::applyParamsNoInset()
40 ERTParams const ControlERT::getParams(InsetERT const & inset)
42 return ERTParams(inset);
46 ERTParams::ERTParams()
47 : status(InsetERT::Collapsed)
51 ERTParams::ERTParams(InsetERT const & inset)
52 : status(inset.status())
56 bool operator==(ERTParams const & p1, ERTParams const & p2)
58 return (p1.status == p2.status);
62 bool operator!=(ERTParams const & p1, ERTParams const & p2)