]> git.lyx.org Git - lyx.git/blob - src/frontends/controllers/ControlPreamble.h
5 new lfuns, move all apply code out of ControlDocument and into the core.
[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
19 /** A controller for Preamble dialogs.
20  */
21 class ControlPreamble : public ControlDialogBD {
22 public:
23         ///
24         ControlPreamble(LyXView &, Dialogs &);
25
26         ///
27         std::string const & params() const;
28         ///
29         void params(std::string const & newparams);
30 private:
31         /// Get changed parameters and Dispatch them to the kernel.
32         virtual void apply();
33         /// set the params before show or update.
34         virtual void setParams();
35         /// clean-up on hide.
36         virtual void clearParams();
37
38         ///
39         std::string params_;
40 };
41
42 #endif // CONTROLPREAMBLE_H