]> git.lyx.org Git - lyx.git/blob - src/frontends/controllers/ControlLog.h
Finish the task of removing all cruft from the header files.
[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 "Dialog.h"
17 #include "buffer.h" // Buffer::LogType
18 #include <utility>
19
20 /**
21  * A controller for a read-only text browser.
22  */
23 class ControlLog : public Dialog::Controller {
24 public:
25         ///
26         ControlLog(Dialog &);
27         ///
28         virtual bool initialiseParams(string const & data);
29         ///
30         virtual void clearParams();
31         ///
32         virtual void dispatchParams() {}
33         ///
34         virtual bool isBufferDependent() const { return true; }
35         ///
36         std::pair<Buffer::LogType, string> const & logfile() const {
37                 return logfile_;
38         }
39 private:
40
41         std::pair<Buffer::LogType, string> logfile_;
42 };
43
44 #endif // CONTROLLOG_H