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"
19 #include "support/LAssert.h"
22 ControlButtons::ControlButtons()
23 : emergency_exit_(false), is_closing_(false),
24 bc_ptr_(new ButtonController), view_ptr_(0)
28 ControlButtons::~ControlButtons()
32 void ControlButtons::ApplyButton()
39 void ControlButtons::OKButton()
49 void ControlButtons::CancelButton()
56 void ControlButtons::RestoreButton()
63 bool ControlButtons::IconifyWithMain() const
65 return lyxrc.dialogs_iconify_with_main;
69 ButtonController & ControlButtons::bc()
71 lyx::Assert(bc_ptr_.get());
72 return *bc_ptr_.get();
76 ViewBase & ControlButtons::view()
78 lyx::Assert(view_ptr_);
83 void ControlButtons::setView(ViewBase & v)