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 #pragma implementation
17 #include "ControlButtons.h"
18 #include "ButtonControllerBase.h"
21 #include "support/LAssert.h"
24 ControlButtons::ControlButtons()
25 : emergency_exit_(false), is_closing_(false), bc_ptr_(0), view_ptr_(0)
29 void ControlButtons::ApplyButton()
36 void ControlButtons::OKButton()
46 void ControlButtons::CancelButton()
53 void ControlButtons::RestoreButton()
60 bool ControlButtons::IconifyWithMain() const
62 return lyxrc.dialogs_iconify_with_main;
66 ButtonControllerBase & ControlButtons::bc()
73 ViewBase & ControlButtons::view()
75 lyx::Assert(view_ptr_);
80 void ControlButtons::setView(ViewBase & v)
86 void ControlButtons::setButtonController(ButtonControllerBase & bc)