]> git.lyx.org Git - lyx.git/blob - src/frontends/controllers/ControlPreamble.h
This file is part of LyX, the document processor.
[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 & params() const;
32
33 private:
34         /// Get changed parameters and Dispatch them to the kernel.
35         virtual void apply();
36         /// set the params before show or update.
37         virtual void setParams();
38         /// clean-up on hide.
39         virtual void clearParams();
40
41         ///
42         string * params_;
43 };
44
45 #endif // CONTROLPREAMBLE_H