]> git.lyx.org Git - features.git/blobdiff - src/frontends/controllers/ControlPreamble.C
*duck*
[features.git] / src / frontends / controllers / ControlPreamble.C
index 4f3485c84ba192ff41a4659f942f32978c5078ba..7f30834f55a9aee1e6ff1c242dcfc9fe929caa2e 100644 (file)
 #pragma implementation
 #endif
 
-#include "ViewBase.h"
-#include "ButtonControllerBase.h"
 #include "ControlPreamble.h"
+#include "ViewBase.h"
 #include "frontends/LyXView.h"
-#include "Dialogs.h"
 #include "buffer.h"
-#include "lyxrc.h"
 #include "Liason.h"
 #include "gettext.h"
 #include "BufferView.h"
 #include "support/LAssert.h"
 
-#include <boost/bind.hpp>
 
 ControlPreamble::ControlPreamble(LyXView & lv, Dialogs & d)
        : ControlDialogBD(lv, d),
          params_(0)
-{
-       d_.showPreamble = boost::bind(&ControlPreamble::show, this);
-}
+{}
 
 
 void ControlPreamble::apply()
@@ -56,15 +50,13 @@ string & ControlPreamble::params() const
 
 void ControlPreamble::setParams()
 {
-       if (params_) delete params_;
+       delete params_;
        params_ = new string(lv_.buffer()->params.preamble);
 }
 
 
 void ControlPreamble::clearParams()
 {
-       if (params_) {
-               delete params_;
-               params_ = 0;
-       }
+       delete params_;
+       params_ = 0;
 }