2 * \file ControlPreamble.C
3 * This file is part of LyX, the document processor.
4 * Licence details can be found in the file COPYING.
8 * Full author contact details are available in file CREDITS
14 #pragma implementation
17 #include "ControlPreamble.h"
24 #include "frontends/LyXView.h"
27 ControlPreamble::ControlPreamble(LyXView & lv, Dialogs & d)
28 : ControlDialogBD(lv, d)
32 void ControlPreamble::apply()
34 if (!bufferIsAvailable())
39 buffer()->params.preamble = params();
40 buffer()->markDirty();
41 lv_.message(_("LaTeX preamble set"));
45 string const & ControlPreamble::params() const
51 void ControlPreamble::params(string const & newparams)
57 void ControlPreamble::setParams()
59 params_ = buffer()->params.preamble;
63 void ControlPreamble::clearParams()