]> git.lyx.org Git - lyx.git/blob - src/frontends/controllers/ControlChanges.h
Finish the task of removing all cruft from the header files.
[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  *
9  * Full author contact details are available in file CREDITS.
10  */
11
12 #ifndef CONTROLCHANGES_H
13 #define CONTROLCHANGES_H
14
15 #include "Dialog.h"
16
17 /**
18  * A controller for the merge changes dialog.
19  */
20 class ControlChanges : public Dialog::Controller {
21 public:
22         ///
23         ControlChanges(Dialog &);
24         /// Nothing to initialise in this case.
25         virtual bool initialiseParams(string const &) { return true; }
26         ///
27         virtual void clearParams() {}
28         ///
29         virtual void dispatchParams() {}
30         ///
31         virtual bool isBufferDependent() const { return true; }
32
33         /// find the next merge chunk and highlight it
34         bool find();
35
36         /// return date of change
37         string const getChangeDate();
38
39         /// return author of change
40         string const getChangeAuthor();
41
42         /// accept the current merge
43         void accept();
44
45         /// reject the current merge
46         void reject();
47 };
48
49 #endif // CONTROLCHANGES_H