*
* \author John Levon
*
- * Full author contact details are available in file CREDITS
+ * Full author contact details are available in file CREDITS.
*/
#ifndef CONTROLCHANGES_H
#include "Dialog.h"
+namespace lyx {
+namespace frontend {
+
/**
* A controller for the merge changes dialog.
*/
public:
///
ControlChanges(Dialog &);
- ///
- virtual bool initialiseParams(string const &) { return true; }
+ /// Nothing to initialise in this case.
+ virtual bool initialiseParams(std::string const &) { return true; }
///
virtual void clearParams() {}
///
virtual void dispatchParams() {}
///
virtual bool isBufferDependent() const { return true; }
+ /// always true since dispatchParams() is empty
+ virtual bool canApply() const { return true; }
/// find the next merge chunk and highlight it
bool find();
/// return date of change
- string const getChangeDate();
+ std::string const getChangeDate();
/// return author of change
- string const getChangeAuthor();
+ std::string const getChangeAuthor();
/// accept the current merge
- void accept();
+ bool accept();
/// reject the current merge
- void reject();
+ bool reject();
};
+} // namespace frontend
+} // namespace lyx
+
#endif // CONTROLCHANGES_H