]> git.lyx.org Git - lyx.git/blob - src/frontends/controllers/ControlLog.h
port the graphics dialog to the new scheme and get rid of the ControlInset
[lyx.git] / src / frontends / controllers / ControlLog.h
1 // -*- C++ -*-
2 /**
3  * \file ControlLog.h
4  * This file is part of LyX, the document processor.
5  * Licence details can be found in the file COPYING.
6  *
7  * \author John Levon
8  * \author Angus Leeming
9  *
10  * Full author contact details are available in file CREDITS
11  */
12
13 #ifndef CONTROLLOG_H
14 #define CONTROLLOG_H
15
16 #include <utility>
17
18
19 #include "ControlDialog_impl.h"
20 #include "buffer.h" // Buffer::LogType
21
22 /**
23  * A controller for a read-only text browser.
24  */
25 class ControlLog : public ControlDialogBD {
26 public:
27         ///
28         ControlLog(LyXView &, Dialogs &);
29         ///
30         std::pair<Buffer::LogType, string> const & logfile() {
31                 return logfile_;
32         }
33 private:
34         ///
35         virtual void apply() {}
36         /// set the params before show or update
37         virtual void setParams();
38         /// clean-up on hide.
39         virtual void clearParams();
40
41         std::pair<Buffer::LogType, string> logfile_;
42 };
43
44 #endif // CONTROLLOG_H