]> git.lyx.org Git - lyx.git/blob - src/frontends/controllers/ControlBox.h
fix crash due to invalidated iterator
[lyx.git] / src / frontends / controllers / ControlBox.h
1 // -*- C++ -*-
2 /**
3  * \file ControlBox.h
4  * This file is part of LyX, the document processor.
5  * Licence details can be found in the file COPYING.
6  *
7  * \author Martin Vermeer (with useful hints from Angus Leeming)
8  *
9  * Full author contact details are available in file CREDITS.
10  */
11
12 #ifndef CONTROLBOX_H
13 #define CONTROLBOX_H
14
15
16 #include "Dialog.h"
17 #include <vector>
18
19 class InsetBoxParams;
20
21 namespace lyx {
22 namespace frontend {
23
24 class ControlBox : public Dialog::Controller {
25 public:
26         ///
27         ControlBox(Dialog &);
28         ///
29         virtual bool initialiseParams(std::string const & data);
30         ///
31         virtual void clearParams();
32         ///
33         virtual void dispatchParams();
34         ///
35         virtual bool isBufferDependent() const { return true; }
36         ///
37         InsetBoxParams & params() { return *params_.get(); }
38         ///
39         InsetBoxParams const & params() const { return *params_.get(); }
40         ///
41 private:
42         ///
43         boost::scoped_ptr<InsetBoxParams> params_;
44 };
45
46 ///
47 void box_gui_tokens(std::vector<std::string> &, std::vector<std::string> &);
48 ///
49 void box_gui_tokens_special_length(std::vector<std::string> &,
50         std::vector<std::string> &);
51
52 } // namespace frontend
53 } // namespace lyx
54
55 #endif // CONTROLBOX_H