3 * Copyright 2001 The LyX Team.
4 * See the file COPYING.
6 * \author Edwin Leuven, leuven@fee.uva.nl
12 #pragma implementation
15 #include "ControlPreamble.h"
22 ControlPreamble::ControlPreamble(LyXView & lv, Dialogs & d)
23 : ControlDialogBD(lv, d),
28 void ControlPreamble::apply()
30 if (!bufferIsAvailable())
35 buffer()->params.preamble = params();
36 buffer()->markDirty();
37 Liason::setMinibuffer(&lv_, _("LaTeX preamble set"));
41 string & ControlPreamble::params() const
48 void ControlPreamble::setParams()
51 params_ = new string(buffer()->params.preamble);
55 void ControlPreamble::clearParams()