2 * \file ControlPreamble.C
3 * See the file COPYING.
7 * Full author contact details are available in file CREDITS
13 #pragma implementation
16 #include "ControlPreamble.h"
23 #include "frontends/Liason.h"
26 ControlPreamble::ControlPreamble(LyXView & lv, Dialogs & d)
27 : ControlDialogBD(lv, d),
32 void ControlPreamble::apply()
34 if (!bufferIsAvailable())
39 buffer()->params.preamble = params();
40 buffer()->markDirty();
41 Liason::setMinibuffer(&lv_, _("LaTeX preamble set"));
45 string & ControlPreamble::params() const
52 void ControlPreamble::setParams()
55 params_ = new string(buffer()->params.preamble);
59 void ControlPreamble::clearParams()