3 * Copyright 2001 The LyX Team.
4 * See the file COPYING.
6 * \author Edwin Leuven, leuven@fee.uva.nl
12 #pragma implementation
15 #include "ControlPreamble.h"
24 ControlPreamble::ControlPreamble(LyXView & lv, Dialogs & d)
25 : ControlDialog<ControlConnectBD>(lv, d)
27 d_.showPreamble.connect(SigC::slot(this, &ControlPreamble::show));
31 void ControlPreamble::apply()
33 if (!lv_.view()->available())
38 lv_.buffer()->params.preamble = params();
39 lv_.buffer()->markDirty();
40 Liason::setMinibuffer(&lv_, _("LaTeX preamble set"));
44 string & ControlPreamble::params() const
51 void ControlPreamble::setParams()
53 if (params_) delete params_;
54 params_ = new string(lv_.buffer()->params.preamble);
58 void ControlPreamble::clearParams()