#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()
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;
}