]> git.lyx.org Git - lyx.git/blob - src/frontends/controllers/ControlPreamble.h
port the graphics dialog to the new scheme and get rid of the ControlInset
[lyx.git] / src / frontends / controllers / ControlPreamble.h
1 // -*- C++ -*-
2 /**
3  * \file ControlPreamble.h
4  * This file is part of LyX, the document processor.
5  * Licence details can be found in the file COPYING.
6  *
7  * \author Edwin Leuven
8  *
9  * Full author contact details are available in file CREDITS
10  */
11
12 #ifndef CONTROLPREAMBLE_H
13 #define CONTROLPREAMBLE_H
14
15
16 #include "ControlDialog_impl.h"
17
18 #include "LString.h"
19
20 /** A controller for Preamble dialogs.
21  */
22 class ControlPreamble : public ControlDialogBD {
23 public:
24         ///
25         ControlPreamble(LyXView &, Dialogs &);
26
27         ///
28         string const & params() const;
29         ///
30         void params(string const & newparams);
31 private:
32         /// Get changed parameters and Dispatch them to the kernel.
33         virtual void apply();
34         /// set the params before show or update.
35         virtual void setParams();
36         /// clean-up on hide.
37         virtual void clearParams();
38
39         ///
40         string params_;
41 };
42
43 #endif // CONTROLPREAMBLE_H