]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/controllers/ControlERT.C
Really dull and boring header shit
[lyx.git] / src / frontends / controllers / ControlERT.C
index 55a4ac22206899c4274c4f4e4277540eb8507461..27b22ebbb07f0e916432933f6a7a10b918be38c8 100644 (file)
@@ -1,14 +1,11 @@
-/* This file is part of
- * ======================================================
+/**
+ * \file ControlERT.C
+ * Read the file COPYING
  *
- *           LyX, The Document Processor
+ * \author Jürgen Vigna
+ * \author Angus Leeming
  *
- *           Copyright 2001 The LyX Team.
- *
- * ======================================================
- *
- * \author Jürgen Vigna, jug@sad.it
- * \author Angus Leeming, a.leeming@ic.ac.uk
+ * Full author contact details are available in file CREDITS
  */
 
 #include <config.h>
 #pragma implementation
 #endif
 
-#include "ViewBase.h"
-#include "ButtonControllerBase.h"
 #include "ControlERT.h"
-#include "Dialogs.h"
-#include "frontends/LyXView.h"
-#include "buffer.h"
-#include "BufferView.h"
-
-#include <boost/bind.hpp>
-
-using std::vector;
 
 // 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 = boost::bind(&ControlERT::showInset, this, _1);
-
-       // 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 = boost::bind(&ControlERT::showInset, this, _1);
-}
+{}
 
 
 void ControlERT::applyParamsToInset()
 {
-       inset()->status(lv_.view(), params().status);
+       inset()->status(bufferview(), params().status);
 }
 
 
@@ -65,6 +46,7 @@ ERTParams::ERTParams()
        : status(InsetERT::Collapsed)
 {}
 
+
 ERTParams::ERTParams(InsetERT const & inset)
        : status(inset.status())
 {}