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"
14 #include "ButtonControllerBase.h"
15 #include "ControlConnections.h"
16 #include "frontends/LyXView.h"
17 #include "BufferView.h"
22 ControlDialog<Base>::ControlDialog(LyXView & lv, Dialogs & d)
23 : Base(lv, d), dialog_built_(false)
28 void ControlDialog<Base>::show()
30 if (isBufferDependent() && !lv_.view()->available())
36 if (emergency_exit_) {
46 bc().readOnly(isReadonly());
51 void ControlDialog<Base>::update()
53 if (isBufferDependent() && !lv_.view()->available())
57 if (emergency_exit_) {
62 bc().readOnly(isReadonly());
67 void ControlDialog<Base>::hide()
69 emergency_exit_ = false;