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 #include "ControlPreamble.h"
21 #include "frontends/LyXView.h"
24 ControlPreamble::ControlPreamble(LyXView & lv, Dialogs & d)
25 : ControlDialogBD(lv, d)
29 void ControlPreamble::apply()
31 if (!bufferIsAvailable())
36 buffer()->params.preamble = params();
37 buffer()->markDirty();
38 lv_.message(_("LaTeX preamble set"));
42 string const & ControlPreamble::params() const
48 void ControlPreamble::params(string const & newparams)
54 void ControlPreamble::setParams()
56 params_ = buffer()->params.preamble;
60 void ControlPreamble::clearParams()