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"
19 #include "bufferparams.h"
22 #include "frontends/LyXView.h"
25 ControlPreamble::ControlPreamble(LyXView & lv, Dialogs & d)
26 : ControlDialogBD(lv, d)
30 void ControlPreamble::apply()
32 if (!bufferIsAvailable())
37 buffer()->params().preamble = params();
38 buffer()->markDirty();
39 lv_.message(_("LaTeX preamble set"));
43 string const & ControlPreamble::params() const
49 void ControlPreamble::params(string const & newparams)
55 void ControlPreamble::setParams()
57 params_ = buffer()->params().preamble;
61 void ControlPreamble::clearParams()