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"
23 ControlPreamble::ControlPreamble(Dialog & parent)
24 : Dialog::Controller(parent)
28 bool ControlPreamble::initialiseParams(std::string const &)
30 params_ = kernel().buffer().params().preamble;
35 void ControlPreamble::clearParams()
41 void ControlPreamble::dispatchParams()
43 // This can stay because we're going to throw the class away
44 // as soon as xforms 1.1 is released.
45 // Ie, there's no need to define LFUN_BUFFERPREAMBLE_APPLY.
46 Buffer & buffer = kernel().buffer();
47 buffer.params().preamble = params();
52 string const & ControlPreamble::params() const
58 void ControlPreamble::params(string const & newparams)
63 } // namespace frontend