]> git.lyx.org Git - lyx.git/blob - src/frontends/controllers/ControlPreamble.h
Convert the preamble dialog to the Dialog-based scheme.
[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 #include "Dialog.h"
16
17 /** A controller for Preamble dialogs.
18  */
19 class ControlPreamble : public Dialog::Controller {
20 public:
21         ///
22         ControlPreamble(Dialog &);
23         ///
24         virtual bool initialiseParams(std::string const &);
25         ///
26         virtual void clearParams();
27         ///
28         virtual void dispatchParams();
29         ///
30         virtual bool isBufferDependent() const { return true; }
31
32         ///
33         std::string const & params() const;
34         ///
35         void params(std::string const & newparams);
36 private:
37         ///
38         std::string params_;
39 };
40
41 #endif // CONTROLPREAMBLE_H