]> git.lyx.org Git - lyx.git/blob - src/frontends/controllers/ControlChanges.h
Convert most of the bibtex machinery to docstring.
[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 #include "support/docstring.h"
18
19 namespace lyx {
20 namespace frontend {
21
22 /**
23  * A controller for the merge changes dialog.
24  */
25 class ControlChanges : public Dialog::Controller {
26 public:
27         ///
28         ControlChanges(Dialog &);
29         /// Nothing to initialise in this case.
30         virtual bool initialiseParams(std::string const &) { return true; }
31         ///
32         virtual void clearParams() {}
33         ///
34         virtual void dispatchParams() {}
35         ///
36         virtual bool isBufferDependent() const { return true; }
37         /// always true since dispatchParams() is empty
38         virtual bool canApply() const { return true; }
39
40         /// find the next merge chunk and highlight it
41         bool find();
42
43         /// Are there changes to be merged at current location?
44         bool changed();
45
46         /// return date of change
47         lyx::docstring const getChangeDate();
48
49         /// return author of change
50         lyx::docstring const getChangeAuthor();
51
52         /// accept the current merge
53         bool accept();
54
55         /// reject the current merge
56         bool reject();
57 };
58
59 } // namespace frontend
60 } // namespace lyx
61
62 #endif // CONTROLCHANGES_H