]> git.lyx.org Git - lyx.git/blob - src/frontends/controllers/ControlLog.h
22f02707401935dec2c253523daee683fe393312
[lyx.git] / src / frontends / controllers / ControlLog.h
1 // -*- C++ -*-
2 /* This file is part of
3  * ====================================================== 
4  *
5  *           LyX, The Document Processor
6  *
7  *           Copyright 2001 The LyX Team.
8  *
9  * ======================================================
10  *
11  * \file ControlLog.h
12  * \author John Levon, moz@compsoc.man.ac.uk
13  * \author Angus Leeming <a.leeming@ic.ac.uk>
14  */
15
16 #ifndef CONTROLLOG_H
17 #define CONTROLLOG_H
18
19 #include <utility>
20
21 #ifdef __GNUG__
22 #pragma interface
23 #endif
24
25 #include "ControlDialogs.h"
26 #include "buffer.h" // Buffer::LogType
27
28 /**
29  * A controller for a read-only text browser.
30  */
31 class ControlLog : public ControlDialog<ControlConnectBD> {
32 public:
33         ///
34         ControlLog(LyXView &, Dialogs &);
35         ///
36         std::pair<Buffer::LogType, string> const & logfile()
37                 { return logfile_; }
38
39 protected:
40         ///
41         virtual void apply() {}
42         /// set the params before show or update
43         virtual void setParams();
44         /// clean-up on hide.
45         virtual void clearParams();
46
47 private:
48         std::pair<Buffer::LogType, string> logfile_;
49 };
50
51 #endif // CONTROLLOG_H