]> git.lyx.org Git - features.git/blobdiff - src/frontends/controllers/ControlFloat.C
move floatlist to textclass
[features.git] / src / frontends / controllers / ControlFloat.C
index 2e8891a3c9adc74f7c4d47c9b703d2d4d0f88ad9..40d34b295c84187639c8502204bacf4642e8493c 100644 (file)
 #endif
 
 #include "ControlFloat.h"
-#include "ViewBase.h"
-#include "ButtonControllerBase.h"
-#include "Dialogs.h"
-#include "buffer.h"
 #include "BufferView.h"
-
-#include "insets/insetfloat.h"
-#include "frontends/LyXView.h"
-
-#include <boost/bind.hpp>
-
-using std::vector;
+#include "buffer.h"
 
 
 ControlFloat::ControlFloat(LyXView & lv, Dialogs & d)
        : ControlInset<InsetFloat, FloatParams>(lv, d)
-{
-       d_.showFloat = boost::bind(&ControlFloat::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_.updateFloat.connect(slot(this, &ControlFloat::showInset));
-}
+{}
 
 
 void ControlFloat::applyParamsToInset()
 {
        inset()->placement(params().placement);
+       inset()->wide(params().wide, bufferview()->buffer()->params);
+       bufferview()->updateInset(inset(), true);
+
 }
 
 
@@ -60,11 +46,11 @@ FloatParams const ControlFloat::getParams(InsetFloat const & inset)
 
 FloatParams::FloatParams()
        : placement("htbp"),
-         allow_here_definitely(true)
+         wide(false)
 {}
 
 
 FloatParams::FloatParams(InsetFloat const & inset)
        : placement(inset.placement()),
-         allow_here_definitely(!inset.wide())
+         wide(inset.wide())
 {}