3 * This file is part of LyX, the document processor.
4 * Licence details can be found in the file COPYING.
6 * \author Angus Leeming
8 * Full author contact details are available in file CREDITS.
14 #include "ControlButtons.h"
17 ViewBase::ViewBase(string const & t)
18 : controller_ptr_(0), title_(t)
22 void ViewBase::setController(ControlButtons & c)
28 void ViewBase::setTitle(string const & newtitle)
34 string const & ViewBase::getTitle() const
40 ControlButtons & ViewBase::getController()
42 BOOST_ASSERT(controller_ptr_);
43 return *controller_ptr_;
47 ControlButtons const & ViewBase::getController() const
49 BOOST_ASSERT(controller_ptr_);
50 return *controller_ptr_;
54 ButtonController & ViewBase::bc()
56 return getController().bc();