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 "ButtonControllerBase.h"
18 #include "support/LAssert.h"
21 ControlButtons::ControlButtons()
22 : emergency_exit_(false), is_closing_(false), bc_ptr_(0), view_ptr_(0)
26 void ControlButtons::ApplyButton()
33 void ControlButtons::OKButton()
43 void ControlButtons::CancelButton()
50 void ControlButtons::RestoreButton()
57 bool ControlButtons::IconifyWithMain() const
59 return lyxrc.dialogs_iconify_with_main;
63 ButtonControllerBase & ControlButtons::bc()
70 ViewBase & ControlButtons::view()
72 lyx::Assert(view_ptr_);
77 void ControlButtons::setView(ViewBase & v)
83 void ControlButtons::setButtonController(ButtonControllerBase & bc)