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.
13 #include "ControlPreamble.h"
16 #include "bufferparams.h"
21 ControlPreamble::ControlPreamble(Dialog & parent)
22 : Dialog::Controller(parent)
26 bool ControlPreamble::initialiseParams(std::string const &)
28 params_ = kernel().buffer().params().preamble;
33 void ControlPreamble::clearParams()
39 void ControlPreamble::dispatchParams()
41 // This can stay because we're going to throw the class away
42 // as soon as xforms 1.1 is released.
43 // Ie, there's no need to define LFUN_BUFFERPREAMBLE_APPLY.
44 Buffer & buffer = kernel().buffer();
45 buffer.params().preamble = params();
50 string const & ControlPreamble::params() const
56 void ControlPreamble::params(string const & newparams)