4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
7 * \author Angus Leeming
9 * Full author contact details are available in file CREDITS.
17 #include <boost/utility.hpp>
22 /** This class makes a whole out of the disparate parts of a dialog.
24 template <typename Controller, typename GUIview,
25 typename Policy, typename GUIbc>
26 class GUI : boost::noncopyable {
29 GUI(LyXView & lv, Dialogs & d);
31 Controller & controller() { return controller_; }
33 Controller const & controller() const { return controller_; }
36 Controller controller_;
42 template <typename Controller, typename GUIview,
43 typename Policy, typename GUIbc>
44 GUI<Controller, GUIview, Policy, GUIbc>::GUI(LyXView & lv, Dialogs & d)
48 controller_.setView(view_);
49 view_.setController(controller_);
50 controller_.bc().view(new GUIbc(controller_.bc()));
51 controller_.bc().bp(new Policy);