]> git.lyx.org Git - lyx.git/blob - src/frontends/controllers/ControlPreamble.h
ws fixes, formatting and some other small changes
[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 #ifdef __GNUG__
16 #pragma interface
17 #endif
18
19 #include "ControlDialog_impl.h"
20
21 #include "LString.h"
22
23 /** A controller for Preamble dialogs.
24  */
25 class ControlPreamble : public ControlDialogBD {
26 public:
27         ///
28         ControlPreamble(LyXView &, Dialogs &);
29
30         ///
31         string const & params() const;
32         ///
33         void params(string const & newparams);
34 private:
35         /// Get changed parameters and Dispatch them to the kernel.
36         virtual void apply();
37         /// set the params before show or update.
38         virtual void setParams();
39         /// clean-up on hide.
40         virtual void clearParams();
41
42         ///
43         string params_;
44 };
45
46 #endif // CONTROLPREAMBLE_H