mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-09-22 16:04:07 +00:00
2353291b37
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7308 a592a061-630c-0410-9148-cb99ea01b6c8
50 lines
1014 B
C++
50 lines
1014 B
C++
// -*- C++ -*-
|
|
/**
|
|
* \file ControlChanges.h
|
|
* This file is part of LyX, the document processor.
|
|
* Licence details can be found in the file COPYING.
|
|
*
|
|
* \author John Levon
|
|
*
|
|
* Full author contact details are available in file CREDITS
|
|
*/
|
|
|
|
#ifndef CONTROLCHANGES_H
|
|
#define CONTROLCHANGES_H
|
|
|
|
#include "Dialog.h"
|
|
|
|
/**
|
|
* A controller for the merge changes dialog.
|
|
*/
|
|
class ControlChanges : public Dialog::Controller {
|
|
public:
|
|
///
|
|
ControlChanges(Dialog &);
|
|
/// Nothing to initialise in this case.
|
|
virtual bool initialiseParams(string const &) { return true; }
|
|
///
|
|
virtual void clearParams() {}
|
|
///
|
|
virtual void dispatchParams() {}
|
|
///
|
|
virtual bool isBufferDependent() const { return true; }
|
|
|
|
/// find the next merge chunk and highlight it
|
|
bool find();
|
|
|
|
/// return date of change
|
|
string const getChangeDate();
|
|
|
|
/// return author of change
|
|
string const getChangeAuthor();
|
|
|
|
/// accept the current merge
|
|
void accept();
|
|
|
|
/// reject the current merge
|
|
void reject();
|
|
};
|
|
|
|
#endif // CONTROLCHANGES_H
|