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"
28 ControlPreamble::ControlPreamble(LyXView & lv, Dialogs & d)
29 : ControlDialogBD(lv, d)
33 void ControlPreamble::apply()
35 if (!bufferIsAvailable())
40 buffer()->params().preamble = params();
41 buffer()->markDirty();
42 lv_.message(_("LaTeX preamble set"));
46 string const & ControlPreamble::params() const
52 void ControlPreamble::params(string const & newparams)
58 void ControlPreamble::setParams()
60 params_ = buffer()->params().preamble;
64 void ControlPreamble::clearParams()