#ifndef CHANGES_H
#define CHANGES_H
-#include "support/docstream.h"
+#include "support/strfwd.h"
+#include "support/types.h"
#include "support/lyxtime.h"
#include <vector>
namespace lyx {
+class AuthorList;
class Change {
public:
DELETED // deleted text
};
- explicit Change(Type t, int a = 0, time_type ct = current_time())
+ explicit Change(Type t, int a = 0, time_t ct = current_time())
: type(t), author(a), changetime(ct) {}
/// is the change similar to the given change such that both can be merged?
int author;
- time_type changetime;
+ time_t changetime;
};
bool operator==(Change const & l, Change const & r);
/// output latex to mark a transition between two change types
/// returns length of text outputted
static int latexMarkChange(odocstream & os, BufferParams const & bparams,
- Change const & oldChange, Change const & change);
+ Change const & oldChange, Change const & change);
/// output .lyx file format for transitions between changes
static void lyxMarkChange(std::ostream & os, int & column,
Change const & old, Change const & change);
+ ///
+ void checkAuthors(AuthorList const & authorList);
+
private:
class Range {
public: