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"
21 using namespace lyx::support;
23 ControlButtons::ControlButtons()
24 : emergency_exit_(false), is_closing_(false),
25 bc_ptr_(new ButtonController), view_ptr_(0)
29 ControlButtons::~ControlButtons()
33 void ControlButtons::ApplyButton()
40 void ControlButtons::OKButton()
50 void ControlButtons::CancelButton()
57 void ControlButtons::RestoreButton()
64 bool ControlButtons::IconifyWithMain() const
66 return lyxrc.dialogs_iconify_with_main;
70 ButtonController & ControlButtons::bc()
72 Assert(bc_ptr_.get());
73 return *bc_ptr_.get();
77 ViewBase & ControlButtons::view()
84 void ControlButtons::setView(ViewBase & v)