1 /* This file is part of
2 * ======================================================
4 * LyX, The Document Processor
6 * Copyright 2001 The LyX Team.
8 * ======================================================
10 * \author Jürgen Vigna, jug@sad.it
11 * \author Angus Leeming <leeming@lyx.org>
17 #pragma implementation
20 #include "ControlERT.h"
22 // sorry this is just a temporary hack we should include vspace.h! (Jug)
23 extern const char * stringFromUnit(int);
26 ControlERT::ControlERT(LyXView & lv, Dialogs & d)
27 : ControlInset<InsetERT, ERTParams>(lv, d)
31 void ControlERT::applyParamsToInset()
33 inset()->status(bufferview(), params().status);
37 void ControlERT::applyParamsNoInset()
42 ERTParams const ControlERT::getParams(InsetERT const & inset)
44 return ERTParams(inset);
48 ERTParams::ERTParams()
49 : status(InsetERT::Collapsed)
53 ERTParams::ERTParams(InsetERT const & inset)
54 : status(inset.status())
58 bool operator==(ERTParams const & p1, ERTParams const & p2)
60 return (p1.status == p2.status);
64 bool operator!=(ERTParams const & p1, ERTParams const & p2)