2003-02-08 19:18:01 +00:00
|
|
|
// -*- 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
|
2007-02-01 20:48:43 +00:00
|
|
|
* \author Michael Gerz
|
2003-02-08 19:18:01 +00:00
|
|
|
*
|
2003-08-23 00:17:00 +00:00
|
|
|
* Full author contact details are available in file CREDITS.
|
2003-02-08 19:18:01 +00:00
|
|
|
*/
|
2003-02-13 16:53:15 +00:00
|
|
|
|
2003-02-08 19:18:01 +00:00
|
|
|
#ifndef CONTROLCHANGES_H
|
|
|
|
#define CONTROLCHANGES_H
|
|
|
|
|
2003-03-09 21:03:43 +00:00
|
|
|
#include "Dialog.h"
|
2003-02-08 19:18:01 +00:00
|
|
|
|
2006-10-08 10:32:33 +00:00
|
|
|
#include "support/docstring.h"
|
|
|
|
|
2004-05-19 15:11:37 +00:00
|
|
|
namespace lyx {
|
|
|
|
namespace frontend {
|
|
|
|
|
2003-02-08 19:18:01 +00:00
|
|
|
/**
|
|
|
|
* A controller for the merge changes dialog.
|
|
|
|
*/
|
2003-03-09 21:03:43 +00:00
|
|
|
class ControlChanges : public Dialog::Controller {
|
2003-02-08 19:18:01 +00:00
|
|
|
public:
|
2003-03-09 21:03:43 +00:00
|
|
|
///
|
|
|
|
ControlChanges(Dialog &);
|
2003-07-17 15:35:42 +00:00
|
|
|
/// Nothing to initialise in this case.
|
2003-10-06 15:43:21 +00:00
|
|
|
virtual bool initialiseParams(std::string const &) { return true; }
|
2003-03-09 21:03:43 +00:00
|
|
|
///
|
|
|
|
virtual void clearParams() {}
|
|
|
|
///
|
|
|
|
virtual void dispatchParams() {}
|
|
|
|
///
|
|
|
|
virtual bool isBufferDependent() const { return true; }
|
2005-04-26 09:37:52 +00:00
|
|
|
/// always true since dispatchParams() is empty
|
|
|
|
virtual bool canApply() const { return true; }
|
2003-02-08 19:18:01 +00:00
|
|
|
|
2007-02-01 20:48:43 +00:00
|
|
|
/// find the next change and highlight it
|
|
|
|
void next();
|
2006-04-05 23:56:29 +00:00
|
|
|
|
2003-02-08 19:18:01 +00:00
|
|
|
/// return date of change
|
2007-04-25 23:06:48 +00:00
|
|
|
docstring const getChangeDate();
|
2003-02-08 19:18:01 +00:00
|
|
|
|
|
|
|
/// return author of change
|
2007-04-25 23:06:48 +00:00
|
|
|
docstring const getChangeAuthor();
|
2003-02-13 16:53:15 +00:00
|
|
|
|
2007-02-01 20:48:43 +00:00
|
|
|
/// accept the current change
|
|
|
|
void accept();
|
2003-02-08 19:18:01 +00:00
|
|
|
|
2007-02-01 20:48:43 +00:00
|
|
|
/// reject the current change
|
|
|
|
void reject();
|
2003-02-08 19:18:01 +00:00
|
|
|
};
|
|
|
|
|
2004-05-19 15:11:37 +00:00
|
|
|
} // namespace frontend
|
|
|
|
} // namespace lyx
|
|
|
|
|
2003-02-08 19:18:01 +00:00
|
|
|
#endif // CONTROLCHANGES_H
|