3 * \file ControlDialog.tmpl
4 * Read the file COPYING
6 * \author Angus Leeming
8 * Full author contact details are available in file CREDITS
10 * ControlDialog is a base class and so these templatised methods will be
11 * instantiated if this file is #included in the derived classes' .C file.
14 #include "ControlDialog.h"
16 #include "ButtonControllerBase.h"
21 ControlDialog<Base>::ControlDialog(LyXView & lv, Dialogs & d)
22 : Base(lv, d), dialog_built_(false)
27 void ControlDialog<Base>::show()
29 if (isBufferDependent() && !bufferIsAvailable())
35 if (emergency_exit_) {
45 bc().readOnly(bufferIsReadonly());
50 void ControlDialog<Base>::update()
52 if (isBufferDependent() && !bufferIsAvailable())
56 if (emergency_exit_) {
61 bc().readOnly(bufferIsReadonly());
66 void ControlDialog<Base>::hide()
68 emergency_exit_ = false;