1 /* This file is part of
2 * ======================================================
4 * LyX, The Document Processor
6 * Copyright 2001 The LyX Team.
8 * ======================================================
10 * \file ControlButtons.C
11 * \author Angus Leeming <leeming@lyx.org>
17 #pragma implementation
20 #include "ControlButtons.h"
21 #include "ButtonControllerBase.h"
24 #include "support/LAssert.h"
27 ControlButtons::ControlButtons()
28 : emergency_exit_(false), is_closing_(false), bc_ptr_(0), view_ptr_(0)
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 ButtonControllerBase & ControlButtons::bc()
76 ViewBase & ControlButtons::view()
78 lyx::Assert(view_ptr_);
83 void ControlButtons::setView(ViewBase & v)
89 void ControlButtons::setButtonController(ButtonControllerBase & bc)