/* This file is part of
- * ======================================================
+ * ======================================================
*
* LyX, The Document Processor
*
* ======================================================
*
* \author Jürgen Vigna, jug@sad.it
- * \author Angus Leeming, a.leeming@ic.ac.uk
+ * \author Angus Leeming <leeming@lyx.org>
*/
#include <config.h>
#pragma implementation
#endif
-#include "ViewBase.h"
-#include "ButtonControllerBase.h"
#include "ControlERT.h"
-#include "Dialogs.h"
-#include "LyXView.h"
-#include "buffer.h"
-#include "BufferView.h"
-
-using std::vector;
-using SigC::slot;
// sorry this is just a temporary hack we should include vspace.h! (Jug)
extern const char * stringFromUnit(int);
+
ControlERT::ControlERT(LyXView & lv, Dialogs & d)
: ControlInset<InsetERT, ERTParams>(lv, d)
-{
- d_.showERT.connect(slot(this, &ControlERT::showInset));
-
- // We could have an extra method updateInset that calls
- // view().update() rather than view().show(), but I don't see why
- // it is really needed.
- d_.updateERT.connect(slot(this, &ControlERT::showInset));
-}
+{}
void ControlERT::applyParamsToInset()
{
- inset()->status(lv_.view(), params().status);
+ inset()->status(bufferview(), params().status);
}
: status(InsetERT::Collapsed)
{}
+
ERTParams::ERTParams(InsetERT const & inset)
: status(inset.status())
{}