3 * \file ControlDialog.tmpl
4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
7 * \author Angus Leeming
9 * Full author contact details are available in file CREDITS
11 * ControlDialog is a base class and so these templatised methods will be
12 * instantiated if this file is #included in the derived classes' .C file.
15 #include "ControlDialog.h"
17 #include "ButtonControllerBase.h"
22 ControlDialog<Base>::ControlDialog(LyXView & lv, Dialogs & d)
23 : Base(lv, d), dialog_built_(false)
28 void ControlDialog<Base>::show()
30 if (isBufferDependent() && !bufferIsAvailable())
41 if (emergency_exit_) {
46 bc().readOnly(bufferIsReadonly());
49 // The widgets may not be valid, so refresh the button controller
54 void ControlDialog<Base>::update()
56 if (isBufferDependent() && !bufferIsAvailable())
60 if (emergency_exit_) {
65 bc().readOnly(bufferIsReadonly());
68 // The widgets may not be valid, so refresh the button controller
73 void ControlDialog<Base>::hide()
75 emergency_exit_ = false;