3 * \file ControlDialog.tmpl
4 * Copyright 2002 the LyX Team
5 * Read the file COPYING
7 * \author Angus Leeming <a.leeming@ic.ac.uk>
9 * ControlDialog is a base class and so these templatised methods will be
10 * instantiated if this file is #included in the derived classes' .C file.
13 #include "ControlDialog.h"
15 #include "ButtonControllerBase.h"
20 ControlDialog<Base>::ControlDialog(LyXView & lv, Dialogs & d)
21 : Base(lv, d), dialog_built_(false)
26 void ControlDialog<Base>::show()
28 if (isBufferDependent() && !bufferIsAvailable())
34 if (emergency_exit_) {
44 bc().readOnly(bufferIsReadonly());
49 void ControlDialog<Base>::update()
51 if (isBufferDependent() && !bufferIsAvailable())
55 if (emergency_exit_) {
60 bc().readOnly(bufferIsReadonly());
65 void ControlDialog<Base>::hide()
67 emergency_exit_ = false;