]> git.lyx.org Git - lyx.git/blob - src/frontends/controllers/ControlChanges.h
Fixed some lines that were too long. It compiled afterwards.
[lyx.git] / src / frontends / controllers / ControlChanges.h
1 // -*- C++ -*-
2 /**
3  * \file ControlChanges.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 Michael Gerz
9  *
10  * Full author contact details are available in file CREDITS.
11  */
12
13 #ifndef CONTROLCHANGES_H
14 #define CONTROLCHANGES_H
15
16 #include "Dialog.h"
17
18 #include "support/docstring.h"
19
20 namespace lyx {
21 namespace frontend {
22
23 /**
24  * A controller for the merge changes dialog.
25  */
26 class ControlChanges : public Dialog::Controller {
27 public:
28         ///
29         ControlChanges(Dialog &);
30         /// Nothing to initialise in this case.
31         virtual bool initialiseParams(std::string const &) { return true; }
32         ///
33         virtual void clearParams() {}
34         ///
35         virtual void dispatchParams() {}
36         ///
37         virtual bool isBufferDependent() const { return true; }
38         /// always true since dispatchParams() is empty
39         virtual bool canApply() const { return true; }
40
41         /// find the next change and highlight it
42         void next();
43
44         /// return date of change
45         docstring const getChangeDate();
46
47         /// return author of change
48         docstring const getChangeAuthor();
49
50         /// accept the current change
51         void accept();
52
53         /// reject the current change
54         void reject();
55 };
56
57 } // namespace frontend
58 } // namespace lyx
59
60 #endif // CONTROLCHANGES_H