X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Ffrontends%2Fcontrollers%2FControlERT.C;h=d1d7d13331e0bba0c88e8580508fb271185be286;hb=c265d16ed06149b478c2d2c9b9b8e69cdb1bcf3d;hp=cd70992604544109c135803a50692a3ac228f0b9;hpb=26b1fa7be88e8388415b1aa49fb41cc2fc02c2db;p=lyx.git diff --git a/src/frontends/controllers/ControlERT.C b/src/frontends/controllers/ControlERT.C index cd70992604..d1d7d13331 100644 --- a/src/frontends/controllers/ControlERT.C +++ b/src/frontends/controllers/ControlERT.C @@ -1,5 +1,5 @@ /* This file is part of - * ====================================================== + * ====================================================== * * LyX, The Document Processor * @@ -8,7 +8,7 @@ * ====================================================== * * \author Jürgen Vigna, jug@sad.it - * \author Angus Leeming, a.leeming@ic.ac.uk + * \author Angus Leeming */ #include @@ -17,35 +17,20 @@ #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(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); } @@ -64,6 +49,7 @@ ERTParams::ERTParams() : status(InsetERT::Collapsed) {} + ERTParams::ERTParams(InsetERT const & inset) : status(inset.status()) {}