]> git.lyx.org Git - lyx.git/blob - src/frontends/controllers/ControlBox.h
Overhaul the branches code.
[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 class ControlBox : public Dialog::Controller {
22 public:
23         ///
24         ControlBox(Dialog &);
25         ///
26         virtual bool initialiseParams(std::string const & data);
27         ///
28         virtual void clearParams();
29         ///
30         virtual void dispatchParams();
31         ///
32         virtual bool isBufferDependent() const { return true; }
33         ///
34         InsetBoxParams & params() { return *params_.get(); }
35         ///
36         InsetBoxParams const & params() const { return *params_.get(); }
37         ///
38 private:
39         ///
40         boost::scoped_ptr<InsetBoxParams> params_;
41 };
42
43 ///
44 void box_gui_tokens(std::vector<std::string> &, std::vector<std::string> &);
45 ///
46 void box_gui_tokens_special_length(std::vector<std::string> &,
47         std::vector<std::string> &);
48
49 #endif // CONTROLBOX_H