]> git.lyx.org Git - lyx.git/blob - src/frontends/controllers/ControlPreamble.h
fix crash due to invalidated iterator
[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 namespace lyx {
18 namespace frontend {
19
20 /** A controller for Preamble dialogs.
21  */
22 class ControlPreamble : public Dialog::Controller {
23 public:
24         ///
25         ControlPreamble(Dialog &);
26         ///
27         virtual bool initialiseParams(std::string const &);
28         ///
29         virtual void clearParams();
30         ///
31         virtual void dispatchParams();
32         ///
33         virtual bool isBufferDependent() const { return true; }
34
35         ///
36         std::string const & params() const;
37         ///
38         void params(std::string const & newparams);
39 private:
40         ///
41         std::string params_;
42 };
43
44 } // namespace frontend
45 } // namespace lyx
46
47 #endif // CONTROLPREAMBLE_H