2 * \file ControlButtons.C
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"
15 #include "ButtonController.h"
20 ControlButtons::ControlButtons()
21 : emergency_exit_(false), is_closing_(false),
22 bc_ptr_(new ButtonController), view_ptr_(0)
26 ControlButtons::~ControlButtons()
30 void ControlButtons::ApplyButton()
37 void ControlButtons::OKButton()
47 void ControlButtons::CancelButton()
54 void ControlButtons::RestoreButton()
61 bool ControlButtons::IconifyWithMain() const
63 return lyxrc.dialogs_iconify_with_main;
67 ButtonController & ControlButtons::bc()
69 BOOST_ASSERT(bc_ptr_.get());
70 return *bc_ptr_.get();
74 ViewBase & ControlButtons::view()
76 BOOST_ASSERT(view_ptr_);
81 void ControlButtons::setView(ViewBase & v)