#pragma implementation
#endif
+#include "ViewBase.h"
+#include "ButtonControllerBase.h"
#include "ControlPreamble.h"
-#include "LyXView.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)
- : ControlDialog<ControlConnectBD>(lv, d)
+ : ControlDialogBD(lv, d),
+ params_(0)
{
- d_.showPreamble.connect(SigC::slot(this, &ControlPreamble::show));
+ d_.showPreamble = boost::bind(&ControlPreamble::show, this);
}
{
if (!lv_.view()->available())
return;
-
+
view().apply();
lv_.buffer()->params.preamble = params();