2 /* This file is part of
3 * ======================================================
5 * LyX, The Document Processor
7 * Copyright 2001 The LyX Team.
9 * ======================================================
12 * \author John Levon, moz@compsoc.man.ac.uk
13 * \author Angus Leeming <a.leeming@ic.ac.uk>
25 #include "ControlConnections.h"
26 #include "buffer.h" // Buffer::LogType
29 * A controller for a read-only text browser.
31 class ControlLog : public ControlConnectBD {
34 ControlLog(LyXView &, Dialogs &);
36 std::pair<Buffer::LogType, string> const & logfile()
41 virtual void apply() {}
44 /// Update the dialog.
45 virtual void update();
50 std::pair<Buffer::LogType, string> logfile_;
54 /** A class to instantiate and make available the GUI-specific
55 ButtonController and View.
57 template <class GUIview, class GUIbc>
58 class GUILog : public ControlLog {
61 GUILog(LyXView &, Dialogs &);
63 virtual ButtonControllerBase & bc() { return bc_; }
65 virtual ViewBase & view() { return view_; }
69 ButtonController<OkCancelPolicy, GUIbc> bc_;
74 template <class GUIview, class GUIbc>
75 GUILog<GUIview, GUIbc>::GUILog(LyXView & lv, Dialogs & d)
80 #endif // CONTROLLOG_H