]> git.lyx.org Git - lyx.git/blob - src/frontends/controllers/ControlChanges.h
rename getExtFromContents() to getFormatFromContents()
[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 namespace lyx {
18 namespace frontend {
19
20 /**
21  * A controller for the merge changes dialog.
22  */
23 class ControlChanges : public Dialog::Controller {
24 public:
25         ///
26         ControlChanges(Dialog &);
27         /// Nothing to initialise in this case.
28         virtual bool initialiseParams(std::string const &) { return true; }
29         ///
30         virtual void clearParams() {}
31         ///
32         virtual void dispatchParams() {}
33         ///
34         virtual bool isBufferDependent() const { return true; }
35
36         /// find the next merge chunk and highlight it
37         bool find();
38
39         /// return date of change
40         std::string const getChangeDate();
41
42         /// return author of change
43         std::string const getChangeAuthor();
44
45         /// accept the current merge
46         bool accept();
47
48         /// reject the current merge
49         bool reject();
50 };
51
52 } // namespace frontend
53 } // namespace lyx
54
55 #endif // CONTROLCHANGES_H